* config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
[official-gcc.git] / gcc / ChangeLog
blobd335b2ef4754a7086201e2f809aeac665df87772
1 2015-12-02  Nathan Sidwell  <nathan@acm.org>
3         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
4         SHUFFLE defines.
5         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
7 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
8             Sebastian Pop  <s.pop@samsung.com>
10         * graphite-dependences.c (scop_get_reads): Add extra dumps.
11         (scop_get_must_writes): Same.
12         (scop_get_may_writes): Same.
13         (compute_deps): Same.
14         * graphite-sese-to-poly.c (bounds_are_valid): New.
15         (pdr_add_data_dimensions): Call bounds_are_valid.
17 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
18             Sebastian Pop  <s.pop@samsung.com>
20         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
21         * graphite-poly.c (apply_poly_transforms): Same.
22         * graphite.c (gate_graphite_transforms): Same.
23         * toplev.c (process_options): Same.
25 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
27         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
28         (mips_output_probe_stack_range): Rotate the loop and simplify.
30 2015-12-02  David Sherwood  <david.sherwood@arm.com>
32         * config/aarch64/aarch64.md: New pattern.
33         * config/aarch64/aarch64-simd.md: Likewise.
34         * config/aarch64/iterators.md: New unspecs, iterators.
36 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
38         * dwarf2out.c (dwar2out_var_location): In addition to notes,
39         process indirect calls whose target is compile-time known.
40         Enhance pattern matching to get the SYMBOL_REF they embed.
41         (gen_subprogram_die): Handle such calls.
42         * final.c (final_scan_insn): For call instructions, invoke the
43         var_location debug hook only after the call has been emitted.
45 2015-12-02  Tom de Vries  <tom@codesourcery.com>
47         * gimplify.c (enum gimplify_omp_var_data): Add enum value
48         GOVD_MAP_FORCE.
49         (oacc_default_clause): Fix default for scalars in oacc kernels.
50         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
52 2015-12-02  Tom de Vries  <tom@codesourcery.com>
54         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
55         parameter base_pointers_restrict.
56         (omp_target_base_pointers_restrict_p): New function.
57         (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
58         arg.
60 2015-12-02  Nathan Sidwell  <nathan@acm.org>
62         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
63         (nvptx_underlying_object_mode): Delete.
64         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
65         (output_reg): New.
66         (nvptx_declare_function_name): Use output_reg.  Remove punning
67         buffer.
68         (nvptx_output_mov_insn): New.
69         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
70         Use output_reg. Merge 't' and 'u' handling.
71         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
72         (struct machine_function): Remvoe punning_buffer_size.
73         (REGISTER_NAMES): Remove %punbuffer.
74         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
75         UNSPEC_CPLX_HIGHPART): Delete.
76         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
77         nvptx_output_mov_insn.
78         (*mov<mode>_insn [SDFM): Reorder constraints to match integer
79         moc.  Use nvptx_output_mov_insn.
80         (highpartscsf2,  set_highpartscsf2, lowpartscsf2,
81         set_lowpartscsf2): Delete.
82         (mov<mode> [SDCM]): Delete.
84 2015-12-02  Richard Biener  <rguenther@suse.de>
86         * tree.h (tree_invariant_p): Declare.
87         * tree.c (tree_invariant_p): Export.
88         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
89         create SAVE_EXPRs but reject patterns if we would need to.
91 2015-12-02  Tom de Vries  <tom@codesourcery.com>
93         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
94         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
96 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
98         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
99         (cstore<mode>4): Use it.
101 2015-12-02  Richard Biener  <rguenther@suse.de>
103         PR tree-optimization/68625
104         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
105         cleanup_control_flow_bb.
106         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
107         on all BBs, then cleanup_tree_cfg_bb and finally iterate
108         over the worklist doing both.
110 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
112         PR tree-optimization/68432
113         * coretypes.h (optimization_type): New enum.
114         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
115         * doc/tm.texi: Regenerate.
116         * target.def (optab_supported_p): New hook.
117         * targhooks.h (default_optab_supported_p): Declare.
118         * targhooks.c (default_optab_supported_p): New function.
119         * predict.h (function_optimization_type): Declare.
120         (bb_optimization_type): Likewise.
121         * predict.c (function_optimization_type): New function.
122         (bb_optimization_type): Likewise.
123         * optabs-query.h (convert_optab_handler): Define an overload
124         that takes an optimization type.
125         (direct_optab_handler): Likewise.
126         * optabs-query.c (convert_optab_handler): Likewise.
127         (direct_optab_handler): Likewise.
128         * internal-fn.h (direct_internal_fn_supported_p): Take an
129         optimization_type argument.
130         * internal-fn.c (direct_optab_supported_p): Likewise.
131         (multi_vector_optab_supported_p): Likewise.
132         (direct_internal_fn_supported_p): Likewise.
133         * builtins.c (replacement_internal_fn): Update call to
134         direct_internal_fn_supported_p.
135         * gimple-match-head.c (build_call_internal): Likewise.
136         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
137         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
138         * tree.c (maybe_build_call_expr_loc): Likewise.
139         * config/i386/i386.c (ix86_optab_supported_p): New function.
140         (TARGET_OPTAB_SUPPORTED_P): Define.
141         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
142         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
143         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
144         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
145         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
146         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
148 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
150         * Makefile.in (GENSUPPORT_H): New macro.
151         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
152         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
153         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
154         (build/genconstants.o, build/genextract.o, build/genflags.o)
155         (build/gentarget-def.o): Use it.
156         (build/genemit.o): Likewise.  Depend on internal-fn.def.
157         * genopinit.c: Move block comment to optabs.def.
158         (optab_tag, optab_def): Move to gensupport.h
159         (pattern): Likewise, renaming to optab_pattern.
160         (match_pattern): Move to gensupport.c
161         (gen_insn): Use find_optab.
162         (patterns, pattern_cmp): Replace pattern with optab_pattern.
163         (main): Likewise.  Use num_optabs.
164         * optabs.def: Add comment that was previously in genopinit.c.
165         * gensupport.h (optab_tag): Moved from genopinit.c
166         (optab_def): Likewise, expanding commentary.
167         (optab_pattern): Likewise, after renaming from pattern.
168         (optabs, num_optabs, find_optab): Declare.
169         * gensupport.c (optabs): Moved from genopinit.c.
170         (num_optabs): New variable.
171         (match_pattern): Moved from genopinit.c.
172         (find_optab): New function, extracted from genopinit.c:gen_insn.
173         * genemit.c (nofail_optabs): New variable.
174         (emit_c_code): New function.
175         (gen_expand): Check whether the instruction is an optab that isn't
176         allowed to fail.  Call emit_c_code.
177         (gen_split): Call emit_c_code here too.
178         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
180 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
182         * config/s390/predicates.md (const_mask_operand): New predicate.
183         * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
184         * config/s390/vector.md: Change predicate from immediate_operand
185         to either const_int_operand or const_mask_operand.  Add special
186         insn conditions on patterns which have to exclude certain values.
187         * config/s390/vx-builtins.md: Likewise.
189 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
191         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
192         mode from DI to SI.
194 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
196         * config/s390/s390-builtin-types.def: New builtin types added.
197         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
198         * config/s390/s390.c (s390_expand_builtin): Always truncate
199         constants to the mode in the pattern.
200         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
201         respective builtin __builtin_s390_vec_splat_*.
203 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
205         * config/s390/s390-builtin-types.def: Sort builtin types.
207 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
209         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
210         condition for the RT flag.
212 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
214         * config/s390/constraints.md ("jKK"): New constraint.
215         * config/s390/s390.c (tm-constrs.h): Include for
216         satisfies_constraint_*.
217         (s390_legitimate_constant_p): Allow jKK constants.  Use
218         satisfies_constraint_* also for the others.
219         (legitimate_reload_vector_constant_p): Likewise.
220         (print_operand): Allow h output modifier on vectors.
221         * config/s390/vector.md ("mov<mode>"): Add vrepi.
223 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
225         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
226         latter I->K.
228 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
230         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
231         strvg.
232         ("bswaphi2"): New pattern.
233         New splitter for HI reg-reg bswap.
235 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
237         PR driver/68029
238         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color 
239         if it is the first parameter.
241 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
243         PR tree-optimization/68577
244         * tree-vect-stmts.c (simple_integer_narrowing): New function.
245         (vectorizable_call): Restrict internal function handling
246         to NONE and NARROW cases, using simple_integer_narrowing
247         to test for the latter.  Add cost of narrowing operation
248         and insert it where necessary.
250 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
252         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
253         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
254         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
256 2015-12-01  Nathan Sidwell  <nathan@acm.org>
258         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
259         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
260         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
261         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
262         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
263         (init_output_initializer): Call write_var_marker.
264         (nvptx_output_aligned_decl): New.
265         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
267 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
269         * c-common.c (parse_optimize_options): Do not silently ignore
270         -fstrict-aliasing changes.
272 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
274         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
275         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
276         stream TYPE_ALIAS_SET.
277         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
278         stream TYPE_ALIAS_SET.
280 2015-12-01  Nathan Sidwell  <nathan@acm.org>
282         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
283         consider mode.
285 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
287         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
288         indirection for large and small code models.
289         (adjust_vperm): Likewise.
291 2015-12-01  Julian Brown  <julian@codesourcery.com>
292             Cesar Philippidis  <cesar@codesourcery.com>
293             James Norris  <James_Norris@mentor.com>
295         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
296         support.
297         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
298         (is_gimple_omp_oacc): Add support for above.
299         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
300         (omp_notice_variable): Diagnose undefined implicit uses of
301         use_device variables in offloaded regions.
302         (gimplify_scan_omp_clauses): Add host_data, use_device
303         support. Diagnose undefined mapping of use_device variables in
304         OpenACC clauses.
305         (gimplify_omp_workshare): Add host_data support.
306         (gimplify_expr): Likewise.
307         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
308         * omp-low.c (lookup_decl_in_outer_ctx)
309         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
310         host_data regions.
311         (scan_sharing_clauses): Support use_device.
312         (check_omp_nesting_restrictions): Support host_data.
313         (expand_omp_target): Support host_data.
314         (lower_omp_target): Skip over outer host_data regions when looking
315         up decls. Support use_device.
316         (make_gimple_omp_edges): Support host_data.
317         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
318         clause.
320 2015-12-01  Marek Polacek  <polacek@redhat.com>
322         PR middle-end/68582
323         * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
324         for VAR_DECLs.
326 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
328         PR tree-optimization/68474
329         * tree-call-cdce.c (use_internal_fn): Protect call to
330         gen_shrink_wrap_conditions.
332 2015-12-01  Christian Bruel  <christian.bruel@st.com>
334         PR target/68617
335         * config/arm/arm.opt (unaligned_access): Save.
336         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
337         * config/arm/arm.c (arm_option_override): Move unaligned_access setting
338         (arm_option_override_internal): ... here.
339         * config/arm/arm.h (TARGET_32BIT_P): New macro.
341 2015-12-01  Richard Biener  <rguenther@suse.de>
343         PR tree-optimization/68379
344         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
345         always base loads on the first used DR of a group.
346         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
347         Compute alignment of the first scalar element unconditionally.
349 2015-12-01  Richard Biener  <rguenther@suse.de>
351         PR middle-end/68590
352         * genmatch.c (struct capture_info): Add match_use_count.
353         (capture_info::walk_match): Increment match_use_count.
354         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
355         replacements in a save_expr if they occur more often than
356         in the original expression.
358 2015-12-01  Richard Biener  <rguenther@suse.de>
360         PR ipa/68470
361         * ipa-split.c (split_function): Handle main part not returning.
363 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
365         PR middle-end/68595
366         * tree-vect-stmts.c (vect_init_vector): Cast boolean
367         scalars to a proper value before building a vector.
369 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
371         * genattrtab.c (check_attr_test): Take an attr_desc instead of
372         an is_const flag.  Put the file_location argument first.
373         Update recursive calls.  Improve error messages.
374         (check_attr_value): Take a file location and use it instead
375         of attr->loc.  Improve error messages.  Update calls to
376         check_attr_test.
377         (check_defs): Update call to check_attr_value.
378         (make_canonical): Likewise.
379         (gen_attr): Likewise.
380         (main): Likewise.
381         (gen_insn_reserv): Update call to check_attr_test.
383 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
385         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
387 2015-12-01  Richard Biener  <rguenther@suse.de>
389         PR middle-end/68590
390         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
392 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
394         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
395         odr_type_p): Move to ...
396         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
397         odr_type_p): here; miscro-optimize.
399 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
401         PR tree-optimization/68529
402         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
403         Compute no-overflow information for control iv.
404         (number_of_iterations_lt, number_of_iterations_le): Add new param.
405         (number_of_iterations_cond): Pass new argument to above functions.
407 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
409         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
410         inlining -fno-strict-aliasing into -fstrict-aliasing body.
412 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
413             Sebastian Pop  <s.pop@samsung.com>
415         PR tree-optimization/68565
416         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
417         codegen_error.  Fail when rhs of division operations is integer_zerop.
418         (ternary_op_to_tree): Early return on codegen_error.
419         (unary_op_to_tree): Same.
420         (nary_op_to_tree): Same.
421         (gcc_expression_from_isl_expr_op): Same.
422         (gcc_expression_from_isl_expression): Same.
423         (graphite_create_new_loop): On codegen_error continue generating
424         wrong code.
425         (graphite_create_new_loop_guard): Same.
426         (build_iv_mapping): Same.
427         (graphite_create_new_guard): Same.
429 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
430             Sebastian Pop  <s.pop@samsung.com>
432         * graphite-isl-ast-to-gimple.c: Fix dump messages.
433         * graphite-scop-detection.c: Same.
434         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
436 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
438         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
439         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
440         (convert_local_omp_clauses): Likewise.
442 2015-11-30  Tom de Vries  <tom@codesourcery.com>
444         PR tree-optimization/46032
445         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
446         factored out of ...
447         (find_func_aliases_for_call): ... here.
448         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
449         BUILT_IN_GOMP_PARALLEL.
450         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
451         function.
453 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
455         PR tree-optimization/68501
456         * target.def (builtin_reciprocal): Replace the 3 arguments with
457         a gcall * one, adjust description.
458         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
459         with a gcall * one.
460         * targhooks.c (default_builtin_reciprocal): Likewise.
461         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
462         targetm.builtin_reciprocal even on internal functions, adjust
463         the arguments and allow replacing an internal function with normal
464         built-in.
465         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
466         with a gcall * one.  Handle internal fns too.
467         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
468         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
469         * doc/tm.texi (builtin_reciprocal): Document.
471 2015-11-30  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/68592
474         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
475         on the pattern def sequence.
477 2015-11-30  Nathan Sidwell  <nathan@acm.org>
479         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
480         (write_one_arg): Reorder parms, add 'sep' param.
481         (nvptx_write_function_decl): Rename to ...
482         (write_fn_proto): ... here.  Do name replacement. Emit linaer
483         comment marker. Deal with both decls and defns. Simplify argument
484         formatting.
485         (write_function_decl_and_comment): Delete.
486         (write_func_decl_from_insn): Rename to ...
487         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
488         (nvptx_record_fndecl): Call write_fn_proto.
489         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
490         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
491         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
493 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
495         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
496         (define_insn "*k<logic><mode>"): Use new iterator.
498 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
500         PR target/28115
501         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
502         (sparc_adjust_cost): Add missing space.
504 2015-11-30  Richard Biener  <rguenther@suse.de>
506         PR c/68162
507         * dwarf2out.c (gen_type_die_with_usage): Keep variant types
508         of arrays.
510 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
512         * tree-if-conv.c (struct ifc_dr): Add new tree
513         base_predicate field.
514         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
515         base ref, DR pairs and store base_predicate for write type DRs.
516         (ifcvt_memrefs_wont_trap): Guard checks with
517         -ftree-loop-if-convert-stores flag.
519 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
521         * cgraph.c (cgraph_node::make_local): No name is unique during
522         incremental linking.
523         * cgraph.h (can_be_discarded_p): Update comment; also common and
524         WEAK in named sections can be discarded; when doing incremental
525         link do not rely on resolution being the final one.
526         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
527         When symbol can be discarded, do not rely on resolution info.
528         * symtab.c (symtab_node::nonzero_address): Take into account that
529         symbol can be discarded.
530         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
531         definition correctly.
532         (function_and_variable_visibility): Do not set unique_name when
533         incrementally linking.
535 2015-11-29  Nathan Sidwell  <nathan@acm.org>
537         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
538         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
539         (ctrap<mode>): Use const0_operand.
541 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
543         * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
544         dump
546 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
548         PR target/28115
549         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
550         recog_memoized test for insn and check recog_memoized for dep_insn.
552 2015-11-28  Nathan Sidwell  <nathan@acm.org>
554         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
555         (FRAME_POINTER_CFA_OFFSET): Define.
556         (struct nvptx_args): Use 'tree' type.
557         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
559 2015-11-28  Tom de Vries  <tom@codesourcery.com>
561         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
563 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
565         * doc/invoke.texi (Option Summary): Use negative form of
566         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
567         sort alphabetically and re-justify.
569 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
571         PR rtl-optimization/68536
572         * lra.c (lra_emit_add): Add code for null base.
573         * lra-constraints.c (curr_insn_transform): Skip operators for
574         subreg reloads.
576 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
578         Revert
579         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
581         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
582         multiple_sets.
583         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
584         are not modified by the final modified insns in the basic blocks.
586 2015-11-27  Nathan Sidwell  <nathan@acm.org>
588         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
589         Don't declare.
590         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
591         (nvptx_maybe_convert_symbolic_operand): Simplify.
592         (nvptx_addr_space_from_address): Delete.
593         (nvptx_print_operand): Adjust 'A' case.
595 2015-11-27  Richard Biener  <rguenther@suse.de>
597         PR tree-optimization/68559
598         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
599         peeling for gap checks ...
600         * tree-vect-stmts.c (vectorizable_load): ... here and relax
601         for SLP.
602         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
603         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
605 2015-11-27  Nathan Sidwell  <nathan@acm.org>
607         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
608         declare.
609         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
610         (nvptx_record_fndecl): Don't return value, remove force
611         argument. Require fndecl.
612         (nvptx_record_libfunc): New.
613         (nvptx_record_needed_decl): Deteermine how to record decl here.
614         (nvptx_maybe_record_fnsym): New.
615         (nvptx_expand_call): Don't record libfuncs here,
616         (nvptx_maybe_convert_symbolic_operand): Use
617         nvptx_maye_record_fnsym.
618         (nvptx_assemble_integer): Reimplement with single switch.
619         (nvptx_output_call_insn): Register libfuncs here.
620         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
621         * config/nvptx/nvptx.md (expand_movdi): Don't call
622         nvptx_record_needed_decl.
624 2015-11-27  Richard Biener  <rguenther@suse.de>
626         PR tree-optimization/68553
627         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
628         generation for 1:1 permutations.
629         (vect_transform_slp_perm_load): Detect 1:1 permutations.
631 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
633         * gimple.h (nonbarrier_call_p): Declare.
634         * gimple.c (nonbarrier_call_p): New function.
635         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
636         Also increment call phase for ASMs with vdef and potential barrier
637         calls.
639 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
641         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
642         multiple_sets.
643         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
644         are not modified by the final modified insns in the basic blocks.
646 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
648         PR rtl-optimization/68506
649         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
650         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
651         blocks.
653 2015-11-27  Martin Liska  <mliska@suse.cz>
655         PR c++/68312
656         * vec.h (release_vec_vec): New function.
658 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
660         PR tree-optimization/68552
661         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
662         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
663         or whether v0 == v1.
665 2015-11-27  Martin Liska  <mliska@suse.cz>
667         * tree-ssa-uninit.c: Fix whitespaces in the source file.
668         The change is just automatical.
670 2015-11-27  Martin Liska  <mliska@suse.cz>
672         * tree-chkp.c (chkp_make_static_bounds): Release buffer
673         used for string.
675 2015-11-27  Martin Liska  <mliska@suse.cz>
677         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
678         Do not release memory for comp_alias_ddrs.
679         * tree-vect-loop.c (destroy_loop_vec_info): Release
680         the memory for all loop_vec_info.
682 2015-11-27  Martin Liska  <mliska@suse.cz>
684         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
685         of a local-scope vec.
686         (struct final_warning_record): Use auto_vec instead
687         of vec.
689 2015-11-27  Richard Biener  <rguenther@suse.de>
691         PR tree-optimization/68553
692         * tree-vect-slp.c (vect_get_mask_element): Remove.
693         (vect_transform_slp_perm_load): Implement in a simpler way.
695 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
697         PR rtl-optimization/67753
698         PR rtl-optimization/64164
699         * function.c (assign_parm_setup_block): Right-shift
700         upward-padded big-endian args when bypassing the stack slot.
702 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
704         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
705         `-mcompact-branches='.
706         (MIPS Options): Likewise.
708 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
710         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
712 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
714         * doc/install.texi (Prerequisites): Increase ISL requirement to
715         0.14 or 0.15.
717 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
719         * config/aarch64/arm_neon.h
720         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
721         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
722         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
723         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
724         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
725         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
726         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
727         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
728         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
729         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
730         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
731         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
733 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
735         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
736         (vqrdmlahq_s16, vqrdmlahq_s32): New.
737         (vqrdmlsh_s16, vqrdmlsh_s32): New.
738         (vqrdmlshq_s16, vqrdmlshq_s32): New.
740 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
742         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
743         ARM_FEATURE_QRDMX.
745 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
747         PR debug/53927
748         * tree-nested.c (finalize_nesting_tree_1): Append a field to
749         hold the frame base address.
750         * dwarf2out.c (gen_subprogram_die): Generate for
751         DW_AT_static_link a location description that computes the value
752         of this field.
754 2015-11-26  Tom de Vries  <tom@codesourcery.com>
756         revert:
757         2015-11-25  Tom de Vries  <tom@codesourcery.com>
759         * cfgloop.c (find_single_latch): New function, factored out of ...
760         (flow_loops_find): ... here.
761         (verify_loop_structure): Improve verification of loop->latch.
762         * cfgloop.h (find_single_latch): Declare.
763         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
765 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
767         * config/aarch64/aarch64-simd-builtins.def:
768         Add missing changes from r230962.
770 2015-11-26  Nathan Sidwell  <nathan@acm.org>
772         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
773         arg with name.  Don't deal with split regs.  Tweak formatting.
774         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
775         (nvptx_output_call_insn): Don't deal with split regs here.
777 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
779         * config/aarch64/aarch64-simd-builtins.def
780         (sqrdmlah, sqrdmlsh): New.
781         (sqrdmlah_lane, sqrdmlsh_lane): New.
782         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
784 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
786         * config/aarch64/aarch64-simd.md
787         (aarch64_sqmovun<mode>): Fix some white-space.
788         (aarch64_<sur>qmovun<mode>): Likewise.
789         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
790         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
791         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
792         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
793         (UNSPEC_SQRDMLSH): New.
794         (SQRDMLH_AS): New.
795         (rdma_as): New.
797 2015-11-26  Richard Biener  <rguenther@suse.de>
799         PR tree-optimization/66721
800         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
801         iteration cost earlier.  Re-do analysis without SLP when
802         vectorization using SLP fails and without has a chance to succeed.
804 2015-11-26  Richard Biener  <rguenther@suse.de>
806         * genmatch.c (dt_simplify::gen_1): For generic wrap all
807         multi-result-use captures in a SAVE_EXPR.
809 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
811         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
812         (TARGET_SIMD_RDMA): New.
814 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
816         * combine.c (subst): Do not return clobber of zero in widening mult
817         case.  Just return x unchanged if it is a no-op substitution.
819 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
821         PR target/68416
822         * config/i386/i386.h (enum reg_class): Add
823         bounds registers to ALL_REGS.
825 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
827         PR tree-optimization/68128
828         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
829         * gimplify.c: Include gimple-walk.h.
830         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
831         (omp_notice_variable): Set flags to n->value if n already
832         exists in target region, but we need to jump to do_outer.
833         (omp_shared_to_firstprivate_optimizable_decl_p,
834         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
835         functions.
836         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
837         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
838         not modified in the body.  Call omp_mark_stores for outer
839         contexts on OMP_CLAUSE_SHARED clauses if they could be written
840         in the body or on OMP_CLAUSE_LASTPRIVATE.
841         (gimplify_adjust_omp_clauses): Add body argument, call
842         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
843         Set OMP_CLAUSE_SHARED_READONLY
844         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
845         not modified in the body.  Call omp_mark_stores for outer
846         contexts on OMP_CLAUSE_SHARED clauses if they could be written
847         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
848         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
849         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
850         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
851         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
852         * tree-nested.c (convert_nonlocal_omp_clauses,
853         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
854         non-local vars or local vars referenced from nested routines.
855         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
856         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
857         TREE_READONLY, don't call use_pointer_for_field with non-NULL
858         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
860 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
862         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
863         about signed left shift stronger and clarify the cases when they're
864         broken.
866 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
867             Bernd Schmidt  <bschmidt@redhat.com>
869         PR rtl-optimization/67226
870         * calls.c (store_one_arg): Take into account
871         crtl->args.pretend_args_size when checking for overlap between
872         arg->value and argblock + arg->locate.offset during sibcall
873         optimization.
875 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
877         * config/aarch64/aarch64.md (cbranch<mode>4): Use
878         aarch64_fp_compare_operand.
879         (store_pairsf): Use aarch64_reg_or_fp_zero.
880         (store_pairdf): Likewise.
881         (cstore<mode>4): Use aarch64_fp_compare_operand.
882         (cmov<mode>6): Likewise.
883         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
885 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
886             Sebastian Pop  <s.pop@samsung.com>
888         PR tree-optimization/68453
889         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
890         not redirect edges already pointing to their destination.
891         (translate_isl_ast_node_for): Split edges after loops to create
892         basic blocks for close phi nodes.  Save merge points at the end of
893         a loop guard.
894         (translate_isl_ast_node_if): Save merge points at the end of the
895         if region.
896         (add_close_phis_to_outer_loops): New.
897         (add_close_phis_to_merge_points): New.
898         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
899         (copy_bb_and_scalar_dependences): Do not split basic blocks on
900         loop close phi locations.
902 2015-11-25  Jan Hubicka  <jh@suse.cz>
904         * ipa-visibility.c (cgraph_externally_visible_p,
905         varpool_node::externally_visible_p): When doing incremental linking,
906         hidden symbols may be still used later.
907         (update_visibility_by_resolution_info): Do not drop weak during
908         incremental link.
909         (function_and_variable_visibility): Fix formating.
910         * flag-types.h (lto_linker_output): Declare.
911         * common.opt 9flag_incremental_link): New flag.
913 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
915         * config/rs6000/constraints.md (wb constraint): New constraint for
916         ISA 3.0 d-form scalar addressing.
918         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
919         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
920         Altivec registers.  Add wb constraint for Altivec registers with
921         D-form addressing.  If we have ISA 3.0 d-form support, undo
922         secondary reload support for using FPR registers if we want to do
923         D-form addressing.
924         (rs6000_debug_reg_global): Likewise.
925         (rs6000_setup_reg_addr_masks): Likewise.
926         (rs6000_init_hard_regno_mode_ok): Likewise.
927         (rs6000_secondary_reload): Likewise.
928         (rs6000_preferred_reload_class): Likewise.
929         (rs6000_secondary_reload_class): Likewise.
931         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
932         constraint.
934         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
935         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
936         (f32_lm2): Likewise.
937         (f32_li2): Likewise.
938         (f32_sr2): Likewise.
939         (f32_sm2): Likewise.
940         (f32_si2): Likewise.
941         (f64_p9): Likewise.
942         (extendsfdf2_fpr): Likewise.
943         (mov<mode>_hardfloat): Likewise.
944         (mov<mode>_hardfloat32): Likewise.
945         (mov<mode>_hardfloat64): Likewise.
947         * doc/md.texi (RS/6000 constraints): Document wb constraint.
948         Fixup we constraint documentation.
950 2015-11-25  Tom de Vries  <tom@codesourcery.com>
952         * omp-low.c (pass_expand_omp_ssa::clone): New function.
953         * passes.def: Add pass_oacc_kernels pass group.
954         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
956 2015-11-25  Tom de Vries  <tom@codesourcery.com>
958         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
959         Declare.
960         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
961         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
962         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
963         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
965 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
967         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
968         TV_IPA_LTO_OUTPUT): New.
969         * lto-compress.c: Include timevar.h
970         (lto_end_compression, lto_end_uncompression): Add timers.
971         * langhooks.c: Include timevar.h
972         (lhd_append_data): Add timer.
974 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
976         * varasm.c (default_elf_asm_output_limited_string,
977         default_elf_asm_output_ascii): Replace fprintf by putc.
979 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
981         PR rtl-optimization/67954
982         * lra-constraints.c (curr_insn_transform): Add check on scratch
983         pseudo when change class to NO_REGS.  Add an assert.
985 2015-11-25  Nathan Sidwell  <nathan@acm.org>
987         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
988         constraint is 'n'.
989         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
990         number.
991         (nvptx_write_function_decl): Number args from 0.
992         (nvptx_declare_function_name): Likewise.
993         (nvptx_function_incoming_arg): Likewise.
994         (nvptx_output_call_insn): Correct formatting.
996 2015-11-25  David Sherwood  <david.sherwood@arm.com>
998         * optabs.def: Add new optabs fmax_optab/fmin_optab.
999         * internal-fn.def: Add new fmax/fmin internal functions.
1000         * doc/md.texi: Add fmin and fmax patterns.
1002 2015-11-25  Jason Merrill  <jason@redhat.com>
1004         PR c++/68385
1005         * tree.c (integer_zerop, integer_onep, integer_each_onep)
1006         (integer_all_onesp, integer_minus_onep, integer_pow2p)
1007         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1008         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1010 2015-11-25  Richard Biener  <rguenther@suse.de>
1012         PR middle-end/68528
1013         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1014         on stripped operands.
1016 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1018         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1019         (nvptx_declare_function_name): Move assignments next to register
1020         declarations, and process params here.
1022 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
1024         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1025         both the symbol and the "dot" symbol for function descriptors. Fix
1026         inversion for rename of symbols with dollar sign.
1028 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1030         * cfgloop.c (find_single_latch): New function, factored out of ...
1031         (flow_loops_find): ... here.
1032         (verify_loop_structure): Improve verification of loop->latch.
1033         * cfgloop.h (find_single_latch): Declare.
1034         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1036 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1038         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1039         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1040         (STARTFILE_SPEC): Use %(startfile_vtv).
1041         (ENDFILE_SPEC): Use %(endfile_vtv).
1042         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1043         ENDFILE_VTV_SPEC.
1045         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1047 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
1049         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1050         noce_can_store_speculate): Delete.
1051         (noce_process_if_block): Don't try to handle single MEM stores.
1052         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1053         * alias.c (memory_must_be_modified_in_insn_p): Delete.
1055 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1057         PR rtl-optimization/68435
1058         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1059         for conflicts between a, b and the set destinations.
1061 2015-11-25  Richard Biener  <rguenther@suse.de>
1063         PR tree-optimization/68517
1064         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1065         Properly handle zero-sized types.
1067 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1069         * ipa-inline-analysis.c: Include gimplify.h
1070         (set_cond_stmt_execution_predicate,
1071         set_switch_stmt_execution_predicate): Be sure to not leak locations
1072         to function body.
1074 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
1076         PR target/67089
1077         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1078         match_uaddsub_overflow): New functions.
1079         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1081 2015-11-25  Richard Biener  <rguenther@suse.de>
1083         PR tree-optimization/68492
1084         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1085         op from scalars after operand swapping.
1087 2015-11-25  Richard Biener  <rguenther@suse.de>
1089         PR tree-optimization/68502
1090         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1091         check that the step is a multiple of the type size.
1093 2015-11-24  Michael Collison  <michael.collison@linaro.org>
1095         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1096         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1097         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1099 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
1101         * frame-header-opt.c (gate): Check for optimize > 0.
1102         (has_inlined_assembly): New function.
1103         (needs_frame_header_p): Remove is_leaf_function check,
1104         add argument type check.
1105         (callees_functions_use_frame_header): Add is_leaf_function
1106         and has_inlined_assembly calls..
1107         (set_callers_may_not_allocate_frame): New function.
1108         (frame_header_opt): Add is_leaf_function call, add
1109         set_callers_may_not_allocate_frame call.
1110         * config/mips/mips.c (mips_compute_frame_info): Add check
1111         to see if callee saved regs can be put in frame header.
1112         (mips_expand_prologue): Add check to see if step1 is zero,
1113         fix cfa restores when using frame header to store regs.
1114         (mips_can_use_return_insn): Check to see if registers are
1115         stored in frame header.
1116         * config/mips/mips.h (machine_function): Add
1117         callers_may_not_allocate_frame and
1118         use_frame_header_for_callee_saved_regs fields.
1120 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1122         PR rtl-optimization/68520
1123         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1124         its bit was already set in BB_WITH.
1126 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1128         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1129         double check that type is main variant.
1130         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1131         variant.
1132         (verify_type_variant): Verify that variants have no
1133         TYPE_ALIAS_SET_KNOWN_P set
1134         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1135         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1136         only for main variants; stream TYPE_ALIAS_SET as a bit.
1137         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1138         accordingly.
1140 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1142         * tree.c (make_vector_type): Properly compute canonical type of the
1143         main variant.
1144         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1145         a main variant.
1147 2015-11-24  Nathan Sidwell  <nathan@acm.org>
1149         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1150         VOIDmode, don't alter incoming mode.
1151         (nvptx_split_reg_p): Delete.
1152         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1153         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1154         maybe_split_mode calls.
1155         (nvptx_print_operand): Use maybe_split_mode.
1157 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1159         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1160         only for types where LTO sets them.
1161         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1162         (make_vector_type): Likewise.
1163         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1164         * tree.h (canonical_type_used_p): New inline.
1165         * alias.c (get_alias_set): Handle structural equality for all
1166         types that pass canonical_type_used_p.
1167         (record_component_aliases): Look through all types with
1168         record_component_aliases for possible pointers; sanity check that
1169         the alias sets match.
1171 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1173         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1175 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1177         * tree.c (free_node): New function.
1178         (type_hash_canon): Use it.
1179         * tree.h (free_node): Declare.
1181 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
1182             Michael Meissner  <meissner@linux.vnet.ibm.com>
1184         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1185         (Fv2): New mode attribute to be used when ISA 2.07 instructions
1186         are used on SF values, and ISA 2.06 instructions on DF values.
1187         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1188         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1189         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1190         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1191         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1192         (fre<Fs>): Use <Fv2> instead of <Fv>.
1193         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1194         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1195         (xsrdpi<mode>): Add support for the lround function.
1196         (lround<mode>di2): Likewise.
1197         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1198         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1199         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1200         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1202 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1203             Sebastian Pop  <s.pop@samsung.com>
1205         PR tree-optimization/67984
1206         * graphite-isl-ast-to-gimple.c (is_constant): New.
1207         (get_rename): Call is_constant.
1208         (get_new_name): Same.
1210 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1211             Sebastian Pop  <s.pop@samsung.com>
1213         * graphite-dependences.c: Only include graphite.h.
1214         * graphite-isl-ast-to-gimple.c: Same.
1215         * graphite-optimize-isl.c: Same.
1216         * graphite-poly.c: Same.
1217         * graphite-scop-detection.c: Same.
1218         * graphite-sese-to-poly.c: Same.
1219         * graphite.c: Same.
1220         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1221         * graphite-poly.h: Same.
1222         * graphite-scop-detection.h: Same.
1223         * graphite.h: New.
1225 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
1227         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1228         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
1229         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1230         function already takes care of checking what it can emit.
1232 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1234         * doc/invoke.texi (-fpic): Add the AArch64 limit.
1235         (-fPIC): Add AArch64.
1237 2015-11-24  Tom de Vries  <tom@codesourcery.com>
1239         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1240         (pass_lim::execute): Allow to run outside pass_tree_loop.
1242 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
1244         * config/aarch64/aarch64.md (add<mode>3):
1245         Block early expansion into 2 add instructions.
1246         (add<mode>3_pluslong): New pattern to combine complex
1247         immediates into 2 additions.
1249 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1251         PR target/66217
1252         PR target/67677
1253         PR target/68332
1254         * config/rs6000/predicates.md (and_operand): Check that the operand
1255         is a const_int before calling rs6000_is_valid_and_mask.
1257 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1259         * config/aarch64/aarch64.md (*condjump): Rename to...
1260         (condjump): ... This.
1261         (*compare_condjump<mode>): New define_insn_and_split.
1262         (*compare_cstore<mode>_insn): Likewise.
1263         (*cstore<mode>_insn): Rename to...
1264         (cstore<mode>_insn): ... This.
1265         * config/aarch64/iterators.md (CMP): Handle ne code.
1266         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1268 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
1270         PR target/68497
1271         * config/i386/i386.c (output_387_binary_op): Fix assertion for
1272         -fno-checking case.
1274 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1276         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1277         (val_ssa_equiv_hash_traits::remove): Likewise.
1278         (pass_uncprop::execute): Adjust.
1280 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1282         * hash-map-traits.h (simple_hashmap_traits ::remove): call
1283         destructors on values that are being removed.
1284         * mem-stats.h (hash_map): Pass type of values to
1285         simple_hashmap_traits.
1286         * tree-sra.c (sra_deinitialize): Remove work around for hash
1287         maps not destructing values.
1288         * genmatch.c (sinfo_hashmap_traits): Adjust.
1289         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1291 2015-11-24  Richard Biener  <rguenther@suse.de>
1292             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1294         PR middle-end/68375
1295         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1296         bogus assertion.
1298 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
1300         PR target/68483
1301         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1302         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1303         returns false.
1304         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1305         whenever first is nelt or above.  Don't mask expected with
1306         2 * nelt - 1.
1308 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1310         PR c/68337
1311         * gimple-fold.c: Include ipa-chkp.h.
1312         (gimple_fold_builtin_memory_op): Don't fold call if we
1313         are going to instrument it and it may copy pointers.
1315 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
1316             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1318         PR rtl-optimization/68194
1319         PR rtl-optimization/68328
1320         PR rtl-optimization/68185
1321         * ree.c (combine_reaching_defs): Reject copy_needed case if
1322         copies_list is not empty.
1324 2015-11-24  Richard Biener  <rguenther@suse.de>
1326         PR middle-end/68221
1327         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1328         use mem_ref_offset.
1330 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1332         PR rtl-optimization/68381
1333         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1334         is poisoned.
1336 2015-11-23  Nick Clifton  <nickc@redhat.com>
1337             Jeff Law  <law@redhat.com>
1339         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1340         the source/dest of the target extension require a different number of
1341         hard registers.
1342         (combine_set_extension): Remove #if 0 code.
1344 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1345             Sebastian Pop  <s.pop@samsung.com>
1347         PR tree-optimization/68314
1348         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1349         * graphite-poly.c (new_scop): Remove original_schedule.
1350         (free_scop): Same.
1351         * graphite-poly.h (struct scop): Same.
1352         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1353         (build_pbb_scattering_polyhedrons): Add back.
1354         (build_scop_minimal_scattering): Remove.
1355         (build_scop_scattering): Add back.
1356         (build_scop_original_schedule): Remove.
1357         (build_poly_scop): Revert to only call build_scop_scattering.
1359 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1360             Sebastian Pop  <s.pop@samsung.com>
1362         PR tree-optimization/68493
1363         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1364         missing early return when codegen_error is set.
1366 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1367             Sebastian Pop  <s.pop@samsung.com>
1369         PR tree-optimization/68279
1370         * graphite-poly.c (new_scop): Remove poly_scop_p.
1371         * graphite-poly.h (struct scop): Same.
1372         (build_poly_scop): Declare.
1373         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1374         (cleanup_loop_iter_dom): New.
1375         (build_loop_iteration_domains): Early return when scev analysis fails.
1376         (create_pw_aff_from_tree): Same.
1377         (add_condition_to_pbb): Same.
1378         (add_conditions_to_domain): Same.
1379         (add_conditions_to_constraints): Same.
1380         (build_scop_iteration_domain): Same.
1381         (build_poly_scop): Same.  Do not initialize poly_scop_p.
1382         * graphite-sese-to-poly.h: Remove.
1383         * graphite.c: Do not include graphite-sese-to-poly.h.
1384         (graphite_transform_loops): Stop before code generation when
1385         build_poly_scop fails.
1386         * sese.c (scalar_evolution_in_region): Add fixme note about scev
1387         analysis.
1389 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1390             Sebastian Pop  <s.pop@samsung.com>
1392         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1393         Remove call to update_ssa.
1394         * sese.c (sese_insert_phis_for_liveouts): Same.
1396 2015-11-23  Marek Polacek  <polacek@redhat.com>
1398         PR tree-optimization/68455
1399         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1400         extract_range_from_multiplicative_op_1 on symbolic ranges.
1402 2015-11-23  Richard Henderson  <rth@redhat.com>
1404         * optabs.def (uaddv4_optab, usubv4_optab): New.
1405         * internal-fn.c (expand_addsub_overflow): Use them.
1406         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1408         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1409         to reversed operands.
1410         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1411         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1412         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1413         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1414         (*add<SWI>3_cconly_overflow_2): New.
1415         (*add<SWI>3_cc_overflow_2): New.
1416         (*addsi3_zext_cc_overflow_2): New.
1418 2015-11-23  Richard Biener  <rguenther@suse.de>
1420         PR tree-optimization/68465
1421         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1422         Also record equalities from multiple predecessor blocks if
1423         only one non-backedge exists.
1425 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1427         PR target/68363
1428         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1429         that are not INSN_P.
1431 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
1433         * config/aarch64/aarch64-builtins.c
1434         (aarch64_gimple_fold_builtin): Fold FMULX.
1436 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
1438         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1439         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
1440         after GCC header files and before graphite header files.
1441         * graphite-dependences.c: Same.
1442         * graphite-isl-ast-to-gimple.c: Same.
1443         * graphite-optimize-isl.c: Same.
1444         * graphite-poly.c: Same.
1445         * graphite-scop-detection.c: Same.
1446         * graphite-sese-to-poly.c: Same.
1447         * graphite.c: Same.
1449 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
1450             Jiong Wang  <jiong.wang@arm.com>
1452         PR tree-optimization/68317
1453         PR tree-optimization/68326
1454         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1455         final min and max are not infinity.
1457 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
1458             Richard Biener  <rguenther@suse.de>
1460         PR tree-optimization/68327
1461         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1462         compute vectype for non-relevant mask producers.
1463         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1464         relevance earlier.
1466 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1468         PR tree-optimization/68460
1469         * tree-parloops.c (gather_scalar_reductions): Also call
1470         free_stmt_vec_info_vec if simple_loop_info == NULL.
1472 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1474         * opts.c (finish_options): Allow -fsanitize-recover=address for
1475         userspace sanitization.
1476         * asan.c (asan_expand_check_ifn): Redefine recover_p.
1477         * doc/invoke.texi (fsanitize-recover): Update documentation.
1479 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1481         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1483 2015-11-23  Richard Biener  <rguenther@suse.de>
1485         PR tree-optimization/68445
1486         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1487         two different strides.
1489 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1491         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1492         * config/s390/s390.c (s390_check_symref_alignment): Use new
1493         symref flags, early abort on wrong alignment
1494         (s390_secondary_reload): Use new symref flags.
1495         (s390_encode_section_info): Likewise.
1496         * config/s390/predicates.md: Likewise.
1498 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1500         PR target/68390
1501         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1502         for indirect function call.
1504 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
1506         * config/aarch64/aarch64-simd.md
1507         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1508         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1509         (*aarch64_mulx_elt_to_64v2df): Likewise.
1510         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1511         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1512         (vmulx_lane_f64): Likewise.
1513         (vmulxq_lane_f32): Refactored & moved.
1514         (vmulxq_lane_f64): Likewise.
1515         (vmulx_laneq_f32): New.
1516         (vmulx_laneq_f64): Likewise.
1517         (vmulxq_laneq_f32): Likewise.
1518         (vmulxq_laneq_f64): Likewise.
1519         (vmulxs_lane_f32): Likewise.
1520         (vmulxs_laneq_f32): Likewise.
1521         (vmulxd_lane_f64): Likewise.
1522         (vmulxd_laneq_f64): Likewise.
1524 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
1526         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1527         In LTO we do not compute TYPE_CANONICAL of pointers.
1528         (gimple_canonical_types_compatible_p): Improve coments; sanity check
1529         that pointers do not have canonical type that would make us believe
1530         they are different.
1531         * alias.c (get_alias_set): Do structural type equality on pointers;
1532         enable pointer path for LTO; also glob pointer to vector with pointer
1533         to vector element; glob pointers and references for LTO; do more strict
1534         sanity checking about build_pointer_type returning the canonical type
1535         which is also the main variant.
1536         (record_component_aliases): When component type is pointer and we
1537         do LTO; record void_type_node alias set.
1539 2015-11-21  Nathan Sidwell  <nathan@acm.org>
1541         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1543         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1544         leading blank line.
1545         (write_func_decl_from_insn): Likewise.
1546         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1547         (nvptx_file_end): Likewise.
1548         (nvptx_function_end): Undent output.
1549         (nvptx_expand_call): Fix formatting.
1550         (nvptx_output_call_insn): Indent output.
1551         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1552         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1554 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
1556         PR debug/66432
1557         * tree-inline.c (copy_debug_stmt): If
1558         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1559         in decl_debug_args, don't call remap_gimple_op_r on it.
1561 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1563         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1564         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1565         Check that all record types are complete.
1566         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1567         compare alias sets for types w/o alias sets.
1569 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1571         * config/sparc/sparc.md (umulxhi_vis): Move around.
1572         (*umulxhi_sp64): Likewise.
1573         (umulxhi_v8plus): Likewise.
1574         (xmulx_vis): Likewise.
1575         (*xmulx_sp64): Likewise.
1576         (xmulx_v8plus): Likewise.
1577         (xmulxhi_vis): Likewise.
1578         (*xmulxhi_sp64): Likewise.
1579         (xmulxhi_v8plus): Likewise.
1581 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1583         PR 62314
1584         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1585         (class layout): Update comment
1586         (layout::print_any_fixits): New method.
1587         (layout::move_to_column): New method.
1588         (diagnostic_show_locus): Add call to layout.print_any_fixits.
1590 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
1592         PR middle-end/68221
1593         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1594         has non-zero bias, subtract it in integer type instead of
1595         pointer plus of negated bias.
1597         PR middle-end/68339
1598         * omp-low.c (expand_simd_clones): Call node->get_body () before
1599         allocating stuff in GC.
1601 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
1603         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1605 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
1607         * config/aarch64/aarch64.md (predicated): Copy attribute from
1608         "arm.md".
1609         * config/arm/arm.md (predicated): Added description.
1611 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1613         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1614         for unaligned_access.
1615         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1616         from matching condition.
1617         (unaligned_loadhis): Likewise.
1618         (unaligned_loadhiu): Likewise.
1619         (unaligned_storesi): Likewise.
1620         (unaligned_storehi): Likewise.
1622 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1624         PR target/68149
1625         * config/arm/arm.md (unaligned_loaddi): Delete.
1626         (unaligned_storedi): Likewise.
1627         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1628         unaligned DImode memory ops.  Instead perform two back-to-back
1629         unaligned SImode ops.
1631 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
1632             James Norris  <jnorris@codesourcery.com>
1634         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1635         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1637 2015-11-20  Alan Hayward <alan.hayward@arm.com>
1639         PR tree-optimization/68413
1640         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1641         evolution base
1642         (vectorizable_reduction): Use cached base
1644 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1646         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1647         dump-file string.
1648         (try_create_reduction_list): Same.  Fix typo in dump-file string.
1650 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1652         * doc/md.texi (Standard Names): Move entry for addptr3 around,
1653         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1654         glitch in entries for cbranch4 and jump.
1656 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1658         PR tree-optimization/68373
1659         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1660         of ...
1661         (scev_const_prop): ... here.
1662         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1663         * tree-parloops.c (try_create_reduction_list): Call
1664         final_value_replacement_loop.
1666 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
1668         PR tree-optimization/52272
1669         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1670         (struct iv_common_cand_hasher): New struct.
1671         (iv_common_cand_hasher::hash): New function.
1672         (iv_common_cand_hasher::equal): New function.
1673         (struct ivopts_data): New fields, iv_common_cand_tab and
1674         iv_common_cands.
1675         (tree_ssa_iv_optimize_init): Initialize above fields.
1676         (record_common_cand, common_cand_cmp): New functions.
1677         (add_iv_candidate_derived_from_uses): New function.
1678         (add_iv_candidate_for_use): Record iv_common_cands derived from
1679         iv use in hash table, instead of adding candidates directly.
1680         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1681         (record_important_candidates): Add important candidates to iv uses'
1682         related_cands.  Always keep related_cands for future use.
1683         (try_add_cand_for): Use iv uses' related_cands.
1684         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1685         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1687 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1689         * config/s390/s390.md ("bswaphi2"): New pattern.
1691 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1693         * config/s390/s390.md (GPR1_REGNUM): New constant.
1694         ("*trunc<BFP:mode><DFP_ALL:mode>2")
1695         ("*trunc<DFP_ALL:mode><BFP:mode>2")
1696         ("trunc<BFP:mode><DFP_ALL:mode>2")
1697         ("trunc<DFP_ALL:mode><BFP:mode>2")
1698         ("*extend<BFP:mode><DFP_ALL:mode>2")
1699         ("*extend<DFP_ALL:mode><BFP:mode>2")
1700         ("extend<BFP:mode><DFP_ALL:mode>2")
1701         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1703 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1704             Sebastian Pop  <s.pop@samsung.com>
1706         PR tree-optimization/68428
1707         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1708         over basic blocks outside the scop.
1710 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1711             Sebastian Pop  <s.pop@samsung.com>
1713         PR tree-optimization/68341
1714         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1715         gcc_unreachable and safely fail codegen.
1716         (copy_loop_close_phi_args): Do not insert merge phis in a basic
1717         block with loop phi nodes.
1718         (edge_for_new_close_phis): New.
1719         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1721 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1723         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1724         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1725         (nvptx_declare_objec_name): Likewise.
1727 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1729         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1730         (get_false_edge_from_guard_bb): Move...
1731         * sese.c (get_false_edge_from_guard_bb)
1732         (get_true_edge_from_guard_bb): ... here.
1734 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
1736         Revert
1737         2015-11-18  Alan Modra  <amodra@gmail.com>
1739         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1740         type-limits warning.
1743 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1745         * tree.h (desired_pro_or_demotion_p): New function.
1746         * tree-vrp.c (simplify_cond_using_ranges): Call it.
1748 2015-11-19  Michael Matz  <matz@suse.de>
1750         * fwprop.c (update_uses): Use flag_checking instead of
1751         gcc_checking_assert.
1753 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1755         * doc/gty.texi (Support for inheritance): Fix missing
1756         parentheses in example.
1758 2015-11-19  Marek Polacek  <polacek@redhat.com>
1760         PR tree-optimization/68431
1761         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1763 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1765         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1766         atomic_exchange<mode>): Input values can be immediates.
1768 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1770         PR lto/61313
1771         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1772         by the user.
1773         * configure: Regenerate.
1775 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1777         PR target/68408
1778         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1779         (DTORS_SECTION_ASM_OP): Likewise.
1781 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1783         PR rtl-optimization/68376
1784         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1785         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1787 2015-11-19  Richard Biener  <rguenther@suse.de>
1789         PR middle-end/68117
1790         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1791         redirect_edge_var_map_destroy.
1793 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1795         PR target/67770
1796         * config/i386/i386.md (simple_return): Disable if
1797         ix86_static_chain_on_stack is true.
1799 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1801         PR bootstrap/68393
1802         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1803         destinations.
1805 2015-11-18  Jeff Law  <law@redhat.com>
1807         PR tree-optimization/68198
1808         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1809         between threading a multi-way branch and a thread path that contains
1810         a multi-way branch.  Disallow the case where a path contains a
1811         multi-way branch and does not thread a multi-way branch.
1812         (thread_through_all_blocks): Update comment.
1814 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
1816         PR c/65083
1817         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1818         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1819         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1820         functions before defining as macros.
1822 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1824         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1825         (nvptx_record_offload_symbol): Remove code compensating for lack
1826         of default dimension handling.
1827         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1829 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1831         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1832         type to bool for early exit.
1833         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1834         in case of error.
1835         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1836         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1837         predecessor dominates the other.
1838         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1839         element is not found it returns -1.
1840         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1841         out early when codegen fails.
1842         (graphite_regenerate_ast_isl): Remove codegen region when pending
1843         phis could not be generated.
1845 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1847         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1848         semicolon.
1849         (class translate_isl_ast_to_gimple): Indentation.
1850         (translate_pending_phi_nodes): Comment.
1851         (add_parameters_to_ivs_params): Moved from sese.c inside class
1852         translate_isl_ast_to_gimple.
1853         (get_max_schedule_dimensions): Same.
1854         (generate_isl_context): Same.
1855         (extend_schedule): Same.
1856         (generate_isl_schedule): Same.
1857         (set_options): Same.
1858         (scop_to_isl_ast): Same.
1859         (is_valid_rename): Same.
1860         (get_rename): Same.
1861         (get_rename_from_scev): Same.
1862         (get_def_bb_for_const): Same.
1863         (get_new_name): Same.
1864         (collect_all_ssa_names): Same.
1865         (copy_loop_phi_args): Same.
1866         (copy_loop_phi_nodes): Same.
1867         (copy_loop_close_phi_args): Same.
1868         (copy_loop_close_phi_nodes): Same.
1869         (copy_cond_phi_args): Same.
1870         (copy_cond_phi_nodes): Same.
1871         (graphite_copy_stmts_from_block): Same.
1872         (copy_bb_and_scalar_dependences): Same.
1873         (add_phi_arg_for_new_expr): Same.
1874         (rename_uses): Same.
1875         (set_rename): Same.
1876         (set_rename_for_each_def): Same.
1877         (gsi_insert_earliest): Same.
1878         (rename_all_uses): Same.
1879         (codegen_error_p): Same.
1880         (print_isl_ast_node): Same.
1881         (translate_isl_ast_for_loop): Call function codegen_error_p.
1882         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1883         (translate_isl_ast_node_user): Make nb_loops const and release
1884         iv_map before exit.
1885         (get_true_edge_from_guard_bb): Move all free-functions early.
1886         (get_false_edge_from_guard_bb): Same.
1887         (bb_contains_loop_close_phi_nodes): Same.
1888         (bb_contains_loop_phi_nodes): Same.
1889         (is_loop_closed_ssa_use):  Same.
1890         (number_of_phi_nodes): Same.
1891         (phi_uses_name): Same.
1892         (later_of_the_two): Same.
1893         (substitute_ssa_name):
1894         (get_edges): Same.
1895         (get_loc): Same.
1896         (get_loop_init_value): Same.
1897         (find_init_value): Same.
1898         (find_init_value_close_phi): Same.
1899         (ast_build_before_for): Same.
1900         (graphite_regenerate_ast_isl): Formatting changes.
1901         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1902         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1903         (set_rename): Same.
1904         (gsi_insert_earliest): Same.
1905         (collect_all_ssa_names): Same.
1906         (rename_all_uses): Same.
1907         (rename_uses): Same.
1908         (get_def_bb_for_const): Same.
1909         (copy_loop_phi_nodes): Same.
1910         (copy_loop_close_phi_args): Same.
1911         (copy_loop_close_phi_nodes): Same.
1912         (copy_cond_phi_args): Same.
1913         (copy_cond_phi_nodes): Same.
1914         (set_rename_for_each_def): Same.
1915         (graphite_copy_stmts_from_block): Same.
1916         (copy_bb_and_scalar_dependences): Same.
1917         (if_region_set_false_region): Same.
1918         (scev_analyzable_p): Same.
1919         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1921 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
1923         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1924         commit from r125920 for FreeBSD.
1926 2015-11-18  Jason Merrill  <jason@redhat.com>
1928         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1929         to be vecs of vecs.
1930         (add_finalizer): Split out from ggc_internal_alloc.
1931         (ggc_handle_finalizers): Run finalizers for the current depth.
1932         (init_ggc, ggc_pch_read): Reserve space for finalizers.
1934 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
1936         PR target/68410
1937         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1938         from || expression.
1940 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1942         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1943         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1944         and atmega328pb.
1945         * doc/avr-mmcu.texi: Regenerate.
1947 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1949         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1950         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1951         (struct bb_sese): New struct.
1952         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1953         (BB_GET_SESE, BB_SET_SESE): Define.
1954         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1955         (nvptx_find_sese): New.
1956         (nvptx_neuter_pars): Find SESE regions when optimizing.
1958 2015-11-18  Alan Modra  <amodra@gmail.com>
1960         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1961         type-limits warning.
1963 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1965         PR bootstrap/68406
1966         * hash-set.h (hash_set::traverse): Expand Key typedef.
1968 2015-11-18  Martin Liska  <mliska@suse.cz>
1970         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1971         options struct.
1973 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1975         * config/nvptx/nvptx.c (global_lock_var): New.
1976         (nvptx_global_lock_addr): New.
1977         (nvptx_lockless_update): Recomment and adjust for clarity.
1978         (nvptx_lockfull_update): New.
1979         (nvptx_reduction_update): New.
1980         (nvptx_goacc_reduction_fini): Call it.
1982 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
1984         * regrename.h (struct du_head): Add target_data_1 and target_data_2
1985         fields.
1986         * regrename.c (create_new_chain): Clear entire struct after allocating.
1988         * config/i386/i386.opt (mmitigate-rop): New option.
1989         * doc/invoke.texi (mmitigate-rop): Document.
1990         * config/i386/i386.c: Include "regrename.h".
1991         (ix86_rop_should_change_byte_p, reg_encoded_number,
1992         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1993         static functions.
1994         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1995         * config/i386/i386.md (attr "modrm_class"): New.
1996         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1997         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1998         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2000 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2002         PR target/68405
2003         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2005 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
2007         PR tree-optimization/68157
2008         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2009         pow_stmt or mul_stmt from stmt's uid.
2010         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2012 2015-11-18  Martin Liska  <mliska@suse.cz>
2014         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2016 2015-11-18  Martin Liska  <mliska@suse.cz>
2018         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2019         Fix GNU coding style.
2020         (find_def_preds): Use auto_vec.
2021         (destroy_predicate_vecs): Change signature of the function.
2022         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2023         new signature.
2024         (simplify_preds_4): Use destroy_predicate_vecs instread of
2025         just releasing preds vector.
2026         (normalize_preds): Likewise.
2027         (is_use_properly_guarded): Use new signature of
2028         destroy_predicate_vecs.
2029         (find_uninit_use): Likewise.
2031 2015-11-18  Richard Biener  <rguenther@suse.de>
2033         PR tree-optimization/67790
2034         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2035         IL rewrite for MINUS_EXPR reductions, rename back to ...
2036         (vect_is_simple_reduction): ... this, removing the wrapper.
2037         (vect_force_simple_reduction): Adjust.
2038         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2039         reductions and make use if reduc_index in all places.  For
2040         the final reduction of MINUS_EXPR use PLUS_EXPR.
2042 2015-11-18  Alan Modra  <amodra@gmail.com>
2044         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2045         to ld.
2046         * configure: Regenerate.
2048 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2050         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2052 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2054         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2055         uses of ssa_name with constant.
2057 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2059         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2060         something changed.
2062 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2064         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2065         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2066         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2068 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
2070         * regrename.c (regrename_find_superclass): New function, code moved
2071         from ...
2072         (rename_chains): ... here.  Call it.
2073         * regrename.h (regrename_find_superclass): Declare.
2075         * regrename.c (record_out_operands): Terminate earlyclobbered
2076         operands here.
2078         PR target/66785
2079         * regrename.c (record_operand_use): Keep track of failed operands
2080         and stop appending if we see any.
2081         * regrename.h (struct operand_rr_info): Add a failed field and shrink
2082         n_chains to short.
2084 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2086         PR 48568
2087         * doc/extend.texi (Common Function Attributes) [visibility]:
2088         Add cross-references to matching variable and type attributes.
2089         (Common Variable Attributes) [visibility]: Add missing entry.
2091 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2093         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2094         entries that map directly to optabs.
2096 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2098         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2099         entries that map directly to optabs.
2101 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2103         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2104         * internal-fn.c (direct_internal_fn_array): Update accordingly.
2105         * tree-vectorizer.h (vectorizable_function): Delete.
2106         * tree-vect-stmts.c: Include internal-fn.h.
2107         (vectorizable_internal_function): New function.
2108         (vectorizable_function): Inline into...
2109         (vectorizable_call): ...here.  Explicitly reject calls that read
2110         from or write to memory.  Try using an internal function before
2111         falling back on the old vectorizable_function behavior.
2113 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2115         * target.def (builtin_vectorized_function): Take a combined_fn (in
2116         the form of an unsigned int) rather than a function decl.
2117         (builtin_md_vectorized_function): New.
2118         * targhooks.h (default_builtin_vectorized_function): Replace the
2119         fndecl argument with an unsigned int.
2120         (default_builtin_md_vectorized_function): Declare.
2121         * targhooks.c (default_builtin_vectorized_function): Replace the
2122         fndecl argument with an unsigned int.
2123         (default_builtin_md_vectorized_function): New function.
2124         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2125         New hook.
2126         * doc/tm.texi: Regenerate.
2127         * tree-vect-stmts.c (vectorizable_function): Update call to
2128         builtin_vectorized_function, also passing internal functions.
2129         Call builtin_md_vectorized_function for target-specific builtins.
2130         * config/aarch64/aarch64-protos.h
2131         (aarch64_builtin_vectorized_function): Replace fndecl argument
2132         with an unsigned int.
2133         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2134         (aarch64_builtin_vectorized_function): Update after above changes.
2135         Use CASE_CFN_*.
2136         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2137         fndecl argument with an unsigned int.
2138         * config/arm/arm-builtins.c: Include case-cfn-macros.h
2139         (arm_builtin_vectorized_function): Update after above changes.
2140         Use CASE_CFN_*.
2141         * config/i386/i386.c: Include case-cfn-macros.h
2142         (ix86_veclib_handler): Take a combined_fn rather than a
2143         built_in_function.
2144         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
2145         mathfn_built_in rather than calling builtin_decl_implicit directly.
2146         (ix86_builtin_vectorized_function) Update after above changes.
2147         Use CASE_CFN_*.
2148         * config/rs6000/rs6000.c: Include case-cfn-macros.h
2149         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2150         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
2151         than calling builtin_decl_implicit directly.
2152         (rs6000_builtin_vectorized_function): Update after above changes.
2153         Use CASE_CFN_*.  Move BUILT_IN_MD to...
2154         (rs6000_builtin_md_vectorized_function): ...this new function.
2155         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2157 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2159         * tree-vect-patterns.c: Include internal-fn.h.
2160         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2162 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2164         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2165         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2167 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2169         * builtins.c (expand_errno_check, expand_builtin_mathfn)
2170         (expand_builtin_mathfn_2): Delete.
2171         (expand_builtin): Remove handling of functions with
2172         internal function equivalents.
2173         * internal-fn.def (SET_EDOM): New internal function.
2174         * internal-fn.h (set_edom_supported_p): Declare.
2175         * internal-fn.c (expand_SET_EDOM): New function.
2176         (set_edom_supported_p): Likewise.
2177         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2178         Rewrite comment at head of file.
2179         (is_call_dce_candidate): Rename to...
2180         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
2181         or gimple_call_builtin_p here.
2182         (edom_only_function): New function.
2183         (shrink_wrap_one_built_in_call_with_conds): New function, split out
2184         from...
2185         (shrink_wrap_one_built_in_call): ...here.
2186         (can_use_internal_fn, use_internal_fn): New functions.
2187         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2188         for calls that have an lhs.
2189         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2190         (pass_call_cdce::execute): Skip blocks that are optimized for size.
2191         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
2192         calls with an lhs.
2193         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2194         at -O and above.
2196 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2198         * builtins.h (called_as_built_in): Declare.
2199         * builtins.c (called_as_built_in): Make external.
2200         * internal-fn.h (expand_internal_call): Define a variant that
2201         specifies the internal function explicitly.
2202         * internal-fn.c (expand_load_lanes_optab_fn)
2203         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2204         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2205         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2206         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2207         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2208         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2209         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2210         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2211         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2212         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2213         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2214         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2215         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2216         argument.
2217         (internal_fn_expanders): Update prototype.
2218         (expand_internal_call): Define a variant that specifies the
2219         internal function explicitly. Use it to implement the previous
2220         interface.
2221         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2222         functions as calls to internal functions.
2224 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2226         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2227         (generated_files): Likewise.
2228         (s-cfn-operators, cfn-operators.pd): New rules.
2229         (s-match): Depend on cfn-operators.pd.
2230         * gencfn-macros.c: Expand comment to describe -o behavior.
2231         (print_define_operator_list): New function.
2232         (main): Accept -o.  Call print_define_operator_list.
2233         * genmatch.c (main): Add the current directory to the include path.
2234         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
2235         instead.
2237 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2239         * doc/match-and-simplify.texi: Document the "null" identifier.
2240         * genmatch.c (id_base::NULL_ID): New kind.
2241         (null_id): New variable.
2242         (get_operator): Add a parameter that says whether null identifiers
2243         are allowed.
2244         (contains_id): New function.
2245         (lower_for): Skip substitutions that would have a null_id in
2246         either the match or the result.
2247         (parser::parse_for): Allow the null identifier to be used.
2248         (parser::parse_operator_list): Likewise.
2249         (main): Initialize null_id.
2251 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2253         * match.pd: Use HYPOT and COS rather than hypot and cos.
2254         Use CASE_CFN_* macros.  Guard log/exp folds with
2255         SCALAR_FLOAT_TYPE_P.
2256         * genmatch.c (internal_fn): New enum.
2257         (fn_id::fn): Change to an unsigned int.
2258         (fn_id::fn_id): Accept internal_fn too.
2259         (add_builtin): Rename to...
2260         (add_function): ...this and turn into a template.
2261         (get_operator): Only try one variation if the original name fails.
2262         Only add _EXPR if the original name was all lower case.
2263         Try converting internal and built-in function names to their
2264         CFN equivalents.
2265         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2266         (dt_simplify::gen_1): Likewise.
2267         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2268         and get_call_combined_fn for generic.
2269         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2270         (decision_tree::gen): Likewise.
2271         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2272         Use add_function rather than add_builtin.  Register internal
2273         functions too.
2274         * generic-match-head.c: Include case-cfn-macros.h.
2275         * gimple-fold.c (replace_stmt_with_simplification): Use
2276         gimple_call_combined_fn to test whether we can keep an
2277         existing call.
2278         * gimple-match.h (code_helper): Replace built_in_function
2279         with combined_fn.
2280         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2281         and case-fn-macros.h.
2282         (gimple_resimplify1): Use fold_const_call.
2283         (gimple_resimplify2, gimple_resimplify3): Likewise.
2284         (build_call_internal, build_call): New functions.
2285         (maybe_push_res_to_seq): Use them.
2286         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
2287         rather than a built-in function.
2288         * tree.h (build_call_expr_internal_loc): Declare.
2289         (maybe_build_call_expr_loc): Likewise.
2290         * tree.c (build_call_expr_internal_loc_array): New function.
2291         (maybe_build_call_expr_loc): Likewise.
2293 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2295         * builtins.h (mathfn_built_in): Add a variant that takes
2296         a combined_fn.
2297         * builtins.c: Include case-cfn-macros.h.
2298         (CASE_MATHFN): Use CASE_CFN_*.
2299         (CASE_MATHFN_REENT): Use CFN_ codes.
2300         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2301         argument with a combined_fn.
2302         (mathfn_built_in): Add a variant that takes a combined_fn.
2303         (expand_builtin_int_roundingfn_2): Update callers accordingly.
2304         (fold_builtin_sincos, fold_builtin_classify): Likewise.
2306 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2308         * tree-vect-patterns.c: Include case-cfn-macros.h.
2309         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2311 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2313         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2314         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2315         (pass_cse_sincos::execute): Likewise.
2317 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2319         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2320         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2321         (decrement_power, acceptable_pow_call): Likewise.
2322         (attempt_builtin_copysign): Likewise.
2324 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2326         * tree-vrp.c: Include case-cfn-macros.h.
2327         (extract_range_basic): Switch on combined_fn rather than handling
2328         built-in functions and internal functions separately.
2330 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2332         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2333         than a built_in_function.
2334         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2335         a function decl.
2336         (integer_valued_real_call_p): Likewise.
2337         * fold-const.c: Include case-cfn-macros.h
2338         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2339         (negate_expr_p): Update accordingly.
2340         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2341         a function decl.
2342         (integer_valued_real_call_p): Likewise.
2343         (tree_invalid_nonnegative_warnv_p): Update accordingly.
2344         (integer_valued_real_p): Likewise.
2345         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2346         to tree_call_nonnegative_warnv_p.
2347         (gimple_call_integer_valued_real_p): Likewise
2348         integer_valued_real_call_p.
2349         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2350         (backprop::process_builtin_call_use): Extend to combined_fn.
2351         (strip_sign_op_1): Likewise.
2352         (backprop::process_use): Don't check for built-in calls here.
2353         (backprop::execute): Likewise.
2354         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2356 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2358         * fold-const-call.h (fold_const_call): Replace built_in_function
2359         arguments with combined_fn arguments.
2360         * fold-const-call.c: Include case-cfn-macros.h.
2361         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2362         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2363         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2364         built_in_function arguments with combined_fn arguments.
2365         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2366         (fold_builtin_3): Update calls to fold_const_call.
2368 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2370         * Makefile.in (HASH_TABLE_H): Add GGC_H.
2371         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2372         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2373         (build/gencfn-macros$(build_exeext): New rules.
2374         (genprogerr): Add cfn-macros.
2375         * hash-set.h (hash_set): Use the traits value_type as the key.
2376         * gencfn-macros.c: New file.
2378 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2380         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2381         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2382         * builtins.c (associated_internal_fn): Handle them.
2384 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2386         * builtins.h (associated_internal_fn): Declare.
2387         (replacement_internal_fn): Likewise.
2388         * builtins.c: Include internal-fn.h
2389         (associated_internal_fn, replacement_internal_fn): New functions.
2390         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2391         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2392         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2393         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2394         (LDEXP): New functions.
2395         * internal-fn.c: Include recog.h.
2396         (unary_direct, binary_direct): New macros.
2397         (expand_direct_optab_fn): New function.
2398         (expand_unary_optab_fn): New macro.
2399         (expand_binary_optab_fn): Likewise.
2400         (direct_unary_optab_supported_p): Likewise.
2401         (direct_binary_optab_supported_p): Likewise.
2403 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2405         * coretypes.h (tree_pair): New type.
2406         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
2407         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2408         * internal-fn.h (direct_internal_fn_info): New structure.
2409         (direct_internal_fn_array): Declare.
2410         (direct_internal_fn_p, direct_internal_fn): New functions.
2411         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2412         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2413         (mask_store_direct, store_lanes_direct): New macros.
2414         (direct_internal_fn_array) New array.
2415         (get_multi_vector_move): Return the optab handler without asserting
2416         that it is available.
2417         (expand_LOAD_LANES): Rename to...
2418         (expand_load_lanes_optab_fn): ...this and add an optab argument.
2419         (expand_STORE_LANES): Rename to...
2420         (expand_store_lanes_optab_fn): ...this and add an optab argument.
2421         (expand_MASK_LOAD): Rename to...
2422         (expand_mask_load_optab_fn): ...this and add an optab argument.
2423         (expand_MASK_STORE): Rename to...
2424         (expand_mask_store_optab_fn): ...this and add an optab argument.
2425         (direct_internal_fn_types, direct_optab_supported_p)
2426         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2427         (direct_internal_fn_supported_p): New functions.
2428         (direct_mask_load_optab_supported_p): New macro.
2429         (direct_load_lanes_optab_supported_p): Likewise.
2430         (direct_mask_store_optab_supported_p): Likewise.
2431         (direct_store_lanes_optab_supported_p): Likewise.
2433 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2435         * tree-core.h (internal_fn): Move immediately after the definition
2436         of built_in_function.
2437         (combined_fn): New enum.
2438         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2439         (internal_fn_p, as_internal_fn): New functions.
2440         (get_call_combined_fn, combined_fn_name): Declare.
2441         * tree.c (get_call_combined_fn): New function.
2442         (combined_fn_name): Likewise.
2443         * gimple.h (gimple_call_combined_fn): Declare.
2444         * gimple.c (gimple_call_combined_fn): New function.
2446 2015-11-17  Martin Sebor  <msebor@redhat.com>
2448         PR c++/68308
2449         * cp/init.c (build_new_1): Check for expression constness
2450         the right way.
2452 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2454         PR target/53587
2455         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2456         option list.
2457         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
2458         discussion of the Microsoft structure layout details here from
2459         its former home in extend.texi.
2460         * doc/extend.texi (x86 Variable Attributes): Replace detailed
2461         discussion with pointer to its new location.  Add cross-reference
2462         to corresponding type attributes.
2463         (x86 Type Attributes): Add cross-references to command-line options
2464         and variable attributes.
2466 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
2468         PR middle-end/68134
2469         * targhooks.c (default_get_mask_mode): Filter out
2470         scalar modes returned by mode_for_vector.
2472 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2474         PR target/68143
2475         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2476         offset from dstbase and use it appropriately in
2477         adjust_automodify_address.
2478         (arm_block_set_aligned_vect): Likewise.
2480 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2482         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2483         (MULTILIB_DIRNAMES): Adjust accordingly.
2485 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
2487         * config/aarch64/aarch64-cores.def (cortex-a35): New.
2488         * config/aarch64/aarch64.c (cortexa35_tunings): New.
2489         * config/aarch64/aarch64-tune.md: Regenerate.
2490         * doc/invoke.texi (-mcpu): Add Cortex-A35
2492 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
2494         PR target/68263
2495         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2496         to 32 for IAMCU.
2497         * config/i386/sse.md (*mov<mode>_internal): Always enable
2498         AVX and SSE unaligned moves for IAMCU.
2500 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2502         * tree-if-conv.c: Include varasm.h
2503         (ref_DR_map): Define.
2504         (baseref_DR_map): Like wise
2505         (struct ifc_dr): Add new tree predicate field.
2506         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2507         (memrefs_read_or_written_unconditionally): Remove.
2508         (write_memrefs_written_at_least_once): Remove.
2509         (ifcvt_memrefs_wont_trap): Use hash maps to query
2510         unconditional read/written information.
2511         (if_convertible_loop_p_1):  Initialize hash maps and predicates
2512         before hashing data references and delete hashmaps at the end.
2514 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
2516         PR 56036
2517         * doc/invoke.texi (Optimize Options): Move @end table to the right
2518         place.
2520 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
2522         PR 65129
2523         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2524         return value.
2526 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
2528         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2529         128-bit types, just types that fit in a single vector.
2530         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2532 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
2534         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2535         in the user documentation.
2536         (define_peephole2, define_split): Similarly.
2538 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2540         * lto-streamer-out.c (write_global_references): Adjust integer type.
2541         (lto_output_decl_state_refs): Likewise.
2543 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2545         * config/arm/arm-cores.def (cortex-a35): New.
2546         * config/arm/arm.c (arm_cortex_a35_tune): New.
2547         * config/arm/arm-tables.opt: Regenerate.
2548         * config/arm/arm-tune.md: Regenerate.
2549         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2550         * config/arm/t-aprofile: Likewise.
2551         * doc/invoke.texi (-mcpu): Likewise.
2553 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
2555         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2556         and qdf24xx and xgene1 to match -march=armv8-a.
2558 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2560         PR rtl-optimization/68330
2561         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2562         of LSHIFTRT by a non-zero constant integer.
2564 2015-11-16  Richard Biener  <rguenther@suse.de>
2566         PR tree-optimization/68306
2567         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2568         bogus copying from verify_data_ref_alignment and use continue
2569         instead of return.
2571 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
2572             Kaz Kojima  <kkojima@gcc.gnu.org>
2574         PR target/68277
2575         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2576         operands[2].
2577         (*addsi3): Add another insn_and_split variant for reload.
2579 2015-11-16  Richard Biener  <rguenther@suse.de>
2581         PR middle-end/68117
2582         * cfgexpand.c (pass_expand::execute): Destroy the edge
2583         redirection var map before setting RTL CFG hooks.
2585 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
2587         * config/i386/sse.md (reduc_splus_v8df): Rename to...
2588         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2590         (reduc_splus_v4df): Rename to...
2591         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2593         (reduc_splus_v2df): Rename to...
2594         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2596         (reduc_splus_v16sf): Rename to...
2597         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2599         (reduc_splus_v8sf): Rename to...
2600         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2602         (reduc_splus_v4sf): Rename to...
2603         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2605         (reduc_<code>_<mode>, all 3 variants): Rename each to...
2606         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2608         (reduc_umin_v8hf): Rename to...
2609         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2611 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2613         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2614         without additional conditions.
2615         * doc/extend.texi (@item simd): New.
2617 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2619         * passes.c (first_pass_instance): Remove variable.
2620         (execute_todo): Remove setting of first_pass_instance.
2621         * tree-pass.h (first_pass_instance): Remove declaration.
2623 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2625         * passes.def: Add arg to pass_ccp pass instantiation.
2626         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
2627         instead of first_pass_instance.
2628         (do_ssa_ccp): Add and handle param nonzero_p.
2629         (pass_ccp::pass_ccp): Initialize nonzero_p.
2630         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
2631         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2632         (pass_ccp::nonzero_p): New private member.
2634 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2636         * passes.def: Add arg to pass_object_sizes pass instantiation.
2637         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2638         insert_min_max_p.
2639         (pass_object_sizes::set_pass_param): New member function.  Set
2640         insert_min_max_p.
2641         (pass_object_sizes::insert_min_max_p): New private member.
2642         (pass_object_sizes::execute): Use insert_min_max_p instead of
2643         first_pass_instance.
2645 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2647         * passes.def: Add arg to pass_dominator pass instantiation.
2648         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2649         of comment.
2650         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2651         may_peel_loop_headers_p.
2652         (pass_dominator::set_pass_param): New member function.  Set
2653         may_peel_loop_headers_p.
2654         (pass_dominator::may_peel_loop_headers_p): New private member.
2655         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2656         first_pass_instance.
2658 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2660         * passes.def: Add arg to pass_reassoc pass instantiation.
2661         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2662         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2663         of first_pass_instance.
2664         (execute_reassoc): Add and handle insert_powi_p parameter.
2665         (pass_reassoc::insert_powi_p): New private member.
2666         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2667         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
2668         (pass_reassoc::execute): Call execute_reassoc with extra arg.
2670 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2672         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2673         * gen-pass-instances.awk (handle_line): Same.
2674         * pass_manager.h (class pass_manager): Define and undefine
2675         NEXT_PASS_WITH_ARG.
2676         * passes.c (opt_pass::set_pass_param): New function.
2677         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2678         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2679         * tree-pass.h (gimple_opt::set_pass_param): Declare.
2680         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2681         warn_array_bounds_p parameter.
2682         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2683         (pass_vrp::set_pass_param): New function.
2684         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2685         (pass_vrp::warn_array_bounds_p): New private member.
2687 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2689         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2690         (output_probe_stack_range): Rotate the loop and simplify.
2692 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2694         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2695         (output_probe_stack_range): Rotate the loop and simplify.
2697 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2699         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2700         an lea instruction when possible.
2701         (output_adjust_stack_and_probe): Rotate the loop and simplify.
2702         (ix86_emit_probe_stack_range): Adjust.
2703         (output_probe_stack_range): Rotate the loop and simplify.
2705 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2707         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2708         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2709         with appropriate pragma GCC target.
2711 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2713         PR target/65837
2714         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2715         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2717 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2719         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2720         (cortexa57_tunings): Use it.
2722 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2724         PR target/65837
2725         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2726         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2727         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2728         undefine __ARM_FP.
2729         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2730         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2731         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2732         * doc/extend.texi (-mfpu=): Describe attribute.
2734 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2736         PR target/65837
2737         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2738         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2739         arm_init_neon_builtins.
2740         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2741         (arm_init_neon_builtins_internal)
2742         (arm_init_crypto_builtins_internal):
2743         Test and set neon_set_p, neon_crypto_set_p.
2744         (neon_set_p, neon_crypto_set_p): New static booleans.
2746 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2748         PR target/65837
2749         * config/arm/arm.c (arm_fpu_desc): Remove.
2750         (all_fpus): Make global.
2751         (arm_option_override): Use FPU TARGET accessors.
2752         (arm_declare_function_name): Likewise.
2753         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2754         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2755         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2756         (TARGET_NEON): Likewise.
2757         (all_fpus): Declare extern.
2758         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2759         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2761 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2763         PR middle-end/68366
2764         * sdbout.c: Include emit-rtl.h and function.h.
2766 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
2768         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2769         Remove support for FreeBSD 5 and earlier.
2771 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2773         * configure: Regenerate.
2774         * configure.ac: Always define ENABLE_OFFLOADING.
2775         * cgraph.c (cgraph_node::create): Adjust.
2776         * gcc.c (process_command): Likewise.
2777         * omp-low.c (create_omp_child_function): Likewise.
2778         (expand_omp_target): Likewise.
2779         * varpool.c (varpool_node::get_create): Likewise.
2781 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2783         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2784         * df-scan.c (df_get_exit_block_use_set): Adjust.
2785         * except.c (expand_eh_return): Likewise.
2787 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2789         * config/i386/i386.h (TARGET_PECOFF): Remove define.
2790         * defaults.h (TARGET_PECOFF): New default definition.
2791         * varasm.c (handle_vtv_comdat_section): Adjust.
2793 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2795         * defaults.h: New definition of SDB_DEBUGGING_INFO.
2796         * doc/tm.texi: Regenerate.
2797         * doc/tm.texi.in: Adjust.
2798         * final.c (rest_of_clean_state): Remove check if
2799         SDB_DEBUGGING_INFO is defined.
2800         * function.c (number_blocks): Likewise.
2801         * output.h: Likewise.
2802         * sdbout.c: Likewise.
2803         * toplev.c (process_options): Likewise.
2805 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2807         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2808         (enum sdb_masks): Likewise.
2809         * sdbout.c (plain_type_1): Likewise.
2810         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2812 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
2814         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2815         internal calls - 0 if ordered simd and 1 for ordered threads simd.
2816         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2817         argument is 1, replace it with GOMP_ordered_* call instead of removing
2818         it.
2820 2015-11-13  Rich Felker <dalias@libc.org>
2822         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2823         address loading hack for FDPIC targets.
2825 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
2826             Jeff Law  <law@redhat.com>
2828         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2829         * common.opt (-fsplit-paths): New flag controlling path splitting.
2830         * doc/invoke.texi (fsplit-paths): Document.
2831         * opts.c (default_options_table): Add -fsplit-paths to -O2.
2832         * passes.def: Add split_paths pass.
2833         * timevar.def (TV_SPLIT_PATHS): New timevar.
2834         * tracer.c: Include "tracer.h"
2835         (ignore_bb_p): No longer static.
2836         (transform_duplicate): New function, broken out of tail_duplicate.
2837         (tail_duplicate): Use transform_duplicate.
2838         * tracer.h (ignore_bb_p): Declare
2839         (transform_duplicate): Likewise.
2840         * tree-pass.h (make_pass_split_paths): Declare.
2841         * gimple-ssa-split-paths.c: New file.
2843 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2844             Marek Polacek  <polacek@redhat.com>
2845             Jason Merrill  <jason@redhat.com>
2847         * convert.c (maybe_fold_build1_loc): New.
2848         (maybe_fold_build2_loc): New.
2849         (convert_to_pointer_1): Split out from convert_to_pointer.
2850         (convert_to_pointer_nofold): New.
2851         (convert_to_real_1): Split out from convert_to_real.
2852         (convert_to_real_nofold): New.
2853         (convert_to_integer_1): Split out from convert_to_integer.
2854         (convert_to_integer_nofold): New.
2855         (convert_to_complex_1): Split out from convert_to_complex.
2856         (convert_to_complex_nofold): New.
2857         * convert.h: Declare new functions.
2858         * tree-complex.c (create_one_component_var): Break up line to
2859         avoid sequence point issues.
2861 2015-11-13  Jason Merrill  <jason@redhat.com>
2863         * fold-const.c (fold_convert_const): Fold changing cv-quals on
2864         VECTOR_CST.
2866         * hash-map.h (hash_map::empty): New.
2868 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2870         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2871         (oacc_loop_fixed_partitions): Correct return type to bool.
2872         (oacc_loop_auto_partitions): New.
2873         (oacc_loop_partition): Take mask argument, call
2874         oacc_loop_auto_partitions.
2875         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2877 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2879         * config/rs6000/constraints.md (we constraint): New constraint for
2880         64-bit power9 vector support.
2881         (wL constraint): New constraint for the element in a vector that
2882         can be addressed by the MFVSRLD instruction.
2884         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2885         declaration.
2886         (convert_int_to_float128): Likewise.
2887         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2888         hardware support for IEEE 128-bit floating point.
2889         (rs6000_expand_float128_convert): Likewise.
2890         (convert_float128_to_int): Likewise.
2891         (convert_int_to_float128): Likewise.
2893         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2894         ISA 3.0 hardware IEEE 128-bit floating point.
2895         (UNSPEC_IEEE128_MOVE): Likewise.
2896         (UNSPEC_IEEE128_CONVERT): Likewise.
2897         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2898         (Ff): Add support for DImode.
2899         (Fv): Likewise.
2900         (any_fix code iterator): New and updated iterators for IEEE
2901         128-bit floating point hardware support.
2902         (any_float code iterator): Likewise.
2903         (s code attribute): Likewise.
2904         (su code attribute): Likewise.
2905         (az code attribute): Likewise.
2906         (uns code attribute): Likewise.
2907         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2908         floating point hardware support.
2909         (abs<mode>2, FLOAT128 iterator): Likewise.
2910         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2911         floating point hardware.
2912         (sub<mode>3, IEEE128 iterator): Likewise.
2913         (mul<mode>3, IEEE128 iterator): Likewise.
2914         (div<mode>3, IEEE128 iterator): Likewise.
2915         (copysign<mode>3, IEEE128 iterator): Likewise.
2916         (sqrt<mode>2, IEEE128 iterator): Likewise.
2917         (neg<mode>2, IEEE128 iterator): Likewise.
2918         (abs<mode>2, IEEE128 iterator): Likewise.
2919         (nabs<mode>2, IEEE128 iterator): Likewise.
2920         (fma<mode>4_hw, IEEE128 iterator): Likewise.
2921         (fms<mode>4_hw, IEEE128 iterator): Likewise.
2922         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2923         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2924         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2925         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2926         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2927         (fix_fixuns code attribute): Likewise.
2928         (float_floatuns code attribute): Likewise.
2929         (fix<uns>_<mode>si2_hw): Likewise.
2930         (fix<uns>_<mode>di2_hw): Likewise.
2931         (float<uns>_<mode>si2_hw): Likewise.
2932         (float<uns>_<mode>di2_hw): Likewise.
2933         (xscvqp<su>wz_<mode>): Likewise.
2934         (xscvqp<su>dz_<mode>): Likewise.
2935         (xscv<su>dqp_<mode): Likewise.
2936         (ieee128_mfvsrd): Likewise.
2937         (ieee128_mfvsrwz): Likewise.
2938         (ieee128_mtvsrw): Likewise.
2939         (ieee128_mtvsrd): Likewise.
2940         (trunc<mode>df2_odd): Likewise.
2941         (cmp<mode>_h): Likewise.
2942         (128-bit GPR splitters): Don't split a 128-bit move that is a
2943         direct move between GPR and vector registers using ISA 3.0 direct
2944         move instructions.
2945         (maddld4): Add support for the ISA 3.0 integer multiply-add
2946         instruction.
2948         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2949         debugging.
2950         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2951         constraint.  Disable the VSX<->GPR direct move helpers if we have
2952         the MFVSRLD and MTVSRDD instructions.
2953         (rs6000_secondary_reload_simple_move): Add support for doing
2954         vector direct moves directly without additional scratch registers
2955         if we have ISA 3.0 instructions.
2956         (rs6000_secondary_reload_direct_move): Update comments.
2957         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2958         instructions.
2960         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2961         direct move instructions.
2962         (vsx_movti_64bit): Likewise.
2963         (vsx_extract_<mode>): Likewise.
2965         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2966         macros for ISA 3.0 direct move instructions.
2967         (TARGET_DIRECT_MOVE_128): Likewise.
2968         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2969         instruction.
2971         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2972         constraints.  Update wa documentation to say not to use %x<n> on
2973         instructions that only take Altivec registers.
2975 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2977         * Makefile.in (OBJS): Add gcc-rich-location.o.
2978         * diagnostic.c (diagnostic_append_note): Pass line_table to
2979         rich_location ctor.
2980         (emit_diagnostic): Likewise.
2981         (inform): Likewise.
2982         (inform_n): Likewise.
2983         (warning): Likewise.
2984         (warning_at): Likewise.
2985         (warning_n): Likewise.
2986         (pedwarn): Likewise.
2987         (permerror): Likewise.
2988         (error): Likewise.
2989         (error_n): Likewise.
2990         (error_at): Likewise.
2991         (sorry): Likewise.
2992         (fatal_error): Likewise.
2993         (internal_error): Likewise.
2994         (internal_error_no_backtrace): Likewise.
2995         (source_range::debug): Likewise.
2996         * gcc-rich-location.c: New file.
2997         * gcc-rich-location.h: New file.
2998         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2999         (warning_at): Likewise.
3000         * gimple.h (gimple_set_block): Use set_block function.
3001         * input.c (dump_line_table_statistics): Dump stats on how many
3002         ranges were optimized vs how many needed ad-hoc table.
3003         (write_digit_row): Add "map" param; use its range_bits
3004         to calculate the per-character offset.
3005         (dump_location_info): Print the range and column bits for each
3006         ordinary map.  Use the range bits to calculate the per-character
3007         offset.  Pass the map as a new param to the various calls to
3008         write_digit_row.  Eliminate uses of
3009         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3010         * print-tree.c (print_node): Print any source range information.
3011         * rtl-error.c (diagnostic_for_asm): Likewise.
3012         * toplev.c (general_init): Initialize line_table's
3013         default_range_bits.
3014         * tree-cfg.c (move_block_to_fn): Likewise.
3015         (move_block_to_fn): Likewise.
3016         * tree-inline.c (copy_phis_for_bb): Likewise.
3017         * tree.c (tree_set_block): Likewise.
3018         (get_pure_location): New function.
3019         (set_source_range): New functions.
3020         (set_block): New function.
3021         (set_source_range): New functions.
3022         * tree.h (CAN_HAVE_RANGE_P): New.
3023         (EXPR_LOCATION_RANGE): New.
3024         (EXPR_HAS_RANGE): New.
3025         (get_expr_source_range): New inline function.
3026         (DECL_LOCATION_RANGE): New.
3027         (set_source_range): New decls.
3028         (get_decl_source_range): New inline function.
3030 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
3032         PR tree-optimization/67682
3033         * tree-vect-slp.c (vect_split_slp_store_group): New.
3034         (vect_analyze_slp_instance): During basic block SLP, recurse on
3035         subgroups if vect_build_slp_tree fails after 1st vector.
3037 2015-11-13  Christian Bruel  <christian.bruel@st.com>
3039         PR target/65837
3040         * config/arm/arm.c (arm_option_override): Move NEON check...
3041         (arm_option_check_internal): here
3042         (arm_file_start): Move .fpu print...
3043         (arm_declare_function_name): here
3044         (arm_option_print): Dump current fpu name.
3045         * config/arm/arm.opt (arm_fpu_index): Mark Save.
3047 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
3048             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3050         * combine.c (subst): Don't substitute or simplify when
3051         handling register-wise widening multiply.
3052         (force_to_mode): Likewise.
3054 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3056         PR tree-optimization/68264
3057         * tree-call-cdce.c (gen_one_condition): Update commentary.
3058         (gen_conditions_for_pow_int_base): Invert the sense of the tests
3059         passed to gen_one_condition.
3060         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
3061         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3062         using EDGE_FALSE_VALUE for edges to the call block and
3063         EDGE_TRUE_VALUE for the others.
3065 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3067         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3068         complex types.
3070 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3072         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3074 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3076         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3077         len_of_prefix.
3079 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3081         * gen-pass-instances.awk (handle_line): Add args_str variable.
3083 2015-11-13  Martin Liska  <mliska@suse.cz>
3085         * graphite-poly.c (free_scop): Release scop->drs vector.
3086         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3087         Release dom vector.
3088         (try_generate_gimple_bb): Use vNULL as a default initialization
3089         for vectors.
3091 2015-11-13  Martin Liska  <mliska@suse.cz>
3093         PR ipa/68311
3094         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3095         Replace array initialization (using a variable post-increment)
3096         that possible triggers multiple unsequenced modifications
3097         with a pair of pushes to a vector.
3099 2015-11-13  Richard Biener  <rguenther@suse.de>
3101         PR tree-optimization/68306
3102         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3103         loop related checks ...
3104         (vect_verify_datarefs_alignment): ... here.
3105         (vect_slp_analyze_and_verify_node_alignment): Compute and
3106         verify alignment of the single DR that it matters.
3107         * tree-vect-stmts.c (vectorizable_store): Add an assert.
3108         (vectorizable_load): Add a comment.
3109         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3110         for determining load cost.
3112 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3114         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3115         mix of boolean and integer vectors in a single statement.
3116         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3117         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3118         determine constant type.
3119         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3120         for loop invariants.
3122 2015-11-13  Alan Hayward <alan.hayward@arm.com>
3124         PR tree-optimization/66558
3125         * tree-vect-loop.c (is_integer_induction):Add.
3126         (vectorizable_reduction): Add integer induction checks.
3128 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3130         Revert [ARM] Remove neon-testgen.ml and generated tests.
3132         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3134         [ARM] Remove neon-testgen.ml and generated tests.
3136         * config/arm/neon-testgen.ml: Remove.
3138 2015-11-13  Richard Biener  <rguenther@suse.de>
3140         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3141         Signal fatal failure if early checks fail.
3142         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3143         do not bother testing further vector sizes.
3145 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
3147         * config/i386/predicates.md (misaligned_operand): Return true if
3148         operand is aligned to less than its natural alignmnet.
3150 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3152         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3153         (vec_cmpu@var{m}@var{n}): New item.
3154         (vcond@var{m}@var{n}): Specify comparison is signed.
3155         (vcondu@var{m}@var{n}): New item.
3156         (vcond_mask_@var{m}@var{n}): New item.
3157         (maskload@var{m}@var{n}): New item.
3158         (maskstore@var{m}@var{n}): New item.
3160 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3162         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3163         types of stored value and storage are compatible.
3165 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
3167         * gcc.c (POST_LINK_SPEC): Define if not already defined.
3168         (LINK_COMMAND_SPEC): Use post_link.
3169         (post_link_spec): New, initialize to POST_LINK_SPEC.
3170         (post_link): Initialize new static spec.
3171         * doc/tm.texi.in (POST_LINK_SPEC): Document.
3172         * doc/tm.texi: Regenerated.
3174 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3176         PR driver/67613
3177         * Makefile.in (GCC_OBJS): Add spellcheck.o.
3178         (OBJS): Add spellcheck-tree.o.
3179         * gcc.c: Include "spellcheck.h".
3180         (suggest_option): New function.
3181         (driver::handle_unrecognized_options): Call suggest_option to
3182         provide a hint about misspelled options.
3183         * spellcheck.c: Update file comment.
3184         (levenshtein_distance): Convert 4-param implementation from static
3185         to extern scope.  Remove note about unit tests from leading
3186         comment for const char * implementation.  Move tree
3187         implementation to...
3188         * spellcheck-tree.c: New file.
3189         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
3191 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3193         * Makefile.in (OBJS): Add spellcheck.o.
3194         * spellcheck.c: New file.
3195         * spellcheck.h: New file.
3197 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
3199         * config/ft32/ft32.md (*sne): New insn pattern.
3201 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
3203         * cprop.c (is_too_expensive): Remove.
3204         (gcse.h): Include.
3205         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3206         is_too_expensive.
3207         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3208         * gcse.c (is_too_expensive): Rename to ...
3209         (gcse_or_cprop_is_too_expensive): ... this.
3210         Expand warning to add required size of max-gcse-memory.
3211         (one_pre_gcse_pass): Use it.
3212         (one_code_hoisting_pass): Use it.
3213         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3215 2015-11-12  James Norris  <jnorris@codesourcery.com>
3216             Joseph Myers  <joseph@codesourcery.com>
3218         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3219         GF_OMP_TARGET_KIND_OACC_DECLARE.
3220         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3221         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3222         * gimplify.c (oacc_declare_returns): New.
3223         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3224         (device_resident_p): New function.
3225         (oacc_default_clause): Handle device_resident clause.
3226         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3227         (gimplify_expr): Handle OACC_DECLARE.
3228         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3229         * omp-low.c (expand_omp_target): Handle
3230         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3231         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3232         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3233         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3234         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3235         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3236         GOMP_MAP_DEVICE_RESIDENT.
3238 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3240         [ARM] Remove neon-testgen.ml and generated tests.
3242         * config/arm/neon-testgen.ml: Remove.
3244 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
3246         * config/aarch64/aarch64-cores.def (qdf24xx): New.
3247         * config/aarch64/aarch64-tune.md: Regenerated.
3248         * config/arm/arm-cores.def (qdf24xx): New.
3249         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3250         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3251         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3252         (ARM Options/-mtune): Likewise.
3254 2015-11-12  Martin Liska  <mliska@suse.cz>
3256         * config/i386/i386.c (ix86_valid_target_attribute_p):
3257         Finalize options at the of the function.
3258         * gcc.c (driver_get_configure_time_options): Call newly
3259         introduced init_opts_obstack.
3260         * lto-wrapper.c (main): Likewise.
3261         * opts.c (init_opts_obstack): New function.
3262         (init_options_struct): Call newly introduced init_opts_obstack.
3263         * opts.h (init_options_struct): Declare.
3265 2015-11-12  Martin Liska  <mliska@suse.cz>
3267         PR ipa/68035
3268         * ipa-icf.c (void sem_item::set_hash): New function.
3269         (sem_function::get_hash): Use renamed m_hash member variable.
3270         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3271         (sem_item::update_hash_by_local_refs): Likewise.
3272         (sem_variable::get_hash): Use renamed m_hash member variable.
3273         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3274         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3275         (sem_item_optimizer::build_graph): As the hash value of an item
3276         is lazy initialized, force the calculation.
3277         * ipa-icf.h (set_hash): Declare new function and rename hash member
3278         variable to m_hash.
3280 2015-11-12  Richard Biener  <rguenther@suse.de>
3282         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3283         Rename to vect_slp_analyze_instance_dependence.
3284         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3285         Remove WAR special-case.
3286         (vect_slp_analyze_node_dependences): Instead add more specific
3287         code here, not relying on other instances being vectorized.
3288         (vect_slp_analyze_instance_dependence): Adjust accordingly.
3289         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3290         vertical space in dump files.
3291         (vect_print_slp_tree): Likewise.
3292         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3293         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3294         not vectorized stmts until after dependence analysis removed
3295         instances.  Merge alignment and dependence checks.
3296         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3297         flag on all stmts.
3299 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
3301         * config/aarch64/aarch64-protos.h (tune_params): Add new members
3302         "max_case_values" and "cache_line_size".
3303         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3304         function.
3305         (aarch64_override_options_internal): Tune heuristics based on new
3306         members in "tune_params".
3307         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3309 2015-11-12  Richard Biener  <rguenther@suse.de>
3311         PR tree-optimization/68306
3312         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3313         relevant and vectorizable checks here.
3314         (vect_verify_datarefs_alignment): Add relevant check here.
3316 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
3318         * gimplify.c (oacc_default_clause): New.
3319         (omp_notice_variable): Call it.
3321 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3323         PR tree-optimization/68305
3324         * tree-vect-slp.c (vect_get_constant_vectors): Support
3325         COND_EXPR with SSA_NAME as a condition.
3327 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3329         * config/visium/visium-protos.h (notice_update_cc): Delete.
3330         (print_operand): Likewise.
3331         (print_operand_address): Likewise.
3333 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3335         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3336         FUNCTION_VALUE_REGNO_P): Remove.
3337         * config/alpha/alpha-protos.h (function_value): Remove.
3338         * config/alpha/alpha.c (function_value): Rename to...
3339         (alpha_function_value_1): ... this.  Make static.
3340         (alpha_function_value, alpha_libcall_value,
3341         alpha_function_value_regno_p): New functions.
3342         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3343         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3345 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3347         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3348         * config/alpha/alpha.c (alpha_memory_latency): Make static.
3349         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3350         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3352 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3354         PR target/67265
3355         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3356         assertion on the CFA register.
3358 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3360         * expr.c (do_store_flag): Expand vector comparison as
3361         VEC_COND_EXPR if vector comparison is not supported by target.
3363 2015-11-12  Renlin Li  <renlin.li@arm.com>
3365         * config/arm/arm.md (addsi3_compare_op2): Make the order of
3366         assembly pattern consistent with constraint order.
3368 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3370         * gen-pass-instances.awk (handle_line): Simplify match regexp.
3372 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3374         * gen-pass-instances.awk (handle_line): Simplify init of
3375         postfix_starts_at.
3377 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3379         * gen-pass-instances.awk (handle_line): Rename var where to
3380         call_starts_at.
3382 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
3384         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3385         do not expand to rtl.
3387 2015-11-12  Richard Biener  <rguenther@suse.de>
3389         PR tree-optimization/58497
3390         * tree-vect-generic.c: Include gimplify.h.
3391         (tree_vec_extract): Lookup constant/constructor DEFs.
3392         (do_cond): Unshare cond.
3394 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3396         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3397         combined insn if the alignment of vector mode memory operand
3398         is less than ssememalign.
3400 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3402         * gen-pass-instances.awk (handle_line): Print parentheses and
3403         pass_name explicitly.
3405 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3407         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3408         and postfix vars.
3410 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3412         * gen-pass-instances.awk (handle_line): Add comments.
3414 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3416         * gen-pass-instances.awk (handle_line): Rename len_of_end to
3417         len_of_close.
3419 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3421         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3423 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3425         * gen-pass-instances.awk (handle_line): Restructure using early-out.
3427 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3429         * gen-pass-instances.awk (handle_line): Unify semicolon use.
3431 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3433         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3435 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3437         * gen-pass-instances.awk: Add emacs indent setting.
3439 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3441         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3442         to match.pd.
3443         Move Convert A/(B/C) to (A/B)*C to match.pd.
3444         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3445         Move Optimize (X & (-A)) / A where A is a power of 2, to
3446         X >> log2(A) to match.pd.
3448         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3449         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3450         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3451         New simplifier.
3452         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3454 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
3456         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3457         variable.
3458         (neon_vst2_lane<mode>): Likewise.
3459         (neon_vld3_lane<mode>): Likewise.
3460         (neon_vst3_lane<mode>): Likewise.
3461         (neon_vld4_lane<mode>): Likewise.
3462         (neon_vst4_lane<mode>): Likewise.
3464 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
3465             Sebastian Pop  <s.pop@samsung.com>
3467         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3468         New member codegen_error
3469         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3470         early return.
3471         (translate_isl_ast_node_user): Early return in case of error.
3472         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3473         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3474         (add_parameters_to_ivs_params): Remove macro.
3475         (graphite_regenerate_ast_isl): Add if_region pointer to region.
3476         * graphite-poly.c (new_poly_dr): Remove macro.
3477         (print_pdr): Same.
3478         (new_gimple_poly_bb): Same.
3479         (free_gimple_poly_bb): Same.
3480         (print_scop_params): Same.
3481         * graphite-poly.h (struct poly_dr): Same.
3482         (struct poly_bb): Add new_bb.
3483         (gbb_from_bb): Remove dead code.
3484         (pbb_from_bb): Same.
3485         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3486         (parameter_index_in_region): Same.
3487         (find_scop_parameters): Same.
3488         (build_cross_bb_scalars_def): New.
3489         (build_cross_bb_scalars_use): New.
3490         (graphite_find_cross_bb_scalar_vars): New
3491         (try_generate_gimple_bb): Reads and Writes.
3492         (build_alias_set): Move.
3493         (gather_bbs::before_dom_children): Gather bbs visited.
3494         (build_scops): call build_alias_set.
3495         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3496         (remove_simple_copy_phi): Delete.
3497         (remove_invariant_phi): Delete.
3498         (simple_copy_phi_p): Delete.
3499         (reduction_phi_p): Delete.
3500         (isl_id_for_dr): Remove unused param.
3501         (parameter_index_in_region_1): Remove macro usage.
3502         (set_scop_parameter_dim): Same.
3503         (add_param_constraints): Same.
3504         (add_conditions_to_constraints): Same
3505         (build_scop_iteration_domain): Same.
3506         (pdr_add_alias_set): Comment.
3507         (add_scalar_version_numbers): New.
3508         (build_poly_dr): ISL id.
3509         (build_scop_drs): Move.
3510         (build_poly_sr_1): Same.
3511         (insert_stmts): Remove.
3512         (build_poly_sr): New.
3513         (new_pbb_from_pbb): Delete.
3514         (insert_out_of_ssa_copy_on_edge): Delete.
3515         (create_zero_dim_array): Delete.
3516         (scalar_close_phi_node_p): Delete.
3517         (propagate_expr_outside_region): Delete.
3518         (rewrite_close_phi_out_of_ssa): Delete.
3519         (rewrite_phi_out_of_ssa): Delete.
3520         (rewrite_degenerate_phi): Delete.
3521         (rewrite_reductions_out_of_ssa): Delete.
3522         (rewrite_cross_bb_scalar_dependence): Delete.
3523         (handle_scalar_deps_crossing_scop_limits):
3524         (rewrite_cross_bb_scalar_deps): Delete.
3525         (build_poly_scop): Remove calls to out-of-ssa functions.
3526         * graphite.c (graphite_transform_loops): Early return in case of
3527         codegen error.
3528         * sese.c (debug_rename_map_1): Delete.
3529         (debug_rename_map): Delete.
3530         (sese_record_loop): Remove macro.
3531         (build_sese_loop_nests): Same.
3532         (new_sese_info): Same.
3533         (free_sese_info): Same.
3534         (sese_insert_phis_for_liveouts):
3535         (is_loop_closed_ssa_use): New.
3536         (number_of_phi_nodes): New.
3537         (bb_contains_loop_close_phi_nodes): New.
3538         (bb_contains_loop_phi_nodes): New.
3539         (phi_uses_name): New.
3540         (is_valid_rename):
3541         (get_rename): Add old_bb and loop_phi for more precise matching of
3542         exprs.
3543         (set_rename): Pass region.
3544         (later_of_the_two): New.
3545         (gsi_insert_earliest): New.
3546         (collect_all_ssa_names): New.
3547         (substitute_ssa_name): New.
3548         (rename_all_uses): New.
3549         (get_rename_from_scev): New.
3550         (rename_uses): Pass old_bb for more precise matching of exprs.
3551         (get_def_bb_for_const): New.
3552         (get_new_name): New.
3553         (get_loc): New.
3554         (get_edges): New.
3555         (copy_loop_phi_args): New.
3556         (copy_loop_phi_nodes): New.
3557         (get_loop_init_value): New.
3558         (find_init_value): New.
3559         (find_init_value_close_phi): New.
3560         (copy_loop_close_phi_args): New.
3561         (copy_loop_close_phi_nodes): New.
3562         (add_phi_arg_for_new_expr): New.
3563         (copy_cond_phi_args): New.
3564         (copy_cond_phi_nodes): New.
3565         (copy_phi_nodes): New.
3566         (should_copy_to_new_region): New.
3567         (set_rename_for_each_def): New.
3568         (graphite_copy_stmts_from_block): Early return in case of error.
3569         (copy_bb_and_scalar_dependences): Same.
3570         * sese.h (vec_find): New.
3571         (SESE_PARAMS): Delete.
3572         (SESE_LOOPS): Delete.
3573         (SESE_LOOP_NEST): Delete.
3574         (sese_contains_loop): Remove macro usage.
3575         (sese_nb_params): Same.
3576         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3578 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3580         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3581         isl_union_map_add_map on every pbb->schedule.
3583 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3585         * tree-parloops.c (create_parallel_loop): Return void.
3587 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3589         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3590         block only when needed.
3592 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
3594         * config/alpha/alpha-protos.h (print_operand): Remove.
3595         (print_operand_address): Remove.
3596         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3597         (PRINT_OPERAND_ADDRESS): Remove.
3598         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3599         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3600         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3601         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3602         (print_operand_address): Rename to...
3603         (alpha_print_operand_address): ...this and make static.
3604         (print_operand): Rename to...
3605         (alpha_print_operand): ...this and make static.
3606         (alpha_print_operand_punct_valid_p): New static function.
3608 2015-11-11  Richard Biener  <rguenther@suse.de>
3610         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3611         Declare.
3612         (vect_analyze_data_refs_alignment): Make loop vect specific.
3613         (vect_verify_datarefs_alignment): Likewise.
3614         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3615         Add missing continue.
3616         (vect_compute_data_ref_alignment): Export.
3617         (vect_compute_data_refs_alignment): Merge into...
3618         (vect_analyze_data_refs_alignment): ... this.
3619         (verify_data_ref_alignment): Split out from ...
3620         (vect_verify_datarefs_alignment): ... here.
3621         (vect_slp_analyze_and_verify_node_alignment): New function.
3622         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3623         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3624         misplaced checks on alignment.
3625         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
3626         alignment analysis after SLP discovery and do it per instance.
3627         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3628         bother to re-try using different vector sizes.
3630 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3631             Cesar Philippidis  <cesar@codesourcery.com>
3633         * gimplify.c (enum omp_region_type): Add ORT_ACC,
3634         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
3635         (gimple_add_tmp_var): Add ORT_ACC checks.
3636         (gimplify_var_or_parm_decl): Likewise.
3637         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3638         (omp_add_variable): Look in outer contexts for openacc and allow
3639         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3640         (omp_notice_variable, omp_is_private, omp_check_private): Add
3641         ORT_ACC checks.
3642         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3643         Permit private openacc reductions.
3644         (gimplify_oacc_cache): Specify ORT_ACC.
3645         (gimplify_omp_workshare): Adjust OpenACC region types.
3646         (gimplify_omp_target_update): Likewise.
3647         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3648         (lower-rec_input_clauses): Don't handle openacc firstprivate
3649         references here.
3650         (lower_omp_target): Emit initializers for openacc firstprivate vars.
3652 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3654         PR target/67265
3655         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3656         frame pointer for stack checking if non-call exceptions aren't used.
3657         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3659 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
3661         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3662         [LA]SHIFTRT.
3664 2015-11-11  Martin Liska  <mliska@suse.cz>
3665             Richard Biener  <rguenther@suse.de>
3667         PR rtl-optimization/68287
3668         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3669         number of elements.
3671 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
3673         * config/mips/mips.c (mips_breakable_sequence_p): New function.
3674         (mips_break_sequence): New function.
3675         (mips_reorg_process_insns): Use them. Use compact branches in selected
3676         situations.
3678 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
3680         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3682 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
3683             Jim Wilson  <wilson@gcc.gnu.org>
3685         PR target/67305
3686         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3687         be true and eliminable registers mentioned.
3689 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
3691         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3692         options.
3693         * config/arc/arc-opts.h: Add ARCv2 CPUs.
3694         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3695         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3696         situation, and store instructions with large offsets.
3697         (arc_secondary_reload_conv): New function.
3698         (arc_init): Add ARCv2 options.
3699         (arc_conditional_register_usage): Select the proper register usage
3700         for ARCv2 processors.
3701         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3702         architecture.
3703         (arc_compute_function_type): Likewise.
3704         (arc_print_operand): Handle new ARCv2 punctuation characters.
3705         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3706         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3707         function.
3708         (arc_reorg, arc_hazard): Use it.
3709         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3710         (ASM_SPEC): Add ARCv2 options.
3711         (TARGET_NORM): ARC HS has norm instructions by default.
3712         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3713         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3714         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3715         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3716         Likewise.
3717         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3718         (TARGET_LP_WR_INTERLOCK): Likewise.
3719         * config/arc/arc.md
3720         (commutative_binary_mult_comparison_result_used, movsicc_insn)
3721         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3722         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3723         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3724         Use it for ARCv2.
3725         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3726         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3727         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3728         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3729         (extzvsi): New pattern.
3730         * config/arc/arc.opt: New ARCv2 options.
3731         * config/arc/arcEM.md: New file.
3732         * config/arc/arcHS.md: Likewise.
3733         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3734         values.
3735         (Cm2): A signed 9-bit integer constant constraint.
3736         (C62): An unsigned 6-bit integer constant constraint.
3737         (C16): A signed 16-bit integer constant constraint.
3738         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3739         (short_const_int_operand): New predicate.
3740         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3741         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3742         -mcode-density and -mdiv-rem.
3744 2015-11-11  Julia Koval  <julia.koval@intel.com>
3746         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3748 2015-11-11  Julia Koval  <julia.koval@intel.com>
3750         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3752 2015-11-11  Martin Liska  <mliska@suse.cz>
3754         * gimple-ssa-strength-reduction.c (create_phi_basis):
3755         Use auto_vec.
3756         * passes.c (release_dump_file_name): New function.
3757         (pass_init_dump_file): Used from this function.
3758         (pass_fini_dump_file): Likewise.
3759         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3760         * var-tracking.c (vt_initialize): Use pool_allocator.
3762 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
3763             Jiong Wang      <jiong.wang@arm.com>
3765         PR tree-optimization/68234
3766         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3767         node which estimiated to be VR_VARYING initially.
3769 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
3771         * regname.c (scan_rtx_reg): Check the matching number of consecutive
3772         registers when tying chains.
3773         (build_def_use): Move terminated_this_insn earlier in the function.
3775 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
3777         * configure.ac: Use = with test and not ==.
3778         * configure: Regenerated.
3780 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
3782         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3783         machine asserts.  Update defines for 64 bit.
3785 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3787         PR target/63870
3788         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3789         lane number.
3790         (neon_vst1_lane<mode>): Likewise.
3791         (neon_vld2_lane<mode>): Likewise.
3792         (neon_vst2_lane<mode>): Likewise.
3793         (neon_vld3_lane<mode>): Likewise.
3794         (neon_vst3_lane<mode>): Likewise.
3795         (neon_vld4_lane<mode>): Likewise.
3796         (neon_vst4_lane<mode>): Likewise.
3798 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3800         PR target/63870
3801         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3802         qualifier_struct_load_store_lane_index.
3803         (arm_storestruct_lane_qualifiers) Likewise.
3804         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3805         big-endian.
3806         (neon_vst1_lane<mode>) Likewise.
3807         (neon_vld2_lane<mode>) Likewise.
3808         (neon_vst2_lane<mode>) Likewise.
3809         (neon_vld3_lane<mode>) Likewise.
3810         (neon_vst3_lane<mode>) Likewise.
3811         (neon_vld4_lane<mode>) Likewise.
3812         (neon_vst4_lane<mode>) Likewise.
3814 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3816         PR target/63870
3817         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3818         qualifier_struct_load_store_lane_index.
3819         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3820         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3821         argument qualifiers.
3822         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3823         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3825 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
3827         * config/nvptx/nvptx.opt (moptimize): New flag.
3828         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3829         default.
3830         (nvptx_optimize_inner): New.
3831         (nvptx_process_pars): Call it when optimizing.
3832         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3834 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3836         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3837         Remove redundant code.
3839 2015-11-10  Jeff Law  <law@redhat.com>
3841         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3842         call to output_address.
3843         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3844         Add unnamed machine_mode argument.
3846 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3848         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3849         default to 64-bit.
3851 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3853         * config/i386/i386.md (*movabs<mode>_1): Add explicit
3854         size directives for -masm=intel.
3855         (*movabs<mode>_2): Ditto.
3857 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3859         * config/i386/i386.c (ix86_print_operand): Remove dead code that
3860         tried to avoid (%rip) for call operands.
3862 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3864         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3865         argument.  Do not use RIP relative addressing when no_rip is set.
3866         (ix86_print_operand): Update call to ix86_print_operand_address_as.
3867         (ix86_print_operand_address): Ditto.
3868         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3869         absolute movabs operand 0.  Add square braces for -masm=intel.
3870         (*movabs<mode>_2): Ditto for operand 1.
3872 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3874         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3875         combine_vcvtf2i pattern.
3877 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3879         * config/arm/arm.c (neon_valid_immediate): Remove integer
3880         CONST_DOUBLE handling.  It should never occur.
3882 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
3884         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3885         (ATOMIC_LDOP): Likewise.
3886         (atomic_ldop): Likewise.
3887         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3888         (ATOMIC_LDOP): Likewise.
3889         (atomic_ldop): Likewise.
3891 2015-11-10  Martin Liska  <mliska@suse.cz>
3893         * alloc-pool.h (allocate_raw): New function.
3894         (operator new (size_t, object_allocator<T> &a)): Use the
3895         function instead of object_allocator::allocate).
3897 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3899         * config/i386/sse.md (HALFMASKMODE): New attribute.
3900         (DOUBLEMASKMODE): New attribute.
3901         (vec_pack_trunc_qi): New.
3902         (vec_pack_trunc_<mode>): New.
3903         (vec_unpacks_lo_hi): New.
3904         (vec_unpacks_lo_si): New.
3905         (vec_unpacks_lo_di): New.
3906         (vec_unpacks_hi_hi): New.
3907         (vec_unpacks_hi_<mode>): New.
3909 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3911         * optabs.c (expand_binop_directly): Allow scalar mode for
3912         vec_pack_trunc_optab.
3913         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3914         boolean vector producers from pattern sequence when computing VF.
3915         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3916         vect_recog_mask_conversion_pattern.
3917         (search_type_for_mask): Choose the smallest
3918         type if different size types are mixed.
3919         (build_mask_conversion): New.
3920         (vect_recog_mask_conversion_pattern): New.
3921         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3922         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3923         load with pattern.
3924         (vectorizable_conversion): Support boolean vectors.
3925         (free_stmt_vec_info): Allow patterns for statements with no lhs.
3926         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3928 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3930         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3931         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3932         Cast mask to FP mode if required.
3933         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3934         (vcond_mask_<mode><avx512fmaskmodelower>): New.
3935         (vcond_mask_<mode><sseintvecmodelower>): New.
3936         (vcond_mask_<mode><sseintvecmodelower>): New.
3937         (vcond_mask_v2div2di): New.
3938         (vcond_mask_<mode><sseintvecmodelower>): New.
3939         (vcond_mask_<mode><sseintvecmodelower>): New.
3941 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3943         * optabs-query.h (get_vcond_mask_icode): New.
3944         * optabs-tree.c (expand_vec_cond_expr_p): Use
3945         get_vcond_mask_icode for VEC_COND_EXPR with mask.
3946         * optabs.c (expand_vec_cond_mask_expr): New.
3947         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3948         * optabs.def (vcond_mask_optab): New.
3949         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3950         generate redundant comparison for COND_EXPR.
3951         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3952         as a condition.
3953         (vectorizable_condition): Likewise.
3954         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3955         cond_exp with no embedded comparison.
3956         (vect_build_slp_tree_1): Likewise.
3958 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3960         * config/i386/sse.md (maskload<mode>): Rename to ...
3961         (maskload<mode><sseintvecmodelower>): ... this.
3962         (maskstore<mode>): Rename to ...
3963         (maskstore<mode><sseintvecmodelower>): ... this.
3964         (maskload<mode><avx512fmaskmodelower>): New.
3965         (maskstore<mode><avx512fmaskmodelower>): New.
3967 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3969         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3970         (expand_MASK_STORE): Adjust to maskstore optab changes.
3971         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3972          Adjust to maskload, maskstore optab changes.
3973         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3974         * optabs.def (maskload_optab): Transform into convert optab.
3975         (maskstore_optab): Likewise.
3976         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3977         can_vec_mask_load_store_p signature change.
3978         (predicate_mem_writes): Use boolean mask.
3979         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3980         can_vec_mask_load_store_p signature change.  Allow invariant masks.
3981         (vectorizable_operation): Ignore type precision for boolean vectors.
3983 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3985         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3986         (const_vector_mask_from_tree): New.
3987         (const_vector_from_tree): Use const_vector_mask_from_tree
3988         for boolean vectors.
3989         * optabs-query.h (get_vec_cmp_icode): New.
3990         * optabs-tree.c (expand_vec_cmp_expr_p): New.
3991         * optabs-tree.h (expand_vec_cmp_expr_p): New.
3992         * optabs.c (vector_compare_rtx): Add OPNO arg.
3993         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3994         (expand_vec_cmp_expr): New.
3995         * optabs.def (vec_cmp_optab): New.
3996         (vec_cmpu_optab): New.
3997         * optabs.h (expand_vec_cmp_expr): New.
3998         * tree-vect-generic.c (expand_vector_comparison): Add vector
3999         comparison optabs check.
4000         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
4001         operations for VF.  Add mask type computation.
4002         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4003         (vectorizable_comparison): New.
4004         (vect_analyze_stmt): Add vectorizable_comparison.
4005         (vect_transform_stmt): Likewise.
4006         (vect_init_vector): Support boolean vector invariants.
4007         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4008         (vectorizable_condition): Directly provide vectype for invariants
4009         used in comparison.
4010         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4011         (enum vect_var_kind): Add vect_mask_var.
4012         (enum stmt_vec_info_type): Add comparison_vec_info_type.
4013         (vectorizable_comparison): New.
4014         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4015         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4016         (vect_create_destination_var): Likewise.
4017         * tree-vect-patterns.c (check_bool_pattern): Check fails
4018         if we can vectorize comparison directly.
4019         (search_type_for_mask): New.
4020         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4021         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4022         comparison statements.
4023         (vect_get_constant_vectors): Support boolean vector constants.
4024         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4025         (ix86_expand_int_vec_cmp): New.
4026         (ix86_expand_fp_vec_cmp): New.
4027         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4028         op_true and op_false.
4029         (ix86_int_cmp_code_to_pcmp_immediate): New.
4030         (ix86_fp_cmp_code_to_pcmp_immediate): New.
4031         (ix86_cmp_code_to_pcmp_immediate): New.
4032         (ix86_expand_mask_vec_cmp): New.
4033         (ix86_expand_fp_vec_cmp): New.
4034         (ix86_expand_int_sse_cmp): New.
4035         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4036         (ix86_expand_int_vec_cmp): New.
4037         (ix86_get_mask_mode): New.
4038         (TARGET_VECTORIZE_GET_MASK_MODE): New.
4039         * config/i386/sse.md (avx512fmaskmodelower): New.
4040         (vec_cmp<mode><avx512fmaskmodelower>): New.
4041         (vec_cmp<mode><sseintvecmodelower>): New.
4042         (vec_cmpv2div2di): New.
4043         (vec_cmpu<mode><avx512fmaskmodelower>): New.
4044         (vec_cmpu<mode><sseintvecmodelower>): New.
4045         (vec_cmpuv2div2di): New.
4047 2015-11-10  Richard Biener  <rguenther@suse.de>
4049         PR tree-optimization/68240
4050         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4051         properly.
4052         (visit_phi): For PHIs with just a single executable edge
4053         take its value directly.
4054         (expressions_equal_p): Handle VN_TOP properly.
4056 2015-11-10  Richard Biener  <rguenther@suse.de>
4058         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4059         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4060         conservatively.
4062 2015-11-10  Richard Biener  <rguenther@suse.de>
4064         PR tree-optimization/56118
4065         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4066         cost favor vectorized version.
4068 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4070         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4071         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4072         (neg_not_op): New code attribute.
4074 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4076         * ifcvt.c (noce_try_inverse_constants): New function.
4077         (noce_process_if_block): Call it.
4078         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4079         * optabs.def (negcc_optab, notcc_optab): Declare.
4080         * optabs.c (emit_conditional_neg_or_complement): New function.
4081         * doc/tm.texi (Standard Names): Document negcc, notcc names.
4083 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4085         PR rtl-optimization/68236
4086         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4087         if insn_queue doesn't exist.
4088         (haifa_sched_finish): Reset insn_queue to NULL.
4090 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
4092         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4093         (build_def_use): Initialize terminated_this_insn.
4094         (find_best_rename_reg): Pick and check register from the tied chain.
4095         (regrename_do_replace): Mark head as renamed.
4096         (struct du_head *terminated_this_insn). New static variable.
4097         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
4098         * regrename.h (struct du_head): Add tied_chain, renamed members.
4100 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4102         PR bootstrap/68256
4103         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4104         Return false.
4106 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4108         PR target/57845
4109         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4110         not promote the mode for aggregate types.
4112 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4114         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4115         * omp-low.c (build_oacc_routine_dims): New.
4117 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4119         * config/rs6000/constraints.md (wF constraint): New constraints
4120         for power9/toc fusion.
4121         (wG constraint): Likewise.
4123         * config/rs6000/predicates.md (u6bit_cint_operand): New
4124         predicate, recognize 0..63.
4125         (upper16_cint_operand): New predicate for power9 and toc fusion.
4126         (fpr_reg_operand): Likewise.
4127         (toc_fusion_or_p9_reg_operand): Likewise.
4128         (toc_fusion_mem_raw): Likewise.
4129         (toc_fusion_mem_wrapped): Likewise.
4130         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4131         address range.
4132         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4133         instead.
4134         (fusion_addis_mem_combo_load): Add support for power9 fusion of
4135         floating point loads, floating point stores, and gpr stores.
4136         (fusion_addis_mem_combo_store): Likewise.
4137         (fusion_offsettable_mem_operand): Likewise.
4139         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4140         (emit_fusion_load_store): Likewise.
4141         (fusion_p9_p): Likewise.
4142         (expand_fusion_p9_load): Likewise.
4143         (expand_fusion_p9_store): Likewise.
4144         (emit_fusion_p9_load): Likewise.
4145         (emit_fusion_p9_store): Likewise.
4146         (fusion_wrap_memory_address): Likewise.
4148         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4149         elements for power9 fusion.
4150         (rs6000_debug_print_mode): Rework debug information to print more
4151         information about fusion.
4152         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4153         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4154         offsettable memory address.
4155         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4156         (emit_fusion_gpr_load): Move most of the code from
4157         emit_fusion_gpr_load into emit_fusion-addis that handles both
4158         power8 and power9 fusion.
4159         (emit_fusion_addis): Likewise.
4160         (emit_fusion_load_store): Likewise.
4161         (fusion_wrap_memory_address): Add support for TOC fusion.
4162         (fusion_split_address): Likewise.
4163         (fusion_p9_p): Add support for power9 fusion.
4164         (expand_fusion_p9_load): Likewise.
4165         (expand_fusion_p9_store): Likewise.
4166         (emit_fusion_p9_load): Likewise.
4167         (emit_fusion_p9_store): Likewise.
4169         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4170         new instructions in ISA 3.0.
4171         (TARGET_CTZ): Likewise.
4172         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4173         (TARGET_TOC_FUSION_FP): Likewise.
4175         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4176         fusion unspecs.
4177         (UNSPEC_FUSION_ADDIS): Likewise.
4178         (QHSI mode iterator): New iterator for power9 fusion.
4179         (GPR_FUSION): Likewise.
4180         (FPR_FUSION): Likewise.
4181         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4182         (umod<mode>3): Likewise.
4183         (divmod peephole): Likewise.
4184         (udivmod peephole): Likewise.
4185         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4186         instructions.
4187         (ctz<mode>2_h): Likewise.
4188         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4189         (ashdi3_extswsli_dot): Likewise.
4190         (ashdi3_extswsli_dot2): Likewise.
4191         (power9 fusion splitter): New power9/toc fusion support.
4192         (toc_fusionload_<mode>): Likewise.
4193         (toc_fusionload_di): Likewise.
4194         (fusion_gpr_load_<mode>): Update predicate function.
4195         (power9 fusion peephole2s): New power9/toc fusion support.
4196         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4197         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4198         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4199         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4200         (fusion_p9_<mode>_constant): Likewise.
4202 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
4204         * optabs.c (prepare_libcall_arg): New function.
4205         (expand_fixed_convert): Add call to prepare_libcall_arg.
4207 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
4209         * sched-int.h (dump_rgn_dependencies_dot): Declare
4210         * sched-rgn.c (dump_rgn_dependencies_dot): New function
4211         * print-rtl.h (print_insn): Add prototype
4213         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4214         * common.opt (-fsched-verbose): Set default value to 1.
4215         * invoke.texi (-fsched-verbose): Update the option's description.
4217 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4219         * config/visium/visium.h (PRINT_OPERAND): Delete.
4220         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4221         (PRINT_OPERAND_ADDRESS): Likewise.
4222         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4223         to...
4224         (visium_print_operand_punct_valid_p): ...this.  New function.
4225         (TARGET_PRINT_OPERAND): Define to...
4226         (print_operand): Rename to...
4227         (visium_print_operand): ...this.
4228         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4229         (visium_output_address): Rename to...
4230         (visium_print_operand_address): ...this.
4231         (print_operand_address): Delete.
4233 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4235         PR middle-end/68259
4236         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4237         Check that the type of the first operand is an aggregate type.
4239 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4241         * omp-low.c: Fix some OpenACC comment typos.
4242         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4243         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4244         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4246 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
4248         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4250 2015-11-09  Jeff Law  <law@redhat.com>
4252         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4253         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
4254         Fix comment typo.
4256 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4257             Peter Bergner  <bergner@vnet.ibm.com>
4259         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4260         ISA 3.0 (power9).
4261         (-mpower9-vector): Likewise.
4262         (-mpower9-dform): Likewise.
4263         (-mpower9-minmax): Likewise.
4264         (-mtoc-fusion): Likewise.
4265         (-mmodulo): Likewise.
4266         (-mfloat128-hardware): Likewise.
4268         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4269         mask for ISA 3.0 (power9).
4270         (POWERPC_MASKS): Add new ISA 3.0 switches.
4271         (power9 cpu): Add power9 cpu.
4273         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4274         (ASM_CPU_SPEC): Likewise.
4275         (EXTRA_SPECS): Likewise.
4277         * config/rs6000/rs6000-opts.h (enum processor_type): Add
4278         PROCESSOR_POWER9.
4280         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4281         (rs6000_debug_reg_global): Add support for power9 fusion.
4282         (rs6000_setup_reg_addr_masks): Cache mode size.
4283         (rs6000_option_override_internal): Until real power9 tuning is
4284         added, use -mtune=power8 for -mcpu=power9.
4285         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4286         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4287         of Altivec registers.
4288         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4289         (rs6000_loop_align): Add support for power9 cpu.
4290         (rs6000_file_start): Likewise.
4291         (rs6000_adjust_cost): Likewise.
4292         (rs6000_issue_rate): Likewise.
4293         (insn_must_be_first_in_group): Likewise.
4294         (insn_must_be_last_in_group): Likewise.
4295         (force_new_group): Likewise.
4296         (rs6000_register_move_cost): Likewise.
4297         (rs6000_opt_masks): Likewise.
4299         * config/rs6000/rs6000.md (cpu attribute): Add power9.
4300         * config/rs6000/rs6000-tables.opt: Regenerate.
4302         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4303         _ARCH_PWR9 if power9 support is available.
4305         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4306         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4308         * configure.ac: Determine if the assembler supports the ISA 3.0
4309         instructions.
4310         * config.in (HAVE_AS_POWER9): Likewise.
4311         * configure: Regenerate.
4313         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4314         switches.
4316 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4318         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4319         Remove integer CONST_DOUBLE handling.  It should never occur.
4321 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4323         PR target/68129
4324         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4325         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4326         Delete VOIDmode case.  Assert that mode is not VOIDmode.
4327         * config/aarch64/predicates.md (const0_operand): Remove const_double
4328         match.
4330 2015-11-09  Martin Liska  <mliska@suse.cz>
4332         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4333         body_info release function.
4334         * ipa-prop.c (ipa_release_body_info): New function.
4335         (ipa_analyze_node): Call the function.
4336         (ipa_node_params::~ipa_node_params): Release known_csts.
4337         * ipa-prop.h (ipa_release_body_info): Declare.
4339 2015-11-09  Martin Liska  <mliska@suse.cz>
4341         * gcc.c (record_temp_file): Release name string.
4342         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4343         * lra-lives.c (free_live_range_list): Utilize
4344         lra_live_range_pool for allocation and deallocation.
4345         (create_live_range): Likewise.
4346         (copy_live_range): Likewise.
4347         (lra_merge_live_ranges): Likewise.
4348         (remove_some_program_points_and_update_live_ranges): Likewise.
4349         (lra_create_live_ranges_1): Release point_freq_vec that can
4350         be not freed from previous iteration of the function.
4351         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4352         * tree-sra.c (sra_deinitialize): Release all vectors in
4353         base_access_vec.
4354         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4355         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4356         Release edge_info for a removed edge.
4357         (thread_through_all_blocks): Free region vector.
4358         * tree-ssa.h (free_dom_edge_info): Declare function extern.
4360 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
4362         * optabs.c (expand_vec_cond_expr): Always get sign from type.
4363         * tree.c (wide_int_to_tree): Support negative values for boolean.
4364         (build_nonstandard_boolean_type): Use signed type for booleans.
4366 2015-11-09  Richard Biener  <rguenther@suse.de>
4368         PR tree-optimization/68248
4369         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4371 2015-11-09  Richard Biener  <rguenther@suse.de>
4373         PR tree-optimization/56118
4374         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4375         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4376         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4377         function.
4378         (vect_slp_analyze_data_ref_dependences): Instead of computing
4379         all dependences of the region DRs just analyze the code motions
4380         SLP vectorization will perform.  Remove SLP instances that
4381         cannot have their store/load motions applied.
4382         (vect_analyze_data_refs): Allow DRs without a vectype
4383         in BB vectorization.
4385 2015-11-09  Julian Brown  <julian@codesourcery.com>
4387         * final.c (output_asm_insn): Pass VOIDmode to output_address.
4388         (output_address): Add MODE argument. Pass to print_operand_address
4389         hook.
4390         * targhooks.c (default_print_operand_address): Add MODE argument.
4391         * targhooks.h (default_print_operand_address): Update prototype.
4392         * output.h (output_address): Update prototype.
4393         * target.def (print_operand_address): Add MODE argument.
4394         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4395         output_address.
4396         (print_operand): Pass access mode to output_address.
4397         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4398         argument.
4399         (mcore_print_operand): Update calls to mcore_print_operand_address.
4400         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4401         output_address.
4402         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4403         output_address.
4404         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4405         global.
4406         (tilegx_print_operand): Don't set above global. Update calls to
4407         output_address.
4408         (tilegx_print_operand_address): Add MODE argument. Use instead of
4409         output_memory_reference_mode global.
4410         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4411         (frv_print_operand): Pass mode to frv_print_operand_address calls.
4412         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4413         output_address.
4414         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4415         (cris_print_operand): Pass mode to output_address calls.
4416         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4417         * config/aarch64/aarch64.h (aarch64_print_operand)
4418         (aarch64_print_operand_address): Remove prototypes.
4419         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4420         global.
4421         (aarch64_print_operand): Make static. Update calls to output_address.
4422         (aarch64_print_operand_address): Add MODE argument. Use instead of
4423         aarch64_memory_reference_mode global.
4424         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4425         hooks.
4426         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4427         Delete macro definitions.
4428         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4429         * config/xtensa/xtensa.c (print_operand): Pass mode in
4430         output_address calls.
4431         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4432         argument.
4433         (h83000_print_operand): Update calls to h8300_print_operand_address
4434         and output_address.
4435         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4436         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4437         global.
4438         (tilepro_print_operand): Pass mode to output_address.
4439         (tilepro_print_operand_address): Add MODE argument. Use instead of
4440         output_memory_reference_mode.
4441         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4442         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4443         to output_address calls.
4444         (nvptx_print_operand_address): Add MODE argument.
4445         * config/alpha/alpha.c (print_operand): Pass mode argument in
4446         output_address calls.
4447         * config/m68k/m68k.c (print_operand): Pass mode argument in
4448         output_address call.
4449         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4450         (avr_print_operand): Update calls to avr_print_operand_address.
4451         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4452         argument. Update calls to output_address.
4453         (sparc_print_operand): Pass mode to output_address.
4454         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4455         argument.
4456         (iq2000_print_operand): Pass mode in output_address calls.
4457         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4458         MODE argument.
4459         (xstormy16_print_operand): Pass mode to
4460         xstormy16_print_operand_address calls.
4461         * config/mips/mips.c (mips_print_operand): Update calls to
4462         output_address.
4463         (mips_print_operand_address): Add MODE argument.
4464         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4465         to output_address.
4466         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4467         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4468         output_address.
4469         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4470         (rx_print_operand): Update calls to output_address,
4471         rx_print_operand_address.
4472         * config/nds32/nds32.c (nds32_print_operand): Update calls to
4473         output_address.
4474         (nds32_print_operand_address): Add MODE argument.
4475         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4476         output_address calls.
4477         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4478         output_address call.
4479         (c6x_print_address_operand): Update calls to output_address.
4480         (c6x_print_operand_address): Pass mode to above.
4481         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4482         (v850_print_operand): Pass mode to v850_print_operand_address,
4483         output_address.
4484         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4485         (mmix_print_operand): Pass mode in output_address calls.
4486         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4487         (sh_print_operand): Pass mem mode to output_address,
4488         sh_print_operand_address.
4489         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4490         (cr16_print_operand): Pass mode to output_address,
4491         cr16_print_operand_address.
4492         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4493         output_address.
4494         * config/microblaze/microblaze.c (print_operand): Pass mode to
4495         output_address.
4496         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4497         output_address.
4498         (nios2_print_operand_address): Add MODE argument. Update call to
4499         nios2_print_operand_address.
4500         * config/s390/s390.c (print_operand): Pass mode to output_address.
4501         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4502         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4503         output_address.
4504         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4505         Use instead of output_memory_reference_mode.
4506         (output_memory_reference_mode): Delete global.
4507         (arm_print_operand): Pass mem mode to output_address.
4508         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4509         (m32r_print_operand): Pass mode to output_address.
4510         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4511         argument.
4512         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4513         * config/i386/i386.c (ix86_print_operand): Pass mode to
4514         output_address calls.
4515         (ix86_print_operand_address): Add MODE argument.
4517 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4519         PR middle-end/68251
4520         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4521         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4522         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4523         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4525 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4527         PR rtl-optimization/67749
4528         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4529         case before emitting the two blocks.  Instead modify the register
4530         in the corresponding final insn of the basic block.
4532 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4534         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4535         assembler syntax.
4536         Support Solaris ld.
4537         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4539         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4540         HAVE_INITFINI_ARRAY_SUPPORT.
4541         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4543         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4544         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4545         Don't check HAVE_AS_SPARC_NOBITS.
4546         Heed SECTION_NOTYPE.
4548         * configure: Regenerate.
4549         * config.in: Regenerate.
4551 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4553         PR middle-end/68253
4554         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4556 2015-11-09  Richard Henderson  <rth@redhat.com>
4558         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4559         __SEG_GS, __SEG_TLS.
4560         (ix86_register_pragmas): Register address spaces __seg_fs,
4561         __seg_gs, __seg_tls.
4562         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4563         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4564         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4565         * config/i386/i386.c (ix86_decompose_address): Likewise.
4566         (ix86_legitimate_address_p): Likewise.
4567         (memory_address_length): Likewise.  Check mem address space too.
4568         (ix86_print_operand): Use ix86_print_operand_address_as.
4569         (ix86_print_operand_address_as): Rename from
4570         ix86_print_operand_address, add new addr_space_t parameter.
4571         Validate that either the parameter or the ix86_address segment
4572         is default address space.  Handle ADDR_SPACE_SEG_TLS.
4573         (ix86_print_operand_address): New.
4574         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4575         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4576         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4577         (ix86_addr_space_zero_address_valid): New.
4578         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4579         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4580         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4581         * config/i386/predicates.md (address_no_seg_operand): Likewise.
4582         (vsib_address_operand): Likewise.
4583         (address_mpx_no_base_operand): Likewise.
4584         (address_mpx_no_index_operand): Likewise.
4585         * doc/extend.texi (x86 Named Address Spaces): New section.
4587         * config/i386/i386.c (ix86_check_no_addr_space): New.
4588         (decide_alg): Add have_as parameter.
4589         (alg_usable_p): Likewise; disable rep algorithms if set.
4590         (ix86_expand_set_or_movmem): Notice if either MEM has a
4591         non-default address space.
4592         (ix86_expand_strlen): Likewise.
4593         * config/i386/i386.md (strmov, strset): Likewise.
4594         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4595         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4596         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4597         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4598         *cmpstrnqi_1, *strlenqi_1): Likewise.
4600         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4601         (*movabs<mode>_2): Likewise.
4603         * dwarf2out.c (modified_type_die): Pass the address space number
4604         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4605         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4606         * targhooks.c (default_addr_space_debug): New.
4607         * targhooks.h (default_addr_space_debug): Declare.
4608         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4609         * doc/tm.texi: Rebuild.
4611         * gimple.c (check_loadstore): Return false when 0 is a valid address.
4612         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4613         null when 0 is valid in the source address space.
4614         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4615         * targhooks.c (default_addr_space_zero_address_valid): New.
4616         * targhooks.h (default_addr_space_zero_address_valid): Declare.
4617         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4618         * doc/tm.texi: Rebuild.
4620         * cselib.c (add_mem_for_addr): Compare address spaces when
4621         matching memories.
4622         (cselib_lookup_mem): Likewise.
4623         * fold-const.c (operand_equal_p): Check address spaces of
4624         pointer types before checking integer constants.
4626         PR tree-opt/66768
4627         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4628         the correct type for the base.
4630 2015-11-09  Jeff Law  <law@redhat.com>
4632         * tree-into-ssa.c (names_to_release): No longer static.
4633         * tree-into-ssa.h (names_to_release): Declare.
4634         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4635         (release_free_names_and_compact_live_names): New function extracted
4636         from pass_release_ssa_names::execute.
4637         (pass_release_ssa_names::execute): Use it.
4639 2015-11-09  Alan Modra  <amodra@gmail.com>
4641         * gensupport.c (add_mnemonic_string): Make len param a size_t.
4642         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
4643         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
4644         return value.
4646 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
4648         PR rtl-optimization/68182
4649         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4650         branch with only one successor just like unconditional branches.
4652 2015-11-08  Jeff Law  <law@redhat.com>
4654         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4655         non-FSM path has no edges marked with EDGE_DFS_BACK.
4656         (ssa_redirect_edges): No longer call mark_loop_for_removal.
4657         (thread_single_edge, def_split_header_continue_p): Remove.
4658         (bb_ends_with_multiway_branch): Likewise.
4659         (thread_through_loop_header): Remove cases of threading from
4660         latch through the header.  Simplify knowing we won't thread
4661         the latch.
4662         (thread_through_all_blocks): Simplify knowing that only the FSM
4663         threader needs to handle backedges.
4665 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4667         * doc/extend.texi (type attributes): Document scalar_storage_order.
4668         (Structure-Packing Pragmas): Rename into...
4669         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
4670         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4671         (Warnings): Document -Wno-scalar-storage-order.
4672         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4673         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4674         extract_bit_field and store_bit_field.
4675         (initialize_argument_information): Adjust call to store_expr.
4676         (load_register_parameters): Adjust call to extract_bit_field.
4677         * expmed.c (check_reverse_storage_order_support): New function.
4678         (check_reverse_float_storage_order_support): Likewise.
4679         (flip_storage_order): Likewise.
4680         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
4681         of the value if it is true.  Pass REVERSE to recursive call after
4682         adjusting the target offset.
4683         Do not use extraction or movstrict instruction if REVERSE is true.
4684         Pass REVERSE to store_fixed_bit_field.
4685         (store_bit_field): Add REVERSE parameter and pass to it to above.
4686         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4687         store_split_bit_field and store_fixed_bit_field_1.
4688         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
4689         order of the value if it is true and adjust the target offset.
4690         (store_split_bit_field): Add REVERSE parameter and pass it to
4691         store_fixed_bit_field.  Adjust the target offset if it is true.
4692         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
4693         of the value if it is true.  Pass REVERSE to recursive call after
4694         adjusting the target offset.
4695         Do not use extraction or subreg instruction if REVERSE is true.
4696         Pass REVERSE to extract_fixed_bit_field.
4697         (extract_bit_field): Add REVERSE parameter and pass to it to above.
4698         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4699         extract_split_bit_field and extract_fixed_bit_field_1.
4700         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
4701         order of the value if it is true and adjust the target offset.
4702         (extract_split_bit_field): Add REVERSE parameter and pass it to
4703         extract_fixed_bit_field.  Adjust the target offset if it is true.
4704         * expmed.h (flip_storage_order): Declare.
4705         (store_bit_field): Adjust prototype.
4706         (extract_bit_field): Likewise.
4707         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4708         (emit_group_store): Adjust call to store_bit_field.
4709         (copy_blkmode_from_reg): Likewise.
4710         (copy_blkmode_to_reg): Likewise.
4711         (write_complex_part): Likewise.
4712         (read_complex_part): Likewise.
4713         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
4714         that it isn't true if the target is a register.
4715         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4716         and flip the storage order of the value.
4717         <BIT_IOR_EXPR>: Flip the storage order of the value.
4718         (get_bit_range): Adjust call to get_inner_reference.
4719         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4720         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
4721         with reverse storage order.
4722         (store_expr_with_bounds): Add REVERSE parameter and pass it to
4723         recursive calls and call to store_bit_field.  Force the value into a
4724         register if it is true and then flip the storage order of the value.
4725         (store_expr): Add REVERSE parameter and pass it to above.
4726         (categorize_ctor_elements_1): Adjust call to
4727         initializer_constant_valid_p.
4728         (store_constructor_field): Add REVERSE parameter and pass it to
4729         recursive calls and call to store_field.
4730         (store_constructor): Add REVERSE parameter and pass it to calls to
4731         store_constructor_field and store_expr.  Set it to true for an
4732         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4733         (store_field): Add REVERSE parameter and pass it to recursive calls
4734         and calls to store_expr and store_bit_field.  Temporarily flip the
4735         storage order of the value with record type and integral mode and
4736         adjust the shift if it is true.
4737         (get_inner_reference): Add PREVERSEP parameter and set it to true
4738         upon encoutering a reference with reverse storage order.
4739         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4740         (expand_constructor): Adjust call to store_constructor.
4741         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4742         of the union type to store_expr in the MEM case and assert that it
4743         isn't set in the REG case.  Adjust call to store_field.
4744         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4745         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4746         get_inner_reference and extract_bit_field. Temporarily flip the
4747         storage order of the value with record type and integral mode and
4748         adjust the shift if it is true.  Flip the storage order of the value
4749         at the end if it is true.
4750         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4751         get_inner_reference.  Do not fetch an inner reference if it is true.
4752         * expr.h (store_expr_with_bounds): Ajust prototype.
4753         (store_expr): Likewise.
4754         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4755         REF_REVERSE_STORAGE_ORDER on the reference according to it.
4756         (optimize_bit_field_compare): Deal with reverse storage order.
4757         Adjust calls to get_inner_reference and make_bit_field_ref.
4758         (decode_field_reference): Add PREVERSEP parameter and adjust call to
4759         get_inner_reference.
4760         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
4761         to decode_field_reference and make_bit_field_ref.
4762         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4763         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4764         (fold_comparison): Adjust call to get_inner_reference.
4765         (split_address_to_core_and_offset): Adjust call to
4766         get_inner_reference.
4767         * gimple-expr.c (useless_type_conversion_p): Return false for array
4768         types with different TYPE_REVERSE_STORAGE_ORDER flag.
4769         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4770         REF_REVERSE_STORAGE_ORDER flag.
4771         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4772         * output.h (assemble_real): Adjust prototype.
4773         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4774         * stor-layout.c (finish_record_layout): Propagate the
4775         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4776         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4777         (TYPE_SATURATING): Adjust.
4778         (REF_REVERSE_STORAGE_ORDER): Document.
4779         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4780         set it to true upon encoutering a reference with reverse storage order.
4781         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4782         * tree-inline.c (remap_gimple_op_r): Propagate the
4783         REF_REVERSE_STORAGE_ORDER flag.
4784         (copy_tree_body_r): Likewise.
4785         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4786         store_expr.
4787         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4788         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4789         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4790         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4791         REF_REVERSE_STORAGE_ORDER flag.
4792         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4793         (gimple_canonical_types_compatible_p): Likewise.
4794         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4795         (TYPE_SATURATING): Adjust.
4796         (REF_REVERSE_STORAGE_ORDER): New flag.
4797         (reverse_storage_order_for_component_p): New inline predicate.
4798         (storage_order_barrier_p): Likewise.
4799         (get_inner_reference): Adjust prototype.
4800         * varasm.c: Include expmed.h.
4801         (assemble_variable_contents): Adjust call to output_constant.
4802         (assemble_real): Add REVERSE parameter.  Flip the storage
4803         order of the value if REVERSE is true.
4804         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4805         (assemble_constant_contents): Adjust call to output_constant.
4806         (output_constant_pool_2): Adjust call to assemble_real.
4807         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4808         TYPE_REVERSE_STORAGE_ORDER.
4809         (initializer_constant_valid_p): Add REVERSE parameter.
4810         (output_constant): Add REVERSE parameter.
4811         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4812         <REAL_TYPE>: Adjust call to assemble_real.
4813         <COMPLEX_TYPE>: Pass it to recursive calls.
4814         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
4815         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
4816         (struct oc_local_state): Add REVERSE field.
4817         (output_constructor_array_range): Adjust calls to output_constant.
4818         (output_constructor_regular_field): Likewise.
4819         (output_constructor_bitfield): Adjust call to output_constructor.
4820         Flip the storage order of the value if REVERSE is true.
4821         (output_constructor): Add REVERSE parameter.  Set it to true for an
4822         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
4823         output_constructor_bitfield.
4824         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4825         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4826         * builtins.c (get_object_alignment_2): Likewise.
4827         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4828         and get_ref_base_and_extent.
4829         * dbxout.c (dbxout_expand_expr): Likewise.
4830         * dwarf2out.c (add_var_loc_to_decl): Likewise.
4831         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4832         (loc_list_from_tree): Likewise.
4833         (fortran_common): Likewise.
4834         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4835         get_ref_base_and_extent.
4836         (get_base_constructor): Likewise.
4837         (fold_const_aggregate_ref_1): Likewise.
4838         * gimple-laddress.c (pass_laddress::execute): Adjust call to
4839         get_inner_reference.
4840         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4841         get_inner_reference and bail out on reverse storage order.
4842         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4843         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4844         build_ref_for_offset.
4845         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4846         get_ref_base_and_extent.
4847         (ipa_polymorphic_call_context): Likewise.
4848         (extr_type_from_vtbl_ptr_store): Likewise.
4849         (check_stmt_for_type_change): Likewise.
4850         (get_dynamic_type): Likewise.
4851         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4852         get_ref_base_and_extent.
4853         (compute_complex_assign_jump_func): Likewise.
4854         (get_ancestor_addr_info): Likewise.
4855         (compute_known_type_jump_func): Likewise.
4856         (determine_known_aggregate_parts): Likewise.
4857         (ipa_get_adjustment_candidate): Likewise.
4858         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4859         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4860         (build_ref_for_offset): Adjust prototype.
4861         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4862         get_inner_reference.
4863         * tree-affine.c (tree_to_aff_combination): Adjust call to
4864         get_inner_reference.
4865         (get_inner_reference_aff): Likewise.
4866         * tree-data-ref.c (split_constant_offset_1): Likewise.
4867         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
4868         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4869         get_inner_reference.
4870         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4871         (dump_access): Print new fields.
4872         (create_access): Adjust call to get_ref_base_and_extent and set the
4873         REVERSE flag according to the result.
4874         (completely_scalarize_record): Set the REVERSE flag.
4875         (scalarize_elem): Add REVERSE parameter.
4876         (build_access_from_expr_1): Preserve storage order barriers.
4877         (build_accesses_from_assign): Likewise.
4878         (build_ref_for_offset): Add REVERSE parameter and set the
4879         REF_REVERSE_STORAGE_ORDER flag accordingly.
4880         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4881         the REF_REVERSE_STORAGE_ORDER flag if there are components.
4882         (analyze_access_subtree): Likewise.
4883         (create_artificial_child_access): Set the REVERSE flag.
4884         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4885         (turn_representatives_into_adjustments): Propagate REVERSE flag.
4886         (ipa_sra_check_caller): Adjust call to get_inner_reference.
4887         * tree-ssa-alias.c (ao_ref_base): Adjust call to
4888         get_ref_base_and_extent.
4889         (aliasing_component_refs_p): Likewise.
4890         (stmt_kills_ref_p_1): Likewise.
4891         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4892         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4893         Return true if reverse storage order.
4894         <BIT_FIELD_REF>: Likewise.
4895         <COMPONENT_REF>: Likewise.
4896         <ARRAY_REF>: Likewise.
4897         <ARRAY_RANGE_REF>: Likewise.
4898         (split_address_cost): Likewise.  Bail out if reverse storage order.
4899         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4900         get_inner_reference.  Bail out if reverse storage order.
4901         (bswap_replace): Adjust call to get_inner_reference.
4902         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4903         the REF_REVERSE_STORAGE_ORDER flag.
4904         <BIT_FIELD_REF>: Likewise.
4905         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4906         barriers.
4907         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4908         to the REF_REVERSE_STORAGE_ORDER flag.
4909         <BIT_FIELD_REF>: Likewise.
4910         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4911         (contains_storage_order_barrier_p): New predicate.
4912         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4913         Punt on storage order barriers if necessary.
4914         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4915         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4916         call to get_ref_base_and_extent.
4917         (do_structure_copy): Likewise.
4918         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4919         get_inner_reference.
4920         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
4921         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4922         * ubsan.c (instrument_bool_enum_load): Likewise.
4923         (instrument_object_size): Likewise.
4924         * var-tracking.c (track_expr_p): Adjust call to
4925         get_ref_base_and_extent.
4926         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4927         get_inner_reference.
4928         * config/s390/s390.c (s390_expand_atomic): Adjust call to
4929         store_bit_field.
4930         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4931         extract_bit_field.
4932         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4934 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4936         * config/sparc/sparc.opt (mfix-at697f): Add final period.
4938 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4940         PR rtl-optimization/67864
4941         * common/config/i386/i386-common.c (ix86_option_optimization_table)
4942         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4943         at -Os and up.
4945 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4947         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4948         internal functions.
4950 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4952         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4953         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4955 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4957         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4958         * internal-fn.c: Don't undef it here.
4959         * tree-core.h: Likewise.
4961 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4963         * builtins.c (fold_builtin_nan): Delete.
4964         (fold_builtin_memcmp): Remove case where both arguments are constant.
4965         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4966         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4967         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4968         * fold-const-call.c: Include fold-const.h.
4969         (host_size_t_cst_p): New function.
4970         (build_cmp_result, fold_const_builtin_nan): Likewise.
4971         (fold_const_call_1): New function, split out from...
4972         (fold_const_call): ...here (for all three interfaces).  Handle
4973         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4975 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4977         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4978         (fold_builtin_1): Don't call them.
4979         * fold-const-call.c: Include tm.h.
4980         (fold_const_call_ss): New variant for integer-to-integer folds.
4981         (fold_const_call): Call it.
4983 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4985         * builtins.c (fold_builtin_classify): Move constant cases to...
4986         * fold-const-call.c (fold_const_call_ss): ...here.
4988 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4990         * builtins.h (c_getstr): Move to...
4991         * fold-const.h (c_getstr): ...here.
4992         * builtins.c (c_getstr): Move to...
4993         * fold-const.c (c_getstr): ...here.
4995 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4997         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4998         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5000 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5002         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5003         the dominance info; free it if we can't.
5004         (pass_call_cdce::execute): Don't free the dominance info here.
5006 2015-11-06  Jeff Law <law@redhat.com>
5008         * tree-ssa-threadedge.c (dummy_simplify): Remove.
5009         (thread_around_empty_blocks): Remove backedge_seen_p argument.
5010         If we thread to a backedge, then return false.  Update recursive
5011         call to eliminate backedge_seen_p argument.
5012         (thread_through_normal_block): Remove backedge_seen_p argument.
5013         Remove backedge_seen_p argument from calls to
5014         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
5015         If we thread to a backedge, then return 0.
5016         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
5017         pass it to thread_through_normal_block or thread_through_empty_blocks.
5018         For joiner handling, if we see a backedge, do not try normal
5019         threading.
5021 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5023         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5024         * graphite-poly.c (new_scop): Initialize original_schedule.
5025         (free_scop): Free original_schedule.
5026         * graphite-poly.h (struct scop): Add field original_schedule.
5027         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5028         (build_poly_scop): Call build_scop_original_schedule.
5030 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5032         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5033         (build_pbb_minimal_scattering_polyhedrons): New.
5034         (build_scop_scattering): Remove.
5035         (build_scop_minimal_scattering): New.
5036         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5037         (build_poly_scop): Call build_scop_minimal_scattering.
5039 2015-11-06  Jeff Law <law@redhat.com>
5041         * cfg-flags.def (IGNORE): New edge flag.
5042         * tree-vrp.c (identify_jump_threads): Mark and clear edges
5043         scheduled for removal with EDGE_IGNORE around call into
5044         jump threader.  Do no thread across edges with EDGE_IGNORE,
5045         but do allow threading across those with EDGE_DFS_BACK.
5047 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
5049         * doc/md.texi (multi-alternative constraints): Don't document
5050         alternatives inherently tied to reload for the user documentation.
5052 2015-11-06  Michael Collison  <michael.collison@linaro.org>
5053             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5055         Revert:
5056         2015-08-01  Michael Collison  <michael.collison@linaro.org
5057                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5059         * config/arm/arm.md (*arm_smin_cmp): New pattern.
5060         (*arm_umin_cmp): Likewise.
5062 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
5064         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5065         * omp-low.c (check_omp_nesting_restrictions): Update for the
5066         various new OpenMP 4.5 nesting restrictions, clarified
5067         nesting glossary, closely nested region relationship clarified
5068         to mean explicit or implicit parallel regions (target/teams),
5069         use %</%> or %qs where appropriate.
5071 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5072             Sebastian Pop  <s.pop@samsung.com>
5074         * graphite-scop-detection.c (loop_is_valid_scop): Call
5075         optimize_loop_nest_for_speed_p.
5077 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5078             Sebastian Pop  <s.pop@samsung.com>
5080         * graphite-optimize-isl.c (optimize_isl): Call
5081         isl_options_set_schedule_maximize_band_depth.
5083 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5084             Sebastian Pop  <s.pop@samsung.com>
5086         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5087         and exit edges should not be a part of irreducible loop.
5088         (scop_detection::can_represent_loop_1): Loops should not be
5089         irreducible.
5090         (scop_detection::harmful_stmt_in_region): All the basic block
5091         should belong to reducible loops.
5093 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
5095         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5096         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5097         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5098         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5099         (aarch64_tbx4v8qi): Rename to...
5100         aarch64_tbx4<mode>): ... this.
5101         (aarch64_qtbl3<mode>): New pattern.
5102         (aarch64_qtbx3<mode>): New pattern.
5103         (aarch64_qtbl4<mode>): New pattern.
5104         (aarch64_qtbx4<mode>): New pattern.
5105         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5106         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5107         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5108         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5109         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5110         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5111         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5112         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5113         functions.
5115 2015-11-06  Mike Stump  <mikestump@comcast.net>
5117         PR debug/66728
5118         * dwarf2out.c (get_full_len): Return a value based upon the actual
5119         precision needed for the value.
5120         (add_const_value_attribute): Use a maximal wide-int for
5121         CONST_WIDE_INTs, not VOIDmode.
5122         (output_die): Don't ever output NULL with printf.
5124         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5125         BLKmode nor VOIDmode values.
5127 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5129         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5130         and "range2".
5131         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5132         * diagnostic-core.h (warning_at_rich_loc): New declaration.
5133         (error_at_rich_loc): New declaration.
5134         (permerror_at_rich_loc): New declaration.
5135         (inform_at_rich_loc): New declaration.
5136         * diagnostic-show-locus.c (adjust_line): Delete.
5137         (struct point_state): New struct.
5138         (class colorizer): New class.
5139         (class layout_point): New class.
5140         (class layout_range): New class.
5141         (struct line_bounds): New.
5142         (class layout): New class.
5143         (colorizer::colorizer): New ctor.
5144         (colorizer::~colorizer): New dtor.
5145         (layout::layout): New ctor.
5146         (layout::print_source_line): New method.
5147         (layout::print_annotation_line): New method.
5148         (layout::get_state_at_point): New method.
5149         (layout::get_x_bound_for_row): New method.
5150         (diagnostic_show_locus): Reimplement in terms of class layout.
5151         (diagnostic_print_caret_line): Delete.
5152         * diagnostic.c (diagnostic_initialize): Replace
5153         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5154         (diagnostic_set_info_translated): Convert param from location_t
5155         to rich_location *.  Eliminate calls to set_location on the
5156         message in favor of storing the rich_location ptr there.
5157         (diagnostic_set_info): Convert param from location_t to
5158         rich_location *.
5159         (diagnostic_build_prefix): Break out array into...
5160         (diagnostic_kind_color): New variable.
5161         (diagnostic_get_color_for_kind): New function.
5162         (diagnostic_report_diagnostic): Colorize the option_text
5163         using the color for the severity.
5164         (diagnostic_append_note): Update for change in signature of
5165         diagnostic_set_info.
5166         (diagnostic_append_note_at_rich_loc): New function.
5167         (emit_diagnostic): Update for change in signature of
5168         diagnostic_set_info.
5169         (inform): Likewise.
5170         (inform_at_rich_loc): New function.
5171         (inform_n): Update for change in signature of diagnostic_set_info.
5172         (warning): Likewise.
5173         (warning_at): Likewise.
5174         (warning_at_rich_loc): New function.
5175         (warning_n): Update for change in signature of diagnostic_set_info.
5176         (pedwarn): Likewise.
5177         (permerror): Likewise.
5178         (permerror_at_rich_loc): New function.
5179         (error): Update for change in signature of diagnostic_set_info.
5180         (error_n): Likewise.
5181         (error_at): Likewise.
5182         (error_at_rich_loc): New function.
5183         (sorry): Update for change in signature of diagnostic_set_info.
5184         (fatal_error): Likewise.
5185         (internal_error): Likewise.
5186         (internal_error_no_backtrace): Likewise.
5187         (source_range::debug): New function.
5188         * diagnostic.h (struct diagnostic_info): Eliminate field
5189         "override_column".  Add field "richloc".
5190         (struct diagnostic_context): Add field "colorize_source_p".
5191         (diagnostic_override_column): Delete.
5192         (diagnostic_set_info): Convert param from location_t to
5193         rich_location *.
5194         (diagnostic_set_info_translated): Likewise.
5195         (diagnostic_append_note_at_rich_loc): New function.
5196         (diagnostic_num_locations): New function.
5197         (diagnostic_expand_location): Get the location from the
5198         rich_location.
5199         (diagnostic_print_caret_line): Delete.
5200         (diagnostic_get_color_for_kind): New declaration.
5201         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5202         (error_cb): Update for change in signature of "error" callback.
5203         (fatal_at): Likewise.
5204         (warning_at): Likewise.
5205         * input.c (linemap_client_expand_location_to_spelling_point): New.
5206         * pretty-print.c (text_info::set_range): New method.
5207         (text_info::get_location): New method.
5208         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5209         (struct text_info): Eliminate "locations" array in favor of
5210         "m_richloc", a rich_location *.
5211         (textinfo::set_location): Add a "caret_p" param, and reimplement
5212         in terms of a call to set_range.
5213         (textinfo::get_location): Eliminate inline implementation in favor of
5214         an out-of-line reimplementation.
5215         (textinfo::set_range): New method.
5216         * rtl-error.c (diagnostic_for_asm): Update for change in signature
5217         of diagnostic_set_info.
5218         * tree-diagnostic.c (default_tree_printer): Update for new
5219         "caret_p" param for textinfo::set_location.
5220         * tree-pretty-print.c (percent_K_format): Likewise.
5222 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5224         Properly apply.
5225         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5226         * config/aarch64/aarch64.c
5227         (aarch64_can_use_per_function_literal_pools_p): New.
5228         (aarch64_use_blocks_for_constant_p): Adjust declaration
5229         and use aarch64_can_use_function_literal_pools_p.
5230         (aarch64_select_rtx_section): Update.
5232 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5234         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5235         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5236         (arm_output_multireg_pop): Likewise.
5237         (output_move_double):  Likewise.
5238         (output_move_quad):  Likewise.
5239         (output_return_instruction): Likewise.
5240         (arm_print_operand): Remove support for %( and %. print modifiers.
5241         (arm_output_shift): Make unified asm.
5242         (arm_declare_function_name): Likewise.
5243         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5244         (ASM_APP_OFF): Adjust.
5245         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5246         (ASM_OUTPUT_REG_POP): Likewise.
5247         * config/arm/arm.md: Adjust uses of %., %(, %)
5248         * config/arm/sync.md: Likewise.
5249         * config/arm/thumb2.md: Likewise.
5250         * config/arm/ldmstm.md: Regenerate.
5251         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5252         * doc/invoke.texi (masm-unified-syntax): Update documentation.
5254 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5256         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5258 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5260         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5261         add OEP_MATCH_SIDE_EFFECTS.
5262         * fold-const.c (operand_equal_p): Update documentation; handle
5263         OEP_MATCH_SIDE_EFFECTS.
5264         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5265         OEP_MATCH_SIDE_EFFECTS.
5267 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
5268             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5270         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5271         * config/aarch64/aarch64-protos.h: Declare.
5272         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5273         frsqrts.
5274         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5275         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5276         code when applicable.
5277         * config/aarch64/aarch64.md: Added enum entries.
5278         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5280 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5282         PR ipa/68057
5283         PR ipa/68220
5284         * ipa-polymorphic-call.c
5285         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5286         issue when offset is out of range.
5287         (contains_type_p): Fix out of range check, clear dynamic flag.
5289 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
5291         * config.gcc (e6500): Fix cpu_is_64bit typo.
5293 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
5295         * tree-sra.c (completely_scalarize): Properly handle negative array
5296         indices using offset_int.
5298 2015-11-06  Richard Biener  <rguenther@suse.de>
5300         * alloc-pool.h (object_allocator::allocate): Default-initialize
5301         object.
5303 2015-11-06  Richard Biener  <rguenther@suse.de>
5305         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5306         * lra.c (init_reg_info): Truncate copy_vec instead of
5307         re-allocating a new one and leaking the old.
5308         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5309         bb_infos vec.
5310         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5311         * postreload-gcse.c (free_mem): Free modify_mem_list and
5312         canon_modify_mem_list.
5314 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
5316         PR tree-optimization/68145
5317         * tree-vect-stmts.c (vectorizable_operation): Fix
5318         determination for booleans.
5320 2015-11-06  Tom de Vries  <tom@codesourcery.com>
5322         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5323         cond_jump, instead of split after last nondebug insn before cond_jump.
5324         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5325         returning.
5327 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5329         PR target/68088
5330         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5331         subregs from accumulator and make sure it's a register.
5333 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
5335         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5336         low part to scalar.
5337         (reduc_uplus_<mode>): Remove.
5338         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5339         loongson_extract_lo_<mode>.
5340         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5341         reduc_smax_<mode>, reduc_smax_<mode>, use vec
5342         loongson_extract_lo_<mode>.
5343         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5345 2015-11-06  Richard Biener  <rguenther@suse.de>
5347         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5348         members.
5349         (vect_stmt_in_region_p): Declare.
5350         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5351         (destroy_bb_vec_info): Likewise.
5352         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5353         (vect_get_and_check_slp_defs): Likewise.
5354         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5355         (vect_slp_bb): Likewise.
5356         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5357         in terms of vect_stmt_in_region_p.
5358         (vect_pattern_recog): Iterate over the BB region.
5359         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5360         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5361         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5362         * config/i386/i386.c: Include gimple-iterator.h.
5363         * config/aarch64/aarch64.c: Likewise.
5365 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
5367         PR rtl-optimization/67753
5368         PR rtl-optimization/64164
5369         * function.c (assign_parm_setup_block): Avoid allocating a
5370         stack slot if we don't have an ABI-reserved one.  Emit the
5371         copy to target_reg in the conversion seq if the copy from
5372         entry_parm is in it too.  Don't use the conversion seq to copy
5373         a PARALLEL to a REG or a CONCAT.
5375 2015-11-06  Richard Biener  <rguenther@suse.de>
5377         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5378         equal_keys.
5380 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
5381             Thomas Schwinge  <thomas@codesourcery.com>
5382             James Norris  <jnorris@codesourcery.com>
5385         * gimplify.c (gimplify_scan_omp_clauses): Add support for
5386         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
5387         (gimplify_adjust_omp_clauses): Likewise.
5388         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5389         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5390         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5391         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5392         (omp_clause_code_name): Likewise.
5393         (walk_tree_1): Handle OMP_CLAUSE_TILE.
5394         * tree.h (OMP_TILE_LIST): New macro.
5396 2015-11-05  Martin Sebor  <msebor@redhat.com>
5398         PR c++/67942
5399         * doc/invoke.texi (-Wplacement-new): Document new option.
5401 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
5403         PR tree-optimization/65963
5404         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5405         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5407 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
5409         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5410         (noce_convert_multiple_sets): Likewise.
5411         (noce_process_if_block): Call them.
5413 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5415         * gimple-fold.c: Include omp-low.h.
5416         (fold_internal_goacc_dim): New.
5417         (gimple_fold_call): Call it.
5419 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
5420             Ilya Verbin  <ilya.verbin@intel.com>
5422         * builtin-types.def
5423         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5424         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5425         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5426         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5427         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5428         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5429         (struct cgraph_simd_clone_arg): Adjust comment.
5430         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5431         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
5432         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5433         to GOMP_target_data_ext.
5434         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5435         to GOMP_target_update_ext.
5436         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5437         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5438         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5439         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5440         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5441         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5442         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5443         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5444         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5445         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5446         * tree-core.h (enum omp_clause_schedule_kind): Add
5447         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5448         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5449         OMP_CLAUSE_SCHEDULE_LAST value.
5450         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5451         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5452         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5453         OMP_FOR_CHECK.  Remove comment.
5454         * tree-pretty-print.c (dump_omp_clause): Handle
5455         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5456         Simplify.  Print schedule clause modifiers.
5457         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5458         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5459         cases.
5460         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5461         (omp_default_clause): Tweak for
5462         private/firstprivate/is_device_ptr variables on target
5463         construct and use_device_ptr on target data.
5464         (omp_check_private): Likewise.
5465         (omp_notice_variable): For references check whether what it refers
5466         to has mappable type, rather than the reference itself.
5467         (omp_is_private): Diagnose linear iteration variables on non-simd
5468         constructs.
5469         (omp_no_lastprivate): Return true only for Fortran.
5470         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5471         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5472         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5473         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5474         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
5475         lastprivate and linear when combined with distribute.  Gimplify
5476         variable low-bound for array reduction.  Look through
5477         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5478         reductions.
5479         (gimplify_adjust_omp_clauses_1): For implicit references to
5480         variables with reference type and when not ref to scalar or
5481         ref to pointer, map what they refer to using tofrom and
5482         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5483         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5484         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5485         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
5486         Diagnose the same var on both firstprivate and lastprivate on
5487         distribute construct.
5488         (gimplify_omp_for): Fix up handling of predetermined
5489         lastprivate or linear iter vars when combined with distribute.
5490         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5491         functions.
5492         (gimplify_omp_workshare): Call optimize_target_teams.
5493         * omp-low.c (struct omp_region): Add sched_modifiers field.
5494         (struct omp_for_data): Likewise.
5495         (omp_any_child_fn_dumped): New variable.
5496         (extract_omp_for_data): Fill in sched_modifiers, and mask out
5497         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5498         from sched_kind.
5499         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5500         bits of OMP_CLAUSE_SCHED_KIND.
5501         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5502         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
5503         for array section reductions.
5504         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5505         for distribute parallel for, if there are lastprivate clauses on the
5506         for.
5507         (lower_rec_input_clauses): Handle non-zero low-bound on array
5508         section reductions.
5509         (lower_reduction_clauses): Likewise.
5510         (lower_send_clauses): Look through POINTER_PLUS_EXPR
5511         for array section reductions.
5512         (expand_parallel_call): Use nonmonotonic entrypoints for
5513         nonmonotonic: dynamic/guided.
5514         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5515         child_fn if current_function_decl has assembler name set, but child_fn
5516         does not.  Dump the header and IL of the child function when not in SSA
5517         form.
5518         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
5519         arguments to BUILT_IN_GOMP_TARGET.
5520         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5521         Initialize the extra _looptemp_ clause to fd->loop.n2.
5522         (expand_omp_for): Use nonmonotonic entrypoints for
5523         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
5524         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
5525         again if we have dumped any child functions.
5526         (lower_omp_for_lastprivate): Determine the right count variable
5527         for distribute simd, or distribute parallel for{, simd}.
5528         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5529         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
5530         support.
5531         (simd_clone_clauses_extract): Handle variable step
5532         for references and arguments passed by reference.
5533         (simd_clone_mangle): Mangle ref/uval/val variable steps.
5534         (simd_clone_adjust_argument_types): Handle
5535         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5536         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5537         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5538         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5539         (simd_clone_linear_addend): New function.
5540         (simd_clone_adjust): Handle variable step like similarly
5541         to constant step, use simd_clone_linear_addend to determine
5542         the actual step at runtime.
5544 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5546         * target.def (goacc.dim_limit): New hook.
5547         * targhooks.h (default_goacc_dim_limit): Declare.
5548         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5549         * doc/tm.texi: Rebuilt.
5550         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5551         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5552         (default_goacc_dim_limit): New.
5553         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5554         (nvptx_goacc_dim_limit) New.
5555         (TARGET_GOACC_DIM_LIMIT): Override.
5556         * tree-vrp.c: Include omp-low.h, target.h.
5557         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5558         IFN_GOACC_DIM_POS.
5560 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5562         * tree-vect-generic.c (do_compare): Use -1 for true
5563         result instead of 1.
5565 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5567         * config/aarch64/aarch64.c
5568         (aarch64_can_use_per_function_literal_pools_p): New.
5569         (aarch64_use_blocks_for_constant_p): Adjust declaration
5570         and use aarch64_can_use_function_literal_pools_p.
5571         (aarch64_select_rtx_section): Update.
5573 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5575         * targhooks.c (default_get_mask_mode): Use BLKmode in
5576         case target doesn't support required vector mode.
5577         * stor-layout.c (layout_type); Check for BLKmode.
5579 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5580             Sebastian Pop  <s.pop@samsung.com>
5582         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5583         Remove use of parameter_rename_map.
5584         (copy_def): Remove.
5585         (copy_internal_parameters): Remove.
5586         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5587         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5588         (free_sese_info): Do not free parameter_rename_map.
5589         (set_rename): Do not use parameter_rename_map.
5590         (rename_uses): Update call to set_rename.
5591         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5592         * sese.h (parameter_rename_map_t): Remove.
5593         (struct sese_info_t): Remove field parameter_rename_map.
5595 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5596             Sebastian Pop  <s.pop@samsung.com>
5598         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5599         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5600         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5601         anonymous namespace.
5602         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5603         (isl_id_for_pbb): Use a buffer of size 10.
5604         (isl_id_for_ssa_name): Same.
5605         * sese.c (set_rename): Add more dumps.
5607 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5609         * omp-low.c (struct omp_context): Remove reduction_map field.
5610         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5611         (new_omp_context, delete_omp_context, scan_omp_target): Remove
5612         reduction_map handling.
5613         (lower_omp_target): Remove obsolete openacc reduction handling.
5615 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5617         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5619 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5620             Cesar Philippidis  <cesar@codesourcery.com>
5622         * config/nvptx/nvptx.c: Include gimple headers.
5623         (worker_red_size, worker_red_align, worker_red_name,
5624         worker_red_sym): New.
5625         (nvptx_option_override): Initialize worker reduction buffer.
5626         (nvptx_file_end): Write out worker reduction buffer var.
5627         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5628         nvptx_expand_cmp_swap): New builtin expanders.
5629         (enum nvptx_builtins): New.
5630         (nvptx_builtin_decls): New.
5631         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5632         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5633         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5634         nvptx_lockless_update): New helpers.
5635         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5636         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5637         (nvptx_goacc_reduction): New.
5638         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5639         TARGET_BUILTIN_DECL): Override.
5640         (TARGET_GOACC_REDUCTION): Override.
5642 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5643             Cesar Philippidis  <cesar@codesourcery.com>
5645         * internal-fn.def (GOACC_REDUCTION): New.
5646         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5647         * internal-fn.c (expand_GOACC_REDUCTION): New.
5648         * target.def (goacc.reduction): New OpenACC hook.
5649         * targhooks.h (default_goacc_reduction): Declare.
5650         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5651         * doc/tm.texi: Rebuilt.
5652         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5653         scan_sharing_clauses): Remove oacc reduction handling here.
5654         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5655         (oacc_lower_reduction_var_helper): Delete.
5656         (lower_oacc_reductions): New.
5657         (lower_reduction_clauses): Don't handle OpenACC reductions here.
5658         (lower_oacc_head_tail): Call lower_oacc_reductions.
5659         (oacc_gimple_assign, oacc_init_reduction_array,
5660         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5661         oacc_process_reduction_data): Delete.
5662         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
5663         dummy OpenACC gang reduction for reductions at outer level.
5664         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5665         (default_goacc_reduction): New.
5666         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5668 2015-11-04  Martin Liska  <mliska@suse.cz>
5670         * cgraphunit.c (cgraph_node::expand_thunk): Call
5671         allocate_struct_function before init_function_start.
5672         (cgraph_node::expand): Use push_cfun and pop_cfun.
5673         * config/i386/i386.c (ix86_code_end): Call
5674         allocate_struct_function before init_function_start.
5675         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5676         * function.c (init_function_start): Move preamble to all
5677         callers.
5678         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5679         (execute_one_pass): Handle newly added TODO_discard_function.
5680         (execute_pass_list_1): Terminate if cfun equals to NULL.
5681         (execute_pass_list): Do not push and pop cfun, expect that
5682         cfun is set.
5683         * tree-pass.h (TODO_discard_function): Define.
5685 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
5687         * cfganal.c (inverted_post_order_compute): Remove conditional
5688         compilation, use flag_checking.
5689         * config.in: Regenerate.
5690         * configure: Regenerate.
5691         * configure.ac: Remove ENABLE_CHECKING.
5692         * genconditions.c: Do not #undef ENABLE_CHECKING.
5693         * sese.h (bb_in_region): Comment out broken check.
5694         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5695         conditional compilation, use flag_checking.
5697 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5699         PR tree-optimization/67742
5700         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5701         field.
5702         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5703         (create_variable_info_for_1): Add and handle handle_param parameter.
5704         Add restrict handling.
5705         (create_variable_info_for): Call create_variable_info_for_1 with extra
5706         arg.
5707         (make_param_constraints): Drop restrict_name parameter.  Ignore
5708         vi->only_restrict_pointers.
5709         (intra_create_variable_infos): Call create_variable_info_for_1 with
5710         extra arg.  Remove restrict handling.  Call make_param_constraints with
5711         one fewer arg.
5713 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5715         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5716         variable.
5718 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5720         * config/arm/coff.h: Remove.
5722 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5724         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5725         check for aggregate types and beef up comment for mode check.
5727 2015-11-03  Richard Biener  <rguenther@suse.de>
5729         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5730         data references here.
5731         * tree-vect-loop.c: Include cgraph.h.
5732         (vect_analyze_loop_2): Collect data references here.
5733         * tree-vect-slp.c (find_bb_location): Inline ...
5734         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
5735         Factor in vect_slp_transform_bb.
5736         (vect_slp_transform_bb): Removed.
5737         (vect_slp_analyze_bb_1): Collect data references here.
5738         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5739         vect_slp_bb.
5740         * tree-vectorizer.h (vect_slp_bb): Declare.
5741         (vect_slp_analyze_bb): Remove.
5742         (vect_slp_transform_bb): Remove.
5743         (find_bb_location): Remove.
5744         (vect_analyze_data_refs): Remove stmt count reference parameter.
5746 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
5748         * multiple_target.c (create_dispatcher_calls): Add target check
5749         on ifunc.
5750         (create_target_clone): Change assembler name for versioned declarations.
5752 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
5753             Chung-Lin Tang  <cltang@codesourcery.com>
5755         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5756         * omp-low.c (check_omp_nesting_restrictions): Allow
5757         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5758         contexts.
5760 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
5762         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5763         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5764         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5765         builtin.
5766         (vmulxq_f32): Likewise.
5767         (vmulx_f64): New.
5768         (vmulxq_f64): Rewrite to call fmulx builtin.
5769         (vmulxs_f32): Likewise.
5770         (vmulxd_f64): Likewise.
5771         (vmulx_lane_f32): Remove.
5772         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5774 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
5776         * config/aarch64/aarch64.md (*movhf_aarch64): Use
5777         aarch64_reg_or_fp_zero for second operand.
5779 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
5781         * gimple-expr.c: Include hash-set.h and rtl.h.
5782         (mark_addressable_queue): New var.
5783         (mark_addressable): Factor actual marking into...
5784         (mark_addressable_1): ... this.  Queue it up during expand.
5785         (mark_addressable_2): New.
5786         (flush_mark_addressable_queue): New.
5787         * gimple-expr.h (flush_mark_addressable_queue): Declare.
5788         * cfgexpand.c: Include gimple-expr.h.
5789         (pass_expand::execute): Flush mark_addressable queue.
5791 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
5793         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5794         bb_no_side_effects_p tests...
5795         (tree_ssa_ifcombine_bb): ... here.
5797         PR tree-optimization/68083
5798         * tree-ssa-ifcombine.c: Include tree-ssa.h.
5799         (bb_no_side_effects_p): Test for undefined uses too.
5800         * tree-ssa.c (gimple_uses_undefined_value_p): New.
5801         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5803 2015-11-02  Jeff Law <law@redhat.com>
5805         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5806         cases where the loop latch edge is in the middle of an FSM path.
5808 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5810         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5811         (make_param_constraints): ... this.  Add and handle restrict_name
5812         parameter.  Handle is_full_var case.
5813         (intra_create_variable_infos): Use make_param_constraints.
5815 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5817         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5818         make_copy_constraint call with make_constraint_from call.
5820 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
5822         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5823         PIE executables.
5825 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
5827         * builtins.h (fold_fma): Move to fold-const-call.h.
5828         * builtins.c: Include fold-const-call.h.
5829         (mathfn_built_in_2): New function, split out from...
5830         (mathfn_built_in_1): ...here.
5831         (do_real_to_int_conversion, fold_const_builtin_pow)
5832         (fold_const_builtin_logb, fold_const_builtin_significand)
5833         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5834         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5835         (fold_builtin_sincos): Use fold_const_call to handle constants.
5836         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5837         checks for ERROR_MARK.  Use fold_const_call to handle constant
5838         folds for math functions.
5839         (fold_fma): Move to fold-const-call.c.
5840         * fold-const.c: Include fold-const-call.h.
5841         * Makefile.in (OBJS): Add fold-const-call.o.
5842         (PLUGIN_HEADERS): Add fold-const-call.h.
5843         * realmpfr.h (real_from_mpfr): Allow the format to be specified
5844         directly.
5845         * realmpfr.c (real_from_mpfr): Likewise.
5846         * fold-const-call.h, fold-const-call.c: New files.
5848 2015-11-02  Julian Brown  <julian@codesourcery.com>
5850         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5851         brackets and semicolon.
5853 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
5855         Revert:
5856         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
5858         PR tree-optimization/65963
5859         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5860         LSHIFT_EXPRs as equivalent MULT_EXPRs.
5862 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5864         PR middle-end/68166
5865         * fold-const.c: Include "md5.h".
5867 2015-11-01  Jeff Law <law@redhat.com>
5869         * vmsdbgout.c: Revert unused header file reduction patch.
5871         * config/mcore/mcore.c: Include regs.h.
5873 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5875         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5877 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5879         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5880         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5881         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5883 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5885         * ggc-common.c: Restore needed header for checking=release.
5887 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5889         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5891 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5893         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5894         existing varinfo for arguments.
5896 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5898         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5899         create_function_info_for.  Dump constraints generated during
5900         create_function_info_for. Move intra_create_variable_infos call and
5901         function-return-values-escape bit to ...
5902         (create_function_info_for): ... here, and merge
5903         intra_create_variable_infos call with argument loop.  Add and handle
5904         nonlocal_p parameter.
5906 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5908         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5909         updating is alap, and seperated from preceding code.  Make sure
5910         insert_vi_for_tree is seperated from surrounding code.
5912 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5914         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5916 2015-10-30  Jeff Law <law@redhat.com>
5917             Nathan Sidwell  <nathan@acm.org>
5919         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5920         args.
5921         (MOVE_MAX): Set to 8.
5923 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
5925         * cgraph.c: Include context.h for offloading.
5926         * varpool.c: Include context.h and omp-low.h.
5928 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
5930         * rtl.h (contains_symbol_ref_p): Declare.
5931         (SYMBOL_REF_P): Define.
5932         * rtlanal.c (contains_symbol_ref_p: New function.
5933         * lra-constraints.c (contains_symbol_ref_p): Remove.
5934         * var-tracking.c (contains_symbol_ref): Remove.
5935         (track_expr_p): Use contains_symbol_ref_p instead of
5936         contains_symbol_ref.
5938 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5940         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5941         * fold-const.c (get_array_ctor_element_at_index): New.
5942         (fold): Remove binary-search through CONSTRUCTOR, call previous.
5944         * fold-const.h (get_array_ctor_element_at_index): New.
5946 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
5948         * Makefile.in (OBJS): Add multiple_target.o.
5949         * attrib.c (make_attribute): Moved from config/i386/i386.c
5950         * config/i386/i386.c (make_attribute): Deleted.
5951         * multiple_target.c (create_dispatcher_calls): New.
5952         (get_attr_len): Ditto.
5953         (get_attr_str): Ditto.
5954         (separate_attrs): Ditto.
5955         (is_valid_asm_symbol): Ditto.
5956         (create_new_asm_name): Ditto.
5957         (create_target_clone): Ditto.
5958         (expand_target_clones): Ditto.
5959         (ipa_target_clone): Ditto.
5960         (ipa_dispatcher_calls): Ditto.
5961         * passes.def (pass_target_clone): Two new ipa passes.
5962         * tree-pass.h (make_pass_target_clone): Ditto.
5963         * doc/extend.texi (target_clones): New attribute description.
5965 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5967         PR rtl-optimization/68106
5968         * lra-remat.c (input_regno_present_p): Process hard regs
5969         explicitly present in machine description insns.
5970         (call_used_input_regno_present_p): Ditto.
5971         (calculate_gen_cands): Ditto.
5972         (do_remat): Ditto.
5974 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
5976         * config/arm/neon-testgen.ml: Fix comment typo.
5978 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5980         * rtlanal.c (reg_set_p): Expand function comment.
5982 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
5984         * alias.c: Remove unused headers.
5985         * asan.c: Likewise.
5986         * attribs.c: Likewise.
5987         * auto-inc-dec.c: Likewise.
5988         * auto-profile.c: Likewise.
5989         * bb-reorder.c: Likewise.
5990         * bitmap.c: Likewise.
5991         * bt-load.c: Likewise.
5992         * builtins.c: Likewise.
5993         * caller-save.c: Likewise.
5994         * calls.c: Likewise.
5995         * ccmp.c: Likewise.
5996         * cfg.c: Likewise.
5997         * cfganal.c: Likewise.
5998         * cfgbuild.c: Likewise.
5999         * cfgcleanup.c: Likewise.
6000         * cfgexpand.c: Likewise.
6001         * cfghooks.c: Likewise.
6002         * cfgloop.c: Likewise.
6003         * cfgloopanal.c: Likewise.
6004         * cfgloopmanip.c: Likewise.
6005         * cfgrtl.c: Likewise.
6006         * cgraph.c: Likewise.
6007         * cgraphbuild.c: Likewise.
6008         * cgraphclones.c: Likewise.
6009         * cgraphunit.c: Likewise.
6010         * cilk-common.c: Likewise.
6011         * combine-stack-adj.c: Likewise.
6012         * combine.c: Likewise.
6013         * compare-elim.c: Likewise.
6014         * convert.c: Likewise.
6015         * coverage.c: Likewise.
6016         * cppbuiltin.c: Likewise.
6017         * cprop.c: Likewise.
6018         * cse.c: Likewise.
6019         * cselib.c: Likewise.
6020         * data-streamer-in.c: Likewise.
6021         * data-streamer-out.c: Likewise.
6022         * data-streamer.c: Likewise.
6023         * dbxout.c: Likewise.
6024         * dce.c: Likewise.
6025         * ddg.c: Likewise.
6026         * debug.c: Likewise.
6027         * df-core.c: Likewise.
6028         * df-problems.c: Likewise.
6029         * df-scan.c: Likewise.
6030         * dfp.c: Likewise.
6031         * dojump.c: Likewise.
6032         * dominance.c: Likewise.
6033         * domwalk.c: Likewise.
6034         * double-int.c: Likewise.
6035         * dse.c: Likewise.
6036         * dumpfile.c: Likewise.
6037         * dwarf2asm.c: Likewise.
6038         * dwarf2cfi.c: Likewise.
6039         * dwarf2out.c: Likewise.
6040         * emit-rtl.c: Likewise.
6041         * except.c: Likewise.
6042         * explow.c: Likewise.
6043         * expmed.c: Likewise.
6044         * expr.c: Likewise.
6045         * final.c: Likewise.
6046         * fixed-value.c: Likewise.
6047         * fold-const.c: Likewise.
6048         * function.c: Likewise.
6049         * fwprop.c: Likewise.
6050         * gcse.c: Likewise.
6051         * generic-match-head.c: Likewise.
6052         * ggc-common.c: Likewise.
6053         * gimple-builder.c: Likewise.
6054         * gimple-expr.c: Likewise.
6055         * gimple-fold.c: Likewise.
6056         * gimple-iterator.c: Likewise.
6057         * gimple-low.c: Likewise.
6058         * gimple-match-head.c: Likewise.
6059         * gimple-pretty-print.c: Likewise.
6060         * gimple-ssa-isolate-paths.c: Likewise.
6061         * gimple-ssa-strength-reduction.c: Likewise.
6062         * gimple-streamer-in.c: Likewise.
6063         * gimple-streamer-out.c: Likewise.
6064         * gimple-walk.c: Likewise.
6065         * gimple.c: Likewise.
6066         * gimplify-me.c: Likewise.
6067         * gimplify.c: Likewise.
6068         * godump.c: Likewise.
6069         * graph.c: Likewise.
6070         * graphds.c: Likewise.
6071         * haifa-sched.c: Likewise.
6072         * hw-doloop.c: Likewise.
6073         * ifcvt.c: Likewise.
6074         * init-regs.c: Likewise.
6075         * internal-fn.c: Likewise.
6076         * ipa-chkp.c: Likewise.
6077         * ipa-comdats.c: Likewise.
6078         * ipa-cp.c: Likewise.
6079         * ipa-devirt.c: Likewise.
6080         * ipa-icf-gimple.c: Likewise.
6081         * ipa-icf.c: Likewise.
6082         * ipa-inline-analysis.c: Likewise.
6083         * ipa-inline-transform.c: Likewise.
6084         * ipa-inline.c: Likewise.
6085         * ipa-polymorphic-call.c: Likewise.
6086         * ipa-profile.c: Likewise.
6087         * ipa-prop.c: Likewise.
6088         * ipa-pure-const.c: Likewise.
6089         * ipa-ref.c: Likewise.
6090         * ipa-reference.c: Likewise.
6091         * ipa-split.c: Likewise.
6092         * ipa-utils.c: Likewise.
6093         * ipa-visibility.c: Likewise.
6094         * ipa.c: Likewise.
6095         * ira-build.c: Likewise.
6096         * ira-color.c: Likewise.
6097         * ira-conflicts.c: Likewise.
6098         * ira-costs.c: Likewise.
6099         * ira-emit.c: Likewise.
6100         * ira-lives.c: Likewise.
6101         * ira.c: Likewise.
6102         * jump.c: Likewise.
6103         * langhooks.c: Likewise.
6104         * lcm.c: Likewise.
6105         * lists.c: Likewise.
6106         * loop-doloop.c: Likewise.
6107         * loop-init.c: Likewise.
6108         * loop-invariant.c: Likewise.
6109         * loop-iv.c: Likewise.
6110         * loop-unroll.c: Likewise.
6111         * lower-subreg.c: Likewise.
6112         * lra-assigns.c: Likewise.
6113         * lra-coalesce.c: Likewise.
6114         * lra-constraints.c: Likewise.
6115         * lra-eliminations.c: Likewise.
6116         * lra-lives.c: Likewise.
6117         * lra-remat.c: Likewise.
6118         * lra-spills.c: Likewise.
6119         * lra.c: Likewise.
6120         * lto-cgraph.c: Likewise.
6121         * lto-compress.c: Likewise.
6122         * lto-opts.c: Likewise.
6123         * lto-section-in.c: Likewise.
6124         * lto-section-out.c: Likewise.
6125         * lto-streamer-in.c: Likewise.
6126         * lto-streamer-out.c: Likewise.
6127         * lto-streamer.c: Likewise.
6128         * mcf.c: Likewise.
6129         * mode-switching.c: Likewise.
6130         * modulo-sched.c: Likewise.
6131         * optabs.c: Likewise.
6132         * opts-global.c: Likewise.
6133         * passes.c: Likewise.
6134         * plugin.c: Likewise.
6135         * postreload-gcse.c: Likewise.
6136         * postreload.c: Likewise.
6137         * predict.c: Likewise.
6138         * print-tree.c: Likewise.
6139         * profile.c: Likewise.
6140         * real.c: Likewise.
6141         * realmpfr.c: Likewise.
6142         * recog.c: Likewise.
6143         * ree.c: Likewise.
6144         * reg-stack.c: Likewise.
6145         * regcprop.c: Likewise.
6146         * reginfo.c: Likewise.
6147         * regrename.c: Likewise.
6148         * regstat.c: Likewise.
6149         * reload.c: Likewise.
6150         * reload1.c: Likewise.
6151         * reorg.c: Likewise.
6152         * resource.c: Likewise.
6153         * rtl-chkp.c: Likewise.
6154         * rtl-error.c: Likewise.
6155         * rtlanal.c: Likewise.
6156         * rtlhooks.c: Likewise.
6157         * sanopt.c: Likewise.
6158         * sched-deps.c: Likewise.
6159         * sched-ebb.c: Likewise.
6160         * sched-rgn.c: Likewise.
6161         * sdbout.c: Likewise.
6162         * sel-sched-dump.c: Likewise.
6163         * sel-sched-ir.c: Likewise.
6164         * sel-sched.c: Likewise.
6165         * sese.c: Likewise.
6166         * shrink-wrap.c: Likewise.
6167         * simplify-rtx.c: Likewise.
6168         * stack-ptr-mod.c: Likewise.
6169         * statistics.c: Likewise.
6170         * stmt.c: Likewise.
6171         * stor-layout.c: Likewise.
6172         * store-motion.c: Likewise.
6173         * stringpool.c: Likewise.
6174         * symtab.c: Likewise.
6175         * target-globals.c: Likewise.
6176         * targhooks.c: Likewise.
6177         * toplev.c: Likewise.
6178         * tracer.c: Likewise.
6179         * trans-mem.c: Likewise.
6180         * tree-affine.c: Likewise.
6181         * tree-call-cdce.c: Likewise.
6182         * tree-cfg.c: Likewise.
6183         * tree-cfgcleanup.c: Likewise.
6184         * tree-chkp-opt.c: Likewise.
6185         * tree-chkp.c: Likewise.
6186         * tree-chrec.c: Likewise.
6187         * tree-complex.c: Likewise.
6188         * tree-data-ref.c: Likewise.
6189         * tree-dfa.c: Likewise.
6190         * tree-diagnostic.c: Likewise.
6191         * tree-dump.c: Likewise.
6192         * tree-eh.c: Likewise.
6193         * tree-emutls.c: Likewise.
6194         * tree-if-conv.c: Likewise.
6195         * tree-inline.c: Likewise.
6196         * tree-into-ssa.c: Likewise.
6197         * tree-iterator.c: Likewise.
6198         * tree-loop-distribution.c: Likewise.
6199         * tree-nested.c: Likewise.
6200         * tree-nrv.c: Likewise.
6201         * tree-object-size.c: Likewise.
6202         * tree-outof-ssa.c: Likewise.
6203         * tree-parloops.c: Likewise.
6204         * tree-phinodes.c: Likewise.
6205         * tree-predcom.c: Likewise.
6206         * tree-pretty-print.c: Likewise.
6207         * tree-profile.c: Likewise.
6208         * tree-scalar-evolution.c: Likewise.
6209         * tree-sra.c: Likewise.
6210         * tree-ssa-address.c: Likewise.
6211         * tree-ssa-alias.c: Likewise.
6212         * tree-ssa-ccp.c: Likewise.
6213         * tree-ssa-coalesce.c: Likewise.
6214         * tree-ssa-copy.c: Likewise.
6215         * tree-ssa-dce.c: Likewise.
6216         * tree-ssa-dse.c: Likewise.
6217         * tree-ssa-forwprop.c: Likewise.
6218         * tree-ssa-ifcombine.c: Likewise.
6219         * tree-ssa-live.c: Likewise.
6220         * tree-ssa-loop-ch.c: Likewise.
6221         * tree-ssa-loop-im.c: Likewise.
6222         * tree-ssa-loop-ivcanon.c: Likewise.
6223         * tree-ssa-loop-ivopts.c: Likewise.
6224         * tree-ssa-loop-manip.c: Likewise.
6225         * tree-ssa-loop-niter.c: Likewise.
6226         * tree-ssa-loop-prefetch.c: Likewise.
6227         * tree-ssa-loop-unswitch.c: Likewise.
6228         * tree-ssa-loop.c: Likewise.
6229         * tree-ssa-math-opts.c: Likewise.
6230         * tree-ssa-operands.c: Likewise.
6231         * tree-ssa-phiopt.c: Likewise.
6232         * tree-ssa-phiprop.c: Likewise.
6233         * tree-ssa-pre.c: Likewise.
6234         * tree-ssa-propagate.c: Likewise.
6235         * tree-ssa-reassoc.c: Likewise.
6236         * tree-ssa-scopedtables.c: Likewise.
6237         * tree-ssa-sink.c: Likewise.
6238         * tree-ssa-strlen.c: Likewise.
6239         * tree-ssa-structalias.c: Likewise.
6240         * tree-ssa-tail-merge.c: Likewise.
6241         * tree-ssa-ter.c: Likewise.
6242         * tree-ssa-threadupdate.c: Likewise.
6243         * tree-ssa-uncprop.c: Likewise.
6244         * tree-ssa-uninit.c: Likewise.
6245         * tree-ssa.c: Likewise.
6246         * tree-ssanames.c: Likewise.
6247         * tree-stdarg.c: Likewise.
6248         * tree-streamer-in.c: Likewise.
6249         * tree-streamer-out.c: Likewise.
6250         * tree-streamer.c: Likewise.
6251         * tree-switch-conversion.c: Likewise.
6252         * tree-tailcall.c: Likewise.
6253         * tree-vect-data-refs.c: Likewise.
6254         * tree-vect-generic.c: Likewise.
6255         * tree-vect-loop-manip.c: Likewise.
6256         * tree-vect-loop.c: Likewise.
6257         * tree-vect-patterns.c: Likewise.
6258         * tree-vect-slp.c: Likewise.
6259         * tree-vect-stmts.c: Likewise.
6260         * tree-vectorizer.c: Likewise.
6261         * tree-vrp.c: Likewise.
6262         * tree.c: Likewise.
6263         * tsan.c: Likewise.
6264         * ubsan.c: Likewise.
6265         * value-prof.c: Likewise.
6266         * var-tracking.c: Likewise.
6267         * varasm.c: Likewise.
6268         * varpool.c: Likewise.
6269         * vmsdbgout.c: Likewise.
6270         * vtable-verify.c: Likewise.
6271         * web.c: Likewise.
6272         * wide-int-print.cc: Likewise.
6273         * wide-int.cc: Likewise.
6274         * xcoffout.c: Likewise.
6276 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
6278         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6279         between pass numbering and execution order.
6281 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6283         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6284         check for dependencies.
6286 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6288         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6289         CDI_DOMINATORS.
6291 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6293         * real.h (format_helper): New.
6294         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6295         (real_from_target, real_nan, real_2expN, real_value_truncate)
6296         (significand_size, real_from_string2, exact_real_inverse)
6297         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6298         (real_round, real_isinteger, real_from_integer): Replace
6299         machine_mode arguments with format_helper arguments.
6300         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6301         (real_from_integer, real_nan, real_2expN, real_convert)
6302         (real_value_truncate, exact_real_truncate, real_to_target)
6303         (real_from_target, significand_size, real_powi, real_trunc)
6304         (real_floor, real_ceil, real_round, real_isinteger): Replace
6305         machine_mode arguments with format_helper arguments.
6306         (real_to_target_fmt, real_from_target_fmt): Delete.
6307         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6308         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6309         argument with real_format.
6310         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6312 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6314         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6315         (fixed_to_decimal, fixed_convert_from_real)
6316         (real_convert_from_fixed): Fix mode arguments to real_2expN.
6318 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6320         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6321         SCALAR_FLOAT_MODE_P.
6323 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6325         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6326         (completely_scalarize): Comment zero-length arrays.
6327         (get_access_replacement): Correct comment re. precondition.
6329 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6331         * config/i386/i386.c (get_builtin_code_for_version): Set priority
6332         for PROCESSOR_ZNVER1.
6333         (enum processor_model): Add M_AMDFAM17H_znver1.
6334         (struct arch_names_table): Likewise.
6335         * doc/extend.texi: ADD znver1.
6337 2015-10-30  Richard Biener  <rguenther@suse.de>
6339         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6340         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
6341         zeros to be folded to VECTOR_CSTs.
6342         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6343         * fold-const.c (fold): Use build_vector_from_ctor.
6345 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
6347         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6348         "mov %0.h[0], %1.h[0] to "neon_move".
6349         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6350         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6351         "mov_imm".
6352         (*cmovsi_insn_uxtw): Likewise.
6354 2015-10-30  Tom de Vries  <tom@codesourcery.com>
6356         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6357         unsigned, and initialize, and use initial value instead of hardcoded
6358         constant.  Add generic constraints dumping section.  Don't dump global
6359         initializers constraints dumping section if empty.  Don't update
6360         variable from if unused.
6362 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6364         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6365         flag_checking and/or CHECKING_P to eliminate conditional compilation
6366         on ENABLE_CHECKING.
6367         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6368         * config/bfin/bfin.c (hwloop_optimize): Likewise.
6369         * config/i386/i386.c (ix86_print_operand_address): Likewise.
6370         (output_387_binary_op): Likewise.
6371         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6372         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6373         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6374         Likewise.
6375         * config/rs6000/rs6000.h: Likewise.
6376         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6378 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6380         * config/sh/sh.opt (mfdpic): Add missing period.
6382 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6384         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6385         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6386         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6387         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6388         mcore_base_register_rtx_p, mcore_legitimate_index_p,
6389         mcore_legitimate_address_p): New functions.
6390         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6392 2015-10-29  Jeff Law  <law@redhat.com>
6394         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6395         method.
6396         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6397         * tree-ssa-threadedge.c
6398         (record_temporary_equivalences_from_stmts_at_dest): Remove
6399         backedge_seen argument and associated code which invalidated
6400         equivalences based on the value of that argument.
6401         (thread_through_normal_block): Corresponding changes.
6403 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6405         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6406         function earlier in the file.
6407         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6408         df_regs_ever_live_p.
6410 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6412         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6413         by ignoring it.
6415 2015-10-29  Richard Henderson  <rth@redhat.com>
6417         PR target/68124
6418         PR rtl-opt/67609
6419         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6420         sse check to the exact conditions of PR 67609.
6422 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6424         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6425         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6426         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6427         of the traditional names that TFmode uses for handling IEEE
6428         extended double. If -mfloat128, add KFmode functions for all of
6429         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6430         make TFmode use the same emulation functions as KFmode.
6431         (init_float128_ibm): Likewise.
6432         (init_float128_ieee): Likewise.
6433         (rs6000_generate_compare): For IEEE 128-bit floating point
6434         comparisons, call the unordered comparison function instead of the
6435         ordered comparison function.
6436         (rs6000_expand_float128_convert): Deal with operands that are
6437         memory operands. Restructure the code to use a switch statement on
6438         the mode. Add support for TFmode defaulting to either IBM extended
6439         double or IEEE 128-bit floating point. If the underlying types are
6440         the same, use a move instead of a conversion function.
6441         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6442         use for IEEE 128-bit floating point constants with -mfloat128.
6443         (rs6000_c_mode_for_suffix): Likewise.
6444         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6445         128-bit floating point with IBM extended double floating point.
6446         (rs6000_invalid_binary_op): Likewise.
6447         (rs6000_gen_le_vsx_permute): On little endian systems generate a
6448         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6449         types that can go in vector registers.
6450         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6451         point types that can go in vector registers on little endian
6452         PowerPC systems.
6453         (mark_swaps_for_removal): Likewise.
6454         (rs6000_analyze_swaps): Likewise.
6455         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6457         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6458         rework IEEE 128-bit floating point insns to deal with TFmode being
6459         either IBM extended double or IEEE 128-bit floating point.
6460         (IFKF): Likewise.
6461         (IBM128): Update iterator to add condition that the mode is IBM
6462         extended double.
6463         (IEEE128): New iterator for IEEE 128-bit floating point.
6464         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6465         (FLOAT128): Likewise.
6466         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6467         iterator.
6468         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6469         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6470         instead of hard coding TFmode or KFmode.
6471         (negtf2_internal): Likewise.
6472         (neg<mode>2_internal): Likewise.
6473         (abs<mode>2): Likewise.
6474         (abstf2_internal): Likewise.
6475         (abs<mode>2_internal): Likewise.
6476         (ieee_128bit_neg<mode>2): Likewise.
6477         (ieee_128bit_neg<mode>2_internal): Likewise.
6478         (ieee_128bit_abs<mode>2): Likewise.
6479         (ieee_128bit_abs<mode>2_internal): Likewise.
6480         (ieee_128bit_nabs<mode>2): Likewise.
6481         (ieee_128bit_nabs<mode>2_internal): Likewise.
6482         (extendiftf2): Add explicit conversions between 128-bit floating
6483         point types. Drop the old conversions that had become unwieldy.
6484         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6485         (extendifkf2): Likewise.
6486         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6487         (extendtfkf2): Likewise.
6488         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6489         (trunciftf2): Likewise.
6490         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6491         (truncifkf2): Likewise.
6492         (float<SDI:mode><IFKF:mode>2): Likewise.
6493         (trunckftf2): Likewise.
6494         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6495         (trunctfif2): Likewise.
6496         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6497         (extenddftf2): Rework 128-bit floating point conversions to
6498         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6499         KFmode expanders into one function.
6500         (extenddf<mode>2): Likewise.
6501         (extenddftf2_fprs): Likewise.
6502         (extenddf<mode>2_fprs): Likewise.
6503         (extenddftf2_vsx): Likewise.
6504         (extenddf<mode>2_vsx): Likewise.
6505         (extendsftf2): Likewise.
6506         (extendsf<mode>2): Likewise.
6507         (trunctfdf2): Likewise.
6508         (trunc<mode>df2): Likewise.
6509         (trunctfdf2_internal1): Likewise.
6510         (trunc<mode>df2_internal1): Likewise.
6511         (trunctfdf2_internal2): Likewise.
6512         (trunc<mode>df2_internal2): Likewise.
6513         (trunctfsf2): Likewise.
6514         (trunc<mode>sf2): Likewise.
6515         (trunctfsf2_fprs): Likewise.
6516         (trunc<mode>sf2_fprs): Likewise.
6517         (floatsit2f): Likewise.
6518         (floatsi<mode>2): Likewise.
6519         (fix_trunc_helper): Likewise.
6520         (fix_trunc_helper<mode>): Likewise.
6521         (fix_trunctfsi2): Likewise.
6522         (fix_trunc<mode>si2): Likewise.
6523         (fix_trunctfsi2_fprs): Likewise.
6524         (fix_trunc<mode>si2_fprs): Likewise.
6525         (fix_trunctfsi2_internal): Likewise.
6526         (fix_trunc<mode>si2_internal): Likewise.
6527         (fix_trunctfdi2): Likewise.
6528         (fix_trunc<mode>di2): Likewise.
6529         (fixuns_trunctf<mode>2): Likewise.
6530         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6531         (floatditf2): Likewise.
6532         (floatdi<mode>2): Likewise.
6533         (floatuns<mode>tf2): Likewise.
6534         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6535         (cmptf_internal1): Use a mode iterator to add support for both
6536         types (IFmode, TFmode) that support IBM extended double.
6537         (cmp<mode>_internal1): Likewise.
6538         (cmptf_internal2): Likewise.
6539         (cmp<mode>_internal2): Likewise.
6541         * doc/extend.texi (Floating Types): Document __ibm128 and
6542         __float128 on PowerPC.
6544         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6545         -mfloat128 and -mno-float128.
6547 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6549         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6550         floating point modes that can go in vector registers.
6551         (MODES_TIEABLE_P): Move tests for vector modes before tests for
6552         scalar floating point, so that IEEE 128-bit floating point that
6553         can go in vector registers bind with vectors and not FP.
6554         (struct rs6000_args): Add libcall field.
6556         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6557         and -mfloat128-software switches.  Replace them with a binary
6558         -mfloat128 switch.
6559         (-mfloat128): Likewise.
6561         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6562         128-bit floating point types in GPRs, even if the appropriate
6563         option enabling the type was not used.
6564         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6565         debugging.
6566         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6567         pre-decrement on IEEE 128-bit floating point values.
6568         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6569         is IEEE 128-bit floating point.
6570         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6571         128-bit floating point types that can go in vector registers.
6572         (rs6000_option_override_internal): Change -mfloat128-none and
6573         -mfloat128-software to -mfloat128, and move code to be near other
6574         VSX option handling.
6575         (rs6000_option_override_internal): Disable -mfloat128 if we don't
6576         have the Altivec ABI.
6577         (rs6000_init_builtins): Don't make TFmode use either IFmode or
6578         KFmode floating point nodes. Instead, have three separate nodes.
6579         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6580         eventually moving the long double default to IEEE 128-bit floating
6581         point.
6582         (rs6000_opt_masks): Add -mfloat128.
6583         (struct rs6000_opt_var): Fix typo in comment.
6584         (init_cumulative_args): Initialize libcall field in
6585         CUMULATIVE_ARGS.
6586         (rs6000_function_arg): Treat library functions as if they had
6587         prototypes to prevent IEEE 128-bit support functions from passing
6588         arguments in both GPRs and vector registers.
6589         (rs6000_arg_partial_bytes): Likewise.
6591         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6592         an option that can be turned on via -mcpu=<xxx>.
6594         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6595         longer used.
6597         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6598         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6599         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6600         double is IBM extended double.
6602         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6603         SUBREGs.
6605 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6607         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6608         * genconditions.c: Define CHECKING_P in the generated code.
6609         * genextract.c: Use flag_checking in insn_extract.
6610         * gengtype.c (main): Remove conditional compilation.
6611         * gengtype.h: Likewise.
6613 2015-10-29  Jeff Law  <law@redhat.com>
6615         PR tree-optimization/67892
6616         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6617         in comment.
6618         (thread_through_normal_block): If we have seen a backedge, then
6619         do nothing.  No longer call find_jump_threads_backwards here.
6620         (thread_across_edge): Use find_jump_threads_backwards to find
6621         jump threads if the old style threader was not successful.
6622         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6623         gsi_last_nondebug_bb.  Return NULL if the block does not end
6624         with a control statement.
6625         (find_jump_threads_backwards): Setup code moved here from
6626         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
6627         single edge argument instead of name & block.
6628         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6629         prototype.
6631 2015-10-29  Tom de Vries  <tom@codesourcery.com>
6633         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6634         types.
6636 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6638         * omp-low.c (lower_omp_target): Remove unreachable code & merge
6639         ifs.
6641 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
6643         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6645 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6647         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6648         guard_bb0 and use guard_bb throughout.
6650 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6652         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6653         unnecessary label.
6655 2015-10-29  Richard Biener  <rguenther@suse.de>
6657         PR middle-end/68142
6658         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6659         overflow.
6661 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
6663         * alias.c: Reorder #include statements and remove duplicates.
6664         * asan.c: Likewise.
6665         * attribs.c: Likewise.
6666         * auto-inc-dec.c: Likewise.
6667         * auto-profile.c: Likewise.
6668         * bb-reorder.c: Likewise.
6669         * bt-load.c: Likewise.
6670         * builtins.c: Likewise.
6671         * caller-save.c: Likewise.
6672         * calls.c: Likewise.
6673         * ccmp.c: Likewise.
6674         * cfg.c: Likewise.
6675         * cfganal.c: Likewise.
6676         * cfgbuild.c: Likewise.
6677         * cfgcleanup.c: Likewise.
6678         * cfgexpand.c: Likewise.
6679         * cfghooks.c: Likewise.
6680         * cfgloop.c: Likewise.
6681         * cfgloopanal.c: Likewise.
6682         * cfgloopmanip.c: Likewise.
6683         * cfgrtl.c: Likewise.
6684         * cgraph.c: Likewise.
6685         * cgraphbuild.c: Likewise.
6686         * cgraphclones.c: Likewise.
6687         * cgraphunit.c: Likewise.
6688         * cilk-common.c: Likewise.
6689         * combine-stack-adj.c: Likewise.
6690         * combine.c: Likewise.
6691         * compare-elim.c: Likewise.
6692         * convert.c: Likewise.
6693         * coverage.c: Likewise.
6694         * cppbuiltin.c: Likewise.
6695         * cprop.c: Likewise.
6696         * cse.c: Likewise.
6697         * cselib.c: Likewise.
6698         * data-streamer-in.c: Likewise.
6699         * data-streamer-out.c: Likewise.
6700         * data-streamer.c: Likewise.
6701         * dbxout.c: Likewise.
6702         * dce.c: Likewise.
6703         * ddg.c: Likewise.
6704         * debug.c: Likewise.
6705         * df-core.c: Likewise.
6706         * df-problems.c: Likewise.
6707         * df-scan.c: Likewise.
6708         * dfp.c: Likewise.
6709         * dojump.c: Likewise.
6710         * dominance.c: Likewise.
6711         * double-int.c: Likewise.
6712         * dse.c: Likewise.
6713         * dumpfile.c: Likewise.
6714         * dwarf2asm.c: Likewise.
6715         * dwarf2cfi.c: Likewise.
6716         * dwarf2out.c: Likewise.
6717         * emit-rtl.c: Likewise.
6718         * except.c: Likewise.
6719         * explow.c: Likewise.
6720         * expmed.c: Likewise.
6721         * expr.c: Likewise.
6722         * final.c: Likewise.
6723         * fixed-value.c: Likewise.
6724         * fold-const.c: Likewise.
6725         * function.c: Likewise.
6726         * fwprop.c: Likewise.
6727         * gcse.c: Likewise.
6728         * generic-match-head.c: Likewise.
6729         * ggc-common.c: Likewise.
6730         * gimple-builder.c: Likewise.
6731         * gimple-expr.c: Likewise.
6732         * gimple-fold.c: Likewise.
6733         * gimple-iterator.c: Likewise.
6734         * gimple-low.c: Likewise.
6735         * gimple-match-head.c: Likewise.
6736         * gimple-pretty-print.c: Likewise.
6737         * gimple-ssa-isolate-paths.c: Likewise.
6738         * gimple-ssa-strength-reduction.c: Likewise.
6739         * gimple-streamer-in.c: Likewise.
6740         * gimple-streamer-out.c: Likewise.
6741         * gimple-walk.c: Likewise.
6742         * gimple.c: Likewise.
6743         * gimplify-me.c: Likewise.
6744         * gimplify.c: Likewise.
6745         * godump.c: Likewise.
6746         * graph.c: Likewise.
6747         * graphite-poly.c: Likewise.
6748         * haifa-sched.c: Likewise.
6749         * hw-doloop.c: Likewise.
6750         * ifcvt.c: Likewise.
6751         * incpath.c: Likewise.
6752         * init-regs.c: Likewise.
6753         * internal-fn.c: Likewise.
6754         * ipa-chkp.c: Likewise.
6755         * ipa-comdats.c: Likewise.
6756         * ipa-cp.c: Likewise.
6757         * ipa-devirt.c: Likewise.
6758         * ipa-icf-gimple.c: Likewise.
6759         * ipa-icf.c: Likewise.
6760         * ipa-inline-analysis.c: Likewise.
6761         * ipa-inline-transform.c: Likewise.
6762         * ipa-inline.c: Likewise.
6763         * ipa-polymorphic-call.c: Likewise.
6764         * ipa-profile.c: Likewise.
6765         * ipa-prop.c: Likewise.
6766         * ipa-pure-const.c: Likewise.
6767         * ipa-ref.c: Likewise.
6768         * ipa-reference.c: Likewise.
6769         * ipa-split.c: Likewise.
6770         * ipa-utils.c: Likewise.
6771         * ipa-visibility.c: Likewise.
6772         * ipa.c: Likewise.
6773         * ira-build.c: Likewise.
6774         * ira-color.c: Likewise.
6775         * ira-conflicts.c: Likewise.
6776         * ira-costs.c: Likewise.
6777         * ira-emit.c: Likewise.
6778         * ira-lives.c: Likewise.
6779         * ira.c: Likewise.
6780         * jump.c: Likewise.
6781         * langhooks.c: Likewise.
6782         * lcm.c: Likewise.
6783         * lists.c: Likewise.
6784         * loop-doloop.c: Likewise.
6785         * loop-init.c: Likewise.
6786         * loop-invariant.c: Likewise.
6787         * loop-iv.c: Likewise.
6788         * loop-unroll.c: Likewise.
6789         * lower-subreg.c: Likewise.
6790         * lra-assigns.c: Likewise.
6791         * lra-coalesce.c: Likewise.
6792         * lra-constraints.c: Likewise.
6793         * lra-eliminations.c: Likewise.
6794         * lra-lives.c: Likewise.
6795         * lra-remat.c: Likewise.
6796         * lra-spills.c: Likewise.
6797         * lra.c: Likewise.
6798         * lto-cgraph.c: Likewise.
6799         * lto-compress.c: Likewise.
6800         * lto-opts.c: Likewise.
6801         * lto-section-in.c: Likewise.
6802         * lto-section-out.c: Likewise.
6803         * lto-streamer-in.c: Likewise.
6804         * lto-streamer-out.c: Likewise.
6805         * lto-streamer.c: Likewise.
6806         * mode-switching.c: Likewise.
6807         * modulo-sched.c: Likewise.
6808         * omp-low.c: Likewise.
6809         * optabs.c: Likewise.
6810         * opts-global.c: Likewise.
6811         * passes.c: Likewise.
6812         * plugin.c: Likewise.
6813         * postreload-gcse.c: Likewise.
6814         * postreload.c: Likewise.
6815         * predict.c: Likewise.
6816         * print-tree.c: Likewise.
6817         * profile.c: Likewise.
6818         * real.c: Likewise.
6819         * realmpfr.c: Likewise.
6820         * recog.c: Likewise.
6821         * ree.c: Likewise.
6822         * reg-stack.c: Likewise.
6823         * regcprop.c: Likewise.
6824         * reginfo.c: Likewise.
6825         * regrename.c: Likewise.
6826         * regstat.c: Likewise.
6827         * reload.c: Likewise.
6828         * reload1.c: Likewise.
6829         * reorg.c: Likewise.
6830         * resource.c: Likewise.
6831         * rtl-chkp.c: Likewise.
6832         * rtl-error.c: Likewise.
6833         * rtlanal.c: Likewise.
6834         * rtlhooks.c: Likewise.
6835         * sanopt.c: Likewise.
6836         * sched-deps.c: Likewise.
6837         * sched-ebb.c: Likewise.
6838         * sched-rgn.c: Likewise.
6839         * sese.c: Likewise.
6840         * shrink-wrap.c: Likewise.
6841         * simplify-rtx.c: Likewise.
6842         * stack-ptr-mod.c: Likewise.
6843         * statistics.c: Likewise.
6844         * stmt.c: Likewise.
6845         * stor-layout.c: Likewise.
6846         * store-motion.c: Likewise.
6847         * stringpool.c: Likewise.
6848         * symtab.c: Likewise.
6849         * target-globals.c: Likewise.
6850         * targhooks.c: Likewise.
6851         * toplev.c: Likewise.
6852         * tracer.c: Likewise.
6853         * trans-mem.c: Likewise.
6854         * tree-affine.c: Likewise.
6855         * tree-call-cdce.c: Likewise.
6856         * tree-cfg.c: Likewise.
6857         * tree-cfgcleanup.c: Likewise.
6858         * tree-chkp-opt.c: Likewise.
6859         * tree-chkp.c: Likewise.
6860         * tree-chrec.c: Likewise.
6861         * tree-complex.c: Likewise.
6862         * tree-data-ref.c: Likewise.
6863         * tree-dfa.c: Likewise.
6864         * tree-diagnostic.c: Likewise.
6865         * tree-dump.c: Likewise.
6866         * tree-eh.c: Likewise.
6867         * tree-emutls.c: Likewise.
6868         * tree-if-conv.c: Likewise.
6869         * tree-inline.c: Likewise.
6870         * tree-into-ssa.c: Likewise.
6871         * tree-iterator.c: Likewise.
6872         * tree-loop-distribution.c: Likewise.
6873         * tree-nested.c: Likewise.
6874         * tree-nrv.c: Likewise.
6875         * tree-object-size.c: Likewise.
6876         * tree-outof-ssa.c: Likewise.
6877         * tree-parloops.c: Likewise.
6878         * tree-phinodes.c: Likewise.
6879         * tree-predcom.c: Likewise.
6880         * tree-pretty-print.c: Likewise.
6881         * tree-profile.c: Likewise.
6882         * tree-scalar-evolution.c: Likewise.
6883         * tree-sra.c: Likewise.
6884         * tree-ssa-address.c: Likewise.
6885         * tree-ssa-alias.c: Likewise.
6886         * tree-ssa-ccp.c: Likewise.
6887         * tree-ssa-coalesce.c: Likewise.
6888         * tree-ssa-copy.c: Likewise.
6889         * tree-ssa-dce.c: Likewise.
6890         * tree-ssa-dom.c: Likewise.
6891         * tree-ssa-dse.c: Likewise.
6892         * tree-ssa-forwprop.c: Likewise.
6893         * tree-ssa-ifcombine.c: Likewise.
6894         * tree-ssa-live.c: Likewise.
6895         * tree-ssa-loop-ch.c: Likewise.
6896         * tree-ssa-loop-im.c: Likewise.
6897         * tree-ssa-loop-ivcanon.c: Likewise.
6898         * tree-ssa-loop-ivopts.c: Likewise.
6899         * tree-ssa-loop-manip.c: Likewise.
6900         * tree-ssa-loop-niter.c: Likewise.
6901         * tree-ssa-loop-prefetch.c: Likewise.
6902         * tree-ssa-loop-unswitch.c: Likewise.
6903         * tree-ssa-loop.c: Likewise.
6904         * tree-ssa-math-opts.c: Likewise.
6905         * tree-ssa-operands.c: Likewise.
6906         * tree-ssa-phiopt.c: Likewise.
6907         * tree-ssa-phiprop.c: Likewise.
6908         * tree-ssa-pre.c: Likewise.
6909         * tree-ssa-propagate.c: Likewise.
6910         * tree-ssa-reassoc.c: Likewise.
6911         * tree-ssa-sccvn.c: Likewise.
6912         * tree-ssa-scopedtables.c: Likewise.
6913         * tree-ssa-sink.c: Likewise.
6914         * tree-ssa-strlen.c: Likewise.
6915         * tree-ssa-structalias.c: Likewise.
6916         * tree-ssa-tail-merge.c: Likewise.
6917         * tree-ssa-ter.c: Likewise.
6918         * tree-ssa-threadedge.c: Likewise.
6919         * tree-ssa-threadupdate.c: Likewise.
6920         * tree-ssa-uncprop.c: Likewise.
6921         * tree-ssa-uninit.c: Likewise.
6922         * tree-ssa.c: Likewise.
6923         * tree-ssanames.c: Likewise.
6924         * tree-stdarg.c: Likewise.
6925         * tree-streamer-in.c: Likewise.
6926         * tree-streamer-out.c: Likewise.
6927         * tree-streamer.c: Likewise.
6928         * tree-switch-conversion.c: Likewise.
6929         * tree-tailcall.c: Likewise.
6930         * tree-vect-data-refs.c: Likewise.
6931         * tree-vect-generic.c: Likewise.
6932         * tree-vect-loop-manip.c: Likewise.
6933         * tree-vect-loop.c: Likewise.
6934         * tree-vect-patterns.c: Likewise.
6935         * tree-vect-slp.c: Likewise.
6936         * tree-vect-stmts.c: Likewise.
6937         * tree-vectorizer.c: Likewise.
6938         * tree-vrp.c: Likewise.
6939         * tree.c: Likewise.
6940         * tsan.c: Likewise.
6941         * ubsan.c: Likewise.
6942         * value-prof.c: Likewise.
6943         * var-tracking.c: Likewise.
6944         * varasm.c: Likewise.
6945         * varpool.c: Likewise.
6946         * vtable-verify.c: Likewise.
6947         * web.c: Likewise.
6948         * wide-int-print.cc: Likewise.
6949         * wide-int.cc: Likewise.
6950         * xcoffout.c: Likewise.
6952 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
6954         * Makefile.in (NO_PIE_CFLAGS): New.
6955         (NO_PIE_FLAG): Likewise.
6956         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6957         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6958         (BUILD_NO_PIE_CFLAGS): Likewise.
6959         (BUILD_NO_PIE_FLAG): Likewise.
6960         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6961         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6962         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6963         $(BUILD_NO_PIE_CFLAGS).
6964         (BUILD_CXXFLAGS): Likewise.
6965         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6966         $(BUILD_NO_PIE_FLAG).
6967         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
6968         (BUILD_NO_PIE_FLAG): Likewise.
6969         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6970         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6971         * configure: Regenerated.
6973 2015-10-29  Richard Biener  <rguenther@suse.de>
6975         PR middle-end/56956
6976         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6977         unsigned conditonal negation to ABS_EXPR.
6979 2015-10-29  Richard Biener  <rguenther@suse.de>
6981         * gimple-match-head.c (gimple_simplify): Remove premature checking
6982         of builtin_decl_implicit of function calls we simplify.
6984 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
6986         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6987         (get_computation_cost_at): Ditto.
6988         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6989         and inv_expr_id.
6991 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6993         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6994         superfluous code.
6996 2015-10-28  Jason Merrill  <jason@redhat.com>
6998         * Makefile.in (TAGS): Include libcpp and libiberty.
7000 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7002         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7003         (extract_omp_for_data): Remove OpenACC special handling of
7004         chunking.
7006         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7007         (struct parallel): Update comment.
7008         (nvptx_reorg): Likewise.
7009         (nvptx_neuter): Cleanup whitespace.
7011 2015-10-28  Richard Henderson  <rth@redhat.com>
7013         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7015 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7017         PR target/67839
7018         * config/avr/predicates.md (low_io_address_operand): Don't
7019         consider MODE when computing upper bound.
7020         (io_address_operand): Likewise.
7022 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
7024         * fold-const.c (operand_equal_p): Do not verify that types are
7025         compatible for MEM_REFs.
7027 2015-10-28  Richard Biener  <rguenther@suse.de>
7029         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7030         in simplifying VEC_COND_EXPR conditions.
7032 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7034         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7035         into vi_next of a full_var.
7037 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7039         * tree-ssa-structalias.c (new_var_info, make_heapvar)
7040         (make_constraint_from_restrict, make_constraint_from_global_restrict)
7041         (create_function_info_for, create_variable_info_for_1)
7042         (create_variable_info_for): Add and handle add_id parameter.
7043         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7044         (init_base_vars): Add extra argument to calls to new_var_info.
7045         (get_vi_for_tree): Add extra argument to call to
7046         create_variable_info_for.
7047         (process_constraint, do_deref, process_all_all_constraints): Add extra
7048         argument to calls to new_scalar_tmp_constraint_exp.
7049         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7050         argument to calls to make_heapvar.
7051         (make_restrict_var_constraints): Add extra argument to call to
7052         make_constraint_from_global_restrict.
7053         (intra_create_variable_infos): Add extra argument to call to
7054         create_variable_info_for_1.
7055         (ipa_pta_execute): Add extra argument to call to
7056         create_function_info_for.
7058 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7060         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7061         (sibcall_value): Likewise.
7063 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7065         * config/nvptx/nvptx.h (struct machine_function): Add
7066         axis_predicate.
7067         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7068         nvptx_expand_oacc_join): Declare.
7069         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7070         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7071         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7072         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7073         UNSPECV_JOINING, UNSPECV_JOIN): New.
7074         (BITS, BITD): New mode iterators.
7075         (br_true_uni, br_false_uni): New.
7076         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7077         (oacc_dim_size, oacc_dim_pos): New.
7078         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7079         (oacc_fork, oacc_join): New.
7080         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7081         (worker_load<mode>, worker_store<mode>): New.
7082         (nvptx_barsync): New.
7083         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7084         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7085         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7086         worker_bcast_sym): New.
7087         (nvptx_option_override): Initialize worker broadcast buffer.
7088         (nvptx_emit_forking, nvptx_emit_joining): New.
7089         (nvptx_init_axis_predicate): New.
7090         (nvptx_declare_function_name): Init axis predicates.
7091         (nvptx_expand_call): Add fork/join markers around routine call.
7092         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7093         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7094         (nvptx_gen_vcast): New.
7095         (struct wcast_data_t): New.
7096         (enum propagate_mask): New.
7097         (nvptx_gen_wcast): New.
7098         (nvptx_print_operand): Add 'S' case.
7099         (struct parallel): New.
7100         (parallel::parallel, parallel::~parallel): New.
7101         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7102         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7103         nvptx_find_par, nvptx_discover_pars): New.
7104         (nvptx_propagate): New.
7105         (vprop_gen, nvptx_vpropagate): New.
7106         (wprop_gen, nvptx_wpropagate): New.
7107         (nvptx_wsync): New.
7108         (nvptx_single, nvptx_skip_par): New.
7109         (nvptx_process_pars, nvptx_neuter_pars): New.
7110         (ntptx_reorg): Split blocks, generate parallel structure, apply
7111         neutering.
7112         (nvptx_cannot_copy_insn_p): New.
7113         (nvptx_file_end): Emit worker broadcast decl.
7114         (nvptx_goacc_fork_join): New.
7115         (TARGET_CANNOT_COPY_INSN_P): Override.
7116         (TARGET_GOACC_FORK_JOIN): Override.
7118 2015-10-28  Richard Biener  <rguenther@suse.de>
7120         * fold-const.c (negate_expr_p): Adjust the division case to
7121         properly avoid introducing undefined overflow.
7122         (fold_negate_expr): Likewise.
7124 2015-10-28  Richard Biener  <rguenther@suse.de>
7126         PR tree-optimization/65962
7127         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7128         Avoid creating loop carried dependences also for outer loops
7129         of the loop a use to replace is in.
7131 2015-10-28  Richard Biener  <rguenther@suse.de>
7133         * common.opt (fchecking): New flag controlling flag_checking.
7134         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7135         * timevar.c (timer::print): Adjust output.
7136         * doc/invoke.texi (fchecking): Document.
7138 2015-10-28  Richard Biener  <rguenther@suse.de>
7140         PR middle-end/68067
7141         * fold-const.c (negate_expr_p): We cannot negate plus or minus
7142         if overflow is not wrapping.  Likewise multiplication unless
7143         one operand is constant and not power of two.
7144         (fold_negate_expr): Adjust accordingly.
7146 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7148         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7149         fields.
7150         (is_oacc_parallel, is_oacc_kernels): New.
7151         (enclosing_target_ctx): May return NULL.
7152         (ctx_in_oacc_kernels_region): New.
7153         (check_oacc_kernel_gwv): New.
7154         (oacc_loop_or_target_p): Delete.
7155         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
7156         operands.  Strip reductions fro kernels.
7157         (scan_omp_target): Don't calculate gwv mask.
7158         (lower_oacc_head_mark, lower_oacc_loop_marker,
7159         lower_oacc_head_tail): New.
7160         (struct oacc_collapse): New.
7161         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7162         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7163         Remove OpenACC handling.
7164         (expand_oacc_for): New.
7165         (expand_omp_for): Call expand_oacc_for.
7166         (lower_omp_for): Call lower_oacc_head_tail.
7168 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
7170         * attribs.c (check_attribute_tables): New function, broken out from...
7171         (init_attributes): Use it.
7172         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7173         gcc_checking_assert and checking_* functions to eliminate
7174         ENABLE_CHECKING conditionals.
7175         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7176         (pass_expand::execute): Likewise.
7177         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7178         * cgraphunit.c (mark_functions_to_output): Likewise.
7179         (cgraph_node::expand_thunk): Likewise.
7180         (symbol_table::compile): Likewise.
7181         * ddg.c (add_cross_iteration_register_deps): Likewise.
7182         (create_ddg_all_sccs): Likewise.
7183         * df-core.c (df_finish_pass, df_analyze): Likewise.
7184         * diagnostic-core.h: Likewise.
7185         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7186         * dominance.c (calculate_dominance_info): Likewise.
7187         * dwarf2out.c (add_AT_die_ref): Likewise.
7188         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7189         (loc_list_from_tree, gen_lexical_block_die): Likewise.
7190         gen_type_die_with_usage, gen_type_die): Likewise.
7191         (dwarf2out_decl): Likewise.
7192         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7193         * except.c (duplicate_eh_regions): Likewise.
7194         * fwprop.c (register_active_defs, update_df_init): Likewise.
7195         (fwprop_init, fwprop_done): Likewise.
7196         (update_uses): Likewise.
7197         * ggc-page.c (ggc_grow): Likewise.
7198         * gimplify.c (gimplify_body): Likewise.
7199         (gimplify_hasher::equal): Likewise.
7200         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7201         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7202         Likewise.
7203         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7204         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7205         * hash-table.h (::find_empty_slot_for_expand): Likewise.
7206         * ifcvt.c (if_convert): Likewise.
7207         * ipa-cp.c (ipcp_propagate_stage): Likewise.
7208         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7209         (odr_type_p, odr_types_equivalent_p): Likewise.
7210         (add_type_duplicate, get_odr_type): Likewise.
7211         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7212         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7213         (sem_item_optimizer::verify_classes): Likewise.
7214         (sem_item_optimizer::traverse_congruence_split): Likewise.
7215         (sem_item_optimizer::checking_verify_classes): New.
7216         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7217         method.
7218         * cfgrtl.c (commit_edge_insertions): Likewise.
7219         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7220         (rtl_flow_call_edges_add): Likewise.
7221         * cgraph.c (symbol_table::create_edge): Likewise.
7222         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7223         * cgraph.h (symtab_node): Likewise.
7224         (symtab_node::checking_verify_symtab_nodes): Define.
7225         (cgraph_node::checking_verify_cgraph_nodes): Define.
7226         * cfghooks.h (checking_verify_flow_info): Define.
7227         * cfgloop.h (checking_verify_loop_structure): Define.
7228         * dominance.h (checking_verify_dominators): Define.
7229         * et-forest.c: Fix comment.
7230         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7231         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7232         ENABLE_CHECKING conditionals.
7233         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7234         * ipa-inline.c (inline_small_functions): Likewise.
7235         (early_inliner): Likewise.
7236         * ipa-inline.h (estimate_edge_growth): Likewise.
7237         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7238         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7239         (ipa_single_use): Likewise.
7240         * ira-int.h: Likewise.
7241         * ira.c (ira): Likewise.
7242         * loop-doloop.c (doloop_optimize_loops): Likewise.
7243         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7244         * loop-invariant.c (move_loop_invariants): Likewise.
7245         * lra-assigns.c (lra_assign): Likewise.
7246         * lra-constraints.c (lra_constraints): Likewise.
7247         * lra-eliminations.c (lra_eliminate): Likewise.
7248         * lra-int.h (struct lra_reg): Likewise.
7249         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7250         (lra_create_live_ranges_1): Likewise.
7251         * lra-remat.c (create_remat_bb_data): Likewise.
7252         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7253         (lra): Likewise.
7254         (check_rtl): Always define. Remove incorrect guard around
7255         extract_constrain_insn call.
7256         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7257         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7258         ENABLE_CHECKING conditionals.
7259         * lto-streamer-out.c (DFS::DFS): Likewise.
7260         (lto_output): Likewise.
7261         * lto-streamer.c (lto_streamer_init): Likewise.
7262         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7263         expand_omp_target, execute_expand_omp): Likewise.
7264         (lower_omp_target): Likewise.
7265         * passes.c (execute_function_todo): Likewise.
7266         (execute_todo, execute_one_pass): Likewise.
7267         (verify_curr_properties): Always define.
7268         * predict.c (tree_estimate_probability: Use flag_checking,
7269         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7270         ENABLE_CHECKING conditionals.
7271         (propagate_freq): Likewise.
7272         * pretty-print.c (pp_format): Likewise.
7273         * real.c (real_to_decimal_for_mode): Likewise.
7274         * recog.c (split_all_insns): Likewise.
7275         * regcprop.c (kill_value_one_regno): Likewise.
7276         (copy_value): Likewise.
7277         (validate_value_data): Define unconditionally.
7278         * reload.c: Fix comment.
7279         * timevar.c: Include options.h
7280         * tree-ssa.h (checking_verify_ssa): Define.
7281         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7282         * sched-deps.c (CHECK): Remove unused macro.
7283         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7284         gcc_checking_assert and checking_* functions to eliminate
7285         ENABLE_CHECKING conditionals.
7286         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7287         * sel-sched.c (struct moveop_static_params): Likewise.
7288         (find_best_reg_for_expr, move_cond_jump): Likewise.
7289         (move_op_orig_expr_not_found): Likewise.
7290         (code_motion_process_successors, move_op): Likewise.
7291         * ssa-iterators.h (first_readonly_imm_use): Likewise.
7292         (next_readonly_imm_use): Likewise.
7293         * store-motion.c (compute_store_table): Likewise.
7294         * symbol-summary.h (function_summary::function_summary): Likewise.
7295         * target.h (cumulative_args_t): Likewise.
7296         (get_cumulative_args, pack_cumulative_args): Likewise.
7297         * timevar.c: (timer::print): Likewise.
7298         * trans-mem.c (ipa_tm_execute): Likewise.
7299         * tree-cfg.c (move_stmt_op): Likewise.
7300         (move_sese_region_to_fn): Likewise.
7301         (gimple_flow_call_edges_add): Likewise.
7302         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7303         Likewise.
7304         * tree-eh.c (remove_unreachable_handlers): Likewise.
7305         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7306         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7307         * tree-into-ssa.c (update_ssa): Likewise.
7308         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7309         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7310         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7311         * tree-predcom.c (suitable_component_p): Likewise.
7312         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7313         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7314         * tree-ssa-live.c (verify_live_on_entry): Likewise.
7315         * tree-ssa-live.h (register_ssa_partition): Likewise.
7316         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7317         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7318         (tree_transform_and_unroll_loop): Likewise.
7319         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7320         * tree-ssa-operands.c (get_expr_operands): Likewise.
7321         * tree-ssa-propagate.c (replace_exp_1): Likewise.
7322         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7323         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7324         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7325         * tree-ssanames.c (release_ssa_name_fn): Likewise.
7326         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7327         * tree-vect-loop-manip.c
7328         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7329         (slpeel_checking_verify_cfg_after_peeling): Likewise.
7330         (vect_do_peeling_for_loop_bound): Likewise.
7331         (vect_do_peeling_for_alignment): Likewise.
7332         * tree-vrp.c (supports_overflow_infinity): Likewise.
7333         (set_value_range): Likewise.
7334         * tree.c (free_lang_data_in_cgraph): Likewise.
7335         * value-prof.c (gimple_remove_histogram_value): Likewise.
7336         (free_hist): Likewise.
7337         * var-tracking.c (canonicalize_values_star): Likewise.
7338         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7340 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7342         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7343         IFN_GOACC_LOOP): New.
7344         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7345         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7346         IFN_UNIQUE_OACC_TAIL_MARK.
7347         (enum ifn_goacc_loop_kind): New.
7348         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7349         IFN_UNIQUE_OACC_JOIN cases.
7350         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7351         (expand_GOACC_LOOP): New.
7352         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7353         * omp-low.c: Include gimple-pretty-print.h.
7354         (struct oacc_loop): New.
7355         (enum oacc_loop_flags): New.
7356         (oacc_thread_numbers): New.
7357         (oacc_xform_loop): New.
7358         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7359         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7360         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7361         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7362         oacc_loop_discovery): New.
7363         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7364         oacc_loop_process): New.
7365         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7366         (execute_oacc_device_lower): Discover & process loops.  Process
7367         internal fns.
7368         * target.def (goacc.fork_join): Change sense of hook, clarify
7369         documentation.
7370         * doc/tm.texi: Regenerated.
7372 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7374         * target-insns.def (oacc_fork, oacc_join): Define.
7375         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7376         (goacc.fork_join): New GOACC hook.
7377         * targhooks.h (default_goacc_fork_join): Declare.
7378         * omp-low.c (default_goacc_forkjoin): New.
7379         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7380         * doc/tm.texi: Regenerate.
7382 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7384         * omp-low.c (oacc_init_rediction_array): New.
7385         (oacc_initialize_reduction_data): Initialize array.
7387 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7389         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7391 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7393         * internal-fn.c (expand_UNIQUE): New.
7394         * internal-fn.h (enum ifn_unique_kind): New.
7395         * internal-fn.def (IFN_UNIQUE): New.
7396         * target-insns.def (unique): Define.
7397         * gimple.h (gimple_call_internal_unique_p): New.
7398         * gimple.c (gimple_call_same_target_p): Check internal fn
7399         uniqueness.
7400         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7401         * tree-ssa-threadedge.c
7402         (record_temporary_equivalences_from_stmts): Likewise.
7403         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7405 2015-10-27  Richard Henderson  <rth@redhat.com>
7407         PR rtl-opt/67609
7408         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7409         narrowing subregs on SSE and MMX registers.
7410         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7411         appear to be sub-words of multi-register pseudos must be rejected.
7412         * doc/tm.texi: Regenerate.
7414 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7416         PR target/68102
7417         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7418         operands[0] is a reg before taking its REGNO in split condition.
7419         (*movdi_aarch64): Likewise.
7421 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7423         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7424         Handle floating point inner modes properly.
7426 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
7428         * tree-vect-looop.c
7429         (vectorizable_live_operation): Change iterator.
7431 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7432             Aditya Kumar  <aditya.k7@samsung.com>
7434         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7435           function to schedule based on isl_schedule_node.
7436         (get_schedule_map_st): New schedule optimizer based on
7437         isl_schedule_node.
7438         (scop_get_domains): New. Return the isl_union_set containing the
7439         domains of all the pbbs.
7440         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7442 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
7444         PR target/67215
7445         * calls.c (prepare_call_address): Don't handle -fno-plt here.
7446         * config/i386/i386.c (ix86_expand_call): Generate indirect call
7447         via GOT for -fno-plt.  Support indirect call via GOT for x32.
7448         * config/i386/predicates.md (sibcall_memory_operand): Allow
7449         GOT memory operand.
7451 2015-10-27  Richard Biener  <rguenther@suse.de>
7453         PR tree-optimization/68104
7454         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7455         strided access check ...
7456         (vect_compute_data_refs_alignment): ... here.
7458 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
7459             Joseph Myers  <joseph@codesourcery.com>
7460             Mark Shinwell  <shinwell@codesourcery.com>
7461             Andrew Stubbs  <ams@codesourcery.com>
7462             Rich Felker <dalias@libc.org>
7464         * config.gcc: Handle --enable-fdpic.
7465         * config/sh/constraints.md (Ccl): New constraint.
7466         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7467         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7468         __SH_FDPIC__.
7469         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7470         library functions.
7471         * config/sh/sh-protos.h (function_symbol_result): New struct.
7472         (function_symbol): Return function_symbol_result.
7473         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7474         declarations.
7475         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7476         target hook.
7477         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7478         (sh_option_override): Force -fPIC if FDPIC is in effect.
7479         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7480         UNSPEC_GOTOFFFUNCDESC cases.
7481         (prepare_move_operands): Use FDPIC initial GOT register for
7482         TLS-related GOT access; inhibit cross-section address offset constants
7483         for FDPIC.
7484         (sh_assemble_integer): New function.
7485         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7486         PC-relative call sites.
7487         (expand_ashiftrt): Adapt invocation of function_symbol.
7488         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7489         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7490         UNSPEC_GOTOFFFUNCDESC.
7491         (legitimize_pic_address): Resolve function symbols to function
7492         descriptors for FDPIC.  Do not use GOT-relative addressing for local
7493         data that may be read-only on FDPIC.
7494         (sh_emit_storesi, sh_emit_storehi): New functions.
7495         (sh_trampoline_init): Generate FDPIC trampolines.
7496         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7497         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7498         (sh_output_mi_thunk): Generate FDPIC call.
7499         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
7500         FDPIC, generate call site labels to use PC-relative addressing rather
7501         than GOT-relative addressing.
7502         (sh_conditional_register_usage): Make PIC register fixed and call used
7503         when FDPIC is in effect.
7504         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7505         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7506         sh_get_fdpic_reg_initial_val): New functions.
7507         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7508         Handle -mfdpic.
7509         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7510         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7511         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7512         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7513         FDPIC_SELF_SPECS.
7514         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7515         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7516         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7517         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7518         constants.
7519         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7520         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7521         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7522         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7523         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7524         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7525         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7526         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7527         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7528         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7529         block_move_real, block_lump_real, block_move_real_i4,
7530         block_lump_real_i4): Add support for FDPIC calls.
7531         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7532         call_value_pop): Adjust for new function_symbol signature.
7533         * config/sh/sh.opt (-mfdpic): New option.
7534         * doc/install.texi (Options specification): Document --enable-fdpic.
7535         * doc/invoke.texi (SH Options): Document -mfdpic.
7538 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7540         PR tree-optimization/65963
7541         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7542         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7544 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7546         PR target/67929
7547         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7548         * config/arm/constraints.md (Dp): Update callsite.
7549         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7551 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7553         * builtins.c (fold_builtin_load_exponent): Rename to...
7554         (fold_const_builtin_load_exponent): ...this and only handle
7555         constant arguments.
7556         (fold_builtin_2): Update accordingly.
7557         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7559 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7561         * builtins.c (fold_builtin_logb): Rename to...
7562         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7563         (fold_builtin_significand): Rename to...
7564         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7565         (fold_builtin_1): Update accordingly.
7567 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7569         * builtins.c (fold_builtin_fmin_fmax): Delete.
7570         (fold_builtin_2): Handle constant fmin and fmax arguments here.
7571         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7573 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
7575         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7576         for register extension into sign and zero register extension.
7577         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7578         for sign and zero register extension.
7579         (cortexa57_addrcost_table): Likewise.
7580         (xgene1_addrcost_table): Likewise.
7582 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7584         * fold-const.c (fold_minmax): Delete.
7585         (fold_binary_loc): Don't call it.
7586         * match.pd: Add rules previously handled by fold_minmax.
7588 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7590         * builtins.c (fold_builtin_fma): Remove constant handling.
7591         (fold_builtin_3): Handle constant fma arguments here.
7593 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7595         * builtins.c (fold_builtin_fabs): Remove constant handling.
7596         (fold_builtin_abs): Likewise.
7598 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7600         * builtins.c (fold_builtin_copysign): Delete.
7601         (fold_builtin_2): Handle constant copysign arguments here.
7602         * match.pd: Add rules previously handled by fold_builtin_copysign.
7604 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7606         * builtins.c (fold_builtin_signbit): Delete.
7607         (fold_builtin_2): Handle constant signbit arguments here.
7608         * match.pd: Add rules previously handled by fold_builtin_signbit.
7610 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7612         * match.pd: Handle sqrt(x) cmp 0 specially.
7614 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
7616         * tree-vect-generic.c (expand_vector_operations_1): Check
7617         optab type before using it.
7619 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7621         * config/aarch64/aarch64-protos.h
7622         (struct tune_params): Add autoprefetcher_model field.
7623         * config/aarch64/aarch64.c: Include params.h
7624         (generic_tunings): Specify autoprefetcher_model value.
7625         (cortexa53_tunings): Likewise.
7626         (cortexa57_tunings): Likewise.
7627         (cortexa72_tunings): Likewise.
7628         (thunderx_tunings): Likewise.
7629         (xgene1_tunings): Likewise.
7630         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7631         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7632         (aarch64_override_options_internal): Set
7633         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7635 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7637         * builtins.c (fold_builtin_exponent): Delete.
7638         (fold_builtin_2): Handle constant expN arguments here.
7639         * match.pd: Fold expN(logN(x)) -> x.
7641 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7643         * builtins.c (fold_builtin_powi): Delete.
7644         (fold_builtin_2): Handle constant powi arguments here.
7645         * match.pd: Add rules previously handled by fold_builtin_powi.
7647 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7649         * builtins.c (fold_builtin_pow): Delete in favor of...
7650         (fold_const_builtin_pow): ...this new function.  Only handle constant
7651         arguments.
7652         (fold_builtin_2): Update accordingly.
7653         * match.pd: Add rules previously handled by fold_builtin_pow.
7655 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7657         * builtins.c (fold_builtin_hypot): Delete.
7658         (fold_builtin_2): Handle constant hypot arguments here.
7659         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
7660         hypot(x, x) to fabs(x)*sqrt(2).
7662 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7664         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7665         instead of make_ssa_name if not yet in SSA form.
7667 2015-10-27  Richard Biener  <rguenther@suse.de>
7669         * cfg.c (free_edge): Add function argument and use it instead of cfun.
7670         (clear_edges): Likewise.
7671         * cfg.h (clear_edges): Adjust prototype.
7672         * cfgexpand.c (pass_expand::execute): Adjust.
7673         * cfgloop.c (release_recorded_exits): Add function argument and use
7674         it instead of cfun.
7675         * cfgloop.h (release_recorded_exits): Adjust prototype.
7676         (loops_state_satisfies_p): Add overload with function argument.
7677         (loops_state_set): Likewise.
7678         (loops_state_clear): Likewise.
7679         (struct loop_iterator): Add function argument to constructor
7680         and iterator and use it instead of cfun.
7681         (FOR_EACH_LOOP_FN): New macro.
7682         (loop_optimizer_finalize): Add overload with function argument.
7683         * loop-init.c (loop_optimizer_init): Adjust.
7684         (fix_loop_structure): Likewise.
7685         (loop_optimizer_finaliz): Add function argument and use it
7686         instead of cfun.
7687         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7688         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7689         * cgraph.c (release_function_body): Do not push/pop cfun.
7690         * final.c (rest_of_clean_state): Adjust.
7691         * graphite.c (graphite_finalize): Likewise.
7692         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7693         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7694         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7695         (tree_unroll_loops_completely): Likewise.
7696         (pass_complete_unrolli::execute): Likewise.
7697         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7698         Add function argument and use it instead of cfun.
7699         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7700         Adjust prototype.
7701         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7702         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7703         instead of cfun.
7704         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7705         * tree-ssanames.c (fini_ssanames): Add function argument and use it
7706         instead of cfun.
7707         * tree-ssanames.c (fini_ssanames): Adjust prototype.
7708         * tree-vrp.c (execute_vrp): Adjust.
7709         * value-prof.c (free_histograms): Add function argument and use it
7710         instead of cfun.
7711         * value-prof.h (free_histograms): Adjust prototype.
7713 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
7715         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7716         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7717         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
7719 2015-10-27  Tom de Vries  <tom@codesourcery.com>
7721         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7722         field_type.
7724 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
7726         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7727         (inv_can_prop_to_addr_use): New function.
7728         (record_use): Call can_prop_to_addr_uses, set the new field.
7729         (get_inv_cost): Count cost if inv can't be propagated into its
7730         address uses.
7732 2015-10-26  Doug Evans  <dje@google.com>
7734         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7736 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
7738         * match.pd (fold_widened_comparison): Apply simplifications to all
7739         integral types.
7741 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
7743         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7744         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7745         * doc/tm.texi: Regenerated.
7746         * reorg.c (dbr_schedule): Use new hook.
7747         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7749 2015-10-26  Jeff Law  <law@redhat.com>
7751         PR tree-optimization/68013
7752         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7753         Make sure the first block in the path is in VISITED_BBs.
7755 2015-10-26  Richard Biener  <rguenther@suse.de>
7756         Dominik Vogt  <vogt@linux.vnet.ibm.com>
7758         PR middle-end/67443
7759         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7760         Properly prune ref->ref for accesses outside of ref.
7762 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7764         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7765         new statements to be inserted if inplace.  Allow calls to have
7766         nonempty sequences.
7768 2015-10-26  Richard Biener  <rguenther@suse.de>
7770         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7771         (do_valueize): New function.
7772         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7773         replace_uses_by.
7774         * tree-ssa-threadedge.c: Remove builtins.h include, include
7775         gimple-fold.h
7776         (fold_assignment_stmt): Remove.
7777         (threadedge_valueize): New function.
7778         (record_temporary_equivalences_from_stmts): Use
7779         gimple_fold_stmt_to_constant_1, note additional cleanup
7780         opportunities.
7782 2015-10-26  Richard Biener  <rguenther@suse.de>
7784         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7785         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7787 2015-10-26  Alan Hayward <alan.hayward@arm.com>
7789         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7790         VEC_COND_EXPR types.
7792 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7794         * auto-inc-dec.c (insert_move_insn_before): Delete.
7795         (attempt_change): Remember to cost the simple move in the
7796         FORM_PRE_ADD and FORM_POST_ADD cases.
7798 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7800         PR target/68091
7801         * config/sh/sh.c (sh_vector_mode_supported_p): Use
7802         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7804 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7806         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7807         factored out of ...
7808         (intra_create_variable_infos): ... here.
7810 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7812         * tree-ssa-structalias.c (intra_create_variable_infos): Add
7813         restrict_pointer_p and recursive_restrict_p variables.
7815 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7817         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7818         get_vi_for_tree call.
7820 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7822         PR middle-end/67989
7823         * optabs.c (expand_atomic_compare_and_swap): Handle case when
7824         ptarget_oval or ptarget_bool are const0_rtx.
7826 2015-10-26  Christian Bruel  <christian.bruel@st.com>
7828         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7829         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7830         * cp/method.c (implicitly_declare_fn): Likewise.
7831         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7832         * java/class.c (add_method_1): Likewise.
7834 2015-10-26  Richard Biener  <rguenther@suse.de>
7836         * alloc-pool.h (base_pool_allocator): Use placement new.
7837         (base_pool_allocator::remove): Likewise.  Compute size outside of
7838         flag_checking.
7840 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7842         * builtins.c (do_real_to_int_conversion): New function.
7843         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7844         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7845         arguments here.
7846         * match.pd: Add rules previously handled by fold_fixed_mathfn
7847         and fold_builtin_int_roundingfn.
7849 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7851         * match.pd: Use macros to define built-in operator lists.
7853 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
7854             Richard Biener  <rguenther@suse.de>
7856         * genmatch.c (dt_simplify::gen): Skip captures that are
7857         part of the result.
7858         (parser::parse_expr): Allow captures in results too.
7859         * builtins.c (fold_builtin_cexp): Delete.
7860         (fold_builtin_1): Handle constant cexp arguments here.
7861         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7863 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
7865         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7866         conditional compilation.
7867         (base_pool_allocator::remove): Use flag_checking.
7869 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
7871         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7873         PR middle-end/68079
7874         * dojump.c (do_compare_and_jump): Canonicalize both function and
7875         method types.
7877 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
7879         PR target/68084
7880         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7881         for =@ccae.
7883 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7885         PR ipa/pr67600
7886         * ipa-polymorphic-call.c
7887         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7888         instance offset with offset of outer type.
7890 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7892         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7894 2015-10-23  Caroline Tice  <cmtice@google.com>
7896         (from Richard Biener
7897         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
7898         call to iterative_hash_host_wide_int.
7900 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7902         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7903         Define as yes.
7905 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7907         * tree-vect-generic.c (expand_vector_operations_1): Check
7908         optab exists before use it.
7910 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7912         * tree-vect-generic.c (expand_vector_condition): Avoid
7913         uninitialized variable warning.
7915 2015-10-23  Jeff Law  <law@redhat.com>
7917         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7918         here.  Instead...
7919         (execute_todo): Call it here.
7920         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7921         statistics
7922         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7924 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7925             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7927         * config.gcc (enable_secureplt): Add *-linux*-musl*.
7929 2015-10-23  Jeff Law  <law@redhat.com>
7931         PR tree-optimization/67830
7932         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7933         Explicitly verify the mask has no bits outside the type of
7934         the innermost operands.
7936 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7937             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7939         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7940         (MUSL_DYNAMIC_LINKER64): Define.
7941         (GNU_USER_DYNAMIC_LINKER32): Update.
7942         (GNU_USER_DYNAMIC_LINKER64): Update.
7943         (CHOOSE_DYNAMIC_LINKER): Update.
7945         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7946         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7947         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7948         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7949         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7950         (CHOOSE_DYNAMIC_LINKER): Update.
7951         (INCLUDE_DEFAULTS): Redefine.
7953         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7955 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7957         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7958         comparing addresses.
7960 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7962         * fold-const.c (operand_equal_p): Handle matching of vector
7963         constructors.
7965 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7967         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7969 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
7970             Andrew Pinski  <apinski@cavium.com>
7972         PR rtl-optimization/67736
7973         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7974         of gen_lowpart.
7976 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7978         PR middle-end/68066
7979         * tree.c (build_truth_vector_type): Support BLK mode
7980         returned for boolean vector.
7982 2015-10-23  Alan Hayward <alan.hayward@arm.com>
7984         PR tree-optimization/65947
7985         * tree-vect-loop.c
7986         (vect_is_simple_reduction_1): Find condition reductions.
7987         (vect_model_reduction_cost): Add condition reduction costs.
7988         (get_initial_def_for_reduction): Add condition reduction initial var.
7989         (vect_create_epilog_for_reduction): Add condition reduction epilog.
7990         (vectorizable_reduction): Condition reduction support.
7991         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7992         * doc/sourcebuild.texi (Vector-specific attributes): Document
7993         vect_max_reduc
7995 2015-10-23  Richard Biener  <rguenther@suse.de>
7997         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7998         and builtins.def.
8000 2015-10-23  Richard Biener  <rguenther@suse.de>
8001             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8003         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8004         into (A ^ B) - B to match.pd
8005         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8007         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8008         New simplifier.
8009         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8010         New simplifier.
8011         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8012         New simplifier.
8013         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8014         New simplifier.
8015         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8016         INTEGER_CST@1)): New simplifier.
8018 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
8020         * builtins.c (integer_valued_real_p): Move to fold-const.c.
8021         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8022         (fold_builtin_ceil, fold_builtin_round): Delete.
8023         (fold_builtin_1): Handle constant trunc, floor, ceil and round
8024         arguments here.
8025         * convert.c (convert_to_real): Remove narrowing of rounding
8026         functions.
8027         * fold-const.h (integer_valued_real_unary_p)
8028         (integer_valued_real_binary_p, integer_valued_real_call_p)
8029         (integer_valued_real_single_p, integer_valued_real_p): Declare.
8030         * fold-const.c (tree_single_nonnegative_warnv_p): Move
8031         name_registered_for_update_p check to SSA_NAME case statement.
8032         Don't call tree_simple_nonnegative_warnv_p for SSA names.
8033         (integer_valued_real_unary_p, integer_valued_real_binary_p)
8034         (integer_valued_real_call_p, integer_valued_real_single_p)
8035         (integer_valued_real_invalid_p): New functions.
8036         (integer_valued_real_p): Move from fold-const.c and rework
8037         to call the functions above.  Handle SSA names.
8038         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8039         * gimple-fold.c (gimple_assign_integer_valued_real_p)
8040         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8041         (gimple_stmt_integer_valued_real_p): New functions.
8042         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8043         Fold f(x)->x for the same f if x is known to be integer-valued.
8044         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8045         the result.  Canonicalize floor(x) as trunc(x) if x is
8046         nonnegative.
8048 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8050         * tree-ssa-structalias.c (intra_create_variable_infos): Use
8051         make_constraint_from.
8053 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8055         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8056         setting of is_full_var in case of a single field.
8058 2015-10-22  Martin Sebor  <msebor@redhat.com>
8060         PR driver/68043
8061         * config/i386/i386.opt: Add missing periods to the ends of sentences.
8062         * config/msp430/msp430.opt: Same.
8064 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8066         * doc/extend.exp (Global Register Variables): Rewrite.
8068 2015-10-22  Jeff Law  <law@redhat.com>
8070         * genattrtab.c (main): If we do not have any annul-true or annul-false
8071         slots, then write out a dummy eligible_for_annul_true or
8072         eligible_for_annul_false as needed.
8074 2015-10-22  Nick Clifton  <nickc@redhat.com>
8076         * config/msp430/msp430.opt: Add -msilicon-errata and
8077         -msilicon-errata-warn.
8078         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8079         assembler.
8080         * doc/invoke.texi: Document new options.
8082 2015-10-22  Richard Biener  <rguenther@suse.de>
8084         PR tree-optimization/58497
8085         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8086         (expand_vector_operations_1): Use it.  Lower operations on
8087         all uniform vectors to scalar operations if the HW supports it.
8089 2015-10-22  Richard Biener  <rguenther@suse.de>
8091         PR tree-optimization/19049
8092         PR tree-optimization/65962
8093         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8094         to strided accesses if single-element interleaving doesn't work.
8096 2015-10-22  Richard Biener  <rguenther@suse.de>
8098         PR middle-end/68046
8099         PR middle-end/61893
8100         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8101         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8102         (expand_unop): Likewise.
8104 2015-10-22  Richard Biener  <rguenther@suse.de>
8106         * fold-const.c (fold_addr_of_array_ref_difference): Properly
8107         convert operands before folding a MINUS_EXPR.
8108         (fold_binary_loc): Move simplification of MINUS_EXPR on
8109         converted POINTER_PLUS_EXPRs ...
8110         * match.pd: ... here.
8112 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8114         * builtins.c (fold_builtin_tan): Delete.
8115         (fold_builtin_1): Handle constant tan arguments here.
8116         * match.pd: Simplify (tan (atan x)) to x.
8118 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8120         * builtins.c (fold_builtin_cproj): Delete.
8121         (fold_builtin_1): Handle constant arguments here.
8122         (build_complex_cproj): Move and rename to...
8123         * tree.c: (build_complex_inf): ...this.
8124         * tree.h (build_complex_inf): Declare.
8125         * match.pd: Fold cproj(x)->x if x has no infinity.
8126         Use build_complex_inf for existing cproj rules.
8128 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8130         PR target/68015
8131         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8132         already have a comparison result.
8134 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8136         PR target/63304
8137         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8138         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8139         (aarch64_classify_address): Likewise.
8140         (aarch64_secondary_reload): Likewise.
8141         (aarch64_override_options_after_change_1): Adjust.
8142         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8143         Use aarch64_nopcrelative_literal_loads.
8144         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8145         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8146         Declare.
8148 2015-10-21  Martin Sebor  <msebor@redhat.com>
8150         PR driver/68043
8151         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8152         (print_filtered_help): Reference aliased option's name and encourage
8153         readers to use it in preference to the alias if the former is not
8154         documented.  Mention when using an option is diagnosed.
8155         * gcc.c (display_help): End each sentence with a period.
8157         * common.opt: End each sentence that describes an option with
8158         a period.
8159         * config/aarch64/aarch64.opt: Same.
8160         * config/alpha/alpha.opt: Same.
8161         * config/arc/arc.opt: Same.
8162         * config/arm/arm.opt: Same.
8163         * config/avr/avr.opt: Same.
8164         * config/bfin/bfin.opt: Same.
8165         * config/c6x/c6x.opt: Same.
8166         * config/cr16/cr16.opt: Same.
8167         * config/cris/cris.opt: Same.
8168         * config/cris/linux.opt: Same.
8169         * config/darwin.opt: Same.
8170         * config/epiphany/epiphany.opt: Same.
8171         * config/fr30/fr30.opt: Same.
8172         * config/frv/frv.opt: Same.
8173         * config/ft32/ft32.opt: Same.
8174         * config/g.opt: Same.
8175         * config/h8300/h8300.opt: Same.
8176         * config/i386/cygming.opt: Same.
8177         * config/i386/djgpp.opt: Same.
8178         * config/i386/i386.opt: Same.
8179         * config/i386/interix.opt: Same.
8180         * config/i386/mingw-w64.opt: Same.
8181         * config/i386/mingw.opt: Same.
8182         * config/ia64/ia64.opt: Same.
8183         * config/ia64/ilp32.opt: Same.
8184         * config/iq2000/iq2000.opt: Same.
8185         * config/linux.opt: Same.
8186         * config/lm32/lm32.opt: Same.
8187         * config/lynx.opt: Same.
8188         * config/m32c/m32c.opt: Same.
8189         * config/m32r/m32r.opt: Same.
8190         * config/m68k/ieee.opt: Same.
8191         * config/m68k/m68k.opt: Same.
8192         * config/mcore/mcore.opt: Same.
8193         * config/mep/mep.opt: Same.
8194         * config/microblaze/microblaze.opt: Same.
8195         * config/mips/mips.opt: Same.
8196         * config/mmix/mmix.opt: Same.
8197         * config/mn10300/mn10300.opt: Same.
8198         * config/moxie/moxie.opt: Same.
8199         * config/msp430/msp430.opt: Same.
8200         * config/nios2/elf.opt: Same.
8201         * config/nios2/nios2.opt: Same.
8202         * config/nvptx/nvptx.opt: Same.
8203         * config/pa/pa-hpux.opt: Same.
8204         * config/pa/pa-hpux1010.opt: Same.
8205         * config/pa/pa-hpux1111.opt: Same.
8206         * config/pa/pa-hpux1131.opt: Same.
8207         * config/pa/pa.opt: Same.
8208         * config/pa/pa64-hpux.opt: Same.
8209         * config/pdp11/pdp11.opt: Same.
8210         * config/rl78/rl78.opt: Same.
8211         * config/rs6000/476.opt: Same.
8212         * config/rs6000/aix64.opt: Same.
8213         * config/rs6000/darwin.opt: Same.
8214         * config/rs6000/linux64.opt: Same.
8215         * config/rs6000/rs6000.opt: Same.
8216         * config/rs6000/sysv4.opt: Same.
8217         * config/s390/s390.opt: Same.
8218         * config/s390/tpf.opt: Same.
8219         * config/sh/sh.opt: Same.
8220         * config/sol2.opt: Same.
8221         * config/sparc/long-double-switch.opt: Same.
8222         * config/sparc/sparc.opt: Same.
8223         * config/spu/spu.opt: Same.
8224         * config/stormy16/stormy16.opt: Same.
8225         * config/tilegx/tilegx.opt: Same.
8226         * config/tilepro/tilepro.opt: Same.
8227         * config/v850/v850.opt: Same.
8228         * config/vax/vax.opt: Same.
8229         * config/visium/visium.opt: Same.
8230         * config/vms/vms.opt: Same.
8231         * config/vxworks.opt: Same.
8232         * config/xtensa/xtensa.opt: Same.
8234 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8235             Sebastian Pop  <s.pop@samsung.com>
8237         * graphite-scop-detection.c (parameter_index_in_region): Update call to
8238         invariant_in_sese_p_rec.
8239         * graphite-sese-to-poly.c (extract_affine): Same.
8240         * sese.c (invariant_in_sese_p_rec): Pass in an extra
8241         parameter has_vdefs.
8242         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8243         variable depends on virtual definitions in the current region.
8244         * sese.h (invariant_in_sese_p_rec): Update declaration.
8246 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8247             Sebastian Pop  <s.pop@samsung.com>
8249         * graphite-scop-detection.c (build_scops): Do not handle scops
8250         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8251         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8253 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
8255         * config.in: Regenerate.
8256         * configure: Regenerate.
8257         * configure.ac (CHECKING_P): Define.
8258         * system.h: Use CHECKING_P.
8260 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8262         PR ipa/67056
8263         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8264         is negative we don't know the type.
8265         (check_stmt_for_type_change): Skip constructors of non-polymorphic
8266         types as those won't help devirutalization.
8268 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8270         * fold-const.c (operand_equal_p): Add code matching empty constructors.
8272 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8274         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8275         comments.
8276         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8277         Add comments on sign of the result.
8278         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8279         Recurse on operand #1 instead of operand #0.
8280         <CEIL_MOD_EXPR>: Do not recurse.
8281         <ROUND_MOD_EXPR>: Likewise.
8283 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8285         * cfgrtl.c (pass_free_cfg::execute): Adjust.
8286         * final.c (dbr_sequence_length): Always define.
8287         (shorten_branches): Adjust.
8288         * genattr-common.c (main): Always define DELAY_SLOTS.
8289         * genattr.c (main): Unconditionally declare functions and define
8290         macros related to delay slots.
8291         * genattrtab.c (write_eligible_delay): Adjust.
8292         (main): Always write out delay slot functions.
8293         * opts.c (default_options_table): Adjust.
8294         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8295         (redirect_with_delay_list_safe_p): Likewise.
8296         (fill_simple_delay_slots): Likewise.
8297         (fill_slots_from_thread): Likewise.
8298         (make_return_insns): Likewise.
8299         (dbr_schedule): Likewise.
8300         (rest_of_handle_delay_slots): Likewise.
8301         (pass_delay_slots::gate): Likewise.
8302         * toplev.c (process_options): Likewise.
8304 2015-10-21  Richard Henderson  <rth@redhat.com>
8306         * targhooks.c (default_addr_space_pointer_mode): Remove check
8307         for generic address space.
8308         (default_addr_space_address_mode): Likewise.
8309         (default_addr_space_valid_pointer_mode): Likewise.
8310         (default_addr_space_legitimate_address_p): Likewise.
8311         (default_addr_space_legitimize_address): Likewise.
8312         * target.def (addr_space.pointer_mode): Update documentation
8313         of default behavior.
8314         (addr_space.address_mode): Likewise.
8315         * tm.texi: Update.
8317         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8318         address spaces.
8320 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8322         * builtins.c (fold_builtin_cabs): Delete.
8323         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8324         * match.pd: Add rules previously handled by fold_builtin_cabs.
8326 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8328         * fold-const.h (fold_strip_sign_ops): Delete.
8329         * fold-const.c (fold_strip_sign_ops): Likewise.
8330         (fold_unary_loc, fold_binary_loc): Remove calls to it.
8331         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8332         (fold_builtin_ccos): Delete.
8333         (fold_builtin_pow): Don't call fold_strip_sign_ops.
8334         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8335         Remove fndecl argument.
8336         (fold_builtin_1): Update calls accordingly.  Handle constant
8337         cos, cosh, ccos and ccosh here.
8339 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8341         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8342         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8343         * common.opt (fssa-backprop): New option.
8344         * fold-const.h (negate_mathfn_p): Declare.
8345         * fold-const.c (negate_mathfn_p): Make public.
8346         * timevar.def (TV_TREE_BACKPROP): New.
8347         * tree-pass.h (make_pass_backprop): Declare.
8348         * passes.def (pass_backprop): Add.
8349         * gimple-ssa-backprop.c: New file.
8351 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8352             Sebastian Pop  <s.pop@samsung.com>
8354         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8355         Do not call create_empty_if_region_on_edge when cond_expr is true.
8356         (translate_isl_ast_node_for): Check whether a guard has been generated.
8358 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8360         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8361         (operator=): Removed.
8362         (dr_info): Make alias_set number the last argument with default
8363         value of invalid_alias_set.
8364         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8365         of dr_info.
8366         (rewrite_reductions_out_of_ssa): Iterate only through the
8367         basic blocks which are inside region.
8368         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8369         * sese.h (struct sese_l): Removed assignment operator.
8370         (split_region_for_bb): Removed dead code.
8372 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8374         * graphite-poly.h (struct dr_info): Removed conversion constructor.
8375         (struct scop): Renamed scop::region to scop::scop_info
8376         (scop_set_region): Same.
8377         (SCOP_REGION): Removed
8378         (SCOP_CONTEXT): Removed.
8379         (POLY_SCOP_P): Removed.
8380         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8381         Rename scop->region to scop->scop_info.
8382         (add_parameters_to_ivs_params): Same.
8383         (graphite_regenerate_ast_isl): Same.
8384         * graphite-poly.c (new_scop): Same.
8385         (free_scop): Same.
8386         (print_scop_params): Same.
8387         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8388         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8389         (dot_all_scops_1): Rename scop->region to scop->scop_info.
8390         (scop_detection::nb_pbbs_in_loops): Same.
8391         (find_scop_parameters): Same.
8392         (try_generate_gimple_bb): Same.
8393         (gather_bbs::before_dom_children): Same.
8394         (gather_bbs::after_dom_children): Same.
8395         (build_scops): Same.
8396         * graphite-sese-to-poly.c (build_scop_scattering): Same.
8397         (extract_affine_chrec): Same.
8398         (extract_affine): Same.
8399         (set_scop_parameter_dim): Same.
8400         (build_loop_iteration_domains): Same.
8401         (create_pw_aff_from_tree): Same.
8402         (add_param_constraints): Same.
8403         (build_scop_iteration_domain): Same.
8404         (build_scop_drs): Same.
8405         (analyze_drs_in_stmts): Same.
8406         (insert_out_of_ssa_copy_on_edge): Same.
8407         (rewrite_close_phi_out_of_ssa):Same.
8408         (rewrite_reductions_out_of_ssa):Same.
8409         (handle_scalar_deps_crossing_scop_limits):Same.
8410         (rewrite_cross_bb_scalar_deps):Same.
8411         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8412         (build_poly_scop):Same.
8413         (build_alias_set): Use pointer to dr_info.
8414         * graphite.c (print_graphite_scop_statistics):
8415         (graphite_transform_loops):
8416         * sese.h (struct sese_l): Remove conversion constructor.
8418 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8420         PR middle-end/67966
8421         * tree.c (verify_type): Verify that TYPE_MODE match
8422         between TYPE_CANONICAL and type.
8423         * expr.c (store_expr_with_bounds): Revert my previous change.
8424         * expmed.c (store_bit_field_1): Revert prevoius change.
8425         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8426         to match for all types.
8428 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
8430         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8431         nesting.
8433 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8435         * doc/tm.texi: Regenerated.
8436         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8437         * stor-layout.c (layout_type): Use mode to get vector mask size.
8438         * target.def (get_mask_mode): New.
8439         * targhooks.c (default_get_mask_mode): New.
8440         * targhooks.h (default_get_mask_mode): New.
8441         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8442         for boolean vector.
8443         * tree.c (MAX_BOOL_CACHED_PREC): New.
8444         (nonstandard_boolean_type_cache): New.
8445         (build_nonstandard_boolean_type): New.
8446         (make_vector_type): Vector mask has no canonical type.
8447         (build_truth_vector_type): New.
8448         (build_same_sized_truth_vector_type): New.
8449         (truth_type_for): Support vector masks.
8450         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8451         (build_truth_vector_type): New.
8452         (build_same_sized_truth_vector_type): New.
8453         (build_nonstandard_boolean_type): New.
8454         * tree-cfg.c (verify_gimple_comparison) Require boolean
8455         vector type for vector comparison.
8456         (verify_gimple_assign_ternary): Likewise.
8457         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8458         condition operand.
8459         * tree-vect-stmts.c (vectorizable_condition): Use boolean
8460         vector type for vector comparison.
8461         * tree-vect-generic.c (elem_op_func): Add new operand to hold
8462         vector type.
8463         (do_unop): Adjust to modified function type.
8464         (do_binop): Likewise.
8465         (do_plus_minus): Likewise.
8466         (do_negate); Likewise.
8467         (expand_vector_piecewise): Likewise.
8468         (do_cond): Likewise.
8469         (do_compare): Use comparison instead of condition.
8470         (expand_vector_divmod): Use boolean vector type for comparison.
8471         (expand_vector_operations_1): Skip scalar mask operations.
8473 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8475         * omp-low.c (simd_clone_create): Set in_other_partition
8476         for created clones.
8478 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8480         * doc/extend.exp (Local Register Variables): Rewrite.
8482 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8484         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8485         and x*x in cases where the operands are sign ops.  Extend these
8486         rules to handle copysign as a sign op (including for cos, cosh
8487         and pow, which already treated negate and abs as sign ops).
8489 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
8491         PR target/68018
8492         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8493         for 64-bit MS_ABI targets also when default incoming stack boundary
8494         is overriden.
8496 2015-10-21  Richard Biener  <rguenther@suse.de>
8498         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8499         cond stmts, enhanced and split out from ...
8500         (vn_phi_eq): ... here.
8502 2015-10-21  Richard Biener  <rguenther@suse.de>
8504         PR middle-end/68031
8505         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8506         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8507         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
8508         make sure they are not registered for update.
8510 2015-10-21  Richard Biener  <rguenther@suse.de>
8512         PR tree-optimization/68026
8513         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8514         unsigned VARYING values.
8516 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
8518         * asan.c (asan_emit_stack_protection): Don't pass local stack to
8519         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8520         NULL and use local stack than.
8521         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8522         in addition to __asan_init.
8523         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8524         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8525         * asan.h (asan_intercepted_p): Handle new string builtins.
8526         * ubsan.c (ubsan_use_new_style_p): New function.
8527         (ubsan_instrument_float_cast): If location is unknown, assign
8528         input_location to loc. Propagate loc to ubsan_create_data if
8529         ubsan_use_new_style_p returned true.
8531 2015-10-21  Jeff Law  <law@redhat.com>
8533         * Makefile.in (OBJS): Remove sched-vis.c
8534         * sched-vis.c: Removed.  Code moved into...
8535         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
8536         * rtl.h: Remove prototypes for functions now living in print-rtl.c
8537         * print-rtl.h Add prototypes for new functions in print-rtl.c.
8538         * auto-inc-dec.c: Include print-rtl.h
8539         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8540         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8542         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8543         ATTRIBUTE_UNUSED.
8545 2015-10-21  Richard Biener  <rguenther@suse.de>
8546             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8548         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8549         to match.pd.
8550 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8551 about signed left shift stronger and clarify the cases when they're
8552 broken.
8553         Move (a * (1 << b)) is (a << b) to match.pd.
8554         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8555         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8556         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8558         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8559         New simplifier.
8560         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8561         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8562         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8563         : New simplifier.
8564         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8565         New simplifier.
8566         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8568 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
8569             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8570             Alan Modra  <amodra@gmail.com>
8572         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8573         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8574         (LINK_SPEC): Add %(link_secure_plt).
8575         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8576         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8578 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
8579             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8581         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8582         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8584 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8586         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8587         New function.
8588         (fusion_load_store): Use it.
8589         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8590         ldp and stp in VD modes.
8591         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8592         (store_pair<mode>, VD): Likewise.
8594 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
8596         PR rtl-optimization/67609
8597         * lra-splill.c (lra_final_code_change): Don't remove all
8598         sub-registers.
8600 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8602         * simplify-rtx.c (simplify_binary_operation): If either operand was
8603         a constant pool reference use them if all other simplifications failed.
8605 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8607         * config/aarch64/aarch64.md
8608         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8609         * config/aarch64/aarch64-simd.md
8610         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8611         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8612         (aarch64_fpconst_pow_of_2): New function.
8613         (aarch64_vec_fpconst_pow_of_2): Likewise.
8614         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8615         prototype.
8616         (aarch64_vec_fpconst_pow_of_2): Likewise.
8617         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8618         (aarch64_fp_vec_pow2): Likewise.
8620 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
8622         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8623         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
8624         * config/alpha/alpha.c (alpha_function_arg_advance): Update
8625         ALPHA_ARG_SIZE usage.
8626         (alpha_arg_partial_bytes): Ditto.
8628 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8630         PR target/66810
8631         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8632         error_mark_node decls.
8634 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8636         PR target/67963
8637         PR target/67985
8638         * common/config/i386/i386-common.c (ix86_handle_option): Remove
8639         OPT_miamcu handling.
8640         * config/i386/i386.c (PTA_NO_80387): New macro.
8641         (processor_alias_table): Add PTA_NO_80387 to lakemont.
8642         (ix86_option_override_internal): Update MASK_80387 from
8643         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
8644         SSE math only if 80387 is supported.  Don't change
8645         MASK_FLOAT_RETURNS.
8646         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8647         80387 is supported.
8648         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8649         if TARGET_80387 is true and TARGET_IAMCU is false.
8650         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8651         is true and TARGET_IAMCU_P is false.
8653 2015-10-20  Richard Biener  <rguenther@suse.de>
8655         PR tree-optimization/68017
8656         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8658 2015-10-20  Martin Liska  <mliska@suse.cz>
8660         * cgraphclones.c (cgraph_node::create_virtual_clone):
8661         Verify cgraph_node.local.versionable instead of calling
8662         tree_versionable_function_p.
8663         * ipa-cp.c (determine_versionability): Save the information
8664         to ipa_node_params summary.
8665         (ipcp_versionable_function_p): Use it.
8666         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8667         (ipcp_generate_summary): Do not compute cgraph_node
8668         versionability.
8669         * ipa-inline-analysis.c (inline_generate_summary): Compute
8670         versionability for all cgraph nodes.
8671         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8672         ipa_node_params::versionability.
8673         * ipa-prop.h (struct ipa_node_params): Declare it.
8675 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8677         PR other/67868
8678         * varasm.c (assemble_variable): Move special vtv handling to..
8679         (handle_vtv_comdat_sections): .. here. New function.
8680         (output_object_block): Handle vtv sections.
8682 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8684         PR target/66912
8685         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8687 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
8689         * doc/extend.texi: Update documentation WRT inline functions.
8691 2015-10-20  Alan Modra  <amodra@gmail.com>
8693         PR go/66870
8694         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8695         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8696         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8698 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
8700         PR rtl-optimization/66790
8701         * df.h (DF_MIR): New macro.
8702         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8703         (DF_MIR_INFO_BB): New macro.
8704         (DF_MIR_IN, DF_MIR_OUT): New macros.
8705         (struct df_mir_bb_info): New.
8706         (df_mir): New macro.
8707         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8708         declarations.
8709         (df_mir_get_bb_info): New.
8710         * df-problems.c (struct df_mir_problem_data): New.
8711         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8712         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8713         df_mir_confluence_0, df_mir_confluence_n,
8714         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8715         df_mir_bottom_dump, df_mir_verify_solution_start,
8716         df_mir_verify_solution_end): New.
8717         (problem_MIR): New.
8718         (df_mir_add_problem, df_mir_simulate_one_insn): New.
8719         * timevar.def (TV_DF_MIR): New.
8720         * ree.c: Include bitmap.h
8721         (add_removable_extension): Add an INIT_REGS parameter.  Use it
8722         to skip zero-extensions that may get an uninitialized register.
8723         (find_removable_extensions): Compute must-initialized registers
8724         using the MIR dataflow problem. Update the call to
8725         add_removable_extension.
8726         (find_and_remove_re): Call df_mir_add_problem.
8728 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
8730         * common/config/mn10300/mn10300-common.c
8731         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8732         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8734 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
8736         * doc/extend.texi (Explicit Register Variables): Simplify and
8737         avoid unnecessary and confusion abbreviations.  Update cross
8738         references.
8739         doc/implement-c.tex: Update cross reference.
8741 2015-10-19  Jeff Law  <law@redhat.com>
8743         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8744         that create irreducible loops unless the path elimiantes a multiway
8745         branch.
8747 2015-10-19  Richard Biener  <rguenther@suse.de>
8749         PR tree-optimization/67975
8750         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8751         * tree-cfg.c (extract_true_false_controlled_edges): Split out
8752         core worker from ...
8753         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8754         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8755         instead of block number for PHIs with two or one args.
8756         (vn_phi_eq): Compare edge predicates of PHIs that are in different
8757         blocks.
8759 2015-10-19  Richard Biener  <rguenther@suse.de>
8761         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8762         (gimple_stmt_nonnegative_warnv_p): Use it.
8763         * match.pd (CPROJ): New operator list.
8764         (cproj (complex ...)): Move simplifications from ...
8765         * builtins.c (fold_builtin_cproj): ... here.
8767 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8769         * config/i386/i386.c (ix86_expand_vector_move): Use
8770         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8771         alignment.
8773 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8775         * doc/invoke.texi: Replace @optindex with @opindex.
8777 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8779         PR target/67995
8780         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8781         arch= is set,  clear all bits in x_ix86_isa_flags, except for
8782         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8784 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
8786         PR middle-end/68002
8787         * common.opt (fkeep-static-functions): New option.
8788         * doc/invoke.texi: Document it.
8789         * cgraphunit.c (cgraph_node::finalize_function): Use it.
8791 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8793         * sched-int.h (struct autopref_multipass_data_): Remove offset
8794         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
8795         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8796         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
8797         (autopref_rank_data): New function.
8798         (autopref_rank_for_schedule): Use it.
8799         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8801 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
8803         PR other/65800
8804         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8806 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8808         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8809         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
8810         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8811         (STANDARD_STARTFILE_PREFIX_1): New.
8812         (STANDARD_STARTFILE_PREFIX_2): New.
8814 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8816         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8817         (darwin_driver_init): Note a version-min when provided on the c/l.
8818         * config/darwin.h (%darwin_minversion): Remove.
8819         * config/i386/darwin.h: Likewise.
8820         * config/rs6000/darwin.h: Likewise.
8821         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8822         rather than an arbitrary constant.
8824 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8826         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8827         PPC, detect conflicts between -arch and multilib settings.  Detect
8828         and warn about conflicts between multiple -arch definitions.
8830 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8832         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8834 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8836         * lra-constraints.c (add_next_usage_insn): Change argument type
8837         from rtx to rtx_insn *.
8839 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8841         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8842         for Lakemont.
8844 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
8846         * config/tilepro/gen-mul-tables.cc: Adjust include files.
8847         * config/tilegx/mul-tables.c: Regenerate.
8848         * config/tilepro/mul-tables.c: Regenerate.
8850         * config/tilegx/tilegx-c.c: Adjust include files.
8851         * config/tilegx/tilegx.c: Likewise.
8852         * config/tilepro/tilepro-c.c: Likewise.
8853         * config/tilepro/tilepro.c: Likewise.
8854         * config/aarch64/aarch64-builtins.c: Likewise.
8855         * config/aarch64/aarch64.c: Likewise.
8856         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8857         * config/alpha/alpha.c: Likewise.
8858         * config/arc/arc.c: Likewise.
8859         * config/arm/aarch-common.c: Likewise.
8860         * config/arm/arm-builtins.c: Likewise.
8861         * config/arm/arm-c.c: Likewise.
8862         * config/arm/arm.c: Likewise.
8863         * config/avr/avr-c.c: Likewise.
8864         * config/avr/avr-devices.c: Likewise.
8865         * config/avr/avr-log.c: Likewise.
8866         * config/avr/avr.c: Likewise.
8867         * config/bfin/bfin.c: Likewise.
8868         * config/c6x/c6x.c: Likewise.
8869         * config/cr16/cr16.c: Likewise.
8870         * config/cris/cris.c: Likewise.
8871         * config/darwin-c.c: Likewise.
8872         * config/darwin-driver.c: Likewise.
8873         * config/darwin.c: Likewise.
8874         * config/default-c.c: Likewise.
8875         * config/epiphany/epiphany.c: Likewise.
8876         * config/epiphany/mode-switch-use.c: Likewise.
8877         * config/epiphany/resolve-sw-modes.c: Likewise.
8878         * config/fr30/fr30.c: Likewise.
8879         * config/frv/frv.c: Likewise.
8880         * config/ft32/ft32.c: Likewise.
8881         * config/glibc-c.c: Likewise.
8882         * config/h8300/h8300.c: Likewise.
8883         * config/i386/host-cygwin.c: Likewise.
8884         * config/i386/host-mingw32.c: Likewise.
8885         * config/i386/i386-c.c: Likewise.
8886         * config/i386/i386.c: Likewise.
8887         * config/i386/msformat-c.c: Likewise.
8888         * config/i386/winnt-cxx.c: Likewise.
8889         * config/i386/winnt-stubs.c: Likewise.
8890         * config/i386/winnt.c: Likewise.
8891         * config/ia64/ia64-c.c: Likewise.
8892         * config/ia64/ia64.c: Likewise.
8893         * config/iq2000/iq2000.c: Likewise.
8894         * config/lm32/lm32.c: Likewise.
8895         * config/m32c/m32c-pragma.c: Likewise.
8896         * config/m32c/m32c.c: Likewise.
8897         * config/m32r/m32r.c: Likewise.
8898         * config/mcore/mcore.c: Likewise.
8899         * config/mep/mep-pragma.c: Likewise.
8900         * config/mep/mep.c: Likewise.
8901         * config/microblaze/microblaze-c.c: Likewise.
8902         * config/microblaze/microblaze.c: Likewise.
8903         * config/mips/mips-tables.opt
8904         * config/mips/mips.c: Likewise.
8905         * config/mmix/mmix.c: Likewise.
8906         * config/mn10300/mn10300.c: Likewise.
8907         * config/moxie/moxie.c: Likewise.
8908         * config/msp430/msp430-c.c: Likewise.
8909         * config/msp430/msp430.c: Likewise.
8910         * config/nds32/nds32-cost.c: Likewise.
8911         * config/nds32/nds32-fp-as-gp.c: Likewise.
8912         * config/nds32/nds32-intrinsic.c: Likewise.
8913         * config/nds32/nds32-isr.c: Likewise.
8914         * config/nds32/nds32-md-auxiliary.c: Likewise.
8915         * config/nds32/nds32-memory-manipulation.c: Likewise.
8916         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8917         * config/nds32/nds32-predicates.c: Likewise.
8918         * config/nds32/nds32.c: Likewise.
8919         * config/nios2/nios2.c: Likewise.
8920         * config/nvptx/mkoffload.c: Likewise.
8921         * config/nvptx/nvptx.c: Likewise.
8922         * config/pa/pa.c: Likewise.
8923         * config/pdp11/pdp11.c: Likewise.
8924         * config/rl78/rl78-c.c: Likewise.
8925         * config/rl78/rl78.c: Likewise.
8926         * config/rs6000/host-darwin.c: Likewise.
8927         * config/rs6000/rs6000-c.c: Likewise.
8928         * config/rs6000/rs6000-linux.c: Likewise.
8929         * config/rs6000/rs6000.c: Likewise.
8930         * config/rx/rx.c: Likewise.
8931         * config/s390/s390-c.c: Likewise.
8932         * config/s390/s390.c: Likewise.
8933         * config/sh/sh-c.c: Likewise.
8934         * config/sh/sh-mem.cc: Likewise.
8935         * config/sh/sh.c: Likewise.
8936         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8937         * config/sh/sh_treg_combine.cc: Likewise.
8938         * config/sol2-c.c: Likewise.
8939         * config/sol2-cxx.c: Likewise.
8940         * config/sol2-stubs.c: Likewise.
8941         * config/sol2.c: Likewise.
8942         * config/sparc/sparc-c.c: Likewise.
8943         * config/sparc/sparc.c: Likewise.
8944         * config/spu/spu-c.c: Likewise.
8945         * config/spu/spu.c: Likewise.
8946         * config/stormy16/stormy16.c: Likewise.
8947         * config/v850/v850-c.c: Likewise.
8948         * config/v850/v850.c: Likewise.
8949         * config/vax/vax.c: Likewise.
8950         * config/visium/visium.c: Likewise.
8951         * config/vms/vms-c.c: Likewise.
8952         * config/vms/vms.c: Likewise.
8953         * config/vxworks.c: Likewise.
8954         * config/winnt-c.c: Likewise.
8955         * config/xtensa/xtensa.c: Likewise.
8957 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8959         PR target/67745
8960         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8961         (FUNCTION_BOUNDARY_P): New macro:
8962         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8963         New hook.
8964         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8965         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8966         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8967         * function.c (allocate_struct_function): Call
8968         relayout_function hook.
8969         * passes.c (rest_of_decl_compilation): Likewise.
8971 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8973         PR target/67745
8974         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8975         * config/arm/arm.c (arm_option_override_internal): Call
8976         arm_override_options_after_change_1.
8977         (arm_override_options_after_change): New function.
8978         (arm_override_options_after_change_1): Likewise.
8979         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8981 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8983         Revert:
8984         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8985         empty constructors.
8987 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
8989         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8990         argument is an ADDR_EXPR.
8992 2015-10-16  Richard Biener  <rguenther@suse.de>
8994         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8995         and get rid of force_gimple_operand_gsi.
8996         (gimple_fold_builtin_memory_chk): Likewise.
8997         (gimple_fold_builtin_stxcpy_chk): Likewise.
8998         (rewrite_to_defined_overflow): Likewise.
8999         (gimple_convert_to_ptrofftype): New function.
9000         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9002 2015-10-16  Richard Biener  <rguenther@suse.de>
9004         * tree-nested.h (build_addr): Adjust prototype.
9005         * tree-nested.c (build_addr): Remove context argument and use
9006         mark_addressable.
9007         (get_static_chain): Adjust calls to build_addr.
9008         (convert_nl_goto_reference): Likewise.
9009         (convert_tramp_reference_op): Likewise.
9010         (finalize_nesting_tree_1): Likewise.
9011         * value-prof.c (gimple_ic): Likewise.
9012         * gimple-low.c (lower_builtin_setjmp): Likewise.
9013         * tree-parloops.c (take_address_of): Likewise.
9014         (create_call_for_reduction_1): Likewise.
9015         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9016         (gimple_gen_ic_func_profiler): Likewise.
9018 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9020         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9021         empty constructors.
9023 2015-10-16  Michael Collison  <michael.collison@linaro.org>
9024             Andrew Pinski <andrew.pinski@caviumnetworks.com>
9026         * match.pd ((x < y) && (x < z) -> x < min (y,z),
9027         (x > y) and (x > z) -> x > max (y,z))
9029 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
9030             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9032         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9033         (DYNAMIC_LINKER): Renamed to ...
9034         (GLIBC_DYNAMIC_LINKER): This.
9035         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9037 2015-10-15  Marek Polacek  <polacek@redhat.com>
9039         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9040         gimple_call_builtin instead of is_gimple_call.
9042 2015-10-15  Richard Biener  <rguenther@suse.de>
9044         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9046 2015-10-15  Richard Biener  <rguenther@suse.de>
9048         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9049         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9050         * tree-vect-loop.c (get_initial_def_for_induction): Drop
9051         use of force_gimple_operand in favor of gimple_build.
9052         Use vect_get_new_ssa_name.
9053         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9054         (vectorizable_mask_load_store): Likewise.
9055         (vectorizable_call): Likewise.
9056         (vectorizable_store): Likewise.
9057         (vectorizable_load): Likewise.
9058         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9060 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
9062         PR tree-optimization/67945
9063         * tree-pass.h (PROP_gimple_opt_math): New property flag.
9064         * generic-match-head.c (canonicalize_math_p): New function.
9065         * gimple-match-head.c: Include tree-pass.h.
9066         (canonicalize_math_p): New function.
9067         * match.pd: Group math built-in rules into simplifications
9068         and canonicalizations.  Guard the latter with canonicalize_math_p.
9069         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9070         PROP_gimple_opt_math property.
9072 2015-10-15  Marek Polacek  <polacek@redhat.com>
9074         PR tree-optimization/67953
9075         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9077 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
9079         * config.gcc: Recognize "." in architecture base name for AArch64.
9081 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9083         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9084         ROUND_UP macro.
9085         * config/mips/mips.c (mips_setup_incoming_varargs): Use
9086         ROUND_DOWN to calculate off.
9087         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9088         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9089         rounded_size.
9091 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9093         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9095 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
9096             Torvald Riegel  <triegel@redhat.com>
9098         PR target/67281
9099         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9100         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9101         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9102         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9103         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
9104         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9105         trechkpt, treclaim, tsr, ttest): New define_expands.
9106         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9107         __TM_FENCE__ for htm.
9108         * doc/extend.texi: Update documentation for htm builtins.
9110 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9112         PR target/67967
9113         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9114         REG_CFA_EXPRESSION to aligned SSE stores.
9116 2015-10-14  Jeff Law  <law@redhat.com>
9118         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9119         num_threaded_edges for successful FSM threads too.
9121 2015-10-14  Richard Biener  <rguenther@suse.de>
9123         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9124         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
9125         (vect_get_vec_def_for_operand): Remove unused parameter.
9126         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9127         (vect_create_epilog_for_reduction): Likewise.
9128         (vectorizable_reduction): Likewise.
9129         (vectorizable_live_operation): Likewise.
9130         * tree-vect-patterns.c (type_conversion_p): Likewise.
9131         (vect_recog_vector_vector_shift_pattern): Likewise.
9132         (check_bool_pattern): Likewise.
9133         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9134         (vect_analyze_slp_cost_1): Likewise.
9135         * tree-vect-stmts.c (process_use): Likewise.
9136         (vect_get_vec_def_for_operand): Do not handle reductions.
9137         (vect_get_vec_defs): Adjust.
9138         (vectorizable_mask_load_store): Likewise.
9139         (vectorizable_call): Likewise.
9140         (vectorizable_simd_clone_call): Likewise.
9141         (vect_get_loop_based_defs): Likewise.
9142         (vectorizable_conversion): Likewise.
9143         (vectorizable_assignment): Likewise.
9144         (vectorizable_shift): Likewise.
9145         (vectorizable_operation): Likewise.
9146         (vectorizable_store): Likewise.
9147         (vectorizable_load): Likewise.
9148         (vect_is_simple_cond): Likewise.
9149         (vectorizable_condition): Likewise.
9150         (vect_is_simple_use): Remove unused parameters.
9151         (vect_is_simple_use_1): Adjust and rename.
9153 2015-10-14  Richard Biener  <rguenther@suse.de>
9155         PR tree-optimization/67915
9156         * match.pd: Handle comparisons of addresses of STRING_CSTs.
9157         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9158         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9159         stmt folding in favor of GIMPLE one.
9161 2015-10-14  Marek Polacek  <polacek@redhat.com>
9163         PR tree-optimization/67815
9164         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9165         (reassociate_bb): Call it.
9167 2015-10-14  Richard Biener  <rguenther@suse.de>
9169         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9170         Reset info at start.
9171         (vect_analyze_group_access_1): Add debug print.
9172         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9173         (vect_compute_single_scalar_iteration_cost): ... to this.
9174         (vect_analyze_loop_2): Adjust.
9175         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9176         * tree-vectorizer.h: ... here.
9177         (add_stmt_info_to_vec): Remove.
9178         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9180 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9182         * targhooks.c (default_target_option_pragma_parse): Do not warn if
9183         called on behalf of "#pragma GCC pop_options".
9185 2015-10-14  Tom de Vries  <tom@codesourcery.com>
9187         * cfganal.c (verify_no_unreachable_blocks): New function.
9188         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9189         verify_no_unreachable_blocks.
9190         cfganal.h (verify_no_unreachable_blocks): Declare.
9192 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
9194         * common.opt: Add flag_checking.
9195         * system.h (CHECKING_P): Define.
9197 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9198             Aldy Hernandez  <aldyh@redhat.com>
9199             Ilya Verbin  <ilya.verbin@intel.com>
9201         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9202         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9203         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9204         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9205         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9206         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9207         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9208         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9209         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9210         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9211         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9212         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9213         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9214         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9215         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9216         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9217         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9218         (struct cgraph_simd_clone_arg): Adjust comment.
9219         * coretypes.h (struct gomp_ordered): New forward decl.
9220         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9221         set critical clauses to it.
9222         (gimple_build_omp_ordered): Return gomp_ordered * instead of
9223         gimple *.  Add CLAUSES argument, set ordered clauses to it.
9224         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9225         GIMPLE_OMP_ORDERED.
9226         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9227         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9228         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
9229         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9230         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
9231         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9232         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
9233         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9234         renumber
9235         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9236         (gomp_critical): Add clauses field.
9237         (gomp_ordered): New struct.
9238         (is_a_helper <gomp_ordered *>::test): New inline.
9239         (gimple_build_omp_critical): Add CLAUSES argument.
9240         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
9241         instead of gimple *.
9242         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9243         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9244         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9245         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9246         inline functions.
9247         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9248         (dump_gimple_omp_target): Handle enter data and exit data.
9249         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9250         (dump_gimple_omp_critical): Print clauses.
9251         (dump_gimple_omp_ordered): New function.
9252         (dump_gimple_omp_task): Handle taskloop.
9253         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9254         GIMPLE_OMP_ORDERED.
9255         * gimple-walk.c (walk_gimple_op): Walk clauses on
9256         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9257         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9258         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9259         (struct gimplify_omp_ctx): Add loop_iter_var,
9260         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9261         and target_firstprivatize_array_bases fields.
9262         (delete_omp_context): Release loop_iter_var.
9263         (gimplify_bind_expr): Handle ORT_NONE.
9264         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9265         ORT_COMBINED_TARGET.
9266         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9267         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9268         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
9269         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
9270         ctx->target_map_scalars_firstprivate.
9271         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
9272         data sharing clauses.  For data sharing clause with VLA decl
9273         on omp target/target data don't add firstprivate for the pointer.
9274         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9275         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9276         the addition of ORT_COMBINED_TARGET.
9277         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
9278         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
9279         pointers as zero length array sections and
9280         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9281         data sharing.
9282         (omp_check_private): Handle omp_member_access_dummy_var vars.
9283         (find_decl_expr): New function.
9284         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
9285         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9286         Handle OMP_CLAUSE_GANG separately.  Handle
9287         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9288         clauses.  Diagnose linear clause on combined
9289         distribute {, parallel for} simd construct, unless it is the loop
9290         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9291         Handle map clauses with COMPONENT_REF.  Initialize
9292         ctx->target_map_scalars_firstprivate,
9293         ctx->target_firstprivatize_array_bases and
9294         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
9295         linear clause even to target region if combined.  Remove
9296         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9297         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
9298         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9299         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
9300         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9301         For linear clause on worksharing loop combined with parallel add
9302         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
9303         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
9304         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
9305         taskloop if needed.
9306         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9307         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9308         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9309         GOMP_MAP_POINTER.
9310         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
9311         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9312         in target body.  Handle removal of struct mapping if struct is not
9313         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
9314         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
9315         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
9316         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9317         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9318         clause appear together.  Handle
9319         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
9320         clause if it has map-type-modifier always.  Handle
9321         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9322         clauses.
9323         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9324         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9325         callers.
9326         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
9327         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
9328         iterators in doacross loops.
9329         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9330         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
9331         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
9332         for the addition of ORT_COMBINED_TARGET.
9333         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9334         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
9335         and OMP_TARGET_EXIT_DATA.
9336         (gimplify_omp_ordered): New function.
9337         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9338         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
9339         Gimplify clauses on OMP_CRITICAL.
9340         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9341         expand_GOMP_SIMD_ORDERED_END): New functions.
9342         * internal-fn.def (GOMP_SIMD_ORDERED_START,
9343         GOMP_SIMD_ORDERED_END): New internal functions.
9344         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9345         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9346         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9347         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9348         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9349         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9350         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9351         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9352         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9353         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9354         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9355         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9356         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9357         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9358         adjust type.
9359         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9360         GOMP_target_data_41, adjust type.
9361         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9362         GOMP_target_update_41, adjust type.
9363         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9364         field.
9365         (struct omp_for_data): Add ordered and simd_schedule fields.
9366         (omp_member_access_dummy_var, unshare_and_remap_1,
9367         unshare_and_remap, is_taskloop_ctx): New functions.
9368         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9369         (extract_omp_for_data): Handle taskloops and doacross loops
9370         and simd schedule modifier.
9371         (omp_adjust_chunk_size): New function.
9372         (get_ws_args_for): Use it.
9373         (lookup_sfield): Change first argument to splay_tree_key,
9374         add overload with first argument tree.
9375         (maybe_lookup_field): Likewise.
9376         (use_pointer_for_field): Handle omp_member_access_dummy_var.
9377         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9378         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9379         (build_outer_var_ref): Add LASTPRIVATE argument, handle
9380         taskloops and omp_member_access_dummy_var vars.
9381         (build_sender_ref): Change first argument to splay_tree_key,
9382         add overload with first argument tree.
9383         (install_var_field): For mask & 8 use &DECL_UID as key instead
9384         of the tree itself.
9385         (fixup_child_record_type): Const qualify *.omp_data_i.
9386         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9387         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9388         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9389         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9390         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9391         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9392         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9393         kinds.
9394         (add_taskreg_looptemp_clauses): New function.
9395         (scan_omp_parallel): Use it.
9396         (scan_omp_task): Likewise.
9397         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9398         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9399         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9400         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
9401         sandwiched taskloop constructs.  Type check
9402         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
9403         region.  Diagnose depend(source) or depend(sink:...) on
9404         target constructs or task/taskloop.
9405         (handle_simd_reference): Use get_name.
9406         (lower_rec_input_clauses): Likewise.  Ignore all
9407         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9408         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
9409         before passing it to omp_clause_{default,copy}_ctor.  Handle
9410         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
9411         lastprivate_firstprivate flag for linear that needs copyin and
9412         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9413         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9414         on taskloop lookup decl in outer context.  Pass true to
9415         build_outer_var_ref lastprivate argument.  Handle
9416         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9417         outside of outer taskloop for.
9418         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9419         OMP_CLAUSE_DECL.
9420         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9421         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
9422         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
9423         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
9424         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9425         abstract origin.  Handle omp_member_access_dummy_var vars.
9426         (expand_parallel_call): Use expand_omp_build_assign.
9427         (expand_task_call): Handle taskloop construct expansion.  Add
9428         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
9429         integers.  Add priority argument to GOMP_task* calls.  Or in
9430         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9431         GOMP_task call.
9432         (expand_omp_build_assign): Add prototype.  Add AFTER
9433         argument, if true emit statements after *GSI_P and continue linking.
9434         (expand_omp_taskreg): Adjust expand_task_call caller.
9435         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9436         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9437         zero_iter2_bb and first_zero_iter2 arguments, handle computation
9438         of counts even for ordered loops.
9439         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9440         (expand_omp_ordered_source, expand_omp_ordered_sink,
9441         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9442         functions.
9443         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
9444         clauses on worksharing loop.  Handle DOACROSS loop expansion.
9445         (expand_omp_for_static_nochunk): Handle linear clauses on
9446         worksharing loop.  Adjust expand_omp_for_init_counts
9447         callers.
9448         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
9449         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
9450         expand_omp_for_init_counts callers.
9451         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9452         functions.
9453         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9454         Handle doacross loops.
9455         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9456         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
9457         GOMP_target_{41,update_41,enter_exit_data} libcalls.
9458         (expand_omp): Don't expand ordered depend constructs here, record
9459         ord_stmt instead for later expand_omp_for_generic.
9460         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9461         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9462         clause as stand-alone directive.
9463         (lower_omp_ordered_clauses): New function.
9464         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9465         don't lower anything.
9466         (lower_omp_for_lastprivate): Use last _looptemp_ clause
9467         on taskloop for comparison.
9468         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
9469         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9470         expansion for linear adjustments.
9471         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9472         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9473         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
9474         to tree * pointing to the stmt's clauses.
9475         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9476         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9477         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9478         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9479         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9480         clauses.  Always use short kind and 8-bit align shift.
9481         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9482         (struct lower_omp_regimplify_operands_data): New type.
9483         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9484         New functions.
9485         (lower_omp_1): Use lower_omp_regimplify_operands instead of
9486         gimple_regimplify_operands.
9487         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9488         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9489         clause as stand-alone directive.
9490         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9491         (simd_clone_mangle): Mangle the various linear kinds
9492         per the new ABI.
9493         (simd_clone_adjust_argument_types): Handle
9494         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9495         (simd_clone_init_simd_arrays): Don't do anything for uval.
9496         (simd_clone_adjust): Handle
9497         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9498         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9499         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9500         * omp-low.h (omp_member_access_dummy_var): New prototype.
9501         * passes.def (pass_simduid_cleanup): Schedule another copy of the
9502         pass after all optimizations.
9503         * tree.c (omp_clause_code_name): Add entries for
9504         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9505         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9506         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
9507         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9508         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9509         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
9510         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9511         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9512         clauses.
9513         * tree-core.h (enum omp_clause_linear_kind): New.
9514         (struct tree_omp_clause): Change type of map_kind
9515         from unsigned char to unsigned int.  Add subcode.if_modifier
9516         and subcode.linear_kind fields.
9517         (enum omp_clause_code): Add
9518         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9519         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9520         (OMP_CLAUSE_REDUCTION): Document
9521         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9522         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9523         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9524         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
9525         operand.
9526         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
9527         operand.
9528         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9529         codes.
9530         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9531         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9532         char.
9533         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9534         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9535         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9536         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9537         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9538         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9539         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9540         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9541         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9542         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9543         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9544         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9545         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9546         * tree-inline.c (remap_gimple_stmt): Handle clauses on
9547         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
9548         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9549         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9550         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9551         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9552         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9553         (convert_local_omp_clauses): Likewise.
9554         * tree-pretty-print.c (dump_omp_clause): Handle
9555         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9556         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9557         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9558         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9559         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
9560         GOMP_MAP_FORCE_DEALLOC.  Handle
9561         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9562         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9563         and clauses on OMP_ORDERED and OMP_CRITICAL.
9564         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9565         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9566         (vectorize_loops): Adjust comments.
9567         (pass_simduid_cleanup::execute): Likewise.
9568         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9569         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9570         * wide-int.h (wi::gcd): New.
9572 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9574         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9575         (ix86_function_arg_advance): Ditto.
9576         (ix86_function_arg): Ditto.
9577         (ix86_gimplify_va_arg): Ditto.
9578         (ix86_class_max_nregs): Ditto.
9579         (inline_memory_move_cost): Ditto.
9580         (ix86_set_reg_reg_cost): Ditto.
9581         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9583 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
9585         PR middle-end/67912
9586         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9588 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9590         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9591         ROUND_UP macro and UNITS_PER_WORD * 2.
9592         * config/sparc/sparc.c (sparc_compute_frame_size):
9593         Use ROUND_UP and ROUND_DOWN macros where applicable.
9594         (function_arg_record_value, function_arg_record_value_1)
9595         (function_arg_record_value_1): Ditto.
9596         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9597         alignment to double-word.
9598         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9599         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9600         rounded_size.
9602 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
9604         * rtl.h (print_insn): Fix prototype.
9606 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9608         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9609         -1.  Add assert that returned entry matches phi argument.
9610         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9611         free_stmt_vec_info_vec ...
9612         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
9613         with -1.
9615 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
9617         PR tree-optimization/67909, 67947
9618         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9619         really skip the inner loop.
9621 2015-10-13  Jeff Law  <law@redhat.com>
9623         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9624         Allow single block jump threading paths.
9626 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9628         PR tree-optimization/67476
9629         * doc/invoke.texi (@item parloops-schedule): New item.
9630         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9631         * tree-parloops.c: Include params-enum.h.
9632         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9634 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9636         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9637         * params-enum.h: New file.
9638         * opts.c (handle_param): Handle case that param arg is a string.
9639         * params-list.h: Handle DEFPARAMENUM5 in params.def.
9640         * params.c (find_param): New function, factored out of ...
9641         (set_param_value): ... here.
9642         (param_string_value_p): New function.
9643         * params.h (struct param_info): Add value_names field.
9644         (find_param, param_string_value_p): Declare.
9646 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9648         PR tree-optimization/67476
9649         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9651 2015-10-13  Richard Biener  <rguenther@suse.de>
9653         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9654         the data dependence vector.
9655         (vect_peeling_hash_insert): Get the peeling hash table as argument.
9656         (vect_peeling_hash_get_lowest_cost): Likewise.
9657         (vect_enhance_data_refs_alignment): Adjust.
9658         (struct _vect_peel_info, struct _vect_peel_extended_info,
9659         struct peel_info_hasher): Move from ...
9660         * tree-vectorizer.h: ... here.
9661         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9662         (LOOP_VINFO_PEELING_HTAB): Likewise.
9663         (struct _loop_vec_info): Remove min_profitable_iters and
9664         peeling_htab members.
9665         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9666         here.
9667         (destroy_loop_vec_info): Adjust.
9668         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9669         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9670         to estimate alias versioning cost.
9671         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9673 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
9675         * real.h (real_isinteger): Declare.
9676         * real.c (real_isinteger): New function.
9677         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9678         if y is an even integer.
9680 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9682         revert:
9683         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9684         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9685         counts when these are more informative.
9687 2015-10-12  Jeff Law  <law@redhat.com>
9689         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9690         (fsm_find_control_stmt_paths): Change name of first argument to
9691         more accurately relfect what it really is.  Handle simplification
9692         of GIMPLE_COND after finding a thread path for NAME.
9693         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9694         nontrivial conditions to be handled by FSM threader.
9695         (thread_through_normal_block): Extract the name to looup via
9696         FSM threader from COND_EXPR.
9698         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9699         restriction that traced SSA_NAME is a user variable.
9701 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9703         PR tree-optimization/67476
9704         * omp-low.c (expand_omp_for_generic): Add missing phis.
9706 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9708         PR tree-optimization/67476
9709         * omp-low.c (expand_omp_for_generic): Handle simple latch.
9711 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
9713         * config/aarch64/aarch64-simd-builtins.def: Update builtins
9714         tables: add tbl3 and tbx4.
9715         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9716         (aarch64_tbx4v8qi): New.
9717         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9718         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9719         Rewrite using builtin functions.
9720         * config/aarch64/iterators.md (UNSPEC_TBX): New.
9722 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9724         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9725         ROUND_UP macro.
9726         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9727         Use ROUND_UP and ROUND_DOWN macros where applicable.
9728         (rs6000_darwin64_record_arg_flush): Ditto.
9729         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9730         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9731         rounded_size.
9733 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9735         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9736         (AARCH64_ROUND_DOWN): Ditto.
9737         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9739 2015-10-12  Richard Biener  <rguenther@suse.de>
9741         PR ipa/67783
9742         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9743         code that analyzes IVs on each stmt but in a cheaper way avoiding
9744         quadratic behavior.
9746 2015-10-12  Nick Clifton  <nickc@redhat.com>
9748         * config/msp430/msp430.c (msp430_mcu_names): Rename to
9749         msp430_mcu_data, add fields for ISA and hardware multiply
9750         support.  Import latest data from the devices.csv file.
9751         (msp430_override_option): Use the data from the new array.
9752         (msp430_use_f5_series_hwmult): Likewise.
9753         (use_32bit_hwmult): Likewise.
9754         (msp430_no_hwmult): Likewise.
9755         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9756         MCU names.
9757         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9758         not recognised then no hardware multiply support is assumed and
9759         that only the MSP430 ISA is allowed.
9761 2015-10-12  Richard Biener  <rguenther@suse.de>
9763         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9764         related code ...
9765         (vect_analyze_loop_2): ... here.
9767 2015-10-11  Jason Merrill  <jason@redhat.com>
9769         PR c++/67557
9770         * expr.c (store_field): Call store_constructor directly when
9771         storing a CONSTRUCTOR into a target smaller than its type.
9772         Guard against unsafe bitwise copy.
9774 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9776         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9777         counts when these are more informative.
9779 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9781         * tree-profile.c (tree_profiling): Do not clear
9782         pure/const when not instrumenting.
9783         (pass tree_profile): Add dump of symtab.
9785 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9787         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9788         addresses.
9789         (fold_addr_of_array_ref_difference): Likewise.
9791 2015-10-11  Jeff Law  <law@redhat.com>
9793         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9794         tree-ssa-threadbackward.c.
9795         (fsm_find_control_statement_thread_paths): Likewise.
9796         (thread_through_normal_block): Break out FSM bits and move them
9797         into a new function in tree-ssa-threadbackward.c.  Call new function
9798         instead.
9799         Minimize header file usage.
9800         * tree-ssa-threadbackward.h: New file.
9801         * tree-ssa-threadbackward.c: Likewise.
9802         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9804 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
9806         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9808 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
9810         PR rtl-optimization/67864
9811         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9812         fallthrough edges for conditional jumps.  Don't sort candidate
9813         edges if not optimizing for speed.
9815 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9817         * defaults.h (REVERSE_CONDITION): New default definition.
9818         * jump.c (reversed_comparison_code_parts): Adjust.
9820 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9822         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9823         check HARD_FRAME_POINTER_IS_ARG_POINTER.
9825 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9827         * defaults.h (FRAME_ADDR_RTX): New default definition.
9828         * builtins.c (expand_builtin_return_addr): Adjust.
9830 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9832         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9833         * builtins.c (expand_builtin_return_addr): Adjust.
9835 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9837         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9838         * builtins.c (expand_builtin_return_addr): Adjust.
9839         * doc/tm.texi: Likewise.
9840         * doc/tm.texi.in: Likewise.
9841         * except.c (expand_builtin_unwind_init): Likewise.
9843 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9845         * builtins.c (expand_builtin_return_addr): Adjust.
9846         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9848 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9850         * tree.c (type_with_interoperable_signedness): New.
9851         (gimple_canonical_types_compatible_p): Use it.
9852         * tree.h (type_with_interoperable_signedness): Declare
9854 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9856         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9857         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9858         when OEP_ADDRESS_OF is se.
9860 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9861             Sebastian Pop  <s.pop@samsung.com>
9863         * graphite-dependences.c (scop_get_dependences): Add dump of the
9864         data dependence graph.
9865         * graphite-poly.c (print_isl_union_map): New.
9866         (debug_isl_union_map): New.
9867         * graphite-poly.h (print_isl_union_map): Declare.
9868         (debug_isl_union_map): Declare.
9870 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9871             Sebastian Pop  <s.pop@samsung.com>
9873         * graphite-poly.c (print_iteration_domain): Remove verbosity.
9874         Remove OpenScop formatting.
9875         (print_iteration_domains): Same.
9876         (debug_iteration_domain): Same.
9877         (debug_iteration_domains): Same.
9878         (print_pdr): Same.
9879         (debug_pdr): Same.
9880         (dump_gbb_cases): Same.
9881         (dump_gbb_conditions): Same.
9882         (print_pdrs): Same.
9883         (debug_pdrs): Same.
9884         (print_pbb_body): Same.
9885         (print_pbb): Same.
9886         (print_scop_params): Same.
9887         (print_scop_context): Same.
9888         (print_scop): Same.
9889         (debug_pbb_domain): Same.
9890         (debug_pbb): Same.
9891         (debug_scop_context): Same.
9892         (debug_scop): Same.
9893         (debug_scop_params): Same.
9894         * graphite-poly.h: Same.
9895         * graphite.c (graphite_transform_loops): Same.
9897 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9899         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9900         call that isn't needed.
9902 2015-10-09  Jeff Law  <law@redhat.com>
9904         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9905         rather than moving each name to the freelist individually.
9907 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
9909         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9910         * frame-header-opt.c: New file.
9911         * config/mips/mips-proto.h (mips_register_frame_header_opt):
9912         Add prototype.
9913         * config/mips/mips.c (mips_compute_frame_info): Check
9914         optimize_call_stack flag.
9915         (mips_option_override): Register new frame_header_opt pass.
9916         (mips_frame_info, mips_int_mask, mips_shadow_set,
9917         machine_function): Move these types to...
9918         * config/mips/mips.h: here.
9919         (machine_function): Add does_not_use_frame_header and
9920         optimize_call_stack fields.
9921         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9922         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9923         Document new flags.
9924         * config/mips/mips.opt (mframe-header-opt): Add new option.
9926 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
9928         * config/i386/i386.c
9929         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9930         ROUND_DOWN where applicable.
9932 2015-10-09  Jeff Law  <law@redhat.com>
9934         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9935         correct statement.
9937 2015-10-09  Renlin Li  <renlin.li@arm.com>
9939         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9940         operands[0] and operands[2].
9941         (neon_vtrn<mode>_insn): Likewise.
9942         (neon_vzip<mode>_insn): Likewise.
9944 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9946         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9947         ((X & C2) << C1): Expand to...
9948         (X {&,^,|} C2 << C1): ...This.
9949         ((X & C2) >> C1): Expand to...
9950         (X {&,^,|} C2 >> C1): ...This.
9952 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
9954         PR target/67895
9955         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9956         Adjust embedded rounding/SAE specifier position.
9957         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9958         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9959         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9960         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9961         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9962         Likewise.
9963         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9965 2015-10-09  Martin Jambor  <mjambor@suse.cz>
9967         tree-optimization/67794
9968         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9969         between types of state,ents but accept original definitions as a
9970         parameter.
9971         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9972         iterate over definitions.
9974 2015-10-09  James Norris  <jnorris@codesourcery.com>
9976         * config/rs6000/rs6000.c (rs6000_offload_options): New.
9977         (TARGET_OFFLOAD_OPTIONS): New.
9979 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
9981         PR middle-end/67891
9982         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9984         PR middle-end/67766
9985         * function.c (expand_function_end): Move return value
9986         promotion past the handling of PARALLELs and CONCATs.
9988         PR rtl-optimization/67828
9989         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9990         (tree_may_unswitch_on): Don't unswitch on expressions
9991         involving undefined values.
9993 2015-10-09  Richard Biener  <rguenther@suse.de>
9995         * genmatch.c (print_operand): Fix formatting.
9996         (dt_node::append_simplify): Warn for multiple simplifiers
9997         that match the same pattern.
9998         * match.pd (log (exp @0)): Remove duplicates.
10000 2015-10-09  Richard Biener  <rguenth@suse.de>
10002         PR target/67366
10003         * gimple-fold.c (optabs-query.h): Include
10004         (gimple_fold_builtin_memory_op): Allow unaligned stores
10005         when movmisalign_optabs are available.
10007 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10009         PR target/67366
10010         * config/arm/arm.md (movmisalign<mode>): New.
10011         * config/arm/iterators.md (HSI): New.
10013 2015-10-09  Richard Biener  <rguenther@suse.de>
10015         PR tree-optimization/67891
10016         * gimple-match.h (gimple_simplified_result_is_gimple_val):
10017         New helper.
10018         (gimple_resimplify1): Declare.
10019         (gimple_resimplify2): Likewise.
10020         (gimple_resimplify3): Likewise.
10021         * gimple-match-head.c (gimple_resimplify1): Export.
10022         (gimple_resimplify2): Likewise.
10023         (gimple_resimplify3): Likewise.
10024         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10025         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10026         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10027         to avoid creating stmts without VN info.
10029 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
10031         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10032         of availability.
10034 2015-10-08  Jeff Law  <law@redhat.com>
10036         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10037         and release_ssa_name in two places.
10038         (gimple_stringop_fixed_value): Similarly.
10040         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10041         release_defs.
10043         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10044         unlink_stmt_vdef and release_ssa_name_fn.
10046         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10047         release_defs.
10049 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
10051         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10052         SSE register save area to 16 bytes only if the incoming stack
10053         boundary is no less than 16 bytes.
10055 2015-10-08  Jeff Law  <law@redhat.com>
10057         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10058         release_ssa_name.  Fix typo in comment.
10060 2015-10-08  Nathan Sidwell  <nathan@acm.org>
10062         * config/nvptx/nvptx.h (struct machine_function): Add comment.
10063         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10064         may return pointer as well as in memory.
10065         (nvptx_output_return): Likewise.
10067 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10069         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10070         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10071         * match.pd: Add rules previously handled by fold_builtin_sqrt
10072         and fold_builtin_cbrt.
10074 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10076         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10077         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10078         * fold-const.h (tree_unary_nonnegative_warnv_p)
10079         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10080         (tree_expr_nonnegative_warnv_p): Add depth parameters.
10081         * fold-const.c: Include gimple-fold.h and params.h.
10082         (tree_ssa_name_nonnegative_warnv_p): New function.
10083         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10084         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10085         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10086         Add a depth parameter and increment it for recursive calls to
10087         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
10088         to handle SSA names.
10089         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10090         (gimple_stmt_nonnegative_warnv_p): Declare.
10091         * tree-vrp.c (remove_range_assertions): Remove assert that condition
10092         cannot be proven false.
10093         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10094         (gimple_stmt_nonnegative_warnv_p): Move to...
10095         * gimple-fold.c: ...here.  Add depth parameters and pass them
10096         down to the tree routines.  Accept statements that aren't
10097         assignments or calls but just return false for them.
10098         (gimple_val_nonnegative_real_p): Delete.
10099         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10100         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10101         Check HONOR_NANs first.
10103 2015-10-08  Martin Jambor  <mjambor@suse.cz>
10105         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
10106         unnecessary MIN.
10108 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10110         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10111         in the tail of outer-loop.
10113 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
10115         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10116         return UI_NONE.
10118 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10120         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10121         "cfghooks.h", add prototypes for introduced new functions.
10122         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10123         checks on ability of loop unswitching to tree_unswitch_single_loop;
10124         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10125         on innermost loop check.
10126         (tree_unswitch_single_loop): Add all required checks on ability of
10127         loop unswitching under zero recursive level guard.
10128         (tree_unswitch_outer_loop): New function.
10129         (find_loop_guard): Likewise.
10130         (empty_bb_without_guard_p): Likewise.
10131         (used_outside_loop_p): Likewise.
10132         (get_vop_from_header): Likewise.
10133         (hoist_guard): Likewise.
10134         (check_exit_phi): Likewise.
10136 2015-10-08  Marek Polacek  <polacek@redhat.com>
10138         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10139         ops element.
10141 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10143         PR c/65345
10144         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10145         create_tmp_var_raw instead of create_tmp_var.
10147 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
10149         * expr.c (store_expr_with_bounds): Handle aggregate moves from
10150         BLKmode.
10151         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10152         to define gimple type system; compare aggregates only by size.
10154 2015-10-07  Jeff Law  <law@redhat.com>
10156         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10157         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10158         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
10159         unnecessarily.
10161 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10162             Sebastian Pop  <s.pop@samsung.com>
10164         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10165         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10166         (generate_isl_schedule): Same.
10167         * graphite-optimize-isl.c (scop_get_domains): Same.
10168         (apply_schedule_map_to_scop): Same.
10169         * graphite-poly.c (print_iteration_domains): Same.
10170         (remove_gbbs_in_scop): Same.
10171         (new_scop): Same.
10172         (free_scop): Same.
10173         (print_scop): Same.
10174         * graphite-poly.h (struct scop): Rename bbs to pbbs.
10175         (SCOP_BBS): Remove.
10176         * graphite-scop-detection.c (compare_bb_depths): Remove.
10177         (graphite_sort_dominated_info): Remove.
10178         (try_generate_gimple_bb): Move out of scop_detection.
10179         (all_non_dominated_preds_marked_p): Remove.
10180         (build_scop_bbs_1): Remove.
10181         (build_scop_bbs): Remove.
10182         (nb_pbbs_in_loops): Do not use SCOP_BBS.
10183         (find_scop_parameters): Same.
10184         (sese_dom_walker): Rename gather_bbs.
10185         (before_dom_children): Call try_generate_gimple_bb and collect gbb
10186         and pbb.
10187         (build_scops): Call gather_bbs.
10188         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10189         (add_conditions_to_constraints): Same.
10190         (build_scop_iteration_domain): Same.
10191         (build_scop_drs): Same.
10192         (new_pbb_from_pbb): Same.
10193         * sese.c (new_sese_info): Create bbs.
10194         * sese.h (struct sese_info_t): Add bbs.
10196 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
10198         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10199         encoding in 64-bit mode.
10201 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
10203         PR target/66697
10204         * config/i386/i386.c (ix86_option_override_internal): Always use
10205         8-byte minimum stack boundary in 64-bit mode.
10206         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10207         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10208         Add a REG_CFA_EXPRESSION note if needed.
10209         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10210         (ix86_handle_force_align_arg_pointer_attribute): New.
10211         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10212         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10213         with ix86_handle_force_align_arg_pointer_attribute.
10214         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10216 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10217             Sebastian Pop  <s.pop@samsung.com>
10219         * graphite-scop-detection.c (parameter_index_in_region): Remove
10220         use of SESE_ADD_PARAMS.
10221         (find_scop_parameters): Same.
10222         * sese.c (new_sese_info): Same.
10223         * sese.h (struct sese_info_t): Remove add_params.
10224         (SESE_ADD_PARAMS): Remove.
10226 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10227             Sebastian Pop  <s.pop@samsung.com>
10229         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10230         an sese_info_p.
10231         (copy_def): Same.
10232         (copy_internal_parameters): Same.
10233         (translate_isl_ast_to_gimple): Use an sese_l.
10234         (build_iv_mapping): Same.
10235         * graphite-poly.c (new_sese): Rename new_sese_info.
10236         (free_sese): Rename free_sese_info.
10237         * graphite-poly.h (struct scop): Use an sese_info_p.
10238         (scop_set_region): Same.
10239         * graphite-scop-detection.c (struct sese_l): Moved...
10240         (get_entry_bb): Moved...
10241         (get_exit_bb): Moved...
10242         (parameter_index_in_region_1): Use an sese_info_p.
10243         (parameter_index_in_region): Same.
10244         (scan_tree_for_params): Same.
10245         (find_params_in_bb): Same.
10246         (sese_dom_walker): Use an sese_l.
10247         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10248         (reduction_phi_p): Same.
10249         (parameter_index_in_region_1): Use an sese_info_p.
10250         (propagate_expr_outside_region): Use an sese_l.
10251         * graphite.c: Replace uses of SCOP_REGION.
10252         * sese.c (sese_record_loop): Use an sese_info_p.
10253         (build_sese_loop_nests): Same.
10254         (sese_build_liveouts_use): Same.
10255         (sese_build_liveouts_bb): Same.
10256         (sese_build_liveouts_bb): Same.
10257         (sese_bad_liveouts_use): Same.
10258         (sese_reset_debug_liveouts_bb): Same.
10259         (sese_build_liveouts): Same.
10260         (new_sese): Renamed new_sese_info.
10261         (free_sese): Renamed free_sese_info.
10262         (set_rename): Use an sese_info_p.
10263         (graphite_copy_stmts_from_block): Same.
10264         (copy_bb_and_scalar_dependences): Same.
10265         (outermost_loop_in_sese_1): Use an sese_l.
10266         (outermost_loop_in_sese): Same.
10267         (if_region_set_false_region): Use an sese_info_p.
10268         (move_sese_in_condition): Same.
10269         (scalar_evolution_in_region): Use an sese_l.
10270         * sese.h (struct sese_l): ... here.
10271         (SESE_ENTRY): Remove.
10272         (SESE_ENTRY_BB): Remove.
10273         (SESE_EXIT): Remove.
10274         (SESE_EXIT_BB): Remove.
10275         (sese_contains_loop): Use an sese_info_p.
10276         (sese_nb_params): Same.
10277         (bb_in_sese_p): Use an sese_l.
10278         (stmt_in_sese_p): Same.
10279         (defined_in_sese_p): Same.
10280         (loop_in_sese_p): Same.
10281         (sese_loop_depth): Same.
10282         (struct ifsese_s): Use an sese_info_p.
10283         (gbb_loop_at_index): Use an sese_l.
10284         (nb_common_loops): Same.
10285         (scev_analyzable_p): Same.
10287 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10289         * config/i386/i386.c (ix86_conditional_register_usage): Use
10290         CALL_USED_REGISTERS_MASK.
10291         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10293 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10295         PR bootstrap/67385
10296         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10297         * configure: Regenerated.
10299 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10301         PR target/67850
10302         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10303         (ix86_set_current_function): This.
10304         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10306 2015-10-07  Richard Biener  <rguenther@suse.de>
10308         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10309         (vinfo_for_stmt): Adjust.
10310         (set_vinfo_for_stmt): Likewise.
10311         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10312         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10313         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10314         of inner loop.
10315         (vect_analyze_loop_1): Remove.
10316         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10317         inner loop when vectorizing an outer loop by splitting out from ...
10318         (vect_analyze_loop_form): ... here.
10320 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10322         PR c/65345
10323         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10324         Use create_tmp_var_raw instead of create_tmp_var.
10326 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10328         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10329         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10330         * real.c (CACHED_FRACTION): New helper macro.
10331         (dconst_third_ptr): Use it.
10332         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10333         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10334         dconst_sixth.
10335         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10337 2015-10-06  Jeff Law  <law@redhat.com>
10339         PR tree-optimization/67816
10340         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10341         from remove_jump_threads_starting_at.  Accept an edge rather than
10342         a basic block.
10343         * tree-ssa-threadupdate.c (removed_edges): New hash table.
10344         (remove_jump_threads_including): Note edges that get removed from
10345         the CFG for later pruning of jump threading paths including them.
10346         (thread_through_all_blocks): Remove paths which include edges that
10347         have been removed.
10348         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10349         on each outgoing edges when optimizing away a control statement.
10351 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10353         * reorg.c (emit_delay_sequence): Store list of delay slot insns
10354         in a vector instead of rtx_insn_list.
10355         (add_to_delay_list): Likewise.
10356         (delete_from_delay_slot): Likewise.
10357         (optimize_skip): Likewise.
10358         (redirect_with_delay_list_safe_p): Likewise.
10359         (check_annul_list_true_false): Likewise.
10360         (steal_delay_list_from_target): Likewise.
10361         (steal_delay_list_from_fallthrough): Likewise.
10362         (redundant_insn): Likewise.
10363         (fill_simple_delay_slots): Likewise.
10364         (fill_slots_from_thread): Likewise.
10365         (fill_eager_delay_slots): Likewise.
10366         (relax_delay_slots): Likewise.
10368 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
10370         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10371         For -mgpopt=local, also exclude unintialized common symbols.
10372         * doc/invoke.texi (Nios II Options): Document the change.
10374 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10376         * config/aarch64/iterators.md (vwcore): Add missing cases for
10377          V4HF/V8HF modes.
10379 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10380             Sebastian Pop  <s.pop@samsung.com>
10382         * graphite-poly.c (new_scop): Initialize drs.
10383         * graphite-poly.h (struct dr_info): New.
10384         (struct scop): Add drs.
10385         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10386         (pdr_add_memory_accesses): Same.
10387         (build_poly_dr): Same.
10388         (build_alias_set): Same.
10389         (build_scop_drs): Same.
10390         (build_pbb_drs): Remove.
10391         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10392         * tree-data-ref.h (data_reference): Remove alias_set.
10394 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10395             Sebastian Pop  <s.pop@samsung.com>
10397         * graphite-poly.c (free_data_refs_aux): Remove.
10398         (free_gimple_poly_bb): Do not call free_data_refs_aux.
10399         * graphite-poly.h (struct base_alias_pair): Remove.
10400         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10401         base_alias_pair and dr->aux.
10402         (build_alias_set): Same.
10403         * tree-data-ref.c (create_data_ref): Initialize alias_set.
10404         * tree-data-ref.h (data_reference): Add alias_set.
10406 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10407             Sebastian Pop  <s.pop@samsung.com>
10409         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10410         Do not set PDR_BASE_OBJECT_SET.
10411         * graphite-poly.h (poly_dr): Same.
10412         (PDR_BASE_OBJECT_SET): Remove.
10413         (new_poly_dr): Update decl.
10414         * graphite-sese-to-poly.c (build_poly_dr): Update call to
10415         new_poly_dr.
10416         (write_alias_graph_to_ascii_dimacs): Remove.
10417         (write_alias_graph_to_ascii_dot): Remove.
10418         (write_alias_graph_to_ascii_ecc): Remove.
10419         (dr_same_base_object_p): Remove.
10420         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
10421         code.
10422         (build_base_obj_set_for_drs): Remove.
10423         (dump_alias_graphs): Remove.
10424         (build_scop_drs): Remove dead code.
10426 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10427             Peter Bergner  <bergner@vnet.ibm.com>
10429         PR target/67808
10430         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10431         allow registers, but provide insns for the combiner to create for
10432         loads from memory. Separate VSX code from non-VSX code. For
10433         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10434         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10435         so that registers come before memory operations. Drop support from
10436         converting DFmode to TFmode, if the DFmode value is in a GPR
10437         register.
10438         (extenddftf2_fprs): Likewise.
10439         (extenddftf2_internal): Likewise.
10440         (extenddftf2_vsx): Likewise.
10441         (extendsftf2): In the expander, only allow registers, but provide
10442         insns for the combiner to create for stores and loads.
10444 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10446         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10447         from the decl parameter.
10449 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
10451         PR 67861
10452         * gimple-fold.c (gimple_fold_builtin): Add break after
10453         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10455 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
10457         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10458         to scop->isl_context.
10460 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10462         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10463         (output_probe_stack_range): Rotate the loop and simplify.
10464         (thumb1_expand_prologue): Tweak sorry message.
10465         * config/arm/arm.md (probe_stack): Use bare string.
10467 2015-10-06  Nick Clifton  <nickc@redhat.com>
10469         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10471 2015-10-06  Nick Clifton  <nickc@redhat.com>
10473         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10474         (ATTR_PERSIST): New constant.
10475         (msp430_data_attr): New function - verifies an attribute that only
10476         applies to variables.
10477         (msp430_attributes): Add noinit and persistent attributes.
10478         (noinit_section): New variable.
10479         (presis_section): New variable.
10480         (TARGET_ASM_INIT_SECTIONS): Define.
10481         (msp430_init_sections): New function - initialises the noinit and
10482         persist section variables.
10483         (msp430_select_section): Add support for noinit and persist
10484         attributes.
10485         (msp430_section_type_flags): Likewise.
10486         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
10487         and persistent attributes.
10489 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10490             Sebastian Pop  <s.pop@samsung.com>
10492         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10493         (no_violations): Remove.
10494         (subtract_commutative_associative_deps): Remove.
10495         (compute_deps): Do not call subtract_commutative_associative_deps.
10496         (transform_is_safe): Remove.
10497         (graphite_legal_transform): Remove.
10498         * graphite-poly.h (graphite_legal_transform): Remove.
10500 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
10502         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10503         which are in this region are passed so gcc_assert and remove redundant
10504         computation.
10505         * sese.c (sese_build_liveouts): Pass only those bbs which are not
10506         in region.
10507         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10508         gcc_assert on that and remove unnecessary computation.
10509         (sese_build_liveouts_use): Same.
10511 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10513         * graphite-dependences.c (scop_get_reads): Renamed scop->context
10514         to scop->param_context.
10515         (scop_get_must_writes): Same.
10516         (scop_get_may_writes): Same.
10517         (scop_get_original_schedule): Same.
10518         (scop_get_transformed_schedule): Same.
10519         (subtract_commutative_associative_deps): Same.
10520         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10521         (generate_isl_context): Same.
10522         (generate_isl_schedule): Same.
10523         (scop_to_isl_ast): Same.
10524         (graphite_regenerate_ast_isl): Same.
10525         * graphite-optimize-isl.c (scop_get_domains): Same.
10526         (optimize_isl): Renamed scop->context to scop->param_context.
10527         * graphite-poly.c (new_poly_bb): Change the type of argument to
10528         gimple_poly_bb_p.
10529         (new_scop): Renamed scop->context to scop->param_context.
10530         (free_scop): Same.
10531         (print_scop_context): Same.
10532         * graphite-poly.h (new_poly_dr): Change the type of argument from
10533         void* to data_reference_p.
10534         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10535         (new_poly_bb): Change the type of argument from void* to
10536         gimple_poly_bb_p.
10537         (pbb_set_black_box): Same.
10538         (struct scop): Rename context to param_context, ctx to isl_context.
10539         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10540         Move declarations closer to assignment.
10541         (find_params_in_bb): Same.
10542         (find_scop_parameters): Same.
10543         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10544         Global to be used for statement IDs.
10545         (isl_id_for_pbb): Use ssa_name_version_typesize.
10546         (simple_copy_phi_p): Move declarations closer to assignment.
10547         (build_pbb_scattering_polyhedrons): Same.
10548         (build_scop_scattering): Same.
10549         (isl_id_for_ssa_name): Same.
10550         (extract_affine_name): Same.
10551         (extract_affine_int): Same.
10552         (extract_affine): Same.
10553         (set_scop_parameter_dim): Use renamed member.
10554         (build_loop_iteration_domains): Same.
10555         (add_param_constraints): Same.
10556         (build_scop_iteration_domain): Same.
10557         (pdr_add_data_dimensions): Same.
10558         (build_poly_dr): Same.
10559         (build_scop_drs): Move declarations closer to assignment.
10560         (analyze_drs_in_stmts): Same.
10561         (insert_out_of_ssa_copy): Same.
10562         (insert_out_of_ssa_copy_on_edge): Same.
10563         (propagate_expr_outside_region): Same.
10564         (rewrite_phi_out_of_ssa): Same.
10565         (rewrite_degenerate_phi): Same.
10566         (rewrite_reductions_out_of_ssa): Same.
10567         (rewrite_cross_bb_scalar_dependence): Same.
10568         (handle_scalar_deps_crossing_scop_limits): Same.
10569         (rewrite_cross_bb_scalar_deps): Same.
10570         * graphite.c (graphite_transform_loops): Use renamed member.
10572 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
10574         PR c/65345
10575         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10576         create_tmp_var_raw instead of create_tmp_var.
10578 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10580         PR c/65345
10581         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10582         Use create_tmp_var_raw instead of create_tmp_var.
10584 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
10586         PR target/67849
10587         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10588         split for upper-bank registers when target does not support
10589         AVX512VL.
10590         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10591         split when target does not support AVX512VL.
10593 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
10595         PR c/65345
10596         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10597         Adjust to use create_tmp_var_raw instead of create_tmp_var.
10599 2015-10-06  Nick Clifton  <nickc@redhat.com>
10601         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10602         multiplication.
10604 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10606         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10607         (case ${target}): Add znver1.
10608         * config/i386/cpuid.h(bit_CLZERO):  Define.
10609         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10610         -march=native recognize znver1 processors.
10611         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10612         znver1, clzero def_and_undef.
10613         * config/i386/i386.c (struct processor_costs znver1_cost): New.
10614         (m_znver1): New definition.
10615         (m_AMD_MULTIPLE): Includes m_znver1.
10616         (processor_target_table): Add znver1 entry.
10617         (ix86_target_string) : Add clzero entry.
10618         (static const char *const cpu_names): Add znver1 entry.
10619         (ix86_option_override_internal): Add znver1 instruction sets.
10620         (PTA_CLZERO) :  New definition.
10621         (ix86_option_override_internal): Handle new clzerooption.
10622         (ix86_issue_rate): Add znver1.
10623         (ix86_adjust_cost): Add znver1.
10624         (ia32_multipass_dfa_lookahead): Add znver1.
10625         (has_dispatch): Add znver1.
10626         * config/i386/i386.h (TARGET_znver1): New definition.
10627         (TARGET_CLZERO): Define.
10628         (TARGET_CLZERO_P): Define.
10629         (struct ix86_size_cost): Add TARGET_ZNVER1.
10630         (enum processor_type): Add PROCESSOR_znver1.
10631         * config/i386/i386.md (define_attr "cpu"): Add znver1.
10632         (set_attr znver1_decode): New definitions for znver1.
10633         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10634         (mclzero): New.
10635         * config/i386/mmx.md (set_attr znver1_decode): New definitions
10636         for znver1.
10637         * config/i386/sse.md (set_attr znver1_decode): Likewise.
10638         * config/i386/x86-tune.def:  Add znver1 tunings.
10639         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10640         * doc/invoke.texi: Add details about znver1
10642 2015-10-06  Richard Biener  <rguenther@suse.de>
10644         PR tree-optimization/67859
10645         * tree-ssa-pre.c (create_expression_by_pieces): Properly
10646         discard not inserted stmts.
10648 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
10650         * doc/extend.texi (Template Instantiation): Reorder options and
10651         de-emphasize -frepo.
10652         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10653         example instead of -frepo.
10655 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10657         PR c/65345
10658         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10659         use create_tmp_var_raw rather than create_tmp_var.
10661 2015-10-06  Richard Biener  <rguenther@suse.de>
10663         * tree-vectorizer.h (vec_info): New base class for...
10664         (_loop_vec_info): ... this and ...
10665         (_bb_vec_info): ... this.
10666         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10667         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10668         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10669         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10670         vect_destroy_datarefs): Adjust interface to take a vec_info *
10671         rather than both a loop_vec_info and a bb_vec_info argument.
10672         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10673         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10674         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10675         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10676         accordingly.
10677         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10678         (destroy_loop_vec_info, vect_analyze_loop_2,
10679         vect_is_simple_reduction_1, get_initial_def_for_induction,
10680         vect_create_epilog_for_reduction, vectorizable_reduction,
10681         vectorizable_live_operation, vect_transform_loop): Adjust.
10682         * tree-vect-patterns.c (type_conversion_p,
10683         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10684         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10685         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10686         check_bool_pattern, vect_recog_bool_pattern,
10687         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10688         * tree-vect-slp.c (vect_get_and_check_slp_defs,
10689         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10690         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10691         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10692         (new_bb_vec_info): Initialize base classs.
10693         * tree-vect-stmts.c (record_stmt_cost, process_use,
10694         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10695         vectorizable_mask_load_store, vectorizable_call,
10696         vectorizable_simd_clone_call, vectorizable_conversion,
10697         vectorizable_assignment, vectorizable_shift,
10698         vectorizable_operation, vectorizable_store,
10699         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10700         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10701         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10703 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10705         PR c/65345
10706         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10707         create_tmp_var_raw rather than create_tmp_var.
10709 2015-10-05  Marek Polacek  <polacek@redhat.com>
10711         * tree-ssa-loop-im.c
10712         (move_computations_dom_walker::before_dom_children): Don't set
10713         SSA_NAME_ANTI_RANGE_P.
10714         * tree-ssa-phiopt.c (value_replacement): Likewise.
10716 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10717             Sebastian Pop  <s.pop@samsung.com>
10719         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10721 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10722             Sebastian Pop  <s.pop@samsung.com>
10724         * graphite-poly.c (new_gimple_poly_bb): ... here.
10725         (free_data_refs_aux): ... here.
10726         (free_gimple_poly_bb): ... here.
10727         (remove_gbbs_in_scop): ... here.
10728         (new_scop): Call new_sese.
10729         (free_scop): Call remove_gbbs_in_scop and free_sese.
10730         * graphite-poly.h (base_alias_pair): ... here.
10731         (new_gimple_poly_bb): Declare.
10732         (free_gimple_poly_bb): Declare.
10733         * graphite-scop-detection.c (parameter_index_in_region_1):
10734         (parameter_index_in_region): ... here.
10735         (scan_tree_for_params): ... here.
10736         (find_params_in_bb): ... here.
10737         (find_scop_parameters): ... here.
10738         (build_scops): Call find_scop_parameters.
10739         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10740         (free_scops): Move...
10741         (single_pred_cond_non_loop_exit): Move...
10742         (sese_dom_walker::before_dom_children): Move...
10743         (sese_dom_walker::after_dom_children): Move...
10744         (build_poly_scop): Move...
10745         * graphite-sese-to-poly.h (base_alias_pair): Move...
10746         * graphite.c (free_scops): ... here.
10748 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10749             Sebastian Pop  <s.pop@samsung.com>
10751         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10752         (trivially_empty_bb_p): Move...
10753         (same_close_phi_node): Move...
10754         (new_gimple_poly_bb): Move...
10755         (compare_bb_depths): Move...
10756         (graphite_sort_dominated_info): Move...
10757         (remove_duplicate_close_phi): Move...
10758         (make_close_phi_nodes_unique): Move...
10759         (canonicalize_loop_closed_ssa): Move...
10760         (canonicalize_loop_closed_ssa_form): Move...
10761         (loop_ivs_can_be_represented): Move...
10762         (single_pred_cond_non_loop_exit): Move...
10763         (graphite_can_represent_init): Move...
10764         (graphite_can_represent_scev): Move...
10765         (stmt_has_simple_data_refs_p): Move...
10766         (stmt_has_side_effects):  Move...
10767         (graphite_can_represent_stmt): Move...
10768         (scop_detection): ... here.
10769         (sese_dom_walker): ... and here.
10770         (build_scops): Call all moved functions.
10771         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10772         (all_non_dominated_preds_marked_p): Move...
10773         (build_scop_bbs_1): Move...
10774         (build_scop_bbs): Move...
10775         (set_scop_parameter_dim): Move...
10776         (nb_pbbs_in_loops): Move...
10777         (build_poly_scop): Do not call all the moved functions.
10779 2015-10-05  Martin Jambor  <mjambor@suse.cz>
10780             Jan Hubicka  <hubicka@ucw.cz>
10782         * ipa-cp.c (ipcp_alignment_lattice): New type.
10783         (ipcp_param_lattices): Use the above to represent alignment.
10784         (ipcp_alignment_lattice::print): New function.
10785         (print_all_lattices): Use it to print alignment information.
10786         (ipcp_alignment_lattice::top_p): New function.
10787         (ipcp_alignment_lattice::bottom_p): Likewise.
10788         (ipcp_alignment_lattice::set_to_bottom): Likewise.
10789         (ipcp_alignment_lattice::meet_with_1): Likewise.
10790         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10791         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10792         (initialize_node_lattices): Likewise.
10793         (propagate_alignment_accross_jump_function): Work with the new class
10794         for alignment lattices.
10795         (propagate_constants_accross_call): Pass only the alignment lattice to
10796         propagate_alignment_accross_jump_function.
10797         (ipcp_store_alignment_results): Work with the new class for alignment
10798         lattices.
10800 2015-10-05  Marek Polacek  <polacek@redhat.com>
10802         PR tree-optimization/67821
10803         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10805 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
10807         PR other/65021
10808         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10809         function to...
10810         (mkoffload_cleanup): ... this.  Adjust all users.
10811         (maybe_unlink): Look at save_temps and verbose flags instead of
10812         debug flag.
10813         (main): Parse "-save-temps" flag.
10814         (generate_target_descr_file, generate_target_offloadend_file)
10815         (generate_host_descr_file, prepare_target_image): Pass it on.
10816         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10817         (mkoffload_cleanup): New function.
10818         (maybe_unlink): Look at save_temps and verbose flags instead of
10819         debug flag.
10820         (main): Instead of calling utils_cleanup, register atexit handler
10821         for mkoffload_cleanup.
10822         (main): Parse "-save-temps" flag.
10823         (compile_native, main): Pass it on.
10824         * lto-wrapper.c (compile_offload_image): Likewise.
10826 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10828         * gimple.h (gimple_op_ptr): Require a non const gimple *.
10829         (gimple_assign_lhs_ptr): Likewise.
10830         (gimple_assign_rhs1_ptr): Likewise.
10831         (gimple_assign_rhs2_ptr): Likewise.
10832         (gimple_assign_rhs3_ptr): Likewise.
10833         (gimple_call_lhs_ptr): Likewise.
10834         (gimple_call_fn_ptr): Likewise.
10835         (gimple_call_chain_ptr): Likewise.
10836                 (gimple_call_arg_ptr): Likewise.
10837                 (gimple_cond_lhs_ptr): Likewise.
10838         (gimple_cond_rhs_ptr): Likewise.
10839         (gimple_switch_index_ptr): Likewise.
10840         (gimple_return_retval_ptr): Likewise.
10842 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10844         * gimple.h (gimple_asm_input_op_ptr): Remove.
10845         (gimple_asm_output_op_ptr): Likewise.
10847 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10849         * gimple.h (gimple_location_ptr): Remove.
10850         * tree-vrp.c (check_all_array_refs): Adjust.
10852 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10854         * tree-ssa-operands.c (build_uses): store tree * instead of
10855         tree.
10856         (finalize_ssa_uses): Adjust.
10857         (append_use): Likewise.
10858         (verify_ssa_operands): Likewise.
10860 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10862         * real.h (build_real_truncate): Declare.
10863         * tree.c (build_real_truncate): New function.
10864         (strip_float_extensions): Use it.
10865         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10866         (fold_builtin_hypot, fold_builtin_pow): Likewise.
10867         * match.pd: Likewise.
10869 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10870            Jiong Wang  <jiong.wang@arm.com>
10872         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10874 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10876         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10877         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10878         (aarch64_print_operand, aarch64_float_const_representable_p)
10879         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10880         instead of REAL_VALUE_FROM_CONST_DOUBLE.
10881         * config/arc/arc.c (arc_print_operand): Likewise.
10882         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10883         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10884         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10885         Likewise.
10886         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10887         (consttable_16): Likewise.
10888         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10889         * config/avr/avr.c (avr_print_operand): Likewise.
10890         * config/bfin/bfin.md: Likewise (in a define_split).
10891         * config/c6x/c6x.md: Likewise (in a define_split).
10892         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10893         (cr16_print_operand): Likewise.
10894         * config/cris/cris.c (cris_print_operand): Likewise.
10895         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10896         * config/fr30/fr30.c (fr30_print_operand): Likewise.
10897         (fr30_const_double_is_zero): Likewise.
10898         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10899         * config/frv/frv.md: Likewise (in a define_split).
10900         * config/frv/predicates.md (int_2word_operand): Likewise.
10901         * config/h8300/h8300.c (h8300_print_operand): Likewise.
10902         * config/i386/i386.c (standard_80387_constant_p): Likewise.
10903         (ix86_print_operand, ix86_split_to_parts): Likewise.
10904         * config/i386/i386.md: Likewise (in a define_split).
10905         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10906         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10907         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10908         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10909         (print_operand): Likewise.
10910         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10911         * config/mep/mep.md: Likewise (in define_split).
10912         * config/microblaze/microblaze.c (microblaze_const_double_ok)
10913         (print_operand): Likewise.
10914         * config/mips/mips.md (consttable_float): Likewise.
10915         * config/mmix/mmix.c (mmix_intval): Likewise.
10916         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10917         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10918         * config/pa/pa.c (pa_singlemove_string): Likewise.
10919         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10920         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10921         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10922         (output_toc): Likewise.
10923         * config/rs6000/rs6000.md: Likewise (in define_splits).
10924         * config/rx/rx.c (rx_print_operand): Likewise.
10925         * config/s390/s390.c (s390_output_pool_entry): Likewise.
10926         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10927         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10928         (and also in define_splits).
10929         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10930         (fp_high_losum_p): Likewise.
10931         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10932         (*movsf_high): Likewise.
10933         * config/spu/spu.c (const_double_to_hwint): Likewise.
10934         * config/v850/v850.c (const_double_split): Likewise.
10935         * config/vax/vax.c (vax_float_literal): Likewise.
10936         * config/visium/visium.c (visium_expand_copysign): Likewise.
10937         * config/visium/visium.md: Likewise (in define_split).
10938         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10939         * config/xtensa/xtensa.c (print_operand): Likewise.
10940         (xtensa_output_literal): Likewise.
10941         * cprop.c (implicit_set_cond_p): Likewise.
10942         * dwarf2out.c (insert_float): Likewise.
10943         * expmed.c (expand_mult, make_tree): Likewise.
10944         * expr.c (compress_float_constant): Likewise.
10945         * rtlanal.c (split_double): Likewise.
10946         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10947         (simplify_const_unary_operation, simplify_binary_operation_1)
10948         (simplify_const_binary_operation): Likewise.
10949         (simplify_const_relational_operation): Likewise.
10950         * varasm.c (output_constant_pool_2): Likewise.
10952 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10954         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10955         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10956         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10957         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10958         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10959         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10960         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10961         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10962         (ix86_emit_swsqrtsf): Likewise.
10963         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10964         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10965         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10966         * config/pa/pa.c (pa_expand_builtin): Likewise.
10967         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10968         (rs6000_scale_v2df): Likewise.
10969         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10970         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10971         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10972         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10973         (vec_ctul): Likewise.
10974         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10975         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10976         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10977         * cse.c (fold_rtx): Likewise.
10978         * emit-rtl.c (immed_double_const): Likewise (in comments).
10979         (init_emit_once): Likewise.
10980         * expr.c (compress_float_constant, expand_expr_real_1)
10981         (const_vector_from_tree): Likewise.
10982         * optabs.c (expand_float, expand_fix): Likewise.
10983         * reg-stack.c (reg_to_stack): Likewise.
10984         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10985         (simplify_const_unary_operation, simplify_binary_operation_1)
10986         (simplify_const_binary_operation, simplify_relational_operation)
10987         (simplify_immed_subreg): Likewise.
10989 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10991         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10992         * doc/tm.texi: Regenerate.
10993         * real.h (REAL_ARITHMETIC): Delete.
10994         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10995         (ix86_expand_round_sse4): Use real_arithmetic instead of
10996         REAL_ARITHMETIC.
10997         * config/i386/sse.md (round<mode>2): Likewise.
10998         * rtl.h (rtx_to_tree_code): Likewise (in comment).
10999         * explow.c (rtx_to_tree_code): Likewise (in comment).
11000         * match.pd: Likewise.
11001         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11002         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11003         (expand_pow_as_sqrts): Likewise.
11004         * tree-pretty-print.c (dump_generic_node): Remove code that
11005         was conditional on REAL_ARITHMETIC being undefined.
11007 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11009         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11010         * doc/tm.texi: Regenerate.
11011         * real.h (real_less): Declare.
11012         (REAL_VALUES_LESS): Delete.
11013         * real.c (real_less): New function.
11014         (real_compare): Use it.
11015         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11016         of REAL_VALUES_LESS.
11017         * config/microblaze/microblaze.c (microblaze_const_double_ok):
11018         Likewise.
11019         * fold-const.c (fold_convert_const_int_from_real): Likewise.
11020         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11021         (simplify_const_relational_operation): Likewise.
11022         * tree-call-cdce.c (check_pow): Likewise.
11023         (gen_conditions_for_pow_cst_base): Likewise.
11025 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11027         * real.h (REAL_VALUES_IDENTICAL): Delete.
11028         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11029         instead of REAL_VALUES_IDENTICAL.
11030         * fold-const.c (operand_equal_p): Likewise.
11031         * ipa-icf.c (sem_variable::equals): Likewise.
11032         * tree-complex.c (some_nonzerop): Likewise.
11033         (expand_complex_multiplication): Likewise.
11034         * tree.c (simple_cst_equal): Likewise.
11035         * varasm.c (compare_constant): Likewise.
11037 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11039         * real.h (real_equal): Declare.
11040         (REAL_VALUES_EQUAL): Delete.
11041         * real.c (real_equal): New function.
11042         (real_compare): Use it.
11043         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11044         * doc/tm.texi: Regenerate.
11045         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11046         real_equal instead of REAL_VALUES_EQUAL.
11047         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11048         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11049         (fp_const_from_val): Likewise.
11050         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11051         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11052         (floating_exact_log2): Likewise.
11053         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11054         * config/vax/vax.c (vax_float_literal): Likewise.
11055         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11056         * cprop.c (implicit_set_cond_p): Likewise.
11057         * expmed.c (expand_mult): Likewise.
11058         * fold-const.c (const_binop): Likewise.
11059         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11060         (simplify_const_binary_operation): Likewise.
11061         (simplify_const_relational_operation): Likewise.
11062         * tree-call-cdce.c (check_pow): Likewise.
11063         (gen_conditions_for_pow_cst_base): Likewise.
11064         * tree-inline.c (estimate_num_insns): Likewise.
11065         * tree-ssa-dom.c (record_equality): Likewise.
11066         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11067         (gimple_expand_builtin_pow): Likewise.
11068         (pass_optimize_widening_mul::execute): Likewise.
11069         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11070         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11071         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11073 2015-10-05  Richard Biener  <rguenther@suse.de>
11075         PR ipa/67783
11076         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11077         consider loop header PHI defs as IVs.
11079 2015-10-05  Richard Biener  <rguenther@suse.de>
11081         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11082         call handling ...
11083         (create_expression_by_pieces): ... here and build GIMPLE
11084         calls directly.  Use gimple_build API and avoid force_gimple_operand.
11085         (insert_into_preds_of_block): Simplify.
11086         (do_regular_insertion): Add comment.
11088 2015-10-04  Jason Merrill  <jason@redhat.com>
11090         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11092 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
11094         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11095         check for general register.
11096         (ix86_emit_save_regs): Ditto.
11097         (ix86_emit_save_regs_using_mov): Ditto.
11098         (ix86_emit_restore_regs_using_pop): Ditto.
11099         (ix86_emit_restore_regs_using_mov): Ditto.
11101 2015-10-03  Marek Polacek  <polacek@redhat.com>
11103         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11104         (insn-dfatab.o): Likewise.
11106 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
11108         * config.gcc (xtensa*-*-uclinux*): New configuration.
11109         * config/xtensa/uclinux.h: New file.
11110         * config/xtensa/uclinux.opt: New file.
11112 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
11114         * doc/cpp.texi (Standard Predefined Macros): Document value of
11115         __cplusplus for C++14.
11117 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
11119         * gcc.c (process_command): Use spec_machine rather than
11120         spec_host_machine to build tooldir_prefix2.
11122 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11123             Bernd Schmidt  <bernds@codesourcery.com>
11125         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11126         (Token, Stmt): Remove structs.
11127         (decls, vars, fns): Remove variables.
11128         (alloc_comment, append_stmt, is_keyword): Remove macros.
11129         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11130         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11131         (parse_init, parse_file): Remove functions.
11132         (read_file): Accept a pointer to a length and store into it.
11133         (process): Don't try to parse the input file, just write it out as
11134         a string, but looking for maps.  Also write out the length.
11135         (main): Don't use "-S" to compile PTX code.
11137 2015-10-02  Jeff Law  <law@redhat.com>
11139         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11140         fixups.
11142 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11144         PR target/67822
11145         * config/nvptx/mkoffload.c (main): Scan the argument vector for
11146         -fopenmp, and skip generating an offloading image if specified.
11148 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
11150         * system.h (ROUND_UP): New macro definition.
11151         (ROUND_DOWN): Ditto.
11152         * ggc-page.c (ROUND_UP): Remove local macro definition.
11153         (PAGE_ALIGN): Implement using ROUND_UP macro.
11155         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11156         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11157         to align values.
11158         (ix86_compute_frame_layout): Ditto.
11159         (ix86_expand_prologue): Ditto.
11160         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11161         to round down values.
11162         (expand_set_or_movmem_via_rep): Ditto.
11164 2015-10-02  Marek Polacek  <polacek@redhat.com>
11166         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11168 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
11170         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11171         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11172         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11173         (free_gimple_bb): Renamed free_gimple_poly_bb.
11174         (try_generate_gimple_bb): Hoist loop invariant code.
11175         (analyze_drs_in_stmts): Same.
11176         (build_scop_drs): Call renamed functions.
11177         (new_pbb_from_pbb): Same.
11178         (scop_ivs_can_be_represented): Delete as functionality now moved to
11179         graphite-scop-detection.c
11180         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11182 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
11184         * graphite-scop-detection.c (stmt_has_side_effects): New function
11185           outlined from stmt_simple_for_scop_p.
11186         (graphite_can_represent_stmt): Same.
11187         (stmt_simple_for_scop_p): Moved code out of this function for better
11188         readability.
11190 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11192         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11193         F_AVX512IFMA.
11194         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11196 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11198         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11200 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11202         PR rtl-optimization/67756
11203         * lra-constraints.c (match_reload): Add a new parameter.  Use it
11204         for creating a pseudo with the same value.
11205         (curr_insn_transform): Pass a new argument to match_reload.
11207 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11209         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11210         (expand_vec_perm_even_odd_1): Handle V64QImode.
11211         (ix86_expand_vec_perm_const_1): Try expansion with
11212         expand_vec_perm_even_odd_trunc as well.
11213         * config/i386/sse.md (VI124_AVX512F): Rename to ...
11214         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11215         to V54QI.
11216         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11217         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11218         to V32HI and V16SI.
11219         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11220         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11221         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11222         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11223         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11224         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11226 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11228         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11229         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11231 2015-10-02  Jason Merrill  <jason@redhat.com>
11233         PR c/59218
11234         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11235         (diagnose_tm_1_op): Also diagnose volatile accesses in
11236         transaction_safe function.
11238 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
11240         * system.h (malloc.h): Don't include obsolete header.
11242 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11244         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11245         (TLS_SECTION_ASM_FLAG): Delete.
11247 2015-10-02  Marek Polacek  <polacek@redhat.com>
11249         PR c/64249
11250         * doc/invoke.texi: Document -Wduplicated-cond.
11251         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11252         (insn-dfatab.o): Likewise.
11253         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11254         warning.
11256 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
11258         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11259         sequences.
11261 2015-10-02  Renlin Li  <renlin.li@arm.com>
11263         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11265 2015-10-02  Renlin Li  <renlin.li@arm.com>
11267         PR target/66776
11268         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11270 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11272         PR rtl-optimization/67786
11273         PR rtl-optimization/67787
11274         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11275         it modifies a reg used in the condition calculation.
11277 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
11279         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11280         alternatives for reads from memory and moves from general-purpose
11281         registers.
11282         (*aarch64_combinez_be<mode>): Likewise.
11284 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
11286         PR target/51726
11287         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11288         selectany within this function without need to keep attribute.
11289         (i386_pe_encode_section_info): Remove selectany-code.
11291 2015-10-02  Richard Biener  <rguenther@suse.de>
11293         * tree-ssa-sccvn.c (has_VN_INFO): New function.
11294         (free_scc_vn): Use it.
11295         (visit_use): Remove dead code and refactor to use gassign
11296         and use less indentation.
11298 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11300         PR target/67788
11301         PR target/67789
11302         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11303         (rs6000_cannot_copy_insn_p): New function.
11304         * config/rs6000/rs6000.md (cannot_copy): New attribute.
11305         (load_toc_v4_PIC_1_normal): Set cannot_copy.
11306         (load_toc_v4_PIC_1_476): Ditto.
11308 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11310         * graphite-scop-detection.c (struct sese_l): New conversion constructor
11311         so that this type can be pushed into a vec.
11312         (class scop_builder): use sese_l to collect scops.
11313         (get_scops): New getter function.
11314         (remove_intersecting_scops): Use sese_l instead of scops_p.
11315         (intersects): Same.
11316         (add_scop): Same.
11317         (subsumes): Same.
11318         (remove_subscops): Same.
11319         (build_scops): Add scops to vec<scops_p> once all the scops have been
11320         detected.
11322 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11324         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11325         Renamed type from gimple_bb_p to gimple_poly_bb_p.
11326         (translate_isl_ast_node_user): Same.
11327         * graphite-poly.c (new_poly_bb): Same.
11328         * graphite-poly.h (gbb_from_bb): Same.
11329         * sese.h: Same.
11330         * graphite-sese-to-poly.c (new_gimple_bb):
11331         gimple_bb_p -> gimple_poly_bb_p
11332         (build_scop_scattering): Same.
11333         (find_params_in_bb): Same.
11334         (add_conditions_to_domain): Same.
11335         (sese_dom_walker::before_dom_children): Same.
11336         (analyze_drs_in_stmts): Same.
11337         (new_pbb_from_pbb): Same.
11338         (free_data_refs_aux): New pointer to type base_alias_pair.
11339         * graphite-sese-to-poly.h: Same.
11340         * sese.c (if_region_set_false_region): Fixed Indentation.
11341         (move_sese_in_condition): Same.
11343 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11344             Aditya Kumar  <aditya.k7@samsung.com>
11346         PR tree-optimization/66980
11347         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11348         when data reference analysis has failed.
11350 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11351             Aditya Kumar  <aditya.k7@samsung.com>
11353         PR tree-optimization/67754
11354         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11355         scev analysis on the same loop nest as analyze_drs_in_stmts.
11356         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11357         renamed...
11358         (try_generate_gimple_bb): Call outermost_loop_in_sese.
11359         (analyze_drs_in_stmts): Same.
11360         * sese.c (outermost_loop_in_sese): ...here.
11362 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11363             Aditya Kumar  <aditya.k7@samsung.com>
11365         PR tree-optimization/67754
11366         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11367         recursion on the inner loops.
11369 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11371         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11372         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11373         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11374         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11375         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11377 2015-10-01  Marek Polacek  <polacek@redhat.com>
11379         PR c/65345
11380         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11381         create_tmp_var_raw rather than create_tmp_var.
11383 2015-10-01  Marek Polacek  <polacek@redhat.com>
11385         PR tree-optimization/67769
11386         * tree-ssa-phiopt.c (conditional_replacement): Call
11387         reset_flow_sensitive_info_in_bb.
11388         (minmax_replacement): Likewise.
11389         (abs_replacement): Likewise.
11391 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
11393         * builtins.c: Don't include gomp-constants.h.
11394         (fold_builtin_1): Don't fold acc_on_device here.
11395         * gimple-fold.c: Include gomp-constants.h.
11396         (gimple_fold_builtin_acc_on_device): New.
11397         (gimple_fold_builtin): Call it.
11399 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11401         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11402         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11404 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
11406         * config/arm/aarch-common-protos.h
11407         (aarch_accumulator_forwarding): New.
11408         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11409         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11410         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11411         * config/arm/cortex-a53.md: Rewrite.
11413 2015-10-01  Richard Biener  <rguenther@suse.de>
11415         * gimple-match.h (mprts_hook): Declare.
11416         * gimple-match.head.c (mprts_hook): Define.
11417         (maybe_push_res_to_seq): Use new hook.
11418         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11419         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11420         (vn_ssa_aux::has_constants): Remove.
11421         * tree-ssa-sccvn.c: Include gimple-match.h.
11422         (VN_INFO_GET): Assert we don't re-use SSA names.
11423         (vn_get_expr_for): Remove.
11424         (expr_has_constants): Likewise.
11425         (stmt_has_constants): Likewise.
11426         (simplify_binary_expression): Likewise.
11427         (simplify_unary_expression): Likewise.
11428         (vn_lookup_simplify_result): New hook.
11429         (visit_copy): Adjust.
11430         (visit_reference_op_call): Likewise.
11431         (visit_phi): Likewise.
11432         (visit_use): Likewise.
11433         (process_scc): Likewise.
11434         (init_scc_vn): Likewise.
11435         (visit_reference_op_load): Likewise.  Use match-and-simplify and
11436         a gimple seq for inserted expressions.
11437         (try_to_simplify): Remove GENERIC stmt combining code.
11438         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11439         * tree-ssa-pre.c (eliminate_insert): Adjust.
11440         (eliminate_dom_walker::before_dom_children): Likewise.
11442 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11444         * doc/invoke.texi (Optimization Options): Add
11445         -freorder-blocks-algorithm=.
11446         (Optimize Options) <-O>: Add -freorder-blocks.
11447         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
11448         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11449         <-freorder-blocks>: Also enabled at levels -O and -Os.
11450         <-freorder-blocks-algorithm=>: Document new option.
11452 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11454         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11455         with flag_reorder_blocks_algorithm.
11456         * common.opt (freorder-blocks-algorithm=): New flag.
11457         (reorder_blocks_algorithm): New enum.
11458         * flag-types.h (reorder_blocks_algorithm): New enum.
11459         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11460         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11462 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11464         * bb-reorder.c: Add intro comment.
11465         (reorder_basic_blocks_software_trace_cache): Print a header to
11466         the dump file.
11467         (edge_order): New function.
11468         (reorder_basic_blocks_simple): New function.
11469         (reorder_basic_blocks): Choose between the STC and the simple
11470         algorithms (always choose the former).
11472 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11474         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11475         function, factored out from ...
11476         (reorder_basic_blocks): ... here.
11478 2015-10-01  Tom de Vries  <tom@codesourcery.com>
11480         * tree-cfg.c (dump_function_to_file): Dump function attributes using
11481         __attribute__(()) string.  Move dumping of function attributes to before
11482         function name.
11484 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
11486         PR target/66870
11487         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11488         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11489         based on gold linker version.
11490         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11491         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11492         * configure, config.in: Regenerate.
11494 2015-10-01  Alan Modra  <amodra@gmail.com>
11496         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11497         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11498         (rs6000_output_mi_thunk): Likewise.
11500 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11502         * config/nvptx/mkoffload.c (process): Change offload data format.
11504 2015-09-30  Jeff Law  <law@redhat.com>
11506         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11507         with constant conditions.
11508         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11509         (remove_ctrl_stmt_and_useless_edges): No longer static.
11510         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11511         (remove_ctrl_stmt_and_useless_edges): Likewise.
11513 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11514             Cesar Philippidis  <cesar@codesourcery.com>
11516         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11517         (TARGET_GOACC_VALIDATE_DIMS): Override.
11518         * target.def (TARGET_GOACC): New target hook prefix.
11519         (validate_dims): New hook.
11520         * targhooks.h (default_goacc_validate_dims): New.
11521         * omp-low.c (oacc_validate_dims): New.
11522         (execute_oacc_device_lower): New.
11523         (default_goacc_validate_dims): New.
11524         (pass_data_oacc_device_lower): New.
11525         (pass_oacc_device_lower): New pass.
11526         (make_pass_oacc_device_lower): New.
11527         * tree-pass.h (make_pass_oacc_device_lower): Declare.
11528         * passes.def (pass_oacc_device_lower): Add it.
11529         * doc/tm.texi: Rebuilt.
11530         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11531         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11533 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11535         PR rtl-optimization/67037
11536         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11538 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
11540         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11541         * passes.c: Include tree-ssanames.h.
11542         (execute_function_todo): Flush the pending free SSA_NAMEs after
11543         eliminating unreachable basic blocks.
11544         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11545         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11546         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11547         (flush_ssanames_freelist): New function.
11548         (release_ssaname_fn): Put released names on the queue.
11549         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11550         * tree-ssanames.h (flush_ssanames_freelist): Declare.
11552 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11554         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11555         (generate_target_descr_file, generate_target_offloadend_file)
11556         (generate_host_descr_file, prepare_target_image): Pass it on.
11557         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11558         (compile_native, main): Pass it on.
11559         * lto-wrapper.c (compile_offload_image): Likewise.
11561 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11562             Ilya Verbin  <ilya.verbin@intel.com>
11563             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11565         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11566         (prepare_target_image, main): Refactor argv building to use
11567         obstacks.
11569 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11571         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11572         * config/spu/spu.c (spu_expand_atomic_op): New function.
11573         * config/spu/spu.md (AINT): New mode iterator.
11574         (ATOMIC): New code iterator.
11575         (atomic_name, atomic_pred): New code predicates.
11576         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11577         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11578         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11579         "atomic_<atomic_name>_fetch<mode>"): Likewise.
11581 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
11583         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11584         debug insns.
11585         (scalar_chain::convert_reg): Likewise.
11587 2015-09-30  Richard Biener  <rguenther@suse.de>
11589         * builtins.c: Add comment that no new simplifications should
11590         be added here.
11592 2015-09-30  Marek Polacek  <polacek@redhat.com>
11594         PR tree-optimization/67690
11595         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11596         reset_flow_sensitive_info_in_bb.
11597         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11598         * tree-ssanames.c: Include "gimple-iterator.h".
11599         (reset_flow_sensitive_info_in_bb): New function.
11600         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11602 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11604         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11605         variable, replacing it with...
11606         (offload_abi): ... this new variable.  Adjust all users.
11607         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11609 2015-09-30  Matthias Klose  <doko@ubuntu.com>
11611         * configure.ac: Remove extraneous ;;.
11612         * configure: Regenerate.
11614 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
11616         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11617         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11618         predicate, disallow register for operand 2.
11620 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
11622         * graphite-dependences.c (scop_get_dependences): Moved in down
11623         in order to be visible to its caller.
11624         * graphite-poly.h: Removed compute_deps, and extend_schedule.
11626 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11627             Aditya Kumar  <aditya.k7@samsung.com>
11629         PR tree-optimization/67754
11630         * graphite-optimize-isl.c (optimize_isl): Call
11631         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11633 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11635         * builtins.c (expand_builtin_acc_on_device): Delete.
11636         (expand_builtin): Don't call it.
11637         (fold_builtin_1): Fold acc_on_device.
11639 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
11641         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11642         (ix86_nsaved_sseregs): Likewise.
11644 2015-09-29  Jeff Law  <law@redhat.com>
11646         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11647         computation of unused value.
11649         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11650         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11651         inline macro expansion.
11653         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11655         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11656         (gen_shl_sext): Likewise.
11657         * config/sh/sh.md (divsi3): Likewise.
11658         (imm->ext_dest_operand splitter): Likewise.
11660 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11661             Aditya Kumar  <aditya.k7@samsung.com>
11663         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11664         (nb_data_writes_in_bb): Remove.
11665         (split_pbb): Remove.
11666         (split_reduction_stmt): Remove.
11667         (is_reduction_operation_p): Remove.
11668         (phi_contains_arg): Remove.
11669         (follow_ssa_with_commutative_ops): Remove.
11670         (detect_commutative_reduction_arg): Remove.
11671         (detect_commutative_reduction_assign): Remove.
11672         (follow_inital_value_to_phi): Remove.
11673         (edge_initial_value_for_loop_phi): Remove.
11674         (initial_value_for_loop_phi): Remove.
11675         (used_outside_reduction): Remove.
11676         (detect_commutative_reduction): Remove.
11677         (translate_scalar_reduction_to_array_for_stmt): Remove.
11678         (remove_phi): Remove.
11679         (dr_indices_valid_in_loop): Remove.
11680         (close_phi_written_to_memory): Remove.
11681         (translate_scalar_reduction_to_array): Remove.
11682         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11683         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11684         (rewrite_commutative_reductions_out_of_ssa): Remove.
11685         (build_poly_scop): Remove call to
11686         rewrite_commutative_reductions_out_of_ssa.
11688 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
11690         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11691         Add new insn types for vector load and store pairs.
11692         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11693         types "neon_ldp{,_q}".
11694         * config/arm/cortex-a57.md (neon_load_c): Add insn types
11695         "neon_ldp{,_q}".
11696         (neon_store_complex): Add insn types "neon_stp{,_q}".
11697         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11698         "neon_{ldp,stp}_q".
11700 2015-09-29  Jeff Law  <law@redhat.com>
11702         * config/rx/constraints.md (Int08): Fix undefined left shift
11703         behaviour.
11704         (Sint08, Sint16, Sint24): Likewise.
11705         * config/rx/rx.c (rx_get_stack_layout): Likewise.
11707         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11708         behaviour.
11710         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11711         left shift behaviour.
11712         * config/msp430/constraints.md ('L' constraint): Similarly.
11713         ('Ys' constraint): Similarly.
11715 2015-09-29  Richard Biener  <rguenther@suse.de>
11717         PR tree-optimization/67170
11718         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11719         the translate function pointer parameter to get the
11720         bool whether to disambiguate only by reference.
11721         (walk_non_aliased_vuses): Likewise.
11722         * tree-ssa-alias.c (maybe_skip_until): Adjust.
11723         (get_continuation_for_phi_1): Likewise.
11724         (get_continuation_for_phi): Likewise.
11725         (walk_non_aliased_vuses): Likewise.
11726         * tree-ssa-sccvn.c (const_parms): New bitmap.
11727         (vn_reference_lookup_3): Adjust for interface change.
11728         Disambiguate parameters pointing to readonly memory.
11729         (free_scc_vn): Free const_parms.
11730         (run_scc_vn): Initialize const_parms from a fn spec attribute.
11732 2015-09-29  Richard Biener  <rguenther@suse.de>
11734         PR tree-optimization/67741
11735         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11736         builtin calls with correct signature.
11738 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
11740         PR target/65105
11741         * config/i386/i386.c: Include dbgcnt.h.
11742         (has_non_address_hard_reg): New.
11743         (convertible_comparison_p): New.
11744         (scalar_to_vector_candidate_p): New.
11745         (remove_non_convertible_regs): New.
11746         (scalar_chain): New.
11747         (scalar_chain::scalar_chain): New.
11748         (scalar_chain::~scalar_chain): New.
11749         (scalar_chain::add_to_queue): New.
11750         (scalar_chain::mark_dual_mode_def): New.
11751         (scalar_chain::analyze_register_chain): New.
11752         (scalar_chain::add_insn): New.
11753         (scalar_chain::build): New.
11754         (scalar_chain::compute_convert_gain): New.
11755         (scalar_chain::replace_with_subreg): New.
11756         (scalar_chain::replace_with_subreg_in_insn): New.
11757         (scalar_chain::emit_conversion_insns): New.
11758         (scalar_chain::make_vector_copies): New.
11759         (scalar_chain::convert_reg): New.
11760         (scalar_chain::convert_op): New.
11761         (scalar_chain::convert_insn): New.
11762         (scalar_chain::convert): New.
11763         (convert_scalars_to_vector): New.
11764         (pass_data_stv): New.
11765         (pass_stv): New.
11766         (make_pass_stv): New.
11767         (ix86_option_override): Created and register stv pass.
11768         (flag_opts): Add -mstv.
11769         (ix86_option_override_internal): Likewise.
11770         * config/i386/i386.md (SWIM1248x): New.
11771         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11772         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11773         (*anddi3_doubleword): New.
11774         (*zext<mode>_doubleword): New.
11775         (*zextsi_doubleword): New.
11776         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11777         (*<code>di3_doubleword): New.
11778         * config/i386/i386.opt (mstv): New.
11779         * dbgcnt.def (stv_conversion): New.
11781 2015-09-29  Tom de Vries  <tom@codesourcery.com>
11783         * tree-cfg.c (dump_function_to_file): Dump function attributes.
11785 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11787         PR target/67716
11788         * config/sh/sh.c (sh_override_options_after_change): New.
11789         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11790         (sh_option_override): Move align_loops, align_jumps and
11791         align_functions handling into sh_override_options_after_change.
11793 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
11795         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11796         (nvptx_record_offload_symbol): Record function execution geometry.
11797         * config/nvptx/mkoffload.c (process): Include launch geometry in
11798         function data.
11799         * omp-low.c (oacc_launch_pack): New.
11800         (replace_oacc_fn_attrib): New.
11801         (set_oacc_fn_attrib): New.
11802         (get_oacc_fn_attrib): New.
11803         (expand_omp_target): Create keyed varargs for GOACC_parallel call
11804         generation.
11805         * omp-low.h (get_oacc_fn_attrib): Declare.
11806         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11807         (DEF_FUNCTION_TYPE_VAR_11): Delete.
11808         * tree.h (OMP_CLAUSE_EXPR): New.
11809         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11811 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11812             Sebastian Pop  <s.pop@samsung.com>
11814         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11816 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11817             Sebastian Pop  <s.pop@samsung.com>
11819         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11820         * graphite-scop-detection.c (struct sese_l): New type.
11821         (get_entry_bb): API for getting entry bb of SESE.
11822         (get_exit_bb): API for getting exit bb of SESE.
11823         (class debug_printer): New type.  Simple printer in debug mode.
11824         (trivially_empty_bb_p): New.  Return true when BB is empty or
11825         contains only debug instructions.
11826         (graphite_can_represent_expr): Call scalar_evoution_in_region
11827         instead of analyze_scalar_evolution.  Pass in scop instead of only
11828         the scop entry.
11829         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11830         scop entry.
11831         (stmt_simple_for_scop_p): Same.
11832         (harmful_stmt_in_bb): Same.
11833         (graphite_can_represent_loop): Deleted.
11834         (struct scopdet_info): Deleted.
11835         (scopdet_basic_block_info): Deleted.
11836         (build_scops_1): Deleted.
11837         (bb_in_sd_region): Deleted.
11838         (find_single_entry_edge): Deleted.
11839         (find_single_exit_edge): Deleted.
11840         (create_single_entry_edge): Deleted.
11841         (sd_region_without_exit): Deleted.
11842         (create_single_exit_edge): Deleted.
11843         (unmark_exit_edges): Deleted.
11844         (mark_exit_edges): Deleted.
11845         (create_sese_edges): Deleted.
11846         (build_graphite_scops): Deleted.
11847         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11848         (build_scops): Use the new scop_builder to build scops.
11849         (dot_all_scops_1): Use the new pretty printer.  Print loop father
11850         as well.
11851         (loop_body_is_valid_scop): New.  Return true if loop body is a
11852         valid scop.
11853         (class scop_builder): New.  Builds SCoPs for polyhedral
11854         optimizations.
11855         (scop_builder): New constructor.
11856         (static sese_l invalid_sese): sese_l with invalid edges.
11857         (get_sese): Get an sese (from a loop) if possible, invalid_sese
11858         otherwise.
11859         (get_nearest_dom_with_single_entry): Get nearest dominator of a
11860         basic_block with single entry.  Return NULL if we get to the
11861         beginning of a function.
11862         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11863         a basic_block with single exit.  Return NULL if we get to the
11864         beginning of a function.
11865         (print_sese): Pretty-print SESE.
11866         (merge_sese): Merge two SESEs if possible and return the new SESE.
11867         (build_scop_depth): Start building the SCoP within a loop nest.
11868         (build_scop_breadth): Start building the SCoP at a single loop
11869         depth.  Merge adjacent SESEs if valid.
11870         (can_represent_loop_1): Returns true if Graphite can represent
11871         loop inside SCoP.  Helper for can_represent_loop.
11872         (can_represent_loop): Returns true if Graphite can represent LOOP
11873         and all its nested loops in SCoP.
11874         (loop_is_valid_scop): Returns true if LOOP and all its nests
11875         constitute a valid SCoP.
11876         (region_has_one_loop): Returns true of a region has only one loop.
11877         (add_scop): Add SCoP to the list of valid scops.  Removes an
11878         already existing scop if it intersects with or subsumed by this one.
11879         (harmful_stmt_in_region): Returns true if SCoP has any statment
11880         which cannot be represented by Graphite.
11881         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11882         (remove_subscops): Remove any SCoP from the list of already found
11883         SCoPs, if subsumed by S1.
11884         (intersects): Return true if region bounded by SCoPs S1 and S2
11885         intersect.
11886         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11887         * graphite.c (print_graphite_scop_statistics):
11888         (print_graphite_statistics): Print SCoP info while debugging.
11889         (graphite_initialize): Early exit in case number of loops in a
11890         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11891         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11892         (graphite_finalize):
11893         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11894         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11895         (recompute_all_dominators): Recalculate POST_DOMINATORS.
11896         * tree-cfg.c (print_loops): Print the function name while printing
11897         loops.
11899 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11900             Sebastian Pop  <s.pop@samsung.com>
11902         PR tree-optimization/67700
11903         * graphite-sese-to-poly.c (parameter_index_in_region): Call
11904         invariant_in_sese_p_rec.
11905         (extract_affine): Same.
11906         (rewrite_cross_bb_scalar_deps): Call update_ssa.
11907         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
11908         * sese.h (invariant_in_sese_p_rec): Declare.
11910 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
11912         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11914 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
11916         Revert:
11917         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11918                     Jiong Wang  <jiong.wang@arm.com>
11920         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11921         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11922         (REG_CLASS_NAMES): Likewise.
11923         (REG_CLASS_CONTENTS): Likewise.
11924         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11925         (aarch64_register_move_cost): Likewise.
11926         (aarch64_load_symref_appropriately): Invoke the new added pattern if
11927         possible.
11928         * config/aarch64/constraints.md (Uc0): New constraint.
11930 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
11932         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11934 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
11936         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11937         SECTION_EXCLUDE in XO mapping class.
11939 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
11941         PR target/54236
11942         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11943         and handle ne and eq codes.
11944         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11945         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
11946         CONST_INT_P.  Use reverse_condition.
11947         (sh_split_treg_set_expr): Likewise.
11949 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
11951         * config/arm/types.md (type): Add rotate_imm.
11952         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11953         ROR immediate case.
11954         (*rorsi3_insn_uxtw): Likewise.
11955         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11956         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11957         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11959 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11961         PR rtl-optimization/67481
11962         * ifcvt.c (contains_ccmode_rtx_p): New function.
11963         (insn_valid_noce_process_p): Use it.
11965 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11967         PR rtl-optimization/67456
11968         PR rtl-optimization/67464
11969         PR rtl-optimization/67465
11970         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11971         move in the mode of x.  Handle combination of complex and simple
11972         block pairs as well as the case when one is empty.
11974 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11976         * doc/gimple.texi: Update references to gimple_statement_base.
11977         * gdbhooks.py: Likewise.
11978         * gimple.h: Likewise.
11980 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11982         * config/sparc/driver-sparc.c: map LEON to leon3
11984 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11986         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11987           and make it inverse to change default
11988         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11989           supervisor mode
11990         * doc/invoke.texi: Document change of default
11992 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11994         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11995         true on %f0 for a target without FPU.
11996         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11997         without FPU.
11998         (untyped_return): Do not load %f0 for a target without FPU.
12000 2015-09-28  Andrew Pinski  <apinski@cavium.com>
12002         * config/aarch64/aarch64.md (prefetch):
12003         Change the predicate of operand 0 to register_operand.
12005 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
12007         * config/i386/predicates.md (register_sse4nonimm_operand): New
12008         predicate.
12009         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12010         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12011         Use register_sse4nonimm_operand as operand 0 predicate.
12012         (*vec_extractv8hi_sse2): Remove insn pattern.
12013         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12014         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12016 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
12017             Kaz Kojima  <kkojima@gcc.gnu.org>
12019         PR target/67391
12020         * config/sh/sh-protos.h (sh_lra_p): Declare.
12021         * config/sh/sh.c (sh_lra_p): Make non-static.
12022         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12023         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
12024         Expand into addsi3_scr if operands[2] if needed.
12025         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
12026         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
12027         (addsi3_scr, *addsi3): New insn_and_split patterns.
12029 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
12031         PR rtl-optimization/64164
12032         PR tree-optimization/67312
12033         PR middle-end/67340
12034         PR middle-end/67490
12035         PR bootstrap/67597
12036         * cfgexpand.c (parm_in_stack_slot_p): Remove.
12037         (ssa_default_def_partition): Remove.
12038         (get_rtl_for_parm_ssa_default_def): Remove.
12039         (set_rtl): Check that RTL assignments match expectations.
12040         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
12041         default def location for params and results.  Record SSA names
12042         or types in REG and MEM attrs, respectively.
12043         (set_parm_rtl): New.
12044         (expand_one_ssa_partition): Drop logic that assigned MEMs with
12045         unassigned addresses.
12046         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12047         deferred stack alloc vars.
12048         (expand_used_vars): Skip partitions holding parm default defs.
12049         Move adjust_one_expanded_partition_var loop...
12050         (pass_expand::execute): ... here.  Drop redundant assert.
12051         Adjust comments before the final loop over all ssa names.
12052         Require assigned rtl of parms and results to match exactly.
12053         Reset its attributes to match them, not any other variables in
12054         the same partition.
12055         (expand_debug_expr): Use entry value for PARM's default defs
12056         only iff they have zero nondebug uses.
12057         * cfgexpand.h (parm_in_stack_slot_p): Remove.
12058         (get_rtl_for_parm_ssa_default_def): Remove.
12059         (set_parm_rtl): Declare.
12060         * doc/invoke.texi: Improve wording.
12061         * explow.c (promote_decl_mode): Fix promote_function_mode for
12062         result decls not by reference.
12063         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12064         bypass TYPE_MODE to get the actual vector mode.
12065         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
12066         2015-08-19's changes as follows.  Drop include of
12067         basic-block.h and df.h.
12068         (rtl_for_parm): Remove.
12069         (maybe_reset_rtl_for_parm): Remove.
12070         (parm_in_unassigned_mem_p): Remove.
12071         (use_register_for_decl): Add logic for RESULT_DECLs matching
12072         assign_parms' behavior.
12073         (split_complex_args): Revert.
12074         (assign_parms_augmented_arg_list): Revert.  Add comment
12075         referencing the logic above.
12076         (assign_parm_adjust_stack_rtl): Revert.
12077         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
12078         of SET_DECL_RTL.  Set up a REG if the parm demands so.
12079         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
12080         calls into a single set_parm_rtl.  Set up a temporary RTL
12081         temporarily for expand_assignment.
12082         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
12083         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
12084         (assign_bounds): Revert.
12085         (assign_parms): Revert.  Use set_parm_rtl.
12086         (allocate_struct_function): Relayout result and parms of
12087         non-abstruct functions.
12088         (expand_function_start): Revert.  Use set_parm_rtl.  If the
12089         result is not a hard reg, create a pseudo from the promoted
12090         mode of the default def.  Promote static chain mode.
12091         * tree-outof-ssa.c (remove_ssa_form): Drop unused
12092         partition_has_default_def.  Set up
12093         partitions_for_parm_default_defs.
12094         (finish_out_of_ssa): Remove partition_has_default_def.
12095         Release partitions_for_parm_default_defs.
12096         * tree-outof-ssa.h (struct ssaexpand): Remove
12097         partition_has_default_def.  Add
12098         partitions_for_parm_default_defs.
12099         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12100         stor-layout.h.
12101         (build_ssa_conflict_graph): Fix conflict-detection of default
12102         defs of even unused default defs of params and results.
12103         (for_all_parms): New.
12104         (create_default_def): New.
12105         (register_default_def): New.
12106         (coalesce_with_default): New.
12107         (create_outofssa_var_map): Create default defs for all parms
12108         and results, and register their partitions.  Add GIMPLE_RETURN
12109         operands as coalesce candidates with results.  Add default
12110         defs of each parm or result as coalesce candidates with its
12111         other defs.  Mark each result def, and each default def of
12112         parms, as used_in_copy.
12113         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
12114         with the ssa names, even anonymous ones.  Drop
12115         parm_in_stack_slot_p calls.  Require same signedness and
12116         alignment.
12117         (coalesce_ssa_name): Add coalesce candidates for all defs of
12118         each parm and result, even unused ones.
12119         (parm_default_def_partition_arg): New type.
12120         (set_parm_default_def_partition): New.
12121         (get_parm_default_def_partitions): New.
12122         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12123         * tree-ssa-live.c (partition_view_init): Regard unused defs of
12124         parms and results as used.
12125         (verify_live_on_entry): Don't error out just because they're
12126         not live.
12128 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
12130         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12131         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12132         (output_fde): Don't output length for debug_frame on AIX.
12133         (output_call_frame_info): Don't output length for debug_frame on AIX.
12134         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12135         HAVE_XCOFF_DWARF_EXTRAS.
12136         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12137         HAVE_XCOFF_DWARF_EXTRAS.
12138         (output_compilation_unit_header): Don't output length on AIX.
12139         (output_pubnames): Don't output length on AIX.
12140         (output_aranges): Delete argument. Compute length locally. Don't
12141         output length on AIX.
12142         (output_line_info): Don't output length on AIX.
12143         (dwarf2out_finish): Don't compute aranges_length.
12144         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12145         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12146         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12147         symbol decoration for AIX.
12148         (rs6000_xcoff_debug_unwind_info): New.
12149         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12150         for SECTION_DEBUG.
12151         (rs6000_xcoff_declare_function_name): Emit different
12152         .function pseudo-op when DWARF2_DEBUG. Don't call
12153         xcoffout_declare_function for DWARF2_DEBUG.
12154         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12155         Redefine.
12156         * config/rs6000/aix71.h: New.
12157         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12158         locations support.
12159         * configure: Regenerate.
12160         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12161         DWARF support.
12163 2015-09-26  Jeff Law  <law@redhat.com>
12165         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12166         behaviour.
12167         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12168         behaviour.
12170         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12171         behaviour
12173         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12174         undefined behaviour.
12176         * config/cris/cris.md (asrandb): Fix left shift undefined
12177         behaviour.
12178         (asrandw): Likewise.
12180 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
12182         PR target/61578
12183         * lra-constarints.c (match_reload): Check presence of the input pseudo
12184         in the output operand.
12186 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12188         * doc/invoke.texi (-fsanitize): Minor wording tweak.
12190 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12192         * doc/invoke.texi (-fsanitize): Update URLs.
12194 2015-09-25  Teresa Johnson  <tejohnson@google.com>
12196         * opts.c (finish_options): Unset -freorder-blocks-and-partition
12197         if not using profile.
12199 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12201         PR pretty-print/67567
12202         * pretty-print.c (pp_string): Add gcc_checking_assert.
12203         * pretty-print.h (output_buffer_append_r): Likewise.
12205 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
12207         PR target/67675
12208         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12209         addr2 individually.  Don't emit logical or insn if one is known to
12210         be aligned approriately.
12211         (sh_expand_cmpnstr): Likewise.
12213 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
12215         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12216         __builtin_aarch64_fp[sc]r arguments into a register.
12218 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
12220         * config.gcc (x86_archs): Replace lakemount with lakemont.
12221         (with_cpu): Likewise.
12222         (with_arch): Likewise.
12223         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12224         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
12225         __tune_lakemount__ with __tune_lakemont__.
12226         * config/i386/i386.c (lakemount_cost): Renamed to ...
12227         (lakemont_cost): This.
12228         (m_LAKEMOUNT): Renamed to ...
12229         (m_LAKEMONT): This.
12230         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12231         (processor_target_table): Replace "lakemount" with "lakemont".
12232         (processor_alias_table): Likewise.
12233         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12234         PROCESSOR_LAKEMONT.
12235         (ix86_adjust_cost): Likewise.
12236         (ia32_multipass_dfa_lookahead): Likewise.
12237         * config/i386/i386.h (processor_type): Likewise.
12238         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12239         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
12240         Lakemount with Lakemont.
12242 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
12244         * config.gcc (x86_archs): Replace iamcu with lakemount.
12245         (with_cpu): Likewise.
12246         (with_arch): Likewise.
12247         * doc/invoke.texi: Likewise.
12248         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12249         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
12250         __tune_iamcu__ with __tune_lakemount__.
12251         * config/i386/i386.c (iamcu_cost): Renamed to ...
12252         (lakemount_cost): This.
12253         (m_IAMCU): Renamed to ...
12254         (m_LAKEMOUNT): This.
12255         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12256         (processor_target_table): Replace "iamcu" with "lakemount".
12257         (processor_alias_table): Likewise.
12258         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12259         PROCESSOR_LAKEMOUNT.
12260         (ix86_adjust_cost): Likewise.
12261         (ia32_multipass_dfa_lookahead): Likewise.
12262         * config/i386/i386.h (processor_type): Likewise.
12263         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12265 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
12267         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12268         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12269         Declare.
12270         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12271         (pa_expand_compare_and_swap_loop): New.
12272         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12273         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12274         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12275         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12276         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12277         Revise.
12279 2015-09-24  Michael Collison  <michael.collison@linaro.org>
12281         PR other/57195
12282         * read-md.c (read_name): Allow mode iterators inside angle
12283         brackets in rtl expressions.
12285 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
12287         PR target/61578
12288         * ira-color.c (update_allocno_cost): Add parameter.
12289         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
12290         parameter.
12292 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12294         PR driver/67640
12295         * opts-common.c (prune_options): Discard all -fdiagnostics-color
12296         but the last one, which is moved to the front to be processed
12297         first.
12298         * opts.c (enable_warning_as_error): Reject options that do not
12299         control warnings.
12301 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12303         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12305 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12307         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12308         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12309         (aarch64_cannot_force_const_mem): Likewise.
12310         (aarch64_classify_address): Likewise.
12311         (aarch64_classify_symbolic_expression): Likewise.
12312         (aarch64_print_operand): Likewise.
12313         (aarch64_classify_symbol): Likewise.
12314         (aarch64_mov_operand_p): Likewise.
12315         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12316         (aarch64_mov_operand): Likewise.
12318 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
12320         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12321         for info->spe_gp_size.
12323 2015-09-24  Richard Biener  <rguenther@suse.de>
12325         PR lto/67699
12326         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12327         abstract origins.
12329 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
12331         * tree-object-size.c (plus_stmt_object_size)
12332         (cond_expr_object_size): Change the formal parameters from gimple
12333         to gimple *.
12334         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12335         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12336         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12338 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12340         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12341         Check for ld -type pie on Solaris 11.x and 12.
12342         * configure: Regenerate.
12343         * config.in: Regenerate.
12345         * gcc.c (LD_PIE_SPEC): Allow redefinition.
12347         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12348         (STARTFILE_SPEC): Use it.
12349         (ENDFILE_CRTEND_SPEC): Define.
12350         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12351         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12352         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12353         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12354         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12355         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12356         (ENDFILE_ARCH_SPEC): Define.
12357         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12359 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12361         * configure.ac (gcc_cv_solaris_crts): New test.
12362         * configure. Regenerate.
12363         * config.in: Regenerate.
12364         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12365         HAVE_SOLARIS_CRTS variant.
12367 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12369         * tree-inline.h (count_insns_seq): Delete prototype.
12370         (estimate_num_insns_seq): Define prototype.
12371         * tree-inline.c (count_insns_seq): Delete.
12372         (estimate_num_insns_seq): Remove static qualifier.
12373         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12374         with estimate_num_insns_seq.
12376 2015-09-24  Richard Biener  <rguenther@suse.de>
12378         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12379         members.
12380         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12381         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
12382         offset.
12383         (ao_ref_init_from_vn_reference): Record clique and base in the
12384         built base.
12385         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12387 2015-09-24  Richard Biener  <rguenther@suse.de>
12389         PR tree-optimization/48885
12390         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12391         as not including any restrict tags from other pointers.
12393 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12395         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12396         character when appending to offload_targets.
12398         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12399         offload targets by commas, not colons.
12400         * config.in: Regenerate.
12401         * configure: Likewise.
12402         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12403         instead of setting up the default offload targets here...
12404         (process_command): ..., do it here.
12405         libgomp/
12406         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12407         targets are separated by commas.
12408         * config.h.in: Regenerate.
12410 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12411             Nathan Sidwell  <nathan@codesourcery.com>
12413         * omp-low.h (omp_reduction_init_op): Declare.
12414         * omp-low.c (omp_reduction_init_op): New, broken out of ...
12415         (omp_reduction_init): ... here.  Call it.
12416         * tree-parloops.c (initialize_reductions): Use
12417         omp_reduction_init_op.
12419 2015-09-23   Richard Biener  <rguenther@suse.de>
12421         PR middle-end/67662
12422         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12423         undefined overflow unless they will cancel out.
12425 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12427         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12428         insn emit.
12430 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12432         PR c/49655
12433         * opts.h (write_langs): Declare.
12434         * opts-global.c (write_langs): Make it extern.
12436 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
12438         PR target/67391
12439         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12440         overlapping regs when matching the pattern.
12442 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12444         * config/aarch64/aarch64-simd.md
12445         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12446         (aarch64_float_truncate_hi_v4sf_le): New.
12447         (aarch64_float_truncate_hi_v4sf_be): Likewise.
12449 2015-09-23  Richard Biener  <rguenther@suse.de>
12451         * tree-ssa-structalias.c (intra_create_variable_infos): Build
12452         representatives for all restrict qualified pointer destinations.
12454 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12456         * config/i386/i386.md (define_code_attr mshift): New.
12457         (define_mode_iterator SWI1248_AVX512BW): Rename ...
12458         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12459         only.
12460         (define_insn "*k<logic><mode>"): Use new iterator name.
12461         (define_insn "*<mshift><mode>3"): New.
12463 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
12465         PR middle-end/67649
12466         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12467         mark the block as accessible.
12469 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
12471         * function.c (thread_prologue_and_epilogue_insns): Delete
12472         orig_entry_edge argument to try_shrink_wrapping.
12473         * shrink-wrap.c (can_get_prologue): New function.
12474         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12475         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
12476         can_get_prologue where needed.  Remove code that finds a single
12477         edge for the prologue.  Remove code that tests if any reg clobbered
12478         by the prologue is live on the prologue edge.  Remove code that finds
12479         the new prologue edge after duplicating blocks.  Make a new prologue
12480         block and edge.
12481         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12483 2015-09-22  Jeff Law  <law@redhat.com>
12485         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12486         behavior.
12488 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
12490         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
12491         -Wtemplates, -Wnamespaces): Document.
12493 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12495         PR tree-optimization/67671
12496         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12497         pointer references as restrict.
12499 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
12501         * config/nios2/nios2.c (nios2_legitimize_address): When handling
12502         'reg + reloc' cases, allow first operand to be non-REG, and use
12503         force_reg() to enforce address pattern.
12505 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
12507         PR target/67480
12508         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12509         (define_mode_iterator VI12_AVX_AVX512F): New.
12510         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12511         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12512         (define_insn "*<code><mode>3"): ... Into new pattern using
12513         VI12_AVX_AVX512F iterators without masking.
12515 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12517         * config.gcc: Support "skylake-avx512".
12518         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12519         PROCESSOR_SKYLAKE_AVX512.
12520         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12521         (processor_target_table): Add "skylake-avx512".
12522         (PTA_SKYLAKE_AVX512): Define.
12523         (ix86_option_override_internal): Add "skylake_avx512".
12524         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12525         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12526         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12527         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12528         * doc/invoke.texi (skylake-avx512): New.
12530 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12532         * config/i386/i386.md (define_insn "kunpckhi"): Fix
12533         operand in pattern.
12534         (define_insn "kunpcksi"): Ditto.
12535         (define_insn "kunpckdi"): Ditto.
12537 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12539         * config/i386/i386.md (define_split not/xor SWI1248x): Use
12540         iterator instead of fixed modes.
12542 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12544         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12545         Adjust declaration.
12546         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12547         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
12548         out_result.  Update to support update-fetch operations.
12549         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12550         Adjust for change to aarch64_gen_atomic_ldop.
12551         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12552         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12553         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12554         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12555         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12557 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12559         * config/aarch64/aarch64-protos.h
12560         (aarch64_atomic_ldop_supported_p): Declare.
12561         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12562         (enum aarch64_atomic_load_op_code): New.
12563         (aarch64_emit_atomic_load_op): New.
12564         (aarch64_gen_atomic_ldop): Update to support load-operate
12565         patterns.
12566         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12567         to an expander.
12568         (aarch64_atomic_<atomic_optab><mode>): New.
12569         (aarch64_atomic_<atomic_optab><mode>_lse): New.
12570         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12571         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12572         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12574 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12576         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12577         (UNSPECV_ATOMIC_LDOP_OR): New.
12578         (UNSPECV_ATOMIC_LDOP_BIC): New.
12579         (UNSPECV_ATOMIC_LDOP_XOR): New.
12580         (UNSPECV_ATOMIC_LDOP_PLUS): New.
12581         (ATOMIC_LDOP): New.
12582         (atomic_ldop): New.
12583         (aarch64_atomic_load<atomic_ldop><mode>): New.
12585 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12587         * config/aarch64/aarch64.md
12588         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12589         pattern.
12591 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12593         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12594         Declare.
12595         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12596         (aarch64_gen_atomic_ldop): New.
12597         (aarch64_split_atomic_op): Fix whitespace and add a comment.
12598         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12599         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12600         (atomic_exchange<mode>): Replace with an expander.
12601         (aarch64_atomic_exchange<mode>): New.
12602         (aarch64_atomic_exchange<mode>_lse): New.
12603         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12604         (aarch64_atomic_swp<mode>): New.
12606 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12608         * tree-inline.c (expand_call_inline): Use inform for extra note.
12609         Do not give a note with UNKNOWN_LOCATION.
12610         Replace input_location with gimple_location (stmt).
12611         Use true/false instead of TRUE/FALSE.
12613 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12615         PR tree-optimization/67666
12616         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12617         with single field non-conservative.
12619 2015-09-21  David S. Miller  <davem@davemloft.net>
12621         PR/67622
12622         Revert:
12623         2015-09-11  David S. Miller  <davem@davemloft.net>
12625         * config/sparc/constraints.md: Make "U" constraint a real register
12626         constraint.
12627         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12628         (D_MODES, DF_MODES): Add missing cast.
12629         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12630         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12631         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12632         cost to 8.
12633         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12634         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12635         provide these insn when flag_pic.
12637         2015-09-17  David S. Miller  <davem@davemloft.net>
12639         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12640         Declare.
12641         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12642         function.
12643         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12644         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12645         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12646         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12647         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12648         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12649         provide when flag_pic.
12651 2015-09-21  Jeff Law  <law@redhat.com>
12653         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12654         behavior.
12656 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12658         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12660 2015-09-21  Richard Biener  <rguenther@suse.de>
12662         * passes.c (rest_of_decl_compilation): Do not call
12663         dwarf2out_early_global_decl for aliases.
12665 2015-09-21  Richard Biener  <rguenther@suse.de>
12667         PR debug/67664
12668         * dwarf2out.c (add_location_or_const_value_attribute): Remove
12669         attribute parameter.  Early exit if either DW_AT_const_value
12670         or DW_AT_location are present already.
12671         (gen_variable_die): Adjust caller.
12672         (dwarf2out_late_global_decl): Likewise.
12674 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12676         PR target/67657
12677         * config/sh/sh.c (sh_remove_overlapping_post_inc,
12678         sh_peephole_emit_move_insn): Add new functions.
12679         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12680         sh_peephole_emit_move_insn): Declere them.
12681         * config/sh/sh.md: Use them in various peephole2 patterns.
12683 2015-09-21  Richard Biener  <rguenther@suse.de>
12685         PR middle-end/67651
12686         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12687         address with -fno-delete-null-pointer-checks.
12689 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
12691         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12692         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12693         (reduc_uplus_v16qi): Remove.
12695         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12696         (reduc_<VEC_reduc_name>_v2df): Remove.
12697         (reduc_<VEC_reduc_name>_v4sf): Remove.
12698         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12700         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12701         gen_ function by removing * prefix.
12702         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12704 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12706         PR middle-end/60832
12707         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12708         Print i_bound without converting it to a tree.
12710 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
12712         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12713         operands[4] operands[5] swap with std::swap, removed tmp variable.
12714         (arm_evpc_neon_vzip): Replaced in0/in1 and
12715         out0/out1 swaps with std::swap, removed x variable.
12716         (arm_evpc_neon_vtrn): Replaced in0/int1 and
12717         out0/out1 swaos with std::swap, removed x variable.
12718         (arm_expand_vec_perm_const_1): Replaced
12719         d->op0/d->op1 swap with std::swap, removed x variable.
12720         (arm_evpc_neon_vuzp): Replaced in0/in1 and
12721         out0/out1 swaps with std::swap, removed x variable.
12723 2015-09-21  Jonathan Yong  <10walls@gmail.com>
12725         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12726         sysroot/usr/lib/32api for additional win32 libraries,
12727         fixes failing Cygwin bootstrapping.
12729 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12731         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12733 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12735         PR target/67126
12736         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12737         (*mov_t_msb_neg): Rewrite negc pattern.
12739 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12741         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12742         immediate generation code.
12744 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12746         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12747         redundant immediate generation code.
12749 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12751         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12752         (AARCH64_NUM_BITMASKS): Remove.
12753         (aarch64_bitmasks_cmp): Remove.
12754         (aarch64_build_bitmask_table): Remove.
12756 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12758         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12759         slow immediate matching loops with a faster algorithm.
12761 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12763         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12764         faster algorithm.
12766 2015-09-20  Jeff Law  <law@redhat.com>
12768         PR tree-optimization/47679
12769         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12770         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12771         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12772         (thread_through_normal_block): Use record_temporary_equivalences.
12774 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
12776         * coretypes.h (gimple): Change typedef to be a forward declaration.
12777         * gimple.h (gimple_statement_base): rename to gimple.
12778         * (all functions and types using gimple): Adjust.
12779         * *.[ch]: Likewise.
12781 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
12782             David Edelsohn  <dje.gcc@gmail.com>
12784         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12785         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12786         (EH_FRAME_THROUGH_COLLECT2): Define.
12787         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12788         (ASM_OUTPUT_DWARF_PCREL): Define.
12789         (ASM_OUTPUT_DWARF_DATAREL): Define.
12791 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
12793         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12794         of TARGET_ELF32.
12796 2015-09-18  Jeff Law  <law@redhat.com>
12798         PR tree-optimization/47679
12799         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
12800         it here ...
12801         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12802         object.  Update constructor.
12803         (pass_dominator::execute):  Corresponding chagnes to declaration
12804         and initialization of avail_exprs_stack.  Update constructor call
12805         for dom_opt_dom_walker object.
12806         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
12807         it down to children as needed.
12808         (record_equivalences_from_incoming_edge): Likewise.
12809         (eliminate_redundant_computations): Likewise.
12810         (record_equivalences_from_stmt): Likewise.
12811         (simplify_stmt_for_jump_threading): Likewise.
12812         (record_temporary_equivalences): Likewise.
12813         (optimize_stmt): Likewise.
12814         (dom_opt_dom_walker::thread_across_edge): Update access to
12815         avail_exprs_stack object and pass it to children as needed.
12816         (dom_opt_dom_walker::before_dom_children): Similarly.
12817         (dom_opt_dom_walker::after_dom_children): Similarly.
12818         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12819         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12820         Add avail_expr_stack argument.  Pass it to children as needed.
12821         (dummy_simplify): Likewise.
12822         (simplify_control_stmt_condition): Likewise.
12823         (thread_around_empty_blocks): Likewise.
12824         (thread_through_normal_block): Likewise.
12825         (thread_across_edge): Likewise.
12826         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12827         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12829         PR tree-optimization/47679
12830         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
12831         it here ...
12832         (dom_opt_dom_walker): New private member holding the const_and_copies
12833         object.  Update constructor.
12834         (pass_dominator::execute): Corresponding changes to declaration
12835         and initialization of const_and_copies.  Update constructor call
12836         for the dom_opt_dom_walker object.
12837         (record_temporary_equivalences): Accept const_and_copies argument
12838         pass it down to children as needed.
12839         (record_equality): Likewise.
12840         (record_equivalences_from_incoming_edge): Likewise.
12841         (cprop_into_successor_phis, optimize_stmt): Likewise.
12842         (eliminate_redundant_computations): Likewise.
12843         (dom_opt_dom_walker::thread_across_edge): Update access to
12844         const_and_copies object and pass it to children as needed.
12845         (dom_opt_dom_walker::before_dom_children): Similarly.
12846         (dom_opt_dom_walker::after_dom_children): Similarly.
12848         PR tree-optimization/47679
12849         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
12850         it into the avail_exprs_stack class.
12851         (pass_dominator::execute): Corresponding changes to declaration
12852         and initialization of avail_exprs.  Pass avail_exprs to
12853         dump_dominator_optimization_stats.
12854         (record_cond): Extract avail_exprs from avail_exprs_stack.
12855         (lookup_avail_expr): Similarly.
12856         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
12857         position in file.
12858         (dump_dominator_optimization_stats): Make static and prototype.
12859         Add argument for the hash table to dump.
12860         (debug_dominator_optimization_stats): Remove.
12861         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12862         prototype.
12863         (debug_dominator_optimization_stats): Similarly.
12864         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12865         "void" in prototype for pop_to_marker method.  Add accessor method
12866         for the underlying avail_exprs table.
12868         * tree-ssa-threadedge.c: Remove trailing whitespace.
12870 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
12872         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12873         unsigned.
12874         (pa_ldil_cint_p): Likewise.
12875         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12876         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12877         Update callers.
12878         * config/pa/pa.md: Likewise.
12880 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
12882         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12883         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12884         (diagnostic_show_locus): Likewise.
12885         (diagnostic_print_caret_line): Likewise.
12886         * diagnostic-show-locus.c: New file.
12888 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
12890         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12891         "back" parameter. Declare label in #if block.
12893 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
12895         PR middle-end/67619
12896         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12897         the address to a register.
12899 2015-09-18  Jeff Law  <law@redhat.com>
12901         PR tree-optimization/47679
12902         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12903         * tree-ssa-dom.c: Remove unnecessary header includes.
12904         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12905         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12906         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12907         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12908         (pass_phi_only_cprop::execute): Likewise.
12909         (make_pass_phi_only_cprop): Likewise.
12910         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
12911         uses of file scoped statics by passing the required objects
12912         as parameters wherever needed.
12914 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
12915             David Edelsohn  <dje.gcc@gmail.com>
12917         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12918         EH_FRAME_THROUGH_COLLECT2.
12919         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12920         DW_EH_PE_datarel.
12921         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12922         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
12923         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12924         * except.c (switch_to_exception_section): Use a read-only section
12925         even if EH_FRAME_SECTION_NAME is undefined.
12926         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12927         * collect2.c (write_c_file_stat): Provide dbase on AIX.
12928         (scan_prog_file): Don't export __dso_handle nor
12929         __gcc_unwind_dbase.
12930         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12931         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12932         (ASM_OUTPUT_DWARF_PCREL): Define.
12933         (ASM_OUTPUT_DWARF_DATAREL): Define.
12934         (EH_FRAME_THROUGH_COLLECT2): Define.
12935         (EH_FRAME_IN_DATA_SECTION): Delete.
12936         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12937         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12938         Declare.
12939         (rs6000_asm_output_dwarf_datarel): Declare.
12940         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12941         (rs6000_aix_asm_output_dwarf_datarel): New.
12942         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12943         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12944         (EH_FRAME_THROUGH_COLLECT2): Define.
12945         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12946         (EH_FRAME_THROUGH_COLLECT2): Define.
12947         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12948         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12949         (EH_FRAME_THROUGH_COLLECT2): New.
12950         (ASM_OUTPUT_DWARF_DATAREL): New.
12951         * doc/tm.texi: Regenerate.
12953 2015-09-18  Richard Biener  <rguenther@suse.de>
12955         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12956         we're in early phase.
12957         (schedule_generic_params_dies_gen): Likewise.
12958         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12959         work as possible, retaining unhandled cases.
12960         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12961         clear out generic_type_instances at the end.
12962         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12963         (dwarf2out_early_finish): ... here.  Do most of
12964         gen_remaining_tmpl_value_param_die_attribute here.
12966 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
12968         PR tree-optimization/67283
12969         * tree-sra.c (type_consists_of_records_p): Rename to...
12970         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12971         (completely_scalarize_record): Rename to...
12972         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12973         (scalarize_elem): New.
12974         (analyze_all_variable_accesses): Follow renamings.
12976 2015-09-18  Richard Biener  <rguenther@suse.de>
12978         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12979         in early-dwarf.
12981 2015-09-18  Richard Biener  <rguenther@suse.de>
12983         PR tree-optimization/66142
12984         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12985         treat MEM[&x] and x the same.
12986         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12987         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12988         when we simplified sth.
12989         (vn_reference_maybe_forwprop_address): Likewise.
12990         (valueize_refs_1): When we simplified through
12991         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12992         set valueized_anything to true.
12993         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12994         one ref kills the other instead of just a offset-based test.
12995         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12996         for the operand_equal_p test to compare bases and also compare
12997         sizes.
12999 2015-09-17  Christian Bruel  <christian.bruel@st.com>
13001         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13003 2015-09-17  Richard Henderson  <rth@redhat.com>
13005         PR libstdc++/65913
13006         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13007         pointers that encode the alignment of the object.
13009 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13011         PR rtl-optimization/66790
13012         * df-problems.c (LIVE): Amend documentation.
13014 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13016         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13017         and optabs-tree.o.
13018         (GTFILES): Replace optabs.c with optabs-libfunc.c.
13019         * genopinit.c (main): Add an include guard to insn-opinit.h.
13020         Protect the rtx_code parts with NUM_RTX_CODE.
13021         * optabs.h: Split parts out to...
13022         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13023         * optabs.c: Split parts out to...
13024         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13025         * cilk-common.c: Include optabs-query.h rather than optabs.h.
13026         * fold-const.c: Likewise.
13027         * target-globals.c: Likewise.
13028         * tree-if-conv.c: Likewise.
13029         * tree-ssa-forwprop.c: Likewise.
13030         * tree-ssa-loop-prefetch.c: Likewise.
13031         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13032         Remove unncessary include files.
13033         * tree-ssa-phiopt.c: Likewise.
13034         * tree-ssa-reassoc.c: Likewise.
13035         * tree-switch-conversion.c: Likewise.
13036         * tree-vect-data-refs.c: Likewise.
13037         * tree-vect-generic.c: Likewise.
13038         * tree-vect-loop.c: Likewise.
13039         * tree-vect-patterns.c: Likewise.
13040         * tree-vect-slp.c: Likewise.
13041         * tree-vect-stmts.c: Likewise.
13042         * tree-vrp.c: Likewise.
13043         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13044         rather than optabs.h.
13045         * expr.c: Include optabs-tree.h.
13046         * function.c: Likewise.
13048 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13050         PR middle-end/65958
13051         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13052         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13053         * config/arm/arm.c: Include common/common-target.h.
13054         (use_return_insn): Return 0 if the static chain register was saved
13055         above a non-APCS frame.
13056         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13057         (struct scratch_reg): New.
13058         (get_scratch_register_on_entry): New function.
13059         (release_scratch_register_on_entry): Likewise.
13060         (arm_emit_probe_stack_range): Likewise.
13061         (output_probe_stack_range): Likewise.
13062         (arm_expand_prologue): Factor out code dealing with the IP register
13063         for nested function and adjust it for stack checking.
13064         Invoke arm_emit_probe_stack_range if static builtin stack checking
13065         is enabled.
13066         (thumb1_expand_prologue): Sorry out if static builtin stack checking
13067         is enabled.
13068         (arm_expand_epilogue): Add the saved static chain register, if any, to
13069         the amount of pre-pushed registers to pop.
13070         (arm_frame_pointer_required): Return true if static stack checking is
13071         enabled and we want to catch the exception with the EABI unwinder.
13072         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13073         (UNSPEC_PROBE_STACK_RANGE): Likewise.
13074         * config/arm/arm.md (probe_stack): New insn.
13075         (probe_stack_range): Likewise.
13077 2015-09-17  Richard Biener  <rguenther@suse.de>
13079         * genmatch.c (parser::parse_expr): Improve error message
13080         for mis-placed flags.
13082 2015-09-17  Richard Biener  <rguenther@suse.de>
13084         * passes.c (rest_of_decl_compilation): Always call early_global_decl
13085         debug hook when we created a varpool node.
13086         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13087         dwarf2out_early_global_decl, when not just add location or
13088         value attributes to existing DIEs.
13090 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
13092         * config/aarch64/aarch64.md (copysigndf3): New.
13093         (copysignsf3): Likewise.
13095 2015-09-17  David S. Miller  <davem@davemloft.net>
13097         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13098         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13099         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13100         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13101         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13102         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13103         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13104         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13105         provide when flag_pic.
13107 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13109         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13110         object_allocator change.
13112 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13114         PR tree-optimization/66388
13115         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13116         (dump_iv): Dump no_overflow information.
13117         (alloc_iv): Initialize new field for struct iv.
13118         (mark_bivs): Count number of no_overflow bivs.
13119         (find_deriving_biv_for_expr, record_biv_for_address_use): New
13120         functions.
13121         (idx_find_step): Call new functions above.
13122         (add_candidate_1, add_candidate): New paramter.
13123         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13124         (get_computation_aff): Simplify convertion of cand for BIV.
13125         (get_computation_cost_at): Step cand's base if necessary.
13127 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13129         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13130         parameter.
13131         (tree_simplify_using_condition): Ditto.
13132         (simplify_using_initial_conditions): Ditto.
13133         (loop_exits_before_overflow): Pass new argument to function
13134         simplify_using_initial_conditions.  Remove case for type conversions
13135         simplification.
13136         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13137         parameter.
13138         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13139         in iv base using loop initial conditions.
13141 2015-09-16  Jeff Law  <law@redhat.com>
13143         PR tree-optimization/47679
13144         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13145         (free_all_edge_infos): Use it.
13146         (allocate_edge_info): Free preexisting edge info data.
13147         (pass_dominator::execute): Set up initial edge info structures.
13148         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13149         thread_across_edge.
13150         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13151         If non-null, then push/pop markers appropriately.
13152         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13153         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13154         thread-across_edge.
13156 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
13158         * config/ft32/ft32.c: Fix the memory address space predicate.
13160 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13162         PR target/67573
13163         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13164         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13166 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13168         * toplev.h (check_global_declaration): Remove declaration.
13169         * toplev.c (check_global_declaration): Move to ...
13170         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13171         (analyze_functions): Update call.
13173 2015-09-16  David S. Miller  <davem@davemloft.net>
13175         * lra-constraints.c (simplify_operand_subreg): Do not assume that
13176         lowpart of a SUBREG has offset zero.
13178 2015-09-16  Jeff Law  <law@redhat.com>
13180         PR tree-optimization/47679
13181         * tree-ssa-dom.c (enum expr_kind): Moved from here to
13182         tree-ssa-scopedtables.h.
13183         (struct hashable_expr, class expr_hash_elt): Likewise.
13184         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13185         Move associated methods into tree-ssa-scopedtables.c.
13186         (avail_expr_hash, initialize_expr_from_cond): Similarly.
13187         (hashable_expr_equal_p, add_expr_commutative): Likewise.
13188         (add_hashable_expr): Likewise.
13189         (record_cond): Delete element directly.
13190         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13191         private copy ctor and assignment operator methods.
13192         (expr_elt_hasher): Inline trivial methods.
13193         (initialize_expr_from_cond): Prototype.
13194         * tree-ssa-scopedtables.c: Add necessary includes, functions and
13195         methods that were previously in tree-ssa-dom.c.  Improve various
13196         comments.
13198 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
13200         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13202 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
13204         PR bootstrap/67587
13205         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13206         fixup_partitions.
13208 2015-09-16  Richard Biener  <rguenther@suse.de>
13210         PR middle-end/67253
13211         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13212         location of possibly shared trees.
13214 2015-09-16  Richard Biener  <rguenther@suse.de>
13216         PR middle-end/67271
13217         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13219 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
13221         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13222         offset and size computations instead of HOST_WIDE_INT.
13224 2015-09-16  Richard Biener  <rguenther@suse.de>
13226         PR middle-end/67442
13227         * fold-const.c (extract_muldiv_1): Properly extend multiplication
13228         result before builting a tree via wide_int_to_tree.
13230 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
13232         * Makefile.in: Add memory-block.cc
13233         (pool_allocator::initialize): Use fixed block size.
13234         (pool_allocator::release): Use memory_block_pool.
13235         (pool_allocator::allocate): Likewise.
13236         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13237         object pools.
13238         * cfg.c (initialize_original_copy_tables): Likewise.
13239         * cselib.c (elt_list_pool, elt_loc_list_pool,
13240         cselib_val_pool): Likewise.
13241         * df-problems.c (df_chain_alloc): Likewise.
13242         * df-scan.c (df_scan_alloc): Likewise.
13243         * dse.c (cse_store_info_pool, rtx_store_info_pool,
13244         read_info_type_pool, insn_info_type_pool, bb_info_pool,
13245         group_info_pool, deferred_change_pool): Likewise.
13246         * et-forest.c (et_nodes, et_occurrences): Likewise.
13247         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13248         ipcp_agg_lattice_pool): Likewise.
13249         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13250         * ipa-profile.c (histogram_pool): Likewise.
13251         * ipa-prop.c (ipa_refdesc_pool): Likewise.
13252         * ira-build.c (live_range_pool, allocno_pool, object_pool,
13253         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13254         * ira-color.c (update_cost_record_pool): Likewise.
13255         * lra-lives.c (lra_live_range_pool): Likewise.
13256         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13257         * memory-block.cc: New file.
13258         * memory-block.h: New file.
13259         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13260         * sched-deps.c (sched_deps_init): Likewise.
13261         * sel-sched-ir.c (sched_lists_pool): Likewise.
13262         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13263         * tree-sra.c (access_pool): Likewise.
13264         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13265         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13266         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13267         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13268         * tree-ssa-strlen.c (strinfo_pool): Likewise.
13269         * tree-ssa-structalias.c (variable_info_pool): Likewise.
13270         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13271         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13273 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13275         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13276         definition.
13277         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13278         call0 ABI.
13280 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13282         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13283         to pass TLS call argument, according to current ABI.
13284         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13285         callx0 for TLS call, according to current ABI.
13287 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13289         * tree-eh.c (lower_try_finally_dup_block): Clear location information
13290         on stack restore statements.
13291         (decide_copy_try_finally): Do not consider a stack restore statement as
13292         coming from sources.
13294 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
13296         * config/alpha/alpha.c (alpha_expand_block_clear): Use
13297         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13299 2015-09-15  Jeff Law  <law@redhat.com>
13301         PR tree-optimization/47679
13302         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13303         methods and private members.
13304         (avail_exprs_stack): Similarly.  Change type of global
13305         from a pair of expr_hash_elt_t to the new class.
13306         (expr_elt_hasher::hash): Corresponding changes.
13307         (expr_elt_hasher::equal): Similarly.
13308         (avail_expr_hash): Similarly.
13309         (pass_dominator::execute): Similarly.
13310         (dom_opt_dom_walker::thread_across_edge): Similarly.
13311         (record_cond): Similarly.
13312         (dom_opt_dom_walker::before_dom_children): Similarly.
13313         (dom_opt_dom_walker::after_dom_children): Similarly.
13314         (lookup_avail_expr): Likewise.
13315         (initialize_hash_element): Now a expr_hash_elt constructor.
13316         (initialize_hash_element_from_expr): Similarly.
13317         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13318         (free_expr_hash_elt): Call dtor for the element.
13319         (remove_local_expressions_from_table): Now the "pop_to_marker"
13320         method in the available_exprs_stack class.
13321         (avail_expr_stack::record_expr): Method factored out.
13322         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13323         Fix formatting.
13324         (hashable_expr_equal_p): Fix formatting.
13326 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
13328         * input.h (location_get_source_line): Drop "expanded_location"
13329         param in favor of a file and line number.
13330         * input.c (location_get_source_line): Likewise.
13331         (dump_location_info): Update for change in signature of
13332         location_get_source_line.
13333         * diagnostic.c (diagnostic_print_caret_line): Likewise.
13335 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13337         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13338         Bump to 4KB for SJLJ exceptions.
13339         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
13340         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13341         * doc/tm.texi: Regenerate.
13343 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13345         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13346         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
13347         Update prototype.
13349 2015-09-15  Richard Biener  <rguenther@suse.de>
13351         PR tree-optimization/67470
13352         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13353         structure for PHI hoisting by inserting a forwarder block
13354         if appropriate.
13356 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13358         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13359         (arm_option_print): New function.
13361 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13363         PR target/52144
13364         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13365         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13366         Remove flags parameter.
13367         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13368         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13369         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13370         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13371         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13372         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13373         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13374         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13376 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13378         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13380         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13381         AARCH64_VALID_SIMD_DREG_MODE.
13383 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13385         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13386         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13387         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13388         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13389         aarch64_ld4_lane<mode>): Combine together, making...
13390         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13391         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13392         aarch64_st4_lane<mode>): Combine together, making...
13393         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13394         * config/aarch64/iterators.md (nregs): Add comment.
13396 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13398         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13399         Change operand mode from <V_TWO_ELEM> to BLK.
13400         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13401         (aarch64_vec_store_lanesoi_lane<mode): Likewise
13402         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13403         (aarch64_ld2_lane<mode>): Likewise.
13404         (aarch64_st2_lane<VQ:mode>): Likewise.
13405         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13407 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13409         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13410         Change operand mode from <V_FOUR_ELEM> to BLK.
13411         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13412         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13413         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13414         (aarch64_ld4_lane<mode>): Likewise.
13415         (aarch64_st4_lane<mode>): Likewise.
13416         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13418 2015-09-15  Richard Biener  <rguenther@suse.de>
13420         PR middle-end/67563
13421         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13422         transfer EH info from old to new stmt.
13423         (replace_call_with_value): Likewise.
13424         (replace_call_with_call_and_fold): Likewise.
13425         (gimple_fold_builtin_memory_op): Likewise.
13426         (gimple_fold_builtin_memset): Likewise.
13427         (gimple_fold_builtin_stpcpy): Likewise.
13428         (gimple_fold_call): Likewise.
13430 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13432         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13433         comment.
13434         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13435         (aarch64_simd_intEI_type_node): Likewise.
13436         (aarch64_simd_builtin_std_type): Remove EImode case.
13437         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13438         * config/aarch64/aarch64-modes.def: Remove EImode.
13440 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13442         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13443         Change operand mode from <V_THREE_ELEM> to BLK.
13444         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13445         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13446         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13447         (aarch64_ld3_lane<mode>): Likewise.
13448         (aarch64_st3_lane<mode>): Likewise.
13449         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13451 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13453         * config/aarch64/aarch64-simd.md
13454         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13455         Change all TImode operands to BLKmode.
13456         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13457         Change all EImode operands to BLKmode.
13458         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13459         Change all OImode operands to BLKmode.
13461         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13462         and call set_mem_size.
13463         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13465         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13467 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13469         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13470         to...
13471         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13473         (vec_store_lanesci_lane<mode>): Rename to...
13474         (aarch64_vec_store_lanesci_lane<mode>): ...this.
13476         (vec_store_lanesxi_lane<mode>): Rename to...
13477         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13479         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13480         aarch64_st4_lane<mode>): Follow renaming.
13482 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13484         * config/s390/s390.c (s390_const_operand_ok): Add missing
13485         brackets.
13487 2015-09-15  Richard Biener  <rguenther@suse.de>
13489         PR lto/67568
13490         * lto-streamer.h (lto_location_cache::current_sysp): Properly
13491         initialize.
13492         * lto-streamer-out.c (clear_line_info): Likewise.
13494 2015-09-15  Richard Biener  <rguenther@suse.de>
13496         * doc/match-and-simplify.texi: Fix wording.
13498 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
13500         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13501         unnecessary type conversion in op1.
13503 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13505         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13506         (dup_block_and_redirect): Delete function.
13507         (can_dup_for_shrink_wrapping): New function.
13508         (fix_fake_fallthrough_edge): New function.
13509         (try_shrink_wrapping): Rewrite function.
13510         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13512 2015-09-14  Rich Felker  <dalias@libc.org>
13514         * configure.ac: Change target pattern for sh TLS support
13515         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13516         * configure: Regenerate.
13518 2015-09-14  Jeff Law  <law@redhat.com>
13520         PR tree-optimization/47679
13521         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13522         type rather than void *.
13524 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13526         PR fortran/67460
13527         * diagnostic.c (diagnostic_initialize): Do not set
13528         some_warnings_are_errors.
13529         (diagnostic_finish): Use DK_WERROR count instead.
13530         (diagnostic_report_diagnostic): Do not set
13531         some_warnings_are_errors.
13532         * diagnostic.h (struct diagnostic_context): Remove
13533         some_warnings_are_errors.
13535 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
13537         * config/sparc/predicates.md (const_all_ones_operand): Use
13538         CONSTM1_RTX to simplify definition.
13540 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
13542         PR target/67061
13543         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13544         Handle call insns.
13546 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
13548         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13549         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13550         OPT_fshow_column to handled saved option cases.
13551         (append_compiler_options): Do not skip the above added options.
13553 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13555         PR target/63304
13556         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13557         nopcrelative_literal_loads.
13558         (aarch64_classify_address): Likewise.
13559         (aarch64_constant_pool_reload_icode): Define.
13560         (aarch64_secondary_reload): Handle secondary reloads for
13561         literal pools.
13562         (aarch64_override_options): Handle nopcrelative_literal_loads.
13563         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13564         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13565         Define.
13566         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13567         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13568         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13569         predicate.
13570         * doc/invoke.texi (mpc-relative-literal-loads): Document.
13572 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
13574         PR middle-end/67401
13575         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13576         sync_compare_and_swap_optab libcall to target_oval.
13578 2015-09-14  Marek Polacek  <polacek@redhat.com>
13580         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13581         value.
13582         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13584 2015-09-11  Mark Wielaard  <mjw@redhat.com>
13586         PR c/28901
13587         * toplev.c (check_global_declaration): Check and use
13588         warn_unused_const_variable.
13589         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13590         (-Wunused-variable): Remove non-constant. For C implies
13591         -Wunused-const-variable.
13592         (-Wunused-const-variable): New.
13594 2015-09-14  Richard Biener  <rguenther@suse.de>
13596         * doc/match-and-simplify.texi: Update for changed syntax
13597         of inner ifs and the new switch expression.
13599 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13601         * config/i386/haswell.md: New file describing Haswell pipeline.
13602         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13603         haswell-like processors.
13604         (ix86_reassociation_width): Increase reassociation width for 64-bit
13605         Haswell processor family.
13606         * config/i386/i386.md: Introduce haswell cpu and include new md file.
13608 2015-09-14  Richard Biener  <rguenther@suse.de>
13610         * doc/match-and-simplify.texi: Fixup some formatting issues
13611         and document the 's' flag.
13613 2015-09-13  Olivier Hainque  <hainque@adacore.com>
13614             Eric Botcazou  <ebotcazou@adacore.com>
13616         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13617         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
13618         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13619         (TARGET_CPU_gr5): Likewise.
13620         (TARGET_CPU_gr6): Likewise.
13621         (MULTILIB_DEFAULTS): Likewise.
13622         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13623         for mcpu=gr5 and mcpu=gr6.
13624         (MULTILIB_DIRNAMES): Adjust accordingly.
13626 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13628         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13629         (mem_ref_p): Likewise.
13630         (outermost_indep_loop): Adjust.
13631         (mem_ref_in_stmt): Likewise.
13632         (determine_max_movement): Likewise.
13633         (mem_ref_alloc): Likewise.
13634         (record_mem_ref_loc): Likewise.
13635         (set_ref_stored_in_loop): Likewise.
13636         (mark_ref_stored): Likewise.
13637         (gather_mem_refs_stmt): Likewise.
13638         (mem_refs_may_alias_p): Likewise.
13639         (for_all_locs_in_loop): Likewise.
13640         (struct rewrite_mem_ref_loc): Likewise.
13641         (rewrite_mem_refs): Likewise.
13642         (struct first_mem_ref_loc_1): Likewise.
13643         (first_mem_ref_loc): Likewise.
13644         (struct sm_set_flag_if_changed): Likewise.
13645         (execute_sm_if_changed_flag_set): Likewise.
13646         (execute_sm): Likewise.
13647         (hoist_memory_references):
13648         (struct ref_always_accessed): Likewise.
13649         (ref_always_accessed_p): Likewise.
13650         (refs_independent_p): Likewise.
13651         (record_dep_loop): Likewise.
13652         (ref_indep_loop_p_1): Likewise.
13653         (ref_indep_loop_p_2): Likewise.
13654         (ref_indep_loop_p): Likewise.
13655         (can_sm_ref_p): Likewise.
13656         (find_refs_for_sm): Likewise.
13657         (tree_ssa_lim_finalize): Likewise.
13659 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13661         * dwarf2out.c (dw_attr_ref): Remove typedef.
13662         (dw_line_info_ref): Likewise.
13663         (pubname_ref): Likewise.
13664         (dw_ranges_ref): Likewise.
13665         (dw_ranges_by_label_ref): Likewise.
13666         (comdat_type_node_ref): Likewise.
13667         (get_AT): Adjust.
13668         (get_AT_low_pc): Likewise.
13669         (get_AT_hi_pc): Likewise.
13670         (get_AT_string): Likewise.
13671         (get_AT_flag): Likewise.
13672         (get_AT_unsigned): Likewise.
13673         (get_AT_ref): Likewise.
13674         (get_AT_file): Likewise.
13675         (remove_AT): Likewise.
13676         (print_die): Likewise.
13677         (check_die): Likewise.
13678         (die_checksum): Likewise.
13679         (attr_checksum_ordered): Likewise.
13680         (struct checksum_attributes): Likewise.
13681         (collect_checksum_attributes): Likewise.
13682         (die_checksum_ordered): Likewise.
13683         (same_die_p): Likewise.
13684         (is_declaration_die): Likewise.
13685         (clone_die): Likewise.
13686         (clone_as_declaration): Likewise.
13687         (copy_declaration_context): Likewise.
13688         (break_out_comdat_types): Likewise.
13689         (copy_decls_walk): Likewise.
13690         (output_location_lists): Likewise.
13691         (external_ref_hasher::hash): Likewise.
13692         (optimize_external_refs_1): Likewise.
13693         (build_abbrev_table): Likewise.
13694         (size_of_die): Likewise.
13695         (unmark_all_dies): Likewise.
13696         (size_of_pubnames): Likewise.
13697         (output_die_abbrevs): Likewise.
13698         (output_die): Likewise.
13699         (output_pubnames): Likewise.
13700         (add_ranges_num): Likewise.
13701         (add_ranges_by_labels): Likewise.
13702         (add_high_low_attributes): Likewise.
13703         (gen_producer_string): Likewise.
13704         (dwarf2out_set_name): Likewise.
13705         (new_line_info_table): Likewise.
13706         (prune_unused_types_walk_attribs): Likewise.
13707         (prune_unused_types_update_strings): Likewise.
13708         (prune_unused_types): Likewise.
13709         (resolve_addr): Likewise.
13710         (optimize_location_lists_1): Likewise.
13711         (index_location_lists): Likewise.
13712         (dwarf2out_finish): Likewise.
13714 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13716         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13718 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13720         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13721         (dump_asserts_for): Adjust.
13722         (register_new_assert_for): Likewise.
13723         (process_assert_insertions): Likewise.
13724         (insert_range_assertions): Likewise.
13726 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13728         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13729         and remove typedef.
13730         (new_temp_expr_table): Adjust.
13731         (free_temp_expr_table): Likewise.
13732         (version_to_be_replaced_p): Likewise.
13733         (make_dependent_on_partition): Likewise.
13734         (add_to_partition_kill_list): Likewise.
13735         (remove_from_partition_kill_list): Likewise.
13736         (add_dependence): Likewise.
13737         (finished_with_expr): Likewise.
13738         (process_replaceable): Likewise.
13739         (kill_expr): Likewise.
13740         (kill_virtual_exprs): Likewise.
13741         (mark_replaceable): Likewise.
13742         (find_replaceable_in_bb): Likewise.
13743         (find_replaceable_exprs): Likewise.
13744         (debug_ter): Likewise.
13746 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13748         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13749         (struct btr_user): Rename from btr_user_s.
13750         (struct btr_def): Rename from btr_def_s.
13751         (find_btr_def_group): Adjust.
13752         (add_btr_def): Likewise.
13753         (new_btr_user): Likewise.
13754         (note_other_use_this_block): Likewise.
13755         (compute_defs_uses_and_gen): Likewise.
13756         (link_btr_uses): Likewise.
13757         (build_btr_def_use_webs): Likewise.
13758         (block_at_edge_of_live_range_p): Likewise.
13759         (btr_def_live_range): Likewise.
13760         (combine_btr_defs): Likewise.
13761         (move_btr_def): Likewise.
13762         (migrate_btr_def): Likewise.
13763         (migrate_btr_defs): Likewise.
13765 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13767         * var-tracking.c (shared_hash_def): Rename to shared_hash.
13768         (shared_hash): Remove typedef.
13769         (struct dataflow_set): Adjust.
13770         (shared_hash_unshare): Likewise.
13771         (dataflow_set_merge): Likewise.
13772         (vt_initialize): Likewise.
13773         (vt_finalize): Likewise.
13775 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13777         * var-tracking.c (struct location_chain): Rename from
13778         location_chain_def.
13779         (struct variable_part): Adjust.
13780         (variable_htab_free): Likewise.
13781         (unshare_variable): Likewise.
13782         (get_init_value): Likewise.
13783         (get_addr_from_local_cache): Likewise.
13784         (drop_overlapping_mem_locs): Likewise.
13785         (val_reset): Likewise.
13786         (struct variable_union_info): Likewise.
13787         (variable_union): Likewise.
13788         (find_loc_in_1pdv): Likewise.
13789         (insert_into_intersection): Likewise.
13790         (intersect_loc_chains): Likewise.
13791         (canonicalize_loc_order_check): Likewise.
13792         (canonicalize_values_mark): Likewise.
13793         (canonicalize_values_star): Likewise.
13794         (canonicalize_vars_star): Likewise.
13795         (variable_merge_over_cur): Likewise.
13796         (remove_duplicate_values): Likewise.
13797         (variable_post_merge_new_vals): Likewise.
13798         (variable_post_merge_perm_vals): Likewise.
13799         (find_mem_expr_in_1pdv): Likewise.
13800         (dataflow_set_preserve_mem_locs): Likewise.
13801         (dataflow_set_remove_mem_locs): Likewise.
13802         (variable_part_different_p): Likewise.
13803         (onepart_variable_different_p): Likewise.
13804         (find_src_set_src): Likewise.
13805         (dump_var): Likewise.
13806         (set_slot_part): Likewise.
13807         (clobber_slot_part): Likewise.
13808         (delete_slot_part): Likewise.
13809         (vt_expand_var_loc_chain): Likewise.
13810         (emit_note_insn_var_location): Likewise.
13811         (vt_finalize): Likewise.
13813 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13815         * dse.c (store_info_t): Remove typedef.
13816         (group_info_t): Likewise.
13817         (const_group_info_t): Likewise.
13818         (deferred_change_t): Likewise.
13819         (get_group_info): Adjust.
13820         (free_store_info): Likewise.
13821         (canon_address): Likewise.
13822         (clear_rhs_from_active_local_stores): Likewise.
13823         (record_store): Likewise.
13824         (replace_read): Likewise.
13825         (check_mem_read_rtx): Likewise.
13826         (scan_insn): Likewise.
13827         (remove_useless_values): Likewise.
13828         (dse_step1): Likewise.
13829         (dse_step2_init): Likewise.
13830         (dse_step2_nospill): Likewise.
13831         (scan_stores_nospill): Likewise.
13832         (scan_reads_nospill): Likewise.
13833         (dse_step3_exit_block_scan): Likewise.
13834         (dse_step3): Likewise.
13835         (dse_step5_nospill): Likewise.
13836         (dse_step6): Likewise.
13838 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13840         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13841         (alias_set_entry): Remove typedef.
13842         (alias_set_subset_of): Adjust.
13843         (alias_sets_conflict_p): Likewise.
13844         (init_alias_set_entry): Likewise.
13845         (get_alias_set): Likewise.
13846         (new_alias_set): Likewise.
13847         (record_alias_subset): Likewise.
13849 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
13851         * doc/install.texi (Downloading the source): Mark up
13852         contrib/download_prerequisites properly and drop leading "./".
13854 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13856         * config/arc/arc.h: Remove define of STRUCT_VALUE.
13857         * config/lm32/lm32.h: Likewise.
13858         * config/mep/mep.h: Likewise.
13859         * config/visium/visium.h: Likewise.
13860         * system.h: Poison STRUCT_VALUE macro.
13862 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
13864         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13865         CONSTANT_P operands.
13867 2015-09-11  David S. Miller  <davem@davemloft.net>
13869         * config/sparc/constraints.md: Make "U" constraint a real register
13870         constraint.
13871         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13872         (D_MODES, DF_MODES): Add missing cast.
13873         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13874         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13875         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13876         cost to 8.
13877         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13878         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13879         provide these insn when flag_pic.
13881 2015-09-11  Jeff Law  <law@redhat.com>
13883         PR tree-optimization/47679
13884         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13885         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13886         member with m_.  Update inline member functions as necessary.  Add
13887         toplevel comment.
13888         * tree-ssa-scopedtables.c: Update const_and_copies's member
13889         functions to use m_ prefix to access the stack.
13891 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13893         * graphite-optimize-isl.c (disable_tiling): Remove.
13894         (get_schedule_for_band): Do not use disable_tiling.
13895         (get_prevector_map): Delete function.
13896         (enable_polly_vector): Remove.
13897         (get_schedule_for_band_list): Remove dead code.
13899 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13901         * graphite-optimize-isl.c (get_tile_map): Refactor.
13902         (get_schedule_for_band): Same.
13903         (getScheduleForBand): Same.
13904         (get_prevector_map): Same.
13905         (get_schedule_for_band_list): Same.
13906         (get_schedule_map): Same.
13907         (get_single_map): Same.
13908         (apply_schedule_map_to_scop): Same.
13909         (optimize_isl): Same.
13911 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13913         PR target/63304
13914         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13915         (movtf): Delete.
13916         * config/aarch64/iterators.md (GPF_TF_F16): New.
13917         (GPF_F16): Delete.
13919 2015-09-10  Nathan Sidwell  <nathan@acm.org>
13921         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13922         (nvptx_reorg): Adjust comments.
13924 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
13926         PR bootstrap/67363
13927         * configure.ac: Check if setenv and unsetenv are declared.
13928         * configure: Rebuild.
13929         * config.in: Rebuild.
13930         * system.h: Declare setenv and unsetenv if not declared.
13932 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13934         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13935         commentary to simplify permute mask adjustment equation.
13936         (special_handling_values): Add SH_VPERM.
13937         (const_load_sequence_p): New function.
13938         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13939         the mask loaded from the constant pool.
13940         (adjust_vperm): New function.
13941         (handle_special_swappables): Call adjust_vperm.
13942         (dump_swap_insn_table): Handle SH_VPERM.
13944 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13946         * shrink-wrap.c (requires_stack_frame_p): Remove static.
13947         * shrink-wrap.h (requires_stack_frame_p): Put back.
13949 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13951         * reload1.c (elimination_costs_in_insn): Locally turn
13952         -Wmaybe-uninitialized into a warning.
13954 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
13956         * shrink-wrap.c (requires_stack_frame_p): Make static.
13957         (prepare_shrink_wrap): Likewise.
13958         (dup_block_and_redirect): Likewise.
13959         * shrink-wrap.h: Remove declarations of those functions.
13961 2015-09-10  Mark Wielaard  <mjw@redhat.com>
13963         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13965 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
13967         PR target/67506
13968         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13969         missing simplify_gen_subreg.
13971 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13973         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13974         the vector element is bigger than 64 bit.
13976 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13978         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13979         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13981 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13983         * config/s390/s390.c: Add V1TImode to constant pool modes.
13985 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13987         PR target/67439
13988         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13989         predicate.  Set predicable_short_it attr to "no".
13991 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
13993         PR rtl-optimization/67421
13994         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13995         left wide shift tranformation.
13997 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
13999         * common/config/arc/arc-common.c: Remove references to A5.
14000         * config/arc/arc-opts.h: Likewise.
14001         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14002         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14003         * config/arc/t-arc-newlib: Likewise.
14005 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
14007         * config/arc/arc.md (length): Fix attribute length for conditional
14008         executed instructions with long immediate.
14010 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14012         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14013         type for second alternative.
14015 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
14017         * doc/invoke.texi (Downloading GCC): Mention
14018         contrib/download_prerequisites script.
14020 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
14022         PR c++/67523
14023         * gimplify.c (gimplify_omp_for): If inner stmt is not found
14024         for combined loop, assert seen_error () and return GS_ERROR.
14026         PR middle-end/67521
14027         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14028         if decl is already in outer->variables.
14030         PR middle-end/67517
14031         * gimplify.c (gimplify_scan_omp_clauses): Instead of
14032         asserting that decl is not specified in octx->variables,
14033         break out of the loop if it is.
14035         PR c++/67514
14036         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14037         iterator is not explicitly determined, but is defined inside
14038         of the combined workshare region, handle it like if it has
14039         DECL_EXPR in OMP_FOR_PRE_BODY.
14041 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14043         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14044         (*cmp<mode>): Add assembler spacing.
14045         (setcc_int<mode>, set_cc_float<mode>): Likewise.
14046         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14047         level.
14048         (write_func_decl_from_insn): Refactor argument loops & comma emission.
14049         (nvptx_expand_call): Likewise.
14050         (nvptx_output_call_insn): Likewise.
14051         (nvptx_reorg_subreg): Add spacing.
14053 2015-09-09  Marek Polacek  <polacek@redhat.com>
14055         PR middle-end/67512
14056         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14057         for comparisons.
14059 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14061         PR c++/53184
14062         * doc/invoke.texi ([Wsubobject-linkage]): Document.
14064 2015-09-09  Tom de Vries  <tom@codesourcery.com>
14066         * params-list.h: Add missing copyright notice.
14068 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14070         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14071         sel_truesi, not andsi.
14073 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14075         * config/arm/arm.md (*subsi3_compare0): Rename to...
14076         (subsi3_compare0): ... This.
14077         (modsi3): New define_expand.
14078         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14079         when operand is power of 2.
14081 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14083         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14084         (*neg<mode>2_compare0): Rename to...
14085         (neg<mode>2_compare0): ... This.
14086         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14087         Move check for speed inside the if-then-elses.  Reflect
14088         CSNEG sequence in MOD by power of 2 case.
14090 2015-09-09  Alan Modra  <amodra@gmail.com>
14092         PR target/67378
14093         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14094         reload replacement for PRE_MODIFY address reg.
14096 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
14098         PR tree-optimization/53852
14099         * config.in: Regenerate.
14100         * configure: Regenerate.
14101         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14102         * graphite-optimize-isl.c (optimize_isl): Stop computation when
14103         PARAM_MAX_ISL_OPERATIONS is reached.
14104         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14105         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14106         result equal to isl_stat_ok as the status now can be isl_error_quota.
14107         (subtract_commutative_associative_deps): Same.
14108         (compute_deps): Same.
14110 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14111             Sebastian Pop  <s.pop@samsung.com>
14113         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14114         Return the parameter if it was saved in corresponding
14115         parameter_rename_map of the region.
14116         (copy_def): Copy def from sese region to the newly created region.
14117         (copy_internal_parameters): Copy all the internal parameters defined
14118         within a region to the newly created region.
14119         (graphite_regenerate_ast_isl): Copy parameters to the new region before
14120         translating isl to gimple.
14121         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14122         the loop-nest does not have any data-references.
14123         (build_graphite_scops): Create a scop only when there is at least one
14124         loop inside it.
14125         (contains_only_close_phi_nodes): Deleted.
14126         (print_graphite_scop_statistics): Deleted
14127         (print_graphite_statistics): Deleted
14128         (limit_scops): Deleted.
14129         (build_scops): Removed call to limit_scops.
14130         * sese.c (new_sese): Construct.
14131         (free_sese): Destruct.
14132         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14133         added.
14134         (set_rename): Pass sese region so that parameters inside the region can
14135         be added to its parameter_rename_map.
14136         (rename_uses): Pass sese region.
14137         (graphite_copy_stmts_from_block): Do not copy parameters that have been
14138         generated in the header of the scop. For each SSA_NAME in the
14139         parameter_rename_map rename its usage.
14140         (invariant_in_sese_p_rec): Return false if tree t is defined outside
14141         sese region.
14142         (scalar_evolution_in_region): If the tree t is invariant just return t.
14143         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14144         struct sese to keep track of all the parameters which need renaming.
14145         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14146         any data-refs.
14147         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14149 2015-09-08  Tom de Vries  <tom@codesourcery.com>
14151         * Makefile.in (generated_files): Add params.list.
14152         (params.list, s-params.list): Add rule.
14153         * params.h (enum compiler_param): Include params-list.h.  Move define
14154         DEFPARAM, include params.def and undef DEFPARAM ...
14155         * params-list.h: ... here.  New file.
14157 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
14159         * pretty-print.h (printer_fn): Fix typo in comment.
14161 2015-09-07  Jeff Law  <law@redhat.com>
14163         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14165 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14167         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14168         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14169         (arm_neon_fp16_hw): New.
14171 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14173         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14174         UNITS_PER_WORD >= 4.
14176 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14178         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14179         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14180         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14181         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14182         (aarch64_float_extend_lo_v2df): Rename to...
14183         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14185         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14186         (float_extend_lo): Add v4sf.
14188         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14189         * config/aarch64/iterators.md (VQ_HSF): New iterator.
14190         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14191         (Vwide): New mode_attr.
14193 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14195         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14196         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14197         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14198         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14199         V4HF and V8HF variants to iterator.
14201         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14203         * config/aarch64/iterators.md (VDQF_F16): New.
14204         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14206 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14208         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14209         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14210         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14211         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14212         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14213         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14214         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14215         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14216         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14217         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14218         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14219         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14220         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14221         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14222         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14223         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14224         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14225         vld1q_dup_f16): New.
14227 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14229         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14230         Reparameterize to...
14231         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14232         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14233         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14235         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14236         v8hf variant.
14237         (float_truncate_lo_): Use BUILTIN_VDF iterator.
14239         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14241         * config/aarch64/iterators.md (VDF, Vdtype): New.
14242         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14244 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14246         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14247         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14248         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14249         Add __builtin_aarch64_simd_hf.
14250         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14251         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14252         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14253         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14254         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14255         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14256         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14257         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14258         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14260         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14261         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14262         (VDC, Vdbl): Add V4HF.
14264 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14266         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14267         V4HFmode and V8HFmode.
14268         (aarch64_split_simd_move): Add case for V8HFmode.
14269         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14270         (aarch64_simd_builtin_std_type): Handle HFmode.
14271         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14273         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14274         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14275         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14277         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14278         Float16x8_t.
14280         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14281         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14282         New typedefs.
14283         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14284         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14285         vst1q_lane_f16): New.
14286         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14287         (VALLDI_F16, VALL_F16): New.
14288         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14289         Add cases for V4HF and V8HF.
14290         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14292 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14294         * config/arm/arm-builtins.c (VAR11, VAR12): New.
14295         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14296         vld4_dup): Add v4hf variant.
14297         (vget_high, vget_low): Add v8hf variant.
14298         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14299         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14300         v4hf and v8hf variants.
14302         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14303         (VDX): Add V4HF.
14304         (V_DOUBLE): Add case for V4HF.
14305         (VQX): Add V8HF.
14306         (V_HALF): Add case for V8HF.
14307         (VDQX): Add V4HF, V8HF.
14308         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14309         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14311         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14312         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14313         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14314         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14315         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14316         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14317         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14318         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14319         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14321         (neon_vcreate, neon_vreinterpretv8qi<mode>,
14322         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14323         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14324         Change VDX to VD_RE.
14326         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14327         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14328         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14330         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14331         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14332         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14333         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14334         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14335         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14336         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14337         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14338         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14340 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14342         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14343         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14344         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14345         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14346         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14347         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14348         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14349         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14350         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14351         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14352         New.
14354 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14356         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14358         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14360         * config/arm/arm-builtins.c (v8hf_UP): New.
14361         (arm_init_simd_builtin_types): Initialise Float16x8_t.
14363         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14365         * config/arm/arm_neon.h (float16x8_t): New typedef.
14367 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14369         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14370         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14371         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14372         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14373         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14374         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14375         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14376         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14377         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14378         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14380 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
14382         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14383         non-alphanumeric characters in the symbol name.
14385 2015-09-07  Marek Polacek  <polacek@redhat.com>
14387         PR inline-asm/67448
14388         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14389         a memory input.
14391 2015-09-07  Marek Polacek  <polacek@redhat.com>
14393         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14395 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
14397         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14398         not warn.
14400 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
14402         PR middle-end/67452
14403         * tree-ssa-live.c: Include cfgloop.h.
14404         (remove_unused_locals): Clear loop->simduid if simduid is about
14405         to be removed from cfun->local_decls.
14407 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14409         PR target/65210
14410         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14411         attribute as well.
14413 2015-09-04  Tom de Vries  <tom@codesourcery.com>
14415         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14417 2015-09-04  Jeff Law  <law@redhat.com>
14419         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14420         unnecessary constructor.  It's now trivial and implemented inside...
14421         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14422         constructor.  Add comments to various methods.  Remove unused
14423         private fields.
14424         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14425         * tree-vrp.c (identify_jump_threads): Likewise.
14426         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14427         indentation issues.
14428         (thread_across_edge): Similarly.
14429         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14430         arguments in constructor call.
14432 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
14434         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14435         temp path contains a '-'.
14437 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14438             Petr Murzin  <petr.murzin@intel.com>
14439             Kirill Yukhin  <kirill.yukhin@intel.com>
14441         * config/i386/i386-builtin-types.def
14442         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14443         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14444         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14445         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14446         * config/i386/i386.c
14447         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14448         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14449         IX86_BUILTIN_SCATTERALTDIV16SI.
14450         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14451         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14452         __builtin_ia32_scatteraltdiv8si.
14453         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14454         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14455         IX86_BUILTIN_SCATTERALTDIV16SI.
14456         (ix86_vectorize_builtin_scatter): New.
14457         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14458         ix86_vectorize_builtin_scatter.
14460 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14461             Petr Murzin  <petr.murzin@intel.com>
14462             Kirill Yukhin  <kirill.yukhin@intel.com>
14464         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14465         * doc/tm.texi: Regenerate.
14466         * target.def: Add scatter builtin.
14467         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14468         for loads/stores in case of gather/scatter accordingly.
14469         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14470         STMT_VINFO_GATHER_P(S).
14471         (vect_check_gather): Rename to ...
14472         (vect_check_gather_scatter): this.
14473         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14474         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14475         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14476         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14477         variable and new checkings for it accordingly.
14478         * tree-vect-stmts.c
14479         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14480         STMT_VINFO_GATHER_P(S).
14481         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14482         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14484 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14486         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14487         define_insn.
14488         (mulv16qi3): New define_expand.
14490 2015-09-03  Martin Sebor  <msebor@redhat.com>
14492         PR c/66516
14493         * doc/extend.texi (Other Builtins): Document when the address
14494         of a built-in function can be taken.
14496 2015-09-03  Richard Biener  <rguenther@suse.de>
14498         * dwarf2out.c (flush_limbo_die_list): Split out from ...
14499         (dwarf2out_early_finish): ... here.
14500         (dwarf2out_finish): Do not call dwarf2out_early_finish but
14501         flush_limbo_die_list.  Assert we have no deferred asm names.
14503 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14505         * optabs.c (expand_binop): Don't create a broadcast vector with a
14506         source element wider than the inner mode.
14508 2015-09-03  Richard Biener  <rguenther@suse.de>
14510         * varasm.c (output_constant): Use fold_convert instead of
14511         wide_int_to_tree.
14513 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14515         PR tree-optimization/65637
14516         * omp-low.c (expand_omp_for_static_chunk): Handle case that
14517         fin_bb has 2 predecessors.
14519 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14521         PR tree-optimization/65637
14522         * omp-low.c (find_phi_with_arg_on_edge): New function.
14523         (expand_omp_for_static_chunk): Fix inner loop phi.
14525 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14527         PR tree-optimization/65637
14528         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14529         that head is NULL.
14531 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14533         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14535 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14537         * doc/invoke.texi (parloops-chunk-size): Add item.
14538         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14539         * tree-parloops.c: Include params.h.
14540         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14541         param parloops-chunk-size is used.
14543 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14545         PR middle-end/67351
14546         * fold-const.c (fold_binary_loc) : Move
14547         Transform (x >> c) << c into x & (-1<<c) or
14548         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14549         types using simplify and match.
14550         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14551         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14553 2015-09-03  Richard Biener  <rguenther@suse.de>
14555         PR ipa/66705
14556         * tree-ssa-structalias.c (ctor_for_analysis): New function.
14557         (create_variable_info_for_1): Use ctor_for_analysis instead
14558         of get_constructor.
14559         (create_variable_info_for): Likewise.
14561 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
14563         PR ipa/67280
14564         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14565         in new callgraph edge.
14567 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
14569         PR target/59810
14570         PR target/63652
14571         PR target/63653
14572         * config/aarch64/aarch64-simd.md
14573         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14574         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14575         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14576         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14578 2015-09-02  Alan Modra  <amodra@gmail.com>
14580         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14581         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14582         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14584 2015-09-02  Alan Modra  <amodra@gmail.com>
14586         PR target/67417
14587         * config/rs6000/predicates.md (current_file_function_operand): Don't
14588         return true for weak symbols.
14589         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14591 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14592             Andrew Bennett  <andrew.bennett@imgtec.com>
14594         * config/mips/mips-opts.h (mips_cb_setting): New enum.
14595         * config/mips/mips-protos.h: Add definitions for
14596         mips_output_jump and mips_output_equal_conditional_branch
14597         * config/mips/mips.c (MIPS_JR): Change to support the
14598         JIC instruction.
14599         (mips_emit_compare): Add support for the MIPS R6 conditional
14600         compact branches.
14601         (mips_process_sync_loop): Likewise.
14602         (mips_output_order_conditional_branch): Likewise.
14603         (mips16_build_call_stub): Change MIPS_CALL to
14604         mips_output_jump.
14605         (mips_print_operand_punctuation): Update 's' case to only
14606         apply to micromips r2.
14607         (mips_adjust_insn_length): Add support for forbidden slot
14608         hazards.
14609         (mips_avoid_hazard): Likewise.
14610         (mips_reorg_process_insns): Likewise.
14611         (mips_output_jump): New function.
14612         (mips_output_equal_conditional_branch): Likewise.
14613         (mips_output_conditional_branch): Use jrc/bc if compact
14614         branch support is enabled.  Ensure the forbidden slots
14615         between the two branch instructions is filled with a nop.
14616         (mips_option_override): Add support to process the compact
14617         branch option and set the correct defaults.  Prevent
14618         non-explict relocs being using for MIPS R6.
14619         (mips_trampoline_init): Add compact branch support.
14620         (mips_mult_zero_zero_cost): Allow zero initialisation of
14621         accumulators with TARGET_DSP.
14622         * config/mips/mips.h (TARGET_CB_NEVER): New define.
14623         (TARGET_CB_MAYBE): New define.
14624         (TARGET_CB_ALWAYS): New define.
14625         (ISA_HAS_DELAY_SLOTS): New define.
14626         (ISA_HAS_COMPACT_BRANCHES): New define.
14627         (ISA_HAS_JRC): New define.
14628         (MIPS_BRANCH_C): New define.
14629         (MIPS_CALL): Removed.
14630         (MICROMIPS_J): Removed.
14631         * config/mips/mips.md (compact_form): New attr.
14632         (hazard): Add support for forbidden slots.
14633         (define_delay): Add support for compact branches.
14634         (*branch_order<mode>): Likewise.
14635         (*branch_order<mode>_inverted): Likewise.
14636         (*branch_equality<mode>): Likewise.
14637         (*branch_equality<mode>_inverted): Likewise.
14638         (*jump_absolute): Likewise.
14639         (*jump_pic): Likewise.
14640         (indirect_jump): Use mips_output_jump to produce assembly output.
14641         (tablejump_<mode>"): Likewise.
14642         (*<optab>"): Likewise.
14643         (<optab>_internal): Likewise.
14644         (sibcall_internal): Likewise.
14645         (sibcall_value_internal): Likewise.
14646         (sibcall_value_multiple_internal): Likewise.
14647         (call_internal): Likewise.
14648         (call_split): Likewise.
14649         (call_internal_direct): Likewise.
14650         (call_direct_split): Likewise.
14651         (call_value_internal): Likewise.
14652         (call_value_split): Likewise.
14653         (call_value_internal_direct): Likewise.
14654         (call_value_direct_split): Likewise.
14655         (call_value_multiple_internal): Likewise.
14656         (call_value_multiple_split): Likewise.
14657         (mips_get_fcsr_mips16_<mode>): Likewise.
14658         (mips_set_fcsr_mips16_<mode>): Likewise.
14659         (tls_get_tp_mips16_<mode>): Likewise.
14660         * config/mips/mips.opt: Add -mcompact-branches option.
14661         * config/mips/predicates.md (order_operator): Ensure the
14662         conditional compact branches are only used if the ISA them.
14663         * doc/invoke.texi: Document -mcompact-branches option.
14665 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
14667         PR target/61578
14668         * lra-lives.c (process_bb_lives): Process move pseudos with the
14669         same value for copies and preferences
14670         * lra-constraints.c (match_reload): Create match reload pseudo
14671         with the same value from single dying input pseudo.
14673 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14675         PR target/67405
14676         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14678 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
14680         * trans-mem.c: Add contributed-by.
14681         * trans-mem.h: Same.
14683 2015-09-01  Richard Biener  <rguenther@suse.de>
14685         * expr.c (expand_expr_real_1): For expanding TERed defs
14686         set the current location to that of the def if not UNKNOWN.
14688 2015-09-01  David Sherwood  <david.sherwood@arm.com>
14690         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14692 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14694         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14695         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
14696         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14697         Include rtl-iter.h.
14698         (noce_simple_bbs): New function.
14699         (noce_try_move): Bail if basic blocks are not simple.
14700         (noce_try_store_flag): Likewise.
14701         (noce_try_store_flag_constants): Likewise.
14702         (noce_try_addcc): Likewise.
14703         (noce_try_store_flag_mask): Likewise.
14704         (noce_try_cmove): Likewise.
14705         (noce_try_minmax): Likewise.
14706         (noce_try_abs): Likewise.
14707         (noce_try_sign_mask): Likewise.
14708         (noce_try_bitop): Likewise.
14709         (bbs_ok_for_cmove_arith): New function.
14710         (noce_emit_all_but_last): Likewise.
14711         (noce_emit_insn): Likewise.
14712         (noce_emit_bb): Likewise.
14713         (noce_try_cmove_arith): Handle non-simple basic blocks.
14714         (insn_valid_noce_process_p): New function.
14715         (contains_mem_rtx_p): Likewise.
14716         (bb_valid_for_noce_process_p): Likewise.
14717         (noce_process_if_block): Allow non-simple basic blocks
14718         where appropriate.
14720 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
14722         * tree-ssa-dom.c (record_equivalences_from_phis,
14723         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14724         (lookup_avail_expr): Likewise, and remove comment and unused temp.
14726 2015-09-01  Nick Clifton  <nickc@redhat.com>
14728         * config/msp430/msp430.opt (mcpu): Fix typo.
14730 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14732         * config/aarch64/aarch64.c (aarch64_set_current_function):
14733         Re-layout any vector parameters have non-simd layout.
14734         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14735         Delete.
14736         (aarch64_simd_expand_args): Delete call to the above.
14738 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
14740         * doc/invoke.texi (asan-stack): Add space before option.
14742 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14744         * tree.h (zerop): New function.
14745         * tree.c (zerop): Likewise.
14746         (element_precision): Handle expressions.
14747         * match.pd (define_predicates): Add zerop.
14748         (x <= +Inf): Fix comment.
14749         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14750         * fold-const.c (fold_binary_loc): ... here. Remove.
14752 2015-08-31  Richard Biener  <rguenther@suse.de>
14754         PR middle-end/67381
14755         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14757 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14759         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14760         (CEXPI): New operator list.
14761         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14762         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14763         Converted from ...
14764         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14766 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14768         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14769         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14770         parameter.
14771         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14772         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14773         (rewrite_into_loop_closed_ssa): ... here.
14774         (replace_uses_in_dominated_bbs): Remove function.
14775         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14776         rewrite_into_loop_closed_ssa_1.
14778 2015-08-31  Michael Matz  <matz@suse.de>
14780         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14781         enter entry and exit blocks for reverse post order.
14783 2015-08-31  Richard Biener  <rguenther@suse.de>
14785         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14786         (lto_location_cache::current_sysp): Likewise.
14787         (output_block::current_sysp): Likewise.
14788         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14789         (lto_location_cache::apply_location_cache): Properly record
14790         system header locations.
14791         (lto_location_cache::input_location): Input whether a file
14792         is a system header.
14793         * lto-streamer-out.c (lto_output_location): Stream whether a file
14794         is a system header.
14796 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14798         PR bootstrap/67363
14799         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14801 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14803         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14804         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14805         Improve function header comments.
14807 2015-08-30  Michael Collison  <michael.collison@linaro.org>
14809         PR other/67320
14810         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14811         standard names
14813 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14815         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14816         special_handling bitfield.
14817         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14818         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14819         that represents a general xxpermdi.
14820         (insn_is_swappable_p): Add handling for vec_concat of two
14821         doublewords, which maps to a specific xxpermdi.
14822         (adjust_xxpermdi): New function.
14823         (adjust_concat): Likewise.
14824         (handle_special_swappables): Call adjust_xxpermdi and
14825         adjust_concat.
14826         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14828 2015-08-30  Rich Felker <dalias@libc.org>
14830         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14831         case instead of sh[123456ble]-*-*.
14833 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
14835         * ira.c (print_unform_and_important_classes,
14836         print_translated_classes): Remove reg_class_names static array.
14837         (print_unform_and_important_classes): Rename to ...
14838         (print_uniform_and_important_classes): ... this.
14839         (ira_debug_allocno_classes): Update accordingly.
14841 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14843         PR tree-optimization/46193
14844         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14845         clause.
14847 2015-08-28  Jeff Law  <law@redhat.com>
14849         PR lto/66752
14850         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14851         unable to find X NE 0 in the tables, return X as the simplified
14852         condition.
14853         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14854         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14855         to VISISTED_BBS.
14856         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14857         after removing the control flow statement and unnecessary edges.
14859 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
14861         Revert:
14862         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14864         PR tree-optimization/67283
14865         * tree-sra.c (type_consists_of_records_p): Rename to...
14866         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14868         (completely_scalarize_record): Rename to...
14869         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14870         code to:
14871         (scalarize_elem): New.
14873 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
14875         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14876         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14877         (aarch64_symbol_type): Likewise.
14878         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14879         Likewise.
14880         (aarch64_expand_mov_immediate): Likewise.
14881         (aarch64_print_operand): Likewise.
14882         (aarch64_classify_tls_symbol): Likewise.
14884 2015-08-28  Richard Biener  <rguenther@suse.de>
14886         * cgraphunit.c (symbol_table::compile): Move early debug generation
14887         and finish...
14888         (symbol_table::finalize_compilation_unit): ... back here and
14889         add a !seen_error () guard.
14891 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14893         * toplev.c (process_options): Do not use flag_loop_block,
14894         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
14895         flag_loop_optimize_isl.
14897 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14899         * Makefile.in (OBJS): Remove graphite-blocking.o and
14900         graphite-interchange.o.
14901         * common.opt (floop-strip-mine, floop-interchange, floop-block):
14902         Alias of floop-nest-optimize.
14903         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14904         Document as alias of -floop-nest-optimize.
14905         * graphite-blocking.c: Remove.
14906         * graphite-interchange.c: Remove.
14907         * graphite-optimize-isl.c: Include dumpfile.h.
14908         (getScheduleForBand): Add dump for tiled loops.  Use
14909         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14910         * graphite-poly.c (scop_max_loop_depth): Remove.
14911         (print_scattering_function_1): Remove.
14912         (print_scattering_function): Remove.
14913         (print_scattering_functions): Remove.
14914         (debug_scattering_function): Remove.
14915         (debug_scattering_functions): Remove.
14916         (apply_poly_transforms): Remove use of flag_loop_block,
14917         flag_loop_strip_mine, and flag_loop_interchange.
14918         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14919         PBB_ORIGINAL.
14920         (print_pdr_access_layout): Remove.
14921         (print_pdr): Print ISL representation.
14922         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14923         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14924         (free_scop): Same.
14925         (openscop_print_pbb_domain): Remove.
14926         (print_pbb): Remove call to print_scattering_function.
14927         (openscop_print_scop_context): Remove.
14928         (print_scop_context): Do not print matrices anymore.
14929         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14930         SCOP_TRANSFORMED_SCHEDULE.
14931         (print_isl_set): Add printing of a new line.
14932         (print_isl_map): Same.
14933         (print_isl_aff): Same.
14934         (print_isl_constraint): Same.
14935         (loop_to_lst): Remove.
14936         (scop_to_lst): Remove.
14937         (lst_indent_to): Remove.
14938         (print_lst): Remove.
14939         (debug_lst): Remove.
14940         (dot_lst_1): Remove.
14941         (dot_lst): Remove.
14942         (reverse_loop_at_level): Remove.
14943         (reverse_loop_for_pbbs): Remove.
14944         * graphite-poly.h (pdr_dim_iter_domain): Remove.
14945         (pdr_nb_params): Remove.
14946         (pdr_alias_set_dim): Remove.
14947         (pdr_subscript_dim): Remove.
14948         (pdr_iterator_dim): Remove.
14949         (pdr_parameter_dim): Remove.
14950         (same_pdr_p): Remove.
14951         (struct poly_scattering): Remove.
14952         (struct poly_bb): Remove _original, _transformed, _saved.
14953         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14954         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14955         (PBB_NB_LOCAL_VARIABLES): Remove.
14956         (PBB_NB_SCATTERING_TRANSFORM): Remove.
14957         (schedule_to_scattering): Remove.
14958         (number_of_write_pdrs): Remove.
14959         (pbb_dim_iter_domain): Remove.
14960         (pbb_nb_params): Remove.
14961         (pbb_nb_scattering_orig): Remove.
14962         (pbb_nb_scattering_transform): Remove.
14963         (pbb_nb_dynamic_scattering_transform): Remove.
14964         (pbb_nb_local_vars): Remove.
14965         (pbb_iterator_dim): Remove.
14966         (pbb_parameter_dim): Remove.
14967         (psco_scattering_dim): Remove.
14968         (psct_scattering_dim): Remove.
14969         (psct_local_var_dim): Remove.
14970         (psco_iterator_dim): Remove.
14971         (psct_iterator_dim): Remove.
14972         (psco_parameter_dim): Remove.
14973         (psct_parameter_dim): Remove.
14974         (psct_dynamic_dim): Remove.
14975         (psct_static_dim): Remove.
14976         (psct_add_local_variable): Remove.
14977         (new_lst_loop): Remove.
14978         (new_lst_stmt): Remove.
14979         (free_lst): Remove.
14980         (copy_lst): Remove.
14981         (lst_add_loop_under_loop): Remove.
14982         (lst_depth): Remove.
14983         (lst_dewey_number): Remove.
14984         (lst_dewey_number_at_depth): Remove.
14985         (lst_pred): Remove.
14986         (lst_succ): Remove.
14987         (lst_find_pbb): Remove.
14988         (find_lst_loop): Remove.
14989         (lst_find_first_pbb): Remove.
14990         (lst_empty_p): Remove.
14991         (lst_find_last_pbb): Remove.
14992         (lst_contains_p): Remove.
14993         (lst_contains_pbb): Remove.
14994         (lst_create_nest): Remove.
14995         (lst_remove_from_sequence): Remove.
14996         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14997         (lst_niter_for_loop): Remove.
14998         (pbb_update_scattering): Remove.
14999         (lst_update_scattering_under): Remove.
15000         (lst_update_scattering): Remove.
15001         (lst_insert_in_sequence): Remove.
15002         (lst_replace): Remove.
15003         (lst_substitute_3): Remove.
15004         (lst_distribute_lst): Remove.
15005         (lst_remove_all_before_including_pbb): Remove.
15006         (lst_remove_all_before_excluding_pbb): Remove.
15007         (struct scop): Remove original_schedule, transformed_schedule, and
15008         saved_schedule.
15009         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15010         (SCOP_SAVED_SCHEDULE): Remove.
15011         (poly_scattering_new): Remove.
15012         (poly_scattering_free): Remove.
15013         (poly_scattering_copy): Remove.
15014         (store_scattering_pbb): Remove.
15015         (store_lst_schedule): Remove.
15016         (restore_lst_schedule): Remove.
15017         (store_scattering): Remove.
15018         (restore_scattering_pbb): Remove.
15019         (restore_scattering): Remove.
15020         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15021         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
15022         compute the scattering polyhedron dimension from the dimension of
15023         pbb->domain.
15024         (build_scop_scattering): Update call to
15025         build_pbb_scattering_polyhedrons.
15026         (build_poly_scop): Remove call to scop_to_lst.
15027         * graphite.c (graphite_transform_loops): Add call to print_scop.
15028         (gate_graphite_transforms): Remove use of flag_loop_block,
15029         flag_loop_interchange, and flag_loop_strip_mine.
15031 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15033         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15034         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15035         -floop-nest-optimize.
15036         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15037         (generate_luj_sepclass): Remove.
15038         (generate_luj_options): Remove.
15039         (set_options): Remove opt_luj.
15040         (scop_to_isl_ast): Remove opt_luj.
15041         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15042         flag_loop_unroll_jam.
15043         (getPrevectorMap_full): Remove.
15044         (getScheduleForBandList): Remove map_sepcl.
15045         (getScheduleMap): Same.
15046         (apply_schedule_map_to_scop): Remove sepcl.
15047         (optimize_isl): Same.
15048         * graphite-poly.c (apply_poly_transforms): Remove check for
15049         flag_loop_unroll_jam.
15050         (new_poly_bb): Remove map_sepclass.
15051         * graphite-poly.h (struct poly_bb): Same.
15052         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15053         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15054         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15055         * toplev.c (process_options): Remove flag_loop_unroll_jam.
15057 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
15059         PR target/67317
15060         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15061         (addqi3_cc): Ditto.
15062         (UNSPEC_ADD_CARRY): Remove.
15063         (addqi3_cconly_overflow): New expander.
15064         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15065         Adjust for changed add<mode>3_carry.
15066         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15067         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15068         (<plusminus_insn><mode>3_carry): Remove expander.
15069         (*<plusminus_insn><mode>3_carry): Split insn pattern to
15070         add<mode>3_carry and sub<mode>3_carry.
15071         (plusminus_carry_mnemonic): Remove code attribute.
15072         (add<mode>3_carry): Canonicalize insn pattern.
15073         (*addsi3_carry_zext): Ditto.
15074         (sub<mode>3_carry): Ditto.
15075         (*subsi3_carry_zext): Ditto.
15076         (adcx<mode>3): Remove insn pattern.
15077         (addcarry<mode>): New insn pattern.
15078         (subborrow<mode>): Ditto.
15079         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15080         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15081         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15082         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15083         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15084         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15085         Rewrite expander to not clobber carry flag chains.
15087 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
15089         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15090         instead of a rotate.
15092 2015-08-27  Marek Polacek  <polacek@redhat.com>
15094         PR middle-end/67005
15095         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15096         an entry into an irreducible region.
15098 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15100         * configure: Regenerate.
15102 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15104         PR tree-optimization/67283
15105         * tree-sra.c (type_consists_of_records_p): Rename to...
15106         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15108         (completely_scalarize_record): Rename to...
15109         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15110         (scalarize_elem): New.
15112 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15114         * tree-sra.c (completely_scalarize_var): Rename to...
15115         (create_total_scalarization_access): ... Here. Drop call to
15116         completely_scalarize_record.
15118         (analyze_all_variable_accesses): Replace completely_scalarize_var
15119         with create_total_scalarization_access and completely_scalarize_record.
15121 2015-08-27  Alan Modra  <amodra@gmail.com>
15123         PR target/67356
15124         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15125         for operand 1.
15127 2015-08-27  Richard Biener  <rguenther@suse.de>
15129         * passes.c (rest_of_decl_compilation): Guard early_global_decl
15130         call with !seen_error ().
15131         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15132         early debug generation and finish...
15133         (symbol_table::compile): ... here to put it after a !seen_error ()
15134         guard.
15136 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15138         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15139         Solaris 12+.
15141 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15142             Andre Vieira  <andre.simoesdiasvieira@arm.com>
15144         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15145         (*cb<optab><mode>1): Likewise.
15146         (*tb<optab><mode>1): Likewise.
15147         (*cb<optab><mode>1): Likewise.
15148         * config/aarch64/iterators.md (inv_cb): New code attribute.
15149         (inv_tb): Likewise.
15150         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15151         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15153 2015-08-27  Richard Biener  <rguenther@suse.de>
15155         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15157 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15159         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15160         trap to fix ICE.
15162 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15164         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15165         Add declaration.
15167         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15168         comment.
15169         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15170         floating point in VSX registers.
15171         (rs6000_output_move_128bit): Always print out the set insn if we
15172         can't generate an appropriate 128-bit move.
15173         (rs6000_generate_compare): Add support for IEEE 128-bit floating
15174         point in VSX registers comparisons.
15175         (rs6000_expand_float128_convert): Likewise.
15177         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15178         predicate for only GPR hard registers.
15180         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15181         modes to iterators. Add new iterators for moving 128-bit values in
15182         scalar FPR registers and VSX registers.
15183         (FMOVE128): Likewise.
15184         (FMOVE128_FPR): Likewise.
15185         (FMOVE128_GPR): Likewise.
15186         (FMOVE128_VSX): Likewise.
15187         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15188         in VSX registers.
15189         (IFKF): Likewise.
15190         (IBM128): Likewise.
15191         (TFIFKF): Likewise.
15192         (RELOAD): Add IEEE 128-bit floating point modes.
15193         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15194         floating point in VSX registers modes.
15195         (signbit<mode>2, IBM128 iterator): Likewise.
15196         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15197         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15198         (negtf2): Likewise.
15199         (neg<mode>2, TFIFKF iterator): Likewise.
15200         (negtf2_internal): Likewise.
15201         (abstf2): Likewise.
15202         (abs<mode>2, TFIFKF iterator): Likewise.
15203         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15204         VSX insn support for negate, absolute value, and negative absolute
15205         value.
15206         (ieee_128bit_vsx_neg<mode>2): Likewise.
15207         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15208         (ieee_128bit_vsx_abs<mode>2): Likewise.
15209         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15210         (ieee_128bit_vsx_nabs<mode>2): Likewise.
15211         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15212         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15213         floating point in VSX registers.
15214         (unpack<mode>_dm): Likewise.
15215         (unpack<mode>_nodm): Likewise.
15216         (pack<mode>): Likewise.
15217         (unpackv1ti): Likewise.
15218         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15219         (packv1ti): Likewise.
15220         (pack<mode>, FMOVE128_VSX iterator): Likewise.
15221         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15222         registers.
15223         (extenddftf2_internal): Likewise.
15224         (trunctfdf2): Likewise.
15225         (trunctfdf2_internal2): Likewise.
15226         (fix_trunc_helper): Likewise.
15227         (fix_trunctfdi2"): Likewise.
15228         (floatditf2): Likewise.
15229         (floatuns<mode>tf2): Likewise.
15230         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15231         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15232         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15233         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15234         (float<SDI:mode><IFKF:mode>2): Likewise.
15235         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15237 2015-08-26  Renlin Li  <renlin.li@arm.com>
15239         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15241 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15242             Jiong Wang  <jiong.wang@arm.com>
15244         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15245         (tlsie_tiny_<mode>): New define_insn.
15246         (tlsie_tiny_sidi): Likewise.
15247         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15248         SYMBOL_TINY_TLSIE.
15249         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15250         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15251         SYMBOL_TINY_TLSIE.
15252         (aarch64_expand_mov_immediate): Likewise.
15253         (aarch64_print_operand): Likewise.
15254         (arch64_classify_tls_symbol): Likewise.
15256 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15258         * config/arm/arm-arches.def: Replace single value flags with
15259         an initializer built from ARM_FSET_MAKE_CPU1.
15260         * config/arm/arm-cores.def: Likewise.
15261         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15262         derivation from the ARM_CORE macro definition, use the given value
15263         instead.
15264         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15265         ARM_ARCH macro definition, use the given value instead.
15267 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15269         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15270         feature set.
15271         (struct builtin_description): Replace field mask with field
15272         features.
15273         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15274         (IWMMXT2_BUILTIN): Likewise.
15275         (IWMMXT2_BUILTIN2): Likewise.
15276         (FP_BUILTIN): Likewise.
15277         (CRC32_BUILTIN): Likewise.
15278         (CRYPTO_BUILTIN): Likewise.
15279         (iwmmx_mbuiltin): Likewise.
15280         (iwmmx2_mbuiltin): Likewise.
15281         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15282         struct builtin_description.
15284 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15286         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15287         (struct builtin_description): Change type of mask to unsigned
15288         long.
15289         * config/arm/arm-protos.h (insn_flags): Declare as type
15290         arm_feature_set.
15291         (tune_flags): Likewise.
15292         * config/arm/arm.c (feature_count): New.
15293         (insn_flags): Define as type arm_feature_set.
15294         (tune_flags): Likewise.
15295         (struct processors): Define field flags as type arm_feature_set.
15296         (all_cores): Update for change to struct processors.
15297         (all_architectures): Likewise.
15298         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15299         macros.
15300         (arm_option_override_internal): Likewise.
15301         (arm_option_override): Likewise.
15303 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15304             Jiong Wang  <jiong.wang@arm.com>
15306         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15307         tls size for tiny, small, large memory model.
15308         (aarch64_load_symref_appropriately): Support new symbol types.
15309         (aarch64_expand_mov_immediate): Likewise.
15310         (aarch64_print_operand): Likewise.
15311         (aarch64_classify_tls_symbol): Likewise.
15312         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15313         (aarch64_symbol_type): Likewise.
15314         * config/aarch64/aarch64.md (tlsle): Deleted.
15315         (tlsle12_<mode>): New define_insn.
15316         (tlsle24_<mode>): Likewise.
15317         (tlsle32_<mode>): Likewise.
15318         (tlsle48_<mode>): Likewise.
15319         * doc/sourcebuild.texi (AArch64-specific attributes): Document
15320         "aarch64_tlsle32".
15322 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15324         * config/arm/arm-protos.h (FL_NONE): New.
15325         (FL_ANY): New.
15326         (arm_feature_set): New.
15327         (ARM_FSET_MAKE): New.
15328         (ARM_FSET_MAKE_CPU1): New.
15329         (ARM_FSET_MAKE_CPU2): New.
15330         (ARM_FSET_CPU1): New.
15331         (ARM_FSET_CPU2): New.
15332         (ARM_FSET_EMPTY): New.
15333         (ARM_FSET_ANY): New.
15334         (ARM_FSET_HAS_CPU1): New.
15335         (ARM_FSET_HAS_CPU2): New.
15336         (ARM_FSET_HAS_CPU): New.
15337         (ARM_FSET_ADD_CPU1): New.
15338         (ARM_FSET_ADD_CPU2): New.
15339         (ARM_FSET_DEL_CPU1): New.
15340         (ARM_FSET_DEL_CPU2): New.
15341         (ARM_FSET_UNION): New.
15342         (ARM_FSET_INTER): New.
15343         (ARM_FSET_XOR): New.
15344         (ARM_FSET_EXCLUDE): New.
15345         (AFM_FSET_IS_EMPTY): New.
15346         (ARM_FSET_CPU_SUBSET): New.
15348 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15350         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15351         SYMBOL_TLSLE to SYMBOL_TLSLE24.
15352         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15353         Likewise.
15354         (aarch64_expand_mov_immediate): Likewise.
15355         (aarch64_print_operand): Likewise.
15356         (aarch64_classify_symbol): Likewise.
15358 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15360         * config/aarch64/aarch64.opt (mtls-size): New entry.
15361         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15362         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15363         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15365 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15367         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15368         ARM_CORE entry.  Fix some white-space.
15369         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15370         ARM_CORE definition.
15372 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15374         * fold-const.c (fold_binary_loc) : Move Optimize
15375         root(x)*root(y) as root(x*y) to match.pd.
15376         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15377         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15378         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15379         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15380         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15381         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15382         (mult (exps:s @0) (exps:s @1)) : New simplifier.
15383         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15384         (rdiv @0 (exps:s @1)) : New simplifier.
15386 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
15388         * gcc.c (driver::finalize): Only assign to extra_specs if
15389         [EXTRA_SPECS].
15391 2015-08-25  Marek Polacek  <polacek@redhat.com>
15393         PR middle-end/67330
15394         * varasm.c (declare_weak): Return after giving an error.
15396 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
15398         * gcc-main.c (main): Add params to driver ctor.
15399         * gcc.c (class env_manager): New.
15400         (env): New global.
15401         (env_manager::init): New.
15402         (env_manager::get): New.
15403         (env_manager::xput): New.
15404         (env_manager::restore): New.
15405         Poison getenv and putenv.
15406         (DEFAULT_TARGET_SYSTEM_ROOT): New.
15407         (target_system_root): Update initialization to use
15408         DEFAULT_TARGET_SYSTEM_ROOT.
15409         (struct spec_list): Add field "default_ptr".
15410         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15411         (init_spec): Likewise.
15412         (set_spec): Clear field "default_ptr".
15413         (read_specs): Free "spec" and "buffer".
15414         (xputenv): Reimplement in terms of env_manager.
15415         (process_command): Replace ::getenv calls with calls to the
15416         env_manager singleton.
15417         (process_brace_body): Free string in three places.
15418         (driver::driver): New.
15419         (driver::~driver): New.
15420         (used_arg): Convert from a function to...
15421         (class used_arg_t): ...this class, and...
15422         (used_arg): ...this new global instance.
15423         (used_arg_t::finalize): New function.
15424         (getenv_spec_function): Add "const" to local "value".  Replace
15425         ::getenv call with call to the env_manager singleton.
15426         (path_prefix_reset): New function.
15427         (driver::finalize): New function.
15428         * gcc.h (driver::driver): New.
15429         (driver::~driver): New.
15430         (driver::finalize): New.
15432 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15434         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15435         target doesn't have one.
15437 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15439         PR target/67346
15440         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15442 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15444         PR target/67344
15445         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15446         a define_insn, remove second alternative.
15448 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
15449             Joseph Myers  <joseph@codesourcery.com>
15451         * gcc.c (struct switchstr): Expand comment.
15453 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15455         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15456         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15458 2015-08-25  Richard Biener  <rguenther@suse.de>
15460         PR middle-end/67306
15461         * genmatch.c (expr::gen_transform): Verify the result of
15462         builtin_decl_implicit.
15463         (dt_simplify::gen_1): Likewise.
15465 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15467         * config/arm/constraints.md: Also list Cs and US ARM-specific
15468         constraints as used.
15470 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15472         PR target/66609
15473         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15474         UNSPEC_PCREL.
15475         (nonpic_symbol_mentioned_p): Likewise.
15476         (sh_delegitimize_address): Likewise.
15477         (sh_function_ok_for_sibcall): Take into account weak symbols.
15478         (sh_expand_sym_label2reg): New.
15479         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15480         * config/sh/sh.md (UNSPEC_PCREL): New enum.
15481         (call_pcrel): Use sh_expand_sym_label2reg.
15482         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15483         (symPCREL_label2reg) New expand.
15485 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15487         * graphite-poly.c: Change type of region from void* to sese.
15488         * graphite-poly.h (struct scop): Changing the type of scop::region
15489         from void* to sese. Change accessor macro accordingly.
15490         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15492 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15494         * graphite-scop-detection.c (stmt_simple_for_scop_p):
15495         Constrain only on INTEGER_TYPE.
15497 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15499         PR target/67211
15500         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15501         -mefficient-unaligned-vsx on ISA 2.7.
15503         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15504         option to a masked option.
15506         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15507         logic for -mefficient-unaligned-vsx so that it is set via an arch
15508         ISA option, instead of being set if -mtune=power8 is set. Move
15509         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15510         near other default option handling.
15512 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15514         * genflags.c (gen_macro): Delete.
15515         (gen_proto): Don't create GEN.*CALL.* macros.
15516         * gensupport.h (get_file_location): Declare.
15517         * gensupport.c (rtx_locs): New variable.
15518         (read_md_rtx): Record rtx locations.
15519         (get_file_location): New function.
15520         * target-insns.def (call, call_pop, call_value, call_value_pop)
15521         (sibcall, sibcall_value): New patterns.
15522         * gentarget-def.c (parse_argument): New function.
15523         (def_target_insn): Use it.  Handle optional operands.  Raise an
15524         error if an .md pattern has the wrong number of operands for the
15525         pattern name.  Remove the names of unused operands from the prototype.
15526         * builtins.c (expand_builtin_apply): Use targetm functions
15527         instead of HAVE_call_value and GEN_CALL_VALUE.
15528         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
15529         and sibcall_value_pop.
15530         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15531         of GEN_CALL.
15532         * config/alpha/alpha.md (untyped_call): Likewise.
15533         * config/iq2000/iq2000.md (untyped_call): Likewise.
15534         * config/m68k/m68k.md (untyped_call): Likewise.
15535         * config/mips/mips.md (untyped_call): Likewise.
15536         * config/pa/pa.md (untyped_call): Likewise.
15537         * config/rs6000/rs6000.md (untyped_call): Likewise.
15538         * config/sparc/sparc.md (untyped_call): Likewise.
15539         * config/tilegx/tilegx.md (untyped_call): Likewise.
15540         * config/tilepro/tilepro.md (untyped_call): Likewise.
15541         * config/visium/visium.md (untyped_call): Likewise.
15542         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15543         gen_call_value instead of GEN_CALL_VALUE.
15544         * config/arm/arm.md (untyped_call): Likewise.
15545         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15546         GEN_CALL.
15548 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15550         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15551         (have_cbranchcc4): New variable.
15552         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15553         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15554         (if_convert): Initialize have_cbranchcc4.
15556 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15558         * builtins.c (expand_cmpstrn): Rename to...
15559         (expand_cmpstrn_or_cmpmem): ...this.
15560         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15561         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15562         Remove mode argument.
15563         (expand_builtin): Update accordingly.
15565 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15567         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15568         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
15569         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15570         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15571         Add predicates for operands 0 and 3.
15572         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15573         operand.
15574         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15575         immediate_operand to nonmemory_operand.
15577 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15579         * df-scan.c (df_insn_info_init_fields): New function, split out
15580         from...
15581         (df_insn_create_insn_record): ...here.
15582         (df_insn_info_free_fields): New function, split out from...
15583         (df_insn_info_delete): ...here.
15584         (df_insn_rescan): Use the new functions instead of freeing and
15585         reallocating the df_insn_info.
15587 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15589         * doc/install.texi (Binaries): Remove links no longer valid.
15591 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15593         * config/nvptx/mkoffload.c (process): Replace
15594         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15596 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
15598         PR target/67329
15599         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15601 2015-08-24  Renlin Li  <renlin.li@arm.com>
15603         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15604         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15605         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15606         * config/arm/constraints.md ("j"): Add check for high code.
15608 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15610         PR tree-optimization/65468
15611         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15612         chunk_size is one.
15614 2015-08-24  Nathan Sidwell  <nathan@acm.org>
15616         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15617         change to nvptx_type_from_mode call. Use arg_promotion for both
15618         split and non-split args.
15620 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15622         * target-insns.def (movstr): New pattern.
15623         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15624         (expand_movstr): Use targetm rather than HAVE_movstr/
15625         CODE_FOR_movstr.
15627 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15629         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15630         cast syntax.
15632 2015-08-24  Andrew Pinski  <apinski@cavium.com>
15634         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15635         AARCH64_EXTRA_TUNING_OPTION.
15636         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15637         New enum.
15638         (aarch64_extra_tuning_flags): Base the shifted value on the index
15639         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15640         * config/aarch64/aarch64.c: Remove the last argument to
15641         AARCH64_EXTRA_TUNING_OPTION.
15643 2015-08-23  Nathan Sidwell  <nathan@acm.org>
15645         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15646         decls.
15647         (nvptx_declare_function_name): Insert formatting tabs for
15648         consistency.
15650 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15652         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15653         parm_decl, rather than generating a dummy default def in cfun.
15654         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
15655         ssa_name from cfun and child_fn do not share a stmt as def stmt.
15656         (move_stmt_op): Handle PARM_DECl.
15657         (gather_ssa_name_hash_map_from): New function.
15658         (move_sese_region_to_fn): Add default defs for function params, and add
15659         them to vars_map.  Release copied ssa names.
15660         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15662 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15664         * doc/sourcebuild.texi: Rename vect_no_int_max with
15665         vect_no_int_min_max.  Update description.
15667 2015-08-22  Andrew Pinski  <apinski@cavium.com>
15669          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15670         * config/aarch64/aarch64-protos.h
15671         (aarch64_fusion_pairs_index): New enum.
15672         (aarch64_fusion_pairs): Base the shifted value on the index instead
15673         Rewrite AARCH64_FUSE_ALL to be based on the end index.
15674         of the argument to AARCH64_FUSION_PAIR.
15675         * config/aarch64/aarch64.c: Remove the last argument to
15676         AARCH64_FUSION_PAIR.
15678 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
15680         * dominance.c (new_zero_array): Define.
15681         (dom_info): Redefine as class with proper encapsulation.
15682         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15683         Add new members.
15684         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
15685         allocations/deallocations.  Pass function as parameter (instead of
15686         using cfun).
15687         (dom_info::get_idom): Define accessor method.
15688         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15689         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
15690         (calculate_dominance_info): Adjust to use dom_info class.
15691         (verify_dominators): Likewise.
15693 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
15695         * print-rtl.c (print_rtx): Check the correct range for
15696         flag_dump_unnumbered_links to behave as documented.
15698         PR rtl-optimization/67227
15699         PR rtl-optimization/64164
15700         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15701         (nonoverlapping_memrefs_p): Test offsets and sizes when given
15702         identical gimple_reg exprs.
15704 2015-08-21  Nathan Sidwell  <nathan@acm.org>
15706         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15707         expansion.
15708         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15709         crtl->stack_alignment_needed to determine alignment.
15710         (nvptx_get_drap_rtx): New.
15711         (TARGET_GET_DRAP_RTX): Override.
15712         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15714 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15716         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15718 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15720         * configure.ac: Remove uwin* cases.
15721         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15722         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15723         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15724         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15725         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15726         i[34567]86-*-uwin*, powerpc-*-beos*.
15728 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
15730         * gencodes.c (gencodes): Print the comma for the preceding
15731         enum value rather than the current one.  Use aliased enum values
15732         rather than #defines for compiled-out patterns.
15733         (main): Update accordingly.  Replace LAST_INSN_CODE with
15734         NUM_INSN_CODES.
15735         * lra.c (insn_code_data): Update accordingly.
15736         (finish_insn_code_data_once, get_static_insn_data): Likewise.
15737         * recog.h (target_recog): Likewise.
15738         (preprocess_insn_constraints): Change parameter to unsigned int.
15739         * recog.c (preprocess_insn_constraints): Likewise.
15740         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15741         * tree-vect-stmts.c (vectorizable_operation): Simplify.
15743 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15745         PR rtl-optimization/61657
15746         * loop-iv.c (iv_number_of_iterations): Declare up and down as
15747         unsigned.  Remove superflous uint64_t cast.
15749 2014-08-21  Felix Yang  <felix.yang@huawei.com>
15750             Jiji Jiang  <jiangjiji@huawei.com>
15752         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15753         argument and get builtin function code directly from CALL.
15754         (gimple_stringop_fixed_value): Modified accordingly.
15755         (gimple_stringops_transform, gimple_stringops_values_to_profile):
15756         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15758 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15760         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15762 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15764         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15765         to match.pd.
15766         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15767         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15768         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15769         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15770         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15771         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15772         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15773         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15774         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15775         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15777         * match.pd (SIN ) : New Operator.
15778         (TAN) : New Operator.
15779         (mult (SQRT@1 @0) @1) : New simplifier.
15780         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15781         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15782         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15783         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15784         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15785         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15786         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15787         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15788         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15789         (rdiv @0 (POW:s @1 @2)) : New simplifier.
15791 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
15793         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15794         loop if EXPR is simplified to const value.
15796 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
15798         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15799         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15801 2015-08-21  Richard Biener  <rguenther@suse.de>
15803         PR middle-end/67285
15804         * gimple-fold.c (replace_stmt_with_simplification): Assert
15805         seq is empty when replacing a call with itself but different
15806         arguments.
15807         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15808         a call require that it is const.
15810 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15812         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15813         * builtins.c (get_object_alignment_2): Adjust.
15814         * varasm.c (align_variable): Likewise.
15815         (get_variable_align): Likewise.
15816         (build_constant_desc): Likewise.
15817         (force_const_mem): Likewise.
15818         * doc/tm.texi.in: Likewise.
15819         * doc/tm.texi: Regenerate.
15821 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15823         * genconfig.c (main): Always define HAVE_cc0.
15824         * recog.c (rest_of_handle_peephole2): Adjust.
15826 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15828         * reorg.c (relax_delay_slots): Don't use #if to check value of
15829         HAVE_cc0.
15831 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15833         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15834         * targhooks.c (default_have_conditional_execution): Adjust.
15836 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15838         * rtl.h (rtvec_all_equal_p): Declare.
15839         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15840         * rtl.c (rtvec_all_equal_p): New function.
15841         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15842         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15843         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15844         * config/arm/arm.c (neon_vdup_constant): Likewise.
15845         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15846         * config/tilegx/constraints.md (W, Y): Likewise.
15847         * config/tilepro/constraints.md (W, Y): Likewise.
15848         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15849         (classify_immediate): Use unwrap_const_vec_duplicate.
15850         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15851         (reg_or_v2s8bit_operand): Likewise.
15852         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15853         (reg_or_v4s8bit_operand): Likewise.
15855 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15857         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15858         (vec_shasigma_be): New #define.
15859         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15860         (VPMSUMH): Likewise.
15861         (VPMSUMW): Likewise.
15862         (VPMSUMD): Likewise.
15863         (VPMSUM): New BU_P8V_OVERLOAD_2.
15864         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15865         entries for VEC_MADD and VEC_VPMSUM.
15867 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
15869         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15870         Multiply argument avr_n_flash by 64 to match unit of "KiB".
15871         (avr_pgm_check_var_decl): Same.
15873 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
15875         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15876         initialization of HFmode scalar type (float16_t) to...
15877         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15878         code.
15880         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15882         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15883         having an -mfp16-format.
15885 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15887         * config/i386/predicates.md (vector_all_ones_operand): Use
15888         CONSTM1_RTX to simplify definition.
15890 2015-08-20  Richard Biener  <rguenther@suse.de>
15892         * toplev.c (compile_file): Remove loop calling late_global_decl
15893         on all symbols.
15894         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15895         on decls we assembled.
15897 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
15899         * common/config/aarch64/aarch64-common.c
15900         (AARCH64_CPU_NAME_LENGTH): Delete.
15901         (aarch64_option_extension): New.
15902         (all_extensions): Likewise.
15903         (processor_name_to_arch): Likewise.
15904         (arch_to_arch_name): Likewise.
15905         (all_cores): New.
15906         (all_architectures): Likewise.
15907         (aarch64_get_extension_string_for_isa_flags): Likewise.
15908         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15909         architecture names.
15910         * config/aarch64/aarch64-protos.h
15911         (aarch64_get_extension_string_for_isa_flags): New.
15912         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15913         (aarch64_option_print): Get the string to print from
15914         aarch64_get_extension_string_for_isa_flags.
15915         (aarch64_declare_function_name): Likewise.
15916         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15917         (MCPU_TO_MARCH_SPEC): This.
15918         (ASM_CPU_SPEC): Use it.
15919         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15920         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15921         (EXTRA_SPEC_FUNCTIONS): Use it.
15923 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
15925         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15926         expansion when !ISA_HAS_LWL_LWR.
15927         (mips_block_move_straight): Update the size of elements copied to
15928         account for alignment when !ISA_HAS_LWL_LWR.
15929         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15931 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
15933         * expr.c (expand_expr_real_2): Check gimple statement during
15934         LSHIFT_EXPR expand.
15936 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
15938         * common.opt (fstack-protector): Initialize to -1.
15939         (fstack-protector-all): Likewise.
15940         (fstack-protector-strong): Likewise.
15941         (fstack-protector-explicit): Likewise.
15942         * configure.ac: Add --enable-default-ssp.
15943         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
15944         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15945         -1.
15946         * doc/install.texi: Document --enable-default-ssp.
15947         * config.in: Regenerated.
15948         * configure: Likewise.
15950 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
15952         PR rtl-optimization/64164
15953         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15954         (parm_in_stack_slot_p): ... this.  Disregard mode, what
15955         matters is whether the parm will live in a pseudo or a stack
15956         slot.
15957         (expand_one_ssa_partition): Deal with params without a default
15958         def.  Disregard mode.
15959         * cfgexpand.h: Renamed function declaration.
15960         * tree-ssa-coalesce.c: Adjust.
15961         * function.c (split_complex_args): Allocate stack slot for
15962         unassigned parms before splitting.
15963         (parm_in_unassigned_mem_p): New.  Use it instead of
15964         parm_maybe_byref_p throughout this file.
15965         (assign_parm_setup_block): Use it.  Accept pseudos in the
15966         expand-assigned rtl.
15967         (assign_parm_setup_reg): Drop BLKmode requirement.
15968         (assign_parm_setup_stack): Allocate and fill in the address of
15969         unassigned MEM parms.
15971 2015-08-19  David Sherwood  <david.sherwood@arm.com>
15973         * genmodes.c (emit_mode_unit_size_inline): New function.
15974         (emit_mode_unit_precision_inline): New function.
15975         (emit_insn_modes_h): Emit new #define.  Emit new functions.
15976         (emit_mode_unit_size): New function.
15977         (emit_mode_unit_precision): New function.
15978         (emit_mode_adjustments): Add mode_unit_size adjustments.
15979         (emit_insn_modes_c): Emit new arrays.
15980         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15981         use new inline methods.
15983 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15985         * config/aarch64/aarch64.c (bit_count): Delete prototype
15986         and definition.
15987         (aarch64_print_operand): Use popcount_hwi instead of the above.
15989 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15991         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15992         comment.
15994 2015-08-19  Marek Polacek  <polacek@redhat.com>
15996         PR middle-end/67133
15997         * gimple-ssa-isolate-paths.c
15998         (insert_trap_and_remove_trailing_statements): Rename to ...
15999         (insert_trap): ... this.  Don't remove trailing statements; split
16000         block instead.
16001         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16003 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
16005         PR other/67042
16006         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16007         conditionalize the whole on __GNUC__.  Add fallback code
16008         depending neither on undefined nor implementation-defined behaviour.
16010 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16012         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16013         whitespaces with tab.
16015 2015-08-19  Florian Weimer  <fweimer@redhat.com>
16017         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16018         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16019         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16020         Move Name_Ids instantiation to the Prj.Proc package, to avoid
16021         trampolines.
16023 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16025         * config/arm/arm.c (bounds_check): Use %wd print format
16026         for HOST_WIDE_INT arguments.
16028 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
16030         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16031         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16032         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16033         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16034         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16035         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16036         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16037         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16038         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16039         typedefs.
16041 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
16043         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16044         function.c, graphite-scop-detection.c, haifa-sched.c,
16045         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16046         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16047         varasm.c: Remove typedefs of structs.
16049 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16051         * config/rs6000/altivec.h (vec_adde): New define.
16052         (vec_addec): Likewise.
16053         (vec_double): Likewise.
16054         (vec_bperm): Likewise.
16055         (vec_gb): Likewise.
16056         * config/rs6000/rs6000-builtin.def (ADDE): New
16057         BU_ALTIVEC_OVERLOAD_3.
16058         (ADDEC): Likewise.
16059         (DOUBLE): New BU_VSX_OVERLOAD_1.
16060         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16061         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16062         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16063         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16064         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16065         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16066         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16067         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16068         and P8V_BUILTIN_VEC_VBPERMQ.
16070 2015-08-18  Jason Merrill  <jason@redhat.com>
16072         * print-tree.c (print_node): Handle TREE_BINFO.
16074 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16076         PR middle-end/36757
16077         * builtins.c (expand_builtin_signbit): Add asserts to make sure
16078         we can expand BUILT_IN_SIGNBIT inline.
16079         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16080         * doc/extend.texi: Document the type-generic __builtin_signbit.
16082 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
16084         PR rtl-optimization/67218
16085         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16086         (simplify_unary_operation_1): Use it.
16088 2015-08-18  Marek Polacek  <polacek@redhat.com>
16090         PR middle-end/67222
16091         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16092         if the call isn't valid.
16093         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16094         gimple_call_builtin_p.
16095         (call_may_clobber_ref_p_1): Likewise.
16096         (stmt_kills_ref_p): Likewise.
16098 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16100         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16101         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16102         (mips_hard_regno_scratch_ok): Likewise.
16103         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16104         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16106 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
16108         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16109         (determine_value_range): Call refine_value_range_using_guard for
16110         each loop initial condition to improve value range.
16112 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
16114         * config/i386/i386.c: Remove include of fibheap.h.
16116 2015-08-17  Richard Biener  <rguenther@suse.de>
16118         PR tree-optimization/67221
16119         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16120         (sccvn_dom_walker::before_dom_children): Mark backedges of
16121         non-executable blocks as not executable.
16123 2015-08-17  David Sherwood  <david.sherwood@arm.com>
16125         * config/arm/arm.c (neon_element_bits): Replace call to
16126         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16127         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16128         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16129         (neon_vdup_lane<mode>): Likewise.
16130         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16131         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16132         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16133         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16134         * config/spu/spu.c (arith_immediate_p): Likewise.
16135         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16136         * expr.c (expand_expr_real_2): Likewise.
16137         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16138         * simplify-rtx.c (simplify_immed_subreg): Likewise.
16139         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16140         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16141         New variable.
16142         * fold-const.c (fold_binary_loc): Replace call to
16143         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16144         GET_MODE_UNIT_PRECISION (m).
16146 2015-08-17  Mike Stump  <mikestump@comcast.net>
16148         * config/arm/arm.c (arm_block_move_unaligned_straight):
16149         Emit normal move instead of unaligned load when source or destination
16150         are appropriately aligned.
16152 2015-08-17  Richard Biener  <rguenther@suse.de>
16153             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16155         PR middle-end/16107
16156         * match.pd (div (coss (op @0) : New simplifier.
16158 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
16160         PR rtl-optimization/64164
16161         PR bootstrap/66978
16162         PR middle-end/66983
16163         PR rtl-optimization/67000
16164         PR middle-end/67034
16165         PR middle-end/67035
16166         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16167         * tree-ssa-copyrename.c: Removed.
16168         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16169         -ftree-coalesce-vars.
16170         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16171         * common.opt (ftree-copyrename): Ignore.
16172         (ftree-coalesce-inlined-vars): Likewise.
16173         * doc/invoke.texi: Remove the ignored options above.
16174         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16175         * tree-ssa-coalesce.h: ... here.
16176         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16177         headers required by it.
16178         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16179         across variables when flag_tree_coalesce_vars.  Check register
16180         use and promoted modes to allow coalescing.  Do not coalesce
16181         maybe-byref parms with SSA_NAMEs of other variables, or
16182         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
16183         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16184         with its member functions to tree-ssa-coalesce.c.
16185         (var_map_base_init): Likewise.  Renamed to
16186         compute_samebase_partition_bases.
16187         (partition_view_normal): Drop want_bases parameter.
16188         (partition_view_bitmap): Likewise.
16189         * tree-ssa-live.h: Adjust declarations.
16190         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16191         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16192         default defs at the entry point.
16193         (dump_part_var_map): New.
16194         (compute_optimized_partition_bases): New, called by...
16195         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16196         of compute_samebase_partition_bases.  Adjust.
16197         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16198         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16199         (ssa_default_def_partition): New.
16200         (get_rtl_for_parm_ssa_default_def): New.
16201         (align_local_variable, add_stack_var): Support anonymous SSA
16202         names.
16203         (defer_stack_allocation): Likewise.  Declare earlier.
16204         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16205         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16206         Do no record deferred-allocation marker in
16207         SA.partition_to_pseudo.
16208         (expand_stack_vars): Adjust check for the marker in it.
16209         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16210         redundant MEM attr setting.
16211         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16212         from...
16213         (expand_one_stack_var): ... this.  New wrapper to check and
16214         skip already expanded SSA partitions.
16215         (record_alignment_for_reg_var): New, factored out of...
16216         (expand_one_var): ... this.
16217         (expand_one_ssa_partition): New.
16218         (adjust_one_expanded_partition_var): New.
16219         (expand_one_register_var): Check and skip already expanded SSA
16220         partitions.
16221         (expand_used_vars): Don't create DECLs for anonymous SSA
16222         names.  Expand all SSA partitions, then adjust all SSA names.
16223         (pass::execute): Replace the loops that set
16224         SA.partition_to_pseudo from partition leaders and cleared
16225         DECL_RTL for multi-location variables, and that which used to
16226         rename vars and set attrs, with one that clears DECL_RTL and
16227         checks that PARMs and RESULTs default_defs match DECL_RTL.
16228         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16229         * emit-rtl.c: Include stor-layout.h.
16230         (set_reg_attrs_for_parm): Handle NULL decl.
16231         (set_reg_attrs_for_decl_rtl): Take mode from expression if
16232         it's not a DECL.
16233         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16234         rather than its possibly-NULL DECL.
16235         * explow.c (promote_ssa_mode): New.
16236         * explow.h (promote_ssa_mode): Declare.
16237         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16238         (read_complex_part): Export.
16239         * expr.h (read_complex_part): Declare.
16240         * cfgexpand.h (parm_maybe_byref_p): Declare.
16241         * function.c: Include cfgexpand.h.
16242         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16243         (use_register_for_parm_decl): Wrapper for the above to
16244         special-case the result_ptr.
16245         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16246         (split_complex_args): Take assign_parm_data_all argument.
16247         Pass it to rtl_for_parm.  Set up rtl and context for split
16248         args.  Reset complex parm before fetching its default decl
16249         rtl.
16250         (assign_parms_unsplit_complex): Use the default-def complex
16251         parm rtl if it matches the components.
16252         (assign_parms_augmented_arg_list): Adjust.
16253         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16254         multiple locations.  Recognize split complex args.
16255         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16256         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16257         (assign_parm_setup_block): Prefer SSA-assigned location, and
16258         fill in its address if the memory location of a maybe-byref
16259         parm was not assigned by cfgexpand.
16260         (assign_parm_setup_reg): Likewise.  Adjust its mode as
16261         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
16262         sure passed_pointer parms don't need conversion.  Copy address
16263         or value as needed.
16264         (assign_parm_setup_stack): Prefer SSA-assigned location.
16265         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16266         rtl before testing for pointer bounds.  Special-case result_ptr.
16267         (expand_function_start): Maybe reset DECL_RTL of result.
16268         Prefer SSA-assigned location for result and static chain.
16269         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
16270         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
16271         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16272         anonymous SSA names.  Use promote_ssa_mode.
16273         (get_temp_reg): Likewise.
16274         (remove_ssa_form): Adjust.
16275         * stor-layout.c (layout_decl): Don't set mem attributes of
16276         non-MEMs.
16277         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16278         and get its reg_usage for reg invalidation.
16279         (compute_bb_dataflow): Pass it insn.
16280         (emit_notes_in_bb): Likewise.
16282 2015-08-14  Marek Polacek  <polacek@redhat.com>
16284         * tree-core.h (tree_base): Fix typo.
16286 2015-08-14  Marek Polacek  <polacek@redhat.com>
16288         PR middle-end/67133
16289         * gimple.c (infer_nonnull_range_by_attribute): Check that the
16290         nonnull argument position is not outside function arguments.
16292 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
16294         PR target/67143
16295         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16296         'lconst_atomic' with 'const_atomic'.
16297         (atomic_fetch_<optab><mode>): Likewise.
16298         (atomic_<optab>_fetch<mode>): Likewise.
16299         * config/aarch64/iterators.md (lconst-atomic): Move below
16300         'const_atomic'.
16301         (const_atomic): New.
16303 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
16304             Bernd Schmidt  <bernds@codesourcery.com>
16306         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16307         debug options.
16308         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16309         (DWARF2_DEBUGGING_INFO): Don't define.
16310         * debug.h (dwarf2_lineno_debug_hooks): Declare.
16311         * toplev.c (process_options): Add a case for it.
16312         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16313         (dwarf2out_init): Skip most initializations if
16314         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16315         case.
16316         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16317         DWARF2_LINENO_DEBUGGING_INFO.
16318         * opts.c (set_debug_level): Likewise.
16320 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
16322         * config/arm/types.md (is_neon_type): Add missing types.
16324 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
16326         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16327         for skylake.
16328         * config/i386/i386.c (PTA_SKYLAKE): New macros.
16329         (processor_alias_table): Add skylake description.
16330         (enum processor_model): Add skylake processor.
16331         (arch_names_table): Add skylake record.
16332         * doc/invoke.texi: Add skylake item.
16334 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
16336         * ira-int.h: Include recog.h.
16337         * ira-build.c: Don't include recog.h.
16338         * ira-color.c: Likewise.
16339         * ira-conflicts.c: Likewise.
16340         * ira-costs.c: Likewise.
16341         * ira-emit.c: Likewise.
16342         * ira-lives.c: Likewise.
16343         * ira.c: Likewise.
16344         * sched-deps.c: Likewise.
16345         * sel-sched.c: Likewise.
16346         * target-globals.c: Likewise.
16348 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16350         PR bootstrap/55035
16351         * reload1.c (elimination_costs_in_insn): Make it obvious to the
16352         compiler that the n_dups and n_operands loop bounds are invariant.
16354 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16356         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16357         expressions in A and B.
16359 2015-08-13  Richard Biener  <rguenther@suse.de>
16361         * tree.c (nonnull_arg_p): Move from ...
16362         * tree-vrp.c (nonnull_arg_p): ... here.
16363         * tree.h (nonnull_arg_p): Declare.
16364         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16365         here, register ptr != 0 for nonnull_arg_p pointer arguments.
16366         Properly initialize static chain and by-reference result pointer.
16367         (run_scc_vn): Adjust.
16369 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16371         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16372         TUNE_I6400.
16374 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16376         * config/aarch64/aarch64-protos.h
16377         (aarch64_gen_atomic_cas): Declare.
16378         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16379         Choose appropriate instruction pattern for the target.
16380         (aarch64_gen_atomic_cas): New.
16381         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16382         (atomic_compare_and_swap<mode>_1): Rename to
16383         aarch64_compare_and_swap<mode>.  Fix some indentation.
16384         (aarch64_compare_and_swap<mode>_lse): New.
16385         (aarch64_atomic_cas<mode>): New.
16387 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16389         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16390         (TARGET_LSE): New.
16392 2015-08-13  Richard Biener  <rguenther@suse.de>
16394         PR tree-optimization/67191
16395         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16396         assert we value-numbered last stmts operand because it can validly
16397         trigger for unreachable code.
16399 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16401         PR rtl-optimization/67103
16402         * ifcvt.c (noce_try_store_flag_constants): Move
16403         x = (-(test != 0) & (b - a)) + a transformation to...
16404         (noce_try_cmove): ... Here.  Try it if normal conditional
16405         move fails.
16407 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16409         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16410         pseudo-processors.
16411         * config/mips/mips.md (processor): Remove w32 and w64.
16413 2015-08-13  Richard Biener  <rguenther@suse.de>
16415         PR tree-optimization/66502
16416         PR tree-optimization/67167
16417         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16418         backedge arguments.
16419         (vn_phi_lookup): Adjust.
16420         (vn_phi_insert): Likewise.
16421         (visit_phi): Prefer to value-number to another PHI node
16422         over value-numbering to a PHI argument.
16423         (init_scc_vn): Mark DFS back edges.
16425 2015-08-13  Richard Biener  <rguenther@suse.de>
16427         * gimple.h (gcall::code_): New constant static member.
16428         (gcond::code_): Likewise.
16429         * gimple.c (gcall::code_): Define.
16430         (gcond::code_): Likewise.
16431         (is_a_helper <const gcond *>): Add.
16432         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16433         and forward to a new gcall overload with less checking and a
16434         cheaper way to access the operand.
16435         (gimple_call_lhs_ptr): Likewise.
16436         (gimple_call_set_lhs): Likewise.
16437         (gimple_call_internal_p): Likewise.
16438         (gimple_call_with_bounds_p): Likewise.
16439         (gimple_call_set_with_bounds): Likewise.
16440         (gimple_call_internal_fn): Likewise.
16441         (gimple_call_set_ctrl_altering): Likewise.
16442         (gimple_call_ctrl_altering_p): Likewise.
16443         (gimple_call_fntype): Likewise.
16444         (gimple_call_fn): Likewise.
16445         (gimple_call_fn_ptr): Likewise.
16446         (gimple_call_set_fndecl): Likewise.
16447         (gimple_call_fndecl): Likewise.
16448         (gimple_call_chain): Likewise.
16449         (gimple_call_num_args): Likewise.
16450         (gimple_call_arg): Likewise.
16451         (gimple_call_arg_ptr): Likewise.
16452         (gimple_call_set_arg): Likewise.
16453         (gimple_call_noreturn_p): Likewise.
16454         (gimple_cond_code): Likewise.
16455         (gimple_cond_lhs): Likewise.
16456         (gimple_cond_rhs): Likewise.
16457         (gimple_has_lhs): Reduce checking.
16459 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16461         PR middle-end/25529
16462         * match.pd (div (mult @0 @1) @1) : New simplifier.
16464 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16466         PR target/67071
16467         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16468         predicate to allow construction of vector constants using the
16469         VSLDOI vector shift instruction.
16471         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16472         declaration.
16474         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16475         the number of bytes to be shifted left and filled in with either
16476         all zero or all one bits.
16477         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16478         methods exist.
16479         (output_vec_const_move): On power8, generate XXLORC to generate
16480         a vector constant with all 1's. Do a split if we need to use a
16481         VSLDOI instruction.
16483         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16484         properly test for the MSB.
16486         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16487         vector constants that can be created with VSLDOI.
16489 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16491         revert:
16492         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16493         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16494         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16495         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16496         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16497         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16498         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16499         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16500         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16502 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
16504         * config/xtensa/constraints.md (define_constraint "Y"): New
16505         constraint.
16506         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16507         * config/xtensa/linux.h (ASM_SPEC): Likewise.
16508         * config/xtensa/predicates.md (move_operand): Match constants
16509         and symbols in the presence of TARGET_AUTO_LITPOOLS.
16510         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16511         immediate references to TLS data.
16512         (xtensa_emit_move_sequence): Don't force constants to memory in
16513         the presence of TARGET_AUTO_LITPOOLS.
16514         (print_operand): Add 'y' format, same as default, but capable of
16515         printing SF mode constants as well.
16516         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16517         (movsf_internal): Add movi pattern that loads literal.
16518         (movsf, movdf): Don't force constants to memory in the presence
16519         of TARGET_AUTO_LITPOOLS.
16520         (movdf_internal): Add 'Y' constraint.
16521         * config/xtensa/xtensa.opt (mauto-litpools): New option.
16522         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16524 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16526         * config/arm/arm-fpus.def: Replace booleans with feature flags.
16527         Update comment.
16528         * config/arm/arm.c (ARM_FPU): Update macro.
16529         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16530         (TARGET_FP16): Likewise.
16531         (TARGET_CRYPTO): Likewise.
16532         (TARGET_NEON): Likewise.
16533         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
16534         field features.
16536 2015-08-12  Tom de Vries  <tom@codesourcery.com>
16538         PR other/67092
16539         PR other/67098
16540         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
16541         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16542         accordingly.  Mention default for --with-stage1-ldflags.
16544 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16546         * config/arm/arm.h (arm_fpu_feature_set): New.
16547         (ARM_FPU_FSET_HAS): New.
16548         (FPU_FL_NONE): New.
16549         (FPU_FL_NEON): New.
16550         (FPU_FL_FP16): New.
16551         (FPU_FL_CRYPTO): New.
16553 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16555         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16556         after -mcmodel=large -fPIC sorry.
16558 2015-08-12  Richard Biener  <rguenther@suse.de>
16560         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16561         comparison operand order and commutative ternary op operand order.
16562         (sccvn_dom_walker::cond_stack): New state to track temporary
16563         expressions.
16564         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16565         no longer valid.
16566         (sccvn_dom_walker::record_cond): Add a single temporary conditional
16567         expression.
16568         (sccvn_dom_walker::record_conds): Add a temporary conditional
16569         expressions and all related expressions also true/false.
16570         (sccvn_dom_walker::before_dom_children): Record temporary
16571         expressions based on the controlling condition of a single
16572         predecessor.  When trying to simplify a conditional statement
16573         lookup expressions we might have inserted earlier.
16575 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
16577         PR target/67127
16578         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16579         to ARM core registers.
16581 2015-08-12  Nathan Sidwell  <nathan@acm.org>
16583         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16584         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16586 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
16588         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16589         line with comments.
16590         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16592 2015-08-12  Richard Biener  <rguenther@suse.de>
16594         * gimple.h (remove_pointer): New trait.
16595         (GIMPLE_CHECK2): New inline template function.
16596         (gassign::code_): New constant static member.
16597         (is_a_helper<const gassign *>): Add.
16598         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16599         and forward to a new gassign overload with less checking and a
16600         cheaper way to access the operand.
16601         (gimple_assign_lhs_ptr): Likewise.
16602         (gimple_assign_set_lhs): Likewise.
16603         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16604         Likewise.
16605         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16606         Likewise.
16607         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16608         Likewise.
16609         (gimple_assign_rhs_code): Likewise.
16610         * gimple.c (gassign::code_): Define.
16612 2015-08-12  Richard Biener  <rguenther@suse.de>
16614         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16615         Eliminate edges marked as not executable by SCCVN.
16616         * tree-ssa-sccvn.c: Include gimple-iterator.h.
16617         (cond_dom_walker): Rename to sccvn_dom_walker.
16618         (sccvn_dom_walker::before_dom_children): Value-number defs
16619         of all stmts.
16620         (run_scc_vn): Remove loop value-numbering all SSA names.
16621         Drop not visited SSA names to varying.
16623 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16625         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16626         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16627         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16628         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16629         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16630         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16631         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16632         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16633         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16635 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
16637         PR target/66954
16638         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16639         to enum feature_priority and feature_list.
16640         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16641         and isa_names_table.
16643 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16645         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16646         vect_induction_def.
16648 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16650         PR c/66098
16651         PR c/66711
16652         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16653         account when deciding what was the command-line status.
16655 2015-08-11  Nathan Sidwell  <nathan@acm.org>
16657         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16659         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16660         we're not the only contributor to target phi.
16662 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
16664         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16665         FIXED_REG0.
16667 2015-08-11  Tom de Vries  <tom@codesourcery.com>
16669         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16671 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
16673         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16674         with CPU_SLM.
16675         * config/i386/i386.md (cpu): Remove knl.
16677 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16679         PR libgomp/65742
16680         PR middle-end/66332
16681         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16682         open-coded sequence.
16683         * omp-low.c (oacc_process_reduction_data): Remove handline of
16684         GOMP_DEVICE_HOST_NONSHM.
16686         * lto-streamer-in.c (lto_input_mode_table): Adjust to
16687         GET_MODE_INNER changes.
16689 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16690             Ilya Verbin  <ilya.verbin@intel.com>
16692         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16694 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16696         * doc/options.texi (EnabledBy): Document that the argument must be
16697         a Common option.
16698         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16699         Not enabled by -Wall.
16700         * optc-gen.awk: Give nicer error messages. Detect if the argument
16701         of EnabledBy is not a Common option.
16702         * common.opt (Wnull-dereference): Not enabled by -Wall.
16703         * opt-functions.awk (lang_enabled_by): Nicer error messages.
16705 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16707         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16708         model == 0x4f as Broadwell.
16710 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
16712         PR rtl-optimization/67028
16713         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
16714         Add test to see if a const_int fits in the new mode.
16716 2015-08-07  DJ Delorie  <dj@redhat.com>
16718         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16720 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
16722         PR rtl-optimization/67029
16723         * ira-color.c: Include "recog.h" before including "ira-int.h".
16724         * target-globals.c: Likewise.
16725         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16726         adds an alternative_mask argument and use it instead of
16727         preferred_alternatives.
16728         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16729         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16730         * sched-deps.c: Include "ira-int.h" after including "ira.h".
16731         (sched_analyze_insn): Update call to
16732         ira_implicitly_set_insn_hard_regs.
16733         * sel-sched.c: Include "ira-int.h" after including "ira.h".
16734         (implicit_clobber_conflict_p): Update call to
16735         ira_implicitly_set_insn_hard_regs.
16737 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16739         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16741 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16743         PR target/67002
16744         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16745         currently_expanding_to_rtl is set.
16747 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
16749         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16750         * configure: Regenerate.
16752 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16753             Jiong Wang  <jiong.wang@arm.com>
16755         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16756         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16757         (REG_CLASS_NAMES): Likewise.
16758         (REG_CLASS_CONTENTS): Likewise.
16759         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16760         (aarch64_register_move_cost): Likewise.
16761         (aarch64_load_symref_appropriately): Invoke the new added pattern if
16762         possible.
16763         * config/aarch64/constraints.md (Uc0): New constraint.
16765 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16767         * config/aarch64/constraints.md (Usf): Add the test of
16768         aarch64_is_noplt_call_p.
16770 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16772         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16773         declaration.
16774         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16775         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16776         (call_symbol): Likewise.
16778 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16780         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16781         for vectorizing multiplication patterns.
16782         * tree-vectorizer.h: Adjust the number of patterns.
16784 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16786         * config/i386/sse.md (*vec_concatv2df): Declare added
16787         alternatives as sselog type.
16789 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16791         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16792         all GPRs.
16794 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16796         * config/s390/s390.c (s390_expand_tbegin): Expand either
16797         tbegin_1_z13 or tbegin_1 depending on VX flag.
16798         * config/s390/s390.md ("tbegin_1_z13"): New expander.
16800 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16802         * config/s390/s390.opt: Clarify description for -mzvector
16803         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16804         -mzvector.
16806 2015-08-06  Richard Biener  <rguenther@suse.de>
16808         * gimple.h (gimple_call_set_fn): Access op member directly.
16809         (gimple_call_chain_ptr): Likewise.
16810         (gimple_call_set_chain): Likewise.
16811         (gimple_cond_lhs_ptr): Likewise.
16812         (gimple_cond_set_lhs): Likewise.
16813         (gimple_cond_rhs_ptr): Likewise.
16814         (gimple_cond_set_rhs): Likewise.
16815         (gimple_cond_true_label): Likewise.
16816         (gimple_cond_set_true_label): Likewise.
16817         (gimple_cond_set_false_label): Likewise.
16818         (gimple_cond_false_label): Likewise.
16819         (gimple_label_label): Likewise.
16820         (gimple_label_set_label): Likewise.
16821         (gimple_goto_set_dest): Likewise.
16822         (gimple_asm_input_op): Likewise.
16823         (gimple_asm_input_op_ptr): Likewise.
16824         (gimple_asm_set_input_op): Likewise.
16825         (gimple_asm_output_op): Likewise.
16826         (gimple_asm_output_op_ptr): Likewise.
16827         (gimple_asm_set_output_op): Likewise.
16828         (gimple_asm_clobber_op): Likewise.
16829         (gimple_asm_set_clobber_op): Likewise.
16830         (gimple_asm_label_op): Likewise.
16831         (gimple_asm_set_label_op): Likewise.
16832         (gimple_switch_index): Likewise.
16833         (gimple_switch_index_ptr): Likewise.
16834         (gimple_return_retval_ptr): Likewise.
16835         (gimple_return_retval): Likewise.
16836         (gimple_return_set_retval): Likewise.
16837         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
16838         (gimple_switch_label): Likewise.
16839         (gimple_switch_set_label): Likewise.
16841 2015-08-06  Richard Biener  <rguenther@suse.de>
16843         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16844         bool comparison canonicalization and restrict to integers.
16846 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
16848         * coretypes.h (enum symbol_visibility): Relocate here.
16849         * flag-types.h (enum symbol_visibility): Remove.
16850         * tree-core.h (enum symbol_visibility): Remove.
16852 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
16854         PR target/66870
16855         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16856         for no_split_stack function attribute along with
16857         flag_split_stack.
16858         (rs6000_expand_split_stack_prologue): Likewise.
16860 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16861             Jeff Law  <law@redhat.com>
16863         PR c/16351
16864         * doc/invoke.texi (Wnull-dereference): New.
16865         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16866         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16867         Warn for potential NULL dereferences.
16868         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16869         * ubsan.c (instrument_nonnull_arg): Call
16870         infer_nonnull_range_by_attribute.
16871         (instrument_nonnull_return): Likewise.
16872         * common.opt (Wnull-dereference); New.
16873         * gimple.c (infer_nonnull_range): Remove bool arguments.
16874         (infer_nonnull_range_by_dereference): New.
16875         (infer_nonnull_range_by_attribute): New.
16876         * gimple.h: Update declarations.
16878 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16880         * gensupport.c (sequence_num): Replace with...
16881         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16882         ...these new variables.
16883         (init_rtx_reader_args_cb): Update accordingly.
16884         (get_num_code_insns): Likewise.
16885         (read_md_rtx): Rework to use a while loop and get_c_test.
16886         Use the new counters.  Remove redundant DEFINE_SUBST case.
16887         * genoutput.c (gen_split): Delete.
16888         (main): Don't call it.
16890 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16892         * gensupport.h (get_c_test): Declare.
16893         * gensupport.c (get_c_test): New function.
16894         * genconditions.c (main): Use it.
16895         * genrecog.c (validate_pattern): Likewise.
16896         (match_pattern_1): Likewise.  Remove c_test argument.
16897         (match_pattern): Update accordingly and remove c_test argument.
16898         (main): Update accordingly.
16900 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16902         * gensupport.h (get_num_insn_codes): Declare.
16903         * gensupport.c (get_num_insn_codes): New function.
16904         * genattrtab.c (optimize_attrs): Rename max_insn_code to
16905         num_insn_codes.
16906         (main): Likewise.  Use get_num_insn_codes.
16907         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16909 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16911         PR middle-end/66311
16912         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16913         is zero- rather than sign-extended.
16915 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16917         * target-insns.def (can_extend): Delete.
16919 2015-08-05  Richard Biener  <rguenther@suse.de>
16921         PR tree-optimization/67121
16922         * tree-if-conv.c (combine_blocks): Clear range-info produced
16923         by stmts no longer executed conditionally.
16925 2015-08-05  Nick Clifton  <nickc@redhat.com>
16927         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16928         to allow identical far pointers to remain.
16930 2015-08-05  Richard Biener  <rguenther@suse.de>
16932         PR middle-end/67120
16933         * match.pd: Compare address bases with == if they are decls
16934         or SSA names, not operand_equal_p.  Otherwise fail.
16936 2015-08-05  Richard Biener  <rguenther@suse.de>
16938         PR tree-optimization/67055
16939         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16940         NULL gimple_block.
16942         * g++.dg/torture/pr67055.C: New testcase.
16944 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16946         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16947         noavx512vl.
16948         (define_attr "enabled"): Handle avx521vl and noavx512vl.
16949         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16950         AVX-512 alternative out of SSE.
16951         (define_insn "*vec_concatv2df"): Ditto.
16953 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16955         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16956         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16957         CODE_FOR_avx_ptestv4di.
16958         * config/i386/sse.md (define_mode_iterator V_AVX): New.
16959         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16960         (define_insn "avx_ptest256"): Merge this ...
16961         (define_insn "sse4_1_ptest"): And this ...
16962         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16964 2015-08-05  Richard Biener  <rguenther@suse.de>
16966         PR tree-optimization/67109
16967         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16968         against too big groups.  Print whether this is a load or store
16969         group.  Rename from ...
16970         (vect_analyze_group_access): ... this which is now a wrapper
16971         dissolving an invalid group.
16972         (vect_analyze_data_ref_accesses): Print whether this is a load
16973         or store group.
16975 2015-08-05  Richard Biener  <rguenther@suse.de>
16977         PR middle-end/67107
16978         * match.pd: Guard const_binop result checking against NULL_TREE
16979         result.
16981 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
16983         * cse.c (cse_insn): Restoring old behaviour for src_eqv
16984          when dest and value in the REG_EQUAL are same and dest
16985          is STRICT_LOW_PART.
16987 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
16989         * config/moxie/moxie.h (PRINT_OPERAND,
16990           PRINT_OPERAND_ADDRESS): Remove macros.
16991         * config/moxie/moxie-protos.h (moxie_print_operand,
16992           moxie_print_operand_address): Remove declaration.
16993         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16994           TARGET_PRINT_OPERAND_ADDRESS): Define.
16995           (moxie_print_operand, moxie_print_operand_address): Make static.
16997 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16999         PR target/66731
17000         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17001         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17003 2015-08-04  Richard Biener  <rguenther@suse.de>
17005         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17006         generated code.
17007         (dt_operand::gen_gimple_expr): Adjust.
17009 2015-08-04  Richard Biener  <rguenther@suse.de>
17011         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17012         bool compares on RHS.
17013         * match.pd: Add X ==/!= !X is false/true pattern.
17015 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
17017         * config/aarch64/aarch64.c: Change inner loop statement cost
17018         to be consistent with other targets.
17020 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
17022         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17023         targets.
17025 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17027         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17028         (machine_function): Remove pseudos field.
17030 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17032         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17033         Exit early and use target_option_current_node if processing current
17034         pragma.
17036 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17038         * doc/extend.texi (AArch64 Function Attributes): New node.
17039         (AArch64 Pragmas): Likewise.
17041 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17043         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17044         Initialize simd builtins if TARGET_SIMD.
17045         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17046         Make sure that the builtins are initialized only once no matter how
17047         many times the function is called.
17048         (aarch64_init_builtins): Unconditionally initialize crc builtins.
17049         (aarch64_relayout_simd_param): New function.
17050         (aarch64_simd_expand_args): Use above during argument expansion.
17051         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17052         simd builtins if TARGET_SIMD.
17053         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17054         prototype.
17055         (aarch64_relayout_simd_types): Likewise.
17057 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17059         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17060         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17061         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17062         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17063         static keyword.
17064         (aarch64_reset_previous_fndecl): New function.
17065         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17066         the string.
17067         * config/aarch64/aarch64-c.c: New file.
17068         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17069         Push and pop options at beginning and end.  Remove ifdef
17070         __ARM_FEATURE_CRC32.
17071         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17072         Add pragma +nothing+simd and +nothing+crypto where appropriate.
17073         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17074         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17075         Define prototype.
17076         (aarch64_register_pragmas): Likewise.
17077         (aarch64_reset_previous_fndecl): Likewise.
17078         (aarch64_process_target_attr): Likewise.
17079         (aarch64_override_options_internal): Likewise.
17081 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17083         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17084         New function.
17085         (aarch64_can_inline_p): Likewise.
17086         (TARGET_CAN_INLINE_P): Define.
17088 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17090         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17091         Remove static.  Handle OPT_mgeneral_regs_only,
17092         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17093         OPT_momit_leaf_frame_pointer.
17094         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17095         (aarch64_attr_opt_type): New enum.
17096         (aarch64_attribute_info): New struct.
17097         (aarch64_handle_attr_arch): New function.
17098         (aarch64_handle_attr_cpu): Likewise.
17099         (aarch64_handle_attr_tune): Likewise.
17100         (aarch64_handle_attr_isa_flags): Likewise.
17101         (aarch64_attributes): New table.
17102         (aarch64_process_one_target_attr): New function.
17103         (num_occurences_in_str): Likewise.
17104         (aarch64_process_target_attr): Likewise.
17105         (aarch64_option_valid_attribute_p): Likewise.
17106         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17107         * config/aarch64/aarch64-protos.h: Include input.h
17108         (aarch64_handle_option): Declare prototype.
17110 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17112         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17113         * config/aarch64/aarch64.c: Include target-globals.h
17114         (aarch64_previous_fndecl): New variable.
17115         (aarch64_set_current_function): New function.
17116         (TARGET_SET_CURRENT_FUNCTION): Define.
17118 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17120         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17121         (explicit_arch): Likewise.
17122         (x_aarch64_isa_flags): Likewise.
17123         (mgeneral-regs-only): Mark as Save.
17124         (mfix-cortex-a53-835769): Likewise.
17125         (mcmodel=): Likewise.
17126         (mstrict-align): Likewise.
17127         (momit-leaf-frame-pointer): Likewise.
17128         (mtls-dialect): Likewise.
17129         (master=): Likewise.
17130         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17131         (aarch64_isa_flags): Remove extern declaration.
17132         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17133         to indicate success or failure.
17134         (aarch64_validate_march): Likewise.
17135         (aarch64_validate_mtune): Likewise.
17136         (aarch64_isa_flags): Delete.
17137         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17138         instead of aarch64_isa_flags.
17139         (aarch64_get_tune_cpu): New function.
17140         (aarch64_get_arch): Likewise.
17141         (aarch64_override_options): Use above and set up explicit_tune_core
17142         and explicit_arch.
17143         (aarch64_print_extension): Move earlier in file.  Add isa_flags
17144         argument and use that instead of the global aarch64_isa_flags.
17145         (aarch64_option_save): New function.
17146         (aarch64_option_restore): Likewise.
17147         (aarch64_option_print): Likewise.
17148         (aarch64_declare_function_name): Likewise.
17149         (aarch64_start_file): Delete.
17150         (TARGET_ASM_FILE_START): Do not define.
17151         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17152         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17153         Declare prototype.
17155 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17157         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17158         flag_omit_leaf_frame_pointer to 2.
17160 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17162         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17163         define to 0 or 1.
17164         (TARGET_FIX_ERR_A53_835769): New macro.
17165         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17166         handling of opts->x_aarch64_fix_a53_err835769.
17167         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17168         than aarch64_fix_a53_err835769.
17169         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17170         * config/aarch64/aarch64-linux.h: Likewise.
17172 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
17174         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17175         ix86_expand_int_movcc as boolean.
17177 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17179         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17180         (aarch64_cpu_string): Likewise.
17181         (aarch64_tune_string): Likewise.
17182         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17183         (aarch64_parse_extension): Return aarch64_parse_opt_result.
17184         Add extra argument to put result into.
17185         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
17186         (aarch64_parse_cpu): Add arguments to put results into. Return
17187         aarch64_parse_opt_result.
17188         (aarch64_parse_tune): Likewise.
17189         (aarch64_override_options_after_change_1): New function.
17190         (aarch64_override_options_internal): New function.
17191         (aarch64_validate_mcpu): Likewise.
17192         (aarch64_validate_march): Likewise.
17193         (aarch64_validate_mtune): Likewise.
17194         (aarch64_override_options): Update to reflect above changes.
17195         Move some logic into aarch64_override_options_internal.
17196         Initialize target_option_default_node and target_option_current_node.
17197         (aarch64_override_options_after_change): Move logic into
17198         aarch64_override_options_after_change_1 and call it with global_options.
17199         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17200         flag values from that.
17202 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17204         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17205         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17206         * config/aarch64/aarch64.c (struct processor): Add arch field.
17207         (all_architectures): Handle above, move above all_cores.
17208         (all_cores): Handle above.
17209         (aarch64_parse_arch): Handle above changes.
17210         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17211         above.  Update comments.
17212         (armv8.1-a): Likewise.
17213         * config/aarch64/aarch64-cores.def: Update according to above.
17214         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17215         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17216         aarch64_arch_driver_info.
17218 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17220         * config/aarch64/aarch64.c (struct processor): Add ident field.
17221         Rename core sched_core.
17222         (all_cores): Handle above changes.
17223         (all_architectures): Likewise.
17224         (aarch64_parse_arch): Likewise.
17225         (aarch64_override_options): Likewise.
17227 2015-08-04  Richard Biener  <rguenther@suse.de>
17229         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17230         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17231         comparisons embedded in [VEC_]COND_EXPRs.
17233 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
17235         * tree-if-conv.c: Fix various typos in comments.
17236         * tree-vect-stmts.c: Likewise.
17238 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17240         PR tree-optimization/67043
17241         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17242         preheader after hoisting invariant in it.
17243         (find_defs): Force recomputation of all luids.
17245 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
17247         * config/rs6000/htm.md (tabort.): Restrict the source operand to
17248         using a base register.
17250 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
17252         * main.c (main): Pass in NULL for toplev's external_timer.
17253         * timevar.c: Include coretypes.h.
17254         (class timer::named_items): New.
17255         (timer::named_items::named_items): New.
17256         (timer::named_items::~named_items): New.
17257         (timer::named_items::push): New.
17258         (timer::named_items::pop): New.
17259         (timer::named_items::print): New.
17260         (timer::timer): Initialize field "m_jit_client_items".
17261         (timer::~timer): New.
17262         (timer::push): Move bulk of implementation to...
17263         (timer::push_internal): ...here.  New function.
17264         (timer::pop): Move bulk of implementation to...
17265         (timer::pop_internal): ...here.  New function.
17266         (timer::push_client_item): New.
17267         (timer::pop_client_item): New.
17268         (timer::print_row): New function, taken from timer::print.
17269         (timer::print): Print "GCC items" header if we also have client
17270         items.  Move row-printing to timer::print_row.  Print any client
17271         items.
17272         (timer::get_topmost_item_name): New method.
17273         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17274         (TV_JIT_CLIENT_CODE): New.
17275         * timevar.h (timer::push_client_item): New declaration.
17276         (timer::pop_client_item): New declaration.
17277         (timer::get_topmost_item_name): New method.
17278         (timer::push_internal): New declaration.
17279         (timer::pop_internal): New declaration.
17280         (timer::print_row): New declaration.
17281         (timer::named_items): New declaration.
17282         (timer::m_jit_client_items): New field.
17283         (timer): Add friend class named_items.
17284         (auto_timevar::auto_timevar): Add timer param.
17285         (auto_timevar::~auto_timevar): Use field "m_timer".
17286         (auto_timevar::m_timer): New field.
17287         * toplev.c (initialize_rtl): Add g_timer as param when
17288         constructing auto_timevar instance.
17289         (toplev::toplev): Add "external_timer" param, and use it to
17290         initialize the "g_timer" global if non-NULL.
17291         (toplev::~toplev): If this created "g_timer", delete it.
17292         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17293         with "external_timer" timer *.
17295 2015-08-03  Alexander Basov <coohpt@gmail.com>
17297         PR middle-end/64744
17298         PR middle-end/48470
17299         PR middle-end/43404
17300         * cfgexpand.c (expand_one_var): Add check if stack is going to
17301         be used in naked function.
17302         * expr.c (expand_expr_addr_expr_1): Remove excess checking
17303         whether expression should not reside in MEM.
17304         * function.c (use_register_for_decl): Do not use registers for
17305         non-register things (volatile, float, BLKMode) in naked functions.
17307 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
17309         PR target/67060
17310         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17311         Adjust splits to match new pattern.
17313 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17315         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17316         (VEC_M): Likewise.
17317         (VEC_N): Likewise.
17318         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17319         point in VSX registers.
17321         * config/rs6000/constraints.md (wb constraint): Document unused
17322         w<x> constraint.
17323         (we constraint): Likewise.
17324         (wo constraint): Likewise.
17325         (wp constraint): New constraint for IEEE 128-bit floating point in
17326         VSX registers.
17327         (wq constraint): Likewise.
17329         * config/rs6000/predicates.md (easy_fp_constant): Add support for
17330         IEEE 128-bit floating point in VSX registers.
17331         (easy_scalar_constant): Likewise.
17333         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17334         constraints (wp, wq) for IEEE 128-bit floating point in VSX
17335         registers.
17336         (rs6000_init_hard_regno_mode_ok): Likewise.
17338         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17339         floating point in VSX registers.
17340         (VSX_L): Likewise.
17341         (VSX_M): Likewise.
17342         (VSX_M2): Likewise.
17343         (VSm): Likewise.
17344         (VSs): Likewise.
17345         (VSr): Likewise.
17346         (VSa): Likewise.
17347         (VSv): Likewise.
17348         (vsx_le_permute_<mode>): Add support to properly swap bytes for
17349         IEEE 128-bit floating point in VSX registers on little endian.
17350         (vsx_le_undo_permute_<mode>): Likewise.
17351         (vsx_le_perm_load_<mode>): Likewise.
17352         (vsx_le_perm_store_<mode>): Likewise.
17353         (splitters for IEEE 128-bit fp moves): Likewise.
17355         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17356         wq constraints.
17358         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17359         floating point in VSX registers.
17360         (VM2): Likewise.
17362         * doc/md.text (Machine Constraints): Document wp and wq
17363         constraints on PowerPC.
17365 2015-08-03  Jeff Law  <law@redhat.com>
17367         PR middle-end/66314
17368         PR gcov-profile/66899
17369         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17370         iterate over the jump threading paths when an element in the
17371         jump threading paths array is eliminated.
17373 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
17375         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17377 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
17379         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17380         is_use_properly_guarded the variable def_preds.  Free its
17381         contents before returning.
17382         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17383         (is_use_properly_guarded): Replace local variable def_preds with
17384         a parameter.  Adjust accordingly.  Only update *def_preds if it's
17385         the empty vector.
17387 2015-08-03  Richard Biener  <rguenther@suse.de>
17389         * genmatch.c (simplify::for_subst_vec): New member.
17390         (binary_ok): New helper for for lowering.
17391         (lower_for): Delay substituting operators into result expressions
17392         if we can merge the results eventually again.
17393         (capture_info::walk_result): Adjust for user_id appearing as
17394         result expression operator.
17395         (expr::gen_transform): Likewise.
17396         (dt_simplify::gen_1): Likewise.
17397         (dt_simplify::gen): Pass not substituted operators to tail
17398         functions or initialize local variable with it.
17399         (decision_tree::gen): Adjust function signature.
17400         * match.pd: Fix tests against global code and add default
17401         cases to switch stmts.
17403 2015-08-03  Richard Biener  <rguenther@suse.de>
17405         * genmatch.c (dt_simplify::gen): Create captures array
17406         with an initializer.
17408 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17410         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17411         the host compiler is affected by placement new aliasing bug.
17412         * configure: Regenerate.
17413         * Makefile.in (ALIASING_FLAGS): New variable.
17414         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17416 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17418         PR target/66731
17419         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17420         (negmulsf3_vfp): Likewise.
17421         (muldf3negdf_vfp): Disable for -frounding-math.
17422         (mulsf3negsf_vfp): Likewise.
17423         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17424         fix MULT cost with -frounding-math.
17426 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17428         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17429         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17430         explicit.  Prefer to add the flag whenever possible.
17431         (noce_process_if_block): Try noce_try_store_flag_constants before
17432         noce_try_cmove.
17434 2015-08-03  Richard Biener  <rguenther@suse.de>
17436         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17437         New hash-map to record equivalent transforms.
17438         (dt_node::analyze): Populate the equivalent transforms hash-map.
17439         (dt_simplify::info): Add reference to hash-map entry.
17440         (dt_simplify::gen): If we have split out a function for the
17441         transform, generate a call to it.
17442         (sinfo_hashmap_traits::hash): New function.
17443         (compare_op): New helper function for ...
17444         (sinfo_hashmap_traits::equal_keys): ... this new function.
17445         (decision_tree::gen): Split out common equivalent transforms
17446         into functions.
17448 2015-08-03  Richard Biener  <rguenther@suse.de>
17450         * gimple-fold.c (fold_gimple_assign): Remove folding of
17451         the comparison in COND_EXPRs.
17453 2015-08-03  Richard Biener  <rguenther@suse.de>
17455         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17456         on the rhs of assignments first simplify the embedded
17457         GENERIC condition.
17459 2015-08-03  Richard Biener  <rguenther@suse.de>
17461         PR tree-optimization/66917
17462         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17463         field.
17464         (DR_VECT_AUX): New macro.
17465         (set_dr_misalignment): Adjust.
17466         (dr_misalignment): Likewise.
17467         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17468         Compute whether the base is at least element aligned.
17469         * tree-vect-stmts.c (ensure_base_align): Adjust.
17470         (vectorizable_store): If the base is not element aligned
17471         preserve alignment of the original access if misalignment is unknown.
17472         (vectorizable_load): Likewise.
17474 2015-08-02  Martin Sebor  <msebor@redhat.com>
17476         * c-family/c.opt (-Wframe-address): New warning option.
17477         * doc/invoke.texi (Wframe-address): Document it.
17478         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17479         Clarify possible effects of calling the functions with non-zero
17480         arguments and mention -Wframe-address.
17481         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17483 2015-08-01  Michael Collison  <michael.collison@linaro.org
17484             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17486         * config/arm/arm.md (*arm_smin_cmp): New pattern.
17487         (*arm_umin_cmp): Likewise.
17489 2015-08-01  Caroline Tice  <cmtice@google.com>
17491         PR 66521
17492         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17493         global variables.
17494         (vtbl_find_mangled_name):  New function.
17495         (vtbl_register_mangled_name):  New function.
17496         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
17497         mangled name in mangled name vectors.
17498         (find_or_create_vtbl_map_node):  Ditto.
17499         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
17500         update recursion_depth on function entry; pass it to every recursive
17501         call; automatically exit if depth > 25 (give up looking at that point).
17502         (verify_bb_vtables):  Initialize recursion_depth and pass it to
17503         var_is_used_for_virtual_call_p.
17504         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17505         global variable decls.
17506         (vtbl_register_mangled_name): New extern function decl.
17508 2015-08-01  Tom de Vries  <tom@codesourcery.com>
17510         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17511         function.
17512         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17513         Declare.
17514         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17515         operation_no_trapping_overflow.  Allow non-overflow operations.
17516         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17517         operations.
17519 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17521         PR target/67049
17522         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17524 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17526         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17527         Enable for TARGET_32BIT.
17528         (*if_move_neg): Likewise.
17530 2015-07-31  Nick Clifton  <nickc@redhat.com>
17532         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17533         Returns true for __model__.
17534         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17536 2015-07-31  Alan Modra  <amodra@gmail.com>
17538         PR target/66870
17539         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17540         (rs6000_emit_prologue): Set it.
17541         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17543 2015-07-31  Richard Biener  <rguenther@suse.de>
17545         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17546         -> X == (C1 ^ C2) which is already implemented in match.pd.
17547         Remove redundant dispatching to fold_relational_const.
17548         Move unordered self and NaN compares ...
17549         * match.pd: ... as patterns here.  Remove some stray captures
17550         and add a comment.
17552 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
17554         * config/i386/i386.c
17555         (bdesc_special_args): Convert mask type from signed to unsigned for
17556         masked builtins.
17557         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17558         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17559         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17560         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17561         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17562         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17563         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17564         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17565         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17566         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17567         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17568         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17569         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17570         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17571         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17572         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17573         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17574         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17575         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17576         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17577         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17578         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17579         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17580         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17581         * config/i386/i386-builtin-types.def
17582         (V16QI_FTYPE_V16SI): Remove.
17583         (V8DF_FTYPE_V8SI): Ditto.
17584         (V8HI_FTYPE_V8DI): Ditto.
17585         (V8SI_FTYPE_V8DI): Ditto.
17586         (V8SF_FTYPE_V8DF): Ditto.
17587         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17588         (V16HI_FTYPE_V16SI): Ditto.
17589         (V16SF_FTYPE_V16HI): Ditto.
17590         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17591         (V16SF_FTYPE_V16SI): Ditto.
17592         (V4DI_FTYPE_V4DI): Ditto.
17593         (V16SI_FTYPE_V16SF): Ditto.
17594         (V16SF_FTYPE_FLOAT): Ditto.
17595         (V8DF_FTYPE_DOUBLE): Ditto.
17596         (V8DI_FTYPE_INT64): Ditto.
17597         (V8DI_FTYPE_V4DI): Ditto.
17598         (V16QI_FTYPE_V8DI): Ditto.
17599         (UINT_FTYPE_V4SF): Ditto.
17600         (UINT64_FTYPE_V4SF): Ditto.
17601         (UINT_FTYPE_V2DF): Ditto.
17602         (UINT64_FTYPE_V2DF): Ditto.
17603         (V16SI_FTYPE_V16SI): Ditto.
17604         (V8DI_FTYPE_V8DI): Ditto.
17605         (V16SI_FTYPE_PV4SI): Ditto.
17606         (V16SF_FTYPE_PV4SF): Ditto.
17607         (V8DI_FTYPE_PV2DI): Ditto.
17608         (V8DF_FTYPE_PV2DF): Ditto.
17609         (V4DI_FTYPE_PV2DI): Ditto.
17610         (V4DF_FTYPE_PV2DF): Ditto.
17611         (V16SI_FTYPE_PV2SI): Ditto.
17612         (V16SF_FTYPE_PV2SF): Ditto.
17613         (V8DI_FTYPE_PV4DI): Ditto.
17614         (V8DF_FTYPE_PV4DF): Ditto.
17615         (V8SF_FTYPE_FLOAT): Ditto.
17616         (V4SF_FTYPE_FLOAT): Ditto.
17617         (V4DF_FTYPE_DOUBLE): Ditto.
17618         (V8SF_FTYPE_PV4SF): Ditto.
17619         (V8SI_FTYPE_PV4SI): Ditto.
17620         (V4SI_FTYPE_PV2SI): Ditto.
17621         (V8SF_FTYPE_PV2SF): Ditto.
17622         (V8SI_FTYPE_PV2SI): Ditto.
17623         (V16SF_FTYPE_PV8SF): Ditto.
17624         (V16SI_FTYPE_PV8SI): Ditto.
17625         (V8DI_FTYPE_V8SF): Ditto.
17626         (V4DI_FTYPE_V4SF): Ditto.
17627         (V2DI_FTYPE_V4SF): Ditto.
17628         (V64QI_FTYPE_QI): Ditto.
17629         (V32HI_FTYPE_HI): Ditto.
17630         (V8UHI_FTYPE_V8UHI): Ditto.
17631         (V16UHI_FTYPE_V16UHI): Ditto.
17632         (V32UHI_FTYPE_V32UHI): Ditto.
17633         (V2UDI_FTYPE_V2UDI): Ditto.
17634         (V4UDI_FTYPE_V4UDI): Ditto.
17635         (V8UDI_FTYPE_V8UDI): Ditto.
17636         (V4USI_FTYPE_V4USI): Ditto.
17637         (V8USI_FTYPE_V8USI): Ditto.
17638         (V16USI_FTYPE_V16USI): Ditto.
17639         (V2DF_FTYPE_V2DF_UINT64): Ditto.
17640         (V2DI_FTYPE_V2DF_V2DF): Ditto.
17641         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17642         (V8DF_FTYPE_V8DF_V8DI): Ditto.
17643         (V4SF_FTYPE_V4SF_UINT64): Ditto.
17644         (V4SI_FTYPE_V4SF_V4SF): Ditto.
17645         (V16SF_FTYPE_V16SF_V16SI): Ditto.
17646         (V64QI_FTYPE_V32HI_V32HI): Ditto.
17647         (V32HI_FTYPE_V16SI_V16SI): Ditto.
17648         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17649         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17650         (V32HI_FTYPE_V64QI_V64QI): Ditto.
17651         (V32HI_FTYPE_V32HI_V32HI): Ditto.
17652         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17653         (V16SI_FTYPE_V16SI_V4SI): Ditto.
17654         (V16SI_FTYPE_V16SI_V16SI): Ditto.
17655         (V16SI_FTYPE_V32HI_V32HI): Ditto.
17656         (V16SI_FTYPE_V16SI_SI): Ditto.
17657         (V8DI_FTYPE_V8DI_V8DI): Ditto.
17658         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17659         (V8DI_FTYPE_V16SI_V16SI): Ditto.
17660         (V8DI_FTYPE_V8DI_V2DI): Ditto.
17661         (QI_FTYPE_QI): Ditto.
17662         (SI_FTYPE_SI): Ditto.
17663         (DI_FTYPE_DI): Ditto.
17664         (QI_FTYPE_QI_QI): Ditto.
17665         (QI_FTYPE_QI_INT): Ditto.
17666         (HI_FTYPE_HI_INT): Ditto.
17667         (SI_FTYPE_SI_INT): Ditto.
17668         (DI_FTYPE_DI_INT): Ditto.
17669         (HI_FTYPE_V16QI_V16QI): Ditto.
17670         (SI_FTYPE_V32QI_V32QI): Ditto.
17671         (DI_FTYPE_V64QI_V64QI): Ditto.
17672         (QI_FTYPE_V8HI_V8HI): Ditto.
17673         (HI_FTYPE_V16HI_V16HI): Ditto.
17674         (SI_FTYPE_V32HI_V32HI): Ditto.
17675         (QI_FTYPE_V4SI_V4SI): Ditto.
17676         (QI_FTYPE_V8SI_V8SI): Ditto.
17677         (QI_FTYPE_V2DI_V2DI): Ditto.
17678         (QI_FTYPE_V4DI_V4DI): Ditto.
17679         (QI_FTYPE_V8DI_V8DI): Ditto.
17680         (HI_FTYPE_V16SI_V16SI): Ditto.
17681         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17682         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17683         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17684         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17685         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17686         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17687         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17688         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17689         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17690         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17691         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17692         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17693         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17694         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17695         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17696         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17697         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17698         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17699         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17700         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17701         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17702         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17703         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17704         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17705         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17706         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17707         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17708         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17709         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17710         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17711         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17712         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17713         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17714         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17715         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17716         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17717         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17718         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17719         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17720         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17721         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17722         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17723         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17724         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17725         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17726         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17727         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17728         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17729         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17730         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17731         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17732         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17733         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17734         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17735         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17736         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17737         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17738         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17739         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17740         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17741         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17742         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17743         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17744         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17745         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17746         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17747         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17748         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17749         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17750         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17751         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17752         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17753         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17754         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17755         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17756         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17757         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17758         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17759         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17760         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17761         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17762         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17763         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17764         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17765         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17766         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17767         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17768         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17769         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17770         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17771         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17772         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17773         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17774         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17775         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17776         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17777         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17778         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17779         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17780         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17781         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17782         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17783         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17784         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17785         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17786         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17787         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17788         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17789         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17790         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17791         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17792         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17793         (HI_FTYPE_HI): Ditto.
17794         (HI_FTYPE_V16QI): Ditto.
17795         (SI_FTYPE_V32QI): Ditto.
17796         (DI_FTYPE_V64QI): Ditto.
17797         (QI_FTYPE_V8HI): Ditto.
17798         (HI_FTYPE_V16HI): Ditto.
17799         (SI_FTYPE_V32HI): Ditto.
17800         (QI_FTYPE_V4SI): Ditto.
17801         (QI_FTYPE_V8SI): Ditto.
17802         (HI_FTYPE_V16SI): Ditto.
17803         (QI_FTYPE_V2DI): Ditto.
17804         (QI_FTYPE_V4DI): Ditto.
17805         (QI_FTYPE_V8DI): Ditto.
17806         (V16QI_FTYPE_HI): Ditto.
17807         (V32QI_FTYPE_SI): Ditto.
17808         (V64QI_FTYPE_DI): Ditto.
17809         (V8HI_FTYPE_QI): Ditto.
17810         (V16HI_FTYPE_HI): Ditto.
17811         (V32HI_FTYPE_SI): Ditto.
17812         (V4SI_FTYPE_QI): Ditto.
17813         (V4SI_FTYPE_HI): Ditto.
17814         (V8SI_FTYPE_QI): Ditto.
17815         (V8SI_FTYPE_HI): Ditto.
17816         (V2DI_FTYPE_QI): Ditto.
17817         (V4DI_FTYPE_QI): Ditto.
17818         (HI_FTYPE_HI_HI): Ditto.
17819         (SI_FTYPE_SI_SI): Ditto.
17820         (DI_FTYPE_DI_DI): Ditto.
17821         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17822         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17823         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17824         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17825         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17826         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17827         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17828         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17829         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17830         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17831         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17832         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17833         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17834         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17835         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17836         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17837         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17838         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17839         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17840         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17841         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17842         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17843         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17844         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17845         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17846         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17847         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17848         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17849         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17850         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17851         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17852         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17853         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17854         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17855         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17856         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17857         (V16SI_FTYPE_HI): Ditto.
17858         (V8DI_FTYPE_QI): Ditto.
17859         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17860         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17861         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17862         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17863         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17864         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17865         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17866         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17867         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17868         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17869         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17870         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17871         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17872         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17873         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17874         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17875         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17876         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17877         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17878         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17879         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17880         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17881         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17882         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17883         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17884         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17885         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17886         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17887         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17888         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17889         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17890         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17891         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17892         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17893         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17894         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17895         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17896         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17897         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17898         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17899         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17900         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17901         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17902         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17903         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17904         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17905         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17906         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17907         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17908         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17909         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17910         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17911         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17912         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17913         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17914         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17915         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17916         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17917         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17918         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17919         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17920         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17921         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17922         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17923         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17924         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17925         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17926         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17927         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17928         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17929         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17930         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17931         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17932         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17933         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17934         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17935         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17936         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17937         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17938         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17939         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17940         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17941         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17942         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17943         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17944         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17945         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17946         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17947         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17948         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17949         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17950         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17951         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17952         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17953         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17954         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17955         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17956         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17957         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17958         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17959         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17960         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17961         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17962         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17963         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17964         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17965         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17966         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17967         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17968         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17969         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17970         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17971         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17972         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17973         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17974         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17975         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17976         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17977         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17978         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17979         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17980         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17981         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17982         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17983         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17984         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17985         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17986         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17987         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17988         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17989         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17990         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17991         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17992         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17993         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17994         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17995         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17996         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17997         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17998         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17999         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18000         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18001         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18002         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18003         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18004         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18005         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18006         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18007         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18008         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18009         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18010         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18011         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18012         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18013         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18014         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18015         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18016         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18017         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18018         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18019         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18020         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18021         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18022         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18023         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18024         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18025         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18026         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18027         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18028         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18029         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18030         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18031         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18032         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18033         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18034         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18035         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18036         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18037         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18038         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18039         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18040         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18041         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18042         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18043         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18044         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18045         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18046         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18047         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18048         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18049         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18050         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18051         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18052         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18053         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18054         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18055         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18056         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18057         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18058         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18059         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18060         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18061         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18062         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18063         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18064         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18065         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18066         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18067         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18068         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18069         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18070         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18071         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18072         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18073         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18074         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18075         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18076         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18077         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18078         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18079         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18080         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18081         (QI_FTYPE_V8DF_INT_QI): Ditto.
18082         (QI_FTYPE_V4DF_INT_QI): Ditto.
18083         (QI_FTYPE_V2DF_INT_QI): Ditto.
18084         (HI_FTYPE_V16SF_INT_HI): Ditto.
18085         (QI_FTYPE_V8SF_INT_QI): Ditto.
18086         (QI_FTYPE_V4SF_INT_QI): Ditto.
18087         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18089 2015-07-31  Richard Biener  <rguenther@suse.de>
18091         * gimple-fold.c (fold_gimple_assign): Remove folding of
18092         GIMPLE_BINARY_RHS.
18094 2015-07-31  Tom de Vries  <tom@codesourcery.com>
18096         PR tree-optimization/66846
18097         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18098         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18099         (expand_omp_target) [ENABLE_CHECKING]: Same.
18100         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18101         cfun if !LOOPS_NEED_FIXUP.
18102         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
18103         that omp_for already has its own loop struct.
18104         * tree-parloops.c (create_phi_for_local_result)
18105         (create_call_for_reduction): Handle simple latch bb.
18106         (create_parallel_loop): Add simple latch bb to preserve
18107         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
18108         (gen_parallel_loop): Remove call to cancel_loop_tree.
18109         (parallelize_loops): Skip loops that are inner loops of parallelized
18110         loops.
18111         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18112         verify_loop_structure.
18114 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18116         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18117         * config/v850/v850.md (RV_REGNUM): New constants.
18118         * config/v850/v850.c (v850_libcall_value): New functions.
18119         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18120         (TARGET_LIBCALL_VALUE): Define.
18122 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18124         * rtl.h (lowpart_subreg): Move in file.
18125         * loop-iv.c (lowpart_subreg): Move to...
18126         * simplify-rtx.c (lowpart_subreg): ...here.
18127           (simplify_binary_operation_1): Use lowpart_subreg instead of
18128           simplify_gen_subreg.
18129         * expr.c (expand_expr_real_2): Ditto.
18130         * emit-rtl.c (gen_lowpart_common): Ditto.
18131         * combine.c (gen_lowpart_for_combine): Ditto.
18132         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18133           expand_debug_source_expr): Ditto.
18135 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18137         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18138         (expand_builtin_atomic_clear): Remove support for atomic_clear
18139         pattern.
18141 2015-07-30  Richard Biener  <rguenther@suse.de>
18143         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18144         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18145         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
18146         redundant operand canonicalization.
18148 2015-07-30  David Sherwood  <david.sherwood@arm.com>
18150         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18151         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18152         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18153         * config/arm/arm.c (neon_valid_immediate): Likewise.
18154         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18155         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18156         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18157         (expand_vec_perm_vpshufb2_vpermq): Likewise.
18158         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18159         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18160         * config/i386/sse.md
18161         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18162         (*ssse3_palignr<mode>_perm): Likewise.
18163         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18164         * config/spu/spu.c (arith_immediate_p): Likewise.
18165         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18166         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18168 2015-07-30  Richard Biener  <rguenther@suse.de>
18170         * genmatch.c (decision_tree::gen_gimple): Merge with ...
18171         (decision_tree::gen_generic): ... this into ...
18172         (decision_tree::gen): ... this.
18173         (main): Adjust callers.
18175 2015-07-30  Richard Biener  <rguenther@suse.de>
18177         * genmatch.c (verbose): New global.
18178         (warning_at): Add overload with source_location.
18179         (capture_info::capture_info): Add bool whether generating gimple
18180         or generic.  Add gimple member.
18181         (capture_info::cinfo): Add capture member.
18182         (capture_info::walk_match): Record capture.  Warn on
18183         non-captured leafs.
18184         (capture_info::walk_c_expr): Add more fragments captures cannot
18185         escape through.  Warn on escaped captures.
18186         (dt_simplify::gen_1): Warn on operands we force to have no
18187         side-effects.
18188         (main): Initialize verbose.
18189         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18191 2015-07-30  Richard Biener  <rguenther@suse.de>
18193         PR middle-end/67053
18194         * match.pd: Allow both operands to independently have conversion
18195         when simplifying compares of addresses.
18197 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
18199         PR target/66217
18200         PR target/67045
18201         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18202         around those cases that need one.
18204 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
18206         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18208 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
18210         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18211         New.  Copied from config/i386/gnu-user.h.
18212         (ASM_COMMENT_START): Likewise.
18213         (DBX_REGISTER_NUMBER): Likewise.
18215 2015-07-29  Richard Biener  <rguenther@suse.de>
18217         * gimple-fold.c (fold_gimple_cond): Remove.
18218         (fold_stmt_1): Do not call it.
18220 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
18222         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18223         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18225         * config/aarch64/aarch64-modes.def: Add HFmode.
18227         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18228         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18230         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18231         aarch64_promoted_type): New.
18233         (aarch64_float_const_representable_p): Disable HFmode.
18234         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18235         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18236         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18238         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18239         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18241         * config/aarch64/iterators.md (GPF_F16): New.
18243 2015-07-29  Richard Biener  <rguenther@suse.de>
18245         * match.pd: Merge address comparison patterns and make them
18246         handle some more cases.
18248 2015-07-29  Richard Biener  <rguenther@suse.de>
18250         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18251         (parser::parse_capture): Add bool argument on whether to reject
18252         unknown captures.
18253         (parser::parse_expr): Adjust.
18254         (parser::parse_op): Likewise.
18255         (parser::parse_pattern): Likewise.
18257 2015-07-29  Richard Biener  <rguenther@suse.de>
18259         * gimple-fold.c (has_use_on_stmt): New function.
18260         (replace_stmt_with_simplification): Use it to allow
18261         abnormals originally referenced in the stmt.
18262         (fold_stmt_1): Canonicalize operand order.
18264 2015-07-28  David Sherwood  <david.sherwood@arm.com>
18266         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18267         GET_MODE_INNER unconditionally.
18268         * config/spu/spu.c (arith_immediate_p): Likewise.
18269         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18270         * expmed.c (synth_mult): Remove check for VOIDmode result from
18271         GET_MODE_INNER.
18272         (expand_mult_const): Likewise.
18273         * fold-const.c (fold_binary_loc): Replace call to element_precision
18274         with call to GET_MODE_PRECISION.
18275         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18276         m->name.
18277         (emit_mode_inner): Likewise.
18278         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18279         result check.
18280         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18281         (GET_MODE_UNIT_PRECISION): Likewise.
18282         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18283         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18284         * stor-layout.c (bitwise_type_for_mode): Update assert.
18285         (element_precision): Remove.
18287 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18289         * target-insns.def (reload_load_address): New targetm instruction
18290         pattern.
18291         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18293 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18295         * target-insns.def (atomic_test_and_set): New targetm instruction
18296         pattern.
18297         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18298         HAVE_*/gen_* interface.
18300 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18302         * target-insns.def (can_extend, ptr_extend): New targetm instruction
18303         patterns.
18304         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18305         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18306         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18307         * rtlanal.c (nonzero_bits1): Likewise.
18308         (num_sign_bit_copies1): Likewise.
18310 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18312         * target-insns.def (eh_return): New targetm instruction pattern.
18313         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18314         interface.
18315         * function.c (thread_prologue_and_epilogue_insns): Remove
18316         preprocessor condition.
18318 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18320         * target-insns.def (indirect_jump): New targetm instruction pattern.
18321         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18322         interface.
18324 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18326         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18327         instead of nonimmediate_operand.  Remove C condiition.
18329 2015-07-28  Richard Biener  <rguenther@suse.de>
18331         * match.pd: Add more simplification of address comparisons.
18333 2015-07-28  Richard Biener  <rguenther@suse.de>
18335         * match.pd: Re-order two cases in comparison with max/min
18336         value simplification to make it apply for bools.
18338 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18340         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18341         Handle simple SIGN_EXTEND or ZERO_EXTEND.
18342         (aarch64_rtx_costs): Properly strip extend or extract before
18343         passing down to rtx costs again.
18345 2015-07-28  Nick Clifton  <nickc@redhat.com>
18347         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18348         Optimizes the case where -mes0 is active and a constant symbolic
18349         address is used.
18350         * config/rl78/rl78-protos.h: Prototype the new function.
18351         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18353 2015-07-28  Tom de Vries  <tom@codesourcery.com>
18355         * tree-parloops.c (reduc_stmt_res): New function.
18356         (initialize_reductions, add_field_for_reduction)
18357         (create_phi_for_local_result, create_loads_for_reductions)
18358         (create_stores_for_reduction, build_new_reduction): Handle case that
18359         reduc_stmt is a phi.
18360         (gather_scalar_reductions): Allow double_reduc reductions.
18362 2015-07-28  Richard Biener  <rguenther@suse.de>
18364         * fold-const.c (fold_comparison): Remove equality folding
18365         of decl addresses ...
18366         * match.pd: ... here and merge with existing pattern.
18368 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18370         PR tree-optimization/66828
18371         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18372         from int64_t to uint64_t.
18374 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18376         * opts-common.c (read_cmdline_option): List DriverOnly enum values
18377         as valid only in the error message of the driver, not in the
18378         messages of the language compilers.
18380 2015-07-27  Tom de Vries  <tom@codesourcery.com>
18382         * tree-parloops.c (gather_scalar_reductions): Simplify function
18383         structure.
18385 2015-07-27  Marek Polacek  <polacek@redhat.com>
18387         * ipa-devirt.c (types_same_for_odr): Fix typo.
18389 2015-07-27  Jason Merrill  <jason@redhat.com>
18391         PR debug/66468
18392         * dwarf2out.c (gen_inlined_subroutine_die): Check
18393         cgraph_function_possibly_inlined_p.
18395 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18397         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18398         Place integer variant first.
18399         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18401 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18403         PR/63870
18404         * config/arm/arm-builtins.c (enum arm_builtins):
18405         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18406         (ARM_BUILTIN_NEON_BASE): Rename macro to....
18407         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18408         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18409         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18411 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18413         PR/63870
18414         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18415         Add qualifier_lane_index.
18416         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18417         (arm_getlane_qualifiers): Use qualifier_lane_index.
18418         (arm_lanemac_qualifiers): Rename to...
18419         (arm_mac_n_qualifiers): ...this.
18420         (LANEMAC_QUALIFIERS): Rename to...
18421         (MAC_N_QUALIFIERS): ...this.
18422         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18423         (arm_setlane_qualifiers): Use qualifier_lane_index.
18424         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18425         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18426         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18427         (arm_expand_neon_builtin): Handle qualifier_lane_index.
18429         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18430         * config/arm/arm.c (bounds_check): Likewise, improve error message.
18431         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18432         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18433         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18434         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18435         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18436         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18437         qualifiers to TERNOP_IMM.
18438         (vdup_lane): Change qualifiers to GETLANE.
18439         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18440         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18441         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18442         vqdmlsl_n): Change qualifiers to MAC_N.
18444         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18445         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18446         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18447         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18448         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18449         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18450         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18451         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18452         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18453         Remove call to neon_lane_bounds.
18455 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18457         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18458         Place integer variant first.
18460 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
18462         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18463         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18464         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18465         for armv6kz targets.
18466         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18467         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18468         (FL_FOR_ARCH6ZK): Remove.
18469         (FL_FOR_ARCH6KZ): New.
18470         (arm_arch6zk): New declaration.
18471         * config/arm/arm-tables.opt: Regenerate.
18472         * config/arm/arm.c (arm_arch6kz): New.
18473         (arm_option_override): Set arm_arch6kz.
18474         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18475         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18476         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18478 2015-07-27  Marek Polacek  <polacek@redhat.com>
18480         PR c++/66555
18481         PR c/54979
18482         * doc/invoke.texi: Document -Wtautological-compare.
18484 2015-07-27  Richard Biener  <rguenther@suse.de>
18486         * genmatch.c (decision_tree::gen_gimple): Split out large
18487         subtrees into separate functions.
18488         (decision_tree::gen_generic): Likewise.
18490 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
18492         * config/alpha/alpha.c: Use SUBREG_P predicate.
18493         * config/alpha/predicates.md: Ditto.
18495 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18497         * config.host (s390*-*-*): Include driver-native.c only when
18498         building with s390* as host *and* target.
18500 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
18502         PR target/66930
18503         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18504         T bit register modified_between_p check.
18506 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18508         * config/i386/i386.c: Use SUBREG_P predicate.
18509         * config/i386/i386.md: Ditto.
18510         * config/i386/sse.md: Ditto.
18511         * config/i386/predicates.md: Ditto.
18513 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18515         PR target/67004
18516         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18517         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18519 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18521         * Makefile.in: Remove use of TREEBROWSER.
18522         * config.in: Regenerated.
18523         * configure: Regenerated.
18524         * configure.ac: Remove definition of TREEBROWSER.
18525         * tree-browser.c: Removed.
18526         * tree-browser.def: Removed.
18528 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18530         * graphite-scop-detection.c: Include gimple-pretty-print.h.
18531         (stmt_simple_for_scop_p): Print when a stmt is not handled in
18532         Graphite.
18533         (scopdet_basic_block_info): Print when a loop or bb cannot be
18534         represented in Graphite.
18536 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18538         PR target/66648
18539         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18540         execution guard when min_size is less than size_needed.
18542 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18544         * doc/install.texi: Document supported versions of ISL.
18546 2015-07-25  Jeff Law  <law@redhat.com>
18548         Revert:
18549         PR lto/66752
18550         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18551         unable to find X NE 0 in the tables, return X as the simplified
18552         condition.
18553         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18554         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18555         to VISISTED_BBS.  */
18556         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18557         after removing the control flow statement and unnecessary edges.
18559 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
18561         Revert:
18562         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18564         PR rtl-optimization/64164
18565         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18566         * tree-ssa-copyrename.c: Removed.
18567         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18568         -ftree-coalesce-vars.
18569         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18570         * common.opt (ftree-copyrename): Ignore.
18571         (ftree-coalesce-inlined-vars): Likewise.
18572         * doc/invoke.texi: Remove the ignored options above.
18573         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18574         * tree-ssa-coalesce.h: ... here.
18575         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18576         headers required by it.
18577         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18578         across variables when flag_tree_coalesce_vars.  Check register
18579         use and promoted modes to allow coalescing.  Moved to
18580         tree-ssa-coalesce.c.
18581         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18582         with its member functions to tree-ssa-coalesce.c.
18583         (var_map_base_init): Likewise.  Renamed to
18584         compute_samebase_partition_bases.
18585         (partition_view_normal): Drop want_bases parameter.
18586         (partition_view_bitmap): Likewise.
18587         * tree-ssa-live.h: Adjust declarations.
18588         * tree-ssa-coalesce.c: Include explow.h.
18589         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18590         default defs at the entry point.
18591         (dump_part_var_map): New.
18592         (compute_optimized_partition_bases): New, called by...
18593         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18594         of compute_samebase_partition_bases.  Adjust.
18595         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18596         * cfgexpand.c (leader_merge): New.
18597         (get_rtl_for_parm_ssa_default_def): New.
18598         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18599         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18600         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18601         redundant MEM attr setting.
18602         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18603         from...
18604         (expand_one_stack_var): ... this.  New wrapper to check and
18605         skip already expanded SSA partitions.
18606         (record_alignment_for_reg_var): New, factored out of...
18607         (expand_one_var): ... this.
18608         (expand_one_ssa_partition): New.
18609         (adjust_one_expanded_partition_var): New.
18610         (expand_one_register_var): Check and skip already expanded SSA
18611         partitions.
18612         (expand_used_vars): Don't create DECLs for anonymous SSA
18613         names.  Expand all SSA partitions, then adjust all SSA names.
18614         (pass::execute): Replace the loops that set
18615         SA.partition_to_pseudo from partition leaders and cleared
18616         DECL_RTL for multi-location variables, and that which used to
18617         rename vars and set attrs, with one that clears DECL_RTL and
18618         checks that PARMs and RESULTs default_defs match DECL_RTL.
18619         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18620         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18621         * explow.c (promote_ssa_mode): New.
18622         * explow.h (promote_ssa_mode): Declare.
18623         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18624         * function.c: Include cfgexpand.h.
18625         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18626         (use_register_for_parm_decl): Wrapper for the above to
18627         special-case the result_ptr.
18628         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18629         (split_complex_args): Take assign_parm_data_all argument.
18630         Pass it to rtl_for_parm.  Set up rtl and context for split
18631         args.
18632         (assign_parms_augmented_arg_list): Adjust.
18633         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18634         multiple locations.  Recognize split complex args.
18635         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18636         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18637         (assign_parm_setup_block): Prefer SSA-assigned location.
18638         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18639         if stack_parm is NULL.
18640         (assign_parm_setup_stack): Prefer SSA-assigned location.
18641         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18642         rtl before testing for pointer bounds.  Special-case result_ptr.
18643         (expand_function_start): Maybe reset DECL_RTL of result.
18644         Prefer SSA-assigned location for result and static chain.
18645         Factor out DECL_RESULT and SET_DECL_RTL.
18646         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18647         anonymous SSA names.  Use promote_ssa_mode.
18648         (get_temp_reg): Likewise.
18649         (remove_ssa_form): Adjust.
18650         * stor-layout.c (layout_decl): Don't set mem attributes of
18651         non-MEMs.
18652         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18653         and get its reg_usage for reg invalidation.
18654         (compute_bb_dataflow): Pass it insn.
18655         (emit_notes_in_bb): Likewise.
18657 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18659         * config/i386/i386.c (ix86_va_start): Remove
18660         unneeded !TARGET_64BIT check.
18661         (ix86_gimplify_va_arg): Ditto.
18663 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18665         * graphite-sese-to-poly.c (build_poly_scop): Always call
18666         rewrite_commutative_reductions_out_of_ssa.
18668 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18670         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18671         flag_associative_math to FLOAT_TYPE_P.  Honour
18672         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18674 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18676         PR c++/64079
18677         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18678         and "%qD" in warning_at instead of "%q+D" in warning.
18680 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18682         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18683         (ix86_function_abi): Cleanup.
18685 2015-07-24  Michael Darling  <darlingm@gmail.com>
18687         PR other/66259
18688         * acinclude.m4: Reflects renaming of configure.in to configure.ac
18689         * configure: Likewise
18690         * configure.ac: Likewise
18691         * doc/install.texi: Likewise
18692         * doc/tm.texi: Likewise
18693         * doc/tm.texi.in: Likewise
18695 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18697         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18698         manually swapping values.
18699         * cse.c (fold_rtx): Likewise.
18700         * lra-eliminations.c (form_sum): Likewise.
18702 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18704         PR target/64003
18705         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18706         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18707         (*jcc_1, *jcc_2, jump, simple_return_internal)
18708         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18709         Set length_nobnd attribute instead of length attribute.
18710         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18711         (length_nobnd): Remove attribute.
18712         (length): Remove length_nobnd processing.
18714 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
18716         * gimplify.c (omp_default_clause): New function.  Reorganize flow
18717         for clarity. Broken out of ...
18718         (omp_notice_variable): ... here.
18720 2015-07-24  Gary Funck  <gary@intrepid.com>
18722         PR middle-end/66984
18723         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18724         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18726 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18728         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18729         exit-first loop transform.
18731 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
18733         PR 66714
18734         * tree-cfg.c (struct replace_decls_d): New struct.
18735         (replace_block_vars_by_duplicates_1): New function.
18736         (replace_block_vars_by_duplicates): Use it to replace the decls
18737         in the value exprs by duplicates.
18739 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18741         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18742         -shared, -symbolic, -rdynamic.
18744 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18746         PR target/65711
18747         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18748         -dynamic-linker within %{!static %{!shared, and -rdynamic within
18749         %{!static.
18751 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
18753         PR ipa/66566
18754         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18755         edge summary is available.
18757 2015-07-24  Richard Biener  <rguenther@suse.de>
18759         * genmatch.c (struct dt_node): Add statistic fields.
18760         (dt_node::analyze): New method.
18761         (decision_tree::gen_gimple): Call analyze on the root node
18762         and print statistics to stderr.
18763         (decision_tree::gen_generic): Likewise.
18765 2015-07-24  Richard Biener  <rguenther@suse.de>
18767         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18768         against the highest or lowest possible integer ...
18769         * match.pd: ... as patterns here.
18771 2015-07-24  Richard Biener  <rguenther@suse.de>
18773         * genmatch.c (struct capture_info): Add same_as field.
18774         (capture_info::capture_info): Initialize same_as.
18775         (capture_info::walk_match): Compute same_as.
18776         (capture_info::walk_result): Compute stuff for the leader.
18777         (capture_info::walk_c_expr): Likewise.
18778         (dt_simplify::gen_1): Only look at leaders when deciding
18779         to force no side-effects or emit side-effects of omitted operands.
18781 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18783         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18784         reg note to the GPR -> FPR save instructions.
18786 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18788         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18789         cheaper.
18790         (s390_expand_insv): Don't generate risbg pattern for constant zero
18791         sources.
18792         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18793         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
18794         splitters.
18796 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18798         * config/s390/s390.c (s390_reorg): Clean up handling of processors
18799         with
18800         -mtune=
18801         (s390_issue_rate): Likewise.
18802         (s390_sched_reorder): Likewise.
18803         (s390_sched_variable_issue): Likewise.
18804         (s390_loop_unroll_adjust): Likewise.
18805         (s390_option_override):  Likewise.
18807 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18809         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18810         processor capabilities with -march=native.
18811         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18812         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
18813         (S390_TARGET_BITS_STRING): Macro to simplify specs.
18815 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18817         * config/s390/s390.c (s390_issue_rate): Handle
18818         PROCESSOR_2094_Z9_EC.
18819         (s390_option_override): Likewise.
18820         (s390_adjust_priority): Likewise.
18822 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18824         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18825         when cross compiling.
18827 2015-07-24  Richard Biener  <rguenther@suse.de>
18829         * fold-const.c (maybe_canonicalize_comparison_1): Move
18830         A code CST canonicalization ...
18831         * match.pd: ... to a pattern here.
18833 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
18835         Revert:
18836         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18837         PR target/63521
18838         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18839         (HONOR_REG_ALLOC_ORDER): Define.
18841 2015-07-24  Richard Biener  <rguenther@suse.de>
18843         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18844         * fold-const.c (fold_comparison): Move parameter does not
18845         alias &local simplification ...
18846         * match.pd: ... as a pattern here.
18848 2015-07-24  Richard Biener  <rguenther@suse.de>
18850         * gimple-fold.c (replace_stmt_with_simplification): Special-case
18851         valueizing call operands.
18852         * gimple-match-head.c (maybe_push_res_to_seq): Take
18853         number of call arguments from ops array.
18854         (do_valueize): New function.
18855         (gimple_simplify): Return true if valueization changed
18856         any operand even if the result didn't simplify further.
18858 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18860         PR middle-end/25530
18861         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18863 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18865         PR middle-end/25529
18866         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18868 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18870         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18871         instruction.
18873 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18875         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18876         clean up.
18878 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
18880         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18881         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
18882         targets here.
18883         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18884         ms_va_list_type_node initialization.
18886 2015-07-23  Jeff Law  <law@redhat.com>
18888         PR lto/66752
18889         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18890         unable to find X NE 0 in the tables, return X as the simplified
18891         condition.
18892         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18893         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18894         to VISISTED_BBS.  */
18895         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18896         after removing the control flow statement and unnecessary edges.
18898 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18900         * tree-pass.h (get_current_pass_name): Removed.
18902 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18904         PR rtl-optimization/64164
18905         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18906         * tree-ssa-copyrename.c: Removed.
18907         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18908         -ftree-coalesce-vars.
18909         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18910         * common.opt (ftree-copyrename): Ignore.
18911         (ftree-coalesce-inlined-vars): Likewise.
18912         * doc/invoke.texi: Remove the ignored options above.
18913         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18914         * tree-ssa-coalesce.h: ... here.
18915         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18916         headers required by it.
18917         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18918         across variables when flag_tree_coalesce_vars.  Check register
18919         use and promoted modes to allow coalescing.  Moved to
18920         tree-ssa-coalesce.c.
18921         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18922         with its member functions to tree-ssa-coalesce.c.
18923         (var_map_base_init): Likewise.  Renamed to
18924         compute_samebase_partition_bases.
18925         (partition_view_normal): Drop want_bases parameter.
18926         (partition_view_bitmap): Likewise.
18927         * tree-ssa-live.h: Adjust declarations.
18928         * tree-ssa-coalesce.c: Include explow.h.
18929         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18930         default defs at the entry point.
18931         (dump_part_var_map): New.
18932         (compute_optimized_partition_bases): New, called by...
18933         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18934         of compute_samebase_partition_bases.  Adjust.
18935         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18936         * cfgexpand.c (leader_merge): New.
18937         (get_rtl_for_parm_ssa_default_def): New.
18938         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18939         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18940         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18941         redundant MEM attr setting.
18942         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18943         from...
18944         (expand_one_stack_var): ... this.  New wrapper to check and
18945         skip already expanded SSA partitions.
18946         (record_alignment_for_reg_var): New, factored out of...
18947         (expand_one_var): ... this.
18948         (expand_one_ssa_partition): New.
18949         (adjust_one_expanded_partition_var): New.
18950         (expand_one_register_var): Check and skip already expanded SSA
18951         partitions.
18952         (expand_used_vars): Don't create DECLs for anonymous SSA
18953         names.  Expand all SSA partitions, then adjust all SSA names.
18954         (pass::execute): Replace the loops that set
18955         SA.partition_to_pseudo from partition leaders and cleared
18956         DECL_RTL for multi-location variables, and that which used to
18957         rename vars and set attrs, with one that clears DECL_RTL and
18958         checks that PARMs and RESULTs default_defs match DECL_RTL.
18959         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18960         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18961         * explow.c (promote_ssa_mode): New.
18962         * explow.h (promote_ssa_mode): Declare.
18963         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18964         * function.c: Include cfgexpand.h.
18965         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18966         (use_register_for_parm_decl): Wrapper for the above to
18967         special-case the result_ptr.
18968         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18969         (split_complex_args): Take assign_parm_data_all argument.
18970         Pass it to rtl_for_parm.  Set up rtl and context for split
18971         args.
18972         (assign_parms_augmented_arg_list): Adjust.
18973         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18974         multiple locations.  Recognize split complex args.
18975         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18976         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18977         (assign_parm_setup_block): Prefer SSA-assigned location.
18978         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18979         if stack_parm is NULL.
18980         (assign_parm_setup_stack): Prefer SSA-assigned location.
18981         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18982         rtl before testing for pointer bounds.  Special-case result_ptr.
18983         (expand_function_start): Maybe reset DECL_RTL of result.
18984         Prefer SSA-assigned location for result and static chain.
18985         Factor out DECL_RESULT and SET_DECL_RTL.
18986         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18987         anonymous SSA names.  Use promote_ssa_mode.
18988         (get_temp_reg): Likewise.
18989         (remove_ssa_form): Adjust.
18990         * stor-layout.c (layout_decl): Don't set mem attributes of
18991         non-MEMs.
18992         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18993         and get its reg_usage for reg invalidation.
18994         (compute_bb_dataflow): Pass it insn.
18995         (emit_notes_in_bb): Likewise.
18997 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18999         PR target/66217
19000         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19001         prototype.
19002         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19003         (rs6000_emit_2insn_and): Handle dot forms.
19004         * config/rs6000/rs6000.md (and<mode>3): Adjust.
19005         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
19006         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19008 2015-07-23  Richard Biener  <rguenther@suse.de>
19010         * generic-match-head.c: Include cgraph.h.
19011         * gimple-match-head.c: Likewise.
19012         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19013         SSA names.
19014         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19015         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
19016         pattern.
19018 2015-07-23  Richard Biener  <rguenther@suse.de>
19020         * gimple-fold.c (fold_gimple_cond): Do not require folding
19021         results to pass valid_gimple_rhs_p.
19022         * tree-cfg.h (fold_cond_expr_cond): Remove.
19023         * tree-cfg.c (fold_cond_expr_cond): Likewise.
19024         (make_edges): Do not call it.
19025         * tree-inline.c (tree_function_versioning): Likewise.
19027 2015-07-23  Tom de Vries  <tom@codesourcery.com>
19029         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19030         vect_force_simple_reduction.
19031         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19032         (vect_is_simple_reduction_1): Add and handle
19033         need_wrapping_integral_overflow parameter.
19034         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19035         need_wrapping_integral_overflow parameter.
19036         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19037         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19038         decl.
19040 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
19042         PR tree-optimization/66926,66951
19043         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19044         INNER_LOOP and fix up condition for renaming virtual operands.
19046 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19048         * combine.c (try_combine): Use std::swap instead of manually
19049         swapping.
19051 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
19053         * config/mips/i6400.md: New file.
19054         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19055         (mips64r6): Likewise.
19056         (i6400): Define.
19057         * config/mips/mips-tables.opt: Regenerate.
19058         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19059         (mips_issue_rate): Add support for i6400.
19060         (mips_multipass_dfa_lookahead): Likewise.
19061         * config/mips/mips.h (TUNE_I6400): Define.
19062         * config/mips/mips.md: Include i6400.md.
19063         (processor): Add i6400.
19064         * doc/invoke.texi (-march=@var{arch}): Add i6400.
19066 2015-07-23  Richard Biener  <rguenther@suse.de>
19068         PR middle-end/66916
19069         * match.pd: Guard widen and sign-change comparison simplification
19070         with single_use.
19072 2015-07-23  Richard Biener  <rguenther@suse.de>
19074         PR tree-optimization/66945
19075         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19076         ::before_dom_children): Force the propagators idea of
19077         non-executable edges to materialize, not what the folder
19078         chooses.
19080 2015-07-23  Richard Biener  <rguenther@suse.de>
19082         * gimple.h (gimple_cond_make_false): Use 0 != 0.
19083         (gimple_cond_make_true): Use 1 != 0.
19085 2015-07-22  DJ Delorie  <dj@redhat.com>
19087         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19088         slashes.
19090         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19091         (ashrhi3): Likewise.
19092         (lshrhi3): Likewise.
19093         (movhi): Take advantage of zero-extend to load small constants.
19094         (movpsi): Likewise.
19095         (and<mode>3): Likewise.
19096         (zero_extendqihi2): Likewise.
19097         (zero_extendqisi2): New.
19098         * config/msp430/constraints.md (N,O): New.
19099         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19101 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
19103         PR target/66954
19104         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19105         to enum feature_priority and feature_list.
19106         (fold_builtin_cpu): Add F_AES to enum processor_features
19107         and isa_names_table.
19109 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19111         PR driver/66737
19112         * config/i386/linux-common.h (MPX_SPEC): Use linker option
19113         for 64bit target only.
19115 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
19117         * config/nvptx/nvptx.c: Expand some comments.
19119 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
19121         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19122         (cortex_a53_advsimd): ...This.
19124 2015-07-22  Richard Biener  <rguenther@suse.de>
19126         * genmatch.c (expr::gen_transform): Clarify error message
19127         and display location.
19129 2015-07-22  Richard Biener  <rguenther@suse.de>
19131         * genmatch.c (struct operand): Add location member.
19132         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19133         constructors.
19134         (struct simplify): Remove match_location and result_location
19135         members.
19136         (elsehwere): Adjust.
19138 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
19140         * config/mips/m5100.md: New file.
19141         * config/mips/mips-cpus.def (m5100, m5101): Define.
19142         * config/mips/mips-tables.opt: Regenerate.
19143         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19144         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19145         -march=m5101 to -mips32r5.
19146         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19147         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19148         !-msoft-float.
19149         * config/mips/mips.md: Include m5100.md.
19150         (processor): Add m5100.
19151         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19153 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
19155         * config/mips/mips-cpus.def (interaptiv): Define.
19156         * config/mips/mips-tables.opt: Regenerate.
19157         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19158         -mips32r2.
19159         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19160         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19162 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19164         PR target/63521
19165         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19166         (HONOR_REG_ALLOC_ORDER): Define.
19168 2015-07-22  Richard Biener  <rguenther@suse.de>
19170         PR tree-optimization/66952
19171         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19172         blocks we end up executing unconditionally reset all SSA
19173         info such as range and alignment.
19174         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19175         * tree-ssanames.c (reset_flow_sensitive_info): New function.
19177 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19179         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19180         typo in attribute.
19182 2015-07-22  Richard Biener  <rguenther@suse.de>
19184         * genmatch.c (parser::parse_result): Properly handle
19185         match with result operands and conditions.
19187 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19189         PR target/63870
19190         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19191         Add qualifier_struct_load_store_lane_index.
19192         (aarch64_types_loadstruct_lane_qualifiers): Use
19193         qualifier_struct_load_store_lane_index for lane index argument for
19194         last argument.
19195         (aarch64_types_storestruct_lane_qualifiers): Ditto.
19196         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19197         (aarch64_simd_expand_args): Add new argument describing mode of
19198         builtin. Check lane bounds for arguments with
19199         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19200         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19201         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19202         (aarch64_simd_expand_builtin): Handle arguments with
19203         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19204         aarch64_simd_expand_args.
19205         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19206         vst[234]_lane with BUILTIN_VALLDIF.
19207         * config/aarch64/aarch64-simd.md:
19208         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19209         endianness reversal on lane index.
19210         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19211         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19212         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19213         (vec_store_lanesci_lane<mode>): Ditto.
19214         (vec_store_lanesxi_lane<mode>): Ditto.
19215         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19216         reversal of lane index.
19217         (aarch64_ld3_lane<mode>): Ditto.
19218         (aarch64_ld4_lane<mode>): Ditto.
19219         (aarch64_st2_lane<mode>): Ditto.
19220         (aarch64_st3_lane<mode>): Ditto.
19221         (aarch64_st4_lane<mode>): Ditto.
19222         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19223         to qmode. Add new mode parameter. Update uses.
19224         (__LD3_LANE_FUNC): Ditto.
19225         (__LD4_LANE_FUNC): Ditto.
19226         (__ST2_LANE_FUNC): Ditto.
19227         (__ST3_LANE_FUNC): Ditto.
19228         (__ST4_LANE_FUNC): Ditto.
19230 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
19232         * doc/invoke.texi (Language Independent Options): Rename node to
19233         Diagnostic Message Formatting Options.
19235 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
19237         PR ipa/66424.
19238         * lra-remat.c (operand_to_remat): Prevent using insns with input
19239         subregs processed separately by IRA.
19241 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
19243         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19244         straight loops.
19245         (single_imm_use): Check for iterator node.
19246         (num_imm_uses): Likewise.
19247         * tree-ssa-operands.c (has_zero_uses_1): Delete.
19248         (single_imm_use_1): Check for iterator node.
19250 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
19251             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19253         * configure.ac: Add check for new options in isl-0.15.
19254         * config.in, configure: Rebuilt.
19255         * graphite-blocking.c: Include <isl/constraint.h>
19256         * graphite-interchange.c,  graphite-poly.c: Likewise.
19257         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19258         * graphite.c: Likewise.
19259         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19260         <isl/union_set.h>.
19261         * graphite-dependences.c: Include <isl/constraint.h>.
19262         (max_number_of_out_dimensions): Returns isl_stat.
19263         (extend_schedule_1): Likewise
19264         (extend_schedule): Corresponding changes.
19265         * graphite-optimize-isl.c: Include <isl/constraint.h> and
19266         <isl/union_set.h>.
19267         (getSingleMap): Change return type of isl_stat.
19268         (optimize_isl): Conditionally use
19269         isl_options_set_schedule_serialize_sccs.
19270         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19271         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19273 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
19275         PR target/66956
19276         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19277         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19279 2015-07-21  Richard Biener  <rguenther@suse.de>
19281         PR tree-optimization/66948
19282         * genmatch.c (capture_info::walk_match): Also recurse to
19283         captures.  Properly compute expr state from captures of
19284         captures.
19285         * match.pd: Add single-use guards to
19286         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19288 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
19290         * config/nvptx/mkoffload.c (process): Add static destructor call.
19292 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19294         PR middle-end/66915
19295         * match.pd (A - B -> A + (-B)): Don't allow folding
19296         when type if a fixed-point type.
19298 2015-07-20  DJ Delorie  <dj@redhat.com>
19300         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19301         (iorqi3_real): Likewise for set1.
19303 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
19305         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19306         for !TARGET_64BIT.
19308 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
19310         * graphite-isl-ast-to-gimple.c:
19311         Refactor so that each function can access 'region'. This will help
19312         maintain a parameter rename_map within a region.
19314 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19316         * config/rs6000/rs6000.md (*lt0_disi): New.
19318 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19320         PR target/66217
19321         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
19322         "available letters" comment.
19323         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19324         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19325         and_2rld_operand):  Delete.
19326         (and_operand): Adjust.
19327         (rotate_mask_operator): New.
19328         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19329         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19330         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19331         extract_ME): Delete.
19332         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19333         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19334         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19335         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19336         rs6000_emit_2insn_and): New.
19337         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19338         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19339         includes_rldic_lshift_p, includes_rldicr_lshift_p,
19340         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19341         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19342         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19343         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19344         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19345         rs6000_emit_2insn_and): New.
19346         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19347         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19348         handling.
19349         <NOT>: Don't fall through to next case.
19350         <AND>: Handle the various rotate-and-mask cases directly.
19351         <IOR>: Always cost as one insn.
19352         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19353         (and<mode>3): Adjust expander for the new patterns.
19354         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19355         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19356         (*and<mode>3_imm_dot_shifted): New.
19357         (*and<mode>3_mask): Delete, rewrite as ...
19358         (and<mode>3_mask): ... New.
19359         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19360         (andsi3_internal0_nomc): Delete.
19361         (*andsi3_internal6): Delete.
19362         (*and<mode>3_2insn): New.
19363         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19364         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19365         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19366         *insvdi_internal3): Delete.
19367         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19368         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19369         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19370         *ior<mode>_mask): New.
19371         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19372         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19373         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19374         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19375         Delete.
19376         (ashr<mode>3): Delete expander.
19377         (*ashr<mode>3): Rename to ...
19378         (ashr<mode>3): ... This.
19379         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19380         (*rotldi3_internal4, *rotldi3_internal5 and split,
19381         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19382         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19383         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19384         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19385         (splitter for loading a mask): Adjust.
19386         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19388 2015-07-20  Marek Polacek  <polacek@redhat.com>
19390         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19391         output_add_clobbers, output_added_clobbers_hard_reg_p,
19392         gen_rtx_scratch): Remove declarations.
19394 2015-07-20  Marek Polacek  <polacek@redhat.com>
19396         PR c++/55095
19397         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19399 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19401         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19402         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19404 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19406         * combine.c (combine_simplify_rtx): Move simplification step
19407         before various transformations/substitutions.
19409 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
19411         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19412         (struct int_traits): Likewise.
19414 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19416         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19417         function to vmsdbgout_function_decl.
19419 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19421         PR target/66922
19422         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19423         from misaligned positions.
19424         (ix86_expand_pinsr): Reject insertions to misaligned positions.
19426 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
19428         PR middle-end/46851
19429         PR middle-end/60340
19430         * Makefile.in: Removed omega.o.
19431         * common.opt: Document flag fcheck-data-deps as deprecated.
19432         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19433         its associated params: omega-max-vars, omega-max-geqs,
19434         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19435         omega-max-keys, omega-eliminate-redundant-constraints.
19436         * doc/loop.texi: Remove all the section on Omega.
19437         * graphite-blocking.c: Include missing params.h: it used to be
19438         included through tree-data-ref.h and omega.h.
19439         * graphite-isl-ast-to-gimple.c: Same.
19440         * graphite-optimize-isl.c: Same.
19441         * graphite-sese-to-poly.c: Same.
19442         * graphite.c: Same.
19443         * omega.c: Remove.
19444         * omega.h: Remove.
19445         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19446         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19447         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19448         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19449         * passes.def: Remove pass_check_data_deps.
19450         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19451         (dump_conflict_function): Same.
19452         (dump_subscript): Same.
19453         (print_direction_vector): Same.
19454         (print_dir_vectors): Same.
19455         (print_lambda_vector): Same.
19456         (print_dist_vectors): Same.
19457         (dump_data_dependence_relation): Same.
19458         (dump_data_dependence_relations): Same.
19459         (dump_dist_dir_vectors): Same.
19460         (dump_ddrs): Same.
19461         (init_omega_eq_with_af): Removed.
19462         (omega_extract_distance_vectors): Removed.
19463         (omega_setup_subscript): Removed.
19464         (init_omega_for_ddr_1): Removed.
19465         (init_omega_for_ddr): Removed.
19466         (ddr_consistent_p): Removed.
19467         (compute_affine_dependence): Do not use omega to check data
19468         dependences.
19469         (compute_data_dependences_for_bb): Removed.
19470         (analyze_all_data_dependences): Removed.
19471         (tree_check_data_deps): Removed.
19472         * tree-data-ref.h: Do not include omega.h.
19473         (compute_data_dependences_for_bb): Removed.
19474         (tree_check_data_deps): Removed.
19475         * tree-ssa-loop.c (pass_check_data_deps): Removed.
19476         (make_pass_check_data_deps): Removed.
19477         * tree-ssa-phiopt.c: Include params.h.
19478         * tree-vect-data-refs.c: Same.
19479         * tree-vect-slp.c: Same.
19481 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19483         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19484         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
19485         (mem->fpreg splitters): Ditto.
19486         (general_operand->nonimmediate_operand splitter): Use explicit modes.
19487         Disable DFmode for TARGET_64BIT.
19489 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
19491         PR target/66906
19492         * config/i386/i386.c (ix86_expand_prologue): Replicate static
19493         chain on the stack.
19495 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19497         * config/nvptx/mkoffload.c (process): Constify host data.
19498         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19499         Constify host data.
19500         (generate_host_descr_file): Likewise.
19502 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
19503             Sebastian Pop  <s.pop@samsung.com>
19505         PR middle-end/61929
19506         * graphite-dependences.c (add_pdr_constraints): Renamed
19507         pdr->extent to pdr->subscript_sizes.
19508         * graphite-interchange.c (build_linearized_memory_access): Add
19509         back all gcc_assert's that the "isl_int to isl_val conversion"
19510         patch has removed.  Refactored.
19511         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19512         * graphite-poly.c (new_poly_dr): Same.
19513         (free_poly_dr): Same.
19514         * graphite-poly.h (struct poly_dr): Same.
19515         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19516         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19517         * graphite-scop-detection.h: Fix space.
19518         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19519         back all gcc_assert's removed by a previous patch.
19520         (wrap): Remove the_isl_ctx global variable that the same patch has
19521         added.
19522         (build_loop_iteration_domains): Same.
19523         (add_param_constraints): Same.
19524         (pdr_add_data_dimensions): Same.  Refactored.
19525         (build_poly_dr): Renamed extent to subscript_sizes.
19527 2015-07-17  Marek Polacek  <polacek@redhat.com>
19529         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19530         * match.pd: ... here.
19532 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19534         * config/nvptx/mkoffload.c (process): Constify target data.
19535         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19536         Constify target data.
19537         (generate_target_offloadend_file): Likewise.
19539 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
19541         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19542         to allow renaming of PHI arguments on edges incoming from outer
19543         loop header, add corresponding check before start PHI iterator.
19544         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19545         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19546         with true force_vectorize.  Set-up dominator for outer loop too.
19547         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19548         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19549         was marked with force_vectorize and has restricted cfg.
19550         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19551         inner loop.
19552         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19553         do peeling for outer loops.
19555 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
19556             Matthias Klose  <doko@ubuntu.com>
19558         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19559         build-sysroot, sysroot from the `Miscenalleous configure options' to
19560         the `Directories' section and strip trailing `/' from with_sysroot.
19561         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19562         * configure: Regenerated.
19564 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19566         PR target/66824
19567         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19568         (TARGET_HARD_DF_REGS): Ditto.
19569         (TARGET_HARD_XF_REGS): Ditto.
19570         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19571         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19572         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19573         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19574         (*movsf_internal): Add alternatives 16 and 17. Enable
19575         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19577 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19579         PR rtl-optimization/66891
19580         * calls.c (expand_call): Wrap precompute_register_parameters with
19581         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19583 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
19585         * config/nvptx/mkoffload.c (process): Constify mapping variables.
19586         Define target data struct and initialize it.
19588 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
19590         PR rtl-optimization/66626
19591         * ira.h (emit-rtl.h): Include.
19592         (non_spilled_static_chain_regno_p): New.
19593         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19594         unless it is non spilled static chain pseudo.
19595         (assign_hard_rego): Spill memory profitable allocno unless it is
19596         non spilled static chain pseudo.
19597         (allocno_spill_priority_compare): Put non spilled static chain
19598         pseudo at the end of sorted array.
19599         (improve_allocation): Do nothing if we have static chain and
19600         non-local goto.
19601         (allocno__priority_compare_func): Put non spilled static chain
19602         pseudo at the beginning of sorted array.
19603         (move_spill_restore): Ignore non spilled static chain pseudo.
19604         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19605         to non spilled static chain pseudo.
19606         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19607         pseudo at the beginning of sorted array.
19608         (spill_for): Spill non spilled static chain pseudo last.
19609         * lra-constraints.c (lra_constraints): Remove static chain pseudo
19610         check for equivalence.
19612 2015-07-16  Martin Liska  <mliska@suse.cz>
19614         PR ipa/66896.
19615         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19616         dst_ctx if it does not exist.
19618 2015-07-16  Martin Liska  <mliska@suse.cz>
19620         * hash-set.h (remove): New function.
19621         (iterator): New iteration class for hash_set.
19623 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19625         * genattrtab.c (make_canonical): Add a file_location parameter.
19626         Use fatal_at rather than fatal.
19627         (get_attr_value): Likewise.  Update call to make_canonical.
19628         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19629         (make_internal_attr): Update calls accordingly.
19631 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19633         * read-md.h (message_with_line, error_with_line): Delete.
19634         * read-md.c (message_with_line, error_with_line): Delete.
19635         * gensupport.h: Include read-md.h.
19636         (md_rtx_info): New structure.
19637         (read_md_rtx): Use it.  Return a bool success value.
19638         * gensupport.c (read_md_rtx): Likewise.
19639         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19640         (main): Update after interface changes.
19641         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19642         (main): Update after interface changes.
19643         * genattrtab.c (insn_code_number): Delete.
19644         (optimize_attrs): Add a max_insn_code parameter and use it instead
19645         of insn_code_number.
19646         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19647         Use *_at rather than *_with_line functions.
19648         (gen_insn): Likewise.
19649         (gen_delay): Likewise.
19650         (gen_insn_reserv): Likewise.
19651         (gen_bypass): Take an md_rtx_info rather than an rtx.
19652         (main): Update after interface changes.  Use a local max_insn_code
19653         variable instead of insn_code_number.
19654         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19655         an rtx.  Use fatal_at rather than fatal.
19656         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19657         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19658         (gen_absence_set, gen_final_absence_set, gen_automaton)
19659         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19660         (main): Update after interface changes.
19661         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19662         and code number.
19663         (main): Update after interface changes.
19664         * genconditions.c (main): Use new read_md_rtx interface.
19665         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19666         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19667         (main): Update after interface changes.
19668         * genemit.c (insn_code_number, insn_index_number): Delete.
19669         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19670         Use fatal_at rather than fatal.
19671         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
19672         rather than fatal.
19673         (gen_split): Likewise.
19674         (main): Update after interface changes.
19675         * genextract.c (line_no): Delete.
19676         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19677         Update call to walk_rtx.
19678         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
19679         rather than message_with_line.
19680         (walk_rtx): Add an md_rtx_info argument.  Update call to
19681         VEC_safe_set_locstr.
19682         (main): Update after interface changes.
19683         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19684         and lineno.  Use error_at rather than separate message_with_line
19685         calls and have_error assignments.
19686         (main): Update after interface changes.
19687         * genmddump.c (main): Use new read_md_rtx interface.
19688         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19689         (main): Update after interface changes.
19690         * genoutput.c (next_code_number): Delete.
19691         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19692         (gen_peephole, gen_expand, gen_split): Likewise.
19693         (note_constraint): Likewise.  Use *_at rather than *_with_line
19694         functions.
19695         (main): Update after interface changes.
19696         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19697         rtx and lineno.
19698         (main): Update after interface changes.
19699         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19700         than an rtx and lineno.
19701         (process_define_constraint): Likewise.
19702         (process_define_register_constraint): Likewise.
19703         (main): Update after interface changes.
19704         * genrecog.c (next_insn_code, pattern_lineno): Delete.
19705         (validate_pattern): Replace top-level rtx with an md_rtx_info.
19706         Use *_at rather than *_with_line functions.
19707         (match_pattern_2): Likewise.
19708         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19709         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19710         Use *_at rather than *_with_line functions.
19711         * gentarget-def.c (add_insn): New function.
19712         (main): Use it.  Use new read_md_rtx interface.
19714 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19716         * gensupport.h (compute_test_codes): Take a file_location rather
19717         than a line number.
19718         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
19719         rather than *_with_line functions.
19720         (process_define_predicate): Update call to compute_test_codes.
19721         * genpreds.c (validate_exp): Take a file_location rather than a
19722         line number.  Use *_at functions rather than *_with_line functions.
19723         (process_define_predicate): Update call to validate_exp.
19724         (constraint_data): Replace lineno field with a file_location.
19725         (add_constraint): Take a file_location rather than a line number.
19726         Use *_at functions rather than *_with_line functions.  Fix error
19727         message for address constraints.  Update after changes to
19728         validate_exp, constraint_data and compute_test_codes.
19729         (process_define_constraint): Update accordingly.
19730         (process_define_register_constraint): Likewise.
19732 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19734         * genoutput.c (data): Use a file_location to record the source
19735         position.
19736         (nothing): Delete.
19737         (idata, idata_end): Remove initialization.
19738         (constraint_data): Replace lineno with a file_location.
19739         (output_insn_data): Update after changes to data.
19740         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19741         (scan_operands): Likewise, using *_at rather than *_with_line
19742         functions.
19743         (process_template): Likewise.
19744         (validate_insn_alternatives): Likewise.
19745         (validate_insn_operands): Likewise.
19746         (validate_optab_operands): Likewise.
19747         (init_insn_for_nothing): Initialize idata and idata_end.
19748         (note_constraint): Update after changes to constraint_data,
19749         using at rather than with_line functions.
19750         (mdep_constraint_len): Take a file_location rather than a
19751         line number.  Use at rather than with_line functions.
19753 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19755         * read-md.h (fatal_at): Declare.
19756         * read-md.c (fatal_at): New function.
19757         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19758         to record the source position.
19759         (check_attr_test): Take a file_location instead of a line number.
19760         Use fatal_at instead of fatal.
19761         (check_attr_value): Update after above changes, using "at"
19762         rather than "with_line" reporting functions.
19763         (convert_set_attr_alternative): Likewise.
19764         (gen_attr): Likewise.
19765         (check_defs): Likewise.  Don't assign to read_md_filename.
19766         (gen_insn): Update initialization after above changes.
19767         (gen_delay): Likewise.
19768         (write_insn_cases): Print the filename for a define_peephole.
19769         (gen_insn_reserv): Take a line number as argument and update
19770         the call to check_attr_test.
19771         (main): Pass a line number to gen_insn_reserv.
19773 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19775         * read-md.h (file_location): New structure.
19776         (directive_handler_t): Take a file_location rather than a line number.
19777         (message_at, error_at): Declare.
19778         (read_skip_construct): Delete.
19779         * read-md.c (message_with_line_1): Replace with...
19780         (message_at_1): ...this new function.
19781         (message_at, error_at): New functions.
19782         (message_with_line, error_with_line): Update to use message_at_1.
19783         (handle_enum): Take a file_location rather than a line number
19784         and use error_at for error reporting.
19785         (handle_include): Likewise.
19786         (read_skip_construct): Likewise.  Make static.
19787         (handle_file): Update after above changes.  Pass a file_location
19788         rather than a line number to handle_directive.
19789         * gensupport.c (queue_elem): Replace separate filename and lineno
19790         with a file_location.
19791         (queue_pattern): Replace filename and lineno arguments with a
19792         file_location.  Update after change to queue_elem.
19793         (process_define_predicate): Replace lineno argument with a
19794         file_location and use error_at for error reporting.  Update
19795         after above changes.
19796         (process_rtx): Likewise.
19797         (subst_pattern_match): Likewise.
19798         (get_alternatives_number): Likewise.
19799         (alter_predicate_for_insn): Likewise.
19800         (rtx_handle_directive): Likewise.
19801         (is_predicable): Update after above changes, using error_at rather
19802         than error_with_line.
19803         (has_subst_attribute): Likewise.
19804         (identify_predicable_attribute): Likewise.
19805         (alter_attrs_for_subst_insn): Likewise.
19806         (process_one_cond_exec): Likewise.
19807         (process_substs_on_one_elem): Likewise.
19808         (process_define_subst): Likewise.
19809         (check_define_attr_duplicates): Likewise.
19810         (read_md_rtx): Update after change to queue_elem.
19812 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19814         * genoutput.c (next_index_number): Delete.
19815         (data): Remove index_number.
19816         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19817         (main): Remove manipulation of next_index_number.
19819 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19821         * genattrtab.c (check_attr_value): Remove handling of null attrs.
19822         (make_canonical): Likewise.
19824 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
19826         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19827         instead of adjust_address_nv.
19828         (restore_stack_nonlocal): Likewise.
19829         (nonlocal_goto): Likewise.
19831 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19833         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19834         not have a corresponding loop header phi.
19836 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19838         * tree-parloops.c (create_loads_for_reductions): Handle case that
19839         reduction is unused.
19841 2015-07-16  Richard Biener  <rguenther@suse.de>
19843         PR tree-optimization/66894
19844         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19845         about deriving NE_EXPR from truncated values.
19847 2015-07-16  Martin Liska  <mliska@suse.cz>
19849         * alloc-pool.h
19850         (object_allocator): Add new class.
19851         (pool_allocator::initialize): Use the underlying class.
19852         (pool_allocator::allocate): Likewise.
19853         (pool_allocator::remove): Likewise.
19854         (operator new): A new generic allocator.
19855         * asan.c (struct asan_mem_ref): Remove unused members.
19856         (asan_mem_ref_new): Replace new operator with
19857         object_allocator::allocate.
19858         (free_mem_ref_resources): Change deallocation.
19859         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19860         with object_allocator.
19861         * config/sh/sh.c (add_constant): Replace new operator with
19862         object_allocator::allocate.
19863         (sh_reorg): Change call to a release method.
19864         * cselib.c (struct elt_list): Remove unused members.
19865         (new_elt_list): Replace new operator with
19866         object_allocator::allocate.
19867         (new_elt_loc_list): Likewise.
19868         (new_cselib_val): Likewise.
19869         (unchain_one_elt_list): Change delete operator with remove method.
19870         (unchain_one_elt_loc_list): Likewise.
19871         (unchain_one_value): Likewise.
19872         (cselib_finish): Release newly added static allocators.
19873         * cselib.h (struct cselib_val): Remove unused members.
19874         (struct elt_loc_list): Likewise.
19875         * df-problems.c (df_chain_alloc): Replace pool_allocator with
19876         object_allocator.
19877         * df-scan.c (struct df_scan_problem_data): Likewise.
19878         (df_scan_alloc): Likewise.
19879         * df.h (struct dataflow): Likewise.
19880         * dse.c (struct read_info_type): Likewise.
19881         (struct insn_info_type): Likewise.
19882         (struct dse_bb_info_type): Likewise.
19883         (struct group_info): Likewise.
19884         (struct deferred_change): Likewise.
19885         (get_group_info): Likewise.
19886         (delete_dead_store_insn): Likewise.
19887         (free_read_records): Likewise.
19888         (replace_read): Likewise.
19889         (check_mem_read_rtx): Likewise.
19890         (scan_insn): Likewise.
19891         (dse_step1): Likewise.
19892         (dse_step7): Likewise.
19893         * et-forest.c (struct et_occ): Remove unused members.
19894         (et_new_occ): Use allocate instead of new operator.
19895         (et_new_tree): Likewise.
19896         (et_free_tree): Call release method explicitly.
19897         (et_free_tree_force): Likewise.
19898         (et_free_pools): Likewise.
19899         (et_split): Use remove instead of delete operator.
19900         * et-forest.h (struct et_node): Remove unused members.
19901         * ipa-cp.c: Change pool_allocator to object_allocator.
19902         * ipa-inline-analysis.c: Likewise.
19903         * ipa-profile.c: Likewise.
19904         * ipa-prop.c: Likewise.
19905         * ipa-prop.h: Likewise.
19906         * ira-build.c (initiate_cost_vectors): Cast return value.
19907         (ira_allocate_cost_vector): Likewise.
19908         * ira-color.c (struct update_cost_record): Remove unused members.
19909         * lra-int.h (struct lra_live_range): Likewise.
19910         (struct lra_copy): Likewise.
19911         (struct lra_insn_reg): Likewise.
19912         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19913         * lra.c (new_insn_reg): Replace new operator with allocate method.
19914         (free_insn_regs): Same for operator delete.
19915         (finish_insn_regs): Release new static allocator.
19916         (finish_insn_recog_data): Likewise.
19917         (lra_free_copies): Replace delete operator with remove method.
19918         (lra_create_copy): Replace operator new with allocate method.
19919         (invalidate_insn_data_regno_info): Same for remove method.
19920         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19921         (free_debug_insn_changes): Replace delete operator with remove method.
19922         (replace_oldest_value_reg): Replace operator new with allocate method.
19923         (pass_cprop_hardreg::execute): Release new static variable.
19924         * sched-deps.c (sched_deps_init): Change pool_allocator to
19925         object_allocator.
19926         * sel-sched-ir.c: Likewise.
19927         * sel-sched-ir.h: Likewise.
19928         * stmt.c (expand_case): Likewise.
19929         (expand_sjlj_dispatch_table): Likewise.
19930         * tree-sra.c (struct access): Remove unused members.
19931         (struct assign_link): Likewise.
19932         (sra_deinitialize): Release newly added static pools.
19933         (create_access_1):Replace operator new with allocate method.
19934         (build_accesses_from_assign): Likewise.
19935         (create_artificial_child_access): Likewise.
19936         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19937         pool_allocator to object_allocator.
19938         * tree-ssa-pre.c: Likewise.
19939         * tree-ssa-reassoc.c: Likewise.
19940         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19941         * tree-ssa-strlen.c: Likewise.
19942         * tree-ssa-structalias.c: Likewise.
19943         * var-tracking.c (onepart_pool_allocate): New function.
19944         (unshare_variable): Use the newly added function.
19945         (variable_merge_over_cur): Likewise.
19946         (variable_from_dropped): Likewise.
19947         (variable_was_changed): Likewise.
19948         (set_slot_part): Likewise.
19949         (emit_notes_for_differences_1): Likewise.
19950         (vt_finalize): Release newly added static pools.
19952 2015-07-16  Martin Jambor  <mjambor@suse.cz>
19954         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
19955         all uses.  Fix two typos in its general comment.
19956         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
19958 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
19960         * config/i386/linux-common.h (LINK_MPX): New.
19961         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19962         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19963         indicating '-z bndplt' support by linker.
19964         * configure: Regenerate.
19965         * config.in: Regenerate.
19967 2015-07-16  Richard Biener  <rguenther@suse.de>
19969         * fold-const.c (fold_widened_comparison): Remove.
19970         (fold_sign_changed_comparison): Likewise.
19971         (fold_comparison): Move widened and sign-changed comparison
19972         simplification ...
19973         * match.pd: ... to patterns here.
19974         * generic-match-head.c: Include target.h.
19975         * gimple-match-head.c: Likewise.
19977 2015-07-16  Richard Biener  <rguenther@suse.de>
19979         * tree-ssa-dom.c (dom_valueize): New function.
19980         (record_temporary_equivalences): Also record equivalences
19981         for dominating stmts that have uses of equivalences we are
19982         about to record.
19984 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
19986         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19987         add_autoinc_candidates.
19988         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19989         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19990         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19991         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19992         Call new function.
19993         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19994         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19995         Remove parameter struct iv*.  Call add_autoinc_candidates here.
19996         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19997         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19998         Call new function.
19999         (find_iv_candidates): Call new functions.
20001 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
20003         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20004         uninitialized-variable warning.
20006 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20008         PR target/65249
20009         * config/sh/sh.md (movdi): Split simple reg move to two movsi
20010         when the destination is R0.
20012 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
20014         PR target/66866
20015         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20016         * config/i386/i386.c (ix86_expand_pextr): New function.
20017         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
20018         for non-lowpart subregs.
20019         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20020         (insv<mode>): Use SWI248 mode iterator.
20021         (insv<mode>_1): Ditto.
20023 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20024             Sebastian Pop  <s.pop@samsung.com>
20026         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20027         iterator to use_stmt.
20029 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20030             Sebastian Pop <s.pop@samsung.com>
20032         * graphite-scop-detection.c (build_scops_1): Discard scops for
20033         which entry==exit.
20035 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20036             Sebastian Pop <s.pop@samsung.com>
20038         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20039         case of a return statement in scop.
20041 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20042             Sebastian Pop <s.pop@samsung.com>
20044         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20045         INTEGER_TYPE parameters.
20046         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20047         VECTOR_CST in scan_tree_for_params.
20048         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20050 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20052         * gimple-pretty-print.h: Don't include pretty-print.h.
20053         * tree-streamer.h: Don't include lto-streamer.h.
20054         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20055         * gimple-streamer-in.c: Remove redundant includes.
20056         * gimple-streamer-out.c: Likewise.
20057         * ipa-devirt.c: Likewise.
20058         * ipa-icf.c: Likewise.
20059         * ipa-inline-analysis.c: Likewise.
20060         * ipa-polymorphic-call.c: Likewise.
20061         * ipa-profile.c: Likewise.
20062         * ipa-prop.c: Likewise.
20063         * ipa-pure-const.c: Likewise.
20064         * lto-cgraph.c: Likewise.
20065         * lto-streamer-in.c: Likewise.
20066         * lto-streamer-out.c: Likewise.
20067         * lto-streamer.c: Likewise.
20068         * tree-streamer-in.c: Likewise.
20069         * tree-streamer-out.c: Likewise.
20070         * tree-streamer.c: Likewise.
20072 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20074         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20075         include input.h.
20076         * opts.c: Remove multiline #include comment.
20078 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
20080         * config/nvptx/mkoffload.c (process): Add C++ protection to
20081         emitted code.
20083 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20085         PR target/66854
20086         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20087         null before IEEE 128-bit floating point support patch.
20089 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20091         * simplify-rtx.c (simplify_ternary_operation): Add simplification
20092         for (!c) != {0,...,0} ? a : b for vector modes.
20094 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
20095             Martin Jambor  <mjambor@suse.cz>
20097         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20098         struct func_body_info* instead of struct ipa_node_params*, expecting
20099         fbi->info to be filled in.  Replace throughout.  Adjust call to
20100         ipa_load_from_parm_agg.
20101         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20102         instead of struct ipa_node_params*.  Adjust calls to other functions
20103         so that they pass either fbi or fbi->info.
20104         (set_switch_stmt_execution_predicate): Likewise.
20105         (will_be_nonconstant_predicate): Likewise.
20106         (compute_bb_predicates): Likewise.
20107         (estimate_function_body_sizes): Move asserts earlier.  Fill in
20108         struct func_body_info, replace parms_info with fbi.info.  Adjust
20109         calls to functions that now accept struct func_body_info.
20110         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20111         (struct func_body_info): Likewise.
20112         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20113         remove static.  Adjust callers.
20114         (ipa_load_from_parm_agg): Remove.
20115         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20116         (func_body_info): Likewise.
20117         (ipa_load_from_parm_agg): Adjust prototype.
20119 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20121         * gensupport.c (rtx_handle_directive): Adjust.
20122         * read-rtl.c (apply_iterators): Take vector to add rtxs to
20123         instead of expr list rtx.
20124         (add_define_attr_for_define_subst): Likewise.
20125         (add_define_subst_attr): Likewise.
20126         (read_subst_mapping): Likewise.
20127         (read_rtx): Likewise.
20128         * rtl.h (read_rtx): Adjust.
20130 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20132         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20134 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20136         PR target/58066
20137         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20138         (*tls_local_dynamic_base_64_<mode>): Ditto.
20139         (*tls_local_dynamic_base_64_largepic): Ditto.
20140         (tls_global_dynamic_64_<mode>): Update expander pattern.
20141         (tls_local_dynamic_base_64_<mode>): Ditto.
20143 2015-07-15  Richard Biener  <rguenther@suse.de>
20145         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20146         and bool_var == 1 -> bool_var simplifications ...
20147         * match.pd: ... to patterns here.  Factor out negate_expr_p
20148         cases from the A - B -> A + (-B) patterns as negate_expr_p
20149         predicate and add a -(A + B) -> (-B) - A pattern.
20151 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20153         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20155 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
20156             Robert Suchanek  <robert.suchanek@imgtec.com>
20158         * config/mips/mips.c (mips_int_mask): New enum.
20159         (mips_shadow_set): Likewise.
20160         (int_mask): New variable.
20161         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20162         (machine_function): Add int_mask and use_shadow_register_set.
20163         (mips_attribute_table): Add attribute handlers for interrupt and
20164         use_shadow_register_set.
20165         (mips_interrupt_mask): New static function.
20166         (mips_handle_interrupt_attr): Likewise.
20167         (mips_handle_use_shadow_register_set_attr): Likewise.
20168         (mips_use_shadow_register_set): Change return type to enum
20169         mips_shadow_set.  Add argument handling for use_shadow_register_set
20170         attribute.
20171         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20172         compare with mips_shadow_set enum.
20173         (mips_compute_frame_info): Add interrupt mask and
20174         use_shadow_register_set to per-function information structure.
20175         Add a stack slot for EPC unconditionally.
20176         (mips_expand_prologue): Compare use_shadow_register_set value
20177         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
20178         masked interrupt register but in EIC mode use K0 and save Cause in K0.
20179         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
20180         copying the stack pointer from the shadow register set.
20181         * config/mips/mips.h (SR_IM0): New define.
20182         * config/mips/mips.md (mips_rdpgpr): Rename to...
20183         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
20184         * doc/extend.texi (Declaring Attributes of Functions): Document
20185         optional arguments for interrupt and use_shadow_register_set
20186         attributes.
20188 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20190         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20191         interrupt attribute.
20192         (mips_expand_prologue): Disable the floating point unit in an ISR.
20193         * config/mips/mips.h (SR_COP1): New define.
20195 2015-07-15  Richard Biener  <rguenther@suse.de>
20197         * genmatch.c (parser::peek, parser::peek_ident): Add argument
20198         to tell how many tokens to peek ahead (default 1).
20199         (parser::eat_token, parser::eat_ident): Return token consumed.
20200         (parser::parse_result): Parse new switch statement.
20201         * match.pd: Use case statements where appropriate.
20203 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20205         PR rtl-optimization/58066
20206         * calls.c (expand_call): Precompute register parameters before stack
20207         alignment is performed.
20209 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20211         PR rtl-optimization/66838
20212         * postreload.c (reload_cse_move2add): Also process
20213         CALL_INSN_FUNCTION_USAGE when resetting information of
20214         call-clobbered registers.
20216 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20217             Cesar Philippidis  <cesar@codesourcery.com>
20218             Chung-Lin Tang  <cltang@codesourcery.com>
20220         * config/nios2/constraints.md (U, v): New constraints.
20221         * config/nios2/predicates.md (rdprs_dcache_operand): New.
20222         (ldstex_memory_operand): New.
20223         * config/nios2/sync.md: New file.
20224         * config/nios2/nios2.md (unspecv): Add new builtin function
20225         UNSPECV codes.
20226         (rdprs, flushd, flushda, wrpie, eni): New patterns.
20227         (top-level): Include sync.md.
20228         * config/nios2/nios2.c (N2_FTYPES): Add function types for
20229         new builtins.
20230         (N2_BUILTINS): Add arch field setting, add new builtins.
20231         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20232         for arch field.
20233         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20234         Also handle ldex/stex/ldsex/stsex builtins.
20235         (nios2_expand_rdprs_builtin): New function.
20236         (nios2_expand_cache_builtin): New function.
20237         (nios2_expand_wrpie_builtin): New function.
20238         (nios2_expand_eni_builtin): New function.
20239         (nios2_expand_builtin): Add arch field handling and new builtin
20240         cases.
20241         * doc/extend.texi (Altera Nios II Built-in Functions): Document
20242         new builtins.
20243         * doc/md.texi (Machine Constraints): Document U and v constraints.
20245 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20246             Cesar Philippidis  <cesar@codesourcery.com>
20247             Chung-Lin Tang  <cltang@codesourcery.com>
20249         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20250         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20251         callee_save_reg_size and uses_anonymous_args fields.
20252         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20253         (nios2_create_cfa_notes): New function.
20254         (nios2_adjust_stack): New function for adjusting stack.
20255         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20256         Use nios2_adjust_stack.
20257         (nios2_expand_epilogue): Likewise.
20258         (nios2_expand_return): New function.
20259         (nios2_can_use_return_insn): Update for CDX pop.n usage.
20260         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20261         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20262         * config/nios2/nios2.md (return): Use nios2_expand_return.
20264 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20265             Cesar Philippidis  <cesar@codesourcery.com>
20266             Chung-Lin Tang  <cltang@codesourcery.com>
20268         * config/nios2/predicates.md (pop_operation): New.
20269         (ldwm_operation, stwm_operation): New.
20270         (nios2_hard_register_operand): New.
20271         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20272         (ldstwm_operation_p): Declare.
20273         (gen_ldstwm_peep): Declare.
20274         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20275         (base_reg_adjustment_p): New.
20276         (pop_operation_p): New.
20277         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20278         (nios2_ldstwm_regset_p): New.
20279         (ldstwm_operation_p): New.
20280         (gen_ldst): New.
20281         (nios2_ldst_parallel): New.
20282         (struct ldswm_operand): Declare.
20283         (compare_ldstwm_operands): New.
20284         (can_use_cdx_ldstw): New.
20285         (gen_ldstwm_peep): New.
20286         * config/nios2/nios2-ldstwm.sml: New.
20287         * config/nios2/nios2.md: Include ldstwm.md.
20288         * config/nios2/ldstwm.md: Generated.
20290 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20291             Cesar Philippidis  <cesar@codesourcery.com>
20292             Chung-Lin Tang  <cltang@codesourcery.com>
20294         * config/nios2/nios2.h (LABEL_ALIGN): Define.
20295         (REG_ALLOC_ORDER): Define.
20296         (ADJUST_REG_ALLOC_ORDER): Define.
20297         (HONOR_REG_ALLOC_ORDER): Define.
20298         (CDX_REG_P): Define.
20299         (ANDCLEAR_INT): Define.
20300         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20301         (nios2_label_align): Declare.
20302         (nios2_cdx_narrow_form_p): Declare.
20303         (nios2_adjust_reg_alloc_order): Declare.
20304         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20305         operation.
20306         (nios2_large_unspec_reloc_p): New function, split from...
20307         (nios2_legitimate_pic_operand_p): ...here.
20308         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20309         (nios2_print_operand_punct_valid_p): New.
20310         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
20311         (split_mem_address): New.
20312         (split_alu_insn): New.
20313         (cdxreg): New.
20314         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20315         (enum nios2_add_insn_kind): New.
20316         (nios2_add_insn_names, nios2_add_insn_narrow): New.
20317         (nios2_add_insn_classify): New.
20318         (nios2_add_insn_asm): New.
20319         (nios2_cdx_narrow_form_p): New.
20320         (label_align, min_labelno, max_labelno): New.
20321         (nios2_reorg): New.
20322         (nios2_label_align): New.
20323         (nios2_adjust_reg_alloc_order): New.
20324         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20325         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20326         * config/nios2/constraints.md (P): New constraint.
20327         * config/nios2/predicates.md (const_and_operand): New.
20328         (and_operand): New.
20329         (stack_memory_operand): New.
20330         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20331         (length): Update to use nios2_cdx_narrow_form_p().
20332         (type): Add new insn type values.
20333         (control, alu, st, ld, shift): Update insn reservations with
20334         new insn type values.
20335         (*high, *lo_sum): Define new insn patterns for constant generation.
20336         (movqi_internal, movhi_internal, movsi_internal): Reduce
20337         alternatives, update asm template to handle CDX variants, update
20338         type attributes.
20339         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20340         template, update type attributes.
20341         (extendhisi2, extendqi<mode>2): Likewise.
20342         (addsi3): Change to use function for asm string.
20343         (subsi3): Add CDX notation to asm template, update type attributes.
20344         (negsi3, one_cmplsi3): Likewise.
20345         (andsi3): New pattern, specialized from logical patterns.
20346         (<code>si3): Remove and case, combine alternatives, update asm
20347         template.
20348         (<shift_op>si3): Add CDX notation, update type attributes.
20349         (rotrsi3): Update type attribute.
20350         (*merge, extzv, insv): New insn patterns.
20351         (return): Change to define_expand.
20352         (simple_return): Add CDX notation, update type attributes.
20353         (indirect_jump): Add CDX notation.
20354         (jump): Update asm cases, update length attribute expression.
20355         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20356         (nios2_cbranch): Update asm cases and length attribute expression
20357         to handle CDX variants.
20358         (nios2_cmp<code>): Update asm template.
20359         (nop): Add CDX notation, update type attributes.
20360         (trap): Add CDX notation.
20361         (ctrapsi4): Update asm cases and length attribute expression to
20362         handle CDX variant.
20363         * doc/md.texi (Machine Constraints): Document P constraint.
20365 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20366             Cesar Philippidis  <cesar@codesourcery.com>
20367             Chung-Lin Tang  <cltang@codesourcery.com>
20369         * config/nios2/nios2.h (SMALL_INT12): New macro.
20370         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20371         (nios2_valid_addr_expr_p): Use it.
20372         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20373         with implicit "io" instructions on R2.
20374         * config/nios2/constraints.md (w): New constraint.
20375         * config/nios2/predicates.md (ldstio_memory_operand): New.
20376         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20377         operand predicate and constraint.
20378         (ld<bh>io_signed, st<bhw>io>): Likewise.
20379         * doc/md.texi (Machine Constraints): Document w constraint.
20381 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20382             Cesar Philippidis  <cesar@codesourcery.com>
20383             Chung-Lin Tang  <cltang@codesourcery.com>
20385         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20386         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20387         Nios II architecture level.
20388         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20389         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20390         (OPTION_DEFAULT_SPECS): Define.
20391         (ASM_SPEC): Add -march= spec strings.
20392         * config/nios2/nios2.c (nios2_option_override): Check for
20393         conflicts involving new options.
20394         * config.gcc (nios2*-*-*): Support --with-arch=.
20395         * doc/invoke.texi (Option Summary, Nios II Options): Document
20396         -march=, -mbmx, and -mcdx.
20398 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
20400         PR rtl-optimization/66626
20401         * lra-constraints.c (lra_constraints): Prevent equivalence
20402         substitution for static chain pseudo in functions with nonlocal
20403         goto.
20405 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20407         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20408         (nios2_emit_stack_limit_check): Add size parameter.  Handle
20409         -fstack-limit-symbol as well as -fstack-limit-register.
20410         (nios2_expand_prologue): Emit only a single stack limit check,
20411         even if multiple stack adjustments are required.
20412         (nios2_option_override): Diagnose unsupported combination of -fpic
20413         and -stack-limit-symbol.
20415 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
20417         * Makefile.in (top_srcdir): New.
20418         * configure.ac: Use AM_ZLIB.
20419         * configure: Regeneated.
20421 2015-07-14  Matthias Klose  <doko@ubuntu.com>
20423         PR target/66840
20424         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20426 2015-07-14  Richard Biener  <rguenther@suse.de>
20428         PR tree-optimization/66863
20429         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20430         what we record for conversion use stmt lhs inequalities.
20432 2015-07-14  Richard Biener  <rguenther@suse.de>
20434         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20435         (decision_tree::gen_gimple): Likewise.
20437 2015-07-14  Tom de Vries  <tom@codesourcery.com>
20439         * gcc.c (greater_than_spec_func): Declare forward.
20440         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20441         -ftree-parallelize-loops={0,1}.
20442         (static_spec_functions): Add greater_than_spec_func function with name
20443         "gt".
20444         (greater_than_spec_func): New function.
20446 2015-07-14  Richard Biener  <rguenther@suse.de>
20448         * tree-ssa-dom.c (record_temporary_equivalences): Merge
20449         wideing type conversion case from record_equivalences_from_incoming_edge
20450         and use record_equality to record equivalences.
20451         (record_equivalences_from_incoming_edge): Call
20452         record_temporary_equivalences.
20454 2015-07-14  Richard Biener  <rguenther@suse.de>
20456         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20457         (struct if_expr): New.
20458         (struct with_expr): Likewise.
20459         (is_a_helper): Add helpers for if_expr and with_expr.
20460         (struct simplify): Add simplify_kind enum and member.  Remove
20461         ifexpr_vec member.
20462         (simplify::simplify): Adjust.
20463         (lower_commutative): Adjust.
20464         (lower_opt_convert): Likewise.
20465         (lower_cond): Likewise.
20466         (replace_id): Handle with_expr and if_expr.
20467         (lower_for): Adjust.
20468         (dt_simplify::gen_1): New recursive worker, split out from ...
20469         (dt_simplify::gen): ... here.  Deal with if and with expansion
20470         recursively.
20471         (capture_info::capture_info): Take context argument
20472         (capture_info::walk_result): Only analyze specific result.
20473         (parser::parse_result): New function.
20474         (parser::parse_simplify): Adjust to parse ifs with then end
20475         else case.
20476         (parser::parse_if): Simplify.
20477         (parser::parse_pattern): Pass down simplify kind.
20478         * match.pd: Convert if structure to new syntax.
20480 2015-07-13  Marek Polacek  <polacek@redhat.com>
20482         * rtl.c (rtx_equal_p_cb): Fix typo.
20484 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
20486         * omega.h: Don't include config.h, don't include params.h again if
20487         omega.h has already been included.
20488         * graphite-poly.h: Include sese.h.
20489         * graphite.c: Don't include sese.h, remove needless includes and
20490         minimize includes outside #ifdef HAVE_isl block.
20491         * graphite-blocking.c: Don't include sese.h, remove needless includes,
20492         and wrap entire file in #ifdef HAVE_isl
20493         * graphite-dependences.c: Likewise.
20494         * graphite-interchange.c: Likewise.
20495         * graphite-isl-ast-to-gimple.c: Likewise.
20496         * graphite-optimize-isl.c: Likewise.
20497         * graphite-poly.c: Likewise.
20498         * graphite-scop-detection.c: Likewise.
20499         * graphite-sese-to-poly.c: Likewise.
20501 2015-07-13  Tom de Vries  <tom@codesourcery.com>
20503         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20505 2015-07-13  Renlin Li  <renlin.li@arm.com>
20507         PR rtl/66556
20508         * simplify-rtx.c (simplify_const_relational_operation): Add
20509         side_effects_p checks.
20511 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
20513         * bitmap.h: Fix double word typos.
20514         * builtins.c: Same.
20515         * calls.c: Same.
20516         * cfgloopmanip.c: Same.
20517         * cgraph.c: Same.
20518         * cgraph.h: Same.
20519         * cgraphclones.c: Same.
20520         * combine.c: Same.
20521         * config/aarch64/aarch64-protos.h: Same.
20522         * config/aarch64/aarch64.c: Same.
20523         * config/aarch64/aarch64.md: Same.
20524         * config/arm/arm.md: Same.
20525         * config/arm/arm1020e.md: Same.
20526         * config/arm/arm1026ejs.md: Same.
20527         * config/arm/arm926ejs.md: Same.
20528         * config/arm/fa526.md: Same.
20529         * config/arm/fa606te.md: Same.
20530         * config/arm/fa626te.md: Same.
20531         * config/arm/fa726te.md: Same.
20532         * config/arm/fmp626.md: Same.
20533         * config/darwin.c: Same.
20534         * config/epiphany/epiphany.c: Same.
20535         * config/frv/frv.c: Same.
20536         * config/ft32/ft32.c: Same.
20537         * config/gnu-user.h: Same.
20538         * config/h8300/constraints.md: Same.
20539         * config/i386/i386.c: Same.
20540         * config/i386/i386.md: Same.
20541         * config/iq2000/iq2000.md: Same.
20542         * config/mips/mips.c: Same.
20543         * config/mmix/mmix.md: Same.
20544         * config/moxie/moxie.c: Same.
20545         * config/nds32/nds32.md: Same.
20546         * config/pa/pa.h: Same.
20547         * config/rs6000/aix.h: Same.
20548         * config/rs6000/rs6000.h: Same.
20549         * config/sh/sh.c: Same.
20550         * config/tilegx/tilegx.md: Same.
20551         * config/tilepro/gen-mul-tables.cc: Same.
20552         * cse.c: Same.
20553         * dbxout.c: Same.
20554         * doc/invoke.texi: Same.
20555         * dse.c: Same.
20556         * dwarf2out.c: Same.
20557         * final.c: Same.
20558         * gcc.c: Same.
20559         * genmatch.c: Same.
20560         * gimplify.c: Same.
20561         * hash-table.h: Same.
20562         * internal-fn.c: Same.
20563         * ipa-cp.c: Same.
20564         * ipa-devirt.c: Same.
20565         * ipa-icf.c: Same.
20566         * ipa-icf.h: Same.
20567         * ipa-profile.c: Same.
20568         * ipa-prop.c: Same.
20569         * ipa-prop.h: Same.
20570         * ira.c: Same.
20571         * omp-low.c: Same.
20572         * reg-stack.c: Same.
20573         * regcprop.c: Same.
20574         * reorg.c: Same.
20575         * rtl.h: Same.
20576         * sbitmap.h: Same.
20577         * tree-eh.c: Same.
20578         * tree-inline.c: Same.
20579         * tree-sra.c: Same.
20580         * tree-ssa-dom.c: Same.
20581         * tree-ssa-loop-ivopts.c: Same.
20582         * tree-ssa-structalias.c: Same.
20583         * tree-ssa-tail-merge.c: Same.
20584         * tree-ssa-ter.c: Same.
20585         * tree-ssa-threadupdate.c: Same.
20586         * tree-ssa-uninit.c: Same.
20587         * tree-ssanames.c: Same.
20588         * tree-vect-loop-manip.c: Same.
20589         * tree-vrp.c: Same.
20590         * tree.c: Same.
20591         * valtrack.c: Same.
20592         * vec.h: Same.
20594 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20596         PR middle-end/66726
20597         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20598         tree_ssa_phiopt_worker): Call it.
20600 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20602         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20603         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20604         REG_EQUAL note.
20606 2015-07-11  Marek Polacek  <polacek@redhat.com>
20608         PR middle-end/66353
20609         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20610         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20611         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20612         rather than bb_has_abnormal_call_pred.
20613         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20614         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20615         rather than bb_has_abnormal_call_pred.
20617 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
20619         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20620         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20621         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20622         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20623         v850_legitimate_address_p): New functions.
20624         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20626 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
20628         PR target/66819
20629         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20630         indirect sibcall with register arguments if register available
20631         for argument passing.
20632         (init_cumulative_args): Set cfun->machine->arg_reg_available
20633         to (cum->nregs > 0) or to true if function has a variable
20634         argument list.
20635         (function_arg_advance_32): Set cfun->machine->arg_reg_available
20636         to false if cum->nregs <= 0.
20637         * config/i386/i386.h (machine_function): Add arg_reg_available.
20639 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20641         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20642         and gen_higpart instead of gen_rtx_SUBREG.
20643         * config/i386/i386.md
20644         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20645         (read-modify peephole2): Use gen_lowpart instead of
20646         gen_rtx_SUBREG for operand 5.
20648 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20650         * config/tilepro/gen-mul-tables.cc (main): Change include list for
20651         generated files.
20652         * config/tilepro/mul-tables.c: Regenerate.
20653         * config/tilegx/mul-tables.c: Regenerate.
20655 2015-07-10  Richard Biener  <rguenther@suse.de>
20657         * fold-const.c (distribute_bit_expr): Remove.
20658         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20659         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20660         to A & (B | C) and simplifying A << C1 << C2 to ...
20661         * match.pd: ... patterns here.
20663 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
20665         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20666         Mark mem as READONLY and NOTRAP for PIC symbol.
20668 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20670         * gimple-predict.h: New file.
20671         (gimple_predict_predictor, gimple_predict_set_predictor,
20672         gimple_predict_outcome, gimple_predict_set_outcome,
20673         gimple_build_predict): Relocate here.
20674         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20675         gimple_predict_outcome, gimple_predict_set_outcome): Move to
20676         gimple-predict.h.
20677         * gimple.c (gimple_build_predict): Move to gimple-predict.h
20678         * basic-block.h: Don't include cfghooks.h.
20679         * backend.h: Don't include predict.h.
20680         * cfghooks.h: Include predict.h.
20681         * gimple-pretty-print.c: Include gimple-predict.h.
20682         * gimplify.c: Likwise.
20683         * predict.c: Adjust includes.
20684         * tree-inline.c: Likewise.
20685         * asan.c: Likewise.
20686         * auto-inc-dec.c: Likewise.
20687         * auto-profile.c: Likewise.
20688         * bb-reorder.c: Likewise.
20689         * builtins.c: Likewise.
20690         * caller-save.c: Likewise.
20691         * calls.c: Likewise.
20692         * cfganal.c: Likewise.
20693         * cfgbuild.c: Likewise.
20694         * cfg.c: Likewise.
20695         * cfgcleanup.c: Likewise.
20696         * cfgexpand.c: Likewise.
20697         * cfghooks.c: Likewise.
20698         * cfgloopanal.c: Likewise.
20699         * cfgloop.c: Likewise.
20700         * cfgloopmanip.c: Likewise.
20701         * cfgrtl.c: Likewise.
20702         * cgraph.c: Likewise.
20703         * cgraphunit.c: Likewise.
20704         * combine.c: Likewise.
20705         * cprop.c: Likewise.
20706         * cse.c: Likewise.
20707         * dce.c: Likewise.
20708         * dojump.c: Likewise.
20709         * dse.c: Likewise.
20710         * except.c: Likewise.
20711         * expmed.c: Likewise.
20712         * expr.c: Likewise.
20713         * final.c: Likewise.
20714         * fold-const.c: Likewise.
20715         * function.c: Likewise.
20716         * fwprop.c: Likewise.
20717         * gcc-plugin.h: Likewise.
20718         * gcse.c: Likewise.
20719         * genattrtab.c: Likewise.
20720         * genemit.c: Likewise.
20721         * gengtype.c: Likewise.
20722         * genopinit.c: Likewise.
20723         * genoutput.c: Likewise.
20724         * genpreds.c: Likewise.
20725         * genrecog.c: Likewise.
20726         * gimple-fold.c: Likewise.
20727         * gimple-iterator.c: Likewise.
20728         * gimple-ssa-isolate-paths.c: Likewise.
20729         * gimple-ssa-strength-reduction.c: Likewise.
20730         * graph.c: Likewise.
20731         * graphite-blocking.c: Likewise.
20732         * graphite.c: Likewise.
20733         * graphite-dependences.c: Likewise.
20734         * graphite-interchange.c: Likewise.
20735         * graphite-isl-ast-to-gimple.c: Likewise.
20736         * graphite-optimize-isl.c: Likewise.
20737         * graphite-poly.c: Likewise.
20738         * graphite-scop-detection.c: Likewise.
20739         * graphite-sese-to-poly.c: Likewise.
20740         * haifa-sched.c: Likewise.
20741         * ifcvt.c: Likewise.
20742         * internal-fn.c: Likewise.
20743         * ipa-cp.c: Likewise.
20744         * ipa-profile.c: Likewise.
20745         * ipa-split.c: Likewise.
20746         * ipa-utils.c: Likewise.
20747         * ira-build.c: Likewise.
20748         * ira-color.c: Likewise.
20749         * ira-conflicts.c: Likewise.
20750         * ira-costs.c: Likewise.
20751         * ira-emit.c: Likewise.
20752         * ira-lives.c: Likewise.
20753         * jump.c: Likewise.
20754         * loop-doloop.c: Likewise.
20755         * loop-init.c: Likewise.
20756         * loop-invariant.c: Likewise.
20757         * loop-unroll.c: Likewise.
20758         * lower-subreg.c: Likewise.
20759         * lra-assigns.c: Likewise.
20760         * lra.c: Likewise.
20761         * lra-coalesce.c: Likewise.
20762         * lra-constraints.c: Likewise.
20763         * lra-lives.c: Likewise.
20764         * lto-cgraph.c: Likewise.
20765         * lto-streamer-in.c: Likewise.
20766         * mode-switching.c: Likewise.
20767         * modulo-sched.c: Likewise.
20768         * omp-low.c: Likewise.
20769         * optabs.c: Likewise.
20770         * passes.c: Likewise.
20771         * postreload.c: Likewise.
20772         * postreload-gcse.c: Likewise.
20773         * profile.c: Likewise.
20774         * recog.c: Likewise.
20775         * regstat.c: Likewise.
20776         * reload1.c: Likewise.
20777         * reorg.c: Likewise.
20778         * rtlanal.c: Likewise.
20779         * sched-ebb.c: Likewise.
20780         * sel-sched-ir.c: Likewise.
20781         * sese.c: Likewise.
20782         * shrink-wrap.c: Likewise.
20783         * simplify-rtx.c: Likewise.
20784         * stmt.c: Likewise.
20785         * store-motion.c: Likewise.
20786         * tracer.c: Likewise.
20787         * trans-mem.c: Likewise.
20788         * tree-call-cdce.c: Likewise.
20789         * tree-cfg.c: Likewise.
20790         * tree-cfgcleanup.c: Likewise.
20791         * tree-chkp.c: Likewise.
20792         * tree-complex.c: Likewise.
20793         * tree-eh.c: Likewise.
20794         * tree-if-conv.c: Likewise.
20795         * tree-loop-distribution.c: Likewise.
20796         * tree-outof-ssa.c: Likewise.
20797         * tree-parloops.c: Likewise.
20798         * tree-predcom.c: Likewise.
20799         * tree-pretty-print.c: Likewise.
20800         * tree-profile.c: Likewise.
20801         * tree-sra.c: Likewise.
20802         * tree-ssa.c: Likewise.
20803         * tree-ssa-coalesce.c: Likewise.
20804         * tree-ssa-dce.c: Likewise.
20805         * tree-ssa-dom.c: Likewise.
20806         * tree-ssa-forwprop.c: Likewise.
20807         * tree-ssa-ifcombine.c: Likewise.
20808         * tree-ssa-loop-ch.c: Likewise.
20809         * tree-ssa-loop-im.c: Likewise.
20810         * tree-ssa-loop-ivcanon.c: Likewise.
20811         * tree-ssa-loop-ivopts.c: Likewise.
20812         * tree-ssa-loop-manip.c: Likewise.
20813         * tree-ssa-loop-prefetch.c: Likewise.
20814         * tree-ssa-loop-unswitch.c: Likewise.
20815         * tree-ssa-math-opts.c: Likewise.
20816         * tree-ssa-phiopt.c: Likewise.
20817         * tree-ssa-pre.c: Likewise.
20818         * tree-ssa-reassoc.c: Likewise.
20819         * tree-ssa-sink.c: Likewise.
20820         * tree-ssa-tail-merge.c: Likewise.
20821         * tree-ssa-threadedge.c: Likewise.
20822         * tree-ssa-threadupdate.c: Likewise.
20823         * tree-switch-conversion.c: Likewise.
20824         * tree-tailcall.c: Likewise.
20825         * tree-vect-data-refs.c: Likewise.
20826         * tree-vect-loop.c: Likewise.
20827         * tree-vect-loop-manip.c: Likewise.
20828         * tree-vectorizer.c: Likewise.
20829         * tree-vrp.c: Likewise.
20830         * ubsan.c: Likewise.
20831         * value-prof.c: Likewise.
20832         * varasm.c: Likewise.
20833         * var-tracking.c: Likewise.
20834         * config/aarch64/aarch64-builtins.c: Likewise.
20835         * config/aarch64/aarch64.c: Likewise.
20836         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20837         * config/alpha/alpha.c: Likewise.
20838         * config/arc/arc.c: Likewise.
20839         * config/arm/arm.c: Likewise.
20840         * config/avr/avr.c: Likewise.
20841         * config/bfin/bfin.c: Likewise.
20842         * config/c6x/c6x.c: Likewise.
20843         * config/cr16/cr16.c: Likewise.
20844         * config/cris/cris.c: Likewise.
20845         * config/darwin.c: Likewise.
20846         * config/darwin-c.c: Likewise.
20847         * config/epiphany/epiphany.c: Likewise.
20848         * config/epiphany/mode-switch-use.c: Likewise.
20849         * config/epiphany/resolve-sw-modes.c: Likewise.
20850         * config/fr30/fr30.c: Likewise.
20851         * config/frv/frv.c: Likewise.
20852         * config/ft32/ft32.c: Likewise.
20853         * config/h8300/h8300.c: Likewise.
20854         * config/i386/i386.c: Likewise.
20855         * config/i386/winnt.c: Likewise.
20856         * config/ia64/ia64.c: Likewise.
20857         * config/iq2000/iq2000.c: Likewise.
20858         * config/lm32/lm32.c: Likewise.
20859         * config/m32c/m32c.c: Likewise.
20860         * config/m32r/m32r.c: Likewise.
20861         * config/m68k/m68k.c: Likewise.
20862         * config/mcore/mcore.c: Likewise.
20863         * config/mep/mep.c: Likewise.
20864         * config/microblaze/microblaze.c: Likewise.
20865         * config/mips/mips.c: Likewise.
20866         * config/mmix/mmix.c: Likewise.
20867         * config/mn10300/mn10300.c: Likewise.
20868         * config/moxie/moxie.c: Likewise.
20869         * config/msp430/msp430.c: Likewise.
20870         * config/nds32/nds32.c: Likewise.
20871         * config/nds32/nds32-cost.c: Likewise.
20872         * config/nds32/nds32-fp-as-gp.c: Likewise.
20873         * config/nds32/nds32-intrinsic.c: Likewise.
20874         * config/nds32/nds32-isr.c: Likewise.
20875         * config/nds32/nds32-md-auxiliary.c: Likewise.
20876         * config/nds32/nds32-memory-manipulation.c: Likewise.
20877         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20878         * config/nds32/nds32-predicates.c: Likewise.
20879         * config/nios2/nios2.c: Likewise.
20880         * config/nvptx/nvptx.c: Likewise.
20881         * config/pa/pa.c: Likewise.
20882         * config/pdp11/pdp11.c: Likewise.
20883         * config/rl78/rl78.c: Likewise.
20884         * config/rs6000/rs6000.c: Likewise.
20885         * config/rx/rx.c: Likewise.
20886         * config/s390/s390.c: Likewise.
20887         * config/sh/sh.c: Likewise.
20888         * config/sh/sh-mem.cc: Likewise.
20889         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20890         * config/sh/sh_treg_combine.cc: Likewise.
20891         * config/sparc/sparc.c: Likewise.
20892         * config/spu/spu.c: Likewise.
20893         * config/stormy16/stormy16.c: Likewise.
20894         * config/tilegx/tilegx.c: Likewise.
20895         * config/tilepro/tilepro.c: Likewise.
20896         * config/v850/v850.c: Likewise.
20897         * config/vax/vax.c: Likewise.
20898         * config/visium/visium.c: Likewise.
20899         * config/xtensa/xtensa.c: Likewise.
20901 2015-07-10  Richard Biener  <rguenther@suse.de>
20903         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20904         (decision_tree::gen_gimple): Likewise.
20905         (decision_tree::gen_generic): Likewise.
20907 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20909         PR target/66813
20910         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20911         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20913 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
20915         PR middle-end/66820
20916         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20917         or ORT_TASK contexts.
20918         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20919         is non-zero.
20921 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20923         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20924         above function.
20926 2015-07-10  Tom de Vries  <tom@codesourcery.com>
20928         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20929         insert nit + 1 bound.
20931 2015-07-10  Richard Biener  <rguenther@suse.de>
20933         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20934         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20935         (if_convertible_loop_p_1): For this always compute bb predicates.
20936         (if_convertible_loop_p): And free them.
20938 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20940         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20941         in dump message.
20943 2015-07-10  Richard Biener  <rguenther@suse.de>
20945         PR tree-optimization/66823
20946         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20947         inverted predicate.
20949 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
20951         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20952         to handle mips[32|64]r3 and mips[32|64]r5.
20954 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
20956         PR middle-end/66633
20957         * tree-nested.c (get_static_chain): Or in a flag into
20958         info->static_chain_added.
20959         (get_frame_field, get_nonlocal_debug_decl): Likewise.
20960         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20961         2015-07-01 changes.
20962         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20963         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20964         add it to clauses.
20966         PR tree-optimization/66718
20967         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20968         field.
20969         (vect_simd_lane_linear): New function.
20970         (vectorizable_simd_clone_call): Support using linear arguments for
20971         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20973 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20975         PR target/66821
20976         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20978 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20980         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20981         Use machine mode, not enum machine_mode in the prototype.
20983         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20984         classify 128-bit floating point support.
20985         (FLOAT128_IBM_P): Likewise.
20986         (FLOAT128_VECTOR_P): Likewise.
20987         (FLOAT128_2REG_P): Likewise.
20988         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20989         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20990         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20991         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20993         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20994         tests against TFmode/TDmode, since those modes do not use VSX
20995         addresses.
20996         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20997         support.
20998         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20999         tests against TFmode, etc.
21000         (invalid_e500_subreg): Add tests against IFmode/KFmode.
21001         (reg_offset_addressing_ok_p): Likewise.
21002         (rs6000_legitimate_offset_address_p): Likewise.
21003         (rs6000_legitimize_address): Likewise.
21004         (rs6000_legitimize_reload_address): Likewise.
21005         (rs6000_legitimate_address_p): Clean up tests against TFmode and
21006         TDmode to use the new helper macros, which will include IFmode and
21007         KFmode.
21008         (rs6000_emit_move): Likewise.
21009         (rs6000_darwin64_record_arg_recurse): Likewise.
21010         (print_operand): Likewise.
21011         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21012         that uses a single vector register as a vector and not as a
21013         floating point register in terms of the calling sequence.
21014         (rs6000_discover_homogeneous_aggregate): Likewise.
21015         (rs6000_return_in_memory): Likewise.
21016         (init_cumulative_args): Likewise.
21017         (rs6000_function_arg_boundary): Likewise.
21018         (rs6000_function_arg_advance_1): Likewise.
21019         (rs6000_function_arg): Likewise.
21020         (rs6000_pass_by_reference): Likewise.
21021         (rs6000_gimplify_va_arg): Likewise.
21022         (rs6000_secondary_reload_memory): Use machine_mode not enum
21023         machine mode.
21024         (rs6000_split_multireg_move): Use new helper macros.
21025         (spe_func_has_64bit_regs_p): Likewise.
21026         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21027         (output_toc): Use new helper macros.
21028         (rs6000_register_move_cost): Likewise.
21029         (rs6000_function_value): Add IEEE 128-bit floating point calling
21030         sequence support.
21031         (rs6000_libcall_value): Likewise.
21032         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21033         floating point support.
21034         (rs6000_vector_mode_supported_p): Likewise.
21036 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
21038         PR rtl-optimization/66782
21039         * lra-int.h (struct lra_insn_recog_data): Add comment about
21040         clobbered hard regs for arg_hard_regs.
21041         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21042         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21043         Add condition for processing used hard regs.
21044         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21045         Process clobbered hard regs.
21047 2015-07-09  Michael Matz  <matz@suse.de>
21049         * genmatch.c (fprintf_indent): New function.
21050         (operand::gen_transform): Add indent parameter.
21051         (expr::gen_transform, c_expr::gen_transform,
21052         capture::gen_transform): Ditto and use fprintf_indent.
21053         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21054         (dt_operand::gen, dt_operand::gen_predicate,
21055         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21056         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21057         (decision_tree::gen_gimple): Adjust calls and indent generated
21058         code.
21059         (decision_tree::gen_generic): Ditto.
21060         (write_predicate): Ditto.
21062 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21064         PR target/66814
21065         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21066         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21067         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21068         {GENERAL,SSE,MMX}_REG_P where appropriate.
21070 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21072         * lto-streamer.h: Don't include target.h and alloc-pool.h.
21073         * builtins.c: Adjust includes.
21074         * gimple.c: Likewise.
21075         * ipa-icf.c: Likewise.
21076         * lto-opts.c: Likewise.
21077         * ipa-reference.c: Likewise.
21078         * lto-section-out.c: Likewise.
21079         * lto-streamer-in.c: Likewise.
21080         * lto-streamer-out.c: Likewise.
21081         * opts-global.c: Likewise.
21082         * symtab.c: Likewise.
21083         * tree-chkp.c: Likewise.
21084         * tree-ssa-live.c: Likewise.
21085         * tree-streamer-in.c: Likewise.
21086         * tree-streamer-out.c: Likewise.
21087         * config/darwin.c: Likewise.
21088         * config/i386/winnt.c: Likewise.
21090 2015-07-09  Richard Biener  <rguenther@suse.de>
21092         * genmatch.c (struct expr): Add force_single_use flag.
21093         (expr::expr): Add copy constructor.
21094         (capture_info::walk_match): Gather force_single_use captures.
21095         (expr::gen_transform): Use possibly NULLified sequence.
21096         (dt_simplify::gen): Apply single-use restrictions by NULLifying
21097         seq if any constrained expr is not single-use.
21098         (parser::parse_expr): Refactor to allow multiple flags.  Handle
21099         's' flag to force an expression have a single-use if the pattern
21100         simplifies to more than one statement.
21101         * match.pd: Convert most single_use conditionals to :s flags.
21103 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21105         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21106         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21107         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21109 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21111         * flags.h: Don't include flag-types.h or options.h.
21112         * opts-common.c: Adjust includes.
21113         * opts-global.c: Likewise.
21114         * common/config/epiphany/epiphany-common.c: Likewise.
21116 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21118         PR target/66818
21119         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21120         for IA MCU.
21122 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21124         PR target/66817
21125         * config/i386/i386.c (ix86_return_in_memory): Return true
21126         if int_size_in_bytes returns negative for IA MCU.
21128 2015-07-09  Marek Polacek  <polacek@redhat.com>
21130         PR tree-optimization/66718
21131         * Makefile.in (OBJS): Add gimple-laddress.o.
21132         * passes.def: Schedule pass_laddress.
21133         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21134         * tree-pass.h (make_pass_laddress): Declare.
21135         * gimple-laddress.c: New file.
21137 2015-07-09  Richard Biener  <rguenther@suse.de>
21139         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21141 2015-07-09  Richard Biener  <rguenther@suse.de>
21143         PR tree-optimization/66807
21144         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21146 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
21148         * function.c (stack_protect_epilogue): Use if rather than switch for
21149         check targetm.have_stack_protect_test.
21151 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21153         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21154         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21155         * config/arc/arc.h: Likewise.
21156         * config/arm/arm.h: Likewise.
21157         * config/bfin/bfin.h: Likewise.
21158         * config/epiphany/epiphany.h: Likewise.
21159         * config/frv/frv.h: Likewise.
21160         * config/ia64/ia64.h: Likewise.
21161         * config/iq2000/iq2000.h: Likewise.
21162         * config/lm32/lm32.h: Likewise.
21163         * config/m32r/m32r.h: Likewise.
21164         * config/mcore/mcore.h: Likewise.
21165         * config/mep/mep.h: Likewise.
21166         * config/microblaze/microblaze.h: Likewise.
21167         * config/mips/mips.h: Likewise.
21168         * config/mmix/mmix.h: Likewise.
21169         * config/mn10300/mn10300.h: Likewise.
21170         * config/nds32/nds32.h: Likewise.
21171         * config/nios2/nios2.h: Likewise.
21172         * config/pa/pa.h: Likewise.
21173         * config/rl78/rl78.h: Likewise.
21174         * config/sh/sh.h: Likewise.
21175         * config/sparc/sparc.h: Likewise.
21176         * config/stormy16/stormy16.h: Likewise.
21177         * config/tilegx/tilegx.h: Likewise.
21178         * config/tilepro/tilepro.h: Likewise.
21179         * config/v850/v850.h: Likewise.
21180         * config/xtensa/xtensa.h: Likewise.
21181         * doc/tm.texi: Regenerate.
21182         * doc/tm.texi.in: Adjust.
21183         * combine.c (simplify_set): Likewise.
21184         (simplify_comparison): Likewise.
21185         * expr.c (store_constructor): Likewise.
21186         * internal-fn.c (expand_arith_overflow): Likewise.
21187         * reload.c (push_reload): Likewise.
21188         (find_reloads): Likewise.
21189         (find_reloads_subreg_address): Likewise.
21190         * reload1.c (eliminate_regs_1): Likewise.
21191         * rtlanal.c (nonzero_bits1): Likewise.
21192         (num_sign_bit_copies1): Likewise.
21193         * simplify-rtx.c (simplify_truncation): Likewise.
21195 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21197         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21198         of AUTO_INC_DEC with the preprocessor.
21199         * combine.c (combine_instructions): Likewise.
21200         (can_combine_p): Likewise.
21201         (try_combine): Likewise.
21202         * emit-rtl.c (try_split): Likewise.
21203         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21204         * lower-subreg.c (resolve_simple_move): Likewise.
21205         * lra.c (update_inc_notes): Likewise.
21206         * recog.c (asm_operand_ok): Likewise.
21207         (constrain_operands): Likewise.
21208         * regrename.c (scan_rtx_address): Likewise.
21209         * reload.c (update_auto_inc_notes): Likewise.
21210         (reg_inc_found_and_valid_p): Likewise.
21211         * reload1.c (reload): Likewise.
21212         (emit_input_reload_insns): Likewise.
21213         (delete_output_reload): Likewise.
21214         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21215         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21217 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21219         * rtl.h: Always define AUTO_INC_DEC.
21220         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21221         * combine.c (combine_instructions): Likewise.
21222         (can_combine_p): Likewise.
21223         (try_combine): Likewise.
21224         * emit-rtl.c (try_split): Likewise.
21225         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21226         * lower-subreg.c (resolve_simple_move): Likewise.
21227         * lra.c (update_inc_notes): Likewise.
21228         * recog.c (asm_operand_ok): Likewise.
21229         (constrain_operands): Likewise.
21230         * regrename.c (scan_rtx_address): Likewise.
21231         * reload.c (update_auto_inc_notes): Likewise.
21232         (find_equiv_reg): Likewise.
21233         * reload1.c (reload): Likewise.
21234         (reload_as_needed): Likewise.
21235         (choose_reload_regs): Likewise.
21236         (emit_input_reload_insns): Likewise.
21237         (delete_output_reload): Likewise.
21238         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21239         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21241 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21243         * combine.c (can_combine_def_p): Don't check the value of
21244         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21245         (combinable_i3pat): Likewise.
21246         (mark_used_regs_combine): Likewise.
21247         * regrename.c (rename_chains): Likewise.
21248         * reload.c (find_reloads_address): Likewise.
21249         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21251 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21253         * combine.c (update_rsp_from_reg_equal): Don't check if
21254         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21255         (reg_nonzero_bits_for_combine): Likewise.
21256         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21257         1.
21258         * config/frv/frv.h: Likewise.
21259         * config/lm32/lm32.h: Likewise.
21260         * config/mep/mep.h: Likewise.
21261         * config/mips/mips.h: Likewise.
21262         * config/rs6000/rs6000.h: Likewise.
21263         * config/sh/sh.h: Likewise.
21264         * config/tilegx/tilegx.h (enum reg_class): Likewise.
21265         * config/tilepro/tilepro.h: Likewise.
21266         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21267         * doc/tm.texi: Regenerate.
21268         * doc/tm.texi.in: Adjust.
21269         * rtlanal.c (nonzero_bits1): Likewise.
21271 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21273         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21274         with the preprocessor.
21275         (combine_instructions): Likewise.
21276         (try_combine): Likewise.
21277         (subst): Likewise.
21278         (distribute_notes): Likewise.
21280 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21282         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21283         defined.
21284         (simplify_set): Likewise.
21285         * cse.c (cse_insn): Likewise.
21286         * fold-const.c (fold_single_bit_test): Likewise.
21287         (fold_unary_loc): Likewise.
21288         * postreload.c (reload_cse_simplify_set): Likewise.
21289         (reload_cse_simplify_operands): Likewise.
21291 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
21293         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21294         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21296 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21298         PR target/66746
21299         * config/i386/x86intrin.h: Include <adxintrin.h> even if
21300         __iamcu__ is defined.
21302 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21304         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21306 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
21308         PR target/66523
21309         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21310         names from preservation.
21312 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21314         PR target/66806
21315         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21316         change for IAMCU.
21317         (function_arg_advance_32): Don't pass vectors in registers for
21318         IAMCU.
21319         (function_arg_32): Likewise.
21320         (ix86_return_in_memory): Don't return vectors in registers for
21321         IAMCU.
21323 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
21325         PR middle-end/66334
21326         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21327         hard regno live at the start of BB with incoming abnormal edges.
21328         * lra-lives.c (process_bb_lives): Ditto.
21330 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
21332         PR libgomp/65099
21333         * config/nvptx/mkoffload.c (main): Create an offload image only in
21334         64-bit configurations.
21336 2015-07-08  Martin Liska  <mliska@suse.cz>
21338         PR bootstrap/66744
21339         * tree-sra.c (create_access_1): Call ctor without brackets.
21340         (create_artificial_child_access): Likewise.
21342 2015-07-08  Richard Biener  <rguenther@suse.de>
21344         PR tree-optimization/66793
21345         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21346         Properly split the block after stmts ending it.
21348 2015-07-08  Richard Biener  <rguenther@suse.de>
21350         PR tree-optimization/66794
21351         * passes.c (execute_function_todo): Assert that post-dominators
21352         are not computed.
21353         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21354         Free post-dominators.
21356 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21358         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21359         with early exit.
21361 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21363         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21364         more than or equal 8 and less than 32 when optimizing for size.
21366 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21368         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21369         COSTS_N_INSNS (1) and increment it appropriately throughout the
21370         function.
21372 2015-07-08  Richard Biener  <rguenther@suse.de>
21374         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21376 2015-07-08  Alan Modra  <amodra@gmail.com>
21378         * target.def (rtx_costs): Remove "code" param, add "mode".
21379         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21380         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
21381         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21382         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
21383         call.  Track mode when given in rtx.
21384         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
21385         (default_address_cost): Pass Pmode to rtx_cost.
21386         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21387         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21388         with NULL set.
21389         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
21390         (notreg_cost): Add mode param.  Use it.
21391         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
21392         mode param and pass to set_src_cost.  Update all calls.
21393         (hash_scan_set): Formatting.
21394         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21395         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21396         * hooks.h: Ditto.
21397         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21398         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21399         emit_store_flag): Update set_src_cost and rtx_cost calls.
21400         * auto-inc-dec.c (attempt_change): Likewise.
21401         * calls.c (precompute_register_parameters): Likewise.
21402         * combine.c (expand_compound_operation, make_extraction,
21403         force_to_mode, distribute_and_simplify_rtx): Likewise.
21404         * dojump.c (prefer_and_bit_test): Likewise.
21405         * dse.c (find_shift_sequence): Likewise.
21406         * expr.c (compress_float_constant): Likewise.
21407         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21408         * ifcvt.c (noce_try_sign_mask): Likewise.
21409         * loop-doloop.c (doloop_optimize): Likewise.
21410         * loop-invariant.c (create_new_invariant): Likewise.
21411         * lower-subreg.c (shift_cost, compute_costs): Likewise.
21412         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21413         lshift_cheap_p): Likewise.
21414         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21415         try_replace_in_use, reload_cse_move2add): Likewise.
21416         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21417         Likewise.
21418         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21419         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21420         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21421         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21422         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21423         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
21424         to rtx_cost calls.
21425         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21426         * config/arc/arc.c (arc_rtx_costs): Likewise.
21427         * config/arm/arm.c (arm_rtx_costs): Likewise.
21428         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21429         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21430         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21431         * config/cris/cris.c (cris_rtx_costs): Likewise.
21432         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21433         * config/frv/frv.c (frv_rtx_costs): Likewise.
21434         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21435         * config/i386/i386.c (ix86_rtx_costs): Likewise.
21436         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21437         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21438         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21439         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21440         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21441         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21442         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21443         * config/mep/mep.c (mep_rtx_cost): Likewise.
21444         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21445         * config/mips/mips.c (mips_rtx_costs): Likewise.
21446         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21447         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21448         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21449         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21450         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21451         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21452         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21453         * config/pa/pa.c (hppa_rtx_costs): Likewise.
21454         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21455         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21456         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21457         * config/s390/s390.c (s390_rtx_costs): Likewise.
21458         * config/sh/sh.c (sh_rtx_costs): Likewise.
21459         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21460         * config/spu/spu.c (spu_rtx_costs): Likewise.
21461         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21462         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21463         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21464         * config/v850/v850.c (v850_rtx_costs): Likewise.
21465         * config/vax/vax.c (vax_rtx_costs): Likewise.
21466         * config/visium/visium.c (visium_rtx_costs): Likewise.
21467         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21468         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21469         "code" param, and pass as outer_code to first rtx_cost call.  Pass
21470         mode to rtx_cost calls.
21471         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21472         calls.
21473         (aarch64_rtx_costs_wrapper): Update.
21474         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21475         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21476         rtx_cost calls.
21477         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21478         and rtx_cost calls.
21479         (avr_operand_rtx_cost): Similarly.
21480         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21481         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21482         * config/mips/mips.c (mips_stack_address_p): Comment typo.
21483         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21484         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21485         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21486         rtx_cost.
21487         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21488         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21489         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21490         * doc/tm.texi: Regenerate.
21492 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
21494         * tree-core.h: Include symtab.h.
21495         * rtl.h: Include hard-reg-set.h but not flags.h.
21496         (HARD_CONST): Remove condition compilation involving HARD_CONST since
21497         hard-reg-set.h is always included.
21498         * regs.h: Don't include hard-reg-set.h or rtl.h.
21499         * cfg.h: Include dominance.h.
21500         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21501         * backend.h: New.  Aggregate commonly used backend header files.
21502         * gimple-ssa.h: Don't include tree-hasher.h.
21503         * ssa.h: New.  Aggregate commonly used SSA header files.
21504         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21505         * sel-sched-ir.h: Flatten includes.
21506         * lra-int.h: Flatten completely.
21507         * sel-sched-dump.h: Flatten includes.
21508         * ira-int.h: Flatten includes.
21509         * gimple-streamer.h: Remove all includes.
21510         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21511         * resource.h: Flatten hard-reg-set.h and df.h.
21512         * sched-int.h: Flatten insn-arrt.h and df.h.
21513         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21514         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21515         * genattrtab.c (write_header): Adjust generated includes.
21516         * genautomata.c (main): Likewise.
21517         * genconditions.c (write-header): Likewise.
21518         * genemit.c (main): Likewise.
21519         * gengtype.c (open_base_files): Likewise.
21520         * genopinit.c (main): Likewise.
21521         * genoutput.c (output_prologue): Likewise.
21522         * genpeep.c (main): Likewise.
21523         * genpreds.c (write_insn_preds_c): Likewise.
21524         * genrecog.c (write_header): Likewise.
21525         * alias.c: Adjust includes.
21526         * asan.c: Likewise.
21527         * attribs.c: Likewise.
21528         * auto-inc-dec.c: Likewise.
21529         * auto-profile.c: Likewise.
21530         * bb-reorder.c: Likewise.
21531         * bt-load.c: Likewise.
21532         * builtins.c: Likewise.
21533         * caller-save.c: Likewise.
21534         * calls.c: Likewise.
21535         * ccmp.c: Likewise.
21536         * cfg.c: Likewise.
21537         * cfganal.c: Likewise.
21538         * cfgbuild.c: Likewise.
21539         * cfgcleanup.c: Likewise.
21540         * cfgexpand.c: Likewise.
21541         * cfghooks.c: Likewise.
21542         * cfgloop.c: Likewise.
21543         * cfgloopanal.c: Likewise.
21544         * cfgloopmanip.c: Likewise.
21545         * cfgrtl.c: Likewise.
21546         * cgraph.c: Likewise.
21547         * cgraphbuild.c: Likewise.
21548         * cgraphclones.c: Likewise.
21549         * cgraphunit.c: Likewise.
21550         * cilk-common.c: Likewise.
21551         * combine-stack-adj.c: Likewise.
21552         * combine.c: Likewise.
21553         * compare-elim.c: Likewise.
21554         * convert.c: Likewise.
21555         * coverage.c: Likewise.
21556         * cppbuiltin.c: Likewise.
21557         * cprop.c: Likewise.
21558         * cse.c: Likewise.
21559         * cselib.c: Likewise.
21560         * data-streamer-in.c: Likewise.
21561         * data-streamer-out.c: Likewise.
21562         * data-streamer.c: Likewise.
21563         * dbxout.c: Likewise.
21564         * dce.c: Likewise.
21565         * ddg.c: Likewise.
21566         * debug.c: Likewise.
21567         * df-core.c: Likewise.
21568         * df-problems.c: Likewise.
21569         * df-scan.c: Likewise.
21570         * dfp.c: Likewise.
21571         * dojump.c: Likewise.
21572         * dominance.c: Likewise.
21573         * domwalk.c: Likewise.
21574         * double-int.c: Likewise.
21575         * dse.c: Likewise.
21576         * dumpfile.c: Likewise.
21577         * dwarf2asm.c: Likewise.
21578         * dwarf2cfi.c: Likewise.
21579         * dwarf2out.c: Likewise.
21580         * emit-rtl.c: Likewise.
21581         * et-forest.c: Likewise.
21582         * except.c: Likewise.
21583         * explow.c: Likewise.
21584         * expmed.c: Likewise.
21585         * expr.c: Likewise.
21586         * final.c: Likewise.
21587         * fixed-value.c: Likewise.
21588         * fold-const.c: Likewise.
21589         * function.c: Likewise.
21590         * fwprop.c: Likewise.
21591         * gcc-plugin.h: Likewise.
21592         * gcse-common.c: Likewise.
21593         * gcse.c: Likewise.
21594         * generic-match-head.c: Likewise.
21595         * ggc-page.c: Likewise.
21596         * gimple-builder.c: Likewise.
21597         * gimple-expr.c: Likewise.
21598         * gimple-fold.c: Likewise.
21599         * gimple-iterator.c: Likewise.
21600         * gimple-low.c: Likewise.
21601         * gimple-match-head.c: Likewise.
21602         * gimple-pretty-print.c: Likewise.
21603         * gimple-ssa-isolate-paths.c: Likewise.
21604         * gimple-ssa-strength-reduction.c: Likewise.
21605         * gimple-streamer-in.c: Likewise.
21606         * gimple-streamer-out.c: Likewise.
21607         * gimple-walk.c: Likewise.
21608         * gimple.c: Likewise.
21609         * gimplify-me.c: Likewise.
21610         * gimplify.c: Likewise.
21611         * godump.c: Likewise.
21612         * graph.c: Likewise.
21613         * graphite-blocking.c: Likewise.
21614         * graphite-dependences.c: Likewise.
21615         * graphite-interchange.c: Likewise.
21616         * graphite-isl-ast-to-gimple.c: Likewise.
21617         * graphite-optimize-isl.c: Likewise.
21618         * graphite-poly.c: Likewise.
21619         * graphite-scop-detection.c: Likewise.
21620         * graphite-sese-to-poly.c: Likewise.
21621         * graphite.c: Likewise.
21622         * haifa-sched.c: Likewise.
21623         * hw-doloop.c: Likewise.
21624         * ifcvt.c: Likewise.
21625         * init-regs.c: Likewise.
21626         * internal-fn.c: Likewise.
21627         * ipa-chkp.c: Likewise.
21628         * ipa-comdats.c: Likewise.
21629         * ipa-cp.c: Likewise.
21630         * ipa-devirt.c: Likewise.
21631         * ipa-icf-gimple.c: Likewise.
21632         * ipa-icf.c: Likewise.
21633         * ipa-inline-analysis.c: Likewise.
21634         * ipa-inline-transform.c: Likewise.
21635         * ipa-inline.c: Likewise.
21636         * ipa-polymorphic-call.c: Likewise.
21637         * ipa-profile.c: Likewise.
21638         * ipa-prop.c: Likewise.
21639         * ipa-pure-const.c: Likewise.
21640         * ipa-ref.c: Likewise.
21641         * ipa-reference.c: Likewise.
21642         * ipa-split.c: Likewise.
21643         * ipa-utils.c: Likewise.
21644         * ipa-visibility.c: Likewise.
21645         * ipa.c: Likewise.
21646         * ira-build.c: Likewise.
21647         * ira-color.c: Likewise.
21648         * ira-conflicts.c: Likewise.
21649         * ira-costs.c: Likewise.
21650         * ira-emit.c: Likewise.
21651         * ira-lives.c: Likewise.
21652         * ira.c: Likewise.
21653         * jump.c: Likewise.
21654         * langhooks.c: Likewise.
21655         * lcm.c: Likewise.
21656         * loop-doloop.c: Likewise.
21657         * loop-init.c: Likewise.
21658         * loop-invariant.c: Likewise.
21659         * loop-iv.c: Likewise.
21660         * loop-unroll.c: Likewise.
21661         * lower-subreg.c: Likewise.
21662         * lra-assigns.c: Likewise.
21663         * lra-coalesce.c: Likewise.
21664         * lra-constraints.c: Likewise.
21665         * lra-eliminations.c: Likewise.
21666         * lra-lives.c: Likewise.
21667         * lra-remat.c: Likewise.
21668         * lra-spills.c: Likewise.
21669         * lra.c: Likewise.
21670         * lto-cgraph.c: Likewise.
21671         * lto-compress.c: Likewise.
21672         * lto-opts.c: Likewise.
21673         * lto-section-in.c: Likewise.
21674         * lto-section-out.c: Likewise.
21675         * lto-streamer-in.c: Likewise.
21676         * lto-streamer-out.c: Likewise.
21677         * lto-streamer.c: Likewise.
21678         * mcf.c: Likewise.
21679         * mode-switching.c: Likewise.
21680         * modulo-sched.c: Likewise.
21681         * omega.c: Likewise.
21682         * omp-low.c: Likewise.
21683         * optabs.c: Likewise.
21684         * opts-global.c: Likewise.
21685         * passes.c: Likewise.
21686         * plugin.c: Likewise.
21687         * postreload-gcse.c: Likewise.
21688         * postreload.c: Likewise.
21689         * predict.c: Likewise.
21690         * print-rtl.c: Likewise.
21691         * print-tree.c: Likewise.
21692         * profile.c: Likewise.
21693         * real.c: Likewise.
21694         * realmpfr.c: Likewise.
21695         * recog.c: Likewise.
21696         * ree.c: Likewise.
21697         * reg-stack.c: Likewise.
21698         * regcprop.c: Likewise.
21699         * reginfo.c: Likewise.
21700         * regrename.c: Likewise.
21701         * regstat.c: Likewise.
21702         * reload.c: Likewise.
21703         * reload1.c: Likewise.
21704         * reorg.c: Likewise.
21705         * resource.c: Likewise.
21706         * rtl-chkp.c: Likewise.
21707         * rtlanal.c: Likewise.
21708         * rtlhooks.c: Likewise.
21709         * sanopt.c: Likewise.
21710         * sched-deps.c: Likewise.
21711         * sched-ebb.c: Likewise.
21712         * sched-rgn.c: Likewise.
21713         * sched-vis.c: Likewise.
21714         * sdbout.c: Likewise.
21715         * sel-sched-dump.c: Likewise.
21716         * sel-sched-ir.c: Likewise.
21717         * sel-sched.c: Likewise.
21718         * sese.c: Likewise.
21719         * shrink-wrap.c: Likewise.
21720         * simplify-rtx.c: Likewise.
21721         * stack-ptr-mod.c: Likewise.
21722         * stmt.c: Likewise.
21723         * stor-layout.c: Likewise.
21724         * store-motion.c: Likewise.
21725         * stringpool.c: Likewise.
21726         * symtab.c: Likewise.
21727         * target-globals.c: Likewise.
21728         * targhooks.c: Likewise.
21729         * toplev.c: Likewise.
21730         * tracer.c: Likewise.
21731         * trans-mem.c: Likewise.
21732         * tree-affine.c: Likewise.
21733         * tree-browser.c: Likewise.
21734         * tree-call-cdce.c: Likewise.
21735         * tree-cfg.c: Likewise.
21736         * tree-cfgcleanup.c: Likewise.
21737         * tree-chkp-opt.c: Likewise.
21738         * tree-chkp.c: Likewise.
21739         * tree-chrec.c: Likewise.
21740         * tree-complex.c: Likewise.
21741         * tree-data-ref.c: Likewise.
21742         * tree-dfa.c: Likewise.
21743         * tree-diagnostic.c: Likewise.
21744         * tree-dump.c: Likewise.
21745         * tree-eh.c: Likewise.
21746         * tree-emutls.c: Likewise.
21747         * tree-if-conv.c: Likewise.
21748         * tree-inline.c: Likewise.
21749         * tree-into-ssa.c: Likewise.
21750         * tree-iterator.c: Likewise.
21751         * tree-loop-distribution.c: Likewise.
21752         * tree-nested.c: Likewise.
21753         * tree-nrv.c: Likewise.
21754         * tree-object-size.c: Likewise.
21755         * tree-outof-ssa.c: Likewise.
21756         * tree-parloops.c: Likewise.
21757         * tree-phinodes.c: Likewise.
21758         * tree-predcom.c: Likewise.
21759         * tree-pretty-print.c: Likewise.
21760         * tree-profile.c: Likewise.
21761         * tree-scalar-evolution.c: Likewise.
21762         * tree-sra.c: Likewise.
21763         * tree-ssa-address.c: Likewise.
21764         * tree-ssa-alias.c: Likewise.
21765         * tree-ssa-ccp.c: Likewise.
21766         * tree-ssa-coalesce.c: Likewise.
21767         * tree-ssa-copy.c: Likewise.
21768         * tree-ssa-copyrename.c: Likewise.
21769         * tree-ssa-dce.c: Likewise.
21770         * tree-ssa-dom.c: Likewise.
21771         * tree-ssa-dse.c: Likewise.
21772         * tree-ssa-forwprop.c: Likewise.
21773         * tree-ssa-ifcombine.c: Likewise.
21774         * tree-ssa-live.c: Likewise.
21775         * tree-ssa-loop-ch.c: Likewise.
21776         * tree-ssa-loop-im.c: Likewise.
21777         * tree-ssa-loop-ivcanon.c: Likewise.
21778         * tree-ssa-loop-ivopts.c: Likewise.
21779         * tree-ssa-loop-manip.c: Likewise.
21780         * tree-ssa-loop-niter.c: Likewise.
21781         * tree-ssa-loop-prefetch.c: Likewise.
21782         * tree-ssa-loop-unswitch.c: Likewise.
21783         * tree-ssa-loop.c: Likewise.
21784         * tree-ssa-math-opts.c: Likewise.
21785         * tree-ssa-operands.c: Likewise.
21786         * tree-ssa-phiopt.c: Likewise.
21787         * tree-ssa-phiprop.c: Likewise.
21788         * tree-ssa-pre.c: Likewise.
21789         * tree-ssa-propagate.c: Likewise.
21790         * tree-ssa-reassoc.c: Likewise.
21791         * tree-ssa-sccvn.c: Likewise.
21792         * tree-ssa-scopedtables.c: Likewise.
21793         * tree-ssa-sink.c: Likewise.
21794         * tree-ssa-strlen.c: Likewise.
21795         * tree-ssa-structalias.c: Likewise.
21796         * tree-ssa-tail-merge.c: Likewise.
21797         * tree-ssa-ter.c: Likewise.
21798         * tree-ssa-threadedge.c: Likewise.
21799         * tree-ssa-threadupdate.c: Likewise.
21800         * tree-ssa-uncprop.c: Likewise.
21801         * tree-ssa-uninit.c: Likewise.
21802         * tree-ssa.c: Likewise.
21803         * tree-ssanames.c: Likewise.
21804         * tree-stdarg.c: Likewise.
21805         * tree-streamer-in.c: Likewise.
21806         * tree-streamer-out.c: Likewise.
21807         * tree-streamer.c: Likewise.
21808         * tree-switch-conversion.c: Likewise.
21809         * tree-tailcall.c: Likewise.
21810         * tree-vect-data-refs.c: Likewise.
21811         * tree-vect-generic.c: Likewise.
21812         * tree-vect-loop-manip.c: Likewise.
21813         * tree-vect-loop.c: Likewise.
21814         * tree-vect-patterns.c: Likewise.
21815         * tree-vect-slp.c: Likewise.
21816         * tree-vect-stmts.c: Likewise.
21817         * tree-vectorizer.c: Likewise.
21818         * tree-vrp.c: Likewise.
21819         * tree.c: Likewise.
21820         * tsan.c: Likewise.
21821         * ubsan.c: Likewise.
21822         * valtrack.c: Likewise.
21823         * value-prof.c: Likewise.
21824         * var-tracking.c: Likewise.
21825         * varasm.c: Likewise.
21826         * varpool.c: Likewise.
21827         * vmsdbgout.c: Likewise.
21828         * vtable-verify.c: Likewise.
21829         * web.c: Likewise.
21830         * wide-int.cc: Likewise.
21831         * xcoffout.c: Likewise.
21832         * config/aarch64/aarch64-builtins.c: Likewise.
21833         * config/aarch64/aarch64.c: Likewise.
21834         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21835         * config/alpha/alpha.c: Likewise.
21836         * config/arc/arc.c: Likewise.
21837         * config/arm/aarch-common.c: Likewise.
21838         * config/arm/arm-builtins.c: Likewise.
21839         * config/arm/arm-c.c: Likewise.
21840         * config/arm/arm.c: Likewise.
21841         * config/avr/avr-c.c: Likewise.
21842         * config/avr/avr-log.c: Likewise.
21843         * config/avr/avr.c: Likewise.
21844         * config/bfin/bfin.c: Likewise.
21845         * config/c6x/c6x.c: Likewise.
21846         * config/cr16/cr16.c: Likewise.
21847         * config/cris/cris.c: Likewise.
21848         * config/darwin-c.c: Likewise.
21849         * config/darwin.c: Likewise.
21850         * config/epiphany/epiphany.c: Likewise.
21851         * config/epiphany/mode-switch-use.c: Likewise.
21852         * config/epiphany/resolve-sw-modes.c: Likewise.
21853         * config/fr30/fr30.c: Likewise.
21854         * config/frv/frv.c: Likewise.
21855         * config/ft32/ft32.c: Likewise.
21856         * config/h8300/h8300.c: Likewise.
21857         * config/i386/i386-c.c: Likewise.
21858         * config/i386/i386.c: Likewise.
21859         * config/i386/msformat-c.c: Likewise.
21860         * config/i386/winnt-cxx.c: Likewise.
21861         * config/i386/winnt-stubs.c: Likewise.
21862         * config/i386/winnt.c: Likewise.
21863         * config/ia64/ia64-c.c: Likewise.
21864         * config/ia64/ia64.c: Likewise.
21865         * config/iq2000/iq2000.c: Likewise.
21866         * config/lm32/lm32.c: Likewise.
21867         * config/m32c/m32c-pragma.c: Likewise.
21868         * config/m32c/m32c.c: Likewise.
21869         * config/m32r/m32r.c: Likewise.
21870         * config/m68k/m68k.c: Likewise.
21871         * config/mcore/mcore.c: Likewise.
21872         * config/mep/mep-pragma.c: Likewise.
21873         * config/mep/mep.c: Likewise.
21874         * config/microblaze/microblaze-c.c: Likewise.
21875         * config/microblaze/microblaze.c: Likewise.
21876         * config/mips/mips.c: Likewise.
21877         * config/mmix/mmix.c: Likewise.
21878         * config/mn10300/mn10300.c: Likewise.
21879         * config/moxie/moxie.c: Likewise.
21880         * config/msp430/msp430-c.c: Likewise.
21881         * config/msp430/msp430.c: Likewise.
21882         * config/nds32/nds32-cost.c: Likewise.
21883         * config/nds32/nds32-fp-as-gp.c: Likewise.
21884         * config/nds32/nds32-intrinsic.c: Likewise.
21885         * config/nds32/nds32-isr.c: Likewise.
21886         * config/nds32/nds32-md-auxiliary.c: Likewise.
21887         * config/nds32/nds32-memory-manipulation.c: Likewise.
21888         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21889         * config/nds32/nds32-predicates.c: Likewise.
21890         * config/nds32/nds32.c: Likewise.
21891         * config/nios2/nios2.c: Likewise.
21892         * config/nvptx/nvptx.c: Likewise.
21893         * config/pa/pa.c: Likewise.
21894         * config/pdp11/pdp11.c: Likewise.
21895         * config/rl78/rl78-c.c: Likewise.
21896         * config/rl78/rl78.c: Likewise.
21897         * config/rs6000/rs6000-c.c: Likewise.
21898         * config/rs6000/rs6000.c: Likewise.
21899         * config/rx/rx.c: Likewise.
21900         * config/s390/s390-c.c: Likewise.
21901         * config/s390/s390.c: Likewise.
21902         * config/sh/sh-c.c: Likewise.
21903         * config/sh/sh-mem.cc: Likewise.
21904         * config/sh/sh.c: Likewise.
21905         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21906         * config/sh/sh_treg_combine.cc: Likewise.
21907         * config/sol2-c.c: Likewise.
21908         * config/sol2-cxx.c: Likewise.
21909         * config/sol2-stubs.c: Likewise.
21910         * config/sol2.c: Likewise.
21911         * config/sparc/sparc-c.c: Likewise.
21912         * config/sparc/sparc.c: Likewise.
21913         * config/spu/spu-c.c: Likewise.
21914         * config/spu/spu.c: Likewise.
21915         * config/stormy16/stormy16.c: Likewise.
21916         * config/tilegx/mul-tables.c: Likewise.
21917         * config/tilegx/tilegx-c.c: Likewise.
21918         * config/tilegx/tilegx.c: Likewise.
21919         * config/tilepro/mul-tables.c: Likewise.
21920         * config/tilepro/tilepro-c.c: Likewise.
21921         * config/tilepro/tilepro.c: Likewise.
21922         * config/v850/v850-c.c: Likewise.
21923         * config/v850/v850.c: Likewise.
21924         * config/vax/vax.c: Likewise.
21925         * config/visium/visium.c: Likewise.
21926         * config/vms/vms-c.c: Likewise.
21927         * config/vms/vms.c: Likewise.
21928         * config/vxworks.c: Likewise.
21929         * config/xtensa/xtensa.c: Likewise.
21931 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
21933         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21934         Remove operand constraints.  Change operand 2 predicate to
21935         nonmemory operand.  Limit const_int values to mode bitsize.  Only
21936         allow const_int values less than 32 when optimizing for size.
21937         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21938         Remove operand constraints.
21939         (*bt<mode>): Use SImode for const_int values less than 32.
21940         (regmode): Remove mode attribute.
21942 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
21944         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21945         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21946           moxie_legitimate_address_p): New functions.
21947           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21949 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21951         PR tree-optimization/66642
21952         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21953         header comment.  Rename split_edge variable to edge_at_split.  Split
21954         exit edge to create new loop exit bb.  Insert loop exit phis in new
21955         loop exit bb.
21957 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21959         * tree-cfg.c (get_virtual_phi): New function.
21960         * tree-cfg.h (get_virtual_phi): Declare.
21961         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21962         (rewrite_virtuals_into_loop_closed_ssa): New function.
21963         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21964         Declare.
21965         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21966         (transform_to_exit_first_loop_alt): Use
21967         rewrite_virtuals_into_loop_closed_ssa.
21969 2015-07-07  Richard Biener  <rguenther@suse.de>
21971         * fold-const.c (fold_binary_loc): Move
21972         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21973         * match.pd: ... here.
21974         Add (X * C1) % C2 -> 0 simplification pattern derived from
21975         extract_muldiv_1.
21977 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
21979         PR target/66780
21980         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21981         change for target/65249.
21983 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
21985         * symtab.c (address_matters_1): Fix typo in comment above.
21986         (can_increase_alignment_p): Likewise.
21988 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21990         * function.c (free_after_compilation): Clear PROP_cfg in
21991         f->curr_properties.
21993 2015-07-07  Richard Biener  <rguenther@suse.de>
21995         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21996         add which use to.
21997         (add_control_edge): Remove excessive vertical space in dumping.
21998         (process_ssa_edge_worklist): Simulate at most one statement and
21999         return whether we did.  Do not simulate PHIs if they are in a
22000         BB not yet simulated.
22001         (ssa_propagate): Adjust to always drain the BB worklist whenever
22002         a BB is available there, likewise the VARYING edges list before
22003         the interesting edge list.
22005 2015-07-07  Christian Bruel  <christian.bruel@st.com>
22007         PR target/52144
22008         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22010 2015-07-07  Richard Biener  <rguenther@suse.de>
22012         PR middle-end/66739
22013         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22014         A - B.
22016 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22018         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
22019         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
22020         Copy operand 0 to a temporary if !ext_register_operand.  Remove
22021         ancient extract_bit_field workaround.
22022         (insv<mode>_1): Rename from mov<mode>_insv_1.
22023         (*insvqi): Rename from *movqi_insv_2.
22024         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22025         for renamed insvsi_1.
22026         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22028 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
22030         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
22031         call to nvptx_reorg_subreg.
22033 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
22035         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22036         * graphite-dependencies.c, graphite-interchange.c,
22037         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22038         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22039         Likewise.
22041 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
22043         * match.pd: Remove element_mode inside HONOR_*.
22044         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22045         (~X | X -> -1, ~X ^ X -> -1): Merge.
22046         * tree.c (build_each_one_cst): New function.
22047         * tree.h (build_each_one_cst): Likewise.
22049 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22051         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22052         PROCESSOR_IAMCU.
22054 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
22056         * config.gcc <mips*-*-*>: Add fused-madd.opt.
22057         * config/mips/mips.opt (mfused-madd): Remove.
22058         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22059         * config/mips/mips.h (TARGET_MIPS8000): New.
22060         (ISA_HAS_FP_MADD4_MSUB4): Remove.
22061         (ISA_HAS_FP_MADDF_MSUBF): Remove.
22062         (ISA_HAS_FP_MADD3_MSUB3): Remove.
22063         (ISA_HAS_NMADD4_NMSUB4): Remove.
22064         (ISA_HAS_NMADD3_NMSUB3): Remove.
22065         (ISA_HAS_FUSED_MADD4): New.
22066         (ISA_HAS_UNFUSED_MADD4): New.
22067         (ISA_HAS_FUSED_MADDF): New.
22068         (ISA_HAS_FUSED_MADD3): New.
22069         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22070         (*fma<mode>4_madd3) New.
22071         (*fma<mode>4_madd4) New.
22072         (*fma<mode>4_maddf) New.
22073         (fms<mode>4) New.
22074         (*fms<mode>4_msub3) New.
22075         (*fms<mode>4_msub4) New.
22076         (fnma<mode>4) New.
22077         (*fnma<mode>4_nmadd3) New.
22078         (*fnma<mode>4_nmadd4) New.
22079         (fnms<mode>4) New.
22080         (*fnms<mode>4_nmsub3) New.
22081         (*fnms<mode>4_nmsub4) New.
22082         (*madd4<mode>) Modify to be unfused only.
22083         (*msub4<mode>) Modify to be unfused only.
22084         (*nmadd4<mode>) Modify to be unfused only.
22085         (*nmsub4<mode>) Modify to be unfused only.
22086         (*madd3<mode>) Remove.
22087         (*msub3<mode>) Remove.
22088         (*nmadd3<mode>) Remove.
22089         (*nmsub3<mode>) Remove.
22090         (*nmadd3<mode>_fastmath) Remove.
22091         (*nmsub3<mode>_fastmath) Remove.
22092         (*nmadd4<mode>_fastmath) Update condition.
22093         (*nmsub4<mode>_fastmath) Update condition.
22095 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22097         PR target/65956
22098         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22099         alignment attribute, exploring one level down for records and arrays.
22101 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22103         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
22104         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
22105         Copy operand 1 to a temporary if !ext_register_operand.  Remove
22106         ancient extract_bit_field workaround.
22107         (*extv<mode>): Rename from *mov<mode>_extv_1.
22108         (*extvqi): Rename from *movqi_extv_1.
22109         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
22110         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
22111         to a temporary if !ext_register_operand.  Remove ancient
22112         extract_bit_field workaround.
22113         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22114         (*extzvqi): Rename from *movqi_extzv_2.
22115         (*testqi_ext_3): Remove modes from const_int_operand predicated
22116         operands.  Add "n" constraint.
22117         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22118         operand.  Add "J" constraint.
22119         (*btsq, *btrq, *btcq peephole2s): Remove mode from
22120         const_0_to_63 predicated operand.
22121         (regmode): New insn attribute.
22122         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
22123         to nonmemory_operand.  Use regmode insn attribute.
22124         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22125         (*jcc_bt<mode>_mask): Remove mode from operand 3.
22126         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22127         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22128         operands.  Use "N" constraint instead of "n".
22130 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22132         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22134 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22136         PR target/66749
22137         * config/i386/i386.c (iamcu_cost): New.
22138         (m_IAMCU): Likewise.
22139         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22140         (processor_target_table): Add an entry for "iamcu".
22141         (processor_alias_table): Likewise.
22142         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22143         (ix86_adjust_cost): Likewise.
22144         (ia32_multipass_dfa_lookahead): Likewise.
22145         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22146         * config/i386/x86-tune.def: Updated for m_IAMCU.
22148 2015-07-06  Richard Biener  <rguenther@suse.de>
22150         PR tree-optimization/66772
22151         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22152         values are available in the PHI node BB when there are
22153         still unexecutable edges.
22155 2015-07-06  Richard Biener  <rguenther@suse.de>
22157         PR tree-optimization/66767
22158         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22159         Make sure to build the alignment test on a SSA name without
22160         final alignment info valid only if the alignment test
22161         evaluates to true.
22163 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
22165         PR target/66620
22166         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22167         loop start when inserting LSETUP.
22169 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22171         PR target/53383
22172         * config/i386/i386.c (ix86_option_override_internal): Allow
22173         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22175 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22177         * read-md.c (decimal_string): Rename to ...
22178         (md_decimal_string): ... this.
22179         (handle_enum): Reflect this.
22181 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22183         PR target/66731
22184         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22186 2015-07-06  Richard Biener  <rguenther@suse.de>
22188         PR middle-end/66759
22189         * match.pd: Add missing constraint of y to REAL_CST in
22190         REAL_CST - x CMP y to y - CST CMP x simplification.
22192 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
22194         PR tree-optimization/66757
22195         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22197 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
22198             Sandra Loosemore <sandra@codesourcery.com>
22200         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22201         Delete extern declaration.
22202         (gprel_constant_p): Add extern declaration.
22203         * config/nios2/constraints.md ("S"): Use gprel_constant_p
22204         instead of nios2_symbol_ref_in_small_data_p.
22205         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22206         (nios2_symbol_ref_in_small_data_p): Make static.
22207         (gprel_constant_p): Make non-static.
22209 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
22211         * doc/fragments.texi (Target Fragment): Convert debian.org
22212         link to use https.
22213         * doc/install.texi (Configuration): Ditto.
22215 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
22217         PR tree-optimization/66718
22218         * tree-vect-stmts.c (vectorizable_call): Replace uses of
22219         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22221         PR tree-optimization/66718
22222         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22223         vectorizable_load, vectorizable_condition): Move vectype,
22224         nunits, ncopies computation after checking what kind of statement
22225         stmt is.
22227 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22229         * target-insns.def (extv, extzv, insv): New targetm instruction
22230         patterns.
22231         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22232         interface.
22233         * recog.c (simplify_while_replacing): Likewise.
22235 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22237         * target-insns.def (doloop_begin, doloop_end): New targetm
22238         instruction patterns.
22239         * loop-init.c: Include target.h.
22240         (pass_loop2::gate): Use the new targetm patterns instead of
22241         HAVE_*/gen_* interface.
22242         (pass_rtl_doloop::gate): Likewise.
22243         (pass_rtl_doloop::execute): Remove preprocessor condition.
22244         * hw-doloop.c: Build unconditionally.
22245         * loop-doloop.c: Likewise.
22246         (doloop_optimize): Use the new targetm patterns instead of
22247         HAVE_*/gen_* interface.
22248         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22249         * modulo-sched.c (doloop_register_get): Likewise.
22251 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22253         * target-insns.def (clear_cache): New targetm instruction pattern.
22254         * builtins.c (expand_builtin___clear_cache): Use it instead of
22255         HAVE_*/gen_* interface.
22257 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22259         * target-insns.def (allocate_stack, check_stack, probe_stack)
22260         (probe_stack_address, split_stack_prologue, split_stack_space_check):
22261         New targetm instruction patterns.
22262         * explow.c (allocate_dynamic_stack_space): Use them instead of
22263         HAVE_*/gen_* interface.
22264         (emit_stack_probe): Likewise.
22265         (probe_stack_range): Likewise.
22266         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22268 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22270         * target-insns.def (stack_protect_set, stack_protect_test): New
22271         targetm instruction patterns.
22272         * cfgexpand.c (stack_protect_prologue): Use them instead of
22273         HAVE_*/gen_* interface.
22274         * function.c (stack_protect_epilogue): Likewise.
22276 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22278         * expr.h (gen_move_insn_uncast): Delete.
22279         * expr.c (gen_move_insn_uncast): Delete.
22281 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22283         * target-insns.def (restore_stack_block, restore_stack_function)
22284         (restore_stack_nonlocal, save_stack_block, save_stack_function)
22285         (save_stack_nonlocal): New targetm instruction patterns.
22286         * builtins.c (expand_builtin_apply): Use them instead of
22287         HAVE_*/gen_* interface.
22288         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22290 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22292         * target-insns.def (trap): New targetm instruction pattern.
22293         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22294         interface.
22295         * explow.c (allocate_dynamic_stack_space): Likewise.
22296         * ifcvt.c (find_if_header): Likewise.
22298 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22300         * target-insns.def (prefetch): New targetm instruction pattern.
22301         * tree-ssa-loop-prefetch.c: Include targeth.
22302         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22303         of HAVE_*/gen_* interface.
22304         * builtins.c (expand_builtin_prefetch): Likewise.
22305         * toplev.c (process_options): Likewise.
22307 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22309         * target-insns.def (untyped_call, untyped_return): New targetm
22310         instruction patterns.
22311         * builtins.c (expand_builtin_apply): Use them instead of
22312         HAVE_*/gen_* interface.
22313         (result_vector): Define unconditionally.
22315 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22317         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22318         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22319         (nonlocal_goto_receiver): New targetm instruction patterns.
22320         * builtins.c (expand_builtin_setjmp_setup): Use them instead
22321         of HAVE_*/gen_* interface.
22322         (expand_builtin_setjmp_receiver): Likewise.
22323         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22324         * except.c (expand_dw2_landing_pad_for_region): Likewise.
22326 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22328         * target.def: Add code_for_* hooks.
22329         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22330         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22331         * target-insns.def (casesi, tablejump): New targetm instruction
22332         patterns.
22333         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22334         (do_tablejump): Likewise.
22335         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22336         (expand_sjlj_dispatch_table): Likewise.
22337         * targhooks.c (default_case_values_threshold): Likewise.
22339 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
22341         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22342         Use rtx_insn * instead of rtx.
22343         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22344         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22345         (nios2_call_tls_get_addr): Likewise.
22346         (nios2_emit_expensive_div): Likewise.
22347         (nios2_emit_move_sequence): Change return type to bool.
22348         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22349         Change return type to bool.
22351 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22353         PR target/66747
22354         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22356 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
22358         PR target/66114
22359         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22360         of register_operand.  Remove constraint.
22362 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
22364         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22365         the first argument.
22367 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
22369         * attribs.c (decl_attributes): Guard inform with the return value
22370         of the preceding warning.
22372 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22374         * doc/invoke.texi (moverride): Move to correct section.
22376 2015-07-03  Richard Biener  <rguenther@suse.de>
22378         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22379         Copy from tree.c
22380         (dt_operand::gen_gimple_expr): After valueizing operands
22381         re-canonicalize operand order for commutative tree codes.
22383 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
22385         PR target/66746.
22386         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22387         is defined.
22388         (__crc32w): Likewise.
22389         (__crc32d): Likewise.
22390         (__rdpmc): Likewise.
22391         (__rdtscp): Likewise.
22392         (_rdpmc): Likewise.
22393         (_rdtscp): Likewise.
22394         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22395         is defined.
22397 2015-07-03  Richard Biener  <rguenther@suse.de>
22399         * fold-const.c (fold_mathfn_compare): Remove.
22400         (fold_inf_compare): Likewise.
22401         (fold_comparison): Move floating point comparison simplifications...
22402         * match.pd: ... to patterns here.  Introduce simple_comparisons
22403         operator list and use it for patterns formerly in fold_comparison.
22405 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22407         PR tree-optimization/66119
22408         * toplev.c (process_options): Don't set up default values for
22409         the sra_max_scalarization_size_{speed,size} parameters.
22410         * tree-sra (analyze_all_variable_accesses): If no values
22411         have been set for the sra_max_scalarization_size_{speed,size}
22412         parameters, call get_move_ratio to get target defaults.
22414 2015-07-03  Richard Biener  <rguenther@suse.de>
22416         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22417         * match.pd: ... here.
22419 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
22421         PR target/37072
22422         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22423         is not actually the default on FreeBSD.
22425 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22427         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22428         definition.
22429         (CMPGE_8HI): Likewise.
22430         (CMPGE_4SI): Likewise.
22431         (CMPGE_2DI): Likewise.
22432         (CMPGE_U16QI): Likewise.
22433         (CMPGE_U8HI): Likewise.
22434         (CMPGE_U4SI): Likewise.
22435         (CMPGE_U2DI): Likewise.
22436         (CMPLE_16QI): Likewise.
22437         (CMPLE_8HI): Likewise.
22438         (CMPLE_4SI): Likewise.
22439         (CMPLE_2DI): Likewise.
22440         (CMPLE_U16QI): Likewise.
22441         (CMPLE_U8HI): Likewise.
22442         (CMPLE_U4SI): Likewise.
22443         (CMPLE_U2DI): Likewise.
22444         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22445         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22446         ALTIVEC_BUILTIN_VEC_CMPLE.
22447         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22448         floating-point vector modes.
22449         (vector_nlt<mode>): New define_expand.
22450         (vector_nltu<mode>): Likewise.
22451         (vector_ngt<mode>): Likewise.
22452         (vector_ngtu<mode>): Likewise.
22454 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
22456         PR rtl-optimization/66706
22457         * combine.c (make_compound_operation): If an AND of SUBREG of
22458         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22460 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
22462         * tree-pass.h (make_pass_ch_vect): New.
22463         * passes.def: Add pass_ch_vect just before pass_if_conversion.
22465         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22466         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22467         make_pass_ch_vect): New.
22468         (pass_ch): Extend ch_base.
22470         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22471         (ch_base::copy_headers): ...here.
22473 2015-07-02  Richard Biener  <rguenther@suse.de>
22475         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22476         * fold-const.c (get_pointer_modulus_and_residue): Remove.
22477         (fold_binary_loc): Implement (T)ptr & CST in terms of
22478         get_pointer_alignment_1.
22479         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22480         Make sure to build the alignment test on a SSA name without
22481         final alignment info valid only after the prologue.
22483 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
22485         * config/cris/cris.md ("epilogue"): Remove condition.
22486         ("prologue"): Ditto.
22488 2015-07-02  Richard Biener  <rguenther@suse.de>
22490         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22491         parameter to record a condition that is false.
22492         (record_conditions): When recording an extra NE_EXPR that is
22493         true also record a EQ_EXPR that is false.
22495 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
22497         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22498         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22499         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
22500         (set_iv, find_interesting_uses_address, add_candidate_1): New
22501         argument to alloc_iv.
22502         (find_interesting_uses_op, find_interesting_uses_cond): Don't
22503         duplicate struct iv.
22504         (free_loop_data): Don't free struct iv explicitly.
22505         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22507 2015-07-01  DJ Delorie  <dj@redhat.com>
22509         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22510         (LIB_SPEC): Add.
22511         (SUPPORTS_DISCRIMINATOR): Define.
22513 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22515         PR bootstrap/66685
22516         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22517         there are no CALLs in the same pattern.
22519 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22521         PR rtl-optimization/61047
22522         * rtlanal.c (get_initial_register_offset): New function.
22523         (rtx_addr_can_trap_p_1): Check offsets of stack references.
22525 2015-07-01  Richard Biener  <rguenther@suse.de>
22527         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22528         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22529         ~X CMP C -> X CMP' ~C to ...
22530         * match.pd: ... patterns here.
22532 2015-07-01  Nick Clifton  <nickc@redhat.com>
22534         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22535         a 16-bit value into a 20-bit memory slot.
22537 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22539         * doc/sourcebuild.texi (AArch64-specific attributes): Document
22540         "aarch64_tiny", "aarch64_small", "aarch64_large",
22541         "aarch64_little_endian", "aarch64_big_endian".
22543 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22545         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22546         Document "aarch64_small_fpic".
22548 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22550         * configure.ac: Add check for aarch64 assembler -fpic relocation
22551         modifier support.
22552         * configure: Regenerate.
22553         * config.in: Regenerate.
22554         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22555         to -fPIC if not support of -fpic relocation modifier in assembler.
22557 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22559         PR bootstrap/66685
22560         * rtl.c (classify_insn): Handle returns in PARALLELs.
22562 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
22564         PR middle-end/66633
22565         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22566         to true if the function is nested and if not optimizing.
22567         (convert_local_omp_clauses): Initialize need_frame to true if the
22568         function contains nested functions and if not optimizing.
22570 2015-07-01  Richard Biener  <rguenther@suse.de>
22572         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22573         (X & Y) ^ Y -> ~X & Y transforms to ...
22574         * match.pd: ... here.
22576 2015-07-01  Richard Biener <rguenther@suse.de>
22578         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22579         of converts to avoid uninteresting noise from the conversion
22580         simplifying patterns.
22582 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
22584         * config/c6x/c6x.c (try_rename_operands): Do not depend on
22585         gcc_assert evaluating its argument for side-effect.
22587 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
22589         PR target/64833
22590         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22591         flag_pic is set.
22593 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22595         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22596         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22597         (hash_scc): Add this_ref_p and ref_p parameters and pass them
22598         to the inner DFS walk.
22600 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22602         * target-insns.def (jump): New targetm instruction pattern.
22603         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22604         instead of gen_jump.
22605         (fix_up_crossing_landing_pad): Likewise.
22606         (add_labels_and_missing_jumps): Likewise.
22607         (fix_crossing_conditional_branches): Likewise.
22608         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22609         (force_nonfallthru_and_redirect): Likewise.
22610         * cse.c (cse_insn): Likewise.
22611         * expmed.c (expand_divmod): Likewise.
22612         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22613         * haifa-sched.c (init_before_recovery): Likewise.
22614         (sched_create_recovery_edges): Likewise.
22615         * ifcvt.c (find_cond_trap): Likewise.
22616         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22617         (expand_float, expand_fix): Likewise.
22618         * stmt.c (emit_jump): Likewise.
22620 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22622         * defaults.h (HAVE_load_multiple, gen_load_multiple)
22623         (HAVE_store_multiple, gen_store_multiple): Delete.
22624         * target-insns.def (load_multiple, store_multiple): New targetm
22625         instruction patterns.
22626         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22627         of HAVE_*/gen_* interface.
22629 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22631         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22632         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22633         (gen_mem_signal_fence): Delete.
22634         * target-insns.def (mem_signal_fence, mem_thread_fence)
22635         (memory_barrier): New targetm instruction patterns.
22636         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22637         interface.
22638         (expand_mem_signal_fence): Likewise.
22640 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22642         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22643         * target-insns.def (epilogue, prologue, sibcall_prologue): New
22644         targetm instruction patterns.
22645         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22646         interface.
22647         * calls.c (expand_call): Likewise.
22648         * cfgrtl.c (cfg_layout_finalize): Likewise.
22649         * df-scan.c (df_get_entry_block_def_set): Likewise.
22650         (df_get_exit_block_use_set): Likewise.
22651         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22652         * final.c (final_start_function): Likewise.
22653         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22654         (reposition_prologue_and_epilogue_notes): Likewise.
22655         * reorg.c (find_end_label): Likewise.
22656         * toplev.c (process_options): Likewise.
22658 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
22660         * typed-splay-tree.h: New file.
22662 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
22664         PR debug/66691
22665         * lra-int.h (lra_substitute_pseudo): Add a parameter.
22666         (lra_substitute_pseudo_within_insn): Ditto.
22667         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
22668         of constant.
22669         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
22670         to lra_substitute_pseudo.
22671         * lra-lives.c (process_bb_lives): Add an argument to
22672         lra_substitute_pseudo_within_insn call.
22673         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22674         argument to lra_substitute_pseudo and
22675         lra_substitute_pseudo_within_insn calls.
22676         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22678 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22680         * configure: Regenerated.
22682 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22684         * config.gcc: Support i[34567]86-*-elfiamcu target.
22685         * config/i386/iamcu.h: New.
22686         * config/i386/i386.opt: Add -miamcu.
22687         * doc/invoke.texi: Document -miamcu.
22688         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
22689         off x87/MMX/SSE/AVX codegen for -miamcu.
22690         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22691         __iamcu/__iamcu__ for -miamcu.
22692         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22693         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22694         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22695         * config/i386/i386.c (ix86_option_override_internal): Ignore and
22696         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
22697         MCU by default.  Default long double to 64-bit for Intel MCU.
22698         Turn on -freg-struct-return for Intel MCU.  Issue an error when
22699         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22700         AVX is turned on.
22701         (function_arg_advance_32): Pass value whose size is no larger
22702         than 8 bytes in registers for Intel MCU.
22703         (function_arg_32): Likewise.
22704         (ix86_return_in_memory): Return value whose size is no larger
22705         than 8 bytes in registers for Intel MCU.
22706         (iamcu_alignment): New function.
22707         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22708         true.
22709         (ix86_local_alignment): Don't increase alignment for Intel MCU.
22710         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22711         true.
22713 2015-06-30  Marek Polacek  <polacek@redhat.com>
22715         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
22716         both operands of the resulting expression.
22718         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
22719         the final expression with the operand's type and then convert
22720         it to the type of the expression.
22722 2015-06-30  Richard Biener  <rguenther@suse.de>
22724         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22725         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22726         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22727         * match.pd: ... to patterns here.
22729 2015-06-30  Richard Biener  <rguenther@suse.de>
22731         PR tree-optimization/66704
22732         * tree-vect-data-refs.c (vect_setup_realignment): Use
22733         make_ssa_name for non-SSA name source.
22735 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
22737         PR middle-end/66702
22738         * omp-low.c (simd_clone_adjust): Handle addressable linear
22739         or uniform parameters or non-gimple type uniform parameters.
22741 2015-06-30  Richard Biener  <rguenther@suse.de>
22743         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22744         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22745         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22746         * match.pd: ... here.
22747         Add a few cases of A - B -> A + (-B) when B "easily" negates.
22748         Move (x & y) | x -> x and friends before
22749         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22751 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22753         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22754         -mfix-ut699 is not specified.
22755         (leon3_load): Rename into...
22756         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
22757         is specified.
22759 2015-06-30  Marek Polacek  <polacek@redhat.com>
22761         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22762         * match.pd: ... here.
22764 2015-06-30  Richard Biener  <rguenther@suse.de>
22766         * target-insns.def (canonicalize_funcptr_for_compare): Add.
22767         * fold-const.c (build_range_check): Replace uses of
22768         HAVE_canonicalize_funcptr_for_compare.
22769         (fold_widened_comparison): Likewise.
22770         (fold_sign_changed_comparison): Likewise.
22771         * dojump.c: Include "target.h".
22772         (do_compare_and_jump): Replace uses of
22773         HAVE_canonicalize_funcptr_for_compare and
22774         gen_canonicalize_funcptr_for_compare.
22775         * expr.c (do_store_flag): Likewise.
22777 2015-06-30  Tom de Vries  <tom@codesourcery.com>
22779         PR tree-optimization/66652
22780         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22781         max_loop_iterations to determine if nit + 1 overflows.
22783 2015-06-30  Richard Biener  <rguenther@suse.de>
22785         * tree-vrp.c (register_edge_assert_for_2): Also register
22786         asserts for dominating conversion results.
22788 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
22790         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22791         field in struct iv.
22793 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
22795         PR target/66509
22796         * configure.ac: Fix filds and fildq test for 64-bit.
22797         * configure: Regenerated.
22799 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
22801         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22802         (nvptx_reorg): Here.  Keep the non-subreg pieces.
22804 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
22806         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22807         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22809 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
22811         * config/i386/i386.md (*jcc_1): Use %! in asm template.
22812         Set attribute "length_nobnd" instead of "length".
22813         (*jcc_2): Ditto.
22814         (jump): Ditto.
22815         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22817 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
22819         * config/nios2/nios2.c (nios2_delegitimize_address): Make
22820         assert less restrictive.
22822 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22824         PR fortran/66605
22825         * cgraphunit.c (cgraph_node::finalize_function): Do not call
22826         do_warn_unused_parameter.
22827         * function.c (do_warn_unused_parameter): Move from here.
22828         * function.h (do_warn_unused_parameter): Do not declare.
22830 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22832         PR target/65697
22833         * gcc.target/arm/armv-sync-comp-swap.c: New.
22834         * gcc.target/arm/armv-sync-op-acquire.c: New.
22835         * gcc.target/arm/armv-sync-op-full.c: New.
22836         * gcc.target/arm/armv-sync-op-release.c: New.
22838 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22840         PR target/65697
22841         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22842         initial acquire barrier with final barrier.
22844 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22846         PR target/65697
22847         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22848         initial acquire barrier with final barrier.
22850 2015-06-29  Richard Henderson  <rth@redhat.com>
22852         * config/i386/constraints.md (Bf): New constraint.
22853         * config/i386/i386-c.c (ix86_target_macros): Define
22854         __GCC_ASM_FLAG_OUTPUTS__.
22855         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22856         as flags outputs.
22857         * doc/extend.texi (FlagOutputOperands): Document them.
22859 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
22861         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22862         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22863         unspec name.
22864         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22865         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22866         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22867         (aarch64_symbol_context): Ditto.
22868         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22869         and use new pattern name.
22870         (aarch64_expand_mov_immediate): Ditto.
22871         (aarch64_print_operand): Ditto.
22872         (aarch64_classify_tls_symbol): Ditto.
22874 2015-06-29  Marek Polacek  <polacek@redhat.com>
22875             Marc Glisse  <marc.glisse@inria.fr>
22877         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22878         * match.pd: ... pattern here.
22880 2015-06-29  Tom de Vries  <tom@codesourcery.com>
22882         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22883         function structure.
22885 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22887         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22888         feature description, split out the native option, add a link to
22889         the feature documentation, rearrange and slightly rewrite text.
22890         (Aarch64 options, -mcpu): Likewise.
22891         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
22892         +rdma implies Adv. SIMD.
22894 2015-06-29  Marek Polacek  <polacek@redhat.com>
22896         PR c/66322
22897         * function.c (stack_protect_epilogue): Remove a cast to int.
22898         * doc/invoke.texi: Update -Wswitch-bool description.
22900 2015-06-29  Richard Biener  <rguenther@suse.de>
22902         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22903         * fold-const.c (fold_binary_loc): Move &A - &B simplification
22904         via ptr_difference_const ...
22905         * match.pd: ... here.
22906         When matching (X ^ Y) == Y also match with swapped operands.
22908 2015-06-29  Richard Biener  <rguenther@suse.de>
22910         * lto-streamer.h (LTO_major_version): Bump to 5.
22912 2015-06-29  Richard Biener  <rguenther@suse.de>
22914         PR tree-optimization/66677
22915         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22916         STMT_VINFO_VEC_STMT clobbering less strict.
22918 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
22920         PR middle-end/64130
22921         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22922         division, compute max and min when value ranges for dividend and
22923         divisor are available.
22925 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
22926             Sandra Loosemore <sandra@codesourcery.com>
22928         * regrename.h (regrename_do_replace): Change to return bool.
22929         * regrename.c (rename_chains): Check return value of
22930         regname_do_replace.
22931         (regrename_do_replace): Re-validate the modified insns and
22932         return bool status.
22933         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22934         Update to match rename_chains changes.
22935         * config/c6x/c6x.c (try_rename_operands): Assert that
22936         regrename_do_replace returns true.
22938 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
22940         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22941         operand 2 here.  Use copy_addr_to_reg to copy non-index
22942         register operand 2 to a temporary.
22943         (<mode>_stx): Ditto for operand 1.
22944         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22945         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22946         (ix86_store_bounds): Ditto.
22948 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
22950         * print-tree.c (print_node) [TREE_VEC]: Print its length.
22952 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
22954         * gimple.c (gimple_call_set_fndecl): Remove.
22955         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22956         build1_loc directly instead of build_fold_addr_expr_loc.
22958 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22960         * hash-map.h (hash_map::traverse): Use the definition of the
22961         Key typedef rather than the typedef itself.
22963 2015-06-26  Martin Jambor  <mjambor@suse.cz>
22965         PR debug/66301
22966         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22967         NULL instead of calling dump_enabled_p.
22969 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22971         * config/aarch64/aarch64.opt: (override): New.
22972         * doc/invoke.texi (override): Document.
22973         * config/aarch64/aarch64.c (aarch64_flag_desc): New
22974         (aarch64_fusible_pairs): Likewise.
22975         (aarch64_tuning_flags): Likewise.
22976         (aarch64_tuning_override_function): Likewise.
22977         (aarch64_tuning_override_functions): Likewise.
22978         (aarch64_parse_one_option_token): Likewise.
22979         (aarch64_parse_boolean_options): Likewise.
22980         (aarch64_parse_fuse_string): Likewise.
22981         (aarch64_parse_tune_string): Likewise.
22982         (aarch64_parse_one_override_token): Likewise.
22983         (aarch64_parse_override_string): Likewise.
22984         (aarch64_override_options): Parse the -override string if it
22985         is present.
22987 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22989         * config/aarch64/aarch64-protos.h (tune_params): Remove
22990         const from members.
22991         (aarch64_tune_params): Remove const, change to no longer be
22992         a pointer.
22993         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22994         change to no longer be a pointer, initialize to generic_tunings.
22995         (aarch64_min_divisions_for_recip_mul): Change dereference of
22996         aarch64_tune_params to member access.
22997         (aarch64_reassociation_width): Likewise.
22998         (aarch64_rtx_mult_cost): Likewise.
22999         (aarch64_address_cost): Likewise.
23000         (aarch64_branch_cost): Likewise.
23001         (aarch64_rtx_costs): Likewise.
23002         (aarch64_register_move_cost): Likewise.
23003         (aarch64_memory_move_cost): Likewise.
23004         (aarch64_sched_issue_rate): Likewise.
23005         (aarch64_builtin_vectorization_cost): Likewise.
23006         (aarch64_override_options): Take a copy of the selected tuning
23007         struct in to aarch64_tune_params, rather than just setting
23008         a pointer, change dereferences of aarch64_tune_params to member
23009         accesses.
23010         (aarch64_override_options_after_change): Change dereferences of
23011         aarch64_tune_params to member access.
23012         (aarch64_macro_fusion_p): Likewise.
23013         (aarch_macro_fusion_pair_p): Likewise.
23014         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23016 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23018         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23019         (aarch64_tune_flags): Likewise.
23020         (AARCH64_TUNE_FMA_STEERING): Likewise.
23021         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23022         to AARCH64_FL_USE_FMA_STEERING_PASS.
23023         (cortex-a57.cortex-a53): Likewise.
23024         (cortex-a72): Use cortexa72_tunings.
23025         (cortex-a72.cortex-a53): Likewise.
23026         (exynos-m1): Likewise.
23027         * config/aarch64/aarch64-protos.h (tune_params): Add
23028         a field: extra_tuning_flags.
23029         * config/aarch64/aarch64-tuning-flags.def: New.
23030         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23031         (aarch64_extra_tuning_flags): Likewise.
23032         (aarch64_tune_params): Declare here.
23033         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23034         (cortexa53_tunings): Likewise.
23035         (cortexa57_tunings): Likewise.
23036         (thunderx_tunings): Likewise.
23037         (xgene1_tunings): Likewise.
23038         (cortexa72_tunings): New.
23039         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23040          (gate): Check against aarch64_tune_params.
23041         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23042         aarch64-protos.h.
23044 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23046         * config/aarch64/aarch64-fusion-pairs.def: New.
23047         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23048         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23049         aarch64_fusion_pairs.
23050         (AARCH64_FUSE_MOV_MOVK): Likewise.
23051         (AARCH64_FUSE_ADRP_ADD): Likewise.
23052         (AARCH64_FUSE_MOVK_MOVK): Likewise.
23053         (AARCH64_FUSE_ADRP_LDR): Likewise.
23054         (AARCH64_FUSE_CMP_BRANCH): Likewise.
23056 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23058         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23059         SYMBOL_SMALL_GOT_28K.
23060         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23061         relocation modifiers.
23062         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23063         (ldr_got_small_28k_<mode>): New.
23064         (ldr_got_small_28k_sidi): New.
23065         * config/aarch64/iterators.md (got_modifier): New mode iterator.
23066         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23067         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23068         SYMBOL_SMALL_GOT_28K.
23069         (aarch64_rtx_costs): Add costs for new instruction sequences.
23070         (initialize_aarch64_code_model): Initialize new model.
23071         (aarch64_classify_symbol): Recognize new model and new symbol classification.
23072         (aarch64_asm_preferred_eh_data_format): Support new model.
23073         (aarch64_load_symref_appropriately): Generate new instruction
23074         sequences for -fpic.
23075         (TARGET_USE_PSEUDO_PIC_REG): New definition.
23076         (aarch64_use_pseudo_pic_reg): New function.
23078 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23080         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23081         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23082         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23083         (aarch64_expand_mov_immediate): Ditto.
23084         (aarch64_print_operand): Ditto.
23085         (aarch64_classify_symbol): Ditto.
23087 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
23089         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23091 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
23093         PR bootstrap/66638
23094         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23095         assertion failed.  Remove assertion itself.
23097 2015-06-26  Richard Biener  <rguenther@suse.de>
23099         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23100         and -A CMP CST -> A CMP -CST which is redundant with a pattern
23101         in match.pd.
23102         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23103         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23104         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23105         * match.pd: ... patterns here.
23107 2015-06-26  Marek Polacek  <polacek@redhat.com>
23109         * match.pd ((x | y) & ~(x & y) -> x ^ y,
23110         (x | y) & (~x ^ y) -> x & y): New patterns.
23112 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23114         * rtl.h (emit): Add an optional boolean parameter to control
23115         whether barriers are emitted.
23116         * emit-rtl.c (emit): Likewise.
23117         * gensupport.c (get_emit_function): Return null rather than "emit".
23118         * genemit.c (gen_emit_seq): Handle the null return value.
23119         Don't emit barriers after the final instruction in the sequence.
23120         * gentarget-def.c (main): Don't emit barriers after the instruction.
23122 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23124         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23125         TARGET_UNIFIED_ASM.
23127 2015-06-26  Richard Biener  <rguenther@suse.de>
23129         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23131 2015-06-26  Richard Biener  <rguenther@suse.de>
23133         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23134         irrespective on whether the inner operation has a single use
23135         of both off are constant.
23137 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
23138             Segher Boessenkool  <segher@kernel.crashing.org>
23140         PR target/66412
23141         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23142         before doing PUT_MODE or PUT_CODE on operands to avoid
23143         in-place RTX modification.
23145 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23147         * gentarget-def.c (def_target_insn): Cast return of strtol to
23148         unsigned int.
23150 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23152         * gimple.h (gimple_call_set_fn): Move inline function.
23153         * gimple.c (gimple_call_set_fn): Relocate here.
23155 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
23157         PR target/65979
23158         PR target/66611
23159         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23160         the replacement insn will work.
23162 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23164         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23165         by default.
23167 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23169         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23170         * cgraph.h: Include ipa-ref.h and plugin-api.h.
23171         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23172         (symtab_node::address_can_be_compared_p): Move function.
23173         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23174         definition here.
23175         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23176         * auto-profile.c: Likewise.
23177         * bb-reorder.c: Likewise.
23178         * builtins.c: Likewise.
23179         * calls.c: Likewise.
23180         * cfgexpand.c: Likewise.
23181         * cgraphbuild.c: Likewise.
23182         * cgraphclones.c: Likewise.
23183         * cgraphunit.c: Likewise.
23184         * combine.c: Likewise.
23185         * coverage.c: Likewise.
23186         * data-streamer-in.c: Likewise.
23187         * data-streamer-out.c: Likewise.
23188         * data-streamer.c: Likewise.
23189         * dbxout.c: Likewise.
23190         * dwarf2out.c: Likewise.
23191         * except.c: Likewise.
23192         * expr.c: Likewise.
23193         * final.c: Likewise.
23194         * fold-const.c: Likewise.
23195         * ggc-page.c: Likewise.
23196         * gimple-fold.c: Likewise.
23197         * gimple-iterator.c: Likewise.
23198         * gimple-pretty-print.c: Likewise.
23199         * gimple-streamer-in.c: Likewise.
23200         * gimple-streamer-out.c: Likewise.
23201         * gimple.c: Likewise.
23202         * gimplify.c: Likewise.
23203         * ipa-chkp.c: Likewise.
23204         * ipa-comdats.c: Likewise.
23205         * ipa-cp.c: Likewise.
23206         * ipa-devirt.c: Likewise.
23207         * ipa-icf-gimple.c: Likewise.
23208         * ipa-icf.c: Likewise.
23209         * ipa-inline-analysis.c: Likewise.
23210         * ipa-inline-transform.c: Likewise.
23211         * ipa-inline.c: Likewise.
23212         * ipa-polymorphic-call.c: Likewise.
23213         * ipa-profile.c: Likewise.
23214         * ipa-prop.c: Likewise.
23215         * ipa-pure-const.c: Likewise.
23216         * ipa-ref.c: Likewise.
23217         * ipa-reference.c: Likewise.
23218         * ipa-split.c: Likewise.
23219         * ipa-utils.c: Likewise.
23220         * ipa-visibility.c: Likewise.
23221         * ipa.c: Likewise.
23222         * langhooks.c: Likewise.
23223         * lto-cgraph.c: Likewise.
23224         * lto-compress.c: Likewise.
23225         * lto-opts.c: Likewise.
23226         * lto-section-in.c: Likewise.
23227         * lto-section-out.c: Likewise.
23228         * lto-streamer-in.c: Likewise.
23229         * lto-streamer-out.c: Likewise.
23230         * lto-streamer.c: Likewise.
23231         * omp-low.c: Likewise.
23232         * opts-global.c: Likewise.
23233         * passes.c: Likewise.
23234         * predict.c: Likewise.
23235         * print-tree.c: Likewise.
23236         * profile.c: Likewise.
23237         * ree.c: Likewise.
23238         * sanopt.c: Likewise.
23239         * stor-layout.c: Likewise.
23240         * symtab.c: Likewise.
23241         * toplev.c: Likewise.
23242         * trans-mem.c: Likewise.
23243         * tree-cfg.c: Likewise.
23244         * tree-chkp.c: Likewise.
23245         * tree-eh.c: Likewise.
23246         * tree-emutls.c: Likewise.
23247         * tree-inline.c: Likewise.
23248         * tree-nested.c: Likewise.
23249         * tree-parloops.c: Likewise.
23250         * tree-pretty-print.c: Likewise.
23251         * tree-profile.c: Likewise.
23252         * tree-sra.c: Likewise.
23253         * tree-ssa-alias.c: Likewise.
23254         * tree-ssa-live.c: Likewise.
23255         * tree-ssa-loop-ivcanon.c: Likewise.
23256         * tree-ssa-loop-ivopts.c: Likewise.
23257         * tree-ssa-pre.c: Likewise.
23258         * tree-ssa-sccvn.c: Likewise.
23259         * tree-ssa-strlen.c: Likewise.
23260         * tree-ssa-structalias.c: Likewise.
23261         * tree-streamer-in.c: Likewise.
23262         * tree-streamer-out.c: Likewise.
23263         * tree-streamer.c: Likewise.
23264         * tree-switch-conversion.c: Likewise.
23265         * tree-tailcall.c: Likewise.
23266         * tree-vect-data-refs.c: Likewise.
23267         * tree-vect-stmts.c: Likewise.
23268         * tree-vectorizer.c: Likewise.
23269         * tree.c: Likewise.
23270         * tsan.c: Likewise.
23271         * ubsan.c: Likewise.
23272         * value-prof.c: Likewise.
23273         * varasm.c: Likewise.
23274         * varpool.c: Likewise.
23275         * config/arm/arm.c: Likewise.
23276         * config/bfin/bfin.c: Likewise.
23277         * config/c6x/c6x.c: Likewise.
23278         * config/cris/cris.c: Likewise.
23279         * config/darwin-c.c: Likewise.
23280         * config/darwin.c: Likewise.
23281         * config/i386/i386.c: Likewise.
23282         * config/i386/winnt.c: Likewise.
23283         * config/microblaze/microblaze.c: Likewise.
23284         * config/mips/mips.c: Likewise.
23285         * config/rs6000/rs6000.c: Likewise.
23286         * config/rx/rx.c: Likewise.
23287         * config/s390/s390.c: Likewise.
23288         * config/tilegx/mul-tables.c: Likewise.
23290 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23292         * config/aarch64/aarch64.c, config/alpha/alpha.c,
23293         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23294         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23295         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23296         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23297         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23298         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23299         config/microblaze/microblaze.c, config/mips/mips.c,
23300         config/mmix/mmix.c, config/mn10300/mn10300.c,
23301         config/moxie/moxie.c, config/msp430/msp430.c,
23302         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23303         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23304         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23305         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23306         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23307         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23308         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23309         target-def.h include.
23310         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
23312 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23314         * Makefile.in (TARGET_DEF): Add target-insns.def.
23315         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23316         (build/gentarget-def.o): New rule.
23317         (genprogrtl): Add target-def.
23318         * target-insns.def, gentarget-def.c: New files.
23319         * target.def: Add targetm.have_* and targetm.gen_* hooks,
23320         based on the contents of target-insns.def.
23321         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23322         (HAVE_return, gen_return): Delete.
23323         * target-def.h: Include insn-target-def.h.
23324         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23325         instead of direct calls.  Rely on them to do the appropriate assertions.
23326         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
23327         (convert_jumps_to_returns): Use targetm interface instead of
23328         direct calls.
23329         (thread_prologue_and_epilogue_insns): Likewise.
23330         * reorg.c (find_end_label, dbr_schedule): Likewise.
23331         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23332         * shrink-wrap.c (convert_to_simple_return): Likewise.
23333         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23335 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23337         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23338         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23339         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23340         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23341         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23342         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23343         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23344         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23345         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23346         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23347         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23348         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23349         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23350         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23351         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23352         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23353         includes to end.
23355 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23357         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23358         (unbounded_int_hashmap_traits::key_type): Likewise.
23359         * hash-map.h (hash_map): Get the key type from the traits.
23360         * hash-traits.h (default_hash_traits): By default, inherit from the
23361         template parameter.
23362         * alias.c (alias_set_traits): Delete.
23363         (alias_set_entry_d::children): Use alias_set_hash as the first
23364         template parameter.
23365         (record_alias_subset): Update accordingly.
23366         * except.c (tree_hash_traits): Delete.
23367         (type_to_runtime_map): Use tree_hash as the first template parameter.
23368         (init_eh): Update accordingly.
23369         * genmatch.c (capture_id_map_hasher): Delete.
23370         (cid_map_t): Use nofree_string_hash as first template parameter.
23371         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23372         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23373         Use symbol_compare_hash as the first template parameter in
23374         subdivide_hash_map.
23375         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23376         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23377         template parameter.
23378         * passes.c (pass_registry_hasher): Delete.
23379         (name_to_pass_map): Use nofree_string_hash as the first template
23380         parameter.
23381         (register_pass_name): Update accordingly.
23382         * sanopt.c (sanopt_tree_map_traits): Delete.
23383         (sanopt_tree_triplet_map_traits): Delete.
23384         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23385         template parameter.
23386         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23387         the first template parameter.
23388         * sese.c (rename_map_hasher): Delete.
23389         (rename_map_type): Use tree_ssa_name_hash as the first template
23390         parameter.
23391         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23392         (function_summary::m_map): Use map_hash as the first template
23393         parameter.
23394         (function_summary::release): Update accordingly.
23395         * tree-if-conv.c (phi_args_hash_traits): Delete.
23396         (predicate_scalar_phi): Use tree_operand_hash as the first template
23397         parameter to phi_arg_map.
23398         * tree-inline.h (dependence_hasher): Delete.
23399         (copy_body_data::dependence_map): Use dependence_hash as the first
23400         template parameter.
23401         * tree-inline.c (remap_dependence_clique): Update accordingly.
23402         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23403         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23404         parameter.
23405         (addr_stridxptr): Update accordingly.
23406         * value-prof.c (profile_id_traits): Delete.
23407         (cgraph_node_map): Use profile_id_hash as the first template
23408         parameter.
23409         (init_node_map): Update accordingly.
23410         * config/alpha/alpha.c (string_traits): Delete.
23411         (machine_function::links): Use nofree_string_hash as the first
23412         template parameter.
23413         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23414         * config/m32c/m32c.c (pragma_traits): Delete.
23415         (pragma_htab): Use nofree_string_hash as the first template parameter.
23416         (m32c_note_pragma_address): Update accordingly.
23417         * config/mep/mep.c (pragma_traits): Delete.
23418         (pragma_htab): Use nofree_string_hash as the first template parameter.
23419         (mep_note_pragma_flag): Update accordingly.
23420         * config/mips/mips.c (mips16_flip_traits): Delete.
23421         (mflip_mips16_htab): Use nofree_string_hash as the first template
23422         parameter.
23423         (mflip_mips16_use_mips16_p): Update accordingly.
23424         (local_alias_traits): Delete.
23425         (mips16_local_aliases): Use nofree_string_hash as the first template
23426         parameter.
23427         (mips16_local_alias): Update accordingly.
23429 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23431         * hash-map-traits.h (default_hashmap_traits): Delete.
23433 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23435         * hash-map-traits.h (unbounded_hashmap_traits): New class.
23436         (unbounded_int_hashmap_traits): Likewise.
23437         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23439 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23441         * ipa-icf.h (symbol_compare_hash): New class.
23442         (symbol_compare_hashmap_traits): Use it.
23443         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23444         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23445         (mem_alloc_description::reverse_mem_map_t): Remove redundant
23446         default_hashmap_traits.
23447         * sanopt.c (sanopt_tree_triplet_hash): New class.
23448         (sanopt_tree_triplet_map_traits): Use it.
23450 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23452         * gengtype-parse.c (require_template_declaration): Allow '+' in
23453         template parameters.  Consolidate cases.
23454         * hash-traits.h (int_hash): New class.
23455         * alias.c (alias_set_hash): New structure.
23456         (alias_set_traits): Use it.
23457         * symbol-summary.h (function_summary::map_hash): New class.
23458         (function_summary::summary_hashmap_traits): Use it.
23459         * tree-inline.h (dependence_hash): New class.
23460         (dependence_hasher): Use it.
23461         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23462         * value-prof.c (profile_id_hash): New class.
23463         (profile_id_traits): Use it.
23465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23467         * config/mips/mips.c (mips16_flip_traits): Use it.
23468         (local_alias_traits, mips16_local_aliases): Convert from a map of
23469         rtxes to a map of symbol names.
23470         (mips16_local_alias): Update accordingly.
23472 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23474         * hash-traits.h (string_hash, nofree_string_hash): New classes.
23475         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23476         * passes.c (pass_registry_hasher): Likewise.
23477         * config/alpha/alpha.c (string_traits): Likewise.
23478         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23479         * config/m32c/m32c.c (pragma_traits): Likewise.
23480         * config/mep/mep.c (pragma_traits): Likewise.
23482 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23484         * tree-hash-traits.h (tree_hash): New class.
23485         * except.c: Include tree-hash-traits.h.
23486         (tree_hash_traits): Use tree_hash.
23488 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23490         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23491         * sese.c: Include tree-hash-traits.h.
23492         (rename_map_hasher): Use tree_ssa_name_hasher.
23494 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23496         * tree-hash-traits.h (tree_decl_hash): New class.
23497         * tree-ssa-strlen.c: Include tree-hash-traits.h.
23498         (stridxlist_hash_traits): Use tree_decl_hash.
23500 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23502         * tree-hash-traits.h: New file.
23503         (tree_operand_hash): New class.
23504         * sanopt.c: Include tree-hash-traits.h.
23505         (sanopt_tree_map_traits): Use tree_operand_hash.
23506         * tree-if-conv.c: Include tree-hash-traits.h.
23507         (phi_args_hash_traits): Use tree_operand_hash.
23508         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23509         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23511 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23513         * hash-map-traits.h: Include hash-traits.h.
23514         (simple_hashmap_traits): New class.
23515         * mem-stats.h (hash_map): Change the default traits to
23516         simple_hashmap_traits<default_hash_traits<Key> >.
23518 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23520         * hash-table.h: Update comments.
23522 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23524         * hash-traits.h (default_hash_traits): New structure.
23525         * hash-set.h (default_hashset_traits): Delete.
23526         (hash_set): Use default_hash_traits<Key> instead of
23527         default_hashset_traits.  Delete hash_entry type and use Key directly.
23528         * ipa-devirt.c (pair_traits): Delete.
23529         (default_hash_traits <type_pair>): Override.
23530         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23531         (odr_types_equivalent_p, add_type_duplicate): Likewise.
23533 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23535         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23537 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23539         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23540         (has_is_empty, is_empty_helper): Delete.
23541         (has_mark_deleted, mark_deleted_helper): Delete.
23542         (has_mark_empty, mark_empty_helper): Delete.
23543         (hash_table::is_deleted): Call the Descriptor unconditionally.
23544         (hash_table::is_empty): Likewise.
23545         (hash_table::mark_deleted): Likewise.
23546         (hash_table::mark_empty): Likewise.
23548 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23550         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
23551         redundant typedefs and members.
23552         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
23553         redundant typedefs.
23554         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23555         * ipa-devirt.c (odr_name_hasher): Likewise.
23556         (polymorphic_call_target_hasher): Likewise.
23557         * ira-costs.c (cost_classes_hasher): Likewise.
23558         * statistics.c (stats_counter_hasher): Likewise.
23559         * trans-mem.c (log_entry_hasher): Likewise.
23560         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23561         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23562         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23563         * var-tracking.c (variable_hasher): Likewise.
23564         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23565         Remove redundant typedefs and members.
23567 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23569         * hash-traits.h (ggc_cache_hasher): Rename to...
23570         (ggc_cache_remove): ...this and remove typedefs.
23571         (ggc_cache_ptr_hash): New class.
23572         * hash-table.h: Update commentary.
23573         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23574         rather than ggc_cache_hasher.
23575         (const_wide_int_hasher, reg_attr_hasher): Likewise.
23576         (const_double_hasher, const_fixed_hasher): Likewise.
23577         * function.c (insn_cache_hasher): Likewise.
23578         * trans-mem.c (tm_wrapper_hasher): Likewise.
23579         * tree.h (tree_decl_map_cache_hasher): Likewise.
23580         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23581         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23582         * ubsan.c (tree_type_map_cache_hasher): Likewise.
23583         * varasm.c (tm_clone_hasher): Likewise.
23584         * config/i386/i386.c (dllimport_hasher): Likewise.
23585         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23586         (tree_hasher): Likewise.
23588 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23590         * hash-traits.h (ggc_hasher): Rename to...
23591         (ggc_remover): ...this and remove typedefs.
23592         (ggc_cache_hasher): Update accordingly.  Add typedefs.
23593         (ggc_ptr_hash): New class.
23594         * hash-table.h: Update comment.
23595         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23596         ggc_hasher.
23597         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23598         (tree_descriptor_hasher): Likewise.
23599         * cgraph.c (function_version_hasher): Likewise.
23600         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23601         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23602         (dw_loc_list_hasher, addr_hasher): Likewise.
23603         * function.h (used_type_hasher): Likewise.
23604         * function.c (temp_address_hasher): Likewise.
23605         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23606         * libfuncs.h (libfunc_hasher): Likewise.
23607         * lto-streamer.h (decl_state_hasher): Likewise.
23608         * optabs.c (libfunc_decl_hasher): Likewise.
23609         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23610         * varasm.c (section_hasher, object_block_hasher): Likewise.
23611         (const_rtx_desc_hasher): Likewise.
23612         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23613         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23615 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23617         * hash-traits.h (free_ptr_hash): New class.
23618         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23619         rather than typed_free_remove.  Remove redudant typedefs.
23620         (external_ref_hasher): Likewise.
23621         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23622         (ehspec_hasher): Likewise.
23623         * ggc-common.c (saving_hasher): Likewise.
23624         * gimplify.c (gimplify_hasher): Likewise.
23625         * haifa-sched.c (delay_i2_hasher): Likewise.
23626         * loop-invariant.c (invariant_expr_hasher): Likewise.
23627         * loop-iv.c (biv_entry_hasher): Likewise.
23628         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23629         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23630         * tree-cfg.c (locus_discrim_hasher): Likewise.
23631         * tree-eh.c (finally_tree_hasher): Likewise.
23632         * tree-into-ssa.c (var_info_hasher): Likewise.
23633         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23634         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23635         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23636         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23637         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23638         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23639         (shared_bitmap_hasher): Likewise.
23640         * tree-ssa-threadupdate.c (redirection_data): Likewise.
23641         * tree-vectorizer.h (peel_info_hasher): Likewise.
23642         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23643         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23645 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23647         * hash-table.h: Update comments.
23648         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23649         (nofree_ptr_hash): New class.
23650         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23651         than typed_noop_remove.  Remove redudant typedefs.
23652         * attribs.c (attribute_hasher): Likewise.
23653         * cfg.c (bb_copy_hasher): Likewise.
23654         * cselib.c (cselib_hasher): Likewise.
23655         * dse.c (invariant_group_base_hasher): Likewise.
23656         * dwarf2cfi.c (trace_info_hasher): Likewise.
23657         * dwarf2out.c (macinfo_entry_hasher): Likewise.
23658         (comdat_type_hasher, loc_list_hasher): Likewise.
23659         * gcse.c (pre_ldst_expr_hasher): Likewise.
23660         * genmatch.c (id_base): Likewise.
23661         * genrecog.c (test_pattern_hasher): Likewise.
23662         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23663         * haifa-sched.c (delay_i1_hasher): Likewise.
23664         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23665         * ipa-icf.h (congruence_class_group_hash): Likewise.
23666         * ipa-profile.c (histogram_hash): Likewise.
23667         * ira-color.c (allocno_hard_regs_hasher): Likewise.
23668         * lto-streamer.h (string_slot_hasher): Likewise.
23669         * lto-streamer.c (tree_entry_hasher): Likewise.
23670         * plugin.c (event_hasher): Likewise.
23671         * postreload-gcse.c (expr_hasher): Likewise.
23672         * store-motion.c (st_expr_hasher): Likewise.
23673         * tree-sra.c (uid_decl_hasher): Likewise.
23674         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23675         (ssa_name_var_hash): Likewise.
23676         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23677         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23678         * tree-ssa-pre.c (pre_expr_d): Likewise.
23679         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23680         * vtable-verify.h (registration_hasher): Likewise.
23681         * vtable-verify.c (vtbl_map_hasher): Likewise.
23682         * config/arm/arm.c (libcall_hasher): Likewise.
23683         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23684         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23685         * config/sol2.c (comdat_entry_hasher): Likewise.
23686         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23687         (print_fold_checksum, fold_checksum_tree): Likewise.
23688         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23689         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23690         (fold_build_call_array_loc): Likewise.
23691         * tree-ssa-ccp.c (gimple_htab): Likewise.
23692         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23693         rather than pointer_type.
23695 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23697         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23698         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23700 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23702         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23703         (ggc_hasher::ggc_mx): Likewise.
23704         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
23705         that duplicate ggc_hasher ones.
23707 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23709         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23710         (gt_cleare_cache): Check here for deleted and empty entries.
23711         Replace handle_cache_entry with a call to keep_cache_entry.
23712         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23713         (ggc_cache_hasher::keep_cache_entry): New function.
23714         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23715         (tm_wrapper_hasher::keep_cache_entry): New function.
23716         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23717         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23718         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23719         (type_cache_hasher::keep_cache_entry): New function.
23720         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23721         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23722         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23723         (tree_type_map_cache_hasher::keep_cache_entry): New function.
23724         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23725         (tm_clone_hasher::keep_cache_entry): New function.
23726         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23727         (dllimport_hasher::keep_cache_entry): New function.
23729 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23731         * hash-table.h: Include hash-traits.h.
23732         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23733         (ggc_cache_hasher): Move to...
23734         * hash-traits.h: ...this new file.
23736 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23738         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23739         struct cl_optimization.
23740         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23741         * tree.c (make_node_stat): Allocate cl_optimization struct.
23742         (copy_node_stat): Allocate and copy cl_optimization struct.
23744 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23746         * function.h (struct incoming_args): Move struct.
23747         (pass_by_reference, reference_callee_copied): Remove prototypes.
23748         * emit-rtl.h (struct incoming_args): Relocate struct here.
23749         * calls.h (pass_by_reference, reference_callee_copied): Relocate
23750         prototypes here.
23751         * function.c (pass_by_reference, reference_callee_copied): Move.
23752         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23753         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23754         * ipa-chkp.c: Include calls.h.
23756 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
23758         * alias.h (alias_set_type): Move typedef.
23759         * coretypes.h (alias_set_type): Relocate typedef here.
23760         * rtl.h: Don't include alias.h.
23762 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23764         * cgraph.h (cgraph_rtl_info): Move to rtl.h
23765         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23766         and instance.
23767         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23768         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23769         doesn't exist.
23770         * calls.c: Include hard-reg-set.h before rtl.h.
23771         * ira.c: Likewise.
23773 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23774             Vladimir Makarov  <vmakarov@redhat.com>
23776         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23777         Add assert.
23779 2015-06-25  Richard Biener  <rguenther@suse.de>
23781         * fold-const.c (fold_binary_loc): Move simplification of
23782         (X <<>> C1) & C2 ...
23783         * match.pd: ... here.
23785 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23787         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23789 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23791         * match.pd: Add patterns for vec_conds between 1 and 0.
23793 2015-06-25  Richard Biener  <rguenther@suse.de>
23795         * tree-vect-stmts.c (vectorizable_conversion): Do not set
23796         STMT_VINFO_VEC_STMT for SLP.
23797         (vectorizable_store): Likewise.
23798         (vectorizable_load): Likewise.
23799         (vect_transform_stmt): Catch SLP vectorization clobbering
23800         STMT_VINFO_VEC_STMT.
23802 2015-06-25  Richard Biener  <rguenther@suse.de>
23804         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23805         dumping.
23806         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23807         cleanup resulting dead code and parameters.
23808         (vect_transform_slp_perm_load): Adjust.
23810 2015-06-25  Nick Clifton  <nickc@redhat.com>
23812         * config/bfin/bfin.c (bfin_expand_prologue): Set
23813         current_function_static_stack_size if flag_stack_usage_info is set.
23814         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23815         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23816         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23817         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23819 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23821         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23822         comment that the generated IV is unsigned.
23824 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23826         PR target/29693
23827         * config/arm/arm.c (arm_dbx_register_number): Return
23828         DWARF_FRAME_REGISTERS by default.
23830 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23832         * dominance.c (calculate_dominance_info): Fix verify_dominators call
23833         argument.  Call verify_dominator when reusing dominator info.
23835 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
23837         PR target/66563
23838         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23839         an additional element of the unspec vector.  Modify indices
23840         of operands.
23841         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23842         * config/sh/sh.c (prepare_move_operands): Pass incremented
23843         const_int to gen_GOTaddr2picreg.
23844         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23846 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23848         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23849         Condition on TARGET_FLOAT.
23851 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23853         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23854         and (no)crypto.
23856 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23858         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23860         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23861         aarch64_err_no_fpadvsimd.
23863         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23864         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23865         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23866         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23867         Turn error into assert, test TARGET_FLOAT.
23868         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23869         TARGET_FLOAT.
23871 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
23873         PR debug/66482
23874         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23876 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
23878         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23880 2015-06-24  Renlin Li <renlin.li@arm.com>
23882         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23883         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23885 2015-06-24  Richard Biener  <rguenther@suse.de>
23887         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23888         (main): Likewise.
23889         (lower_opt_convert): Support lowering of conditional view_convert.
23890         (parser::parse_operation): Likewise.
23891         (parser::parse_for): Likewise.
23893 2015-06-24  Renlin Li  <renlin.li@arm.com>
23895         * varasm.c (emit_local): Use unsigned int for align variable.
23897 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23899         PR target/63408
23900         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23901         for negative numbers.
23903 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23905         PR rtl-optimization/66306
23906         * reload.c (find_reloads): Swap the match_dup info for
23907         commutative operands.
23909 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23911         * config/s390/vx-builtins.md
23912         ("vec_scatter_element<mode>_<non_vec_int>")
23913         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23914         attribute with bhfgq.
23916 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23918         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23920 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23922         * config/s390/s390-builtin-types.def: Add flag to indicate the
23923         options under which the function type is needed.
23924         * config/s390/s390-builtins.def: Add flag to indicate the options
23925         under which the builtin is enabled.
23926         * config/s390/s390-builtins.h: Add flags parameter to macro
23927         definitions.
23928         (bflags_for_builtin): New function.
23929         (flags_for_builtin): Renamed to ...
23930         (opflags_for_builtin): ... this.
23931         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23932         flags_for_builtin to bflags_for_builtin and
23933         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23934         * config/s390/s390.c: Add initialization of bflags_builtin and
23935         opflags_builtin arrays.
23936         Remove code for flags_builtin.
23937         (s390_init_builtins): Only create builtin function types if one of
23938         their flags is active.
23939         Only create builtins if all of their flags are active.
23940         (s390_expand_builtin): Rename flags_for_builtin to
23941         opflags_for_builtin.
23943 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23945         * config/s390/vecintrin.h: Remove internal builtins.
23947 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23949         * config/s390/s390.c (s390_secondary_reload): Fix check for
23950         GENERAL_REGS register class.
23952 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23954         * config/s390/s390.c (s390_support_vector_misalignment): Call
23955         default implementation for !TARGET_VX.
23957 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23959         * config/s390/s390.c (s390_legitimate_constant_p): Add
23960         TARGET_VX check.
23962 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23964         * config/s390/s390.c (s390_vector_abi): New variable definition.
23965         (s390_check_type_for_vector_abi): New function.
23966         (TARGET_ASM_FILE_END): New macro definition.
23967         (s390_asm_file_end): New function.
23968         (s390_function_arg): Call s390_check_type_for_vector_abi.
23969         (s390_gimplify_va_arg): Likewise.
23970         * configure: Regenerate.
23971         * configure.ac: Check for .gnu_attribute Binutils feature.
23973 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
23975         PR target/65803
23976         * config/bfin/bfin.c (hwloop_optimize): Initialize
23977         JUMP_LABEL for newly created jump.
23979 2015-06-23  Tristan Gingold  <gingold@adacore.com>
23981         * collect-utils.c (collect_wait): Unlink the response file here
23982         instead of...
23983         (do_wait): ...here.
23984         (utils_cleanup): ...and here.
23986 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
23988         * df-scan.c: Don't include target-def.h.
23989         * targhooks.c: Likewise.
23990         * config/arm/arm-c.c: Likewise.
23991         * config/i386/i386-c.c: Likewise.
23992         * config/nds32/nds32-cost.c: Likewise.
23993         * config/nds32/nds32-fp-as-gp.c: Likewise.
23994         * config/nds32/nds32-intrinsic.c: Likewise.
23995         * config/nds32/nds32-isr.c: Likewise.
23996         * config/nds32/nds32-md-auxiliary.c: Likewise.
23997         * config/nds32/nds32-memory-manipulation.c: Likewise.
23998         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23999         * config/nds32/nds32-predicates.c: Likewise.
24001 2015-06-23  Richard Biener  <rguenther@suse.de>
24003         PR tree-optimization/66636
24004         * tree-vect-stmts.c (vectorizable_store): Properly compute the
24005         def type for further defs for strided stores.
24007 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
24009         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24010         conditional selects.
24011         (setcc_int<mode>, setcc_float<mode>): Reformat.
24013 2015-06-23  Marek Polacek  <polacek@redhat.com>
24015         * match.pd ((x + y) - (x | y) -> x & y,
24016         (x + y) - (x & y) -> x | y): New patterns.
24018 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
24020         PR 65711
24021         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24022         '-dynamic-linker' within %{!shared: ...}.
24024 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
24026         PR target/66560
24027         * config/i386/predicates.md (addsub_vm_operator): New predicate.
24028         (addsub_vs_operator): Ditto.
24029         (addsub_vs_parallel): Ditto.
24030         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24031         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24032         Put minus RTX before plus and adjust vec_merge selector.
24033         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24034         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24035         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24036         (addsub vec_merge splitters): New combiner splitters.
24037         (addsub vec_select/vec_concat splitters): Ditto.
24039 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
24041         PR tree-optimization/66449
24042         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24043         POINTER_PLUS_EXPR for pointers.
24045 2015-06-23  Alan Modra  <amodra@gmail.com>
24047         * rtlanal.c (commutative_operand_precedence): Correct comments.
24048         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24049         declaration.  Return an int.  Distinguish REG,REG return from
24050         others.
24051         (struct simplify_plus_minus_op_data): Make local to function.
24052         (simplify_plus_minus): Don't set canonicalized if merely sorting
24053         registers.  Avoid packing ops if nothing changes.  White space fixes.
24055 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
24057         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24058         -fdump-ada-spec is passed but not if -fsyntax-only is.
24060 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
24062         PR bootstrap/63740
24063         * lra-lives.c (process_bb_lives): Check insn copying the same
24064         reload pseudo and don't create a copy for it.
24066 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24068         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24069         for cond_stmt.
24071 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24073         * builtins.def (DEF_GOMP_BUILTIN): Test
24074         'flag_tree_parallelize_loops > 1' instead of
24075         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
24077 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24079         * dominance.c (calculate_dominance_info): Verify dominators if
24080         early-out.
24082 2015-06-22  Marek Polacek  <polacek@redhat.com>
24084         * match.pd ((x ^ y) ^ (x | y) -> x & y,
24085         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24086         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24087         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24089 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
24091         PR target/65871
24092         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24093         cost of embedded comparison.
24095 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24097         PR target/65914
24098         * config/rs6000/predicates.md (altivec_register_operand): Permit
24099         virtual stack registers.
24100         (vsx_register_operand): Likewise.
24101         (vfloat_operand): Likewise.
24102         (vint_operand): Likewise.
24103         (vlogical_operand): Likewise.
24105 2015-06-22  Richard Biener  <rguenther@suse.de>
24107         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24108         and single_scalar_iteration_cost members.
24109         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24110         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24111         (vect_get_single_scalar_iteration_cost): Remove.
24112         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24113         Use LOOP_VINFO_SCALAR_ITERATION_COST.
24114         * tree-vect-loop.c (destroy_loop_vec_info): Free
24115         scalar_cost_vec.
24116         (vect_get_single_scalar_iteration_cost): Compute result into
24117         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24118         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
24119         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24120         (vect_estimate_min_profitable_iters): Use them.
24122 2015-06-22  Christian Bruel  <christian.bruel@st.com>
24124         PR target/52144
24125         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24126         (TARGET_INSERT_ATTRIBUTES): Define.
24127         (thumb_flipper): New var.
24128         * config/arm/arm.opt (-mflip-thumb): New switch.
24130 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24131             Martin Liska  <mliska@suse.cz>
24133         PR ipa/65908
24134         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24135         construction of arg_types.
24136         (sem_function::sem_function): Likewise.
24137         (sem_function::~sem_function): Remove destruction of arg_types.
24138         (sem_function::compatible_parm_types_p): New function.
24139         (sem_function::equals_wpa): Reorg matching of return values
24140         and parameter types.
24141         (sem_function::equals_private): Reorg mathcing of argument types.
24142         (sem_function::parse_tree_args): Remove.
24143         * ipa-icf.h (init_wpa): Do not call it.
24144         (parse_tree_args): Remove.
24145         (compatible_parm_types_p): Declare.
24146         (result_type): Remove.
24147         (arg_types): Remove.
24149 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24151         PR ipa/66351
24152         * ipa-polymorphic-call.c
24153         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24154         initializing alias oracle; fix formating; set base_alias_set if it
24155         is known.
24157 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
24159         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24160         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24161         (find_inc): Likewise.
24162         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24163         swapping.
24164         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24165         * df-scan.c (df_swap_refs): Remove.
24166         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24167         * dominance.c (link_roots): Use std::swap instead of manually swapping.
24168         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24169         * fold-const.c (fold_relational_const): Likewise.
24170         * genattrtab.c (simplify_test_exp): Likewise.
24171         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24172         gimple_simplify): Likewise.
24173         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24174         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24175         * ipa-devirt.c (add_type_duplicate): Likewise.
24176         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24177         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24178         * lra.c (lra_create_copy): Likewise.
24179         * lto-streamer-out.c (DFS::DFS): Likewise.
24180         * modulo-sched.c (get_sched_window): Likewise.
24181         * omega.c (omega_pretty_print_problem): Likewise.
24182         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24183         * reload1.c (reloads_unique_chain_p): Likewise.
24184         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24185         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24186         use std::swap.
24187         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24188         manually swapping.
24189         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24190         predicate_mem_writes): Likewise.
24191         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24192         * tree-predcom.c (combine_chains): Likewise.
24193         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24194         refs_may_alias_p_1): Likewise.
24195         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24196         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24197         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24198         number_of_iterations_cond): Likewise.
24199         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24200         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24201         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24202         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24203         * tree-vrp.c (extract_range_from_binary_expr_1,
24204         extract_range_from_unary_expr_1): Likewise.
24206 2015-06-20  Marek Polacek  <polacek@redhat.com>
24208         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24210 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24212         PR target/66591
24213         * config/sh/sh.c (prepare_move_operands): Replace subreg
24214         index term with R0 for base and index addressing.
24216 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
24218         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24219         op1 is an fp zero.
24220         (movsf_aarch64): Change condition from register_operand to
24221         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
24222         load1.  Change type for alternative 7 to store1.
24223         (movdf_aarch64): Likewise.
24225 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
24227         * config/vax/vax.md: Adjust sign/zero extend patterns to
24228         handle SUBREGs in operands[1].
24230 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24232         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24233         of manually swapping.
24234         (expand_vec_perm_interleave2): Likewise.
24236 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
24238         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24239         reuse bounds created for abnormal ssa names.
24241 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
24243         * config/nvptx/nvptx.md (allocate_stack): Rename to...
24244         (allocate_stack_<mode>): ... this, and add :P on both
24245         match_operand and unspec.
24246         (allocate_stack): New expander.
24248 2015-06-19  Christian Bruel  <christian.bruel@st.com>
24250         PR target/66541
24251         PR target/52144
24252         * config/arm/arm.c (arm_set_current_function): Handle
24253         explicit default options.
24255 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24257         * config/i386/i386.md (*movsicc_noc_zext): New insn.
24258         (zero-extended cmove with mem peephole2): New pattern.
24259         (cmove with mem peephole2): Merge patterns.
24261 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
24263         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24265 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
24267         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24268         * config/mips/mips.md (*madd4<mode>): Ditto.
24269         (*nmadd3<mode>) Ditto.
24270         (*nmadd4<mode>_fastmath): Ditto.
24271         (*nmadd3<mode>_fastmath): Ditto.
24272         (*nmsub4<mode>): Ditto.
24273         (*nmsub3<mode>): Ditto.
24274         (*nmsub4<mode>_fastmath): Ditto.
24275         (*nmsub3<mode>_fastmath): Ditto.
24277 2015-06-18  Michael Matz  <matz@suse.de>
24279         PR middle-end/66253
24280         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24281         grouped strided stores.
24282         (vectorizable_load): Don't use the DR from first_stmt in
24283         the non-SLP grouped strided case.
24285 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24287         PR target/66569
24288         * function.c (assign_bounds): Add arguments assign_regs,
24289         assign_special, assign_bt.
24290         (assign_parms): For vararg functions handle bounds in BT
24291         and special slots after incoming vararg bounds.
24293 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24295         PR middle-end/66568
24296         * cfgexpand.c (expand_return): Handle missing bounds.
24297         (expand_gimple_stmt_1): Likewise.
24298         * tree-chkp.c (chkp_expand_zero_bounds): New.
24299         * tree-chkp.h (chkp_expand_zero_bounds): New.
24301 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24303         PR middle-end/66567
24304         * ipa-chkp.c (chkp_maybe_create_clone): Require
24305         functions to be instrumentable.
24306         * tree-chkp.c (chkp_replace_function_pointer): Use
24307         chkp_instrumentable_p instead of attribute check.
24309 2015-06-18  Richard Biener  <rguenther@suse.de>
24311         PR tree-optimization/66510
24312         * tree-vect-stmts.c (vectorizable_load): Properly compute the
24313         number of vector loads for SLP permuted loads.
24314         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24315         check the stride for loop vectorization.
24316         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24317         vectorization factor.
24318         (vect_analyze_group_access): If the group size is not a power
24319         of two require a epilogue loop.
24320         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24321         compute and optimizing and alias test pruning after final
24322         vectorization factor computation.
24323         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24324         vector alignment.
24325         (vect_transform_slp_perm_load): Properly compute the original
24326         number of vector load stmts.
24328 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24330         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24331         "unlikely character , in @var" warning.
24333 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
24335         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24336         (ix86_function_arg_advance): Ditto.
24337         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
24339 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24341         * function.h (struct rtl_data): Remove struct and accessor macros.
24342         * emit-rtl.h (struct rtl_data): Relocate to here.
24343         * Makefile.in (GTFILES): Add emit-rtl.h.
24344         * df-core.c: Include emit-rtl.h.
24345         * genattrtab.c: Likewise.
24346         * genconditions.c: Likewise.
24347         * genpreds.c: Likewise.
24348         * genrecog.c: Likewise.
24349         * regcprop.c: Likewise.
24350         * resource.c: Likewise.
24351         * sched-rgn.c: Likewise.
24352         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24353         * config/i386/winnt.c: Likewise.
24355 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
24357         PR middle-end/66429
24358         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24359         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
24360         and has_force_vectorize_loops flags from cfun into
24361         child_cfun.
24362         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24363         if simduid is non-NULL.
24364         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24365         * passes.def (pass_simduid_cleanup): Add new pass after loop
24366         passes.
24367         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24368         indirection from htab argument's type.
24369         (shrink_simd_arrays): New function.
24370         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
24371         Don't call adjust_simduid_builtins if there are no loops.
24372         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24373         (pass_simduid_cleanup::execute): New method.
24374         (make_pass_simduid_cleanup): New function.
24376 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
24378         * tree-core.h (tree_target_option): Make opts field a pointer to a
24379         cl_target_option instead of an instance of the struct.
24380         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24381         the structure.
24382         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24383         TARGET_OPTION_NODE.
24384         (copy_node_stat): Allocate and copy struct cl_target_option.
24386 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24388         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24389         Remove conditional exposure of prototypes.
24390         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24391         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
24392         definitions in tree.h with functions.
24393         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24394         anon_aggrname_p.
24395         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24397 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
24399         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24400         (*cmp<mode>_signed): ... this.
24401         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24402         (*cmp<mode>_unsigned): ... this.  Remove %b.
24404 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24406         * coretypes.h: Include input.h and as-a.h.
24407         * rtl.h: Include input.h and as-a.h for generator files.
24408         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24409         * vec.c: Don't include diagnostic-core.h.
24410         * alias.c: Do not include input.h, line-map.h or is-a.h.
24411         * asan.c: Likewise.
24412         * attribs.c: Likewise.
24413         * auto-inc-dec.c: Likewise.
24414         * auto-profile.c: Likewise.
24415         * bb-reorder.c: Likewise.
24416         * bt-load.c: Likewise.
24417         * builtins.c: Likewise.
24418         * caller-save.c: Likewise.
24419         * calls.c: Likewise.
24420         * ccmp.c: Likewise.
24421         * cfg.c: Likewise.
24422         * cfganal.c: Likewise.
24423         * cfgbuild.c: Likewise.
24424         * cfgcleanup.c: Likewise.
24425         * cfgexpand.c: Likewise.
24426         * cfghooks.c: Likewise.
24427         * cfgloop.c: Likewise.
24428         * cfgloop.h: Likewise.
24429         * cfgloopanal.c: Likewise.
24430         * cfgloopmanip.c: Likewise.
24431         * cfgrtl.c: Likewise.
24432         * cgraph.c: Likewise.
24433         * cgraphbuild.c: Likewise.
24434         * cgraphclones.c: Likewise.
24435         * cgraphunit.c: Likewise.
24436         * cilk-common.c: Likewise.
24437         * combine-stack-adj.c: Likewise.
24438         * combine.c: Likewise.
24439         * compare-elim.c: Likewise.
24440         * convert.c: Likewise.
24441         * coverage.c: Likewise.
24442         * cppbuiltin.c: Likewise.
24443         * cprop.c: Likewise.
24444         * cse.c: Likewise.
24445         * cselib.c: Likewise.
24446         * data-streamer-in.c: Likewise.
24447         * data-streamer-out.c: Likewise.
24448         * data-streamer.c: Likewise.
24449         * dbxout.c: Likewise.
24450         * dce.c: Likewise.
24451         * ddg.c: Likewise.
24452         * debug.c: Likewise.
24453         * df-core.c: Likewise.
24454         * df-problems.c: Likewise.
24455         * df-scan.c: Likewise.
24456         * df.h: Likewise.
24457         * dfp.c: Likewise.
24458         * diagnostic-core.h: Likewise.
24459         * diagnostic.c: Likewise.
24460         * dojump.c: Likewise.
24461         * dominance.c: Likewise.
24462         * domwalk.c: Likewise.
24463         * double-int.c: Likewise.
24464         * dse.c: Likewise.
24465         * dumpfile.c: Likewise.
24466         * dumpfile.h: Likewise.
24467         * dwarf2asm.c: Likewise.
24468         * dwarf2cfi.c: Likewise.
24469         * dwarf2out.c: Likewise.
24470         * emit-rtl.c: Likewise.
24471         * et-forest.c: Likewise.
24472         * except.c: Likewise.
24473         * explow.c: Likewise.
24474         * expmed.c: Likewise.
24475         * expr.c: Likewise.
24476         * final.c: Likewise.
24477         * fixed-value.c: Likewise.
24478         * fold-const.c: Likewise.
24479         * function.c: Likewise.
24480         * fwprop.c: Likewise.
24481         * gcc-plugin.h: Likewise.
24482         * gcse.c: Likewise.
24483         * generic-match-head.c: Likewise.
24484         * ggc-page.c: Likewise.
24485         * gimple-builder.c: Likewise.
24486         * gimple-expr.c: Likewise.
24487         * gimple-fold.c: Likewise.
24488         * gimple-iterator.c: Likewise.
24489         * gimple-low.c: Likewise.
24490         * gimple-match-head.c: Likewise.
24491         * gimple-pretty-print.c: Likewise.
24492         * gimple-ssa-isolate-paths.c: Likewise.
24493         * gimple-ssa-strength-reduction.c: Likewise.
24494         * gimple-streamer-in.c: Likewise.
24495         * gimple-streamer-out.c: Likewise.
24496         * gimple-streamer.h: Likewise.
24497         * gimple-walk.c: Likewise.
24498         * gimple.c: Likewise.
24499         * gimplify-me.c: Likewise.
24500         * gimplify.c: Likewise.
24501         * godump.c: Likewise.
24502         * graph.c: Likewise.
24503         * graphite-blocking.c: Likewise.
24504         * graphite-dependences.c: Likewise.
24505         * graphite-interchange.c: Likewise.
24506         * graphite-isl-ast-to-gimple.c: Likewise.
24507         * graphite-optimize-isl.c: Likewise.
24508         * graphite-poly.c: Likewise.
24509         * graphite-scop-detection.c: Likewise.
24510         * graphite-sese-to-poly.c: Likewise.
24511         * graphite.c: Likewise.
24512         * haifa-sched.c: Likewise.
24513         * hw-doloop.c: Likewise.
24514         * ifcvt.c: Likewise.
24515         * init-regs.c: Likewise.
24516         * input.c: Likewise.
24517         * internal-fn.c: Likewise.
24518         * ipa-chkp.c: Likewise.
24519         * ipa-comdats.c: Likewise.
24520         * ipa-cp.c: Likewise.
24521         * ipa-devirt.c: Likewise.
24522         * ipa-icf-gimple.c: Likewise.
24523         * ipa-icf.c: Likewise.
24524         * ipa-inline-analysis.c: Likewise.
24525         * ipa-inline-transform.c: Likewise.
24526         * ipa-inline.c: Likewise.
24527         * ipa-polymorphic-call.c: Likewise.
24528         * ipa-profile.c: Likewise.
24529         * ipa-prop.c: Likewise.
24530         * ipa-pure-const.c: Likewise.
24531         * ipa-ref.c: Likewise.
24532         * ipa-reference.c: Likewise.
24533         * ipa-split.c: Likewise.
24534         * ipa-utils.c: Likewise.
24535         * ipa-visibility.c: Likewise.
24536         * ipa.c: Likewise.
24537         * ira-build.c: Likewise.
24538         * ira-color.c: Likewise.
24539         * ira-conflicts.c: Likewise.
24540         * ira-costs.c: Likewise.
24541         * ira-emit.c: Likewise.
24542         * ira-lives.c: Likewise.
24543         * ira.c: Likewise.
24544         * jump.c: Likewise.
24545         * langhooks.c: Likewise.
24546         * lcm.c: Likewise.
24547         * loop-doloop.c: Likewise.
24548         * loop-init.c: Likewise.
24549         * loop-invariant.c: Likewise.
24550         * loop-iv.c: Likewise.
24551         * loop-unroll.c: Likewise.
24552         * lower-subreg.c: Likewise.
24553         * lra-assigns.c: Likewise.
24554         * lra-coalesce.c: Likewise.
24555         * lra-constraints.c: Likewise.
24556         * lra-eliminations.c: Likewise.
24557         * lra-lives.c: Likewise.
24558         * lra-remat.c: Likewise.
24559         * lra-spills.c: Likewise.
24560         * lra.c: Likewise.
24561         * lto-cgraph.c: Likewise.
24562         * lto-compress.c: Likewise.
24563         * lto-opts.c: Likewise.
24564         * lto-section-in.c: Likewise.
24565         * lto-section-out.c: Likewise.
24566         * lto-streamer-in.c: Likewise.
24567         * lto-streamer-out.c: Likewise.
24568         * lto-streamer.c: Likewise.
24569         * mcf.c: Likewise.
24570         * mode-switching.c: Likewise.
24571         * modulo-sched.c: Likewise.
24572         * omega.c: Likewise.
24573         * omp-low.c: Likewise.
24574         * optabs.c: Likewise.
24575         * opts-global.c: Likewise.
24576         * opts.h: Likewise.
24577         * passes.c: Likewise.
24578         * plugin.c: Likewise.
24579         * postreload-gcse.c: Likewise.
24580         * postreload.c: Likewise.
24581         * predict.c: Likewise.
24582         * pretty-print.h: Likewise.
24583         * print-rtl.c: Likewise.
24584         * print-tree.c: Likewise.
24585         * profile.c: Likewise.
24586         * real.c: Likewise.
24587         * realmpfr.c: Likewise.
24588         * recog.c: Likewise.
24589         * ree.c: Likewise.
24590         * reg-stack.c: Likewise.
24591         * regcprop.c: Likewise.
24592         * reginfo.c: Likewise.
24593         * regrename.c: Likewise.
24594         * regstat.c: Likewise.
24595         * reload.c: Likewise.
24596         * reload1.c: Likewise.
24597         * reorg.c: Likewise.
24598         * resource.c: Likewise.
24599         * rtl-chkp.c: Likewise.
24600         * rtl-error.c: Likewise.
24601         * rtlanal.c: Likewise.
24602         * rtlhooks.c: Likewise.
24603         * sanopt.c: Likewise.
24604         * sched-deps.c: Likewise.
24605         * sched-ebb.c: Likewise.
24606         * sched-rgn.c: Likewise.
24607         * sched-vis.c: Likewise.
24608         * sdbout.c: Likewise.
24609         * sel-sched-dump.c: Likewise.
24610         * sel-sched-ir.c: Likewise.
24611         * sel-sched.c: Likewise.
24612         * sese.c: Likewise.
24613         * shrink-wrap.c: Likewise.
24614         * simplify-rtx.c: Likewise.
24615         * stack-ptr-mod.c: Likewise.
24616         * statistics.c: Likewise.
24617         * stmt.c: Likewise.
24618         * stor-layout.c: Likewise.
24619         * store-motion.c: Likewise.
24620         * streamer-hooks.c: Likewise.
24621         * stringpool.c: Likewise.
24622         * symtab.c: Likewise.
24623         * target-globals.c: Likewise.
24624         * targhooks.c: Likewise.
24625         * toplev.c: Likewise.
24626         * tracer.c: Likewise.
24627         * trans-mem.c: Likewise.
24628         * tree-affine.c: Likewise.
24629         * tree-browser.c: Likewise.
24630         * tree-call-cdce.c: Likewise.
24631         * tree-cfg.c: Likewise.
24632         * tree-cfgcleanup.c: Likewise.
24633         * tree-chkp-opt.c: Likewise.
24634         * tree-chkp.c: Likewise.
24635         * tree-chrec.c: Likewise.
24636         * tree-complex.c: Likewise.
24637         * tree-data-ref.c: Likewise.
24638         * tree-dfa.c: Likewise.
24639         * tree-diagnostic.c: Likewise.
24640         * tree-dump.c: Likewise.
24641         * tree-eh.c: Likewise.
24642         * tree-emutls.c: Likewise.
24643         * tree-if-conv.c: Likewise.
24644         * tree-inline.c: Likewise.
24645         * tree-into-ssa.c: Likewise.
24646         * tree-iterator.c: Likewise.
24647         * tree-loop-distribution.c: Likewise.
24648         * tree-nested.c: Likewise.
24649         * tree-nrv.c: Likewise.
24650         * tree-object-size.c: Likewise.
24651         * tree-outof-ssa.c: Likewise.
24652         * tree-parloops.c: Likewise.
24653         * tree-phinodes.c: Likewise.
24654         * tree-predcom.c: Likewise.
24655         * tree-pretty-print.c: Likewise.
24656         * tree-profile.c: Likewise.
24657         * tree-scalar-evolution.c: Likewise.
24658         * tree-sra.c: Likewise.
24659         * tree-ssa-address.c: Likewise.
24660         * tree-ssa-alias.c: Likewise.
24661         * tree-ssa-ccp.c: Likewise.
24662         * tree-ssa-coalesce.c: Likewise.
24663         * tree-ssa-copy.c: Likewise.
24664         * tree-ssa-copyrename.c: Likewise.
24665         * tree-ssa-dce.c: Likewise.
24666         * tree-ssa-dom.c: Likewise.
24667         * tree-ssa-dse.c: Likewise.
24668         * tree-ssa-forwprop.c: Likewise.
24669         * tree-ssa-ifcombine.c: Likewise.
24670         * tree-ssa-live.c: Likewise.
24671         * tree-ssa-loop-ch.c: Likewise.
24672         * tree-ssa-loop-im.c: Likewise.
24673         * tree-ssa-loop-ivcanon.c: Likewise.
24674         * tree-ssa-loop-ivopts.c: Likewise.
24675         * tree-ssa-loop-manip.c: Likewise.
24676         * tree-ssa-loop-niter.c: Likewise.
24677         * tree-ssa-loop-prefetch.c: Likewise.
24678         * tree-ssa-loop-unswitch.c: Likewise.
24679         * tree-ssa-loop.c: Likewise.
24680         * tree-ssa-math-opts.c: Likewise.
24681         * tree-ssa-operands.c: Likewise.
24682         * tree-ssa-phiopt.c: Likewise.
24683         * tree-ssa-phiprop.c: Likewise.
24684         * tree-ssa-pre.c: Likewise.
24685         * tree-ssa-propagate.c: Likewise.
24686         * tree-ssa-reassoc.c: Likewise.
24687         * tree-ssa-sccvn.c: Likewise.
24688         * tree-ssa-scopedtables.c: Likewise.
24689         * tree-ssa-sink.c: Likewise.
24690         * tree-ssa-strlen.c: Likewise.
24691         * tree-ssa-structalias.c: Likewise.
24692         * tree-ssa-tail-merge.c: Likewise.
24693         * tree-ssa-ter.c: Likewise.
24694         * tree-ssa-threadedge.c: Likewise.
24695         * tree-ssa-threadupdate.c: Likewise.
24696         * tree-ssa-uncprop.c: Likewise.
24697         * tree-ssa-uninit.c: Likewise.
24698         * tree-ssa.c: Likewise.
24699         * tree-ssanames.c: Likewise.
24700         * tree-stdarg.c: Likewise.
24701         * tree-streamer-in.c: Likewise.
24702         * tree-streamer-out.c: Likewise.
24703         * tree-streamer.c: Likewise.
24704         * tree-switch-conversion.c: Likewise.
24705         * tree-tailcall.c: Likewise.
24706         * tree-vect-data-refs.c: Likewise.
24707         * tree-vect-generic.c: Likewise.
24708         * tree-vect-loop-manip.c: Likewise.
24709         * tree-vect-loop.c: Likewise.
24710         * tree-vect-patterns.c: Likewise.
24711         * tree-vect-slp.c: Likewise.
24712         * tree-vect-stmts.c: Likewise.
24713         * tree-vectorizer.c: Likewise.
24714         * tree-vrp.c: Likewise.
24715         * tree.c: Likewise.
24716         * tsan.c: Likewise.
24717         * ubsan.c: Likewise.
24718         * valtrack.c: Likewise.
24719         * value-prof.c: Likewise.
24720         * var-tracking.c: Likewise.
24721         * varasm.c: Likewise.
24722         * varpool.c: Likewise.
24723         * vmsdbgout.c: Likewise.
24724         * vtable-verify.c: Likewise.
24725         * web.c: Likewise.
24726         * wide-int.cc: Likewise.
24727         * xcoffout.c: Likewise.
24728         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24729         * common/common-targhooks.c: Likewise.
24730         * config/aarch64/aarch64-builtins.c: Likewise.
24731         * config/aarch64/aarch64.c: Likewise.
24732         * config/alpha/alpha.c: Likewise.
24733         * config/arc/arc.c: Likewise.
24734         * config/arm/aarch-common.c: Likewise.
24735         * config/arm/arm-builtins.c: Likewise.
24736         * config/arm/arm-c.c: Likewise.
24737         * config/arm/arm.c: Likewise.
24738         * config/avr/avr-c.c: Likewise.
24739         * config/avr/avr-log.c: Likewise.
24740         * config/avr/avr.c: Likewise.
24741         * config/bfin/bfin.c: Likewise.
24742         * config/c6x/c6x.c: Likewise.
24743         * config/cr16/cr16.c: Likewise.
24744         * config/cris/cris.c: Likewise.
24745         * config/darwin-c.c: Likewise.
24746         * config/darwin.c: Likewise.
24747         * config/default-c.c: Likewise.
24748         * config/epiphany/epiphany.c: Likewise.
24749         * config/epiphany/mode-switch-use.c: Likewise.
24750         * config/epiphany/resolve-sw-modes.c: Likewise.
24751         * config/fr30/fr30.c: Likewise.
24752         * config/frv/frv.c: Likewise.
24753         * config/ft32/ft32.c: Likewise.
24754         * config/glibc-c.c: Likewise.
24755         * config/h8300/h8300.c: Likewise.
24756         * config/i386/i386-c.c: Likewise.
24757         * config/i386/i386.c: Likewise.
24758         * config/i386/msformat-c.c: Likewise.
24759         * config/i386/winnt-cxx.c: Likewise.
24760         * config/i386/winnt-stubs.c: Likewise.
24761         * config/i386/winnt.c: Likewise.
24762         * config/ia64/ia64-c.c: Likewise.
24763         * config/ia64/ia64.c: Likewise.
24764         * config/iq2000/iq2000.c: Likewise.
24765         * config/lm32/lm32.c: Likewise.
24766         * config/m32c/m32c-pragma.c: Likewise.
24767         * config/m32c/m32c.c: Likewise.
24768         * config/m32r/m32r.c: Likewise.
24769         * config/m68k/m68k.c: Likewise.
24770         * config/mcore/mcore.c: Likewise.
24771         * config/mep/mep-pragma.c: Likewise.
24772         * config/mep/mep.c: Likewise.
24773         * config/microblaze/microblaze-c.c: Likewise.
24774         * config/microblaze/microblaze.c: Likewise.
24775         * config/mips/mips.c: Likewise.
24776         * config/mmix/mmix.c: Likewise.
24777         * config/mn10300/mn10300.c: Likewise.
24778         * config/moxie/moxie.c: Likewise.
24779         * config/msp430/msp430-c.c: Likewise.
24780         * config/msp430/msp430.c: Likewise.
24781         * config/nds32/nds32-cost.c: Likewise.
24782         * config/nds32/nds32-fp-as-gp.c: Likewise.
24783         * config/nds32/nds32-intrinsic.c: Likewise.
24784         * config/nds32/nds32-isr.c: Likewise.
24785         * config/nds32/nds32-md-auxiliary.c: Likewise.
24786         * config/nds32/nds32-memory-manipulation.c: Likewise.
24787         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24788         * config/nds32/nds32-predicates.c: Likewise.
24789         * config/nds32/nds32.c: Likewise.
24790         * config/nios2/nios2.c: Likewise.
24791         * config/nvptx/nvptx.c: Likewise.
24792         * config/pa/pa.c: Likewise.
24793         * config/pdp11/pdp11.c: Likewise.
24794         * config/rl78/rl78-c.c: Likewise.
24795         * config/rl78/rl78.c: Likewise.
24796         * config/rs6000/rs6000-c.c: Likewise.
24797         * config/rs6000/rs6000.c: Likewise.
24798         * config/rx/rx.c: Likewise.
24799         * config/s390/s390-c.c: Likewise.
24800         * config/s390/s390.c: Likewise.
24801         * config/sh/sh-c.c: Likewise.
24802         * config/sh/sh-mem.cc: Likewise.
24803         * config/sh/sh.c: Likewise.
24804         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24805         * config/sh/sh_treg_combine.cc: Likewise.
24806         * config/sol2-c.c: Likewise.
24807         * config/sol2-cxx.c: Likewise.
24808         * config/sol2-stubs.c: Likewise.
24809         * config/sol2.c: Likewise.
24810         * config/sparc/sparc-c.c: Likewise.
24811         * config/sparc/sparc.c: Likewise.
24812         * config/spu/spu-c.c: Likewise.
24813         * config/spu/spu.c: Likewise.
24814         * config/stormy16/stormy16.c: Likewise.
24815         * config/tilegx/mul-tables.c: Likewise.
24816         * config/tilegx/tilegx-c.c: Likewise.
24817         * config/tilegx/tilegx.c: Likewise.
24818         * config/tilepro/mul-tables.c: Likewise.
24819         * config/tilepro/tilepro-c.c: Likewise.
24820         * config/tilepro/tilepro.c: Likewise.
24821         * config/v850/v850-c.c: Likewise.
24822         * config/v850/v850.c: Likewise.
24823         * config/vax/vax.c: Likewise.
24824         * config/visium/visium.c: Likewise.
24825         * config/vms/vms-c.c: Likewise.
24826         * config/vms/vms.c: Likewise.
24827         * config/vxworks.c: Likewise.
24828         * config/winnt-c.c: Likewise.
24829         * config/xtensa/xtensa.c: Likewise.
24831 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
24833         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24834         function.
24835         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24837 2015-06-17  Richard Biener  <rguenther@suse.de>
24839         PR tree-optimization/66251
24840         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24841         stmts for SLP strided stores.
24843         Revert
24844         2015-05-22  Richard Biener  <rguenther@suse.de>
24846         PR tree-optimization/66251
24847         * tree-vect-stmts.c (vectorizable_conversion): Properly
24848         set STMT_VINFO_VEC_STMT even for the SLP case.
24850         2015-05-26  Michael Matz  <matz@suse.de>
24852         PR middle-end/66251
24853         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24854         STMT_VINFO_VEC_STMT, also with SLP.
24856 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
24858         PR target/56766
24859         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24860         (*avx_addsubv4df3_1s): Ditto.
24861         (*sse3_addsubv2df3_1): Ditto.
24862         (*sse3_addsubv2df3_1s): Ditto.
24863         (*avx_addsubv8sf3_1): Ditto.
24864         (*avx_addsubv8sf3_1s): Ditto.
24865         (*sse3_addsubv4sf3_1): Ditto.
24866         (*sse3_addsubv4sf3_1s): Ditto.
24868 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
24870         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24871         (SYSROOT_SUFFIX_SPEC): Update.
24872         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24873         (STARTFILE_PREFIX_SPEC): Update.
24874         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24875         (MULTILIB_REQUIRED): New.
24876         (MULTILIB_OSDIRNAMES): New.
24877         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24878         (MULTILIB_REQUIRED): New.
24879         (MULTILIB_OSDIRNAMES): New.
24881 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
24883         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24884         * config/aarch64/aarch64-options-extensions.def: Update "fP",
24885         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
24886         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24887         (AARCH64_FL_PAN): New.
24888         (AARCH64_FL_LOR): New.
24889         (AARCH64_FL_RDMA): New.
24890         (AARCH64_FL_FOR_ARCH8_1): New.
24891         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24892         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24894 2015-06-16  Martin Liska  <mliska@suse.cz>
24896         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24897         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24898         guard.
24900 2015-06-16  Richard Biener  <rguenther@suse.de>
24902         * tree-vect-stmts.c (vectorizable_store): Adjust.
24903         (vectorizable_load): Likewise.
24904         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24905         Simplify.
24906         (vect_create_data_ref_ptr): Likewise.
24907         (bump_vector_ptr): Adjust.
24909 2015-06-16  Richard Biener  <rguenther@suse.de>
24911         * tree-vect-stmts.c (vectorizable_load): Properly start loads
24912         with the first element if this is grouped loads.
24914 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
24916         * config/arm/arm-protos.h (struct tune_params): Rename
24917         log_op_non_sc to log_op_non_short_circuit, and rename enum
24918         values to expand SC to SHORT_CIRCUIT.
24919         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24920         to LOG_OP_NON_SHORT_CIRCUIT.
24921         (arm_fastmul_tune):Likewise
24922         (arm_strongarm_tune): Likewise.
24923         (arm_xscale_tune): Likewise.
24924         (arm_9e_tune): Likewise.
24925         (arm_marvell_pj4_tune): Likewise.
24926         (arm_v6t2_tune): Likewise.
24927         (arm_cortex_tune): Likewise.
24928         (arm_cortex_a8_tune): Likewise.
24929         (arm_cortex_a7_tune): Likewise.
24930         (arm_cortex_a15_tune): Likewise.
24931         (arm_cortex_a53_tune): Likewise.
24932         (arm_cortex_a57_tune): Likewise.
24933         (arm_xgene1_tune): Likewise.
24934         (arm_cortex_a5_tune): Likewise.
24935         (arm_cortex_a9_tune): Likewise.
24936         (arm_cortex_a12_tune): Likewise.
24937         (arm_v7m_tune): Likewise.
24938         (arm_cortex_m7_tune): Likewise.
24939         (arm_v6m_tune): Likewise.
24940         (arm_fa726te_tune): Likewise.
24942 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
24944         * altivec.md: Delete UNSPEC_VMLADDUHM.
24945         (mulv4si3_p8): New pattern.
24946         (mulv4si3): Use it for POWER8.
24947         (mulv8hi3): Use vmladduhm with zero addend.
24948         (altivec_vmladduhm): Descriptive RTL.
24950 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
24952         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24953         to use neon_move instead of mov_imm.
24954         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24955         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24957         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24958         aarch64_float_const_zero_rtx_p check before TFmode check.
24959         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24960         an fp zero.
24961         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
24962         code and attributes to match.  Change condition from register_operand
24963         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
24964         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
24965         to store2.
24967 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
24969         PR debug/66535
24970         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24971         there is no parent.
24973 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
24975         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24976         HOST_WIDE_INT parameter.
24978 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
24980         PR ipa/66181
24981         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24982         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24983         TYPE_NO_FORCE_BLK.
24984         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24986 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
24988         * rtl.h (classify_insn): Declare.
24989         * emit-rtl.c (classify_insn): Move to...
24990         * rtl.c: ...here and add generator support.
24991         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24992         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24993         * genemit.c (gen_emit_seq): New function.
24994         (gen_expand, gen_split): Use it.
24996 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
24998         * tree.c (make_vector_stat): Fix comment to state that the
24999         function returns a VECTOR_CST.
25001 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
25003         * gensupport.h (add_implicit_parallel): Declare.
25004         * genrecog.c (add_implicit_parallel): Move to...
25005         * gensupport.c (add_implicit_parallel): ...here.
25006         (process_one_cond_exec): Use it.
25007         * genemit.c (gen_insn): Likewise.
25009 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
25011         PR bootstrap/66448
25012         * passes.c (rest_of_decl_compilation): Do not register globals for
25013         early debug if they are declared in built-ins.
25015 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
25017         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25019 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25021         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25022         manually swapping.
25023         (noce_try_cmove_arith): Likewise.
25024         (noce_get_alt_condition): Likewise.
25026 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25028         * common/config/i386/i386-common.c
25029         (OPTION_MASK_ISA_MWAITX_SET): New.
25030         (ix86_handle_option): Handle mwaitx.
25031         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25032         (x86_64-*-*): Likewise.
25033         * config/i386/mwaitxintrin.h: New header.
25034         * config/i386/cpuid.h (bit_MWAITX):  Define.
25035         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25036         MWAITX support.
25037         * config/i386/i386.opt (mwaitx): New.
25038         * config/i386/i386-builtin-types.def
25039         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25040         * config/i386/i386-c.c: Define __MWAITX__ if needed.
25041         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25042         (PTA_MWAITX): New.
25043         (ix86_option_override_internal): Handle new option.
25044         (processor_alias_table): Added PTA_MWAITX.
25045         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25046         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25047         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25048         IX86_BUILTIN_MONITORX  built-ins.
25049         * config/i386/i386.h (TARGET_MWAITX): New.
25050         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25051         UNSPEC_MONITORX.
25052         (mwaitx):  New pattern.
25053         (monitorx_<mode>): New pattern.
25054         * config/i386/x86intrin.h: Include mwaitxintrin.h.
25055         * doc/extend.texi: Document monitorx and mwaitx builtins.
25056         * doc/invoke.texi: Document -mmwaitx option.
25058 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
25060         * emit-rtl.c (need_atomic_barrier_p): Mask model with
25061         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
25063 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25065         * dbxout.c (xcoff_debug_hooks): Provide a function for
25066         register_main_translation_unit hook.
25068 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25070         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25071         variants cases from switch.
25072         (rs6000_post_atomic_barrier): Same.
25073         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25074         (rs6000_expand_atomic_exchange): Same.
25075         (rs6000_expand_atomic_op): Same.
25076         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25077         SYNC variants cases from switch.
25078         (atomic_load): Same.
25079         (atomic_store): Same.
25081 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
25083         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25084         CONST_INT for goto.
25086 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
25088         PR bootstrap/66448
25089         * dwarf2out.c (check_die): Check for common duplicate attributes.
25090         (add_location_or_const_value_attribute): Do not add duplicate
25091         attributes.
25092         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25093         time around.
25094         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25095         (gen_type_die_with_usage): Call check_die.
25096         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25098 2015-06-11  Jason Merrill  <jason@redhat.com>
25100         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25101         dies.
25103 2015-06-11  Marek Polacek  <polacek@redhat.com>
25105         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25107 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
25109         PR bootstrap/66252
25110         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25111         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25112         (*addx_extend_sp32): Fix pasto.
25113         (*subx_extend): Rename into...
25114         (*subx_extend_sp32): ...this.
25115         (*adddi3_extend_sp32): Add earlyclobber.
25116         (*subdi3_insn_sp32): Likewise.
25117         (*subdi3_extend_sp32): Likewise.
25118         (*and_not_di_sp32): Likewise.
25119         (*or_not_di_sp32): Likewise.
25120         (*xor_not_di_sp32): Likewise.
25121         (*negdi2_sp32): Likewise.
25122         (*one_cmpldi2_sp32): Likewise.
25124 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
25126         * debug.h (struct gcc_debug_hooks): Add a
25127         register_main_translation_unit hook.
25128         * debug.c (do_nothing_debug_hooks): Provide a function for this
25129         new hook.
25130         * dbxout.c (dbx_debug_hooks): Likewise.
25131         * sdbout.c (sdb_debug_hooks): Likewise.
25132         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25133         * dwarf2out.c (main_translation_unit): New global variable.
25134         (dwarf2out_register_main_translation_unit): New function
25135         implementing the new hook.
25136         (dwarf2_debug_hooks): Assign
25137         dwarf2out_register_main_translation_unit to this new hook.
25138         (dwarf2out_init): Associate any main translation unit to
25139         comp_unit_die ().
25141 2015-06-11  Marek Polacek  <polacek@redhat.com>
25143         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25145 2015-06-11  Marek Polacek  <polacek@redhat.com>
25147         * match.pd: Use single_use throughout.
25149 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25151         * config/arm/arm.c (arm_option_params_internal): When optimising
25152         for speed set max_insns_skipped when arm_restrict_it.
25154 2015-06-11  Christian Bruel  <christian.bruel@st.com>
25156         PR target/52144
25157         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25158          macros in ...
25159         (arm_cpu_builtins): New function.
25160         (arm_pragma_target_parse): Call arm_cpu_builtins.
25161         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25162         (arm_register_target_pragmas): Likewise.
25163         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25164          Call arm_register_target_pragmas.
25165         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25166         (arm_pragma_target_parse): Likewise.
25168 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
25170         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25171         of the second operand.
25173 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
25175         PR target/66473
25176         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25177         to prepare mask operand for AVX512 modes.
25179 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
25181         PR target/66474
25182         * doc/md.texi (Machine Constraints): Document that on the PowerPC
25183         if you use a constraint that targets a VSX register, you must use
25184         %x<n> in the template.
25186 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
25188         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25189         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25190         (define_insn "trap"): New definition.
25192 2015-06-10  Richard Biener  <rguenther@suse.de>
25194         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25195         out from ...
25196         (vect_supported_load_permutation_p): ... here.  Handle
25197         supportable permutations in reductions.
25198         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25199         for vectorizing strided group loads.
25201 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
25203         PR target/66470
25204         * config/i386/i386.c (ix86_split_long_move): For collisions
25205         involving direct tls segment refs, move the UNSPEC_TP possibly
25206         wrapped in ZERO_EXTEND out of the address for lea, to each of
25207         the memory loads.
25209 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25211         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25212         dmb sy. Adjust tabs.
25214 2015-06-10  Tom de Vries  <tom@codesourcery.com>
25216         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25218 2015-06-10  Martin Liska  <mliska@suse.cz>
25220         PR bootstrap/66471
25221         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25222         all enum values in mem_alloc_origin.
25223         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25224         name.
25225         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25226         * bitmap.c (bitmap_register): Likewise.
25227         (dump_bitmap_statistics): Likewise.
25228         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25229         (ggc_record_overhead): Likewise.
25230         * hash-map.h: Likewise.
25231         * hash-set.h: Likewise.
25232         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25233         * hash-table.h: Likewise.
25234         * vec.c (vec_prefix::register_overhead): Likewise.
25235         (vec_prefix::release_overhead): Likewise.
25236         (dump_vec_loc_statistics): Likewise.
25238 2015-06-09  Christian Bruel  <christian.bruel@st.com>
25240         PR target/52144
25241         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25242         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25243         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25244         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25245         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25246         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25247         (arm_valid_target_attribute_p): Likewise.
25248         (arm_set_current_function, arm_can_inline_p): Likewise.
25249         (arm_valid_target_attribute_rec): Likewise.
25250         (arm_previous_fndecl): New variable.
25251         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25252         (TARGET_CAN_INLINE_P): Define.
25253         (arm_asm_trampoline_template): Emit mode.
25254         (arm_file_start): Don't set unified syntax.
25255         (arm_declare_function_name): Set unified syntax and mode.
25256         (arm_option_override): Init target_option_default_node.
25257         and target_option_current_node.
25258         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25259         (*call_symbol): Likewise.
25260         * doc/extend.texi: Document ARM/Thumb target attribute.
25261         * doc/invoke.texi: Likewise.
25263 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25265         Revert:
25266         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25267         PR rtl-optimization/64164
25268         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25269         * tree-ssa-copyrename.c: Removed.
25270         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25271         -ftree-coalesce-vars.
25272         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25273         * common.opt (ftree-copyrename): Ignore.
25274         (ftree-coalesce-inlined-vars): Likewise.
25275         * doc/invoke.texi: Remove the ignored options above.
25276         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25277         * tree-ssa-coalesce.h: ... here.
25278         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25279         headers required by it.
25280         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25281         across variables when flag_tree_coalesce_vars.  Check register
25282         use and promoted modes to allow coalescing.  Moved to
25283         tree-ssa-coalesce.c.
25284         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25285         with its member functions to tree-ssa-coalesce.c.
25286         (var_map_base_init): Likewise.  Renamed to
25287         compute_samebase_partition_bases.
25288         (partition_view_normal): Drop want_bases parameter.
25289         (partition_view_bitmap): Likewise.
25290         * tree-ssa-live.h: Adjust declarations.
25291         * tree-ssa-coalesce.c: Include explow.h.
25292         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25293         default defs at the entry point.
25294         (dump_part_var_map): New.
25295         (compute_optimized_partition_bases): New, called by...
25296         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25297         of compute_samebase_partition_bases.  Adjust.
25298         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25299         * cfgexpand.c (leader_merge): New.
25300         (get_rtl_for_parm_ssa_default_def): New.
25301         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25302         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25303         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25304         redundant MEM attr setting.
25305         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25306         from...
25307         (expand_one_stack_var): ... this.  New wrapper to check and
25308         skip already expanded SSA partitions.
25309         (record_alignment_for_reg_var): New, factored out of...
25310         (expand_one_var): ... this.
25311         (expand_one_ssa_partition): New.
25312         (adjust_one_expanded_partition_var): New.
25313         (expand_one_register_var): Check and skip already expanded SSA
25314         partitions.
25315         (expand_used_vars): Don't create DECLs for anonymous SSA
25316         names.  Expand all SSA partitions, then adjust all SSA names.
25317         (pass::execute): Replace the loops that set
25318         SA.partition_to_pseudo from partition leaders and cleared
25319         DECL_RTL for multi-location variables, and that which used to
25320         rename vars and set attrs, with one that clears DECL_RTL and
25321         checks that PARMs and RESULTs default_defs match DECL_RTL.
25322         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25323         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25324         * explow.c (promote_ssa_mode): New.
25325         * explow.h (promote_ssa_mode): Declare.
25326         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25327         * function.c: Include cfgexpand.h.
25328         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25329         (use_register_for_parm_decl): Wrapper for the above to
25330         special-case the result_ptr.
25331         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25332         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25333         multiple locations.
25334         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25335         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25336         (assign_parm_setup_block): Prefer SSA-assigned location.
25337         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25338         if stack_parm is NULL.
25339         (assign_parm_setup_stack): Prefer SSA-assigned location.
25340         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25341         rtl before testing for pointer bounds.  Special-case result_ptr.
25342         (expand_function_start): Maybe reset DECL_RTL of result.
25343         Prefer SSA-assigned location for result and static chain.
25344         Factor out DECL_RESULT and SET_DECL_RTL.
25345         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25346         anonymous SSA names.  Use promote_ssa_mode.
25347         (get_temp_reg): Likewise.
25348         (remove_ssa_form): Adjust.
25349         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25350         and get its reg_usage for reg invalidation.
25351         (compute_bb_dataflow): Pass it insn.
25352         (emit_notes_in_bb): Likewise.
25353         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25354         fail assert on conversion between unsigned types.
25356 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25358         PR tree-optimization/65460
25359         * omp-low.c (expand_omp_target): Set parallelized_function on
25360         cgraph_node for child_fn.
25362 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25364         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25365         parallelized_function before add_new_function.
25367 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
25369         * gcc-plugin.h: Move decls to plugin.h and include it.
25370         * plugin.h: Relocate decls from gcc-plugin.h
25371         * ggc-page.c: Include required header files.
25372         * passes.c: Likewise.
25373         * cgraphunit.c: Likewise.
25375 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25377         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25379 2015-06-09  Jason Merrill  <jason@redhat.com>
25381         PR bootstrap/66448
25382         * toplev.c (check_global_declaration): Don't warn about a clone.
25384 2015-06-09  Marek Polacek  <polacek@redhat.com>
25386         PR tree-optimization/66299
25387         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25388         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25389         patterns.
25391 2015-06-09  Richard Biener  <rguenther@suse.de>
25393         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25394         (vect_analyze_slp_instance): Instead do not falsely drop
25395         load permutations.
25397 2015-06-09  Richard Biener  <rguenther@suse.de>
25399         PR middle-end/66423
25400         * match.pd: Handle A % (unsigned)(1 << B).
25402 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
25404         * varasm.c (output_object_block_htab): Remove.
25405         (output_object_block_compare): New.
25406         (output_object_blocks): Sort named object_blocks before outputting
25407         them.
25409 2015-06-09  Richard Biener  <rguenther@suse.de>
25411         PR tree-optimization/66419
25412         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25413         consider GROUP_GAP when detecting a perfect subchain.
25415 2015-06-09  Nick Clifton  <nickc@redhat.com>
25417         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25418         place read only data in the .frodata section.
25420 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
25422         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25423         (atomic_store<mode>): Likewise.
25425 2015-06-09  Richard Biener  <rguenther@suse.de>
25427         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25429 2015-06-09  Richard Biener  <rguenther@suse.de>
25431         PR middle-end/66413
25432         * tree-inline.c (insert_init_debug_bind): Unshare value.
25434 2015-06-09  Richard Biener  <rguenther@suse.de>
25436         PR tree-optimization/66396
25437         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25438         Rename virtual operands.
25440 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25442         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25443         always return false.
25445 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25447         PR rtl-optimization/64164
25448         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25449         * tree-ssa-copyrename.c: Removed.
25450         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25451         -ftree-coalesce-vars.
25452         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25453         * common.opt (ftree-copyrename): Ignore.
25454         (ftree-coalesce-inlined-vars): Likewise.
25455         * doc/invoke.texi: Remove the ignored options above.
25456         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25457         * tree-ssa-coalesce.h: ... here.
25458         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25459         headers required by it.
25460         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25461         across variables when flag_tree_coalesce_vars.  Check register
25462         use and promoted modes to allow coalescing.  Moved to
25463         tree-ssa-coalesce.c.
25464         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25465         with its member functions to tree-ssa-coalesce.c.
25466         (var_map_base_init): Likewise.  Renamed to
25467         compute_samebase_partition_bases.
25468         (partition_view_normal): Drop want_bases parameter.
25469         (partition_view_bitmap): Likewise.
25470         * tree-ssa-live.h: Adjust declarations.
25471         * tree-ssa-coalesce.c: Include explow.h.
25472         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25473         default defs at the entry point.
25474         (dump_part_var_map): New.
25475         (compute_optimized_partition_bases): New, called by...
25476         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25477         of compute_samebase_partition_bases.  Adjust.
25478         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25479         * cfgexpand.c (leader_merge): New.
25480         (get_rtl_for_parm_ssa_default_def): New.
25481         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25482         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25483         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25484         redundant MEM attr setting.
25485         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25486         from...
25487         (expand_one_stack_var): ... this.  New wrapper to check and
25488         skip already expanded SSA partitions.
25489         (record_alignment_for_reg_var): New, factored out of...
25490         (expand_one_var): ... this.
25491         (expand_one_ssa_partition): New.
25492         (adjust_one_expanded_partition_var): New.
25493         (expand_one_register_var): Check and skip already expanded SSA
25494         partitions.
25495         (expand_used_vars): Don't create DECLs for anonymous SSA
25496         names.  Expand all SSA partitions, then adjust all SSA names.
25497         (pass::execute): Replace the loops that set
25498         SA.partition_to_pseudo from partition leaders and cleared
25499         DECL_RTL for multi-location variables, and that which used to
25500         rename vars and set attrs, with one that clears DECL_RTL and
25501         checks that PARMs and RESULTs default_defs match DECL_RTL.
25502         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25503         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25504         * explow.c (promote_ssa_mode): New.
25505         * explow.h (promote_ssa_mode): Declare.
25506         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25507         * function.c: Include cfgexpand.h.
25508         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25509         (use_register_for_parm_decl): Wrapper for the above to
25510         special-case the result_ptr.
25511         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25512         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25513         multiple locations.
25514         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25515         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25516         (assign_parm_setup_block): Prefer SSA-assigned location.
25517         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25518         if stack_parm is NULL.
25519         (assign_parm_setup_stack): Prefer SSA-assigned location.
25520         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25521         rtl before testing for pointer bounds.  Special-case result_ptr.
25522         (expand_function_start): Maybe reset DECL_RTL of result.
25523         Prefer SSA-assigned location for result and static chain.
25524         Factor out DECL_RESULT and SET_DECL_RTL.
25525         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25526         anonymous SSA names.  Use promote_ssa_mode.
25527         (get_temp_reg): Likewise.
25528         (remove_ssa_form): Adjust.
25529         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25530         and get its reg_usage for reg invalidation.
25531         (compute_bb_dataflow): Pass it insn.
25532         (emit_notes_in_bb): Likewise.
25533         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25534         fail assert on conversion between unsigned types.
25536 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25538         PR debug/58315
25539         * tree-inline.c (reset_debug_binding): New.
25540         (reset_debug_bindings): Likewise.
25541         (expand_call_inline): Call it.
25543 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25545         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25546         TYPE_STRING_FLAG.
25548 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25550         * lto-streamer-out.c (lto_output_location): Stream
25551         reserved locations correctly.
25552         * lto-streamer-in.c (lto_output_location): Likewise.
25554 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
25556         * coretypes.h: Include hash-table.h and hash-set.h for host files.
25557         * ggc.h: Don't include statistics.h>
25558         * hash-map.h: Remove all includes.
25559         * hash-set.h: Likewise.
25560         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25561         the include list. Remove <new>.
25562         * inchash.h: Remove all includes.
25563         * mem-stats.h: Likewise.
25564         * vec.h: No special processing for generators or ggc.
25565         * alias.c : Adjust include files.
25566         * alloc-pool.c : Likewise.
25567         * alloc-pool.h : Likewise.
25568         * asan.c : Likewise.
25569         * attribs.c : Likewise.
25570         * auto-inc-dec.c : Likewise.
25571         * auto-profile.c : Likewise.
25572         * bb-reorder.c : Likewise.
25573         * bitmap.c : Likewise.
25574         * bitmap.h : Likewise.
25575         * bt-load.c : Likewise.
25576         * builtins.c : Likewise.
25577         * caller-save.c : Likewise.
25578         * calls.c : Likewise.
25579         * ccmp.c : Likewise.
25580         * cfg.c : Likewise.
25581         * cfganal.c : Likewise.
25582         * cfgbuild.c : Likewise.
25583         * cfgcleanup.c : Likewise.
25584         * cfgexpand.c : Likewise.
25585         * cfghooks.c : Likewise.
25586         * cfgloop.c : Likewise.
25587         * cfgloop.h : Likewise.
25588         * cfgloopanal.c : Likewise.
25589         * cfgloopmanip.c : Likewise.
25590         * cfgrtl.c : Likewise.
25591         * cgraph.c : Likewise.
25592         * cgraphbuild.c : Likewise.
25593         * cgraphclones.c : Likewise.
25594         * cgraphunit.c : Likewise.
25595         * cilk-common.c : Likewise.
25596         * combine-stack-adj.c : Likewise.
25597         * combine.c : Likewise.
25598         * compare-elim.c : Likewise.
25599         * context.c : Likewise.
25600         * convert.c : Likewise.
25601         * coverage.c : Likewise.
25602         * cppbuiltin.c : Likewise.
25603         * cprop.c : Likewise.
25604         * cse.c : Likewise.
25605         * cselib.c : Likewise.
25606         * data-streamer-in.c : Likewise.
25607         * data-streamer-out.c : Likewise.
25608         * data-streamer.c : Likewise.
25609         * data-streamer.h : Likewise.
25610         * dbxout.c : Likewise.
25611         * dce.c : Likewise.
25612         * ddg.c : Likewise.
25613         * debug.c : Likewise.
25614         * df-core.c : Likewise.
25615         * df-problems.c : Likewise.
25616         * df-scan.c : Likewise.
25617         * df.h : Likewise.
25618         * dfp.c : Likewise.
25619         * dojump.c : Likewise.
25620         * dominance.c : Likewise.
25621         * domwalk.c : Likewise.
25622         * double-int.c : Likewise.
25623         * dse.c : Likewise.
25624         * dumpfile.c : Likewise.
25625         * dwarf2asm.c : Likewise.
25626         * dwarf2cfi.c : Likewise.
25627         * dwarf2out.c : Likewise.
25628         * emit-rtl.c : Likewise.
25629         * et-forest.c : Likewise.
25630         * except.c : Likewise.
25631         * except.h : Likewise.
25632         * explow.c : Likewise.
25633         * expmed.c : Likewise.
25634         * expr.c : Likewise.
25635         * final.c : Likewise.
25636         * fixed-value.c : Likewise.
25637         * fold-const.c : Likewise.
25638         * function.c : Likewise.
25639         * fwprop.c : Likewise.
25640         * gcc-plugin.h : Likewise.
25641         * gcc.c : Likewise.
25642         * gcse-common.c : Likewise.
25643         * gcse.c : Likewise.
25644         * genattrtab.c : Likewise.
25645         * genautomata.c : Likewise.
25646         * genconditions.c : Likewise.
25647         * genemit.c : Likewise.
25648         * generic-match-head.c : Likewise.
25649         * genextract.c : Likewise.
25650         * gengtype-state.c : Likewise.
25651         * gengtype.c : Likewise.
25652         * genhooks.c : Likewise.
25653         * genmatch.c : Likewise.
25654         * genmodes.c : Likewise.
25655         * genrecog.c : Likewise.
25656         * gensupport.c : Likewise.
25657         * ggc-common.c : Likewise.
25658         * ggc-internal.h : Likewise.
25659         * ggc-none.c : Likewise.
25660         * ggc-page.c : Likewise.
25661         * gimple-builder.c : Likewise.
25662         * gimple-expr.c : Likewise.
25663         * gimple-fold.c : Likewise.
25664         * gimple-iterator.c : Likewise.
25665         * gimple-low.c : Likewise.
25666         * gimple-match-head.c : Likewise.
25667         * gimple-pretty-print.c : Likewise.
25668         * gimple-ssa-isolate-paths.c : Likewise.
25669         * gimple-ssa-strength-reduction.c : Likewise.
25670         * gimple-ssa.h : Likewise.
25671         * gimple-streamer-in.c : Likewise.
25672         * gimple-streamer-out.c : Likewise.
25673         * gimple-streamer.h : Likewise.
25674         * gimple-walk.c : Likewise.
25675         * gimple.c : Likewise.
25676         * gimplify-me.c : Likewise.
25677         * gimplify.c : Likewise.
25678         * godump.c : Likewise.
25679         * graph.c : Likewise.
25680         * graphds.c : Likewise.
25681         * graphite-blocking.c : Likewise.
25682         * graphite-dependences.c : Likewise.
25683         * graphite-interchange.c : Likewise.
25684         * graphite-isl-ast-to-gimple.c : Likewise.
25685         * graphite-optimize-isl.c : Likewise.
25686         * graphite-poly.c : Likewise.
25687         * graphite-scop-detection.c : Likewise.
25688         * graphite-sese-to-poly.c : Likewise.
25689         * graphite.c : Likewise.
25690         * haifa-sched.c : Likewise.
25691         * hard-reg-set.h : Likewise.
25692         * hw-doloop.c : Likewise.
25693         * ifcvt.c : Likewise.
25694         * inchash.c : Likewise.
25695         * incpath.c : Likewise.
25696         * init-regs.c : Likewise.
25697         * input.c : Likewise.
25698         * internal-fn.c : Likewise.
25699         * ipa-chkp.c : Likewise.
25700         * ipa-comdats.c : Likewise.
25701         * ipa-cp.c : Likewise.
25702         * ipa-devirt.c : Likewise.
25703         * ipa-icf-gimple.c : Likewise.
25704         * ipa-icf.c : Likewise.
25705         * ipa-inline-analysis.c : Likewise.
25706         * ipa-inline-transform.c : Likewise.
25707         * ipa-inline.c : Likewise.
25708         * ipa-polymorphic-call.c : Likewise.
25709         * ipa-profile.c : Likewise.
25710         * ipa-prop.c : Likewise.
25711         * ipa-pure-const.c : Likewise.
25712         * ipa-ref.c : Likewise.
25713         * ipa-reference.c : Likewise.
25714         * ipa-split.c : Likewise.
25715         * ipa-utils.c : Likewise.
25716         * ipa-visibility.c : Likewise.
25717         * ipa.c : Likewise.
25718         * ira-build.c : Likewise.
25719         * ira-color.c : Likewise.
25720         * ira-conflicts.c : Likewise.
25721         * ira-costs.c : Likewise.
25722         * ira-emit.c : Likewise.
25723         * ira-lives.c : Likewise.
25724         * ira.c : Likewise.
25725         * jump.c : Likewise.
25726         * langhooks.c : Likewise.
25727         * lcm.c : Likewise.
25728         * libfuncs.h : Likewise.
25729         * lists.c : Likewise.
25730         * loop-doloop.c : Likewise.
25731         * loop-init.c : Likewise.
25732         * loop-invariant.c : Likewise.
25733         * loop-iv.c : Likewise.
25734         * loop-unroll.c : Likewise.
25735         * lower-subreg.c : Likewise.
25736         * lra-assigns.c : Likewise.
25737         * lra-coalesce.c : Likewise.
25738         * lra-constraints.c : Likewise.
25739         * lra-eliminations.c : Likewise.
25740         * lra-lives.c : Likewise.
25741         * lra-remat.c : Likewise.
25742         * lra-spills.c : Likewise.
25743         * lra.c : Likewise.
25744         * lto-cgraph.c : Likewise.
25745         * lto-compress.c : Likewise.
25746         * lto-opts.c : Likewise.
25747         * lto-section-in.c : Likewise.
25748         * lto-section-out.c : Likewise.
25749         * lto-streamer-in.c : Likewise.
25750         * lto-streamer-out.c : Likewise.
25751         * lto-streamer.c : Likewise.
25752         * lto-streamer.h : Likewise.
25753         * mcf.c : Likewise.
25754         * mode-switching.c : Likewise.
25755         * modulo-sched.c : Likewise.
25756         * omega.c : Likewise.
25757         * omp-low.c : Likewise.
25758         * optabs.c : Likewise.
25759         * opts-global.c : Likewise.
25760         * opts.h : Likewise.
25761         * passes.c : Likewise.
25762         * plugin.c : Likewise.
25763         * postreload-gcse.c : Likewise.
25764         * postreload.c : Likewise.
25765         * predict.c : Likewise.
25766         * print-rtl.c : Likewise.
25767         * print-tree.c : Likewise.
25768         * profile.c : Likewise.
25769         * read-md.c : Likewise.
25770         * read-md.h : Likewise.
25771         * read-rtl.c : Likewise.
25772         * real.c : Likewise.
25773         * realmpfr.c : Likewise.
25774         * recog.c : Likewise.
25775         * ree.c : Likewise.
25776         * reg-stack.c : Likewise.
25777         * regcprop.c : Likewise.
25778         * reginfo.c : Likewise.
25779         * regrename.c : Likewise.
25780         * regstat.c : Likewise.
25781         * reload.c : Likewise.
25782         * reload1.c : Likewise.
25783         * reorg.c : Likewise.
25784         * resource.c : Likewise.
25785         * rtl-chkp.c : Likewise.
25786         * rtl.c : Likewise.
25787         * rtl.h : Likewise.
25788         * rtlanal.c : Likewise.
25789         * rtlhash.c : Likewise.
25790         * rtlhash.h : Likewise.
25791         * rtlhooks.c : Likewise.
25792         * sanopt.c : Likewise.
25793         * sched-deps.c : Likewise.
25794         * sched-ebb.c : Likewise.
25795         * sched-rgn.c : Likewise.
25796         * sched-vis.c : Likewise.
25797         * sdbout.c : Likewise.
25798         * sel-sched-dump.c : Likewise.
25799         * sel-sched-ir.c : Likewise.
25800         * sel-sched-ir.h : Likewise.
25801         * sel-sched.c : Likewise.
25802         * sese.c : Likewise.
25803         * shrink-wrap.c : Likewise.
25804         * shrink-wrap.h : Likewise.
25805         * simplify-rtx.c : Likewise.
25806         * stack-ptr-mod.c : Likewise.
25807         * statistics.c : Likewise.
25808         * stmt.c : Likewise.
25809         * stor-layout.c : Likewise.
25810         * store-motion.c : Likewise.
25811         * stringpool.c : Likewise.
25812         * symtab.c : Likewise.
25813         * target-globals.c : Likewise.
25814         * targhooks.c : Likewise.
25815         * tlink.c : Likewise.
25816         * toplev.c : Likewise.
25817         * tracer.c : Likewise.
25818         * trans-mem.c : Likewise.
25819         * tree-affine.c : Likewise.
25820         * tree-affine.h : Likewise.
25821         * tree-browser.c : Likewise.
25822         * tree-call-cdce.c : Likewise.
25823         * tree-cfg.c : Likewise.
25824         * tree-cfgcleanup.c : Likewise.
25825         * tree-chkp-opt.c : Likewise.
25826         * tree-chkp.c : Likewise.
25827         * tree-chrec.c : Likewise.
25828         * tree-complex.c : Likewise.
25829         * tree-data-ref.c : Likewise.
25830         * tree-dfa.c : Likewise.
25831         * tree-diagnostic.c : Likewise.
25832         * tree-dump.c : Likewise.
25833         * tree-eh.c : Likewise.
25834         * tree-eh.h : Likewise.
25835         * tree-emutls.c : Likewise.
25836         * tree-hasher.h : Likewise.
25837         * tree-if-conv.c : Likewise.
25838         * tree-inline.c : Likewise.
25839         * tree-inline.h : Likewise.
25840         * tree-into-ssa.c : Likewise.
25841         * tree-iterator.c : Likewise.
25842         * tree-loop-distribution.c : Likewise.
25843         * tree-nested.c : Likewise.
25844         * tree-nrv.c : Likewise.
25845         * tree-object-size.c : Likewise.
25846         * tree-outof-ssa.c : Likewise.
25847         * tree-parloops.c : Likewise.
25848         * tree-phinodes.c : Likewise.
25849         * tree-predcom.c : Likewise.
25850         * tree-pretty-print.c : Likewise.
25851         * tree-profile.c : Likewise.
25852         * tree-scalar-evolution.c : Likewise.
25853         * tree-sra.c : Likewise.
25854         * tree-ssa-address.c : Likewise.
25855         * tree-ssa-alias.c : Likewise.
25856         * tree-ssa-ccp.c : Likewise.
25857         * tree-ssa-coalesce.c : Likewise.
25858         * tree-ssa-copy.c : Likewise.
25859         * tree-ssa-copyrename.c : Likewise.
25860         * tree-ssa-dce.c : Likewise.
25861         * tree-ssa-dom.c : Likewise.
25862         * tree-ssa-dse.c : Likewise.
25863         * tree-ssa-forwprop.c : Likewise.
25864         * tree-ssa-ifcombine.c : Likewise.
25865         * tree-ssa-live.c : Likewise.
25866         * tree-ssa-loop-ch.c : Likewise.
25867         * tree-ssa-loop-im.c : Likewise.
25868         * tree-ssa-loop-ivcanon.c : Likewise.
25869         * tree-ssa-loop-ivopts.c : Likewise.
25870         * tree-ssa-loop-manip.c : Likewise.
25871         * tree-ssa-loop-niter.c : Likewise.
25872         * tree-ssa-loop-prefetch.c : Likewise.
25873         * tree-ssa-loop-unswitch.c : Likewise.
25874         * tree-ssa-loop.c : Likewise.
25875         * tree-ssa-math-opts.c : Likewise.
25876         * tree-ssa-operands.c : Likewise.
25877         * tree-ssa-phiopt.c : Likewise.
25878         * tree-ssa-phiprop.c : Likewise.
25879         * tree-ssa-pre.c : Likewise.
25880         * tree-ssa-propagate.c : Likewise.
25881         * tree-ssa-reassoc.c : Likewise.
25882         * tree-ssa-sccvn.c : Likewise.
25883         * tree-ssa-scopedtables.c : Likewise.
25884         * tree-ssa-sink.c : Likewise.
25885         * tree-ssa-strlen.c : Likewise.
25886         * tree-ssa-structalias.c : Likewise.
25887         * tree-ssa-tail-merge.c : Likewise.
25888         * tree-ssa-ter.c : Likewise.
25889         * tree-ssa-threadedge.c : Likewise.
25890         * tree-ssa-threadupdate.c : Likewise.
25891         * tree-ssa-uncprop.c : Likewise.
25892         * tree-ssa-uninit.c : Likewise.
25893         * tree-ssa.c : Likewise.
25894         * tree-ssanames.c : Likewise.
25895         * tree-stdarg.c : Likewise.
25896         * tree-streamer-in.c : Likewise.
25897         * tree-streamer-out.c : Likewise.
25898         * tree-streamer.c : Likewise.
25899         * tree-streamer.h : Likewise.
25900         * tree-switch-conversion.c : Likewise.
25901         * tree-tailcall.c : Likewise.
25902         * tree-vect-data-refs.c : Likewise.
25903         * tree-vect-generic.c : Likewise.
25904         * tree-vect-loop-manip.c : Likewise.
25905         * tree-vect-loop.c : Likewise.
25906         * tree-vect-patterns.c : Likewise.
25907         * tree-vect-slp.c : Likewise.
25908         * tree-vect-stmts.c : Likewise.
25909         * tree-vectorizer.c : Likewise.
25910         * tree-vectorizer.h : Likewise.
25911         * tree-vrp.c : Likewise.
25912         * tree.c : Likewise.
25913         * tsan.c : Likewise.
25914         * ubsan.c : Likewise.
25915         * valtrack.c : Likewise.
25916         * valtrack.h : Likewise.
25917         * value-prof.c : Likewise.
25918         * var-tracking.c : Likewise.
25919         * varasm.c : Likewise.
25920         * varpool.c : Likewise.
25921         * vec.c: Likewise.
25922         * vmsdbgout.c : Likewise.
25923         * vtable-verify.c : Likewise.
25924         * vtable-verify.h : Likewise.
25925         * web.c : Likewise.
25926         * wide-int.cc : Likewise.
25927         * xcoffout.c : Likewise.
25928         * config/aarch64/aarch64-builtins.c : Likewise.
25929         * config/aarch64/aarch64.c : Likewise.
25930         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25931         * config/alpha/alpha.c : Likewise.
25932         * config/arc/arc.c : Likewise.
25933         * config/arm/aarch-common.c : Likewise.
25934         * config/arm/arm-builtins.c : Likewise.
25935         * config/arm/arm-c.c : Likewise.
25936         * config/arm/arm.c : Likewise.
25937         * config/avr/avr-c.c : Likewise.
25938         * config/avr/avr-log.c : Likewise.
25939         * config/avr/avr.c : Likewise.
25940         * config/bfin/bfin.c : Likewise.
25941         * config/c6x/c6x.c : Likewise.
25942         * config/cr16/cr16.c : Likewise.
25943         * config/cris/cris.c : Likewise.
25944         * config/darwin-c.c : Likewise.
25945         * config/darwin.c : Likewise.
25946         * config/default-c.c : Likewise.
25947         * config/epiphany/epiphany.c : Likewise.
25948         * config/epiphany/mode-switch-use.c : Likewise.
25949         * config/epiphany/resolve-sw-modes.c : Likewise.
25950         * config/fr30/fr30.c : Likewise.
25951         * config/frv/frv.c : Likewise.
25952         * config/ft32/ft32.c : Likewise.
25953         * config/glibc-c.c : Likewise.
25954         * config/h8300/h8300.c : Likewise.
25955         * config/i386/i386-c.c : Likewise.
25956         * config/i386/i386.c : Likewise.
25957         * config/i386/msformat-c.c : Likewise.
25958         * config/i386/winnt-cxx.c : Likewise.
25959         * config/i386/winnt-stubs.c : Likewise.
25960         * config/i386/winnt.c : Likewise.
25961         * config/ia64/ia64-c.c : Likewise.
25962         * config/ia64/ia64.c : Likewise.
25963         * config/iq2000/iq2000.c : Likewise.
25964         * config/lm32/lm32.c : Likewise.
25965         * config/m32c/m32c-pragma.c : Likewise.
25966         * config/m32c/m32c.c : Likewise.
25967         * config/m32r/m32r.c : Likewise.
25968         * config/m68k/m68k.c : Likewise.
25969         * config/mcore/mcore.c : Likewise.
25970         * config/mep/mep-pragma.c : Likewise.
25971         * config/mep/mep.c : Likewise.
25972         * config/microblaze/microblaze-c.c : Likewise.
25973         * config/microblaze/microblaze.c : Likewise.
25974         * config/mips/mips.c : Likewise.
25975         * config/mmix/mmix.c : Likewise.
25976         * config/mn10300/mn10300.c : Likewise.
25977         * config/moxie/moxie.c : Likewise.
25978         * config/msp430/msp430-c.c : Likewise.
25979         * config/msp430/msp430.c : Likewise.
25980         * config/nds32/nds32-cost.c : Likewise.
25981         * config/nds32/nds32-fp-as-gp.c : Likewise.
25982         * config/nds32/nds32-intrinsic.c : Likewise.
25983         * config/nds32/nds32-isr.c : Likewise.
25984         * config/nds32/nds32-md-auxiliary.c : Likewise.
25985         * config/nds32/nds32-memory-manipulation.c : Likewise.
25986         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25987         * config/nds32/nds32-predicates.c : Likewise.
25988         * config/nds32/nds32.c : Likewise.
25989         * config/nios2/nios2.c : Likewise.
25990         * config/nvptx/nvptx.c : Likewise.
25991         * config/pa/pa.c : Likewise.
25992         * config/pdp11/pdp11.c : Likewise.
25993         * config/rl78/rl78-c.c : Likewise.
25994         * config/rl78/rl78.c : Likewise.
25995         * config/rs6000/rs6000-c.c : Likewise.
25996         * config/rs6000/rs6000.c : Likewise.
25997         * config/rx/rx.c : Likewise.
25998         * config/s390/s390-c.c : Likewise.
25999         * config/s390/s390.c : Likewise.
26000         * config/sh/sh-c.c : Likewise.
26001         * config/sh/sh-mem.cc : Likewise.
26002         * config/sh/sh.c : Likewise.
26003         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26004         * config/sh/sh_treg_combine.cc : Likewise.
26005         * config/sol2-c.c : Likewise.
26006         * config/sol2-cxx.c : Likewise.
26007         * config/sol2-stubs.c : Likewise.
26008         * config/sol2.c : Likewise.
26009         * config/sparc/sparc-c.c : Likewise.
26010         * config/sparc/sparc.c : Likewise.
26011         * config/spu/spu-c.c : Likewise.
26012         * config/spu/spu.c : Likewise.
26013         * config/stormy16/stormy16.c : Likewise.
26014         * config/tilegx/mul-tables.c : Likewise.
26015         * config/tilegx/tilegx-c.c : Likewise.
26016         * config/tilegx/tilegx.c : Likewise.
26017         * config/tilepro/mul-tables.c : Likewise.
26018         * config/tilepro/tilepro-c.c : Likewise.
26019         * config/tilepro/tilepro.c : Likewise.
26020         * config/v850/v850-c.c : Likewise.
26021         * config/v850/v850.c : Likewise.
26022         * config/vax/vax.c : Likewise.
26023         * config/visium/visium.c : Likewise.
26024         * config/vms/vms-c.c : Likewise.
26025         * config/vms/vms.c : Likewise.
26026         * config/vxworks.c : Likewise.
26027         * config/winnt-c.c : Likewise.
26028         * config/xtensa/xtensa.c : Likewise.
26030 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26032         PR lto/65378
26033         * ipa-utils.h (warn_types_mismatch): Update prototype.
26034         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26035         parameters.
26036         (type_mismatch_p): New function.
26037         (warn_types_mismatch): Reorg to work better on non-C++ types.
26038         (odr_types_equivalent_p): Add loc1/loc2 parameters.
26039         (add_type_duplicate): Update.
26041 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26043         PR rtl-optimization/66444
26044         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26045         call_used_regs.
26047 2015-06-08  Richard Biener  <rguenther@suse.de>
26049         PR tree-optimization/66422
26050         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26051         block after inserted gcc_unreachable.
26053 2015-06-08  Nick Clifton  <nickc@redhat.com>
26055         * config/rx/rx.c (rx_function_value): Do not promote vector types.
26056         (rx_promote_function_mode): Likewise.
26057         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26059 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
26061         * genattrtab.c (insn_alternatives): Change type from int *
26062         to uint64_t *.
26063         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26064         (get_attr_value): Change type of num_alt to uint64_t.
26065         (compute_alternative_mask): Change return type from
26066         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26067         (make_alternative_compare, mk_attr_alt): Change argument type
26068         from int to uint64_t.
26069         (simplify_test_exp): Change type of i from int to uint64_t.
26070         Shift ((uint64_t) 1) instead of 1 up.
26071         (main): Adjust oballocvec first argument from int to uint64_t.
26072         Shift ((uint64_t) 1) instead of 1 up.
26074 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
26076         PR other/65366
26077         * gdbhooks.py: Import sys.
26078         (intptr): New function.  Replace int(...) by intptr(...).
26080 2015-06-08  Richard Biener  <rguenther@suse.de>
26082         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26083         adjustment for gaps at the end of a SLP load group properly.
26084         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26085         all permutations we can generate.
26086         (vect_transform_slp_perm_load): Use the correct group-size.
26088 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
26090         * genmatch.c (expr::gen_transform): For conditions, guess the type
26091         from the second operand.
26093 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26095         PR tree-optimization/66442
26096         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26097         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26098         if the loop latch is not a singleton.  Use
26099         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26101 2015-06-08  Marek Polacek  <polacek@redhat.com>
26103         PR sanitizer/66452
26104         * toplev.c (check_global_declaration): Don't warn about artificial
26105         decls.
26107 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26109         PR tree-optimization/66436
26110         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26111         dump file.
26112         * gimplify.c: Add tree-dump.h include.
26113         (gimplify_function_tree): Dump function to gimple dump file.
26114         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26115         dump file.
26117 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26119         PR tree-optimization/66435
26120         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26121         function.
26123 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
26125         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26126         of ptr_type_node to not be ptr_to_node.
26127         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26128         TREE_TYPE of pointers.
26129         * gimple-expr.c (useless_type_conversion): Reorder the check for
26130         function pointers and TYPE_CANONICAL.
26132 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
26134         PR bootstrap/66319
26135         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26136         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26137         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26138         later.
26139         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26140         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26141         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26142         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26143         and non iso if unix2003.
26145 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
26147         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26149 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
26151         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26152         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26153         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26154         except.c, final.c, function.c, gcse-common.c, genemit.c,
26155         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26156         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26157         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26158         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26159         more derived ones.
26161 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
26163         * combine.c (combine_split_insns): Remove cast.
26164         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26165         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26166         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26167         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26168         * genemit.c (gen_split): Change return type of generated functions to
26169         rtx_insn.
26170         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26171         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26172         gen_peephole2_* functions.
26173         (print_subroutine, main): Likewise.
26174         * recog.c (peephole2_optimize): Remove cast.
26175         (peep2_next_insn): Promote return type to rtx_insn.
26176         * recog.h (peep2_next_insn): Fix prototype.
26177         * rtl.h (try_split, split_insns): Likewise.
26179 2015-06-06  DJ Delorie  <dj@redhat.com>
26181         * config/msp430/msp430.c (msp430_asm_integer): Support addition
26182         and subtraction too.
26184 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26186         PR target/66410
26187         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26188         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26189         instead of Snd.  Disparage Sid/z alternative with '^'.
26191 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
26193         * dwarf2out.c: Remove deferred_locations*.
26194         (dwarf2_debug_hooks): Add early_finish hook.
26195         Remove global_decl hook.
26196         Add early_global_decl and late_global_decl hook.
26197         New global early_dwarf.
26198         New structure set_early_dwarf.
26199         (output_die): Indicate whether a DIE was generated early
26200         when generating assembly with -dA.
26201         (struct limbo_die_struct): Document created_for field.
26202         Remove file_table_last_lookup.
26203         (remove_AT): Return TRUE if successful.
26204         (remove_child_TAG): Clear die_parent.
26205         (reparent_child): New function abstracted from...
26206         (splice_child_die): ...here.
26207         (new_die): ICE if a DIE ends up in limbo too late.
26208         (check_die): New.
26209         (defer_location): Remove.
26210         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26211         (fill_variable_array_bounds): New.
26212         (decl_start_label): Call fill_variable_array_bounds.
26213         (gen_formal_parameter_die): Rewrite to reuse previously generated
26214         DIEs.
26215         (gen_subprogram_die): Same.
26216         (gen_variable_die): Same.
26217         (gen_const_die): Same.
26218         (gen_label_die): Same.
26219         (gen_lexical_block_die): Same.
26220         (decl_will_get_specification_p): New.
26221         (local_function_static): New.
26222         (gen_struct_or_union_type_die): Fill in variable-length fields.
26223         (gen_typedef_die): Fill in variable-length typedefs.
26224         (gen_tagged_type_die): Gracefully return on error_mark_node.
26225         Handle re-entrancy.
26226         (gen_type_die_with_usage): Handle variable-length types.
26227         Remove duplicate code for ARRAY_TYPE case.
26228         (process_scope_var): Only process imported modules during early
26229         dwarf.
26230         (dwarf2out_early_global_decl): New.
26231         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26232         (dwarf2out_type_decl): Set early_dwarf while calling
26233         dwarf2out_decl.
26234         (dwarf2out_decl): Verify that we did not recreate a previously
26235         generated DIE.
26236         Do not return on DECL_EXTERNALs in VAR_DECLs.
26237         Abstract some code to local_function_static.
26238         (lookup_filename): Remove use of file_table_last_lookup.
26239         Gracefully exit on missing file_name.
26240         (dwarf2out_finish): Verify limbo list.
26241         Remove deferred_locations_list use.
26242         Move deferred_asm_name and limbo flushing to...
26243         (dwarf2out_early_finish): ...here.  New.
26244         (dwarf2out_c_finalize): Remove set of deferred_location_list,
26245         deferred_asm_name, and file_table_last_lookup.
26246         * cgraph.h (referred_to_p): Add default argument.
26247         * cgraphunit.c (referred_to_p): Add and handle include_self
26248         argument.
26249         (analyze_functions): Add first_time argument.
26250         Call check_global_declaration for all symbols.
26251         Call late_global_decl for nodes for moribund nodes.
26252         (finalize_compilation_unit): Add new argument to
26253         analyze_functions.
26254         Call early_global_decl for functions.
26255         Call early_finish debug hook.
26256         * dbxout.c (dbxout_early_global_decl): New.
26257         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
26258         (dbx_debug_hooks): Add new hooks.
26259         (xcoff_debug_hooks): Same.
26260         * debug.c (do_nothing_debug_hooks): Add early_finish field.
26261         Add early and late debug hooks.
26262         Remove global_decl hook.
26263         * debug.h (struct gcc_debug_hooks): Add early_finish,
26264         early_global_decl, and late_global_decl fields.
26265         Remove global_decl field.
26266         Document gcc_debug_hooks.
26267         * gengtype.c (output_typename): Remove.
26268         * godump.c (go_early_global_decl): New.
26269         (go_late_global_decl): New.
26270         (go_global_decl): Remove.
26271         (dump_go_spec_init): Remove global_decl.  Add
26272         {early,late}_global_decl.
26273         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26274         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26275         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26276         (write_global_declarations): Remove.
26277         (global_decl_processing): New.
26278         * langhooks.h (struct lang_hooks_for_decls): Remove
26279         final_write_globals field.
26280         Add post_compilation_parsing_cleanups field.
26281         * passes.c (rest_of_decl_compilation): Call early_global_decl.
26282         * sdbout.c: Add early and late_global_decl hooks.  Remove
26283         sdbout_global_decl hook.
26284         Add early_finish field for sdb_debug_hooks.
26285         (sdbout_global_decl): Remove.
26286         (sdbout_early_global_decl): New.
26287         (sdbout_late_global_decl): New.
26288         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26289         * toplev.c (check_global_declaration): Rename from
26290         check_global_declaration_1.
26291         Adapt to use symtab infrastructure.
26292         (check_global_declarations): Remove.
26293         (emit_debug_global_declarations): Remove.
26294         (compile_file): Remove call to final_write_globals langhook.
26295         Run the actual compilation process.
26296         Perform any post compilation parser cleanups.
26297         Generate late debug info.
26298         * toplev.h (check_global_declaration): New.
26299         (check_global_declaration_1): Remove.
26300         (check_global_declarations): Remove.
26301         (write_global_declarations): Remove.
26302         (emit_debug_global_declarations): Remove.
26303         (global_decl_processing): New.
26304         * tree-core.h (struct tree_block): Add DIE field.
26305         * tree.h (BLOCK_DIE): New.
26306         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26307         throughout.
26308         (vmsdbgout_early_global_decl): New.
26309         (vmsdbgout_late_global_decl): New.
26310         Add early_finish debug hook field to vmsdbg_debug_hooks.
26311         Remove vmsdbgout_decl to vmsdbgout_function_decl.
26312         Add early and late_global_decl debug hooks.
26314 2015-06-05  Julian Brown  <julian@codesourcery.com>
26315             Sandra Loosemore  <sandra@codesourcery.com>
26317         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26318         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26319         to print-sysroot-suffix.sh script.
26321 2015-06-05  Tom de Vries  <tom@codesourcery.com>
26323         merge from gomp4 branch:
26324         2015-05-28  Tom de Vries  <tom@codesourcery.com>
26326         PR tree-optimization/65443
26327         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26328         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26329         (try_transform_to_exit_first_loop_alt): New function.
26330         (transform_to_exit_first_loop): Use
26331         try_transform_to_exit_first_loop_alt.
26333 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
26335         * builtins.c (expand_builtin_atomic_compare_exchange): Call
26336         emit_cmp_and_jump_insns with the mode of target.
26338 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26340         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26342 2015-06-04  DJ Delorie  <dj@redhat.com>
26344         * config/msp430/msp430.md (movsi_s): New.  Special case for
26345         storing a 20-bit symbol into a 32-bit register.
26346         * config/msp430/msp430.c (msp430_subreg): Add support for it.
26347         * config/msp430/predicates.md (msp430_symbol_operand): New.
26349 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
26351         * c-family/c-common.c (noplt): New attribute.
26352         (handle_noplt_attribute): New handler.
26353         * calls.c (prepare_call_address): Check for noplt
26354         attribute.
26355         * config/i386/i386.c (ix86_expand_call): Check
26356         for noplt attribute.
26357         (ix86_nopic_noplt_attribute_p): New function.
26358         (ix86_output_call_insn): Output indirect call for non-pic
26359         no plt calls.
26360         * doc/extend.texi (noplt): Document new attribute.
26361         * doc/invoke.texi: Document new attribute.
26363 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
26365         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26366         real.h, and fixed-value.h when included in host source files.
26367         * double-int.h: Remove redundant #includes listed above.
26368         * fixed-value.h: Likewise.
26369         * real.h: Likewise.
26370         * wide-int.h: Likewise.
26371         * inchash.h: Likewise.
26372         * rtl.h: Add some include files When included from a generator file.
26373         * target.h: Remove wide-int.h and insn-modes.h from the include list.
26374         * internal-fn.h: Don't include coretypes.h.
26375         * alias.c: Adjust includes for restructured coretypes.h.
26376         * asan.c: Likewise.
26377         * attribs.c: Likewise.
26378         * auto-inc-dec.c: Likewise.
26379         * auto-profile.c: Likewise.
26380         * bb-reorder.c: Likewise.
26381         * bt-load.c: Likewise.
26382         * builtins.c: Likewise.
26383         * caller-save.c: Likewise.
26384         * calls.c: Likewise.
26385         * ccmp.c: Likewise.
26386         * cfg.c: Likewise.
26387         * cfganal.c: Likewise.
26388         * cfgbuild.c: Likewise.
26389         * cfgcleanup.c: Likewise.
26390         * cfgexpand.c: Likewise.
26391         * cfghooks.c: Likewise.
26392         * cfgloop.c: Likewise.
26393         * cfgloop.h: Likewise.
26394         * cfgloopanal.c: Likewise.
26395         * cfgloopmanip.c: Likewise.
26396         * cfgrtl.c: Likewise.
26397         * cgraph.c: Likewise.
26398         * cgraphbuild.c: Likewise.
26399         * cgraphclones.c: Likewise.
26400         * cgraphunit.c: Likewise.
26401         * cilk-common.c: Likewise.
26402         * combine-stack-adj.c: Likewise.
26403         * combine.c: Likewise.
26404         * compare-elim.c: Likewise.
26405         * convert.c: Likewise.
26406         * coverage.c: Likewise.
26407         * cppbuiltin.c: Likewise.
26408         * cprop.c: Likewise.
26409         * cse.c: Likewise.
26410         * cselib.c: Likewise.
26411         * data-streamer-in.c: Likewise.
26412         * data-streamer-out.c: Likewise.
26413         * data-streamer.c: Likewise.
26414         * dbxout.c: Likewise.
26415         * dce.c: Likewise.
26416         * ddg.c: Likewise.
26417         * debug.c: Likewise.
26418         * df-core.c: Likewise.
26419         * df-problems.c: Likewise.
26420         * df-scan.c: Likewise.
26421         * df.h: Likewise.
26422         * dfp.c: Likewise.
26423         * dojump.c: Likewise.
26424         * dominance.c: Likewise.
26425         * domwalk.c: Likewise.
26426         * double-int.c: Likewise.
26427         * dse.c: Likewise.
26428         * dumpfile.c: Likewise.
26429         * dwarf2asm.c: Likewise.
26430         * dwarf2cfi.c: Likewise.
26431         * dwarf2out.c: Likewise.
26432         * dwarf2out.h: Likewise.
26433         * emit-rtl.c: Likewise.
26434         * et-forest.c: Likewise.
26435         * except.c: Likewise.
26436         * explow.c: Likewise.
26437         * expmed.c: Likewise.
26438         * expr.c: Likewise.
26439         * final.c: Likewise.
26440         * fixed-value.c: Likewise.
26441         * fold-const.c: Likewise.
26442         * function.c: Likewise.
26443         * fwprop.c: Likewise.
26444         * gcc-plugin.h: Likewise.
26445         * gcse.c: Likewise.
26446         * generic-match-head.c: Likewise.
26447         * ggc-page.c: Likewise.
26448         * gimple-builder.c: Likewise.
26449         * gimple-expr.c: Likewise.
26450         * gimple-fold.c: Likewise.
26451         * gimple-iterator.c: Likewise.
26452         * gimple-low.c: Likewise.
26453         * gimple-match-head.c: Likewise.
26454         * gimple-pretty-print.c: Likewise.
26455         * gimple-ssa-isolate-paths.c: Likewise.
26456         * gimple-ssa-strength-reduction.c: Likewise.
26457         * gimple-streamer-in.c: Likewise.
26458         * gimple-streamer-out.c: Likewise.
26459         * gimple-streamer.h: Likewise.
26460         * gimple-walk.c: Likewise.
26461         * gimple.c: Likewise.
26462         * gimplify-me.c: Likewise.
26463         * gimplify.c: Likewise.
26464         * godump.c: Likewise.
26465         * graph.c: Likewise.
26466         * graphite-blocking.c: Likewise.
26467         * graphite-dependences.c: Likewise.
26468         * graphite-interchange.c: Likewise.
26469         * graphite-isl-ast-to-gimple.c: Likewise.
26470         * graphite-optimize-isl.c: Likewise.
26471         * graphite-poly.c: Likewise.
26472         * graphite-scop-detection.c: Likewise.
26473         * graphite-sese-to-poly.c: Likewise.
26474         * graphite.c: Likewise.
26475         * haifa-sched.c: Likewise.
26476         * hooks.h: Likewise.
26477         * hw-doloop.c: Likewise.
26478         * ifcvt.c: Likewise.
26479         * incpath.c: Likewise.
26480         * init-regs.c: Likewise.
26481         * internal-fn.c: Likewise.
26482         * ipa-chkp.c: Likewise.
26483         * ipa-comdats.c: Likewise.
26484         * ipa-cp.c: Likewise.
26485         * ipa-devirt.c: Likewise.
26486         * ipa-icf-gimple.c: Likewise.
26487         * ipa-icf.c: Likewise.
26488         * ipa-inline-analysis.c: Likewise.
26489         * ipa-inline-transform.c: Likewise.
26490         * ipa-inline.c: Likewise.
26491         * ipa-polymorphic-call.c: Likewise.
26492         * ipa-profile.c: Likewise.
26493         * ipa-prop.c: Likewise.
26494         * ipa-pure-const.c: Likewise.
26495         * ipa-ref.c: Likewise.
26496         * ipa-reference.c: Likewise.
26497         * ipa-split.c: Likewise.
26498         * ipa-utils.c: Likewise.
26499         * ipa-visibility.c: Likewise.
26500         * ipa.c: Likewise.
26501         * ira-build.c: Likewise.
26502         * ira-color.c: Likewise.
26503         * ira-conflicts.c: Likewise.
26504         * ira-costs.c: Likewise.
26505         * ira-emit.c: Likewise.
26506         * ira-lives.c: Likewise.
26507         * ira.c: Likewise.
26508         * jump.c: Likewise.
26509         * langhooks.c: Likewise.
26510         * lcm.c: Likewise.
26511         * loop-doloop.c: Likewise.
26512         * loop-init.c: Likewise.
26513         * loop-invariant.c: Likewise.
26514         * loop-iv.c: Likewise.
26515         * loop-unroll.c: Likewise.
26516         * lower-subreg.c: Likewise.
26517         * lra-assigns.c: Likewise.
26518         * lra-coalesce.c: Likewise.
26519         * lra-constraints.c: Likewise.
26520         * lra-eliminations.c: Likewise.
26521         * lra-lives.c: Likewise.
26522         * lra-remat.c: Likewise.
26523         * lra-spills.c: Likewise.
26524         * lra.c: Likewise.
26525         * lto-cgraph.c: Likewise.
26526         * lto-compress.c: Likewise.
26527         * lto-opts.c: Likewise.
26528         * lto-section-in.c: Likewise.
26529         * lto-section-out.c: Likewise.
26530         * lto-streamer-in.c: Likewise.
26531         * lto-streamer-out.c: Likewise.
26532         * lto-streamer.c: Likewise.
26533         * mcf.c: Likewise.
26534         * mode-switching.c: Likewise.
26535         * modulo-sched.c: Likewise.
26536         * omega.c: Likewise.
26537         * omp-low.c: Likewise.
26538         * optabs.c: Likewise.
26539         * opts-global.c: Likewise.
26540         * passes.c: Likewise.
26541         * plugin.c: Likewise.
26542         * postreload-gcse.c: Likewise.
26543         * postreload.c: Likewise.
26544         * predict.c: Likewise.
26545         * print-rtl.c: Likewise.
26546         * print-tree.c: Likewise.
26547         * profile.c: Likewise.
26548         * real.c: Likewise.
26549         * realmpfr.c: Likewise.
26550         * realmpfr.h: Likewise.
26551         * recog.c: Likewise.
26552         * ree.c: Likewise.
26553         * reg-stack.c: Likewise.
26554         * regcprop.c: Likewise.
26555         * reginfo.c: Likewise.
26556         * regrename.c: Likewise.
26557         * regs.h: Likewise.
26558         * regstat.c: Likewise.
26559         * reload.c: Likewise.
26560         * reload1.c: Likewise.
26561         * reorg.c: Likewise.
26562         * resource.c: Likewise.
26563         * rtl-chkp.c: Likewise.
26564         * rtlanal.c: Likewise.
26565         * rtlhooks.c: Likewise.
26566         * sanopt.c: Likewise.
26567         * sched-deps.c: Likewise.
26568         * sched-ebb.c: Likewise.
26569         * sched-rgn.c: Likewise.
26570         * sched-vis.c: Likewise.
26571         * sdbout.c: Likewise.
26572         * sel-sched-dump.c: Likewise.
26573         * sel-sched-ir.c: Likewise.
26574         * sel-sched.c: Likewise.
26575         * sese.c: Likewise.
26576         * shrink-wrap.c: Likewise.
26577         * shrink-wrap.h: Likewise.
26578         * simplify-rtx.c: Likewise.
26579         * stack-ptr-mod.c: Likewise.
26580         * statistics.c: Likewise.
26581         * stmt.c: Likewise.
26582         * stor-layout.c: Likewise.
26583         * store-motion.c: Likewise.
26584         * stringpool.c: Likewise.
26585         * symtab.c: Likewise.
26586         * target-globals.c: Likewise.
26587         * targhooks.c: Likewise.
26588         * toplev.c: Likewise.
26589         * tracer.c: Likewise.
26590         * trans-mem.c: Likewise.
26591         * tree-affine.c: Likewise.
26592         * tree-affine.h: Likewise.
26593         * tree-browser.c: Likewise.
26594         * tree-call-cdce.c: Likewise.
26595         * tree-cfg.c: Likewise.
26596         * tree-cfgcleanup.c: Likewise.
26597         * tree-chkp-opt.c: Likewise.
26598         * tree-chkp.c: Likewise.
26599         * tree-chrec.c: Likewise.
26600         * tree-complex.c: Likewise.
26601         * tree-data-ref.c: Likewise.
26602         * tree-dfa.c: Likewise.
26603         * tree-diagnostic.c: Likewise.
26604         * tree-dump.c: Likewise.
26605         * tree-eh.c: Likewise.
26606         * tree-emutls.c: Likewise.
26607         * tree-if-conv.c: Likewise.
26608         * tree-inline.c: Likewise.
26609         * tree-into-ssa.c: Likewise.
26610         * tree-iterator.c: Likewise.
26611         * tree-loop-distribution.c: Likewise.
26612         * tree-nested.c: Likewise.
26613         * tree-nrv.c: Likewise.
26614         * tree-object-size.c: Likewise.
26615         * tree-outof-ssa.c: Likewise.
26616         * tree-parloops.c: Likewise.
26617         * tree-phinodes.c: Likewise.
26618         * tree-predcom.c: Likewise.
26619         * tree-pretty-print.c: Likewise.
26620         * tree-pretty-print.h: Likewise.
26621         * tree-profile.c: Likewise.
26622         * tree-scalar-evolution.c: Likewise.
26623         * tree-sra.c: Likewise.
26624         * tree-ssa-address.c: Likewise.
26625         * tree-ssa-alias.c: Likewise.
26626         * tree-ssa-ccp.c: Likewise.
26627         * tree-ssa-coalesce.c: Likewise.
26628         * tree-ssa-copy.c: Likewise.
26629         * tree-ssa-copyrename.c: Likewise.
26630         * tree-ssa-dce.c: Likewise.
26631         * tree-ssa-dom.c: Likewise.
26632         * tree-ssa-dse.c: Likewise.
26633         * tree-ssa-forwprop.c: Likewise.
26634         * tree-ssa-ifcombine.c: Likewise.
26635         * tree-ssa-live.c: Likewise.
26636         * tree-ssa-loop-ch.c: Likewise.
26637         * tree-ssa-loop-im.c: Likewise.
26638         * tree-ssa-loop-ivcanon.c: Likewise.
26639         * tree-ssa-loop-ivopts.c: Likewise.
26640         * tree-ssa-loop-manip.c: Likewise.
26641         * tree-ssa-loop-niter.c: Likewise.
26642         * tree-ssa-loop-prefetch.c: Likewise.
26643         * tree-ssa-loop-unswitch.c: Likewise.
26644         * tree-ssa-loop.c: Likewise.
26645         * tree-ssa-loop.h: Likewise.
26646         * tree-ssa-math-opts.c: Likewise.
26647         * tree-ssa-operands.c: Likewise.
26648         * tree-ssa-phiopt.c: Likewise.
26649         * tree-ssa-phiprop.c: Likewise.
26650         * tree-ssa-pre.c: Likewise.
26651         * tree-ssa-propagate.c: Likewise.
26652         * tree-ssa-reassoc.c: Likewise.
26653         * tree-ssa-sccvn.c: Likewise.
26654         * tree-ssa-scopedtables.c: Likewise.
26655         * tree-ssa-sink.c: Likewise.
26656         * tree-ssa-strlen.c: Likewise.
26657         * tree-ssa-structalias.c: Likewise.
26658         * tree-ssa-tail-merge.c: Likewise.
26659         * tree-ssa-ter.c: Likewise.
26660         * tree-ssa-threadedge.c: Likewise.
26661         * tree-ssa-threadupdate.c: Likewise.
26662         * tree-ssa-uncprop.c: Likewise.
26663         * tree-ssa-uninit.c: Likewise.
26664         * tree-ssa.c: Likewise.
26665         * tree-ssanames.c: Likewise.
26666         * tree-stdarg.c: Likewise.
26667         * tree-streamer-in.c: Likewise.
26668         * tree-streamer-out.c: Likewise.
26669         * tree-streamer.c: Likewise.
26670         * tree-switch-conversion.c: Likewise.
26671         * tree-tailcall.c: Likewise.
26672         * tree-vect-data-refs.c: Likewise.
26673         * tree-vect-generic.c: Likewise.
26674         * tree-vect-loop-manip.c: Likewise.
26675         * tree-vect-loop.c: Likewise.
26676         * tree-vect-patterns.c: Likewise.
26677         * tree-vect-slp.c: Likewise.
26678         * tree-vect-stmts.c: Likewise.
26679         * tree-vectorizer.c: Likewise.
26680         * tree-vrp.c: Likewise.
26681         * tree.c: Likewise.
26682         * tsan.c: Likewise.
26683         * ubsan.c: Likewise.
26684         * valtrack.c: Likewise.
26685         * value-prof.c: Likewise.
26686         * var-tracking.c: Likewise.
26687         * varasm.c: Likewise.
26688         * varpool.c: Likewise.
26689         * vmsdbgout.c: Likewise.
26690         * vtable-verify.c: Likewise.
26691         * web.c: Likewise.
26692         * wide-int-print.cc: Likewise.
26693         * wide-int-print.h: Likewise.
26694         * wide-int.cc: Likewise.
26695         * xcoffout.c: Likewise.
26696         * config/aarch64/aarch64-builtins.c: Likewise.
26697         * config/aarch64/aarch64.c: Likewise.
26698         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26699         * config/alpha/alpha.c: Likewise.
26700         * config/arc/arc.c: Likewise.
26701         * config/arm/aarch-common.c: Likewise.
26702         * config/arm/arm-builtins.c: Likewise.
26703         * config/arm/arm-c.c: Likewise.
26704         * config/arm/arm.c: Likewise.
26705         * config/avr/avr-c.c: Likewise.
26706         * config/avr/avr-log.c: Likewise.
26707         * config/avr/avr.c: Likewise.
26708         * config/bfin/bfin.c: Likewise.
26709         * config/c6x/c6x.c: Likewise.
26710         * config/cr16/cr16.c: Likewise.
26711         * config/cris/cris.c: Likewise.
26712         * config/darwin-c.c: Likewise.
26713         * config/darwin.c: Likewise.
26714         * config/default-c.c: Likewise.
26715         * config/epiphany/epiphany.c: Likewise.
26716         * config/epiphany/mode-switch-use.c: Likewise.
26717         * config/epiphany/resolve-sw-modes.c: Likewise.
26718         * config/fr30/fr30.c: Likewise.
26719         * config/frv/frv.c: Likewise.
26720         * config/ft32/ft32.c: Likewise.
26721         * config/glibc-c.c: Likewise.
26722         * config/h8300/h8300.c: Likewise.
26723         * config/i386/i386-c.c: Likewise.
26724         * config/i386/i386.c: Likewise.
26725         * config/i386/msformat-c.c: Likewise.
26726         * config/i386/winnt-cxx.c: Likewise.
26727         * config/i386/winnt-stubs.c: Likewise.
26728         * config/i386/winnt.c: Likewise.
26729         * config/ia64/ia64-c.c: Likewise.
26730         * config/ia64/ia64.c: Likewise.
26731         * config/iq2000/iq2000.c: Likewise.
26732         * config/lm32/lm32.c: Likewise.
26733         * config/m32c/m32c-pragma.c: Likewise.
26734         * config/m32c/m32c.c: Likewise.
26735         * config/m32r/m32r.c: Likewise.
26736         * config/m68k/m68k.c: Likewise.
26737         * config/mcore/mcore.c: Likewise.
26738         * config/mep/mep-pragma.c: Likewise.
26739         * config/mep/mep.c: Likewise.
26740         * config/microblaze/microblaze-c.c: Likewise.
26741         * config/microblaze/microblaze.c: Likewise.
26742         * config/mips/mips.c: Likewise.
26743         * config/mmix/mmix.c: Likewise.
26744         * config/mn10300/mn10300.c: Likewise.
26745         * config/moxie/moxie.c: Likewise.
26746         * config/msp430/msp430-c.c: Likewise.
26747         * config/msp430/msp430.c: Likewise.
26748         * config/nds32/nds32-cost.c: Likewise.
26749         * config/nds32/nds32-fp-as-gp.c: Likewise.
26750         * config/nds32/nds32-intrinsic.c: Likewise.
26751         * config/nds32/nds32-isr.c: Likewise.
26752         * config/nds32/nds32-md-auxiliary.c: Likewise.
26753         * config/nds32/nds32-memory-manipulation.c: Likewise.
26754         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26755         * config/nds32/nds32-predicates.c: Likewise.
26756         * config/nds32/nds32.c: Likewise.
26757         * config/nios2/nios2.c: Likewise.
26758         * config/nvptx/nvptx.c: Likewise.
26759         * config/pa/pa.c: Likewise.
26760         * config/pdp11/pdp11.c: Likewise.
26761         * config/rl78/rl78-c.c: Likewise.
26762         * config/rl78/rl78.c: Likewise.
26763         * config/rs6000/rs6000-c.c: Likewise.
26764         * config/rs6000/rs6000.c: Likewise.
26765         * config/rx/rx.c: Likewise.
26766         * config/s390/s390-c.c: Likewise.
26767         * config/s390/s390.c: Likewise.
26768         * config/sh/sh-c.c: Likewise.
26769         * config/sh/sh-mem.cc: Likewise.
26770         * config/sh/sh.c: Likewise.
26771         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26772         * config/sh/sh_treg_combine.cc: Likewise.
26773         * config/sol2-c.c: Likewise.
26774         * config/sol2-cxx.c: Likewise.
26775         * config/sol2-stubs.c: Likewise.
26776         * config/sol2.c: Likewise.
26777         * config/sparc/sparc-c.c: Likewise.
26778         * config/sparc/sparc.c: Likewise.
26779         * config/spu/spu-c.c: Likewise.
26780         * config/spu/spu.c: Likewise.
26781         * config/stormy16/stormy16.c: Likewise.
26782         * config/tilegx/mul-tables.c: Likewise.
26783         * config/tilegx/tilegx-c.c: Likewise.
26784         * config/tilegx/tilegx.c: Likewise.
26785         * config/tilepro/mul-tables.c: Likewise.
26786         * config/tilepro/tilepro-c.c: Likewise.
26787         * config/tilepro/tilepro.c: Likewise.
26788         * config/v850/v850-c.c: Likewise.
26789         * config/v850/v850.c: Likewise.
26790         * config/vax/vax.c: Likewise.
26791         * config/visium/visium.c: Likewise.
26792         * config/vms/vms-c.c: Likewise.
26793         * config/vms/vms.c: Likewise.
26794         * config/vxworks.c: Likewise.
26795         * config/winnt-c.c: Likewise.
26796         * config/xtensa/xtensa.c: Likewise.
26797         * common/config/bfin/bfin-common.c: Likewise.
26799 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
26801         * tree.h (tree_code_for_canonical_type_merging): New function.
26802         * tree.c (gimple_canonical_types_compatible_p): Use
26803         tree_code_for_canonical_type_merging..
26805 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26807         PR c++/66192
26808         PR target/66200
26809         * doc/tm.texi: Regenerate.
26810         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26811         * target.def (TARGET_RELAXED_ORDERING): Likewise.
26812         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26813         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26814         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26815         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26816         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26817         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26818         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26820 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26822         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26823         register fma steering pass.
26824         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26825         AARCH64_TUNE_FMA_STEERING.
26827 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
26829         * tree.c (verify_type_variant): Verify that type and variant is
26830         compatible.
26831         (gimple_canonical_types_compatible_p): Look for main variants.
26833 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26835         * config.gcc (powerpc*-*-*): Add support for a new configure
26836         option --with-advance-toolchain=<xxx> which overrides using the
26837         default header files, libraries and dynamic linker.
26839         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26840         specs to support the configure --with-advance-toolchain=<xxx>
26841         option.
26842         (INCLUDE_EXTRA_SPEC): Likewise.
26843         (LINK_OS_EXTRA_SPEC32): Likewise.
26844         (LINK_OK_EXTRA_SPEC64): Likewise.
26845         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26846         (DYNAMIC_LINKER_PREFIX): Likewise.
26847         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26848         toolchain support.
26849         (GLIBC_DYNAMIC_LINKER32): Likewise.
26850         (GLIBC_DYNAMIC_LINKER64): Likewise.
26851         (LINK_OS_LINUX_SPEC32): Likewise.
26852         (LINK_OS_LINUX_SPEC64): Likewise.
26854         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26855         configuration option.
26857 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
26859         PR target/66275
26860         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26861         to determine current function ABI.
26862         (ix86_function_value_regno_p): Ditto.
26864 2015-06-03  Martin Liska  <mliska@suse.cz>
26866         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26867         * bitmap.h (struct bitmap_usage): Likewise.
26868         * ggc-common.c (struct ggc_usage): Likewise.
26869         * mem-stats.h (struct mem_location): Likewise.
26870         (struct mem_usage): Likewise.
26871         * vec.c (struct vec_usage): Likewise.
26873 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
26875         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26876         -Bsymbolic.
26878 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
26880         * doc/plugins.texi (enum plugin_event): New event.
26881         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26882         and PLUGIN_FINISH_FUNCTION.
26883         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26884         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26886 2015-06-03  Richard Biener  <rguenther@suse.de>
26888         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26889         compute GROUP_GAP for the first element.
26890         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26891         on in-group gaps.
26893 2015-06-03  Nick Clifton  <nickc@redhat.com>
26895         * config/rl78/rl78-real.md: Add peepholes to avoid a register
26896         copy when calling a function.
26897         * config/rl78/rl78.c (need_to_save): Do not push the frame
26898         pointer in an interrupt handler prologue if it is never used.
26900 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26902         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26904 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26906         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26907         reference when cloning alias node.
26909 2015-06-03  Martin Liska  <mliska@suse.cz>
26911         * alloc-pool.h (struct pool_usage): Correct space padding.
26912         * ggc-page.c (ggc_print_statistics): Align columns in a report.
26913         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26914         * tree.c (dump_tree_statistics): Align columns in a report.
26916 2015-06-03  Martin Liska  <mliska@suse.cz>
26918         * alloc-pool.c (allocate_pool_descriptor): Remove.
26919         (struct pool_output_info): Likewise.
26920         (print_alloc_pool_statistics): Likewise.
26921         (dump_alloc_pool_statistics): Likewise.
26922         * alloc-pool.h (struct pool_usage): New struct.
26923         (pool_allocator::initialize): Change usage of memory statistics
26924         to a new interface.
26925         (pool_allocator::release): Likewise.
26926         (pool_allocator::allocate): Likewise.
26927         (pool_allocator::remove): Likewise.
26928         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26929         for a pool allocator.
26930         * mem-stats.h (struct mem_location): Add new ctor.
26931         (struct mem_usage): Add counter for number of
26932         instances.
26933         (mem_alloc_description::register_descriptor): New overload of
26934         * mem-stats.h (mem_location::to_string): New function.
26935         * bitmap.h (struct bitmap_usage): Use this new function.
26936         * ggc-common.c (struct ggc_usage): Likewise.
26937         the function.
26939 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26941         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26942         of GCC_INSN_FLAGS_H block.
26944 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
26946         * explow.c (plus_constant): Update check after force_const_mem call
26947         to see if the value returned is not a NULL_RTX.
26949 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26951         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26952         remove instumentation thunks calling reachable functions.
26953         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26954         * lto/lto-partition.c (privatize_symbol_name_1): New.
26955         (privatize_symbol_name): Privatize both decl and orig_decl
26956         names for instrumented functions.
26957         * cgraph.c (cgraph_node::verify_node): Add transparent
26958         alias chain check for instrumented node.
26960 2015-06-03  Marek Polacek  <polacek@redhat.com>
26962         PR c/64223
26963         PR c/29358
26964         * tree.c (attribute_value_equal): Handle attribute format.
26965         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26967 2015-06-03  Richard Biener  <rguenther@suse.de>
26969         PR tree-optimization/63916
26970         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26971         Forward-propagate non-invariant addresses by splicing their
26972         reference ops if the result isn't going to be used by PRE.
26973         (vn_reference_lookup_3): Remove pointless assert.
26975 2015-06-03  Richard Biener  <rguenther@suse.de>
26977         PR tree-optimization/66375
26978         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26979         add to the evolution before following SSA edges.
26981 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
26983         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26984         (dump_use, dump_cand, find_induction_variables): Pass new argument
26985         to dump_iv.
26986         (record_use): Preserve the ssa name information in IV.
26988 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26990         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26991         NO_MODE_TEST.
26992         (add_mode_tests): Don't add mode tests if the predicate only
26993         accepts scalar constant integers.  Otherwise, allow the mode
26994         of "op" to be VOIDmode if the predicate does accept such integers.
26996 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
26998         PR target/66258
26999         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27000         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27001         (aarch64_secondary_reload): Likewise
27002         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27003         to !TARGET_FLOAT.
27004         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27005         Likewise.
27007 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
27008             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27010         PR target/65768
27011         * cprop.c (try_replace_reg): Check cost of constants before propagating.
27013 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27015         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27016         provide access to the IBM extended double floating point mode if
27017         long double is IEEE 128-bit floating point.
27018         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27019         point if long double is the IBM extended double type.
27021         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27022         enable adding IEEE 128-bit floating point support.
27023         (-mfloat128-software): Likewise.
27024         (-mfloat128-sw): Likewise.
27026         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27027         128-bit floating point types to occupy any register if
27028         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
27029         -mfloat128-software is enabled.
27030         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27031         support.
27032         (rs6000_option_override_internal): Add -mfloat128-* support.
27033         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27035         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27036         and float128 type nodes.
27037         (ieee128_float_type_node): Likewise.
27038         (ibm128_float_type_node): Likewise.
27040 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27042         PR target/66136
27043         * config/aarch64/geniterators.sh: Rewrite in awk.
27045 2015-06-02  Martin Liska  <mliska@suse.cz>
27047         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27048         values to avoid -Wmaybe-uninitialized errors.
27050 2015-06-02  Richard Biener  <rguenther@suse.de>
27052         PR debug/65549
27053         * dwarf2out.c (lookup_context_die): New function.
27054         (resolve_addr): Avoid forcing a full DIE for the
27055         target of a DW_TAG_GNU_call_site during late compilation.
27056         Instead create a stub DIE without a type if we have a
27057         context DIE present.
27059 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
27061         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27063 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27065         PR tree-optimization/48052
27066         * cfgloop.h (struct control_iv): New.
27067         (struct loop): New field control_ivs.
27068         * tree-ssa-loop-niter.c : Include "stor-layout.h".
27069         (number_of_iterations_lt): Set no_overflow information.
27070         (number_of_iterations_exit): Init control iv in niter struct.
27071         (record_control_iv): New.
27072         (estimate_numbers_of_iterations_loop): Call record_control_iv.
27073         (loop_exits_before_overflow): New.  Interface factored out of
27074         scev_probably_wraps_p.
27075         (scev_probably_wraps_p): Factor loop niter related code into
27076         loop_exits_before_overflow.
27077         (free_numbers_of_iterations_estimates_loop): Free control ivs.
27078         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27080 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
27082         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27083         the target doesn't belong to the current function.
27085 2015-06-02  Marek Polacek  <polacek@redhat.com>
27087         PR middle-end/66345
27088         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27089         get_maxval_strlen does not produce an INTEGER_CST.
27091 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
27093         * config/arc/constraints.md: Use lower-case names in match_code.
27094         * config/mmix/constraints.md: Likewise.
27096 2015-06-02  Richard Biener  <rguenther@suse.de>
27098         PR tree-optimization/65961
27099         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27100         check and clarify dump message.
27101         (vect_build_slp_tree): If all children are built up from scalars
27102         build up the parent from scalars instead.
27103         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27105 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
27107         PR other/65366
27108         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
27109         instead of print ... .
27111 2015-06-02  Alan Modra  <amodra@gmail.com>
27113         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27114         2014-08-11 change.
27116 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27118         PR tree-optimization/52563
27119         PR tree-optimization/62173
27120         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
27121         (alloc_iv, set_iv): New parameter.
27122         (determine_biv_step): Delete.
27123         (find_bivs): Inline original determine_biv_step.  Pass new
27124         argument to set_iv.
27125         (idx_find_step): Use no_overflow information for conversion.
27126         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27127         resolve_mixers handle folded_casts.
27128         (instantiate_scev_name): Change bool parameter to bool pointer.
27129         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27130         (instantiate_array_ref, instantiate_scev_not): Ditto.
27131         (instantiate_scev_3, instantiate_scev_2): Ditto.
27132         (instantiate_scev_1, instantiate_scev_r): Ditto.
27133         (instantiate_scev_convert, ): Change parameter.  Pass argument
27134         to chrec_convert_aggressive.
27135         (instantiate_scev): Change argument.
27136         (resolve_mixers): New parameter and set it.
27137         (scev_const_prop): New argument.
27138         * tree-scalar-evolution.h (resolve_mixers): New parameter.
27139         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27140         of chrec_conert_1.
27141         (chrec_convert): New parameter.  Move definition below.
27142         (chrec_convert_aggressive): New parameter and set it.  Call
27143         convert_affine_scev.
27144         * tree-chrec.h (chrec_convert): New parameter.
27145         (chrec_convert_aggressive): Ditto.
27147 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27149         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27150         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27151         the LHS of a no-return call if its type has variable size.
27152         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27153         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27155 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
27157         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27158         * config.in: Regenerate.
27160 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27162         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27163         consecutive accesses within outer-loop with force_vectorize
27164         for references with zero step in inner-loop.
27166 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27168         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27169         rather than from gcc/build directory.
27171 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27173         PR target/65697
27174         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27175         for __sync memory models, emit initial loads and final barriers as
27176         appropriate.
27178 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27180         PR target/65697
27181         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27182         (aarch64_split_atomic_op): Check for __sync memory models, emit
27183         appropriate initial loads and final barriers.
27185 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27187         * Makefile.in: Fix gcov dependencies that should
27188         not point to a build folder.
27190 2015-06-01  Richard Biener  <rguenther@suse.de>
27192         Revert
27193         2015-05-29  Richard Biener  <rguenther@suse.de>
27195         PR tree-optimization/66314
27196         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27197         parameter that says which loop the new block belongs to.
27198         (ssa_create_duplicates): Blocks duplicated for the threaded
27199         path belong to the loop of the thread destination.
27201 2015-06-01  Martin Liska  <mliska@suse.cz>
27203         * sched-deps.c: Include pool-alloc.h before
27204         cselib.h header file is included.
27206 2015-06-01  Richard Biener  <rguenther@suse.de>
27208         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27209         functions.
27211 2015-06-01  Martin Liska  <mliska@suse.cz>
27213         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27214         a function local variable.
27216 2015-06-01  Martin Liska  <mliska@suse.cz>
27218         * alloc-pool.c (create_alloc_pool): Remove.
27219         (empty_alloc_pool): Likewise.
27220         (free_alloc_pool): Likewise.
27221         (free_alloc_pool_if_empty): Likewise.
27222         (pool_alloc): Likewise.
27223         (pool_free): Likewise.
27224         * alloc-pool.h: Remove old declarations.
27226 2015-06-01  Martin Liska  <mliska@suse.cz>
27228         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27229         (ira_create_object): Likewise.
27230         (ira_create_allocno): Likewise.
27231         (ira_create_live_range): Likewise.
27232         (copy_live_range): Likewise.
27233         (ira_finish_live_range): Likewise.
27234         (ira_free_allocno_costs): Likewise.
27235         (finish_allocno): Likewise.
27236         (finish_allocnos): Likewise.
27237         (initiate_prefs): Likewise.
27238         (ira_create_pref): Likewise.
27239         (finish_pref): Likewise.
27240         (finish_prefs): Likewise.
27241         (initiate_copies): Likewise.
27242         (ira_create_copy): Likewise.
27243         (finish_copy): Likewise.
27244         (finish_copies): Likewise.
27245         (finish_prefs): Likewise.
27247 2015-06-01  Martin Liska  <mliska@suse.cz>
27249         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27250         (allocate_and_init_ipcp_value): Likewise.
27251         (ipcp_lattice::add_value): Likewise.
27252         (merge_agg_lats_step): Likewise.
27253         (ipcp_driver): Likewise.
27254         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27255         (ipa_free_all_structures_after_iinln): Likewise.
27256         * ipa-prop.h: Likewise.
27258 2015-06-01  Martin Liska  <mliska@suse.cz>
27260         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27261         pool allocator.
27262         (set_hint_predicate): Likewise.
27263         (inline_summary_alloc): Likewise.
27264         (reset_inline_edge_summary): Likewise.
27265         (reset_inline_summary): Likewise.
27266         (set_cond_stmt_execution_predicate): Likewise.
27267         (set_switch_stmt_execution_predicate): Likewise.
27268         (compute_bb_predicates): Likewise.
27269         (estimate_function_body_sizes): Likewise.
27270         (inline_free_summary): Likewise.
27272 2015-06-01  Martin Liska  <mliska@suse.cz>
27274         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27275         (ipa_edge_duplication_hook): Likewise.
27276         (ipa_free_all_structures_after_ipa_cp): Likewise.
27277         (ipa_free_all_structures_after_iinln): Likewise.
27279 2015-06-01  Martin Liska  <mliska@suse.cz>
27281         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27282         (ipa_profile_generate_summary): Likewise.
27283         (ipa_profile_read_summary): Likewise.
27284         (ipa_profile): Likewise.
27286 2015-06-01  Martin Liska  <mliska@suse.cz>
27288         * tree-ssa-structalias.c (new_var_info): Use new type-based
27289         pool allocator.
27290         (new_constraint): Likewise.
27291         (init_alias_vars): Likewise.
27292         (delete_points_to_sets): Likewise.
27294 2015-06-01  Martin Liska  <mliska@suse.cz>
27296         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27297         (free_strinfo): Likewise.
27298         (pass_strlen::execute): Likewise.
27300 2015-06-01  Martin Liska  <mliska@suse.cz>
27302         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27303         pool allocator.
27304         (vn_reference_insert_pieces): Likewise.
27305         (vn_phi_insert): Likewise.
27306         (visit_reference_op_call): Likewise.
27307         (copy_phi): Likewise.
27308         (copy_reference): Likewise.
27309         (process_scc): Likewise.
27310         (allocate_vn_table): Likewise.
27311         (free_vn_table): Likewise.
27313 2015-06-01  Martin Liska  <mliska@suse.cz>
27315         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27316         pool allocator.
27317         (add_repeat_to_ops_vec): Likewise.
27318         (get_ops): Likewise.
27319         (maybe_optimize_range_tests): Likewise.
27320         (init_reassoc): Likewise.
27321         (fini_reassoc): Likewise.
27323 2015-06-01  Martin Liska  <mliska@suse.cz>
27325         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27326         pool allocator.
27327         (bitmap_set_new): Likewise.
27328         (get_or_alloc_expr_for_constant): Likewise.
27329         (get_or_alloc_expr_for): Likewise.
27330         (phi_translate_1): Likewise.
27331         (compute_avail): Likewise.
27332         (init_pre): Likewise.
27333         (fini_pre): Likewise.
27335 2015-06-01  Martin Liska  <mliska@suse.cz>
27337         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27338         (delete_dep_node): Likewise.
27339         (create_deps_list): Likewise.
27340         (free_deps_list): Likewise.
27341         (sched_deps_init): Likewise.
27342         (sched_deps_finish): Likewise.
27344 2015-06-01  Martin Liska  <mliska@suse.cz>
27346         * regcprop.c (free_debug_insn_changes): Use new type-based
27347         pool allocator.
27348         (replace_oldest_value_reg): Likewise.
27349         (pass_cprop_hardreg::execute): Likewise.
27351 2015-06-01  Martin Liska  <mliska@suse.cz>
27353         * ira-build.c (initiate_cost_vectors): Use new type-based
27354         pool allocator.
27355         (ira_allocate_cost_vector): Likewise.
27356         (ira_free_cost_vector): Likewise.
27357         (finish_cost_vectors): Likewise.
27359 2015-06-01  Martin Liska  <mliska@suse.cz>
27361         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27362         pool allocator.
27363         (free_sched_pools): Likewise.
27364         * sel-sched-ir.h (_list_alloc): Likewise.
27365         (_list_remove): Likewise.
27367 2015-06-01  Martin Liska  <mliska@suse.cz>
27369         * stmt.c (add_case_node): Use new type-based pool allocator.
27370         (expand_case): Likewise.
27371         (expand_sjlj_dispatch_table): Likewise.
27373 2015-06-01  Martin Liska  <mliska@suse.cz>
27375         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27376         (free_bb): Likewise.
27377         (pass_cse_reciprocals::execute): Likewise.
27379 2015-06-01  Martin Liska  <mliska@suse.cz>
27381         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27382         (sra_deinitialize) Likewise.
27383         (create_access_1) Likewise.
27384         (build_accesses_from_assign) Likewise.
27385         (create_artificial_child_access) Likewise.
27387 2015-06-01  Martin Liska  <mliska@suse.cz>
27389         * dse.c (get_group_info):Use new type-based pool allocator.
27390         (dse_step0) Likewise.
27391         (free_store_info) Likewise.
27392         (delete_dead_store_insn) Likewise.
27393         (free_read_records) Likewise.
27394         (record_store) Likewise.
27395         (replace_read) Likewise.
27396         (check_mem_read_rtx) Likewise.
27397         (scan_insn) Likewise.
27398         (dse_step1) Likewise.
27399         (dse_step7) Likewise.
27401 2015-06-01  Martin Liska  <mliska@suse.cz>
27403         * df-scan.c (struct df_scan_problem_data):Use new type-based
27404         pool allocator.
27405         (df_scan_free_internal) Likewise.
27406         (df_scan_alloc) Likewise.
27407         (df_grow_reg_info) Likewise.
27408         (df_free_ref) Likewise.
27409         (df_insn_create_insn_record) Likewise.
27410         (df_mw_hardreg_chain_delete) Likewise.
27411         (df_insn_info_delete) Likewise.
27412         (df_free_collection_rec) Likewise.
27413         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27414         (df_sort_and_compress_mws) Likewise.
27415         (df_ref_create_structure) Likewise.
27416         (df_ref_record) Likewise.
27418 2015-06-01  Martin Liska  <mliska@suse.cz>
27420         * df-problems.c (df_chain_create):Use new type-based pool allocator.
27421         (df_chain_unlink_1) Likewise.
27422         (df_chain_unlink) Likewise.
27423         (df_chain_remove_problem) Likewise.
27424         (df_chain_alloc) Likewise.
27425         (df_chain_free) Likewise.
27426         * df.h (struct dataflow) Likewise.
27428 2015-06-01  Martin Liska  <mliska@suse.cz>
27430         * cselib.c (new_elt_list):Use new type-based pool allocator.
27431         (new_elt_loc_list) Likewise.
27432         (unchain_one_elt_list) Likewise.
27433         (unchain_one_elt_loc_list) Likewise.
27434         (unchain_one_value) Likewise.
27435         (new_cselib_val) Likewise.
27436         (cselib_init) Likewise.
27437         (cselib_finish) Likewise.
27439 2015-06-01  Martin Liska  <mliska@suse.cz>
27441         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27442         (sh_reorg) Likewise.
27444 2015-06-01  Martin Liska  <mliska@suse.cz>
27446         * cfg.c (initialize_original_copy_tables):Use new type-based
27447         pool allocator.
27448         (free_original_copy_tables) Likewise.
27449         (copy_original_table_clear) Likewise.
27450         (copy_original_table_set) Likewise.
27452 2015-06-01  Martin Liska  <mliska@suse.cz>
27454         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27455         pool allocator.
27456         (asan_mem_ref_new) Likewise.
27457         (free_mem_ref_resources) Likewise.
27459 2015-06-01  Martin Liska  <mliska@suse.cz>
27461         * var-tracking.c (variable_htab_free):Use new type-based
27462         pool allocator.
27463         (attrs_list_clear) Likewise.
27464         (attrs_list_insert) Likewise.
27465         (attrs_list_copy) Likewise.
27466         (shared_hash_unshare) Likewise.
27467         (shared_hash_destroy) Likewise.
27468         (unshare_variable) Likewise.
27469         (var_reg_delete_and_set) Likewise.
27470         (var_reg_delete) Likewise.
27471         (var_regno_delete) Likewise.
27472         (drop_overlapping_mem_locs) Likewise.
27473         (variable_union) Likewise.
27474         (insert_into_intersection) Likewise.
27475         (canonicalize_values_star) Likewise.
27476         (variable_merge_over_cur) Likewise.
27477         (dataflow_set_merge) Likewise.
27478         (remove_duplicate_values) Likewise.
27479         (variable_post_merge_new_vals) Likewise.
27480         (dataflow_set_preserve_mem_locs) Likewise.
27481         (dataflow_set_remove_mem_locs) Likewise.
27482         (variable_from_dropped) Likewise.
27483         (variable_was_changed) Likewise.
27484         (set_slot_part) Likewise.
27485         (clobber_slot_part) Likewise.
27486         (delete_slot_part) Likewise.
27487         (loc_exp_insert_dep) Likewise.
27488         (notify_dependents_of_changed_value) Likewise.
27489         (emit_notes_for_differences_1) Likewise.
27490         (vt_emit_notes) Likewise.
27491         (vt_initialize) Likewise.
27492         (vt_finalize) Likewise.
27494 2015-06-01  Martin Liska  <mliska@suse.cz>
27496         * ira-color.c (init_update_cost_records):Use new type-based
27497         pool allocator.
27498         (get_update_cost_record) Likewise.
27499         (free_update_cost_record_list) Likewise.
27500         (finish_update_cost_records) Likewise.
27501         (initiate_cost_update) Likewise.
27503 2015-06-01  Martin Liska  <mliska@suse.cz>
27505         * lra.c (init_insn_regs): Use new type-based pool allocator.
27506         (new_insn_reg) Likewise.
27507         (free_insn_reg) Likewise.
27508         (free_insn_regs) Likewise.
27509         (finish_insn_regs) Likewise.
27510         (init_insn_recog_data) Likewise.
27511         (init_reg_info) Likewise.
27512         (finish_reg_info) Likewise.
27513         (lra_free_copies) Likewise.
27514         (lra_create_copy) Likewise.
27515         (invalidate_insn_data_regno_info) Likewise.
27517 2015-06-01  Martin Liska  <mliska@suse.cz>
27519         * lra-lives.c (free_live_range): Use new type-based pool allocator.
27520         (free_live_range_list) Likewise.
27521         (create_live_range) Likewise.
27522         (copy_live_range) Likewise.
27523         (lra_merge_live_ranges) Likewise.
27524         (remove_some_program_points_and_update_live_ranges) Likewise.
27525         (lra_live_ranges_init) Likewise.
27526         (lra_live_ranges_finish) Likewise.
27528 2015-06-01  Martin Liska  <mliska@suse.cz>
27530         * et-forest.c (et_new_occ): Use new type-based pool allocator.
27531         (et_new_tree): Likewise.
27532         (et_free_tree): Likewise.
27533         (et_free_tree_force): Likewise.
27534         (et_free_pools): Likewise.
27535         (et_split): Likewise.
27537 2015-06-01  Martin Liska  <mliska@suse.cz>
27539         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27540         to header file.
27541         * alloc-pool.h (pool_allocator::pool_allocator): New function.
27542         (pool_allocator::release): Likewise.
27543         (inline pool_allocator::release_if_empty): Likewise.
27544         (inline pool_allocator::~pool_allocator): Likewise.
27545         (pool_allocator::allocate): Likewise.
27546         (pool_allocator::remove): Likewise.
27548 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27550         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27551         in comment.
27553 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27555         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27556         to fusible_ops.
27557         * config/arm/arm.c (arm_print_tune_info): Likewise.
27558         (arm_macro_fusion_p): Likewise.
27559         (arm_macro_fusion_pair_p): Likewise.
27561 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27563         * config/aarch64/aarch64-protos.h (tune_params): Rename
27564         fuseable_ops to fusible_ops.
27565         * config/aarch64/aarch64.c (generic_tunings): Rename
27566         fuseable_ops to fusible_ops.
27567         (cortexa53_tunings): Likewise.
27568         (cortexa57_tunings): Likewise.
27569         (thunderx_tunings): Likewise.
27570         (xgene1_tunings): Likewise.
27571         (aarch64_macro_fusion_p): Likewise.
27572         (aarch64_macro_fusion_pair_p): Likewise.
27574 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27576         * config/s390/driver-native.c: New file.
27577         * config/s390/x-native: New file.
27578         * config.host: Add new files for s390.
27579         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27580         and -march=native
27581         * config.gcc: Likewise.
27582         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27583         * config/s390/s390-opts.h (enum processor_type): Ditto.
27584         * config/s390/s390.c (s390_option_override): Catch unhandled
27585         PROCESSOR_NATIVE
27587 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
27589         PR target/65527
27590         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27591         redirection for instrumented calls.
27592         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27593         (append_compiler_options): Append -fcheck-pointer-bounds.
27594         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27595         (chkp_redirect_edge): New.
27596         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27597         (chkp_redirect_edge): New.
27599 2015-06-01  Richard Biener  <rguenther@suse.de>
27601         PR tree-optimization/66280
27602         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27603         def-use walking.
27605 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27607         * config/aarch64/aarch64.md
27608         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27609         logic_shift_imm.
27611 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27613         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27614         Remove obsolete kludge.
27616 2015-06-01  Richard Biener  <rguenther@suse.de>
27618         * tree-ssa-reassoc.c (get_rank): Simplify.
27620 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
27622         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27623         * configure: Regenerated.
27625 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
27627         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27628         issue (add space between string literal and macro).
27629         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27631 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
27633         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27634         implict or explicit -fPIE or -fpie.
27636 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
27638         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27640 2015-05-28  DJ Delorie  <dj@redhat.com>
27642         * expmed.c (extract_bit_field_1): Avoid clobbering a
27643         yet-to-be-used base/index register.
27645 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
27647         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27648         (alias_stats): Add num_universal.
27649         (alias_set_subset_of): Special case pointers; be ready for NULL
27650         children.
27651         (alias_sets_conflict_p): Special case pointers; be ready for NULL
27652         children.
27653         (init_alias_set_entry): Break out from ...
27654         (record_alias_subset): ... here; propagate new fields;
27655         allocate children only when really needed.
27656         (get_alias_set): Do less generous pointer globbing.
27657         (dump_alias_stats_in_alias_c): Update statistics.
27659 2015-05-30  Alan Modra  <amodra@gmail.com>
27661         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27662         correct block for use of r12.
27663         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27665 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27667         PR target/66215
27668         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27669         with -mhotpatch=.
27671 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
27673         PR tree-optimization/66142
27674         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27675         virtual phis that feed themselves.
27677 2015-05-29  Richard Biener  <rguenther@suse.de>
27679         PR tree-optimization/66314
27680         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27681         parameter that says which loop the new block belongs to.
27682         (ssa_create_duplicates): Blocks duplicated for the threaded
27683         path belong to the loop of the thread destination.
27685 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27687         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27688         to cleanup-saved-temps.
27689         * doc/sourcebuild.texi (Clean up generated test files): Expand
27690         introduction.
27691         (dg-keep-saved-temps): Document new proc.
27692         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27693         cleanup-saved-temps): Remove.
27695 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
27697         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27698         gcc_AC_CHECK_DECLS.
27699         * configure: Regenerate.
27701 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27703         * config/nios2/linux.h (CPP_SPEC): Define.
27705 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27707         * config/microblaze/linux.h (CPP_SPEC): Define.
27709 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27711         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27712         -pthread is specified.
27714 2015-05-28  Richard Biener  <rguenther@suse.de>
27716         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27717         (vect_fixup_scalar_cycles_with_patterns): Likewise.
27718         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27719         after pattern recog.
27720         (vect_create_epilog_for_reduction): Properly handle reductions
27721         with patterns.
27722         (vectorizable_reduction): Likewise.
27723         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27724         reduction chains.
27725         (vect_get_constant_vectors): Create the correct number of
27726         initial values for reductions.
27727         (vect_schedule_slp_instance): Handle reduction chains that are
27728         type changing properly.
27729         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27731 2015-05-28  Richard Biener  <rguenther@suse.de>
27733         PR tree-optimization/66142
27734         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27735         values better in memcpy destination handling.  Handle non-aliasing
27736         we discover here.
27738 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
27740         PR target/63810
27741         * config/darwin-c.c (version_components): New global enum.
27742         (parse_version, version_as_legacy_macro)
27743         (version_as_modern_macro, macosx_version_as_macro): New functions.
27744         (version_as_macro): Remove.
27745         (darwin_cpp_builtins): Use new function.
27747 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
27749         * builtins.c (expand_builtin_acc_on_device): Mark parameters
27750         with ATTRIBUTE_UNUSED.
27752 2015-05-28  Julian Brown  <julian@codesourcery.com>
27754         PR libgomp/65742
27756         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27757         sequence for !ACCEL_COMPILER.
27759 2015-05-28  Nick Clifton  <nickc@redhat.com>
27761         * config/rx/rx.c (push_regs): New function.  Extracts code from...
27762         (rx_expand_prologue): ... here.  Use push_regs to push even small
27763         spans of registers.
27764         (pop_regs): New function.
27765         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
27766         registers.
27768 2015-05-28  Richard Biener  <rguenther@suse.de>
27770         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27771         member.
27772         (SLP_INSTANCE_BODY_COST_VEC): Remove.
27773         (vect_update_slp_costs_according_to_vf): Likewise.
27774         (vect_slp_analyze_operations): Update prototype.
27775         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27776         vect_update_slp_costs_according_to_vf, adjust.
27777         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27778         (vect_analyze_slp_cost_1): Likewise.
27779         (vect_analyze_slp_cost): Likewise.  Properly deal with
27780         widening reduction ops.  Commit body costs.
27781         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
27782         cost for loops from here.
27783         (vect_slp_analyze_operations): But do it from here when
27784         the vectorization factor is known and stmts are analyzed.
27785         (vect_bb_vectorization_profitable_p): Simplify.
27786         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27787         (vect_update_slp_costs_according_to_vf): Remove.
27789 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
27790             H.J. Lu  <hongjiu.lu@intel.com>
27792         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27793         (BUILD_CFLAGS): Likewise.
27794         (BUILD_CXXFLAGS): Likewise.
27795         (LINKER): Add @NO_PIE_FLAG@.
27796         (BUILD_LDFLAGS): Likewise.
27797         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27798         --enable-default-pie.
27799         * common.opt (fPIE): Initialize to -1.
27800         (fpie): Likewise.
27801         (no-pie): New option.
27802         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27803         * configure.ac: Add --enable-default-pie.
27804         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
27805         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
27806         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
27807         * gcc.c (NO_PIE_SPEC): New.
27808         (PIE_SPEC): Likewise.
27809         (NO_FPIE1_SPEC): Likewise.
27810         (FPIE1_SPEC): Likewise.
27811         (NO_FPIE2_SPEC): Likewise.
27812         (FPIE2_SPEC): Likewise.
27813         (NO_FPIE2_SPEC): Likewise.
27814         (FPIE_SPEC): Likewise.
27815         (NO_FPIE_SPEC): Likewise.
27816         (NO_FPIC1_SPEC): Likewise.
27817         (FPIC1_SPEC): Likewise.
27818         (NO_FPIC2_SPEC): Likewise.
27819         (FPIC2_SPEC): Likewise.
27820         (NO_FPIC2_SPEC): Likewise.
27821         (FPIC_SPEC): Likewise.
27822         (NO_FPIC_SPEC): Likewise.
27823         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27824         (FPIE1_OR_FPIC1_SPEC): Likewise.
27825         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27826         (FPIE2_OR_FPIC2_SPEC): Likewise.
27827         (NO_FPIE_AND_FPIC_SPEC): Likewise.
27828         (FPIE_OR_FPIC_SPEC): Likewise.
27829         (LD_PIE_SPEC): Likewise.
27830         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
27831         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27832         * config/darwin.h (PIE_SPEC): Renamed to ...
27833         (DARWIN_PIE_SPEC): This.
27834         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27835         * config/darwin9.h (PIE_SPEC): Renamed to ...
27836         (DARWIN_PIE_SPEC): This.
27837         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27838         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27839         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27840         FPIE2_OR_FPIC2_SPEC.
27841         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27842         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27843         * config/sol2.h (ASM_PIC_SPEC): Likewise.
27844         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27845         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27846         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27847         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27848         * config/m32r/m32r.h (ASM_SPEC): Likewise.
27849         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27850         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27851         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27852         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27853         * config/sparc/linux.h (ASM_SPEC): Likewise.
27854         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27855         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27856         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27857         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27858         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27859         * config/sparc/sparc.h (ASM_SPEC): Likewise.
27860         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27861         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27862         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27863         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27864         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27865         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27866         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27867         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27868         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27869         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27870         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27871         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27872         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27873         * config/vax/linux.h (ASM_SPEC): Likewise.
27874         * doc/install.texi: Document --enable-default-pie.
27875         * doc/invoke.texi: Document -no-pie.
27876         * config.in: Regenerated.
27877         * configure: Likewise.
27879 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27881         PR rtl-optimization/66168
27882         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27883         can_move_invariant_reg.
27885 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
27887         PR target/66148
27888         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27889         REG_EQUAL note when doing insert.
27891         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27892         instead of "%d" for 'o' operand.
27894 2015-05-27  Nathan Sidwell  <nathan@acm.org>
27896         PR c++/66270
27897         * tree.c (build_pointer_type_for_mode): Canonical type does not
27898         inherit can_alias_all.
27899         (build_reference_type_for_mode): Likewise.
27901 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27903         * expr.h (array_at_struct_end_p): Move to...
27904         (array_ref_element_size): Likewise.
27905         (component_ref_field_offset): Likewise.
27906         * tree.h (array_ref_element_size): ...here.
27907         (array_at_struct_end_p): Likewise.
27908         (component_ref_field_offset): Likewise.
27909         * expr.c (array_ref_element_size): Move to...
27910         (array_ref_low_bound): Likewise.
27911         (array_at_struct_end_p): Likewise.
27912         (array_ref_up_bound): Likewise.
27913         (component_ref_field_offset): Likewise.
27914         * tree.c (array_ref_element_size): ...here.
27915         (array_ref_low_bound): Likewise.
27916         (array_ref_up_bound): Likewise.
27917         (array_at_struct_end_p): Likewise.
27918         (component_ref_field_offset): Likewise.
27920 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27921             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27923         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27925 2015-05-27  Jason Merrill  <jason@redhat.com>
27927         PR bootstrap/66304
27928         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27929         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27930         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27932 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
27934         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27935         is true.
27937         * statistics.c (statistics_fini_pass): Print pass name.
27939 2015-05-27  Richard Biener  <rguenther@suse.de>
27941         PR tree-optimization/66272
27942         Revert parts of
27943         2014-08-15  Richard Biener  <rguenther@suse.de>
27945         PR tree-optimization/62031
27946         * tree-data-ref.c (dr_analyze_indices): Do not set
27947         DR_UNCONSTRAINED_BASE.
27948         (dr_may_alias_p): All indirect accesses have to go the
27949         formerly DR_UNCONSTRAINED_BASE path.
27950         * tree-data-ref.h (struct indices): Remove
27951         unconstrained_base member.
27952         (DR_UNCONSTRAINED_BASE): Remove.
27954 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
27956         * dwarf2out.c: Remove block_map.
27957         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27958         (gen_lexical_block_die): Same.
27959         (dwarf2out_function_decl): Remove block_map use.
27960         (dwarf2out_c_finalize): Same.
27961         * tree-core.h (struct tree_block): Add die field.
27962         * tree.h (BLOCK_DIE): New.
27964 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27966         PR target/65358
27967         * expr.c (memory_load_overlap): New function.
27968         (emit_push_insn): When pushing partial args to the stack would
27969         clobber the register part load the overlapping part into a pseudo
27970         and put it into the hard reg after pushing.  Change return type
27971         to bool.  Add bool argument.
27972         * expr.h (emit_push_insn): Change return type to bool.
27973         Add bool argument.
27974         * calls.c (expand_call): Cancel sibcall optimization when encountering
27975         partial argument on targets with ARGS_GROW_DOWNWARD and
27976         !STACK_GROWS_DOWNWARD.
27977         (emit_library_call_value_1): Update callsite of emit_push_insn.
27978         (store_one_arg): Likewise.
27980 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27982         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27984 2015-05-27  Martin Liska  <mliska@suse.cz>
27986         * Makefile.in: Add additional dependencies related to memory report
27987         enhancement.
27988         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27989         * bitmap.c (struct bitmap_descriptor_d): Remove.
27990         (struct loc): Likewise.
27991         (struct bitmap_desc_hasher): Likewise.
27992         (bitmap_desc_hasher::hash): Likewise.
27993         (bitmap_desc_hasher::equal): Likewise.
27994         (get_bitmap_descriptor): Likewise.
27995         (bitmap_register): User new memory descriptor API.
27996         (register_overhead): Likewise.
27997         (bitmap_find_bit): Register nsearches and search_iter statistics.
27998         (struct bitmap_output_info): Remove.
27999         (print_statistics): Likewise.
28000         (dump_bitmap_statistics): Use new memory descriptor.
28001         * bitmap.h (struct bitmap_usage): New class.
28002         * genmatch.c: Extend header file inclusion.
28003         * genpreds.c: Likewise.
28004         * ggc-common.c (struct ggc_usage): New class.
28005         (struct ggc_loc_desc_hasher): Remove.
28006         (ggc_loc_desc_hasher::hash): Likewise.
28007         (ggc_loc_desc_hasher::equal): Likewise.
28008         (struct ggc_ptr_hash_entry): Likewise.
28009         (struct ptr_hash_hasher): Likewise.
28010         (ptr_hash_hasher::hash): Likewise.
28011         (ptr_hash_hasher::equal): Likewise.
28012         (make_loc_descriptor): Likewise.
28013         (ggc_prune_ptr): Likewise.
28014         (dump_ggc_loc_statistics): Use new memory descriptor.
28015         (ggc_record_overhead): Likewise.
28016         (ggc_free_overhead): Likewise.
28017         (final_cmp_statistic): Remove.
28018         (cmp_statistic): Likewise.
28019         (ggc_add_statistics): Liekwise.
28020         (ggc_prune_overhead_list): Likewise.
28021         * hash-map-traits.h: New file.
28022         * hash-map.h (struct default_hashmap_traits): Move the traits to a
28023         separate header file.
28024         * hash-set.h: Pass memory statistics info to ctor.
28025         * hash-table.c (void dump_hash_table_loc_statistics): New function.
28026         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28027         (hash_table::~hash_table): Register memory release operation.
28028         (hash_table::alloc_entries): Handle memory allocation operation.
28029         (hash_table::expand): Likewise.
28030         * inchash.c (iterative_hash_hashval_t): Move implementation to header
28031         file.
28032         (iterative_hash_host_wide_int): Likewise.
28033         * inchash.h (class hash): Likewise.
28034         * mem-stats-traits.h: New file.
28035         * mem-stats.h: New file.
28036         (mem_location): Add new class.
28037         (mem_usage): Likewise.
28038         (mem_alloc_description): Likewise.
28039         * sese.c: Add new header file inclusision.
28040         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28041         and hash_set.
28042         * tree-sra.c: Add new header file inclusision.
28043         * vec.c (struct vec_descriptor): Remove.
28044         (hash_descriptor): Likewise.
28045         (struct vec_usage): Likewise.
28046         (struct ptr_hash_entry): Likewise.
28047         (hash_ptr): Likewise.
28048         (eq_ptr): Likewise.
28049         (vec_prefix::register_overhead): Use new memory descriptor API.
28050         (vec_prefix::release_overhead): Likewise.
28051         (add_statistics): Remove.
28052         (dump_vec_loc_statistics): Use new memory descriptor API.
28053         * vec.h (struct vec_prefix): Likewise.
28054         (va_heap::reserve): Likewise.
28055         (va_heap::release): Likewise.
28056         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28058 2015-05-27  Richard Biener  <rguenther@suse.de>
28060         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28061         earlier and remove ??? comment.
28062         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28063         and got called from loop analysis bail out.  Always pass the SLP
28064         node to the vectorizable_* functions.
28065         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28066         the premature SLP check here.
28067         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28068         detected SLP stmts.
28069         (vect_detect_hybrid_slp_1): Likewise.
28071 2015-05-26  Jeff Law  <law@redhat.com>
28073         * combine.c (find_split_point): Verify that the shift count is a
28074         constant when choosing (plus (ashift ...)) as a split point.
28076         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28077         No functional changes.
28079 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
28081         * ipa-polymorphic-call.c
28082         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28083         case when call target is already known.
28085 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
28087         PR target/65979
28088         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28089         take into account the case that operands[1] and operands[2]
28090         are the same register.
28092 2015-05-26  Michael Matz  <matz@suse.de>
28094         PR middle-end/66251
28096         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28097         stores.
28098         (vect_create_vectorized_demotion_stmts): Always set
28099         STMT_VINFO_VEC_STMT, also with SLP.
28100         (vectorizable_store): Handle strided group stores.
28102 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28104         PR target/66049
28105         * config/aarch64/aarch64.md
28106         (*adds_shift_imm_<mode>):  New pattern.
28107         (*subs_shift_imm_<mode>):  Likewise.
28108         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
28109         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28110         (*add_uxt<mode>_shift2): Likewise.
28111         (*add_uxtsi_shift2_uxtw): Likewise.
28112         (*sub_uxt<mode>_shift2): Likewise.
28113         (*sub_uxtsi_shift2_uxtw): Likewise.
28115 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
28117         * config/rs6000/constraints.md (Y, U): Use match_test.
28119 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28121         PR target/52144
28122         * config/arm/arm.c (arm_option_check_internal)
28123         (arm_option_params_internal): Check opts->target_flags to set macros.
28124         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28125         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28126         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28127         (builtin_define): Replaced with def_or_undef_macro.
28128         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28129         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28130         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28131         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28132         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28133         (TARGET_ARM_FEATURE_LDREX_P)
28134         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28135         * config/arm/arm-c.c (def_or_undef_macro): New function.
28136         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28138 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28140         * c-common.h (builtin_define_with_int_value)
28141         (builtin_define_type_sizeof): Declare.
28142         * c-cppbuiltin.c (builtin_define_with_int_value)
28143         (builtin_define_type_sizeof): Externalize.
28144         (builtin_define_std): Cleanup declaration.
28145         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28146         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28147         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28148         (builtin_define, builtin_assert): New macros.
28150 2015-05-26  Richard Biener  <rguenther@suse.de>
28152         PR tree-optimization/66142
28153         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28154         MEM_REFs for the same base address.
28156 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28158         PR ipa/66181
28159         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28161 2015-05-26  Jason Merrill  <jason@redhat.com>
28163         * configure.ac: Set CXXFLAGS for ISL test.
28164         * configure: Regenerate.
28166         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
28167         strstr and basename.
28168         * configure: Regenerate.
28170 2015-05-26  Richard Biener  <rguenther@suse.de>
28172         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28173         X % C -> X & (C - 1) for C being a power-of two to ...
28174         * match.pd: ... patterns.
28176 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
28178         * match.pd (swapped_tcc_comparison): New operator list.
28179         (-A CMP -B): New simplification.
28180         * fold-const.c (fold_comparison): Remove corresponding code.
28182 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28184         * caller-save.c (init_caller_save): Base temporary register numbers
28185         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28186         * cfgloopanal.c (init_set_costs): Likewise.
28187         * dojump.c (prefer_and_bit_test): Likewise.
28188         * expr.c (init_expr_target): Likewise.
28189         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28190         * lower-subreg.c (init_lower_subreg): Likewise.
28191         * postreload.c (reload_cse_regs_1): Likewise.
28193 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28195         * gensupport.h (compute_test_codes): Declare.
28196         * gensupport.c (compute_predicate_codes): Rename to...
28197         (compute_test_codes): ...this.  Generalize error message.
28198         (process_define_predicate): Update accordingly.
28199         * genpreds.c (compute_maybe_allows): Delete.
28200         (add_constraint): Use compute_test_codes to determine whether
28201         something can accept a SUBREG, REG or MEM.
28203 2015-05-26  Torvald Riegel  <triegel@redhat.com>
28205         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28206         'memory model' to align with C++11; fix description of memory orders;
28207         fix a few typos.
28209 2015-05-26  Richard Biener  <rguenther@suse.de>
28211         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28212         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
28213         detect whether we apply SLP.  Remove call to
28214         vect_update_slp_costs_according_to_vf.
28215         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28216         vect_update_slp_costs_according_to_vf from here.  Dispatch
28217         to vect_slp_analyze_operations to analyze SLP stmts.
28218         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28219         unused bb_vec_info parameter, adjust assert.
28220         (vect_slp_analyze_operations): Pass in the slp instance tree
28221         instead of bb_vec_info.
28222         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28223         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28225 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28227         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28228         Q_REGS.  Expand comment.
28229         (REG_CLASS_NAMES): Ditto.
28230         (REG_CLASS_CONTENTS): Ditto.
28232 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
28234         PR target/66274
28235         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28236         when LEGACY_INT_REGNO_P is processed.
28238 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28240         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28242 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28244         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28245         register if not marked dead/unused, before return.
28247 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28249         PR lto/66180
28250         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28251         is set; check for assembler name at LTO time.
28252         (type_in_anonymous_namespace): Remove hacks, check that all
28253         anonymous types are called "<anon>"
28254         (odr_type_p): Simplify; add check for "<anon>"
28255         (odr_subtypes_equivalent): Add odr_type_p check.
28256         * tree.c (need_assembler_name_p): Even anonymous namespace needs
28257         assembler name.
28259 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28261         * ipa-utils.h (method_class_type): Remove.
28262         * cgraphunit.c (walk_polymorphic_call_targets): Use
28263         TYPE_METHOD_BASETYPE.
28264         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28265         on main variants only.
28266         (method_class_type): Remove.
28267         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28268         (build_type_inheritance_graph): Likewise.
28269         * ipa-icf.c (sem_function::equals_wpa): Likewise.
28270         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28271         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28273 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28275         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28276         is_typedef_decl, typedef_variant_p): Constify.
28277         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28278         is_typedef_decl, typedef_variant_p): Constify.
28280 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28282         * defaults.h (gen_tablejump): New function.
28283         (HAVE_tablejump): Add default value.
28284         * expr.c: Adjust.
28285         * stmt.c: Likewise.
28287 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28289         * defaults.h (gen_store_multiple): New function.
28290         (HAVE_store_multiple): Add default value.
28291         * expr.c (move_block_from_reg): Adjust.
28293 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28295         * defaults.h (gen_load_multiple): New function.
28296         (HAVE_load_multiple): Add default value.
28297         * expr.c (move_block_to_reg): Adjust.
28299 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28301         * defaults.h (gen_mem_signal_fence): New function.
28302         (HAVE_mem_signal_fence): Add default value.
28303         * optabs.c: Adjust.
28305 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28307         * defaults.h (gen_memory_barrier): New function.
28308         (HAVE_memory_barrier): Add default value.
28309         * optabs.c: Adjust.
28311 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28313         * defaults.h (gen_mem_thread_fence): New function.
28314         (HAVE_mem_thread_fence): Add default definition.
28315         * optabs.c: Adjust.
28317 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28319         * combine.c (find_split_point): Check the value of HAVE_lo_sum
28320         instead of if it is defined.
28321         (combine_simplify_rtx): Likewise.
28322         * lra-constraints.c (process_address_1): Likewise.
28323         * config/darwin.c: Adjust.
28324         * genconfig.c (main): Always define HAVE_lo_sum.
28326 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28328         * genmatch.c (parser::parse_operation): Reject expanding
28329         operator-list inside 'for'.
28331 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28333         * genmatch.c (parser::parse_for): Reject iterator if used as
28334         operator-list.
28336 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28338         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28339         after end of id-list.
28341 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28343         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28344         we do not try to compute canonical type for type that does not need
28345         alias set.
28346         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28347         FUNCITON_TYPE.
28348         * tree.h (type_with_alias_set_p): New.
28350 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28352         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
28353         function attributes.
28354         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28356 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
28358         * Makefile.in (check_gcc_parallelize): Delete.
28359         (lang_checks_parallelized): Update comment.
28361 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
28363         PR rtl-optimization/66237
28364         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28365         location of an "as_a" cast.
28367 2015-05-22  Jeff Law  <law@redhat.com>
28369         * config/pa/pa.md (non-canonical shift-add insns): Remove.
28370         (peepholes with non-canonical RTL sources): Remove.
28371         (peepholes for indexed stores of FP regs in integer modes): Match and
28372         generate canonical RTL.
28374 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28376         PR tree-optimization/63387
28377         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28378         ((x ord x) & (y ord y) -> (x ord y),
28379         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28380         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28381         vectors like scalars.
28383 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28385         * convert.c (convert_to_integer, convert_to_vector): Include the
28386         types in the error message.
28388 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28390         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28391         simplifications.
28393 2015-05-22  Jeff Law  <law@redhat.com>
28395         * config/pa/pa.md (integer_indexed_store splitters): Use
28396         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
28397         insns -- adjusting the constant 2nd operand accordingly.
28399         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28400         (plus (ashift X log2) Y) if it is a split point.
28402         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28403         out of hppa_legitimize_address to handle both forms of a multiply
28404         by 2, 4 or 8.
28405         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28406         Always generate the ASHIFT variant as the result is not directly
28407         used in a MEM.  Update comments and refactor slightly to improve
28408         readability.
28410 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28412         PR target/65491
28413         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28414         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
28415         (aarch64_composite_type_p): Return false if given type and mode are
28416         for a short vector.
28418 2015-05-22  Richard Biener  <rguenther@suse.de>
28420         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28421         member.
28422         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28423         patterns when determining whether SLP is pure.
28424         (vect_is_slp_reduction): Remove check for pattern stmts.
28425         (vect_is_simple_reduction_1): Remove dead code.
28426         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28427         (vect_get_and_check_slp_defs): Pass in the stmt number.
28428         Allow the first def in a reduction to be not a pattern stmt when
28429         the rest of the stmts def are patterns.
28430         (vect_build_slp_tree_1): Allow tcc_expression codes like
28431         SAD_EXPR and DOT_PROD_EXPR.
28432         (vect_build_slp_tree): Adjust.
28433         (vect_analyze_slp): Refactor and move BB vect error message ...
28434         (vect_slp_analyze_bb_1): ... here.
28436 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
28438         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28439         for CSWTCH temporary.
28441 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28443         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28444         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
28445         unknown unspecs.
28447 2015-05-22  Richard Biener  <rguenther@suse.de>
28449         PR tree-optimization/66251
28450         * tree-vect-stmts.c (vectorizable_conversion): Properly
28451         set STMT_VINFO_VEC_STMT even for the SLP case.
28453 2015-05-22  Marek Polacek  <polacek@redhat.com>
28455         * doc/extend.texi: Use @pxref instead of @xref.
28457 2015-05-22  hiraditya  <hiraditya@msn.com>
28459         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28460         redundant if.
28462 2015-05-22  Richard Biener  <rguenther@suse.de>
28464         PR tree-optimization/65701
28465         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28466         Move peeling cost models into one place.  Peel for alignment
28467         for single loads only if an aligned load is cheaper than
28468         an unaligned load.
28470 2015-05-22  Marek Polacek  <polacek@redhat.com>
28472         PR c/47043
28473         * doc/extend.texi (Enumerator Attributes): New section.
28474         Document syntax of enumerator attributes.
28476 2015-05-22  Richard Biener  <rguenther@suse.de>
28478         * tree-vect-loop.c (get_reduction_op): New function.
28479         (vect_model_reduction_cost): Use it, add reduc_index parameter.
28480         Make ready for BB reductions.
28481         (vect_create_epilog_for_reduction): Use get_reduction_op.
28482         (vectorizable_reduction): Init reduc_index to a valid value.
28483         Adjust vect_model_reduction_cost call.
28484         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28485         operand for reduction defaults.  Add SAD_EXPR support.
28486         Assert we have a neutral op for SLP reductions.
28487         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28488         walking pattern stmt ops only recurse to SSA names.
28490 2015-05-22  Richard Biener  <rguenther@suse.de>
28492         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28493         assert with guard, remove check on detected reduction.
28494         (vect_recog_sad_pattern): Likewise.
28495         (vect_recog_widen_sum_pattern): Likewise.
28497 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28499         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28500         __always_inline__ attribute.
28501         (vaesdq_u8): Likewise.
28502         (vaesmcq_u8): Likewise.
28503         (vaesimcq_u8): Likewise.
28504         (vsha1cq_u32): Likewise.
28505         (vsha1mq_u32): Likewise.
28506         (vsha1pq_u32): Likewise.
28507         (vsha1h_u32): Likewise.
28508         (vsha1su0q_u32): Likewise.
28509         (vsha1su1q_u32): Likewise.
28510         (vsha256hq_u32): Likewise.
28511         (vsha256h2q_u32): Likewise.
28512         (vsha256su0q_u32): Likewise.
28513         (vsha256su1q_u32): Likewise.
28514         (vmull_p64): Likewise.
28515         (vmull_high_p64): Likewise.
28517 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28519         * final.c (final_scan_insn): Don't check HAVE_peephole with the
28520         preprocessor.
28521         * output.h: Likewise.
28522         * genconfig.c (main): Alwways define HAVE_peephole.
28523         * genpeep.c: Don't emit checks of HAVE_peephole.
28525 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28527         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28528         check HAVE_conditional_move with the preprocessor.
28530 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28532         * genconfig.c (main): Always define HAVE_conditional_move.
28533         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28534         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28535         is defined.
28537 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28539         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28540         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28541         and FRAME_POINTER_REGNUM with the preprocessor.
28543 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28545         * defaults.h: Add default for STACK_PUSH_CODE.
28546         * expr.c: Don't redefine STACK_PUSH_CODE.
28547         * recog.c: Likewise.
28549 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28551         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28552         sched-deps.c: Use if instead of preprocessor checks with
28553         STACK_GROWS_DOWNWARD.
28555 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28557         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28558         is defined.
28559         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28560         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28561         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28562         * doc/tm.texi: Regenerate.
28564 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
28566         PR target/66232
28567         * config/i386/constraints.md (Bg): New constraint for GOT memory
28568         operand.
28569         * config/i386/i386.md (*call_got_x32): New pattern.
28570         (*call_value_got_x32): Likewise.
28571         * config/i386/predicates.md (GOT_memory_operand): New predicate.
28573 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
28575         PR tree-optimization/66233
28576         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28577         Simplify.
28579 2015-05-21  Jeff Law  <law@redhat.com>
28581         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28582         than MULT for shadd sequences.
28584 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
28586         * alias.c (alias_stats): New static var.
28587         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28588         (dump_alias_stats_in_alias_c): New function.
28589         * alias.h (dump_alias_stats_in_alias_c): Declare.
28590         * tree-ssa-alias.c (dump_alias_stats): Call it.
28592 2015-05-08  Michael Matz  <matz@suse.de>
28594         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28595         to strided_p.
28596         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28597         (STMT_VINFO_STRIDED_P): ... this.
28598         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28599         (vect_verify_datarefs_alignment): Likewise.
28600         (vect_enhance_data_refs_alignment): Likewise.
28601         (vect_analyze_data_ref_access): Likewise.
28602         (vect_analyze_data_refs): Accept strided stores.
28603         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28604         (vect_model_load_cost): Adjust for macro rename.
28605         (vectorizable_mask_load_store): Likewise.
28606         (vectorizable_load): Likewise.
28607         (vectorizable_store): Open code strided stores.
28609 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28611         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28612         Document sqrt_insn.
28614 2015-05-21  Richard Biener  <rguenther@suse.de>
28616         PR c++/66211
28617         * match.pd: Guard pattern optimzing (int)(float)int
28618         conversions to apply only on GIMPLE.
28620 2015-05-21  Jeff Law  <law@redhat.com>
28622         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28623         multiply-accumulate/shift-add insn generation.
28625 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
28627         PR target/54236
28628         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28629         operands[1] are the same.
28631 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
28633         PR middle-end/66221
28634         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28635         build_distinct_type_copy to copy bounds.
28637 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
28639         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28640         Change to unsigned int.
28642 2015-05-20  Jeff Law  <law@redhat.com>
28644         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28645         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28646         (pa_shadd_constant_p): Allow constants for shadd insns rather
28647         than valid scaling constants for memory addresses.
28648         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28649         * config/pa/predicates.md (mem_shadd_operand): New predicate.
28650         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28651         (shift-add insns using ASHIFT): New patterns.
28653 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
28655         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28656         feasible.
28657         (fix_up_fall_thru_edges): Likewise.
28658         (fix_crossing_conditional_branches): Likewise. Promote jump targets
28659         from to rtx_insn to rtx_code_label where feasible.
28660         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28661         gen_move_insn (returned type changed to rtx_insn).
28662         * builtins.c (expand_errno_check): Fix arguments of
28663         do_compare_rtx_and_jump (now expects rtx_code_label).
28664         (expand_builtin_acc_on_device): Likewise.
28665         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28666         invert_jump (now exprects rtx_jump_insn).
28667         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28668         (construct_init_block): Use rtx_code_label.
28669         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28670         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28671         calling redirect_jump.
28672         (patch_jump_insn): Likewise.
28673         (redirect_branch_edge): Likewise.
28674         (force_nonfallthru_and_redirect): Likewise.
28675         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28676         when suitable.
28677         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28678         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28679         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28680         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28681         to store the value retured by gen_label_rtx.
28682         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28683         rtx_jump_insn.
28684         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28685         (split_branches): Fix calls of redirect_jump.
28686         * dojump.c (jumpifnot): Promote argument type from rtx to
28687         rtx_code_label.
28688         (jumpifnot_1): Likewise.
28689         (jumpif): Likewise.
28690         (jumpif_1): Likewise.
28691         (do_jump_1): Likewise.
28692         (do_jump): Likewise. Use rtx_code_label when feasible.
28693         (do_jump_by_parts_greater_rtx): Likewise.
28694         (do_jump_by_parts_zero_rtx): Likewise.
28695         (do_jump_by_parts_equality_rtx): Likewise.
28696         (do_compare_rtx_and_jump): Likewise.
28697         * dojump.h: Update function prototypes.
28698         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28699         returns rtx_insn).
28700         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28701         rtx_jump_insn.
28702         (emit_label_before): Likewise.
28703         (emit_jump_insn_after_noloc): Likewise.
28704         (emit_jump_insn_after_setloc): Likewise.
28705         (emit_jump_insn_after): Likewise
28706         (emit_jump_insn_before_setloc): Likewise.
28707         (emit_jump_insn_before): Likewise.
28708         (emit_label_before): Promote return type to rtx_code_label.
28709         (emit_label): Likewise.
28710         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28711         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28712         gen_move_insn.
28713         (emit_stack_restore): Likewise.
28714         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28715         (do_cmp_and_jump): Likewise.
28716         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28717         from rtx to rtx_code_label.
28718         (gen_move_insn_uncast): New function.
28719         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28720         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28721         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28722         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28723         invert_jump_1 and redirect_jump_1.
28724         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28725         do_compare_rtx_and_jump.
28726         (expand_addsub_overflow): Likewise.
28727         (expand_neg_overflow): Likewise.
28728         (expand_mul_overflow): Likewise.
28729         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28730         return value of gen_move_insn.
28731         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28732         * loop-doloop.c (add_test): Use rtx_code_label.
28733         (doloop_modify): Likewise.
28734         (doloop_optimize): Likewise.
28735         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28736         * lra-constraints.c (emit_spill_move): Remove cast of value returned
28737         by gen_move_insn.
28738         (inherit_reload_reg): Add cast when calling dump_insn_slim.
28739         (split_reg): Likewise.
28740         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28741         gen_move_insn.
28742         * optabs.c (expand_binop_directly): Remove casts of values returned by
28743         maybe_gen_insn.
28744         (expand_unop_direct): Likewise.
28745         (expand_abs): Likewise.
28746         (maybe_emit_unop_insn): Likewise.
28747         (maybe_gen_insn): Promote return type to rtx_insn.
28748         * optabs.h: Update prototype of maybe_gen_insn.
28749         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28750         redundant cast.
28751         * recog.c (struct peep2_insn_data): Promote type of insn field to
28752         rtx_insn.
28753         (peep2_reinit_state): Use NULL instead of NULL_RTX.
28754         (peep2_attempt): Remove casts of insn in peep2_insn_data.
28755         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28756         * recog.h (struct insn_gen_fn): Promote return types of function
28757         pointers and operator ().from rtx to rtx_insn.
28758         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28759         (fill_eager_delay_slots): Likewise.
28760         (relax_delay_slots): Likewise.
28761         (make_return_insns): Likewise.
28762         (dbr_schedule): Likewise.
28763         (optimize_skips): Likewise.
28764         (reorg_redirect_jump): Likewise.
28765         (fill_slots_from_thread): Likewise.
28766         * reorg.h: Update prototypes.
28767         * resource.c (find_dead_or_set_registers): Use dyn_cast to
28768         rtx_jump_insn instead of check.  Use it's jump_target method.
28769         * rtl.h (rtx_jump_insn::jump_label): Define new method.
28770         (rtx_jump_insn::jump_target): Define new method.
28771         (rtx_jump_insn::set_jump_target): Define new method.
28772         * rtlanal.c (tablejump_p): Promote type of one local variable.
28773         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28774         (sched_analyze_insn): Likewise.
28775         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28776         (print_insn): Likewise.
28777         * stmt.c (label_rtx): Promote return type to rtx_insn.
28778         (force_label_rtx): Likewise.
28779         (jump_target_rtx): Define new function.
28780         (expand_label): Use it, get rid of one cast.
28781         (expand_naked_return): Promote rtx to rtx_code_label.
28782         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28783         (expand_case): Use rtx_code_label instread of rtx where feasible.
28784         (expand_sjlj_dispatch_table): Likewise.
28785         (emit_case_nodes): Likewise.
28786         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
28787         * store-motion.c (insert_store): Make use of new return type of
28788         gen_move_insn and remove a cast.
28789         (replace_store_insn): Likewise.
28791 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
28793         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28794         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28796 2015-05-20  Jeff Law  <law@redhat.com>
28798         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28799         dispose of the jump thread path when the jump threading
28800         opportunity is cancelled.
28802 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28804         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28805         when printing the caret character.
28807 2015-05-20  Marek Polacek  <polacek@redhat.com>
28809         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28811 2015-05-20  Marek Polacek  <polacek@redhat.com>
28813         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28814         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28815         * gimple-fold.c (canonicalize_bool): Likewise.
28816         (same_bool_result_p): Likewise.
28817         * tree-if-conv.c (parse_predicate): Likewise.
28819 2015-05-20  Marek Polacek  <polacek@redhat.com>
28821         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28822         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28824 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28826         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28827         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28828         values.
28830 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
28832         * config/mips/mips.h (micromips_globals): Declare.
28834 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
28836         * timevar.def (TV_INITIALIZE_RTL): New.
28837         * toplev.c (initialize_rtl): Use an auto_timevar to account this
28838         function's time to TV_INITIALIZE_RTL.
28840 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
28842         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28843         gimple_build_nop calls.
28844         (chkp_find_bounds_for_elem): Likewise.
28845         (chkp_get_zero_bounds): Likewise.
28846         (chkp_get_none_bounds): Likewise.
28847         (chkp_get_bounds_by_definition): Likewise.
28848         (chkp_generate_extern_var_bounds): Likewise.
28849         (chkp_get_bounds_for_decl_addr): Likewise.
28850         (chkp_get_bounds_for_string_cst): Likewise.
28852 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
28854         PR tree-optimization/65447
28855         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28856         (dump_use, dump_uses): Support to dump sub use.
28857         (record_use): New parameters to support sub use.  Remove call to
28858         dump_use.
28859         (record_sub_use, record_group_use): New functions.
28860         (compute_max_addr_offset, split_all_small_groups): New functions.
28861         (group_address_uses, rewrite_use_address): New functions.
28862         (strip_offset): New declaration.
28863         (find_interesting_uses_address): Call record_group_use.
28864         (add_candidate): New assertion.
28865         (infinite_cost_p): Move definition forward.
28866         (add_costs): Check INFTY cost and return immediately.
28867         (get_computation_cost_at): Clear setup cost and dependent bitmap
28868         for sub uses.
28869         (determine_use_iv_cost_address): Compute cost for sub uses.
28870         (rewrite_use_address_1): Rename from old rewrite_use_address.
28871         (free_loop_data): Free sub uses.
28872         (tree_ssa_iv_optimize_loop): Call group_address_uses.
28874 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28875             Jim Wilson  <jim.wilson@linaro.org>
28877         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28878         new  fields loadv and storev.
28879         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28880         Initialize loadv and storev.
28881         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28882         (cortexa53_extra_costs): Likewise.
28883         (cortexa57_extra_costs): Likewise.
28884         (xgene1_extra_costs): Likewise.
28885         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28886         rtx_costs.
28888 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28890         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28891          storev.
28892         (cortexa8_extra_costs): Likewise.
28893         (cortexa5_extra_costs): Likewise.
28894         (cortexa7_extra_costs): Likewise.
28895         (cortexa12_extra_costs): Likewise.
28896         (cortexa15_extra_costs): Likewise.
28897         (v7m_extra_costs): Likewise.
28899 2015-05-20  Jeff Law  <law@redhat.com>
28901         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28902         instead of open-coded version.  Also delete the jump thread created
28903         within this function.
28905 2015-05-20  Alan Modra  <amodra@gmail.com>
28907         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28908         stack adjusting insn.  Formatting.
28909         (rs6000_emit_prologue): Track stack adjusting insn, and use of
28910         r12.  If possible, emit first -fsplit-stack arg pointer insn
28911         before stack adjust.  Don't use r12 to save cr if split-stack.
28913 2015-05-20  Alan Modra  <amodra@gmail.com>
28915         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28916         Define.
28917         (rs6000_supports_split_stack): New function.
28918         * config/rs6000/rs6000.c (machine_function): Add
28919         split_stack_arg_pointer.
28920         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28921         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28922         rather than virtual_incoming_args_rtx.
28923         (rs6000_va_start): Likewise.
28924         (split_stack_arg_pointer_used_p): New function.
28925         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28926         (morestack_ref): New var.
28927         (gen_add3_const, rs6000_expand_split_stack_prologue,
28928         rs6000_internal_arg_pointer, rs6000_live_on_entry,
28929         rs6000_split_stack_space_check): New functions.
28930         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28931         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28932         (UNSPECV_SPLIT_STACK_RETURN): Define.
28933         (split_stack_prologue, load_split_stack_limit,
28934         load_split_stack_limit_di, load_split_stack_limit_si,
28935         split_stack_return, split_stack_space_check): New expands and insns.
28936         * config/rs6000/rs6000-protos.h
28937         (rs6000_expand_split_stack_prologue): Declare.
28938         (rs6000_split_stack_space_check): Declare.
28940 2015-05-20  Alan Modra  <amodra@gmail.com>
28942         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28943         (direct_return): Test vrsave_size rather than vrsave_mask.
28944         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
28945         (rs6000_emit_epilogue): Likewise.
28947 2015-05-20  Alan Modra  <amodra@gmail.com>
28949         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28950         when not saving registers.
28951         (debug_stack_info): Adjust to omit printing unused offsets,
28952         as before.
28953         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28954         expression.
28956 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28958         PR c++/65835
28959         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28960         value_type to const char *.
28962 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
28964         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28965         to build a biarch toolchain again.
28967 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28969         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28970         or implicit declarations.
28971         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28972         into it.
28973         (get_odr_type): Check type has linkage before adding bases.
28974         (register_odr_type): Check that type has linkage before adding it.
28975         (type_known_to_have_no_deriavations_p): Rename to ..
28976         (type_known_to_have_no_derivations_p): This one.
28977         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28978         (type_known_to_have_no_derivations_p): This one.
28979         * ipa-polymorphic-call.c
28980         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28981         type has linkage.
28983 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28985         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28986         (layout_type): Use RECORD_OR_UNION_TYPE_P.
28988 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28990         * config/s390/s390.c (s390_vector_bool_type_p): New function.
28991         (s390_invalid_binary_op): New function.
28992         (TARGET_INVALID_BINARY_OP): Define macro.
28994 2015-05-19  David Sherwood  <david.sherwood@arm.com>
28996         * loop-invariant.c (create_new_invariant): Don't calculate address cost
28997         if mode is not a scalar integer.
28998         (get_inv_cost): Increase computational cost for unused invariants.
29000 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29002         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
29003         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
29004         * config/s390/s390-builtin-types.def: New file.
29005         * config/s390/s390-builtins.def: New file.
29006         * config/s390/s390-builtins.h: New file.
29007         * config/s390/s390-c.c: New file.
29008         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29009         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29010         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29011         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29012         prototypes.
29013         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29014         Include.
29015         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29016         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29017         variable definitions.
29018         (s390_const_operand_ok): New function.
29019         (s390_expand_builtin): Rewrite.
29020         (s390_init_builtins): New function.
29021         (s390_handle_vectorbool_attribute): New function.
29022         (s390_attribute_table): Add s390_vector_bool attribute.
29023         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29024         (s390_branch_condition_mask): Generate masks for new modes.
29025         (s390_expand_vec_compare_cc): New function.
29026         (s390_mangle_type): Add mangling for vector bool types.
29027         (enum s390_builtin): Remove.
29028         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29029         efpc builtins.
29030         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29031         s390_cpu_cpp_builtins.
29032         (REGISTER_TARGET_PRAGMAS): New macro.
29033         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29034         (insn_cmp mode attribute): Add new CC modes.
29035         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29036         (lcbb): New pattern definition.
29037         * config/s390/s390intrin.h: Include vecintrin.h.
29038         * config/s390/t-s390: New file.
29039         * config/s390/vecintrin.h: New file.
29040         * config/s390/vector.md: Include vx-builtins.md.
29041         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29042         support.
29044 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29046         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29047         CCVFHE.
29048         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29049         (s390_select_ccmode): Likewise.
29050         (s390_canonicalize_comparison): Swap operands if necessary.
29051         (s390_expand_vec_compare_scalar): Expand DFmode compare using
29052         single element vector instructions.
29053         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29054         (s390_branch_condition_mask): Generate CC masks for the new modes.
29055         * config/s390/s390.md (v0, vf, vd): New mode attributes.
29056         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29057         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29058         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29059         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29060         (*extend<DSF:mode><BFP:mode>2): New insn definition.
29061         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29062         (extend<DSF:mode><BFP:mode>2): Turn into expander.
29063         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29064         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29065         (sqrt<mode>2): Add vector instruction.
29067 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29069         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29070         constraints.
29071         * config/s390/predicates.md (const0_operand, constm1_operand)
29072         (constable_operand): Accept vector operands.
29073         * config/s390/s390-modes.def: Add supported vector modes.
29074         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29075         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29076         (s390_bytemask_vector_p, s390_expand_vec_strlen)
29077         (s390_expand_vec_compare, s390_expand_vcond)
29078         (s390_expand_vec_init): Add prototypes.
29079         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29080         (s390_vector_mode_supported_p): New function.
29081         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29082         (s390_contiguous_bitmask_vector_p): New function.
29083         (s390_bytemask_vector_p): New function.
29084         (s390_split_ok_p): Vector regs don't work either.
29085         (regclass_map): Add VEC_REGS.
29086         (s390_legitimate_constant_p): Handle vector constants.
29087         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29088         (legitimate_reload_vector_constant_p): New function.
29089         (s390_preferred_reload_class): Handle CONST_VECTOR.
29090         (s390_reload_symref_address):  Likewise.
29091         (s390_secondary_reload): Vector memory instructions only support
29092         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
29093         (s390_emit_ccraw_jump): New function.
29094         (s390_expand_vec_strlen): New function.
29095         (s390_expand_vec_compare): New function.
29096         (s390_expand_vcond): New function.
29097         (s390_expand_vec_init): New function.
29098         (s390_dwarf_frame_reg_mode): New function.
29099         (print_operand): Handle addresses with 'O' and 'R' constraints.
29100         (NR_C_MODES, constant_modes): Add vector modes.
29101         (s390_output_pool_entry): Handle vector constants.
29102         (s390_hard_regno_mode_ok): Handle vector registers.
29103         (s390_class_max_nregs): Likewise.
29104         (s390_cannot_change_mode_class): New function.
29105         (s390_invalid_arg_for_unprototyped_fn): New function.
29106         (s390_function_arg_vector): New function.
29107         (s390_function_arg_float): Remove size variable.
29108         (s390_pass_by_reference): Handle vector arguments.
29109         (s390_function_arg_advance): Likewise.
29110         (s390_function_arg): Likewise.
29111         (s390_return_in_memory): Vector values are returned in a VR if
29112         possible.
29113         (s390_function_and_libcall_value): Handle vector arguments.
29114         (s390_gimplify_va_arg): Likewise.
29115         (s390_call_saved_register_used): Consider the arguments named.
29116         (s390_conditional_register_usage): Disable v16-v31 for non-vec
29117         targets.
29118         (s390_preferred_simd_mode): New function.
29119         (s390_support_vector_misalignment): New function.
29120         (s390_vector_alignment): New function.
29121         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29122         (TARGET_VECTOR_MODE_SUPPORTED_P)
29123         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29124         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29125         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29126         (TARGET_VECTOR_ALIGNMENT): Define target macro.
29127         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29128         (FIRST_PSEUDO_REGISTER): Increase value.
29129         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29130         (VECTOR_REG_P): Define macros.
29131         (FIXED_REGISTERS, CALL_USED_REGISTERS)
29132         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29133         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29134         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29135         Add vector registers.
29136         (CANNOT_CHANGE_MODE_CLASS): Call C function.
29137         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29138         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29139         memory.
29140         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29141         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29142         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29143         (VR*_REGNUM): New constants.
29144         (ALL): New mode iterator.
29145         (INTALL): Remove mode iterator.
29146         Include vector.md.
29147         (movti): Implement TImode moves for VRs.
29148         Disable TImode splitter for VR targets.
29149         Implement splitting TImode GPR<->VR moves.
29150         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29151         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29152         reload<mode>_la_in, reload<mode>_la_out.
29153         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29154         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29155         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29156         (mov<mode> SF SD): Prefer lder, lde for loading.
29157         Add lrl and strl instructions.
29158         Add vector instructions.
29159         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29160         Call s390_expand_vec_strlen on z13.
29161         (*cc_to_int): Change predicate to nonimmediate_operand.
29162         (addti3): Rename to *addti3.  New expander.
29163         (subti3): Rename to *subti3.  New expander.
29164         * config/s390/vector.md: New file.
29166 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29168         * common/config/s390/s390-common.c (processor_flags_table): Add
29169         z13.
29170         * config.gcc: Add z13.
29171         * config/s390/s390-opts.h (enum processor_type): Add
29172         PROCESSOR_2964_Z13.
29173         * config/s390/s390.c (s390_adjust_priority): Check for
29174         PROCESSOR_2964_Z13.
29175         (s390_reorg): Likewise.
29176         (s390_sched_reorder): Likewise.
29177         (s390_sched_variable_issue): Likewise.
29178         (s390_loop_unroll_adjust): Likewise.
29179         (s390_option_override): Likewise. Default to -mvx when available.
29180         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29181         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29182         (TARGET_VX_ABI): Define macros.
29183         macros.
29184         (TARGET_DEFAULT): Add MASK_OPT_VX.
29185         * config/s390/s390.md ("cpu" attribute): Add z13.
29186         ("cpu_facility" attribute): Add vec.
29187         * config/s390/s390.opt (processor_type): Add z13.
29188         (mvx): New options.
29189         * doc/invoke.texi: Add z13 option for -march.
29191 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29193         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29194         mode check to make sure that only scalar integer values are
29195         accepted.
29197 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29199         * tree.c (verify_type_variant): Fix #undef.
29200         (gimple_canonical_types_compatible_p): Move here from lto.c
29201         (verify_type): Verify TYPE_CANONICAL compatibility.
29202         * tree.h (gimple_canonical_types_compatible_p): Declare.
29204 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29206         PR middle-end/66199
29207         * tree.h (OMP_TEAMS_COMBINED): Define.
29208         * gimplify.c (enum gimplify_omp_var_data): Add
29209         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29210         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29211         (omp_notice_variable): Accept both ORT_TEAMS
29212         and ORT_COMBINED_TEAMS.  Don't recurse if
29213         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29214         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29215         GOVD_FIRSTPRIVATE.
29216         (omp_no_lastprivate): New function.
29217         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29218         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29219         notice_outer and set appropriate bits, otherwise make
29220         sure default(none) combined constructs won't complain.
29221         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29222         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29223         omp_no_lastprivate either remove the clause or turn it
29224         into OMP_CLAUSE_PRIVATE.
29225         (gimplify_omp_for): Fix up handling of implicit
29226         lastprivate or linear iterators.
29227         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29228         ORT_COMBINED_TEAMS.
29229         * omp-low.c (lower_omp_for_lastprivate): For combined
29230         for simd use fd.loop.n2 from the for rather than simd.
29232 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29234         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29235         instead of gen_rtx_raw_REG.
29236         (cris_expand_epilogue): Likewise.
29237         * config/microblaze/microblaze.c (microblaze_classify_address):
29238         Likewise.
29239         * config/sparc/sparc.md: Likewise.
29241 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
29243         * config/alpha/alpha.c (alpha_legitimize_reload_address)
29244         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29245         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29246         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29247         Use CASE_CONST_SCALAR_INT.
29248         (print_operand) <case 'M'>: Use mode_width_operand to check the
29249         value of the constant.
29250         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29251         * config/alpha/predicates.md (input_operand): Use general_operand
29252         instead of match_code as operand check.
29253         (symbolic_operand): Use match_code with subexpression digits.
29254         * config/alpha/constraints.md (Q): Ditto.
29256 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29258         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29260 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29262         * config/s390/s390.c (s390_secondary_reload): Fix check for
29263         load/store relative.
29265 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29267         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
29268         alternative_mask to uint64_t.
29270 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29272         PR tree-optimization/66187
29273         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29274         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
29275         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29277 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
29279         * diagnostic.c (diagnostic_report_current_module): Strengthen
29280         local "new_map" from const line_map * to
29281         const line_map_ordinary *.
29282         * genmatch.c (error_cb): Likewise for local "map".
29283         (output_line_directive): Likewise for local "map".
29284         * input.c (expand_location_1): Likewise for local "map".
29285         Pass NULL rather than &map to
29286         linemap_unwind_to_first_non_reserved_loc, since the value is never
29287         read from there, and the value written back not read from here.
29288         (is_location_from_builtin_token): Strengthen local "map" from
29289         const line_map * to const line_map_ordinary *.
29290         (dump_location_info): Strengthen locals "map" from
29291         line_map *, one to const line_map_ordinary *, the other
29292         to const line_map_macro *.
29293         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29294         const line_map * to const line_map_macro *.
29295         (maybe_unwind_expanded_macro_loc): Add a call to
29296         linemap_check_macro when writing to the "map" field of the
29297         loc_map_pair.
29298         Introduce local const line_map_ordinary * "ord_map", using it in
29299         place of "map" in the part of the function where we know we have
29300         an ordinary map.  Strengthen local "m" from const line_map * to
29301         const line_map_ordinary *.
29303 2015-05-19  Nick Clifton  <nickc@redhat.com>
29305         PR target/66156
29306         * config/msp430/msp430.md (zero_extendhisi2): Add support for
29307         separate source and destination registers.
29309 2015-05-19  Richard Biener  <rguenther@suse.de>
29311         PR tree-optimization/66165
29312         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29313         for no load permutation.
29315         PR tree-optimization/66185
29316         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29317         when building the SLP node from scalars.
29319 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29320             Tristan Gingold  <gingold@adacore.com>
29322         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29323         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29324         (expand_stack_restore): Call record_new_stack_level.
29325         (expand_stack_save): Do not call do_pending_stack_adjust.
29326         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29327         * calls.c (expand_call): Call record_new_stack_level for alloca.
29328         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29329         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29330         (update_sjlj_context): New global function.
29331         * except.h (update_sjlj_context): Declare.
29332         * explow.c (record_new_stack_level): New global function.
29333         (allocate_dynamic_stack_space): Call record_new_stack_level.
29334         * explow.h (record_new_stack_level): Declare.
29335         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29336         * cfgrtl.c (duplicate_insn_chain): Likewise.
29338 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29340         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29341         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29342         STACK_GROWS_DOWNWARD as normal if.
29343         (expand_call): Likewise.
29345 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
29347         PR target/54236
29348         * config/sh/sh.md (*round_int_even): New insn_and_split and
29349         accompanying new unnamed split.
29351 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29353         * bitmap.c (bitmap_set_range): Handle count==1 specially.
29354         (bitmap_clear_range): Likewise.
29355         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29356         bitmap_set_range unconditionally.
29357         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29358         * df-scan.c (df_mark_reg): Likewise.
29359         * haifa-sched.c (setup_ref_regs): Likewise.
29360         * sched-rgn.c (update_live_1): Likewise.
29362 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29364         * regs.h (END_HARD_REGNO): Delete.
29365         (END_REGNO): Move to...
29366         * rtl.h: ...here.
29367         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29368         * caller-save.c (mark_set_regs): Likewise.
29369         * combine.c (move_deaths, distribute_notes): Likewise.
29370         * cse.c (invalidate, invalidate_for_call): Likewise.
29371         * df-scan.c (df_ref_record): Likewise.
29372         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29373         (record_last_reg_set_info): Likewise.
29374         * reg-stack.c (convert_regs_exit): Likewise.
29375         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29376         * resource.c (update_live_status): Likewise.
29377         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29379 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29381         * rtl.h (reg_info): Add an nregs field.
29382         (REG_NREGS): Use it.
29383         (SET_REGNO_RAW): Delete.
29384         (set_regno_raw): New function.
29385         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29386         (END_REGNO): Redefine in terms of REG_NREGS.
29387         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29388         SET_REGNO_RAW.
29389         * emit-rtl.c (set_mode_and_regno): Likewise.
29390         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29391         instead of SET_REGNO_RAW.
29393 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29395         * rtl.h (PUT_MODE_RAW): New macro.
29396         (PUT_REG_NOTE_KIND): Use it.
29397         (set_mode_and_regno): Declare.
29398         (gen_raw_REG): Change regno to "unsigned int".
29399         (gen_rtx_REG): Change "unsigned" to "unsigned int".
29400         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29401         use set_mode_and_regno to change the mode of registers.
29402         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29403         * emit-rtl.c (set_mode_and_regno): New function.
29404         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
29405         * caller-save.c (reg_save_code): Use set_mode_and_regno.
29406         * expr.c (init_expr_target): Likewise.
29407         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29408         * postreload.c (reload_cse_simplify_operands): Likewise.
29410 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29412         * caller-save.c (init_caller_save): Use word_mode and
29413         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29414         * expr.c (init_expr_target): Likewise.
29415         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29416         * postreload.c (reload_cse_regs_1): Likewise.
29418 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29420         * rtl.def (REG): Change format to "r".
29421         * rtl.h (rtunion): Remove rt_reg.
29422         (reg_info): New structure.
29423         (rtx_def): Add reg field to main union.
29424         (X0REGATTR): Delete.
29425         (REG_CHECK): New macro.
29426         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29427         * rtl.c (rtx_format): Document "r".
29428         (rtx_code_size): Handle REG specially.
29429         * gengenrtl.c (special_format): Return true for formats
29430         that include 'r'.
29431         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29432         Deal with REG_ATTRS after the field loop.
29433         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29434         * expmed.c (init_expmed): Call gen_raw_REG instead of
29435         gen_rtx_raw_REG.
29436         * expr.c (init_expr_target): Likewise.
29437         * regcprop.c (maybe_mode_change): Likewise.
29438         * varasm.c (make_decl_rtl): Likewise.
29439         * final.c (leaf_renumber_regs_insn): Return early after
29440         handling REGs.
29441         * genemit.c (gen_exp): Handle 'r' fields.
29442         * genpeep.c (match_rtx): Likewise.
29443         * gensupport.c (subst_pattern_match): Likewise.
29444         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29445         (alter_constraints, subst_dup): Likewise.
29446         * read-rtl.c (read_rtx_code): Likewise.
29447         * print-rtl.c (print_rtx): Likewise.
29448         * genrecog.c (find_operand, find_matching_operand): Likewise.
29449         (validate_pattern, match_pattern_2): Likewise.
29450         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29451         (rtx_test::regno_field): New function.
29452         (operator ==, safe_to_hoist_p, transition_parameter_type)
29453         (parameter_type_string, print_parameter_value)
29454         (print_nonbool_test, print_test): Handle new enum values.
29455         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29456         * lra-constraints.c (operands_match_p): Likewise.
29458 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29460         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29461         Change type of new_regno to unsigned int.
29462         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29463         new_regno to unsigned int.
29464         (df_ref_change_reg_with_loc): Remove old_regno parameter.
29465         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
29466         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29467         (SET_REGNO_RAW): Add space after ",".
29469 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29471         * rtl.h (REG_NREGS): New macro
29472         * alias.c (record_set): Use it.
29473         * cfgcleanup.c (mark_effect): Likewise.
29474         * combine.c (likely_spilled_retval_1): Likewise.
29475         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29476         (move_deaths, distribute_notes): Likewise.
29477         * cselib.c (cselib_record_set): Likewise.
29478         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29479         * df-scan.c (df_mark_reg): Likewise.
29480         * dse.c (look_for_hardregs): Likewise.
29481         * dwarf2out.c (reg_loc_descriptor): Likewise.
29482         (multiple_reg_loc_descriptor): Likewise.
29483         * expr.c (write_complex_part, read_complex_part): Likewise.
29484         (emit_move_complex): Likewise.
29485         * haifa-sched.c (setup_ref_regs): Likewise.
29486         * ira-lives.c (mark_hard_reg_live): Likewise.
29487         * lra.c (lra_set_insn_recog_data): Likewise.
29488         * mode-switching.c (create_pre_exit): Likewise.
29489         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29490         (reload_combine_recognize_pattern): Likewise.
29491         (reload_combine_note_use, move2add_record_mode): Likewise.
29492         (reload_cse_move2add): Likewise.
29493         * reg-stack.c (subst_stack_regs_pat): Likewise.
29494         * regcprop.c (kill_value, copy_value): Likewise.
29495         (copyprop_hardreg_forward_1): Likewise.
29496         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29497         (build_def_use): Likewise.
29498         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29499         (deps_analyze_insn): Likewise.
29500         * sched-rgn.c (check_live_1, update_live_1): Likewise.
29501         * sel-sched.c (count_occurrences_equiv): Likewise.
29502         * valtrack.c (dead_debug_insert_temp): Likewise.
29504 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29506         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29507         * dse.c (note_add_store): Likewise.
29508         * ira-lives.c (mark_hard_reg_dead): Likewise.
29509         * loop-invariant.c (mark_reg_store): Likewise.
29510         (mark_reg_death): Likewise.
29511         * postreload.c (reload_combine): Likewise.
29512         (reload_combine_note_store): Likewise.
29513         (reload_combine_note_use): Likewise.
29514         * recog.c (peep2_reg_dead_p): Likewise.
29516 2015-05-19  Alan Modra  <amodra@gmail.com>
29518         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29519         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29520         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29521         unused predicates.
29522         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29523         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
29524         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29525         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29527 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
29529         * config/mips/mips.md (JOIN_MODE): New mode iterator.
29530         (join2_load_Store<JOIN_MODE:mode>): New pattern.
29531         (join2_loadhi): Likewise.
29532         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29533         load-load and store-stores.
29534         * config/mips/mips.opt (mload-store-pairs): New option.
29535         (TARGET_LOAD_STORE_PAIRS): New macro.
29536         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29537         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29538         * config/mips/mips.c (mips_load_store_bonding_p): New function.
29540 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
29542         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29543         explicit swaps.
29544         * dojump.c (do_compare_rtx_and_jump): Likewise.
29545         * expmed.c (emit_store_flag_1): Likewise.
29546         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29547         * final.c (sprint_ul): Use std::reverse for reversing a string.
29548         * fold-const.c (extract_muldiv_1): Use std::swap.
29549         * genmodes.c (emit_mode_int_n): Likewise.
29550         * ifcvt.c (dead_or_predicable): Likewise.
29551         * ira-build.c (ira_merge_live_ranges): Likewise.
29552         (swap_allocno_copy_ends_if_necessary): Likewise.
29553         * ira.c (ira_setup_alts): Likewise.
29554         * loop-iv.c (iv_analyze_expr): Likewise.
29555         (implies_p): Likewise.
29556         (canon_condition): Likewise.
29557         * lra-constraints.c (swap_operands): Likewise.
29558         * lra-lives.c (lra_merge_live_ranges): Likewise.
29559         * omega.c (swap): Remove.
29560         (bswap): Remove.
29561         (omega_unprotect_1): Use std::swap.
29562         (omega_solve_geq): Likewise.
29563         * optabs.c (expand_binop_directly): Likewise.
29564         (expand_binop): Likewise.
29565         (emit_conditional_move): Likewise.
29566         (emit_conditional_add): Likewise.
29567         * postreload.c (reload_cse_simplify_operands): Likewise.
29568         * reg-stack.c (emit_swap_insn): Likewise.
29569         (swap_to_top): Likewise.
29570         (compare_for_stack_reg): Likewise.
29571         (subst_asm_stack_regs): Likewise.
29572         * reload.c (find_reloads): Likewise.
29573         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29574         * sel-sched.c (invoke_reorder_hooks): Likewise.
29575         (create_block_for_bookkeeping): Likewise.
29576         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29577         (lambda_matrix_right_hermite): Use std::swap.
29578         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29579         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29580         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29581         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29582         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29583         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29584         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29585         * tree-vrp.c (compare_ranges): Likewise.
29586         * var-tracking.c (add_with_sets): Likewise.
29587         (vt_find_locations): Likewise.
29589 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
29591         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29592         pie executables.
29593         (FBSD_ENDFILE_SPEC): Likewise.
29594         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29595         config/freebsd-spec.h.
29596         (ENDFILE_SPEC): Likewise.
29598 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
29599             Richard Henderson  <rth@redhat.com>
29601         PR target/57032
29602         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29603         Check for a memory location that is not a reference (using an AND)
29604         to an unaligned location here.
29605         * config/alpha/predicates.md (normal_memory_operand): Remove.
29607 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
29609         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29610         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29612 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
29614         * config/mips/mips.c (micromips_globals): New variable.
29615         (mips_set_compression_mode): Save and reinitialize target-dependent
29616         state for microMIPS.
29618 2015-05-18  Martin Liska  <mliska@suse.cz>
29620         * dbgcnt.def: Add new counter.
29621         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29623 2015-05-18  Martin Liska  <mliska@suse.cz>
29625         * dbgcnt.def: Sort counters.
29626         * opts.c (common_handle_option): Do not compile if
29627         -fdbg-cnt-list is enabled.
29629 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29631         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29632         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
29633         address operator to va_list operand.
29634         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29635         unconditionally.
29636         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29637         operand.
29638         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29639         * config/s390/s390.c (s390_gimplify_va_arg): Same.
29640         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29642 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29644         * tree-ssa-tail-merge.c: Fix whitespace.
29646 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
29648         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29649         cortex-a17, and cortex-a17.cortex-a7.
29651 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
29653         PR target/54236
29654         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29656 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
29658         PR target/66174
29659         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29660         QImode inner modes for TARGET_AVX512BW.  Force mask operand
29661         to a register for AVX512F modes.
29663 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29665         * toplev.c (emit_debug_global_declarations): Do not output debug info
29666         when doing slim LTO objects.
29668 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29670         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29671         odr_types_equivalent_p): Declare.
29672         (odr_type_p): Use gcc_checking_assert.
29673         (type_in_anonymous_namespace_p) Declare.
29674         (type_with_linkage_p): Declare.
29675         * common.opt (Wlto-type-mismatch): New warning.
29676         * ipa-devirt.c (compound_type_base): New function.
29677         (odr_or_derived_type_p): New function.
29678         (odr_types_equivalent_p): New function.
29679         (add_type_duplicate): Simplify.
29680         (type_with_linkage_p): Add hack to prevent false positives on C types
29681         (type_in_anonymous_namespace_p): Likewise.
29682         * tree.c (need_assembler_name_p): Use type_with_linkage.
29683         * tree.h (type_in_anonymous_namespace_p): Remove.
29684         * doc/invoke.texi (-Wlto-type-mismatch): Document
29686 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29688         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29689         (verify_type): Verify STRING_FLAG.
29691 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29693         PR fortran/44054
29694         * tree-pretty-print.c (percent_K_format): Replace locus pointer
29695         with accessor function.
29696         * tree-diagnostic.c (diagnostic_report_current_function): Use
29697         diagnostic_location function.
29698         (maybe_unwind_expanded_macro_loc): Likewise.
29699         (virt_loc_aware_diagnostic_finalizer): Likewise.
29700         (default_tree_printer): Replace locus pointer with accessor function.
29701         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29702         (diagnostic_set_info_translated): Initialize second location.
29703         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29704         (diagnostic_show_locus): Handle two locations. Call
29705         diagnostic_print_caret_line.
29706         (diagnostic_print_caret_line): New.
29707         (default_diagnostic_starter): Use diagnostic_location function.
29708         (diagnostic_report_diagnostic): Use diagnostic_location function.
29709         (verbatim): Do not set text.locus.
29710         * diagnostic.h (struct diagnostic_info): Remove location field.
29711         (struct diagnostic_context): Make caret_chars an array of two.
29712         (diagnostic_location): New inline.
29713         (diagnostic_expand_location): Handle two locations.
29714         (diagnostic_same_line): New inline.
29715         (diagnostic_print_caret_line): Declare.
29716         (CARET_LINE_MARGIN): New constant.
29717         * pretty-print.c (pp_printf): Do not set text.locus.
29718         (pp_verbatim): Do not set text.locus.
29719         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29720         (struct text_info): Replace locus pointer with locations
29721         array. Add accessor functions.
29723 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
29724             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29726         PR target/65768
29727         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29728         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29729          large constants in register instead of splitting them.
29731 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
29733         PR target/66140
29734         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29735         replacements in memory addresses.
29736         (get_unaligned_address): Ditto.
29738 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
29740         * config/ft32/*: New files for FT32 port.
29741         * doc/install.texi: Add FT32 information.
29742         * doc/invoke.texi: Add FT32 information.
29743         * doc/md.texi: Add FT32 information.
29744         * doc/contrib.texi: Self added.
29746 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
29748         PR tree-optimization/64454
29749         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29750         (-1 - A -> ~A): Remove unnecessary condition.
29752 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
29754         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29755         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29756         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29758 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
29760         * ipa-chkp.h (chkp_wrap_function): New.
29761         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29762         (chkp_wrap_function_name): New.
29763         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29764         to get wrapper name.
29765         * lto-cgraph.c: Include ipa-chkp.h.
29766         (input_cgraph_1): Avoid alias chain for wrappers.
29768 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
29770         PR middle-end/66134
29771         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29772         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29774 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29776         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29777         (AARCH64_FL_SLOWMUL): Delete.
29778         (AARCH64_FL_CRC): Redefine to 1<<3.
29779         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29781 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29783         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29784         casting.
29786 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29788         * config/alpha/alpha.md (extendqidi2): Use general_operand
29789         instead of some_operand for operand[1] predicate.
29790         (extendhidi2): Ditto.
29791         (cbranchdi4): Use general_operand instead of some_operand
29792         for operand[1] and operands[2] predicates.
29793         (cstoredi4): Ditto.
29794         * config/alpha/predicates.md (some_operand): Remove unused predicate.
29795         (some_ni_operand): Ditto.
29797 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29799         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29800         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
29801         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29802         low part of the constant using alpha_emit_set_const_1.
29803         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29805 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
29807         * varasm.c (output_constant_pool_1): Pass down alignment from
29808         constant pool entry's descriptor to output_constant_pool_2.
29809         (output_object_block): Add comment prior to call to
29810         output_constant_pool_1.
29812 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
29814         PR rtl-optimization/65862
29815         * target.def (ira_change_pseudo_allocno_class): New hook.
29816         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29817         value of the hook.
29818         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29819         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29820         hook.
29821         * ira-costs.c (find_costs_and_classes): Call the hook and change
29822         classes when it is necessary.
29823         * doc/tm.texi: Update.
29825 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
29827         * config/i386/i386.md (sibcall_memory): Check that register with
29828         callee address is not also used as one of the arguments, instead
29829         of checking that it is not live after the sibcall.
29830         (sibcall_pop_memory): Ditto.
29831         (sibcall_value_memory): Ditto.
29832         (sibcall_value_pop_memory): Ditto.
29834 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
29836         * generic-match-head.c (types_match): Handle non-types.
29837         * gimple-match-head.c (types_match): Likewise.
29838         * match.pd: Remove unnecessary TREE_TYPE for types_match.
29840 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
29842         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29843         (csneg3<mode>_insn): Enable expansion of pattern.
29845 2015-05-14  Nick Clifton  <nickc@redhat.com>
29847         * config/rl78/rl78.c (rl78_select_section): Select the correct
29848         default section based upon the category of the decl.
29850 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29852         PR rtl-optimization/30967
29853         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29854         destination mode for the cost of scc patterns.
29856 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29858         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29859         using SWIM248 mode iterator.
29860         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29861         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
29862         for operand[2] constraint.
29863         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29865 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29867         PR middle-end/66133
29868         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29869         make sure it is never noreturn, even when the task body does not
29870         return.
29871         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29872         right before GIMPLE_OMP_RETURN.
29873         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29874         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
29875         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29877 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29879         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29880         * tree-ssa-math-opts.c: Include params.h
29881         (pow_synth_sqrt_info): New struct.
29882         (representable_as_half_series_p): New function.
29883         (get_fn_chain): Likewise.
29884         (print_nested_fn): Likewise.
29885         (dump_fractional_sqrt_sequence): Likewise.
29886         (dump_integer_part): Likewise.
29887         (expand_pow_as_sqrts): Likewise.
29888         (gimple_expand_builtin_pow): Use above to attempt to expand
29889         pow as series of square roots.  Removed now unused variables.
29891 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29893         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29894         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29895         Remove *p0 and *p1 arguments.  Rewrite function.
29896         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29897         (alpha_split_const_mov): Update calls to alpha_extract_integer and
29898         alpha_emit_set_long_const.
29899         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29900         (alpha_output_mi_thunk_osf): Ditto.
29901         * config/alpha/alpha.md (movti): Do not check operands[1]
29902         for CONST_DOUBLE.
29904 2015-05-13  Richard Biener  <rguenther@suse.de>
29906         PR tree-optimization/66129
29907         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29908         commutative.
29909         (vect_schedule_slp_instance): Fix typo.
29911 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
29913         * common.opt (fdump-internal-locations): New option.
29914         * input.c: Include diagnostic-core.h.
29915         (get_end_location): New function.
29916         (write_digit): New function.
29917         (write_digit_row): New function.
29918         (dump_location_range): New function.
29919         (dump_labelled_location_range): New function.
29920         (dump_location_info): New function.
29921         * input.h (dump_location_info): New prototype.
29922         * toplev.c (compile_file): Handle flag_dump_locations.
29924 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
29926         * gimple-expr.h (is_gimple_constant): Reorder.
29927         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29929 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29931         * combine.c (simplify_set): When generating a CC set, if the
29932         source already is in the correct mode, do not wrap it in a
29933         compare.  Simplify the rest of that code.
29935 2015-05-13  Richard Biener  <rguenther@suse.de>
29937         PR tree-optimization/66123
29938         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29939         a taken edge.
29941 2015-05-13  Richard Biener  <rguenther@suse.de>
29943         PR middle-end/66110
29944         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29945         specially.
29946         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29948 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
29950         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29951         * aclocal.m4: Regenerated with automake-1.11.6.
29953 2015-05-13  Tom de Vries  <tom@codesourcery.com>
29955         PR tree-optimization/66010
29956         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29957         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29958         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
29959         and rval based on do_deref.
29961 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29963         PR target/65103
29964         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29965         link time constants into adress expressions and therefore set
29966         their cost to 0.
29968 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29970         PR target/66112
29971         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29972         Use SWI248 iterator instead of SWI.
29973         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
29974         Use eq_attr "alternative" "0" instead of match_test in
29975         length_immediate attribute computation.
29976         (*mulvhi4, *mulvhi4_1): New define_insns.
29978         PR target/66112
29979         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29980         SIGNED to get precision of non-negative value.
29982 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29984         PR target/66048
29985         * function.c (diddle_return_value_1): Process bounds first.
29986         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29987         register.
29989 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29991         PR rtl-optimization/64616
29992         * loop-invariant.c (can_move_invariant_reg): New.
29993         (move_invariant_reg): Call above new function to decide whether
29994         instruction can just be moved, skipping creation of temporary
29995         register.
29997 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29999         PR target/pr66047.c
30000         * i386.c (ix86_function_sseregparm): Only return -1 if local function
30001         with implied regparm is called from -mno-sse function.
30002         (init_cumulative_args): Output error if ix86_function_sseregparm
30003         return -1 and SSE register would be needed.
30004         (function_arg_advance_32): Likewise.
30005         (function_arg_32): Likewise.
30006         * i386.h (ix86_args): Add decl field.
30008 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30010         PR ipa/65873
30011         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30012         inlines across optimization boundary.
30014 2015-05-12  Jason Merrill  <jason@redhat.com>
30016         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30017         string literal and macro name.
30019 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
30021         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30022         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30023         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30025 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30027         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30028         (-Wmisleading-indentation): New option.
30029         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30031 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
30033         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30034         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30035         (alpha_extract_integer): Ditto.
30036         (alpha_legitimate_constant_p): Ditto.
30037         (alpha_split_tmode_pair): Ditto.
30038         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30039         (alpha_expand_mov): Ditto.
30040         (print_operand): Remove handling of 'H' modifier.
30041         <case 'm'>: Remove CONST_DOUBLE handling.
30042         (summarize_insn): Handle CONST_WIDE_INT.
30043         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30044         (anddi3): Ditto.
30045         (movti): Handle CONST_WIDE_INT.
30046         * config/alpha/constraints.md ('H'): Remove constraint definition.
30047         ('G'): Do not match MODE_FLOAT class.
30048         * config/alpha/predicates.md (const0_operand): Also match
30049         const_wide_int.
30050         (non_add_const_operand): Ditto.
30051         (non_zero_const_operand): Ditto.
30052         (some_operand): Ditto.
30053         (input_operand): Ditto.  Handle CONST_WIDE_INT.
30054         (and_operand): Do not match const_double.
30055         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30057 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
30059         PR target/65697
30060         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30061         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30062         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30063         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30064         is_mm_seq_cst, is_mm_sync): New accessor functions.
30065         * builtins.c (expand_builtin_sync_operation,
30066         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30067         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30068         (get_memmodel,  expand_builtin_atomic_compare_exchange,
30069         expand_builtin_atomic_load, expand_builtin_atomic_store,
30070         expand_builtin_atomic_clear): Use new accessor routines.
30071         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30072         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30073         (maybe_emit_sync_lock_test_and_set): Use new accessors and
30074         MEMMODEL_SYNC_ACQUIRE.
30075         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30076         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30077         expand_atomic_store): Use new accessors.
30078         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30079         * tsan.c (instrument_builtin_call): Update check for memory model beyond
30080         final enum to use MEMMODEL_LAST.
30081         * c-family/c-common.c: Use new accessor for memmodel_base.
30082         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30083         accessors.
30084         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30085         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30086         mem_thread_fence, *dmb): Likewise.
30087         * config/alpha/alpha.c (alpha_split_compare_and_swap,
30088         alpha_split_compare_and_swap_12): Likewise.
30089         * config/arm/arm.c (arm_expand_compare_and_swap,
30090         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30091         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30092         atomic_loaddi): Likewise.
30093         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30094         Likewise.
30095         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30096         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30097         use new accessors.
30098         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30099         atomic_store<mode>, atomic_compare_and_swap<mode>,
30100         atomic_exchange<mode>): Use new accessors.
30101         * config/mips/mips.c (mips_process_sync_loop): Likewise.
30102         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30103         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30104         rs6000_post_atomic_barrier): Add new cases.
30105         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30106         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30107         (atomic_load<mode>): Add new cases and use new accessors.
30108         (store_quadpti): Add new cases.
30109         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30110         accessors.
30111         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30112         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30113         model, not 8.
30115 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30117         * ipa-devirt.c (type_with_linkage_p): New function.
30118         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30119         type has linkage.
30120         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30121         (can_be_name_hashed_p): Simplify.
30122         (hash_odr_name): Check that type has linkage before checking if it is
30123         anonymous.
30124         (types_same_for_odr): Likewise.
30125         (odr_name_hasher::equal): Likewise.
30126         (odr_subtypes_equivalent_p): Likewise.
30127         (warn_types_mismatch): Likewise.
30128         (get_odr_type): Likewise.
30129         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30130         * ipa-utils.h (odr_type_p): Move offline.
30131         * tree.c (need_assembler_name_p): Fix handling of types
30132         without linkages.
30133         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30135 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30137         * timevar.c (timevar_enable): Delete in favor of...
30138         (g_timer): New global.
30139         (struct timevar_def): Move to timevar.h inside class timer.
30140         (struct timevar_stack_def): Likewise.
30141         (timevars): Delete global in favor of field "m_timevars" within
30142         class timer in timevar.h
30143         (stack): Likewise, in favor of field "m_stack".
30144         (unused_stack_instances): Likewise, in favor of field
30145         "m_unused_stack_instances".
30146         (start_time): Likewise, in favor of field "m_start_time".
30147         (get_time): Eliminate check for timevar_enable.
30148         (timer::timer): New function, built from part of timevar_init.
30149         (timevar_init): Rewrite idempotency test from using
30150         "timevar_enable" bool to using dynamic allocation of "g_timer".
30151         Move rest of implementation into timer's constructor.
30152         (timevar_push_1): Rename to...
30153         (timer::push): ...this, adding "m_" prefixes to variables that
30154         are now fields of timer.
30155         (timevar_pop_1): Likewise, rename to...
30156         (timer::pop): ...this, and add "m_" prefixes.
30157         (timevar_start): Replace test for "timevar_enable" with one for
30158         "g_timer", and move bulk of implementation to...
30159         (timer::start): ...here, adding "m_" prefixes.
30160         (timevar_stop): Likewise, from here...
30161         (timer::stop): ...to here.
30162         (timevar_cond_start): Likewise, from here...
30163         (timer::cond_start): ...to here.
30164         (timevar_cond_stop): Likewise, from here...
30165         (timer::cond_stop): ...to here.
30166         (validate_phases): Rename to...
30167         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
30168         locals "total" and "tv" const.
30169         (timevar_print): Rename to...
30170         (timer::print): ...this, and add "m_" prefixes.  Make locals
30171         "total" and "tv" const.  Eliminate test for timevar_enable.
30172         * timevar.h (timevar_enable): Eliminate.
30173         (g_timer): New declaration.
30174         (timevar_push_1): Eliminate.
30175         (timevar_pop_1): Eliminate.
30176         (timevar_print): Eliminate.
30177         (class timer): New class.
30178         (timevar_push): Rewrite to use g_timer.
30179         (timevar_pop): Likewise.
30180         * toplev.c (toplev::~toplev): Likewise.
30182 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
30184         * arm-protos.h (arm_sched_autopref): Delete.
30185         (tune_params): Re-organize, use enums for flag values.
30186         (FUSE_OPS): New macro.
30187         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30188         (ARM_PREFETCH_BENEFICIAL): Likewise.
30189         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30190         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30191         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30192         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30193         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30194         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
30195         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30196         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30197         format.
30198         (arm_option_override, thumb2_reorg, arm_print_tune_info)
30199         (aarch_macro_fusion_pair_p): Update uses of current_tune.
30200         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30202 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
30204         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30205         "break".
30207 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
30208             Sandra Loosemore <sandra@codesourcery.com>
30210         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30211         value.
30212         (REG_CLASS_NAMES): Add "IJMP_REGS".
30213         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30214         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30215         use new "c" register constraint.
30216         * config/nios2/constraint.md (c): New register constraint
30217         corresponding to IJMP_REGS.
30219 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30221         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30222         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30223         define_splits): Delete, revamp, transmogrify into ...
30224         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30225         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30226         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30227         New.
30229 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30231         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30232         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30234 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30236         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30237         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30238         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30239         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30240         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30241         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30242         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30243         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30244         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30245         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30246         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30247         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30248         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30249         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30250         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30251         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30252         and 30 corresponding splitters): Delete.
30254 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30256         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30257         zero_extract.
30259 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30261         * combine.c (recog_for_combine_1): New function, factored out
30262         from recog_for_combine.
30263         (change_zero_ext): New function.
30264         (recog_for_combine): If recog fails, try again with the pattern
30265         modified by change_zero_ext; if that still fails, restore the
30266         pattern.
30268 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30270         * combine.c (get_undo_marker): New function.
30271         (undo_to_marker): New function, largely factored out from ...
30272         (undo_all): ... this.  Adjust.
30274 2015-05-12  Richard Biener  <rguenther@suse.de>
30276         PR tree-optimization/66101
30277         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30278         fixup if we turn a loop exit edge to a fallthru edge.
30280 2015-05-12  Richard Biener  <rguenther@suse.de>
30282         PR tree-optimization/37021
30283         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30284         (SLP_TREE_TWO_OPERATORS): New define.
30285         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30286         SLP_TREE_TWO_OPERATORS.
30287         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30288         SLP node.
30289         (vect_build_slp_tree): Adjust.
30290         (vect_analyze_slp_cost_1): Likewise.
30291         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30292         emitting two vector stmts and mixing the results.
30294 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30296         * call.c (print_z_candidates): Remove dead code.
30298 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30300         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30301         and zEC12_simple_fp.
30302         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30303         to 1.
30305 2015-05-12  Tom de Vries  <tom@codesourcery.com>
30307         PR tree-optimization/66010
30308         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30309         ifn_va_arg.
30310         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30311         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
30312         va_lists are passed, and remove corresponding handling.
30313         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
30314         do_deref argument to ifn_va_arg.
30315         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30316         ifn_va_arg.
30318 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30320         PR target/65955
30321         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30322         REG before taking its REGNO.
30324 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30326         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30327         rsp->sign_bit_copies and rsp->nonzero_bits into ...
30328         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
30329         present to get more accurate information about the number of sign bit
30330         copies and non zero bits.
30332 2015-05-12  Richard Biener  <rguenther@suse.de>
30334         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30335         do not allow unrolling.
30337 2015-05-11  Richard Henderson  <rth@redhat.com>
30339         * config/i386/i386-modes.def (CCP): New.
30340         * config/i386/i386.c (put_condition_code): Handle it.
30341         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30343 2015-05-11  Richard Henderson  <rth@redhat.com>
30345         * target.def (md_asm_clobbers): Replace with...
30346         (md_asm_adjust): this.
30347         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30348         (TARGET_MD_ASM_ADJUST): New.
30349         * tm.texi: Rebuild.
30350         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30351         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30352         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30354         * cfgexpand.c (check_operand_nalternatives): Accept vector of
30355         constraints instead of lists of outputs and inputs.
30356         (expand_asm_stmt): Save and restore input_location around the
30357         body of the function.  Move asm data into vectors instead of
30358         building tree lists.  Generate cleanup sequences as needed,
30359         rather than waiting til the end.  Use new md_asm_adjust hook.
30361         * config/vxworks.c: Include vec.h before target.h.
30362         * gimple.c: Likewise.
30363         * incpath.c: Likewise.
30364         * mode-switching.c: Likewise.
30366         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30367         (cris_md_asm_adjust): this.
30368         (TARGET_MD_ASM_CLOBBERS): Remove.
30369         (TARGET_MD_ASM_ADJUST): New.
30370         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30371         (ix86_md_asm_adjust): this.
30372         (TARGET_MD_ASM_CLOBBERS): Remove.
30373         (TARGET_MD_ASM_ADJUST): New.
30374         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30375         (mn10300_md_asm_adjust): this.
30376         (TARGET_MD_ASM_CLOBBERS): Remove.
30377         (TARGET_MD_ASM_ADJUST): New.
30378         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30379         (rs6000_md_asm_adjust): this.
30380         (TARGET_MD_ASM_CLOBBERS): Remove.
30381         (TARGET_MD_ASM_ADJUST): New.
30382         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30383         (visium_md_asm_adjust): this.
30384         (TARGET_MD_ASM_CLOBBERS): Remove.
30385         (TARGET_MD_ASM_ADJUST): New.
30387 2015-05-11  Richard Henderson  <rth@redhat.com>
30389         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30390         if noutputs is zero.
30391         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30393         * cfgexpand.c (expand_asm_operands): Merge into...
30394         (expand_asm_stmt): ... here.
30396         * cfgexpand.c (expand_asm_operands): Don't call
30397         resolve_asm_operand_names.
30398         * stmt.c (resolve_asm_operand_names): Clarify block comment.
30400 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
30402         * dwarf2out.c (gen_member_die): Sanity check that we access
30403         TYPE_MAIN_VARIANT for TYPE_METHODS.
30404         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30405         checking TYPE_METHODS.
30406         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30407         if non-null.
30408         (build_distinct_type_copy): Clear TYPE_METHODS.
30409         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30410         (verify_type): Allow TYPE_METHODS to be error_mark_node.
30411         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30413 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
30415         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30416         (emit_pattern_before_setloc): Likewise.
30418 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30420         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30421         for define_peephole2s.
30422         (get_peephole2_pattern): New function.
30423         (main): Use it.  Call validate_pattern.
30425 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30427         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30428         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30429         (Last callee saved reg is different for AVR_TINY architecture)
30431 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30433         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30434         when looking for memory references.
30436 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30438         PR target/65753
30439         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30440         via function pointers.
30442 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30444         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30445         indirect call by forcing address into a pseudo with -fno-plt.
30446         * common.opt (flag_plt): New option.
30447         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30448         ([-fno-plt]): Document.
30450 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
30452         PR bootstrap/66105
30453         * config/rs6000/option-defaults.h: Add space between string literal
30454         and macro name.
30456 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30458         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30459         accross ARM targets.
30461 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30463         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30464         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30466 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30468         PR rtl-optimization/66076
30469         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30470         Don't grow the heap array if it is already big enough from a
30471         previous iteration.
30473 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30475         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30476         (is_called_in_ARM_mode): Remove.
30477         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30478         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30479         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30480          arm_declare_function_name.
30482 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30484         * config/arm/arm.c (arm_option_override): Reoganized and split into :
30485         (arm_option_params_internal); New function.
30486         (arm_option_check_internal): New function.
30487         (arm_option_override_internal): New function.
30488         (thumb_code, thumb1_code): Remove.
30489         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30490         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30491         (thumb_code, thumb1_code): Remove.
30492         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30494 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30496         * config/alpha/alpha.c (alpha_emit_set_const_1)
30497         (alpha_emit_set_long_const, alpha_extract_integer)
30498         (alpha_legitimate_constant_p, alpha_split_const_mov)
30499         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30500         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30501         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30502         HOST_WIDE_INT_1U.
30503         * config/alpha/predicates.md (mode_mask_operand): Do not match
30504         const_double RTX.
30505         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30506         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30507         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30508         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30509         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30511 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
30513         PR target/65780
30514         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30515         default_binds_local_p_2.
30516         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30517         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30519 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30521         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30523 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30525         Patch by Richard Biener
30526         * coverage.c (coverage_obj_init): Delay building of type variant
30527         until the type is finished.
30529 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30531         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30532         mismatch between C and C++ type; compoare correctly ARG_TYPES
30533         for non-prototypes and output correctly parameter index for METHOD_TYPE.
30534         (odr_types_equivalent_p): Fix wording of warning about attributes;
30535         it is OK to match prototype and non-prototype.
30537 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30539         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30540         TYPE_ARG_TYPES list.
30541         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30542         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30544 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30546         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30547         * tree.h (is_lang_specific): Constify.
30549 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
30551         PR tree-optimization/64454
30552         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30553         Rewrite.
30555 2015-05-08  Jason Merrill  <jason@redhat.com>
30557         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30558         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30559         config/darwin.h, config/darwin9.h, config/elfos.h,
30560         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30561         config/microblaze/microblaze.h, config/mips/mips.h,
30562         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30563         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30564         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30565         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30566         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30567         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30568         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30569         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30570         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30571         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30572         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30573         between string literal and macro name.
30575 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30577         * jump.c: Change argument types to rtx_insn *.
30578         * rtl.h: Adjust.
30580 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30582         * lra-constraints.c: Change argument type to rtx_insn *.
30584 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30586         * df-problems.c: Change argument type to rtx_insn *.
30588 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30590         * combine.c: Change argument type to rtx_insn *.
30592 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30594         * rtl.h: Adjust.
30595         * rtlanal.c: Change argument type to rtx_insn *.
30597 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30599         * sched-deps.c: Change argument types to rtx_insn *.
30600         * sched-int.h: Adjust.
30602 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30604         * dwarf2cfi.c: Change argument type to rtx_insn *.
30606 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30608         * ira.c (decrease_live_ranges_number): Changetype of local
30609         variable to rtx_insn *.
30610         * recog.c: Change argument types to rtx_insn *.
30611         * recog.h: Adjust.
30613 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30615         * reorg.c: Change argument types to rtx_insn *.
30617 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30619         * ira-color.c: Change argument types to rtx_insn *.
30620         * lra-eliminations.c: Likewise.
30621         * ira.h: Adjust.
30623 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30625         * gcse.c: Change argument types to rtx_insn *.
30627 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30629         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30631 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30633         * emit-rtl.c (emit_debug_insn_before): Change argument type to
30634         rtx_insn *.
30635         * rtl.h: Adjust.
30637 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30639         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30640         * rtl.h: Adjust.
30642 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30644         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30645         * rtl.h: Adjust.
30647 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30649         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30650         * rtl.h: Adjust.
30652 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30654         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30655         * rtl.h: Adjust.
30657 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30659         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30660         to rtx_insn *.
30661         * rtl.h: Adjust.
30663 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30665         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30666         to rtx_insn *.
30667         * rtl.h: Likewise.
30669 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30671         * except.c (can_nonlocal_goto): Change type of argument to
30672         rtx_insn *.
30673         * rtl.h: Adjust.
30675 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30677         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30678         * rtl.h: Adjust.
30680 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30682         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30683         * cfgrtl.c (can_delete_label_p): Adjust.
30684         * rtl.h: likewise.
30686 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30688         * reorg.c (stop_search_p): Change argument to rtx_insn *.
30690 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30692         * except.c (make_reg_eh_region_note): Change argument to
30693         rtx_insn *.
30694         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30695         * except.h: Adjust.
30697 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30699         * mode-switching.c (commit_mode_sets): Change type of local
30700         variable from rtx to rtx_insn *.
30702 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
30704         * doc/install.texi (--enable-languages): Add missing jit and lto info.
30705         Add ^ to grep command.
30706         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30707         arg to last gimple_simplify declaration.  Add missing gimple_build
30708         declaration for built-in function case with four tree args.
30710 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30711             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30713         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30714         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30715         (GNU_USER_DYNAMIC_LINKERN32): Update.
30717 2015-05-08  Richard Biener  <rguenther@suse.de>
30719         PR tree-optimization/66036
30720         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30721         Handle strided group loads.
30722         (vect_verify_datarefs_alignment): Likewise.
30723         (vect_enhance_data_refs_alignment): Likewise.
30724         (vect_analyze_group_access): Likewise.
30725         (vect_analyze_data_ref_access): Likewise.
30726         (vect_analyze_data_ref_accesses): Likewise.
30727         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30728         (vectorizable_load): Likewise.
30730 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
30732         * config/rs6000/rs6000.md: Require operand inequality in one
30733         of the peepholes.
30735 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
30736             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
30738         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30739         from (set ...).
30740         * config/rx/rx.md (movdi, movdf): Likewise.
30741         Likewise for define_peephole2s.
30743 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30745         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30746         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30747         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30748         vtst_u64): Rewrite using gcc vector extensions.
30750 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30752         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30753         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30755 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30757         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30759 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30761         * config/glibc-stdint.h (OPTION_MUSL): Define.
30762         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30763         Change the definition based on OPTION_MUSL for 64 bit targets.
30764         * config/linux.h (OPTION_MUSL): Redefine.
30765         * config/alpha/linux.h (OPTION_MUSL): Redefine.
30766         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30767         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30769 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30770             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30772         * config.gcc (LIBC_MUSL): New tm_defines macro.
30773         * config/linux.h (OPTION_MUSL): Define.
30774         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30775         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30776         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30777         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30778         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30779         * config/linux.opt (mmusl): New option.
30780         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30781         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30782         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30783         * configure: Regenerate.
30785 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
30786             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30788         PR target/48904
30789         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30790         * config/i386/knetbsd-gnu64.h: New file.
30792 2015-05-08  Marek Polacek  <polacek@redhat.com>
30794         PR c/64918
30795         * doc/invoke.texi: Document -Woverride-init-side-effects.
30797 2015-05-07  Marek Polacek  <polacek@redhat.com>
30799         PR c/65179
30800         * doc/invoke.texi: Document -Wshift-negative-value.
30802 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
30804         * gcov-tool.c (do_merge): Refactore to remove int ret.
30805         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30806         !type == FUNC to type != FUNC.
30807         * reload.h (struct target_reload): Changee to type of
30808         x_spill_indirect_levels from bool to unsigned char.
30810 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
30812         * rtl.h (always_void_p): New function.
30813         * gengenrtl.c (always_void_p): Likewise.
30814         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30815         with code foo are always VOIDmode.
30816         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30817         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30818         compare-elim.c, config/aarch64/aarch64.c,
30819         config/aarch64/aarch64.md, config/alpha/alpha.c,
30820         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30821         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30822         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30823         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30824         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30825         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30826         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30827         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30828         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30829         config/ia64/vect.md, config/iq2000/iq2000.c,
30830         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30831         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30832         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30833         config/mep/mep.c, config/microblaze/microblaze.c,
30834         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30835         config/mn10300/mn10300.c, config/msp430/msp430.c,
30836         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30837         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30838         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30839         config/rs6000/altivec.md, config/rs6000/rs6000.c,
30840         config/rs6000/rs6000.md, config/rs6000/vector.md,
30841         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30842         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30843         config/sh/sh.md, config/sh/sh_treg_combine.cc,
30844         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30845         config/spu/spu.md, config/stormy16/stormy16.c,
30846         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30847         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30848         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30849         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30850         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30851         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30852         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30853         var-tracking.c: Update calls accordingly.
30855 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
30857         PR middle-end/192
30858         PR middle-end/54303
30859         * varasm.c (function_mergeable_rodata_prefix): New function.
30860         (mergeable_string_section): Use it.
30861         (mergeable_constant_section): Use it.
30863 2015-05-07  Jeff Law  <law@redhat.com>
30865         PR target/39726
30866         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30867         simplifier to narrow arithmetic.
30868         * generic-match-head.c: (types_match, single_use): New functions.
30869         * gimple-match-head.c: (types_match, single_use): New functions.
30871 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30873         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30874         rtx type.
30876 2015-05-07  Richard Biener  <rguenther@suse.de>
30878         PR tree-optimization/66002
30879         * passes.def: Schedule another pass_merge_phi after ifcombine, right
30880         before phiopt.
30882 2015-05-07  Marek Polacek  <polacek@redhat.com>
30883             Martin Uecker  <uecker@eecs.berkeley.edu>
30885         * doc/invoke.texi: Document -fsanitize=bounds-strict.
30886         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30887         into SANITIZE_NONDEFAULT.
30888         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30890 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
30892         PR target/66015
30893         * config/alpha/alpha.c (alpha_override_options_after_change): New.
30894         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30895         (alpha_override_options): Move align_loops, align_jumps and
30896         align_functions handling into alpha_override_options_after_change.
30898 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
30899             Chris Jones  <chrisj@nvidia.com>
30900             Joshua Conner  <jconner@nvidia.com>
30902         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30903         linking of crtfastmath.o.
30904         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30906 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
30908         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30909         (cstore<mode>4_unsigned_imm): New expander.
30910         (cstore<mode>4): Remove empty constraint strings.  Use the new
30911         expanders.
30913 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
30915         PR target/64208
30916         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30917         alternatives.
30919 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30921         * config/aarch64/geniterators.sh: Use standard BRE in sed.
30923 2015-05-06  Alan Modra  <amodra@gmail.com>
30925         PR target/66033
30926         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30927         (UNSPEC_NOP): Define.
30928         (reload_vsx_from_gpr<mode>): Add missing DONE.
30929         (reload_gpr_from_vsx<mode>): Likewise.
30930         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30931         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30933 2015-05-06  Christian Bruel  <christian.bruel@st.com>
30935         PR target/66015
30936         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30937         align_jumps, align_functions into aarch64_override_options_after_change.
30939 2015-05-06  Richard Biener  <rguenther@suse.de>
30941         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30942         vect_transform_slp_perm_load to check if we support a permutation
30943         for basic-block vectorization.
30945 2015-05-06  Nick Clifton  <nickc@redhat.com>
30947         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30948         used, even if it is not being used as a frame pointer.
30950 2015-05-05  Jason Merrill  <jason@redhat.com>
30952         * dwarf2out.c (gen_member_die): Don't emit anything for an
30953         anonymous class constructor.
30955 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
30957         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30958         that it reflects the block structure.
30959         (afdo_propagate_edge): Likewise.
30960         (afdo_calculate_branch_prob): Likewise.
30961         (afdo_annotate_cfg): Likewise.
30962         * cfgcleanup.c (equal_different_set_p): Likewise.
30963         (try_crossjump_to_edge): Likewise.
30964         * cgraph.c (cgraph_node::verify_node): Likewise.
30965         * cgraphunit.c (expand_all_functions): Likewise.
30966         * config/i386/i386.c (ix86_expand_copysign): Likewise.
30967         (exact_dependency_1): Likewise.
30968         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30969         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30970         * gensupport.c (process_define_subst): Likewise.
30971         * lto-wrapper.c (merge_and_complain): Likewise.
30972         * tree-if-conv.c (if_convertible_bb_p): Likewise.
30973         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30974         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30975         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30976         * tree-vect-loop.c (vectorizable_reduction): Likewise.
30977         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30978         * tree-vect-stmts.c (vectorizable_shift): Likewise.
30979         * tree-vrp.c (vrp_finalize): Likewise.
30980         * tree.c (variably_modified_type_p): Likewise.
30982 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
30984         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30985         on darwin12 and later.
30986         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30987         file to pass -rdynamic on darwin12 and later.
30988         * config/darwin.opt (rdynamic): Add.
30990 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30992         * doc/extend.texi (C Extensions): Update menu for moved Variable
30993         Attributes and Type Attributes sections.
30995 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30997         PR target/65990
30998         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30999         if rep_8byte stringop strategy was specified for 32-bit target.
31001 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
31003         PR target/65915
31004         * config/i386/i386.md (vector convert to float spltiter): Check for
31005         xmm16+, when splitting scalar float conversion.
31006         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31008 2015-05-05  Nick Clifton  <nickc@redhat.com>
31010         * config/msp430/msp430-opts.h (enum msp430_regions): New.
31011         * config/msp430/msp430.c (msp430_override_options): Complain if
31012         -mcode-region or -mdata-region is used on a non MSP430X.
31013         (msp430_section_attr): New function.  Checks lower, upper and
31014         either attributes.
31015         (msp430_attribute_table): Add lower, upper and either.
31016         (gen_prefix): New function.  Generates a prefix for a section
31017         name.
31018         (msp430_select_section): New function - handles the choice of
31019         section for an object.  Takes into account memory region
31020         attributes and options.
31021         (msp430_function_section): Use gen_prefix.
31022         (TARGET_SECTION_TYPE_FLAGS): Define.
31023         (msp430_section_type_flags): New function.
31024         (TARGET_ASM_UNIQUE_SECTION): Define.
31025         (msp430_unique_section): New function.
31026         (msp430_output_aligned_decl_common): New function.
31027         (msp430_do_not_relax_short_jumps): New function.
31028         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31029         Define.
31030         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31031         * config/msp430/msp430-protos.h
31032         (msp430_do_not_relax_short_jumps): New prototype.
31033         (msp430_output_aligned_decl_common): New prototype.
31034         * config/msp430/msp430.md (length): New attribute.
31035         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31036         then use a long code sequence for short jumps.
31037         * config/msp430/msp430.opt (mcode-region): New.
31038         (mdata-region): New.
31039         * doc/invoke.texi: Document new options.
31040         * doc/extend.texi: Document new attributes.
31042 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31044         * config/aarch64-protos.h (struct cpu_branch_cost): New.
31045         (tune_params): Add field branch_costs.
31046         (aarch64_branch_cost): Declare.
31047         * config/aarch64.c (generic_branch_cost): New.
31048         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31049         (cortexa53_tunings): Likewise.
31050         (cortexa57_tunings): Likewise.
31051         (thunderx_tunings): Likewise.
31052         (xgene1_tunings): Likewise.
31053         (aarch64_branch_cost): Define.
31054         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31056 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31058         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31059         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31060         * config/i386/i386.md: Ditto.
31061         * config/i386/winnt.c: Ditto.
31063 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31065         * doc/extend.texi (__atomic Builtins): Move implementation details
31066         to the end of the description, rewrite opening paragraphs, state
31067         difference with __sync builtins, state C11/C++11 assumptions,
31068         weaken itemized descriptions, add explanation of memory model
31069         behaviour, expand description of compare-exchange, simplify text.
31071 2015-05-05  Renlin Li  <renlin.li@arm.com>
31073         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31075 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
31077         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31078         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31079         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31080         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31081         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31082         * configure: Regenerate.
31083         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31084         * doc/install.texi (aarch64*-*-*): Document new
31085         --enable-fix-cortex-a53-843419 option.
31086         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31087         and -mno-fix-cortex-a53-843419 options.
31089 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31091         PR target/65871
31092         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31094 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
31096         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31097         fix overactive TYPE_MIN_VALUE check and add FIXME for type
31098         compatibility problems.
31100 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31102         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31103         constraints.
31104         (cbranchsi4_reg): New.
31105         * config/microblaze/microblaze.c
31106         (microblaze_expand_conditional_branch_reg): New.
31107         * config/microblaze/microblaze-protos.h
31108         (microblaze_expand_conditional_branch_reg): New prototype.
31110 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31112         * config/microblaze/microblaze.md (peephole2): New.
31114 2015-05-04  Jeff Law  <law@redhat.com>
31116         Revert:
31117         2015-05-04  Jeff Law  <law@redhat.com>
31119         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31120         simplifier to narrow arithmetic.
31121         * generic-match-head.c: (types_match, single_use): New functions.
31122         * gimple-match-head.c: (types_match, single_use): New functions.
31124 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
31126         PR target/65987
31127         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31128         (split_branches): Likewise.
31130 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
31132         * common.opt (fdelete-null-pointer-checks): Init to -1.
31133         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31134         override flag_delete_null_pointer_checks default.
31135         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31136         behavior re address zero.  Better document target-specific behavior.
31137         (-fisolate-errneous-paths-dereference): Mention relationship to
31138         -fdelete-null-pointer-checks.
31140 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31142         PR tree-optimization/65984
31143         * ubsan.c: Include tree-cfg.h.
31144         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31145         stmt_could_throw_p test, rename can_throw variable to ends_bb.
31147 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31149         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31150         to CONST_DOUBLE_P predicate.
31151         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31152         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31153         allow only operands that satisfy standard_sse_constant_p predicate.
31154         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31155         to CONST_DOUBLE_P predicate.
31157 2015-05-04  Jeff Law  <law@redhat.com>
31159         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31160         simplifier to narrow arithmetic.
31161         * generic-match-head.c: (types_match, single_use): New functions.
31162         * gimple-match-head.c: (types_match, single_use): New functions.
31164 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
31166         * config/arm/arm.c: Restore bootstrap.
31168 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31170         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31171         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31172         as CONST_WIDE_INT, not CONST_DOUBLE.
31173         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31174         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31175         (ix86_find_base_term): Do not check for CONST_DOUBLE.
31176         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31177         (ix86_build_signbit_mask): Rewrite using wide ints.
31178         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31179         (ix86_rtx_costs): Handle CONST_WIDE_INT.
31180         (find_constant): Ditto.
31181         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31182         using gen_int_mode.
31183         * config/i386/predicates.md (x86_64_immediate_operand)
31184         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31185         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31186         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31187         (const0_operand): Also match const_wide_int.
31188         (constm1_operand): Ditto.
31189         (const1_operand): Ditto.
31191 2015-05-04  Richard Biener  <rguenther@suse.de>
31193         PR tree-optimization/65965
31194         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31195         store groups at gaps.
31197 2015-05-04  Richard Biener  <rguenther@suse.de>
31199         PR tree-optimization/65935
31200         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31201         then make sure to apply that swapping to the IL.
31203 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31205         * Makefile.in (PATCHLEVEL_c): New variable.
31206         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31207         expand the same way as if DEVPHASE_c was non-empty.
31209 2015-05-04  Kai Tietz  <ktietz@redhat.com>
31211         PR target/65559
31212         * lto-wrapper.c (run_gcc): Open filename
31213         in binary-mode.
31215 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
31217         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
31218         sections up in file, to immediately after the Function Attributes
31219         section.
31221 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
31223         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31225 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31227         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31228         (insert_partition_copy_on_edge): Adjust.
31229         (insert_rtx_to_part_on_edge): Likewise.
31230         (insert_part_to_rtx_on_edge): Likewise.
31232 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31234         * function.c (set_return_jump_label): Change type of argument to
31235         rtx_insn *.
31236         * function.h (set_return_jump_label): Adjust.
31238 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31240         * reload.h (struct reg_equivs_t): Change type of init to
31241         rtx_insn *.
31242         * ira.c (fix_reg_equiv_init): Adjust.
31243         * reload1.c (eliminate_regs_1): Likewise.
31244         (init_eliminable_invariants): Likewise.
31246 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31248         * cselib.c (fp_setter_insn): Take a rtx_insn *.
31249         * cselib.h (fp_setter_insn): Adjust.
31251 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31253         * recog.c (struct validate_replace_src_data): Change type of
31254         insn field to rtx_insn *.
31255         (validate_replace_src_group): Change type of argument to rtx_insn *.
31256         * recog.h (validate_replace_src_group): Adjust.
31258 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31260         * haifa-sched.c: Change the type of some variables to rtx_insn *.
31261         * sched-deps.c: Likewise.
31262         * sched-int.h: Likewise.
31263         * sched-rgn.c: Likewise.
31264         * sel-sched.c: Likewise.
31266 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31268         to rtx_insn *.
31269         * config/i386/i386.c: Change the type of some arguments to
31270         rtx_insn *.
31271         * config/arm/arm.c: Likewise.
31273 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31275         * lra-constraints.c: Change type of some arguments to rtx_insn *.
31277 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31279         * regcprop.c (kill_autoinc_value): Change type of argument to
31280         rtx_insn *.
31282 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31284         * genrecog.c (print_subroutine): Adjust.
31285         * recog.c (get_bool_attr_mask_uncached): Likewise.
31286         * recog.h (struct recog_data_d): Change the type of insn to
31287         rtx_insn *.
31289 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31291         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31293 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31295         * df-problems.c (df_set_note): Change type of argument to
31296         rtx_insn *.
31298 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31300         * builtins.c (expand_builtin_trap): Change type of local
31301         variable to rtx_insn *.
31302         (add_sched_insns_for_speculation): Likewise.
31303         (ix86_emit_save_regs): Likewise.
31304         (get_scratch_register_on_entry): Likewise.
31305         (ix86_emit_restore_reg_using_pop): Likewise.
31306         (ix86_emit_leave): Likewise.
31307         (ix86_emit_restore_regs_using_mov): Likewise.
31308         (ix86_expand_epilogue): Likewise.
31309         Likewise.
31310         (rl78_alloc_physical_registers_umul): Likewise.
31311         * cselib.c (discard_useless_locs): Likewise.
31312         (cselib_invalidate_regno): Likewise.
31313         (cselib_invalidate_mem): Likewise.
31314         * function.c (expand_function_start): Likewise.
31315         (emit_use_return_register_into_block): Likewise.
31316         * gcse.c: Likewise.
31317         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31318         * ifcvt.c (noce_get_alt_condition): Likewise.
31319         * loop-doloop.c (doloop_condition_get): Likewise.
31320         * lra-constraints.c (inherit_in_ebb): Likewise.
31321         * modulo-sched.c (sms_schedule_by_order): Likewise.
31322         * recog.c (next_insn_tests_no_inequality): Likewise.
31323         * reorg.c (emit_delay_sequence): Likewise.
31324         (update_reg_dead_notes): Likewise.
31325         (fix_reg_dead_note): Likewise.
31326         (fill_slots_from_thread): Likewise.
31327         (delete_computation): Likewise.
31329 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
31331         * doc/extend.texi (Variable Attributes): Add menu and proper
31332         @nodes to subsections.  Move Microsoft Windows attributes to
31333         their own subsection.
31334         (Type Attributes): Reorganize introduction to remove duplicate
31335         list of attributes.  Add menu and proper @nodes to subsections.
31336         Alphabetize the main table of common attributes.
31338 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31340         * match.pd: New simplification patterns.
31341         (x + (x & 1))  -> ((x + 1) & ~1)
31342         (x & ~(x & y)) -> ((x & ~y))
31343         (x | ~(x | y)) -> ((x | ~y))
31345 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31347         * target.def (attribute_table): Mention that struct attribute_spec
31348         is defined in tree-core.h rather than tree.h
31349         * doc/tm.texi: Regenerate.
31351 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
31353         * genrecog.c (test): Rename to rtx_test.  Update rest of file
31354         accordingly.
31356 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
31358         PR translation/65959
31359         * params.h (DEFPARAM): Rename msgid to nocmsgid.
31361 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31363         * config/aarch64/aarch64-protos.h (tune_params):
31364         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31365         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31366         Return value depending on target.
31367         (generic_tunings): Initialize new target settings.
31368         (cortexa53_tunings): Likewise.
31369         (cortexa57_tunings): Likewise.
31370         (thunderx_tunings): Likewise.
31371         (xgene1_tunings): Likewise.
31373 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31375         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31376         Make Cortex-A53 shift costs more accurate.
31378 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31380         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31381         UNSIGNED_FLOAT.
31383 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31385         * config/aarch64/aarch64.c (aarch64_rtx_costs):
31386         Calculate cost of op0 and op1 in PLUS and MINUS cases.
31388 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31390         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31391         Add cost of op0 in the compare-with-fpzero case.
31393 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
31395         * builtins.c (fold_builtin_1): Remove spurious second
31396         semicolon.
31397         * cgraph.h (symtab_node::get_availability): Likewise.
31398         * opts.c (common_handle_option): Remove spurious second semicolon.
31399         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31400         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31402 2015-04-30  Caroline Tice  <cmtice@google.com>
31404         PR gcov-profile/65929
31405         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31406         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31407         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31408         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31409         * doc/tm.texi: Regenerate.
31410         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
31411         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31412         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
31413         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31415 2015-04-30  Marek Polacek  <polacek@redhat.com>
31417         * varasm.c (handle_cache_entry): Fix logic.
31419 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31421         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31422         (*extrsi5_insn_uxtw_alt): Likewise.
31423         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31424         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31425         operations.
31427 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31429         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31430         fabd in ABS case.
31432 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31434         * config/aarch64/aarch64.md
31435         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31436         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31437         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31438         appropriately.  Handle alternative EON form.
31440 2015-04-30  Renlin Li  <renlin.li@arm.com>
31442         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31443         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31445 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31447         PR ipa/65873
31448         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31449         -fstrict-aliasing boundaries.
31451 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31453         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31454         and [SU]MNEGL patterns.
31456 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31458         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31459         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31460         combined arithmetic-shift ops.  Properly handle all shift and extend
31461         operations that can occur in combination with PLUS/MINUS.
31462         Rename maybe_fma to compound_p.
31463         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31464         arithmetic and shift operations.
31466 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31468         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31469         rather than arith_shift cost when costing ADD/MINUS of an
31470         extended value.
31472 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31474         PR lto/65948
31475         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31476         to itself.
31478 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
31480         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31481         are for the same position.
31483 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
31485         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
31486         vectorize_loops.
31487         (vectorize_loops): Use it.
31489 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31491         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31492         for aggregate types.
31493         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31494         type to be non_ODR.
31495         * tree.c (need_assembler_name_p): Compute mangled name for
31496         non-fundamental types and integer types.
31498 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
31500         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31501         manual swaps.
31502         * expr.c (expand_expr_real_2): Likewise.
31504 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31506         * tree.c (build_common_builtin_nodes): Do not build
31507         __builtin_alloca_with_align as equivalent of library alloca.
31509 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31511         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31512         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31513         bugus variants.
31514         * tree.c: Include print-tree.h and ipa-utils.h
31515         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31516         (free_lang_data_in_cgraph): Call verify_type.
31517         (verify_type_variant): New function.
31518         (verify_type): New function.
31519         * tree.h (verify_type): Declare.
31521 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
31523         * config/mips/mips-cpus.def: (mips4): Change default processor
31524         from PROCESSOR_R8000 to PROCESSOR_R10000.
31526 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
31528         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31529         la/jalr instead of jal.
31531 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
31533         PR target/65871
31534         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31535         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31536         (setcc+movzbl peephole2): Check also clobbered reg.
31537         (setcc+andl peephole2): Ditto.
31539 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31541         PR libgomp/65099
31542         * config/nvptx/mkoffload.c (target_ilp32): New variable.
31543         (main): Set it depending on "-foffload-abi=[...]".
31544         (compile_native, main): Use it to pass "-m32" or "-m64" to the
31545         compiler.
31547 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31549         PR target/65770
31550         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31551         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31552         Flip lane index back at assembly time for bigendian.
31554 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31556         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31557         * gimplify.c (gimplify_omp_workshare): Use it.
31559 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31561         * Makefile.in (build/genrecog.o): Depend on inchash.h.
31562         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31563         build/inchash.o
31564         * genrecog.c: Rewrite most of the code except for the third page.
31566 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31568         * inchash.h, inchash.c: Include bconfig.h for build objects.
31569         * Makefile.in (build/inchash.o): New rule.
31571 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
31573         PR target/65924
31574         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31575         number in type attribute expression.
31577 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31579         * loop-iv.c (canon_condition): Generalize to all types of integer
31580         constant.
31582 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
31584         * gimple-walk.c: Prune duplicate or unneeded includes.
31585         (walk_gimple_asm): Only call parse_input_constraint or
31586         parse_output_constraint if their findings are used.
31587         Honour parse_input_constraint and parse_output_constraint
31588         result.
31590 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31592         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31594 2015-04-29  Tom de Vries  <tom@codesourcery.com>
31596         PR tree-optimization/65893
31597         * passes.def (pass_all_optimizations): Move pass_stdarg to after
31598         pass_dce.
31600 2015-04-29  Richard Biener  <rguenther@suse.de>
31602         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31603         compute GROUP_SIZE for basic-block SLP.
31604         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31605         take into account gaps.
31606         (vect_get_mask_element): Properly reject references to previous
31607         vectors.
31608         (vect_transform_slp_perm_load): Likewise.
31610 2015-04-29  Christian Bruel  <christian.bruel@st.com>
31612         PR target/64835
31613         * config/i386/i386.c (ix86_default_align): New function.
31614         (ix86_override_options_after_change): Call ix86_default_align.
31615         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31616         (ix86_override_options_after_change): New function.
31618 2015-04-28  Jeff Law  <law@redhat.com>
31620         * tree-ssa-dom.c (record_equality); Fix comment typos.
31622 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31624         PR tree-optimization/65887
31625         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31627 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
31629         * doc/extend.texi (Declaring Attributes of Functions): Split into
31630         subsections by target.  Alphabetize the table of common attributes.
31631         Rewrite some of the introductory text to reflect the new structure.
31632         Update some cross-references to point to the new subsections.
31633         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
31634         duplicate copies in the discussion of function, label, and type
31635         attributes.
31637 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
31639         PR bootstrap/65910
31640         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31642 2015-04-28  Jason Merrill  <jason@redhat.com>
31644         PR c++/65734
31645         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31646         (finalize_type_size): Respect TYPE_USER_ALIGN.
31647         (layout_type) [ARRAY_TYPE]: Likewise.
31649 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
31651         * config/arm/arm.md (*arm_movt): Fix type attribute.
31652         (*cmpsi_shiftsi): Likewise.
31653         (*cmpsi_shiftsi_swp): Likewise.
31654         (*movsicc_insn): Likewise.
31655         (*cond_move): Likewise.
31656         (*if_plus_move): Likewise.
31657         (*if_move_plus): Likewise.
31658         (*if_arith_move): Likewise.
31659         (*if_move_arith): Likewise.
31660         (*if_shift_move): Likewise.
31661         (*if_move_shift): Likewise.
31662         (*arm_movtas_ze): Likewise.
31663         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31664         redundancy and type attribute.
31665         (*thumb2_movsi_insn): Fix type attribute.
31666         (*thumb2_addsi_short): Likewise.
31667         (thumb2_addsi3_compare0): Likewise.
31668         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31669         attributes accordingly.
31671 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
31673         PR other/65911
31674         * function.c (pad_to_arg_alignment): Add parentheses.
31676 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
31678         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31679         libgcc/config/frv/elf-lib.h.
31681 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31683         * tree-call-cdce.c: Fix example in header comment.
31685 2015-04-28  Richard Biener  <rguenther@suse.de>
31687         PR tree-optimization/62283
31688         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31689         fails fatally and we are vectorizing a basic-block simply
31690         cause the child to be constructed piecewise.
31691         (vect_analyze_slp_cost_1): Adjust.
31692         (vect_detect_hybrid_slp_stmts): Likewise.
31693         (vect_bb_slp_scalar_cost): Likewise.
31694         (vect_get_constant_vectors): For piecewise constructed
31695         constants place them after the last def.
31696         (vect_get_slp_defs): Adjust.
31697         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31698         externals for basic-block vectorization.
31700 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31702         PR target/63503
31703         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31704         aarch64-*-*.
31705         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31706         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31707         (AARCH64_TUNE_FMA_STEERING): Likewise.
31708         * config/aarch64/aarch64-cores.def: Set
31709         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31710         FMUL/FMADD instructions.
31711         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31712         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
31713         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31714         * config/aarch64/cortex-a57-fma-steering.h: New file.
31715         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31717 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
31719         * gensupport.c (std_preds): Add missing codes to address_operand entry.
31721 2015-04-28  Richard Biener  <rguenther@suse.de>
31723         PR tree-optimization/65851
31724         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31725         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
31726         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
31727         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31728         (ccp_visit_phi_node): Adjust.
31729         (evaluate_stmt): For simplifications to SSA names return its
31730         lattice value if that isn't VARYING.  Return immediately when
31731         simplified to a constant.
31732         (visit_assignment): Adjust.
31733         (ccp_visit_stmt): Likewise.
31735 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31737         PR tree-optimization/65818
31738         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31739         evaluated.
31741 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31743         * calls.c (save_fixed_argument_area): Don't check
31744         ARGS_GROW_DOWNWARD with the preprocessor.
31745         (restore_fixed_argument_area): Likewise.
31746         (mem_overlaps_already_clobbered_arg_p): Likewise.
31747         (check_sibcall_argument_overlap): Likewise.
31748         (expand_call): Likewise.
31749         (emit_library_call_value_1): Likewise.
31750         (store_one_arg): Likewise.
31751         * function.c (assign_parms): Likewise.
31752         (locate_and_pad_parm): Likewise.
31753         (pad_to_arg_alignment): Likewise.
31754         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31756 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31758         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31759         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31760         * calls.c (save_fixed_argument_area): Don't chekc if
31761         ARGS_GROW_DOWNWARD is defined.
31762         (restore_fixed_argument_area): Likewise.
31763         (mem_overlaps_already_clobbered_arg_p): Likewise.
31764         (check_sibcall_argument_overlap): Likewise.
31765         (expand_call): Likewise.
31766         (emit_library_call_value_1): Likewise.
31767         (store_one_arg): Likewise.
31768         * function.c (assign_parms): Likewise.
31769         (locate_and_pad_parm): Likewise.
31770         (pad_to_arg_alignment): Likewise.
31771         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31773 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31775         * defaults.h (gen_epilogue): New function.
31776         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31777         defined.
31778         * cfgrtl.c (cfg_layout_finalize): Likewise.
31779         * df-scan.c: Likewise.
31780         * function.c (thread_prologue_and_epilogue_insns): Likewise.
31781         (reposition_prologue_and_epilogue_notes): Likewise.
31782         * reorg.c (find_end_label): Likewise.
31783         * toplev.c: Likewise.
31785 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31787         * bb-reorder.c (HAVE_return): Don't check if its undefined.
31788         * defaults.h (gen_simple_return): New function.
31789         (gen_simple_return): Likewise.
31790         (HAVE_return): Add default definition to false.
31791         (HAVE_simple_return): Likewise.
31792         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31793         HAVE_return and HAVE_simple_return are defined.
31794         * function.c (gen_return_pattern): Likewise.
31795         (convert_jumps_to_returns): Likewise.
31796         (thread_prologue_and_epilogue_insns): Likewise.
31797         * reorg.c (find_end_label): Likewise.
31798         (dbr_schedule): Likewise.
31799         * shrink-wrap.c: Likewise.
31800         * shrink-wrap.h: Likewise.
31802 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31804         * defaults.h (EPILOGUE_USES): Add default definition of false.
31805         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31806         * resource.c (init_resource_info): Likewise.
31808 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31810         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31811         to false.
31812         * dwarf2out.c (field_byte_offset): REmove check if
31813         PCC_BITFIELD_TYPE_MATTERS is defined.
31814         * stor-layout.c (layout_decl): Likewise.
31815         (update_alignment_for_field): Likewise.
31816         (place_field): Likewise.
31818 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31820         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31821         true.
31822         * regrename.c (check_new_reg_p): Remove check if
31823         HARD_REGNO_RENAME_OK is defined.
31824         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31826 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31828         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31829         * cse.c (fold_rtx): Likewise.
31830         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31831         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31832         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31833         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31834         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31835         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31836         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31837         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31838         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31839         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31840         * Likewise.
31841         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31842         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31843         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31844         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31845         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31846         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31847         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31848         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31849         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31850         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31851         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31852         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31853         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31854         * doc/tm.texi: Regenerate.
31855         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31856         either true or false.
31858 2015-04-27  Jeff Law  <law@redhat.com>
31860         PR tree-optimization/65217
31861         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31862         of them has a single use, make sure it is the LHS of the implied
31863         copy.
31865 2015-04-28  Alan Modra  <amodra@gmail.com>
31867         PR target/65810
31868         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31869         (offsettable_ok_by_alignment): Use minimum of decl and toc
31870         pointer alignment.  Replace dead code with assertion.
31871         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
31872         case if size exceeds toc pointer alignment.
31873         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31874         (rs6000_emit_move): Likewise.
31875         * configure.ac: Add linker toc pointer alignment check.
31876         * configure: Regenerate.
31877         * config.in: Regenerate.
31879 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
31881         * config.gcc: Add h8300-*-linux.
31882         * config/h8300/linux.h: New.
31883         * config/h8300/t-linux: New.
31884         * config/h8300/h8300.c (h8300_option_override): Normal mode
31885         is not supported for h8300-*-linux.
31886         (h8300_file_start): Target priority change.
31887         (get_shift_alg): Likewise.
31888         (h8300_shift_need_scratch_p): Likewise.
31889         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31890         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31892 2015-04-27  Caroline Tice  <cmtice@google.com>
31894         * final.c (final_scan_insn):  Output cold_function_name as function
31895         type.
31896         * varasm.c (cold_function_name):  Make global.
31897         (assemble_start_function):  Re-set cold_function_name.
31898         (assemble_end_function): Output cold partition size.
31899         * varasm.h (cold_function_name):  Declare global.
31901 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
31903         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31904         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31905         constraint.
31906         (*movxi_internal_avx512f): Ditto.
31907         (define_split): Check for xmm16+, when splitting scalar float_extend.
31908         (*extendsfdf2_mixed): Use "v" constraint.
31909         (define_split): Check for xmm16+, when splitting scalar float_truncate.
31910         (*truncdfsf_fast_sse): Use "v" constraint.
31911         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31912         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31913         (define_peephole2): Check for xmm16+, when converting scalar
31914         float_truncate.
31915         (define_peephole2): Check for xmm16+, when converting scalar
31916         float_extend.
31917         (*fop_<mode>_comm_mixed): Use "v" constraint.
31918         (*fop_<mode>_comm_sse): Ditto.
31919         (*fop_<mode>_1_mixed): Ditto.
31920         (*sqrt<mode>2_sse): Ditto.
31921         (*ieee_s<ieee_maxmin><mode>3): Ditto.
31923 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31925         * combine.c (simplify_if_then_else): Use std::swap instead
31926         of manually swapping.
31927         (known_cond): Likewise.
31928         (simplify_comparison): Likewise.
31930 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
31932         PR target/64579
31933         * config/rs6000/htm.md: Remove all define_expands.
31934         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31935         UNSPECV_HTM_TABORTWCI): Remove.
31936         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31937         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31938         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31939         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31940         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31941         tabortwci_internal): Remove define_insns.
31942         (tabort<wd>c, tabort<wd>ci): New define_insns.
31943         (tabort): Use gpc_reg_operand.
31944         (tcheck): Remove operand.
31945         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31946         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31947         expected value.
31948         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31949         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
31950         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31951         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31952         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31953         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31954         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31955         (tcheck): Remove builtin argument.
31956         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31957         not TARGET_64BIT.
31958         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
31959         tabortdc and tabortdci builtins when not in 64-bit mode.
31960         Modify code to handle the loss of the HTM define_expands.
31961         Emit code to copy the CR register to TARGET.
31962         (htm_init_builtins): Modify code to handle the loss of the HTM
31963         define_expands.
31964         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31965         (RS6000_BTC_64BIT): Likewise.
31966         (RS6000_BTC_CR): New macro.
31967         * doc/extend.texi: Update documentation for htm builtins.
31969 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31971         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31972         of manually swapping.
31973         (simplify_associative_operation): Likewise.
31974         (simplify_binary_operation): Likewise.
31975         (simplify_plus_minus): Likewise.
31976         (simplify_relational_operation): Likewise.
31977         (simplify_ternary_operation): Likewise.
31979 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31981         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31982         (xs_hi_nonmemory_operand): Remove error.
31983         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31984         general_operand rather than xs_hi_general_operand.
31986 2015-04-27  Richard Biener  <rguenther@suse.de>
31988         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31989         (record_equivalences_from_stmt): Valueize rhs.
31990         (record_equality): Canonicalize x and y order via
31991         tree_swap_operands_p.  Do not swap operands for same loop depth.
31993 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
31995         PR target/65296
31996         PR target/65895
31997         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31998         Add hint how to use own spec file.
32000 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
32002         PR tree-optimization/65875
32003         * tree-vrp.c (update_value_range): If in is_new case setting
32004         old_vr to VR_VARYING, also set new_vr to it.  Remove
32005         old_vr->type == VR_VARYING test.
32006         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32007         SSA_PROP_INTERESTING if update_value_range returned true,
32008         but new range is VR_VARYING.
32010 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32012         * combine.c (sign_extend_short_imm): New.
32013         (set_nonzero_bits_and_sign_copies): Use above new function for sign
32014         extension of src short immediate.
32015         (reg_nonzero_bits_for_combine): Likewise for tem.
32017 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32019         * stor-layout.c (self_referential_component_ref_p): New predicate.
32020         (copy_self_referential_tree_r): Use it.
32021         (self_referential_size): Punt for simple operations directly involving
32022         self-referential component references.
32023         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32025 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32027         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32029 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32031         * vec.h (vec): Make splice arguments const.  Update definitions
32032         accordingly.
32034 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
32036         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32037         alternatives.
32039 2015-04-26  Tom de Vries  <tom@codesourcery.com>
32041         PR tree-optimization/65826
32042         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32044 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
32046         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32047         (*madd3<mode>): Ditto.
32048         (*msub4<mode>): Ditto.
32049         (*msub3<mode>): Ditto.
32050         (*nmadd4<mode>): Ditto.
32051         (*nmadd3<mode>): Ditto.
32052         (*nmadd4<mode>_fastmath): Ditto.
32053         (*nmadd3<mode>_fastmath): Ditto.
32054         (*nmsub4<mode>): Ditto.
32055         (*nmsub3<mode>): Ditto.
32056         (*nmsub4<mode>_fastmath): Ditto.
32057         (*nmsub3<mode>_fastmath): Ditto.
32059 2015-04-24  Jason Merrill  <jason@redhat.com>
32061         PR c++/50800
32062         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32063         down when building TYPE_CANONICAL.
32064         (build_pointer_type_for_mode): Likewise.
32066 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
32068         * genrecog.c (validate_pattern): Check matching constraint refers
32069         to a lower numbered operand.
32071 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
32073         PR target/65849
32074         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32075         save to independent variables use the Save attribute.  This will
32076         allow these options to be modified with the #pragma/attribute
32077         target support.
32078         (-mallow-movmisalign): Likewise.
32079         (-mallow-df-permute): Likewise.
32080         (-msched-groups): Likewise.
32081         (-malways-hint): Likewise.
32082         (-malign-branch-targets): Likewise.
32083         (-mvectorize-builtins): Likewise.
32084         (-msave-toc-indirect): Likewise.
32086         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32087         can be set via the #pragma/attribute target support.
32088         (rs6000_opt_vars): Likewise.
32089         (rs6000_inner_target_options): If VSX was set, also set
32090         -mno-avoid-indexed-addresses.
32092 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32094         * config/arm/iterators.md (shiftable_ops): Rename to...
32095         (SHIFTABLE_OPS): ... This.  Update use in comments.
32096         (ior_xor): Rename to...
32097         (IOR_XOR): ... This.
32098         (vqh_ops): Rename to...
32099         (VQH_OPS): ... This.
32100         (vqhs_ops): Rename to...
32101         (VQHS_OPS): ... This.
32102         (rshifts): Rename to...
32103         (RSHIFTS): ... This.
32104         (returns): Rename to...
32105         (RETURNS): ... This.
32106         * config/arm/arm.md: Update uses of the above.
32107         * config/arm/neon.md: Likewise.
32109 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32111         * config.host (case ${host}): Add aarch64*-*-linux case.
32112         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32113         fields to all the cores.
32114         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32115         Add MCPU_MTUNE_NATIVE_SPECS.
32116         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32117         field to all extensions.
32118         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32119         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32120         Adjust definition of AARCH64_OPT_EXTENSION.
32121         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32122         (MCPU_MTUNE_NATIVE_SPECS): Define.
32123         * config/aarch64/driver-aarch64.c: New file.
32124         * config/aarch64/x-arch64: New file.
32125         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32126         -mtune and -march.
32128 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32129             Wei Mi  <wmi@google.com>
32131         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32132         * config/i386/i386.c (extract_base_offset_in_addr): New function.
32133         (ix86_operands_ok_for_move_multiple): Ditto.
32134         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32135         (movlpd/movhpd to movupd peephole2): Ditto.
32137 2015-04-24  Marek Polacek  <polacek@redhat.com>
32139         PR c/61534
32140         * input.h (from_macro_expansion_at): Define.
32142         PR c/63357
32143         * doc/invoke.texi: Update description of -Wlogical-op.
32145 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32147         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32148         ternary operator in fprintf and harmonize spacing.
32150 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32152         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32153         Mark operand1 commutative.
32155 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32157         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32158         input operands in memory.
32159         (*vec_concatv2si_sse4_1): Ditto.
32160         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32161         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32162         register_operand.
32163         (vec_extract_hi_v32hi): Ditto.
32164         (vec_extract_hi_v64hi): Ditto.
32165         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32167 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32168             Steven Bosscher <steven@gcc.gnu.org>
32170         PR rtl-optimization/34503
32171         * cprop.c (cprop_reg_p): New.
32172         (hash_scan_set): Use above function to check if register can be
32173         propagated.
32174         (find_avail_set): Return up to two sets, one whose source is a
32175         register and one whose source is a constant.  Sets are returned in an
32176         array passed as parameter rather than as a return value.
32177         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
32178         sets returned by find_avail_set, starting with the one whose source is
32179         a constant. Use cprop_reg_p to check if register can be propagated.
32180         (do_local_cprop): Use cprop_reg_p to check if register can be
32181         propagated.
32182         (implicit_set_cond_p): Likewise.
32184 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32186         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32187         (sem_function::equals): IGNORED_NODES parameter is now unused;
32188         update call of equals_private.
32189         (sem_function::equals_private): Do not call equals_wpa; skip
32190         gimple body matching if there is no body.
32191         (sem_function::init): Add logic to hash tthunk info.
32192         (sem_function::parse): Also parse thunks.
32193         * ipa-icf.h (equals_private): Update declaration.
32195 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32197         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32198         asterisk from name so this can be generated directly.
32199         (*altivec_stvx_<mode>_internal): Likewise.
32200         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32201         that this is never called during or after reload/lra.
32202         (rs6000_frame_related): Remove split_reg
32203         argument and logic that references it.
32204         (emit_frame_save): Remove last parameter from call to
32205         rs6000_frame_related.
32206         (rs6000_emit_prologue): Remove last parameter from eight calls to
32207         rs6000_frame_related.  Force generation of stvx instruction for
32208         Altivec register saves.  Remove split_reg handling, which is no
32209         longer needed.
32210         (rs6000_emit_epilogue):  Force generation of lvx instruction for
32211         Altivec register restores.
32213 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32215         * config/rs6000/rs6000.opt (mcrypto): Change option description to
32216         match category changes in ISA 2.07B.
32218 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32220         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32221         iterators.
32222         (cmp_op, cmp_type): New code attributes.
32223         (NEON_VCMP, NEON_VACMP): New int iterators.
32224         (cmp_op_unsp): New int attribute.
32225         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32226         (neon_vceq<mode>): Delete.
32227         (neon_vc<cmp_op><mode>_insn): New pattern.
32228         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32229         (neon_vcgeu<mode>): Delete.
32230         (neon_vcle<mode>): Likewise.
32231         (neon_vclt<mode>: Likewise.
32232         (neon_vcage<mode>): Likewise.
32233         (neon_vcagt<mode>): Likewise.
32234         (neon_vca<cmp_op><mode>): New define_expand.
32235         (neon_vca<cmp_op><mode>_insn): New pattern.
32236         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32238 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32240         * tree.h (attribute_value_equal): Declare.
32241         * tree.c (attribute_value_equal): Export.
32243 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32245         * ipa-icf.c (sem_item::compare_attributes): New function.
32246         (sem_item::compare_referenced_symbol_properties): Compare variable
32247         attributes.
32248         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32249         (sem_function::param_used_p): New function.
32250         (sem_function::equals_wpa): Fix attribute comparsion; match
32251         parameter type codes; do not compare paremter flags when
32252         they are not used; compare edge flags; compare indirect calls.
32253         (sem_item::update_hash_by_addr_refs): Hash reference type.
32254         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32255         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32256         reference use type.
32257         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32258         * ipa-icf.h (compare_attributes, param_used_p): Declare.
32260 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32262         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32263         cleanup.
32264         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32265         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32266         (sem_item::compare_referenced_symbol_properties): New.
32267         (sem_item::hash_referenced_symbol_properties): New.
32268         (sem_item::compare_cgraph_references): Rename to ...
32269         (sem_item::compare_symbol_references): ... this one; use
32270         compare_referenced_symbol_properties.
32271         (sem_function::equals_wpa): Do not compare
32272         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32273         DECL_IS_OPERATOR_NEW; compare pointer sizes.
32274         (sem_item::update_hash_by_addr_refs): Call
32275         hash_referenced_symbol_properties.
32276         (sem_item::update_hash_by_local_refs): Cleanup.
32277         (sem_function::merge): Do not mix up symbol properties.
32278         (sem_variable::equals_wpa): Use compare_symbol_references.
32279         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32280         (sem_item::hash_referenced_symbol_properties): New.
32281         (sem_item::compare_symbol_references): New.
32282         (sem_item::compare_cgraph_references): Remove.
32284 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
32286         PR target/26702
32287         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32288         Emit size of local.
32290 2015-04-23  Nick Clifton  <nickc@redhat.com>
32292         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32293         ATTRIBUTE_UNUSED to x parameter.
32294         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32296 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32298         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32299         TARGET_CRYPTO to TARGET_P8_VECTOR>
32300         (crypto_vpermxor_<mode>): Likewise.
32301         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32302         (BU_CRYPTO_3A): Likewise.
32303         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32304         (BU_CRYPTO_OVERLOAD_3A): New #define.
32305         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32306         (VPMSUMH): Likewise.
32307         (VPMSUMW): Likewise.
32308         (VPMSUMD): Likewise.
32309         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32310         (VPERMXOR_V4SI): Likewise.
32311         (VPERMXOR_V8HI): Likewise.
32312         (VPERMXOR_V16QI): Likewise.
32313         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32314         BU_CRYPTO_OVERLOAD_2A.
32315         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32316         BU_CRYPTO_OVERLOAD_3A.
32317         * config/rs6000/rs6000.opt (mcrypto): Change description of
32318         option.
32320 2015-04-23  Richard Biener  <rguenther@suse.de>
32322         * passes.def: Remove copy propagation passes run directly after CCP.
32323         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32324         SSA names.
32325         (ccp_visit_phi_node): Rework to handle first executable edge
32326         specially.
32328 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
32330         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32331         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32332         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32333         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32334         (thumb_legimitimize_reload_address): Remove.
32335         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32336         Remove.
32337         (thumb_legimitimize_reload_address): Remove.
32339 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32341         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32343 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32345         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32346         MAX_LDM_STM_OPS.
32347         (store_multiple): Likewise.
32349 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32351         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32352         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32353         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32354         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32355         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32356         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32357         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32358         Specify issue_rate value.
32359         (arm_issue_rate): Look up issue rate from tuning structs. Remove
32360         large switch statement.
32361         (arm_marvell_pj4_tune): New struct.
32362         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32363         struct.
32365 2015-04-23  Richard Biener  <rguenther@suse.de>
32367         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32368         (vect_find_last_store_in_slp_instance): Rename to ...
32369         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32370         (vect_analyze_slp_cost_1): Use vector_load for constant defs
32371         and vec_construct for external defs when estimating prologue cost.
32372         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32373         Compute costs here only when vectorizing loops.
32374         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32375         have been determined.
32376         (vect_schedule_slp_instance): Simplify vectorized code placement
32377         and prepare for in-BB external defs.
32378         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32379         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32380         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32381         guard.
32382         (vect_model_load_cost): Likewise.
32383         (vectorizable_store): Instead add it here.
32384         (vectorizable_load): Likewise.
32385         (vect_is_simple_use): Dump def type textually.
32387 2015-04-23  Richard Biener  <rguenther@suse.de>
32389         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32390         * cfgloop.c (verify_loop_structure): Verify the root loop node.
32391         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32392         instead of get_eh_region_from_lp_number.
32393         * loop-init.c (fix_loop_structure): If we removed a loop, reset
32394         the SCEV cache.
32396 2015-04-23  Anton Blanchard  <anton@samba.org>
32398         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32399         need for -mprofile-kernel to save LR to stack.
32401 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32403         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32404         adjustments.
32405         (insn_is_swappable_p): Return 1 for a convert from double to
32406         single precision when all of its uses are splats of BE element
32407         zero.
32409 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
32411         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32413 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32415         PR target/65456
32416         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
32417         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32418         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32419         option.
32420         (rs6000_builtin_mask_for_load): Return 0 for targets with
32421         efficient unaligned VSX accesses so that the vectorizer will use
32422         direct unaligned loads.
32423         (rs6000_builtin_support_vector_misalignment): Always return true
32424         for targets with efficient unaligned VSX accesses.
32425         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32426         stores on targets with efficient unaligned VSX accesses is almost
32427         always the same as the cost of an aligned load or store, so model
32428         it that way.
32429         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32430         unaligned vectors if we have efficient unaligned VSX accesses.
32431         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32432         undocumented option.
32434 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32436         Revert:
32437         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32439         * config.gcc (LIBC_MUSL): New tm_defines macro.
32440         * config/linux.h (OPTION_MUSL): Define.
32441         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32442         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32443         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32445         * config/linux.opt (mmusl): New option.
32446         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32447         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32449         * configure: Regenerate.
32451 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32453         * config.gcc (LIBC_MUSL): New tm_defines macro.
32454         * config/linux.h (OPTION_MUSL): Define.
32455         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32456         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32457         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32459         * config/linux.opt (mmusl): New option.
32460         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32461         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32463         * configure: Regenerate.
32465 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
32467         * doc/invoke.texi (-fsanitize-sections): Update description.
32468         * asan.c (set_sanitized_sections): Parse incoming arg.
32469         (section_sanitized_p): Support wildcards.
32471 2015-04-22  Tom de Vries  <tom@codesourcery.com>
32473         PR tree-optimization/65823
32474         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32475         equality between ap_copy and ap.
32477 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32479         PR target/47098
32480         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32482 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32484         PR target/47122
32485         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32487 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32489         PR target/55144
32490         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32491         remove already contained t-files.
32493 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32495         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32496         Remove unneeded forward declarations.
32497         (suitable_for_tail_call_opt_p): Commentary typo fix.
32499 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32501         * varasm.c (emit_bss): Remove redundant guard.
32503 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32505         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32507 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32509         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32511 2015-04-22  Hale Wang  <hale.wang@arm.com>
32512             Terry Guo  <terry.guo@arm.com>
32514         PR rtl-optimization/64818
32515         * combine.c (can_combine_p): Don't combine user-specified
32516         register if it is in an asm input.
32518 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
32520         PR ipa/65076
32521         * passes.def (early_optimizations): Add pass_dse.
32523 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32525         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32526         * reorg.c (redundant_insn): Remove ifdef
32527         INSN_REFERENCES_ARE_DELAYED.
32528         * resource.c (mark_referenced_resources): Likewise.
32530 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32532         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32533         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32534         * resource.c (mark_set_resources): Likewise.
32536 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32538         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32539         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32540         (flow_find_head_matching_sequence): Likewise.
32541         (try_head_merge_bb): Likewise.
32542         * combine.c (can_combine_p): Likewise.
32543         (try_combine): Likewise.
32544         (distribute_notes): Likewise.
32545         * df-problems.c (can_move_insns_across): Likewise.
32546         * final.c (final): Likewise.
32547         * gcse.c (insert_insn_end_basic_block): Likewise.
32548         * ira.c (find_moveable_pseudos): Likewise.
32549         * reorg.c (try_merge_delay_insns): Likewise.
32550         (fill_simple_delay_slots): Likewise.
32551         (fill_slots_from_thread): Likewise.
32552         * sched-deps.c (sched_analyze_2): Likewise.
32554 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32556         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32557         PIC_OFFSET_TABLE_REGNUM.
32559 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32561         * alias.c (init_alias_target): Remove ifdef
32562         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32563         * df-scan.c (df_insn_refs_collect): Likewise.
32564         (df_get_regular_block_artificial_uses): Likewise.
32565         (df_get_eh_block_artificial_uses): Likewise.
32566         (df_get_entry_block_def_set): Likewise.
32567         (df_get_exit_block_use_set): Likewise.
32568         * emit-rtl.c (gen_rtx_REG): Likewise.
32569         * ira.c (ira_setup_eliminable_regset): Likewise.
32570         * reginfo.c (init_reg_sets_1): Likewise.
32571         * regrename.c (rename_chains): Likewise.
32572         * reload1.c (reload): Likewise.
32573         (eliminate_regs_in_insn): Likewise.
32574         * resource.c (mark_referenced_resources): Likewise.
32575         (init_resource_info): Likewise.
32577 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32579         * defaults.h (MASK_RETURN_ADDR): New definition.
32580         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32581         MASK_RETURN_ADDR.
32583 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32585         * defaults.h (RETURN_ADDR_OFFSET): New definition.
32586         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32587         RETURN_ADDR_OFFSET.
32588         (expand_builtin_frob_return_addr): Likewise.
32590 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32592         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32593         (try_redirect_by_replacing_jump): Likewise.
32594         (rtl_tidy_fallthru_edge): Likewise.
32595         * combine.c (insn_a_feeds_b): Likewise.
32596         (find_split_point): Likewise.
32597         (simplify_set): Likewise.
32598         * cprop.c (cprop_jump): Likewise.
32599         * cse.c (cse_extended_basic_block): Likewise.
32600         * df-problems.c (can_move_insns_across): Likewise.
32601         * function.c (emit_use_return_register_into_block): Likewise.
32602         * haifa-sched.c (sched_init): Likewise.
32603         * ira.c (find_moveable_pseudos): Likewise.
32604         * loop-invariant.c (find_invariant_insn): Likewise.
32605         * lra-constraints.c (curr_insn_transform): Likewise.
32606         * postreload.c (reload_combine_recognize_const_pattern):
32607         * Likewise.
32608         * reload.c (find_reloads): Likewise.
32609         * reorg.c (delete_scheduled_jump): Likewise.
32610         (steal_delay_list_from_target): Likewise.
32611         (steal_delay_list_from_fallthrough): Likewise.
32612         (redundant_insn): Likewise.
32613         (fill_simple_delay_slots): Likewise.
32614         (fill_slots_from_thread): Likewise.
32615         (delete_computation): Likewise.
32616         * sched-rgn.c (add_branch_dependences): Likewise.
32618 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32620         * genconfig.c (main): Always define HAVE_cc0.
32621         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32622         HAVE_cc0.
32623         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32624         (flow_find_head_matching_sequence): Likewise.
32625         (try_head_merge_bb): Likewise.
32626         * cfgrtl.c (rtl_merge_blocks): Likewise.
32627         (try_redirect_by_replacing_jump): Likewise.
32628         (rtl_tidy_fallthru_edge): Likewise.
32629         * combine.c (do_SUBST_MODE): Likewise.
32630         (insn_a_feeds_b): Likewise.
32631         (combine_instructions): Likewise.
32632         (can_combine_p): Likewise.
32633         (try_combine): Likewise.
32634         (find_split_point): Likewise.
32635         (subst): Likewise.
32636         (simplify_set): Likewise.
32637         (distribute_notes): Likewise.
32638         * cprop.c (cprop_jump): Likewise.
32639         * cse.c (cse_extended_basic_block): Likewise.
32640         * df-problems.c (can_move_insns_across): Likewise.
32641         * final.c (final): Likewise.
32642         (final_scan_insn): Likewise.
32643         * function.c (emit_use_return_register_into_block): Likewise.
32644         * gcse.c (insert_insn_end_basic_block): Likewise.
32645         * haifa-sched.c (sched_init): Likewise.
32646         * ira.c (find_moveable_pseudos): Likewise.
32647         * loop-invariant.c (find_invariant_insn): Likewise.
32648         * lra-constraints.c (curr_insn_transform): Likewise.
32649         * optabs.c (prepare_cmp_insn): Likewise.
32650         * postreload.c (reload_combine_recognize_const_pattern):
32651         * Likewise.
32652         * reload.c (find_reloads): Likewise.
32653         (find_reloads_address_1): Likewise.
32654         * reorg.c (delete_scheduled_jump): Likewise.
32655         (steal_delay_list_from_target): Likewise.
32656         (steal_delay_list_from_fallthrough): Likewise.
32657         (try_merge_delay_insns): Likewise.
32658         (redundant_insn): Likewise.
32659         (fill_simple_delay_slots): Likewise.
32660         (fill_slots_from_thread): Likewise.
32661         (delete_computation): Likewise.
32662         (relax_delay_slots): Likewise.
32663         * sched-deps.c (sched_analyze_2): Likewise.
32664         * sched-rgn.c (add_branch_dependences): Likewise.
32666 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32668         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32669         that is trivially ded on non cc0 targets.
32670         (simplify_set): Likewise.
32671         (mark_used_regs_combine): Likewise.
32672         * cse.c (new_basic_block): Likewise.
32673         (fold_rtx): Likewise.
32674         (cse_insn): Likewise.
32675         (cse_extended_basic_block): Likewise.
32676         (set_live_p): Likewise.
32677         * rtlanal.c (canonicalize_condition): Likewise.
32678         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32680 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32682         * conditions.h: Define macros even if HAVE_cc0 is undefined.
32683         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32684         * final.c: Likewise.
32685         * jump.c: Likewise.
32686         * recog.c: Likewise.
32687         * recog.h: Declare functions even when HAVE_cc0 is undefined.
32688         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32690 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32692         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32693         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32694         * builtins.c (expand_builtin): Remove check if
32695         EH_RETURN_DATA_REGNO is defined.
32696         * df-scan.c (df_bb_refs_collect): Likewise.
32697         (df_get_exit_block_use_set): Likewise.
32698         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32699         * ira-lives.c (process_bb_node_lives): Likewise.
32700         * lra-lives.c (process_bb_lives): Likewise.
32702 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32704         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32705         FIRST_PSEUDO_REG): New.
32706         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32707         (ARG_POINTER_REGNUM): Define to ARGP_REG.
32708         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32709         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32710         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32711         (FIRST_INT_REG): New.
32712         (LAST_INT_REG): New.
32713         (FIRST_*_REG): Define using *_REG.
32714         (LAST_*_REG): Ditto.
32715         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32716         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32717         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32719 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32721         * expmed.c: (synth_mult): Only assume overlapping
32722         shift with previous steps in alg_sub_t_m2 case.
32724 2015-04-21  Richard Biener  <rguenther@suse.de>
32726         PR tree-optimization/65650
32727         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32728         transitions involving copies.
32729         (set_lattice_value): Adjust for copy lattice state.
32730         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32731         if that doesn't dominate the merge point.
32732         (bit_value_unop): Adjust what we treat as varying mask.
32733         (bit_value_binop): Likewise.
32734         (bit_value_assume_aligned): Likewise.
32735         (evaluate_stmt): When we simplified to a SSA name record a copy
32736         instead of dropping to varying.
32737         (visit_assignment): Simplify.
32739         * gimple-match.h (gimple_simplify): Add another callback.
32740         * gimple-fold.c (fold_stmt_1): Adjust caller.
32741         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32742         for the 2nd callback.
32743         * gimple-match-head.c (gimple_simplify): Add a callback that is
32744         used to valueize the stmt operands and use it that way.
32746 2015-04-21  Richard Biener  <rguenther@suse.de>
32748         PR tree-optimization/65788
32749         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32751 2015-04-21  Richard Biener  <rguenther@suse.de>
32753         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32754         vec_construct cost by vec_stmt_cost.
32756 2015-04-21  Richard Biener  <rguenther@suse.de>
32758         * cfghooks.h (create_basic_block): Replace with two overloads
32759         for RTL and GIMPLE.
32760         (split_block): Likewise.
32761         * cfghooks.c (split_block): Rename to ...
32762         (split_block_1): ... this.
32763         (split_block): Add two type-safe overloads for RTL and GIMPLE.
32764         (split_block_after_labels): Call split_block_1.
32765         (create_basic_block): Rename to ...
32766         (create_basic_block_1): ... this.
32767         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32768         (create_empty_bb): Call create_basic_block_1.
32769         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32770         split_block_after_labels.
32771         * omp-low.c (expand_parallel_call): Likewise.
32772         (expand_omp_target): Likewise.
32773         (simd_clone_adjust): Likewise.
32774         * tree-chkp.c (chkp_get_entry_block): Likewise.
32775         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32776         create_basic_block overload.
32777         (cgraph_node::expand_thunk): Likewise.
32778         * tree-cfg.c (make_blocks): Likewise.
32779         (handle_abnormal_edges): Likewise.
32780         * tree-inline.c (copy_bb): Likewise.
32782 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32784         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32785         New pattern.
32786         (*xor_one_cmplsidi3_ze): Likewise.
32788 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32790         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32791         use df_remove_problem rather than manually removing problems, leaving
32792         holes in df->problems_in_order[].
32794 2015-04-21  Tom de Vries  <tom@codesourcery.com>
32796         PR tree-optimization/65802
32797         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32799 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32801         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32802         Increase to 128.
32803         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32804         at '.'.  Assert that there's enough space for everything.
32806 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32808         PR tree-optimization/64950
32809         Revert:
32810         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
32812         PR target/41089
32813         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32814         as volatile.
32816 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
32818         PR rtl-optimization/64916
32819         * cfgcleanup.c (values_equal_p): New function.
32820         (can_replace_by): Use it.
32822 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
32824         PR c++/65801
32825         * doc/invoke.texi ([-Wnarrowing]): Update.
32827 2015-04-20  Jeff Law  <law@redhat.com>
32829         PR tree-optimization/65658
32830         * tree-ssa-threadupdate.c (redirection_block_p): Remove
32831         redundant test for GIMPLE_ASSIGN in last change.
32833 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
32835         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32836         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32837         (legitimize_tls_address): Ditto.
32838         (ix86_expand_move): Ditto.
32839         (ix86_expand_binary_operator): Remove reload_in_progress checks.
32840         (ix86_expand_unary_operator): Ditto.
32841         * config/i386/predicates.md (index_register_operand): Ditto.
32843 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
32845         * reorg.c (try_merge_delay_insns): Improve correctness checking
32846         for targets with multiple delay slots.
32848 2015-04-20  Jeff Law  <law@redhat.com>
32850         PR tree-optimization/65658
32851         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32852         statements too.
32854 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32856         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32857         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32858         Delete.
32860 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
32862         PR debug/65807
32863         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32865 2015-04-20  Richard Biener  <rguenther@suse.de>
32867         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32868         * gimple-fold.c (gimple_build_valueize): New function.
32869         (gimple_build): Always use gimple_build_valueize as valueize hook.
32871 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32873         PR target/64134
32874         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32875         and overwrite variable parts if <= 1/2 the elements are variable.
32877 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32879         PR rtl-optimization/65805
32880         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32881         Don't use difference of offset and previous offset if
32882         update_sp_offset is non-zero.
32883         (eliminate_regs_in_insn): Ditto.
32884         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32885         lra_eliminate_regs_1 call.
32886         * lra-constraints.c (get_equiv_with_elimination): Ditto.
32888 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
32890         * hash-table.h: Remove version of hash_table that stored value_type *.
32891         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32892         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32893         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32894         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32895         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32896         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32897         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32898         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32899         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32900         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32901         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32902         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32903         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32904         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32905         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32906         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32908 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32909             Jakub Jelinek  <jakub@redhat.com>
32911         PR target/65787
32912         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32913         subsequent SH_NONE operand does not overwrite an existing *special
32914         value.
32915         (adjust_extract): Handle case where a vec_extract operation is
32916         wrapped in a PARALLEL.
32918 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32920         PR target/65780
32921         * config/i386/i386.c (ix86_binds_local_p): Define only if
32922         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32924 2015-04-17  Jeff Law  <law@redhat.com>
32926         PR tree-optimization/47679
32927         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32928         * tree-ssa-scopedtables.c: New file.
32929         * tree-ssa-scopedtables.h: New file.
32930         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32931         (const_and_copies): Change name/type.
32932         (record_const_or_copy): Move into tree-ssa-scopedtables.c
32933         (record_const_or_copy_1): Similarly.
32934         (restore_vars_to_original_value): Similarly.
32935         (pass_dominator::execute): Create and destroy const_and_copies table.
32936         (thread_across_edge): Update passing of const_and_copies.
32937         (record_temporary_equivalence): Use method calls rather than
32938         manipulating const_and_copies directly.
32939         (record_equality, cprop_into_successor_phis): Similarly.
32940         (dom_opt_dom_walker::before_dom_children): Similarly.
32941         (dom_opt_dom_walker::after_dom_children): Similarly.
32942         (eliminate_redundant_computations): Similarly.
32943         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32944         (record_temporary_equivalence): Likewise.
32945         (invalidate_equivalences): Likewise.
32946         (record_temporary_equivalences_from_phis): Update due to type
32947         change of const_and_copies.  Use method calls rather than
32948         manipulating the stack directly.
32949         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32950         (thread_through_normal_block, thread_across_edge): Likewise.
32951         (thread_across_edge): Likewise.
32952         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32953         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
32954         of equiv_stack.
32955         (identify_jump_threads): Update due to type change of equiv_stack.
32956         (finalize_jump_threads): Delete the equiv_stack when complete.
32958 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
32960         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32961         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32962         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32964 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
32966         PR target/65535
32967         * config.gcc: Exit with a comment when we do not have a major version
32968         number for the FreeBSD target.
32970 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32972         PR target/65689
32973         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32974         maybe_allows_mem bitfields.
32975         (maybe_allows_none_start, maybe_allows_none_end,
32976         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32977         maybe_allows_mem_end): New variables.
32978         (compute_maybe_allows): New function.
32979         (add_constraint): Use it to initialize maybe_allows_reg and
32980         maybe_allows_mem fields.
32981         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32982         is_address constraints such that those that allow neither mem nor
32983         reg come first, then those that only allow reg but not mem, then
32984         those that only allow mem but not reg, then the rest.
32985         (write_allows_reg_mem_function): New function.
32986         (write_tm_preds_h): Call it.
32987         * stmt.c (parse_output_constraint, parse_input_constraint): Use
32988         the generated insn_extra_constraint_allows_reg_mem function
32989         instead of always setting *allows_reg = true; *allows_mem = true;
32990         for unknown extra constraints.
32992 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32994         PR target/65780
32995         * output.h (default_binds_local_p_3): New.
32996         * varasm.c (default_binds_local_p_3): Make it public.  Take an
32997         argument to indicate if common symbol may be local.  If common
32998         symbol may be local, treat non-external variable as defined
32999         locally.
33000         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33001         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33002         * config/i386/i386.c (ix86_binds_local_p): New.
33003         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33004         ix86_binds_local_p.
33006 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33008         PR debug/65771
33009         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33010         trying mem_loc_descriptor on XEXP (rtl, 0).
33012 2015-04-17  Martin Liska  <mliska@suse.cz>
33014         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33015         Release symbol_compare_collection.
33016         * ipa-reference.c: Add TODO that a vector should be released.
33018 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33020         PR target/65296
33021         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33022         to new AVR-LibC file layout (bug #44574).
33023         (*avrlibc_devicelib): Same.
33024         * config/avr/avr-mcus.def: Adjust comments.
33025         * config/avr/avr.opt (nodevicelib): Adjust help.
33027 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
33029         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33031 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
33033         PR c++/64527
33034         * gimplify.c (gimplify_init_constructor): Always emit a
33035         side-effecting constructor.
33037 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33039         PR tree-optimization/64950
33040         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33041         in cfun->curr_properties.
33042         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33043         if we generate an IFN_VA_ARG.
33044         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33045         function if PROP_gimple_lva is not set in src function.
33047 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33048             Michael Matz  <matz@suse.de>
33050         PR tree-optimization/64950
33051         * gimple-iterator.c (update_modified_stmts): Remove static.
33052         * gimple-iterator.h (update_modified_stmts): Declare.
33053         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33054         (gimplify_va_arg_internal): New function.
33055         (gimplify_va_arg_expr): Use IFN_VA_ARG.
33056         * gimplify.h (gimplify_va_arg_internal): Declare.
33057         * internal-fn.c (expand_VA_ARG): New unreachable function.
33058         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33059         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33060         (expand_ifn_va_arg): New function.
33061         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33062         (pass_stdarg::execute): Call expand_ifn_va_arg.
33063         (pass_data_lower_vaarg): New pass_data.
33064         (pass_lower_vaarg): New gimple_opt_pass.
33065         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33066         (make_pass_lower_vaarg): New function.
33067         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33068         properties_required field.
33069         * passes.def (all_passes): Add pass_lower_vaarg.
33070         * tree-pass.h (PROP_gimple_lva): Add define.
33071         (make_pass_lower_vaarg): Declare.
33073 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33075         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33076         * calls.c (call_expr_flags): Same.
33078 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33080         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33081         (pass_stdarg::execute): ... here.
33083 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33084             Michael Matz  <matz@suse.de>
33086         * tree-cfg.c (make_blocks_1): Factor out of ...
33087         (make_blocks): ... here.
33088         (make_edges_bb): Factor out of ...
33089         (make_edges): ... here.
33090         (gimple_find_sub_bbs): New function.
33091         * tree-cfg.h (gimple_find_sub_bbs): Declare.
33093 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33095         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33097 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
33099         * asan.c (set_sanitized_sections): New function.
33100         (section_sanitized_p): Ditto.
33101         (asan_protect_global): Optionally sanitize user-defined
33102         sections.
33103         * asan.h (set_sanitized_sections): Declare new function.
33104         * common.opt (fsanitize-sections): New option.
33105         * doc/invoke.texi (-fsanitize-sections): Document new option.
33106         * opts-global.c (handle_common_deferred_options): Handle new
33107         option.
33109 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33111         PR debug/65771
33112         * dwarf2out.c (loc_list_from_tree): Return NULL
33113         for DEBUG_EXPR_DECL.
33115 2015-04-17  Christian Bruel  <christian.bruel@st.com>
33117         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33118         same attributes.
33120 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33122         * ira-color.c (setup_left_conflict_sizes_p): Do not process
33123         node itself when computing left conflict subnode size.
33125 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33127         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33128         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33129         *fop_<mode>_1_sse using enabled attribute.  Use
33130         register_mixssei387nonimm_operand operand 1 predicate. Change
33131         alternative 3 constraints from "x" to "v".
33133 2015-04-16  Richard Biener  <rguenther@suse.de>
33135         PR tree-optimization/65774
33136         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33137         bit-value tracking on.
33139 2015-04-16  Richard Biener  <rguenther@suse.de>
33141         PR tree-optimization/64277
33142         * tree-vrp.c (check_array_ref): Fix anti-range handling,
33143         simplify upper bound handling.
33144         (search_for_addr_array): Simplify.
33145         (check_array_bounds): Handle ADDR_EXPRs here.
33146         (check_all_array_refs): Simplify.
33148 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33150         * config/i386/i386.c (print_reg): Rewrite function.
33152 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33154         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33155         Invert the condition.
33157 2015-04-16  Renlin Li  <renlin.li@arm.com>
33159         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33160         simplifications for UNSIGNED_FLOAT.
33162 2015-04-16  Nick Clifton  <nickc@redhat.com>
33164         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33165         MUL_UNINIT.
33166         (enum rl78_cpu_type): New.
33167         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33168         (umulhi3_shift_virt): Remove m constraint from operand 1.
33169         (umulqihi3_virt): Likewise.
33170         * config/rl78/rl78.c (rl78_option_override): Add code to process
33171         -mcpu and -mmul options.
33172         (rl78_alloc_physical_registers): Add code to handle divhi and
33173         divsi valloc attributes.
33174         (set_origin): Likewise.
33175         * config/rl78/rl78.h (RL78_MUL_G14): Define.
33176         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33177         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33178         __RL78_Gxx__.
33179         (ASM_SPEC): Pass -mcpu on to assembler.
33180         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33181         (mulqi3_rl78): Likewise.
33182         (mulhi3_g13): Likewise.
33183         (mulhi3): Generate the G13 or G14 versions of the insn directly.
33184         (mulsi3): Likewise.
33185         (mulhi3_g14): Add clobbers of AX and BC.
33186         (mulsi3_g14): Likewise.
33187         (mulsi3_g13): Likewise.
33188         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33189         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33190         * config/rl78/rl78.opt (mmul): Initialise value to
33191         RL78_MUL_UNINIT.
33192         (mcpu): New option.
33193         (m13, m14, mrl78): New option aliases.
33194         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33195         (MULTILIB_DIRNAMES): Add g13 and g14.
33196         * doc/invoke.texi: Document -mcpu and -mmul options.
33198 2015-04-16  Richard Biener  <rguenther@suse.de>
33200         * tree-ssa-ccp.c (likely_value): See if we have operands that
33201         are marked as never simulate again and return CONSTANT in this
33202         case.
33203         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33204         not have any operands that will be simulated again as
33205         not being simulated again.
33207 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
33209         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33210         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33211         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33212         attribute.
33213         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33214         enabled attribute.
33215         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33216         *float<SWI48:mode><MODEF:mode>2_sse.
33217         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33218         enabled attribute.
33219         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33220         enabled attribute.
33222 2015-04-15  Tom de Vries  <tom@codesourcery.com>
33224         PR other/65487
33225         * function.c (push_dummy_function): New function.
33226         (init_dummy_function_start): Use push_dummy_function.
33227         (pop_dummy_function): New function.  Factored out of ...
33228         (expand_dummy_function_end): ... here.
33229         * function.h (push_dummy_function, pop_dummy_function): Declare.
33230         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33231         pop_dummy_function.
33232         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33234 2015-04-15  Jeff Law  <law@redhat.com>
33236         PR tree-optimization/47679
33237         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33238         need for forward declaration in upcoming changes.
33239         (record_conditions, record_edge_info): Likewise.
33241         PR rtl-optimization/42522
33242         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33243         SIGN_EXTRACT as a whole object rather than simplifying
33244         its operand.
33246 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
33248         PR ipa/65765
33249         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33250         and GIMPLE_PREDICT use break instead of return true. For
33251         GIMPLE_EH_DISPATCH, compare dispatch region.
33253 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
33255         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
33256         details about the implementation.  Make clear preference for
33257         __atomic builtins.  Reduce possibility of future change.
33259 2015-04-15  Nick Clifton  <nickc@redhat.com>
33261         * config/rx/rx.opt (mallow-string-insns): New option.
33262         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33263         builtin if string instructions are denied.
33264         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33265         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33266         appropriate.
33267         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33268         * config/rx/rx.md (movstr): Enable pattern only if string
33269         instructions are allowed.
33270         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33271         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33272         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33273         (MULTILIB_DIRNAMES): Add no-strings.
33274         * doc/invoke.texi: Document -mno-allow-string-insns.
33276 2015-04-15  Alan Modra  <amodra@gmail.com>
33278         PR target/65408
33279         PR target/58744
33280         PR middle-end/36043
33281         * calls.c (load_register_parameters): Don't load past end of
33282         mem unless suitably aligned.
33284 2015-04-15  Nick Clifton  <nickc@redhat.com>
33286         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33287         decrement instruction as being frame related.
33288         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33289         based addresses.
33290         If zero extending a function address enclose the operation in
33291         %code(...).
33292         (rl78_preferred_reload_class): New function.
33293         (TARGET_PREFERRED_RELOAD_CLASS): Define.
33294         * config/rl78/rl78.md: Remove useless constraints in expanders.
33295         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33296         (mulhi3_rl78): Likewise.
33297         (mulhi3_g13): Likewise.
33298         (mulsi3_rl78): Likewise.
33299         (es_addr): Move to before the multiply patterns.
33301 2015-04-15  Alan Modra  <amodra@gmail.com>
33303         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33304         and sequence_stack.  Add seq.
33305         (seq_stack): Delete.
33306         * function.c (prepare_function_start): Don't access x_last_insn.
33307         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33308         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33309         * emit_rtl.c (start_sequence, push_topmost_sequence,
33310         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33311         sequence accessors.
33312         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33313         remove_insn): Likewise.  Simplify.
33314         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33315         and pop_topmost_sequence.
33316         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
33317         debug insns.
33318         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33320 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
33322         PR target/65729
33323         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33324         the assertiion.
33326 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33328         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33329         (LEGACY_INT_REGNO_P): Ditto.
33330         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33331         (ANY_MASK_REG_P): Remove.
33332         (BND_REG_P): Rename from ANY_BND_REG_P.
33333         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33334         legacy integer registers.  Do not handle MMX_REG_P in a special way.
33335         Merge 64byte and 32byte SSE handling.
33337 2015-04-14  Nick Clifton  <nickc@redhat.com>
33339         * expr.c (expand_assignment): Force an address offset computation
33340         into a register before changing its mode.
33341         (expand_expr_real_1): Likewise.
33343 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
33345         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33346         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33347         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33348         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33349         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33350         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33351         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33352         and __aarch64_vget_lane_any.
33354 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
33356         PR rtl-optimization/65761
33357         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33358         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33360 2015-04-14  Richard Biener  <rguenther@suse.de>
33362         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33363         (graphite_can_represent_scev): Use POINTER_TYPE_P.
33365 2015-04-14  Richard Biener  <rguenther@suse.de>
33367         PR tree-optimization/65758
33368         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33369         against -1.
33370         (ccp_lattice_meet): Likewise.
33371         (bit_value_unop): Likewise.
33372         (bit_value_binop): Likewise.
33373         (bit_value_assume_aligned): Likewise.
33375 2015-04-14  Christian Bruel  <christian.bruel@st.com>
33377         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33378         function.
33380 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
33382         PR tree-optimization/63387
33383         * match.pd ((x unord x) | (y unord y) -> (x unord y),
33384         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33386 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33388         * config/i386/predicates.md (any_QIreg_operand): Rename from
33389         q_regs_operand.  Do not process subregs.
33390         (QIreg_operand): Use QI_REGNO_P predicate.
33391         (ext_QIreg_operand): Ditto.
33392         (ext_register_operand): Ditto.
33393         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33394         (AND splitters): Ditto.
33395         (AND with -65536 splitter): Add SWI48 mode for operand 0.
33396         (AND with -256 splitter): Use any_QIreg_operand predicate and
33397         SWI248 mode for operand 0.
33398         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33399         mode for operand 0.
33400         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33402 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
33404         * doc/plugins.texi: Rewrite first introductory paragraph.
33406 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33408         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33409         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33411 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33413         * ipa-profie.c (ipa_profile): Check number of parameters
33414         and possible polymorphic call targets before
33415         devirtualizing.
33417 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
33419         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33420         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33422 2015-04-13  Richard Biener  <rguenther@suse.de>
33424         PR tree-optimization/65204
33425         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33426         takens for bit-CCP.
33428 2015-04-13  Richard Biener  <rguenther@suse.de>
33430         PR target/65660
33431         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33432         and cond_not_taken_branch_cost to 4 and 2.
33433         (bdver2_cost): Likewise.
33434         (bdver3_cost): Likewise.
33435         (bdver4_cost): Likewise.
33437 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33439         * hash-table.h (hash_table constructor): Add mem stats.
33440         (alloc_entries): Likewise.
33442 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33444         * ipa-cp.c (ipcp_driver): Relase prev_edge.
33445         * passes.c (execute_one_pass): Only add transform if pass has one.
33447 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
33449         * config/i386/i386.c (ix86_option_override_internal): Don't set
33450         -fprefetch-loop-arrays if optimizing for size.
33452 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33453             Gerald Pfeifer  <gerald@pfeifer.com>
33455         * doc/contrib.texi (Contributors): Add Martin Jambor and
33456         Michael Matz.
33458 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
33460         * BASE-VER: Set to 6.0.0.
33462         PR tree-optimization/65747
33463         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33464         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33466 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33468         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33469         sentence.  Improve grammar.
33471 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33473         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33475 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33477         PR ipa/65743
33478         * ipa-inline-transform.c (speculation_removed): Remove static var.
33479         (check_speculations): New function.
33480         (clone_inlined_nodes): Do not check spculations.
33481         (inline_call): Call check_speculations.
33482         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33483         consider non-invariants.
33485 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33486             Martin Liska  <mliska@suse.cz>
33488         PR ipa/65722
33489         * ipa-icf.c (sem_item::compare_cgraph_references): function and
33490         variable can not match.
33491         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33492         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33494 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
33496         PR tree-optimization/65735
33497         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33498         Remove visited_phis argument, add visited_bbs, avoid recursing into the
33499         same bb rather than just into the same phi node.
33500         (thread_through_normal_block): Adjust caller.
33502 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33504         * doc/contrib.texi (Contributors): Add Ira Rosen.
33506 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
33508         * gcov.c (find_source): Fix miswording in error message.
33509         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33510         (ix86_expand_sse_comi_round): Fix typo in error message.
33512 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33514         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33516 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
33518         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33520 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33522         PR target/65710
33523         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33524         Print bad_spills_num and insn_pseudos_num.
33526 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33528         PR target/65694
33529         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33530         when creating +1 values for SImode.
33532 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33534         PR target/65729
33535         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33536         assert.
33538 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
33539             Iain Sandoe  <iain@codesourcery.com>
33541         PR target/65351
33542         * configure: Regenerate.
33544 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33546         PR target/65671
33547         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33549 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
33551         * doc/contrib.texi (Contributors): Add John Marino.
33553 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33555         PR tree-optimization/65709
33556         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33557         TREE_TYPE (TREE_TYPE (t)).
33559 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
33561         PR target/65710
33562         * lra-int.h (lra_bad_spill_regno_start): New.
33563         * lra.c (lra_bad_spill_regno_start): New.
33564         (lra): Set up lra_bad_spill_regno_start.  Set up
33565         lra_constraint_new_regno_start unconditionally.
33566         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33567         spill preferences.
33569 2015-04-09  Marek Polacek  <polacek@redhat.com>
33570             Jakub Jelinek  <jakub@redhat.com>
33572         PR middle-end/65554
33573         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33574         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33575         of STRIP_NOPS.
33577 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
33579         PR rtl-optimization/65693
33580         * combine.c (is_parallel_of_n_reg_sets): Move outside of
33581         #ifndef HAVE_cc0.
33583 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
33585         PR target/65296
33586         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33587         device specs file if "device-specs%s" didn't resolve to a path.
33589 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33591         PR target/65676
33592         * config/i386/i386.c (fixup_modeless_constant): New.
33593         (ix86_expand_args_builtin): Fixup modeless constant operand.
33594         (ix86_expand_round_builtin): Ditto.
33595         (ix86_expand_special_args_builtin): Ditto.
33596         (ix86_expand_builtin): Ditto.
33598 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33600         PR target/65693
33601         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33602         any pow2 integer in between 2 and 0x80000000U inclusive.
33604 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
33606         PR rtl-optimization/65693
33607         * combine.c (is_parallel_of_n_reg_sets): Change first argument
33608         from an rtx_insn * to an rtx.
33609         (try_combine): Adjust both callers.  Use it once more.
33611 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33613         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33614         (chkp_make_static_const_bounds): Search existing
33615         symbol by assembler name.  Use make_decl_one_only.
33616         (chkp_get_zero_bounds_var): Remove node search which
33617         is now performed in chkp_make_static_const_bounds.
33618         (chkp_get_none_bounds_var): Likewise.
33620 2015-04-08  Michael Witten  <mfwitten@gmail.com>
33622         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33623         to an example.
33625 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33627         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33629 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33631         * doc/extend.texi (__sync Builtins): Fix grammar.
33633 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33635         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33637 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33639         * varasm.c (emit_local): Move definition of align.
33641 2015-04-08  Julian Brown  <julian@codesourcery.com>
33643         * config/nvptx/mkoffload.c (process): Support variable mapping.
33645 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
33647         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33648         alpha_links **.
33649         (alpha_write_one_linkage): Correct typo.
33651 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33653         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33655 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33657         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33659 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33661         * tree-chkp.h (chkp_insert_retbnd_call): New.
33662         * tree-chkp.c (chkp_insert_retbnd_call): New.
33663         * ipa-split.c (insert_bndret_call_after): Remove.
33664         (split_function): Use chkp_insert_retbnd_call.
33665         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33666         bounds for instrumented functions.
33668 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
33670         PR ipa/65540
33671         * calls.c (initialize_argument_information): When producing tail
33672         call also turn SSA_NAMES passed by references to original PARM_DECLs
33674 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
33676         PR target/65648
33677         * lra-remat.c (do_remat): Process input and non-input insn
33678         registers separately.
33680 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33682         PR debug/65678
33683         * valtrack.c (debug_lowpart_subreg): New function.
33684         (dead_debug_insert_temp): Use it.
33686         PR middle-end/65680
33687         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33688         into signed HOST_WIDE_INT the same as negative bit_offset.
33690 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
33692         * ipa-comdats.c (ipa_comdats): Visit all thunks
33693         to set proper comdat group.
33695 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33697         PR target/65489
33698         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33699         on constants for NEON VSTRUCT modes.
33701 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33702             Iain Sandoe  <iain@codesourcery.com>
33704         PR target/65351
33705         * configure: Regenerate.
33707 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33709         PR target/65614
33710         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33711         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33712         that LFD is used to load double constants instead of LFS.  Add
33713         defaults for all costs structures.  Add comments for missing
33714         initialization fields.
33715         (size32_cost): Likewise.
33716         (size64_cost): Likewise.
33717         (rs64a_cost): Likewise.
33718         (mpccore_cost): Likewise.
33719         (ppc403_cost): Likewise.
33720         (ppc405_cost): Likewise.
33721         (ppc440_cost): Likewise.
33722         (ppc476_cost): Likewise.
33723         (ppc601_cost): Likewise.
33724         (ppc603_cost): Likewise.
33725         (ppc604_cost): Likewise.
33726         (ppc604e_cost): Likewise.
33727         (ppc620_cost): Likewise.
33728         (ppc630_cost): Likewise.
33729         (ppccell_cost): Likewise.
33730         (ppc750_cost): Likewise.
33731         (ppc7450_cost): Likewise.
33732         (ppc8540_cost): Likewise.
33733         (ppce300c2c3_cost): Likewise.
33734         (ppce500mc_cost): Likewise.
33735         (ppce500mc64_cost): Likewise.
33736         (ppce5500_cost): Likewise.
33737         (ppce6500_cost): Likewise.
33738         (titan_cost): Likewise.
33739         (power4_cost): Likewise.
33740         (power6_cost): Likewise.
33741         (power7_cost): Likewise.
33742         (power8_cost): Likewise.
33743         (ppca2_cost): Likewise.
33744         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33746         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33747         instead of XXLOR to copy SFmode to clear out dirty bits created
33748         when SFmode denormals are generated.
33749         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33750         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33752 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33754         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33755         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33756         * config/aarch64/aarch64-tune.md: Regenerate.
33758 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33760         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33761         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33762         * config/arm/arm-cores.def (exynos-m1): New core.
33763         * config/arm/arm-tune.md: Regenerate.
33764         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33765         * config/arm/bpabi.h: Likewise.
33767 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33769         * ipa-cp (set_single_call_flag): Remove too
33770         restrictive assert.
33772 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
33774         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33775         GOMP_offload_unregister from the destructor.
33777 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33779         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33780         flags for instrumentation thunk.
33781         (chkp_produce_thunks): Likewise.
33783 2015-04-05  Martin Liska  <mliska@suse.cz>
33785         PR ipa/65665
33786         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33787         has computed data structure.
33788         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33790 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
33792         * invoke.texi (inline-unit-growth): Increase growth to 20%
33793         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33795 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
33797         PR target/65647
33798         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
33799         value checking.
33800         (lra_rematerialization_iter): New.
33801         * lra.c (lra): Initialize lra_rematerialization_iter.
33802         Stop updating lra_constraint_new_regno_start after switching of
33803         inheritance and rematerialization.
33804         * lra-remat.c (lra_rematerialization_iter): New.
33805         (lra_remat): Add printing pass iteration.  Do rematerialization
33806         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33808 2015-04-04  Richard Biener  <rguenther@suse.de>
33810         PR tree-optimization/64909
33811         PR tree-optimization/65660
33812         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33813         to take a cost vector for scalar iteration cost.
33814         (vect_get_single_scalar_iteration_cost): Likewise.
33815         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33816         Compute the scalar iteration cost into a cost vector.
33817         (vect_get_known_peeling_cost): Use the scalar cost vector to
33818         account for the cost of the peeled iterations.
33819         (vect_estimate_min_profitable_iters): Likewise.
33820         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33821         Likewise.
33823 2015-04-04  Alan Modra  <amodra@gmail.com>
33825         PR target/65576
33826         PR target/65240
33827         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33828         0.0 constant unless TARGET_VSX.
33829         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33830         alternative.
33832 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33834         PR ipa/65654
33835         * ipa-inline-transform.c (inline_call): Skip sanity check to work
33836         around the ICE
33838 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33840         PR ipa/65655
33841         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33842         speculative indirect edges to avoid ordering issue.
33844 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33846         PR ipa/65076
33847         * ipa-inline.c (edge_badness): Add combined size to the denominator.
33849 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
33851         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33852         TYPE_ARTIFICIAL on the .omp_data* types.
33854 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33856         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33857         instrumentation thunks.
33859 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33861         * config/i386/i386.c (ix86_expand_call): Avoid nested
33862         PARALLEL in returned call value.
33864 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33866         * lto-cgraph.c (input_cgraph_1): Always link instrumented
33867         assembler name with original one.
33869 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33871         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33873 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33875         Revert parts of r216820.
33876         * config/i386/i386.md (movqi_internal): Correct type calculation
33877         for alternatives 3 and 5.
33879 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
33881         PR preprocessor/61977
33882         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33883         predefine __vector/__bool/__pixel macros nor context sensitive
33884         macros for CLK_ASM.
33885         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33887 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
33889         * config/pa/pa.c (pa_output_move_double): Directly handle register
33890         indexed memory operand.  Simplify handling of scaled register indexed
33891         memory operands.
33893 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33895         PR driver/65444
33896         * config/i386/linux-common.h (MPX_SPEC): New.
33897         (CHKP_SPEC): Add MPX_SPEC.
33898         * doc/invoke.texi (-fcheck-pointer-boudns): Document
33899         possible issues with '-z bndplt' support in linker.
33901 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33903         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33904         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33905         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33906         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33907         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33909 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
33911         * config/i386/sync.md (UNSPEC_MOVA): Remove.
33912         (atomic_load<mode>): Change operand 0 predicate to
33913         nonimmediate_operand and fix up the destination when needed.
33914         Use UNSPEC_LDA.
33915         (atomic_loaddi_fpu): Use UNSPEC_LDA.
33916         (atomic_store<mode>): Change operand 1 predicate to
33917         nonimmendate_operand and move the source to register when needed.
33918         Use UNSPEC_STA.
33919         (atomic_store<mode>_1): Use UNSPEC_STA.
33920         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33921         Fix moves from memory operand.  Use UNSPEC_STA.
33923 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33925         * expmed.c (strict_volatile_bitfield_p): Check that the access will
33926         not cross a MODESIZE boundary.
33927         (store_bit_field, extract_bit_field): Added assertions in the
33928         strict volatile bitfields code path.
33930 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33932         PR target/65624
33933         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33934         Increase args array size by one to avoid buffer overflow.
33936 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33938         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33939         split_part.
33940         * ipa-inline.c (edge_badness): Add wrapper penalty.
33941         (sum_callers): Move up.
33942         (inline_small_functions): Set single_caller.
33943         * ipa-inline.h (inline_summary): Add single_caller.
33944         * ipa-split.c (split_function): Set split_part.
33945         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33946         * cgraph.h (cgraph_node): Add split_part.
33948 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
33950         PR target/58945
33951         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33952         Do not split operands 0 and operands 2 to halfmode.
33953         (atomic_compare_and_swap<mode>): Update for
33954         atomic_compare_and_swap<dwi>_doubleword changes.
33956 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33958         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33959         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33960         no caching is done.
33962 2015-03-31  Martin Liska  <mliska@suse.cz>
33964         PR ipa/65557
33965         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33966         has already filled up function summary.
33967         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33969 2015-03-31  Richard Biener  <rguenther@suse.de>
33971         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33972         of types.
33974 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33976         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33977         nested functions.
33978         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33979         (s390_asm_output_function_label): Adapt to new signature of
33980         s390_function_num_hotpatch_hw
33981         Optimise the code generating assembler output.
33982         Add comments to assembler file.
33984 2015-03-31  Richard Biener  <rguenther@suse.de>
33986         PR middle-end/65626
33987         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33988         of the noreturn call so it is last and cleanup_control_flow_bb
33989         can do the CFG part.
33991 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
33993         PR target/65531
33994         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33995         same_comdat_group for external symbols.
33996         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33997         infinite same_comdat_group traversal loop.
33999 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
34001         PR plugins/61176
34002         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34003         automatically to $headers.
34005 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
34007         PR ipa/65610
34008         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34009         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34010         function.
34011         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34012         Use it.
34013         * ipa-prop.c (param_type_may_change_p): Likewise.
34014         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34015         (remove_unused_scope_block_p): Add in_ctor_dtor_block
34016         argument.  Before inlining, preserve
34017         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34018         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
34019         recursive calls.
34020         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34022 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34024         PR ipa/65076
34025         * ipa-inline.c (edge_badness): Base denominator on callee's
34026         grwoth squared.
34028 2015-03-27  Martin Jambor  <mjambor@suse.cz>
34030         PR ipa/65478
34031         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34032         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34033         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34034         node_calling_single_call.
34035         * ipa-cp.c (count_callers): New function.
34036         (set_single_call_flag): Likewise.
34037         (initialize_node_lattices): Count callers and set single_flag_call if
34038         necessary.
34039         (incorporate_penalties): New function.
34040         (good_cloning_opportunity_p): Use it, dump new flags.
34041         (propagate_constants_topo): Set node_within_scc flag if appropriate.
34042         * doc/invoke.texi (ipa-cp-recursion-penalty,
34043         ipa-cp-single-call-pentalty): Document.
34045 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34047         PR ipa/65588
34048         * symtab.c (symtab_node::get_partitioning_class): Register vars
34049         are duplicated.
34050         * varpool.c (symbol_table::output_variables) Do not assemble unefined
34051         decls for non-symbols.
34053 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
34055         PR target/65248
34056         * output.h (default_binds_local_p_2): New.
34057         * varasm.c (default_binds_local_p_2): Renamed to ...
34058         (default_binds_local_p_3): This.  Don't return true on protected
34059         data symbol if protected data may be external.
34060         (default_binds_local_p): Use default_binds_local_p_3.
34061         (default_binds_local_p_1): Likewise.
34062         (default_binds_local_p_2): New.
34063         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34064         default_binds_local_p_2 if TARGET_MACHO is undefined.
34066 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
34068         PR target/65593
34069         * config/i386/i386.c (legitimize_pic_address): If base
34070         is SYMBOL_REF or LABEL_REF using %rip addressing, force
34071         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34073 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34075         PR target/65531
34076         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34077         comdat groups.
34079 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34081         PR ipa/65600
34082         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34083         of optimized out indirect call.
34084         (redirect_to_unreachable): Always build symbol table node for
34085         BUILT_IN_UNREACHABLE
34087 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
34089         PR target/65407
34090         * ira-costs.c (record_reg_classes): Process all constraint string
34091         containing 0-9.
34093 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
34095         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34096         memory_operand.
34098         PR target/65052
34099         * config/c6x/constraints.md (S3): New constraint.
34100         * config/c6x/c6x.md (real_jump): Use it.
34102 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34104         PR middle-end/65595
34105         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34106         do redirection if the call is not optimized out.
34108 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34110         PR target/65495
34111         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34112         (fchkp-check-incomplete-type): Add LTO.
34113         (fchkp-zero-input-bounds-for-main): Likewise.
34114         (fchkp-first-field-has-own-bounds): Likewise.
34115         (fchkp-narrow-bounds): Likewise.
34116         (fchkp-narrow-to-innermost-array): Likewise.
34117         (fchkp-use-static-bounds): Likewise.
34118         (fchkp-use-static-const-bounds): Likewise.
34119         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34121 2015-03-27  Marek Polacek  <polacek@redhat.com>
34123         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34125 2015-03-27  Marek Polacek  <polacek@redhat.com>
34127         PR sanitizer/65583
34128         * ubsan.c (ubsan_create_edge): New function.
34129         (instrument_bool_enum_load): Call it.
34130         (instrument_nonnull_arg): Likewise.
34131         (instrument_nonnull_return): Likewise.
34132         (instrument_object_size): Likewise.
34134 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34136         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34137         auto_vec.
34139 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34141         PR lto/65536
34142         * lto-streamer.h (class lto_location_cache): New.
34143         (struct data_in): Add location_cache.
34144         (lto_input_location): Update prototype.
34145         (stream_input_location_now): New.
34146         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34147         pointer to location.
34148         (stream_input_location): Update.
34149         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34150         (warn_odr): Apply location cache before warning.
34151         (lto_input_location): Update prototype.
34152         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34153         Use stream_input_location_now.
34154         * lto-streamer-in.c (lto_location_cache::current_cache): New static
34155         variable.
34156         (lto_location_cache::cmp_loc): New function.
34157         (lto_location_cache::apply_location_cache): New function.
34158         (lto_location_cache::accept_location_cache): New function.
34159         (lto_location_cache::revert_location_cache): New function.
34160         (lto_location_cache::input_location): New function.
34161         (lto_input_location): Do location caching.
34162         (stream_input_location_now): New function.
34163         (input_eh_region, input_struct_function_base): Use
34164         stream_input_location_now.
34165         (lto_data_in_create): use new.
34166         (lto_data_in_delete): Use delete.
34167         * tree-streamer-in.c (unpack_ts_block_value_fields,
34168         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34169         lto_input_ts_exp_tree_pointers): Update for cached location api.
34171 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34173         PR ipa/65076
34174         * passes.def: Add pass_nothrow.
34175         * ipa-pure-const.c: (pass_data_nothrow): New.
34176         (pass_nothrow): New.
34177         (pass_nothrow::execute): New.
34178         (make_pass_nothrow): New.
34179         * tree-pass.h (make_pass_nothrow): Declare.
34181 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34183         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34184         edge to change by speculation resolution or redirection.
34185         (edge_set_predicate): Likewise.
34186         (inline_summary_t::duplicate): Likewise.
34187         (remap_edge_summaries): Likewise.
34189 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34191         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34192         New macros.
34193         (can_inline_edge_p): Relax option matching for always inline functions.
34195 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
34197         PR target/65561
34198         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34199         Check operand 4 and operand 0 for equality.
34200         (avx512f_vextract<shuffletype>32x4_1_maskm):
34201         Check operand 6 and operand 0 for equality.
34202         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34203         for equality.
34204         (vec_extract_hi_<mode>_maskm): Ditto.
34206 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34208         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34209         dead calls back to live.
34210         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34211         cross check to ...
34212         (cgraph_node::verify_node): ... here; verify only callee edges,
34213         not caller.
34214         * cif-code.def (CILK_SPAWN): New code.
34216 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34218         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34219         (edge_set_predicate): Use it to mark unreachable edges.
34220         (inline_summary_t::duplicate): Remove unnecesary code.
34221         (remap_edge_summaries): Likewise.
34222         (dump_inline_summary): Report contains_cilk_spawn.
34223         (compute_inline_parameters): Compute contains_cilk_spawn.
34224         (inline_read_section, inline_write_summary): Stream
34225         contains_cilk_spawn.
34226         * ipa-inline.c (can_inline_edge_p): Do not touch
34227         DECL_STRUCT_FUNCTION that may not be available;
34228         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34229         remove check for callee_fun->can_throw_non_call_exceptions and
34230         replace it by optimization attribute check; check for flag_exceptions.
34231         * ipa-inline-transform.c (inline_call): Maintain
34232         DECL_FUNCTION_PERSONALITY
34233         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34235 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34237         PR tree-optimization/65551
34238         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34239         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34241 2015-03-26  Richard Biener  <rguenther@suse.de>
34243         PR middle-end/65555
34244         * tree-cfg.c (verify_gimple_call): Do not require a call to
34245         have no LHS if it wasn't recognized as control altering yet.
34247 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34249         PR tree-optimization/64715
34250         * passes.def: Add another instance of pass_object_sizes before ccp1.
34251         * tree-object-size.c (pass_object_sizes::execute): In
34252         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34253         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34254         __bos result and the computed constant.  Remove redundant
34255         checks, obsoleted by gimple_call_builtin_p test.
34257         * var-tracking.c (variable_tracking_main_1): Don't track
34258         variables for targetm.no_register_allocation targets.
34260 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
34262         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34263         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34265 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
34267         PR target/65569
34268         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34269         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
34270         0.0 is correctly setup.
34271         (extenddftf2_internal): Likewise.
34273 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
34275         PR tree-optimization/65177
34276         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34277         (bb_in_bbs): New.
34278         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
34279         edges not adjacent on the path to the original code.
34281 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
34283         PR bootstrap/65537
34284         * doc/install.texi (Building a native compiler): Document new
34285         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
34286         configuration assumes that the host supports the linker plugin.
34288 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34290         PR target/65508
34291         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34292         chain for generated call.
34294 2015-03-25  Richard Biener  <rguenther@suse.de>
34296         * passes.c (pass_manager::execute_early_local_passes): Guard
34297         execution of pass_chkp_instrumentation_passes with
34298         flag_check_pointer_bounds.
34299         (pass_chkp_instrumentation_passes::gate): Likewise.
34301 2015-03-25  Martin Liska  <mliska@suse.cz>
34303         PR tree-optimization/65538
34304         * symbol-summary.h (function_summary::~function_summary):
34305         Relese memory for allocated summaries.
34306         (function_summary::release): New function.
34308 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
34310         PR lto/65515
34311         * lto-streamer-out.c (DFS::worklist): New struct.
34312         (DFS::worklist_vec): New data member.
34313         (DFS::next_dfs_num): Remove.
34314         (DFS::DFS): Rewritten using worklist instead of recursion,
34315         using most of code from DFS::DFS_write_tree.
34316         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34317         pass it to DFS_write_tree calls.
34318         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34319         quick initial checks push it into worklist_vec and return.
34321 2015-03-25  Richard Biener  <rguenther@suse.de>
34323         PR middle-end/65519
34324         * genmatch.c (expr::gen_transform): Re-write to avoid
34325         using gimple_build.
34327 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34329         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34331 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34333         * config/arm/arm.opt (print_tune_info): New option.
34334         * config/arm/arm.c (arm_print_tune_info): New function.
34335         (arm_file_start): Call arm_print_tune_info.
34336         * config/arm/arm-protos.h (struct tune_params): Add comment.
34337         * doc/invoke.texi (@item -mprint-tune-info): New item.
34338         (-mtune): mention it in ARM Option Summary.
34340 2015-03-25  DJ Delorie  <dj@redhat.com>
34342         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34343         correct clause.
34345 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
34346             Martin Liska  <mliska@suse.cz>
34348         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34349         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34350         (sem_item::add_type): New function.
34351         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34352         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34353         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34354         (sem_function::equals_wpa): Fix typo.
34355         * ipa-icf.h (sem_item::add_type): New function.
34356         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34357         order.
34359 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
34361         PR tree-optimization/65533
34362         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34363         with swapped operands, call vect_free_slp_tree on
34364         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34365         vector.
34367 2015-03-24  Richard Biener  <rguenther@suse.de>
34369         PR middle-end/65517
34370         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34371         for fixup if necessary.
34373 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
34375         * doc/extend.texi (Function Attributes): Add @cindex entries
34376         for all attributes and regularize their format.  Delete text
34377         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
34378         information about "eightbit_data", "tiny_data", and "model"
34379         variable attributes to the Variable Attributes section.  Fix
34380         some obvious typos and copy-editing issues.
34381         (Variable Attributes, Type Attributes): Likewise add/fix
34382         @cindex entries for all attributes.
34384 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34386         PR target/65523
34387         * tree-chkp.c (chkp_build_returned_bound): Ignore
34388         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34390 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
34392         PR target/65505
34393         * config/sh/predicates.md (simple_mem_operand,
34394         displacement_mem_operand): Add test for reg.
34395         (short_displacement_mem_operand): Test for displacement_mem_operand
34396         before invoking sh_disp_addr_displacement.
34397         * config/sh/constraints.md (Sdd, Sra): Simplify.
34398         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34399         Remove redundant displacement_mem_operand tests.
34401 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
34403         PR target/65296
34404         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34405         the same -mmcu=MCU more than once.
34407 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34409         PR bootstrap/65522
34410         * ipa-devirt.c: Remove duplicate demangle.h include.
34412         PR target/65504
34413         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34414         on the pseudo.
34415         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34416         REG_POINTER on *destptr after adjusting it for prologue size.
34418         PR ipa/65521
34419         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34420         ultimate_alias_target ()->order ints instead of
34421         ultimate_alias_target () pointers.
34423 2015-03-23  Richard Biener  <rguenther@suse.de>
34425         PR tree-optimization/65518
34426         * tree-vect-stmts.c (vectorizable_load): Reject single-element
34427         interleaving cases we generate absymal code for.
34429 2015-03-23  Richard Biener  <rguenther@suse.de>
34431         PR tree-optimization/65494
34432         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34433         matches here.
34434         (vect_analyze_slp_instance): But do that here, always and once.
34436 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34438         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34439         adding T or multiplying by T+1 and subracting T.
34441 2015-03-22  Jeff Law  <law@redhat.com>
34443         PR rtl-optimization/64317
34444         * Makefile.in (OBJS): Add gcse-common.c
34445         * gcse.c: Include gcse-common.h
34446         (struct modify_pair_s): Move structure definition to gcse-common.h
34447         (compute_transp): Move function to gcse-common.c.
34448         (canon_list_insert): Similarly.
34449         (record_last_mem_set_info): Break out some code and put it into
34450         gcse-common.c.  Call into the new common code.
34451         (compute_local_properties): Pass additional arguments to compute_transp.
34452         * postreload-gcse.c: Include gcse-common.h and df.h
34453         (modify_mem_list_set, blocks_with_calls): New variables.
34454         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34455         (get_bb_avail_insn): Pass in the expression index too.
34456         (alloc_mem): Allocate memory for the new bitmaps and lists.
34457         (free_mem): Free memory for the new bitmaps and lists.
34458         (insert_expr_in_table): Record a bitmap index for each entry we
34459         add to the table.
34460         (record_last_mem_set_info): Call into common code in gcse-common.c.
34461         (get_bb_avail_insn): If no available insn was found in the requested
34462         BB.  If BB has a single predecessor, see if the expression is
34463         transparent in BB and available in that single predecessor.
34464         (compute_expr_transp): New wrapper for compute_transp.
34465         (eliminate_partially_redundant_load): Pass expression's bitmap_index
34466         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
34467         (gcse_after_reload_main): If there are elements in the hash table,
34468         then compute transparency for all the elements in the hash table.
34469         * gcse-common.h: New file.
34470         * gcse-common.c: New file.
34472 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
34474         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34475         as an adjective.
34476         (System Headers): Likewise.
34477         (Ifdef): Likewise.
34478         (Traditional macros): Likewise.
34479         (Invocation): Likewise.
34480         (Option Index): Likewise.
34481         * doc/cppopts.texi (-M): Likewise.
34482         (-finput-charset): Likewise.
34483         (--help): Likewise.
34484         * doc.invoke.texi (AVR Options): Likewise.
34485         (V850 Options): Likewise.
34487 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
34489         PR ipa/65475
34490         * ipa-devirt.c: Include demangle.h
34491         (odr_type_d): Add field rtti_broken.
34492         (odr_subtypes_equivalent_p): Do not require name to match.
34493         (compare_virtual_tables): Fix typo; if type already has ODR violation,
34494         bypass the tests; be ready for function referneces in vtables that are
34495         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34496         (warn_odr): Give up for nameless types.
34497         (warn_types_mismatch): Report mismatch in mangled names;
34498         report mismatch in anonymous namespaces; look into component types to
34499         give useful error; report when mismatch is dragged in from other ODR
34500         type.
34501         (odr_types_equivalent_p): Match types for being polymorphic; avoid
34502         duplicated diagnostics.
34503         (add_type_duplicate): Reorder checks so more informative ones come
34504         first; fix typo; do not output "the extra base is defined here" when
34505         we did not warn.
34506         (BINFO_N_BASE_BINFOS): Relax sanity check.
34508 2015-03-22  Martin Liska  <mliska@suse.cz>
34509             Jakub Jelinek  <jakub@redhat.com>
34511         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34512         masks that can potentially include a builtin.
34513         (ix86_add_new_builtins): Introduce fast filter for isa values
34514         that cannot trigger builtin inclusion.
34516 2015-03-22  Martin Liska  <mliska@suse.cz>
34518         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34519         (sem_item::update_hash_by_local_refs): Likewise.
34520         (sem_variable::get_hash): Empty line is fixed.
34521         (sem_item_optimizer::execute): Include adding of hash references.
34522         (sem_item_optimizer::update_hash_by_addr_refs): New function.
34523         (sem_item_optimizer::build_hash_based_classes): Use local hash.
34524         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34525         (sem_item::update_hash_by_local_refs): Likewise.
34527 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34529         PR ipa/65502
34530         * ipa-comdats.c (enqueue_references): Walk through thunks.
34531         (ipa_comdats): Likewise.
34532         (set_comdat_group_1): New function.
34534 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34536         PR ipa/65475
34537         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34538         non-polymorphic
34540 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
34541             Gerald Pfeifer  <gerald@pfeifer.com>
34543         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34545 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
34546             Sandra Loosemore  <sandra@codesourcery.com>
34548         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34549         function parameter declaration.
34550         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34551         Update arguments to nios2_adjust_call_address().
34552         (sibcall_internal): Rename from *sibcall.
34553         (sibcall_value_internal): Rename from *sibcall_value.
34554         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34555         (nios2_large_got_address): Add target temp reg parameter.
34556         (nios2_got_address): Adjust call to nios2_large_got_address, add
34557         force_reg around it.
34558         (nios2_load_pic_address): Add target temp reg parameter, replace call
34559         to nios2_got_address with corresponding code.
34560         (nios2_legitimize_constant_address): Update call to
34561         nios2_load_pic_address.
34562         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34563         to use temp reg for PIC loading purposes.
34564         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34565         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34566         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34568 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34570         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34571         usage of "the @option{...}".
34572         (-Wopenmp-simd): Likewise.
34573         (-fsanitize-recover): Likewise.
34574         (-fsanitize-undefined-trap-on-error): Likewise.
34575         (-flto): Likewise.
34576         (tracer-dynamic-coverage-feedback): Likewise.
34577         (reorder-block-duplicate-feedback): Likewise.
34578         (loop-unroll-jam-size): Likewise.
34579         (-B): Likewise.
34580         (-I-): Likewise.
34581         (-mabs=legacy): Likewise.
34582         (-mupper-regs-df): Likewise.
34583         (-mupper-regs-sf): Likewise.
34584         (-mpointers-to-nested-functions): Likewise.
34586 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34588         * doc/extend.texi (Cilk Plus Builtins): Add markup.
34590 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34592         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34593         additional index entries and cross-references.
34594         (-fchkp-check-incomplete-type): Likewise.
34595         (-fchkp-first-field-has-own-bounds): Likewise.
34596         (-fchkp-narrow-to-innermost-array): Likewise.
34597         (-fchkp-use-fast-string-functions): Likewise.
34598         (-fchkp-use-nochk-string-functions): Likewise.
34599         (-fchkp-use-static-const-bounds): Likewise.
34600         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34601         (-fchkp-instrument-marked-only): Likewise.
34602         (-fchkp-use-wrappers): Likewise.
34603         (-static-libmpx): Likewise.
34604         (-static-libmpxwrappers): Likewise.
34605         * doc/extend.texi (bnd_legacy): Likewise.
34606         (bnd_instrument): Likewise.
34607         (bnd_variable_size): Likewise.
34608         (Pointer Bounds Checker builtins): Likewise.
34610 2015-03-21  Tom de Vries  <tom@codesourcery.com>
34612         PR tree-optimization/65458
34613         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34614         * cgraph.h (cgraph_node): Add parallelized_function field.
34615         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34616         (input_overwrite_node): Read parallelized_function field.
34617         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34618         parallelized_function on cgraph_node for child_fn.
34619         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34620         Remove include of gt-tree-parloops.h.
34621         (parallelized_functions): Remove static variable.
34622         (parallelized_function_p): Rewrite using parallelized_function field of
34623         cgraph_node.
34624         (create_loop_fn): Remove adding to parallelized_functions.
34625         * Makefile.in (GTFILES): Remove tree-parloops.c
34627 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
34629         PR rtl-optimization/64366
34630         * lra.c (lra_update_insn_regno_info): Consider regs in
34631         CALL_INSN_FUNCTION_USAGE memory.
34633 2015-03-20  Richard Biener  <rguenther@suse.de>
34635         PR middle-end/64715
34636         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34637         for type comparison and gcc_checking_assert.
34638         (chrec_fold_plus_poly_poly): Likewise.
34639         (chrec_fold_multiply_poly_poly): Likewise.
34640         (chrec_convert_1): Likewise.
34641         * gimplify.c (gimplify_expr): Remove premature folding of
34642         &X + CST to &MEM[&X, CST].
34644 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34646         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34647         already is final.
34648         (ipa_inline): Recompute inline_failed codes.
34649         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34650         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34651         CIF_FINAL_ERROR.
34653 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
34655         PR rtl-optimization/60851
34656         * recog.c (constrain_operands): Accept a pseudo register before reload
34657         for LRA enabled targets.
34659 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
34661         PR target/65240
34662         * config/rs6000/predicates.md (easy_fp_constant): Remove special
34663         -ffast-math handling that kept non-0 constants live in the RTL
34664         until reload.  Remove logic testing the number of instructions it
34665         took to create a constant in a GPR that was never used, due to a
34666         test for soft-float earlier.
34667         (memory_fp_constant): Delete, no longer used.
34669         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34670         alternatives for loading non-0 constants into GPRs for hard
34671         floating point that is no longer needed due to changes in
34672         easy_fp_constant.  Add support for loading 0.0 into GPRs.
34673         (mov<mode>_hardfloat32): Likewise.
34674         (mov<mode>_hardfloat64): Likewise.
34675         (mov<mode>_64bit_dm): Likewise.
34676         (movtd_64bit_nodm): Likewise.
34677         (pre-reload move FP constant define_split): Delete define_split,
34678         since it is no longer used.
34679         (extenddftf2_internal): Remove GHF constraints that are not valid
34680         for extenddftf2.
34682 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
34684         PR rtl-optimization/63491
34685         * lra-constraints.c (check_and_process_move): Use src instead of
34686         sreg.  Remove some dead code.
34688 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
34690         PR ipa/65380
34691         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34692         (sem_variable::merge): Likewise.
34694 2015-03-19  Martin Liska  <mliska@suse.cz>
34696         PR ipa/65465
34697         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34698         all fields of cgraph_thunk_info.
34700 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34702         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34703         clone instrumented thunks.
34705 2015-03-19  Richard Biener  <rguenther@suse.de>
34707         Revert
34708         2015-03-10  Richard Biener  <rguenther@suse.de>
34710         PR middle-end/63155
34711         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34712         * tree-ssa-coalesce.c: Include timevar.h.
34713         (attempt_coalesce): Handle graph being NULL.
34714         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34715         Split out abnormal coalescing to ...
34716         (perform_abnormal_coalescing): ... this function.
34717         (coalesce_ssa_name): Perform abnormal coalescing without computing
34718         live/conflict.
34719         (verify_ssa_coalescing_worker): New function.
34720         (verify_ssa_coalescing): Likewise.
34722 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34723             Jakub Jelinek  <jakub@redhat.com>
34725         PR sanitizer/65400
34726         * tsan.c (instrument_gimple): Clear tail call flag on
34727         calls.
34729 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
34731         PR sanitizer/65400
34732         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34733         call in the return bb.
34734         (find_split_points): Add RETURN_BB argument, don't call
34735         find_return_bb.
34736         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
34737         if true append TSAN_FUNC_EXIT internal call after the call to
34738         the split off function.
34739         (execute_split_functions): Call find_return_bb here.
34740         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34741         Adjust find_split_points and split_function calls.
34743 2015-03-18  DJ Delorie  <dj@redhat.com>
34745         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34746         (iorqi3_virt): Likewise.
34748 2015-03-18  Tom de Vries  <tom@codesourcery.com>
34750         * tree-parloops.c (parallelize_loops): Make static.
34751         * tree-parloops.h (parallelize_loops): Remove extern declaration.
34753 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
34755         PR middle-end/64491
34756         Revert:
34757         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
34759         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34760         condition would be removed due to undefined behaviour.
34762 2015-03-18  Martin Liska  <mliska@suse.cz>
34764         PR ipa/65432
34765         * cgraph.c (cgraph_node::get_create): Remove unnecessary
34766         xstrdup_for_dump wrapper.
34767         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34768         sem_item::name.
34769         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34770         with xstrdup_for_dump.
34771         (sem_variable::equals): Likewise.
34772         (sem_item_optimizer::read_section): Use symtab_node::name instead of
34773         sem_item::name.
34774         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34775         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34776         symtab_node::asm_name with xstrdup_for_dump.
34777         (congruence_class::dump): Use symtab_node::name instead of
34778         sem_item::name.
34779         * ipa-icf.h (symtab_node::name): Remove.
34780         (symtab_node::asm_name): Likewise.
34782 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34784         PR tree-optimization/65450
34785         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34786         function.
34787         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34788         it instead of duplicate_ssa_name_ptr_info.
34790         PR target/65222
34791         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34793 2015-03-18  Richard Biener  <rguenther@suse.de>
34795         * tree-data-ref.h (struct access_matrix): Remove.
34796         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34797         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34798         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34799         (am_vector_index_for_loop): Likewise.
34800         (struct data_reference): Remove access_matrix member.
34801         (DR_ACCESS_MATRIX): Remove.
34802         (lambda_vector_new): Add comment.
34803         (lambda_matrix_new): Use XOBNEWVEC.
34805 2015-03-18  Richard Biener  <rguenther@suse.de>
34807         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34808         (pass_ch::execute): Cleanup the CFG only if we did sth.
34809         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34811 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34813         * expmed.c (synth_mult): Use std::swap instead of manually
34814         swapping algorithms.
34816 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34818         PR target/65078
34819         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34821 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
34823         PR target/65296
34824         * config/avr/avr.opt (-nodevicelib): New option.
34825         * doc/invoke.texi (AVR Options): Document it.
34826         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34827         libgcc.a, libc.a, libm.a.
34828         * config/avr/specs.h: Same.
34829         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34830         which don't (directly) depend on the device.  Print more help.
34831         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34832         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34833         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34834         case of an error.
34835         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34836         for specs file name.
34837         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34838         * config/avr/avr-mcus.def: Adjust initializers and comments.
34840 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
34842         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34843         DECL_ONE_ONLY to check if decl is one only.
34844         * ipa-split.c (consider_split): Limit splitt of one only functions.
34846 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34848         PR tree-optimization/65427
34849         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34850         functions.
34851         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34853 2015-03-16  Marek Polacek  <polacek@redhat.com>
34855         * cgraph.h (add_new_static_var): Remove declaration.
34856         * varpool.c (add_new_static_var): Remove function.
34858 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34860         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34861         instead of vec<tree> * with vec_alloc and release for args.
34862         Adjust all users.
34864         PR middle-end/65431
34865         * omp-low.c (delete_omp_context): Only splay_tree_delete
34866         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34867         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
34869 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34871         PR sanitizer/64820
34872         * cfgexpand.c (align_base): New function.
34873         (alloc_stack_frame_space): Call it.
34874         (expand_stack_vars): Align prev_frame to be sure
34875         data->asan_vec elements aligned properly.
34877 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
34879         PR middle-end/65409
34880         * expr.c (store_field): Do not do a direct block copy if the source is
34881         a PARALLEL with BLKmode.
34883 2015-03-16  Tom de Vries  <tom@codesourcery.com>
34885         PR middle-end/65414
34886         Revert:
34887         2015-03-12  Tom de Vries  <tom@codesourcery.com>
34889         PR rtl-optimization/64895
34890         * lra-lives.c (check_pseudos_live_through_calls): Use
34891         actual_call_used_reg_set instead of call_used_reg_set, if available.
34893 2015-03-16  Alan Modra  <amodra@gmail.com>
34895         PR target/63150
34896         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34897         Modify Z->r bswapdi splitter to use dest in place of scratch.
34898         In r->Z and Z->r bswapdi splitter rename word_high, word_low
34899         to word1, word2 and rearrange logic to suit.
34900         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34901         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
34902         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34903         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
34904         early clobber.
34906 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
34908         PR tree-optimization/65369
34909         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34910         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34911         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34913         PR tree-optimization/65418
34914         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34915         are casts in the first PLUS_EXPR operand, ensure tbias and
34916         *totallowp are in the inner type.
34918         PR rtl-optimization/65401
34919         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34920         argument.  If true, adjust_address_nv of x with big-endian
34921         correction for the mode widening to GET_MODE (y).
34922         (make_field_assignment): Don't do MEM mode widening here.
34923         Use MEM_P instead of GET_CODE == MEM.
34925 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
34927         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34928         the external decls.
34930 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34932         PR target/64600
34933         * config/arm/arm.c (arm_gen_constant, AND case): Use
34934         ARM_SIGN_EXTEND when constructing AND mask.
34936 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34938         * graph.c (print_graph_cfg): Make function names visible and append
34939         parenthesis to it.  Also make groups of basic blocks belonging to the
34940         same function visible.
34942 2015-03-12  Richard Biener  <rguenther@suse.de>
34944         PR middle-end/44563
34945         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34946         to avoid quadratic behavior with inline expansion splitting blocks.
34947         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34948         with the successor if the predecessor will be merged with it.
34949         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34950         entry block with its successor.
34952 2015-03-13  Richard Biener  <rguenther@suse.de>
34954         PR middle-end/44563
34955         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34956         (cleanup_tree_cfg_1): Do not call it.
34957         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34958         (fixup_noreturn_call): Mark the stmt as control altering.
34959         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34960         here.
34961         (pass_data_fixup_cfg): Produce a dump file.
34962         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34963         (need_noreturn_fixup): New global.
34964         (pass_dominator::execute): Fixup queued noreturn calls.
34965         (optimize_stmt): Queue calls that became noreturn for fixup.
34966         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34967         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34968         (el_to_fixup): New global.
34969         (eliminate_dom_walker::before_dom_childre): Queue calls that
34970         became noreturn for fixup.
34971         (eliminate): Fixup queued noreturn calls.
34972         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34973         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34974         (substitute_and_fold_dom_walker::before_dom_children): Queue
34975         alls that became noreturn for fixup.
34976         (substitute_and_fold): Fixup queued noreturn calls.
34978 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
34980         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34981         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34982         are building; for methods check ODR type of class they belong to if
34983         they may lead to a polymorphic call.
34984         (sem_function::compare_polymorphic_p): Be bit smarter about testing
34985         when function may lead to a polymorphic call.
34986         (sem_function::compare_type_list): Remove.
34987         (sem_variable::equals): Update use of compatible_types_p.
34988         (sem_variable::parse_tree_refs): Remove.
34989         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34990         cdtor.
34991         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34992         matching here.
34993         (func_checker::compatible_polymorphic_types_p): Break out from ...
34994         (unc_checker::compatible_types_p): ... here.
34995         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34996         Declare.
34997         (unc_checker::compatible_types_p): Update.
34998         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34999         Remove.
35001 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35003         PR rtl-optimization/65235
35004         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35005         When first element of vec_concat is const_int, calculate its size
35006         using second element.
35008 2015-03-12  Richard Biener  <rguenther@suse.de>
35010         PR middle-end/65270
35011         * fold-const.c (operand_equal_p): Fix ordering of resetting
35012         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35014 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35016         * config/s390/s390.c (s390_reorg): Move code to output nops after label
35017         to s390_reorg ().
35018         (s390_asm_output_function_label): Likewise.
35019         * config/s390/s390.c (s390_asm_output_function_label):
35020         Fix function label alignment with -mhtopatch.
35021         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35022         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35023         ("nop_2_byte"): New define_insn.
35024         ("nop_4_byte"): Likewise.
35025         ("nop_6_byte"): Likewise.
35026         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35027         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35029 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35031         PR target/65103
35032         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35033         register.
35035 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35037         PR target/65044
35038         * toplev.c (process_options): Restrict Pointer Bounds Checker
35039         usage with Address Sanitizer.
35041 2015-03-12  Richard Biener  <rguenther@suse.de>
35043         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35044         to split on.
35045         * omp-low.c (expand_omp_taskreg): Split block before removing
35046         the stmt.
35047         (expand_omp_target): Likewise.
35048         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35049         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35050         stmt to split_block.
35052 2015-03-12  Tom de Vries  <tom@codesourcery.com>
35054         PR rtl-optimization/64895
35055         * lra-lives.c (check_pseudos_live_through_calls): Use
35056         actual_call_used_reg_set instead of call_used_reg_set, if available.
35058 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35060         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35061         (cgraph_node::remove): Likewise.
35062         (cgraph_node::get_untransformed_body): Likewise.
35063         * varpool.c (varpool_node::remove): Likewise.
35064         (varpool_node::get_constructor): Add sanity check.
35066 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
35068         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35069         old GCC versions.
35070         (-fabi-compat-version): Likewise.
35071         (-ffriend-injection): Likewise.
35072         (-Wdeclaration-after-statement): Likewise.
35073         (-fomit-frame-pointer): Likewise.
35074         (-ftree-coalesce-inlined-vars): Likewise.
35075         (-fvisibility=): Likewise.
35076         * doc/extend.texi (Typeof): Likewise.
35077         (Zero Length): Likewise.
35078         (Escaped Newlines): Likewise.
35079         (Compound Literals): Likewise.
35080         (Function Attributes): Likewise.
35081         (Label Attributes): Likewise.
35082         (Type Attributes): Likewise.
35083         (Function Names): Likewise.
35084         (Other Builtins): Likewise.
35085         (Function Specific Option Pragmas): Likewise.
35086         (C++ Interface): Likewise.
35088 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
35090         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35092 2015-03-11  Marek Polacek  <polacek@redhat.com>
35094         PR tree-optimization/65388
35095         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35097 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35099         PR target/65296
35100         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35101         * configure: Regenerate.
35102         * config.in: Regenerate.
35103         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35104         [-mn-flash]: Document it.
35105         [__AVR_ARCH__]: Document avrtiny.
35107         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35108         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35109         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35111 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35113         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35115 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35117         PR target/65242
35118         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35119         allow reloads of PLUS in floating point/VSX registers.
35121 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
35123         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35124         crypto_sha256_fast.
35125         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35127 2015-03-11  Richard Biener  <rguenther@suse.de>
35129         PR tree-optimization/65310
35130         * tree-sra.c (build_ref_for_offset): Also preserve larger
35131         alignment.
35133 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
35135         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35137 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35139         PR target/65368
35140         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35141         new define_expand.
35142         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35144 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35146         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35147         (sem_function::equals_wpa): ... here.
35149 2015-03-10  Marek Polacek  <polacek@redhat.com>
35150             Jakub Jelinek  <jakub@redhat.com>
35152         PR sanitizer/65367
35153         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35154         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
35155         separately.
35157 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35159         PR target/65286
35160         * config/rs6000/t-linux: For powerpc64* target set
35161         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35163 2015-03-10  Richard Biener  <rguenther@suse.de>
35165         PR middle-end/44563
35166         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35167         for redirect_all_calls.
35169 2015-03-10  Marek Polacek  <polacek@redhat.com>
35171         * gdbinit.in (pcfun): Define and document.
35173 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
35175         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35176         of libgomp-plugin.h.
35177         (find_target_compiler): Support a case when the path to gcc is
35178         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35179         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35180         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35181         libgomp-plugin.h.
35182         (main): Use GCC_INSTALL_NAME as target_driver_name.
35183         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35184         define.
35185         (mkoffload.o): Remove obsolete include path and defines.
35186         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35188 2015-03-10  Richard Biener  <rguenther@suse.de>
35190         PR middle-end/63155
35191         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35192         * tree-ssa-coalesce.c: Include timevar.h.
35193         (attempt_coalesce): Handle graph being NULL.
35194         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35195         Split out abnormal coalescing to ...
35196         (perform_abnormal_coalescing): ... this function.
35197         (coalesce_ssa_name): Perform abnormal coalescing without computing
35198         live/conflict.
35199         (verify_ssa_coalescing_worker): New function.
35200         (verify_ssa_coalescing): Likewise.
35202 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35204         PR target/65296
35205         * config.gcc (extra_options) [avr]: Remove.
35206         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35207         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35208         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35210         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35211         (-mmcu=): Add Var and MissingArgError properties.
35212         (-march=): Remove.
35213         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35214         * config/avr/t-multilib: Regenerate.
35215         * config/avr/specs.h: New file.
35216         * config/avr/driver-avr.c: New file.
35217         * config/avr/genopt.sh: Remove file.
35218         * config/avr/avr-tables.opt: Remove file.
35219         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35220         * config/avr/avr-c.c: Same.
35221         * avr-arch.h: Same.
35222         (avr_current_device): Remove proto.
35223         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35224         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35225         (EXTRA_SPEC_FUNCTIONS): Define.
35226         (avr_devicespecs_file): New specs function proto.
35227         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35228         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35229         (avr_current_device): Remove definition and usage.
35230         (avr_set_core_architecture): New static function.
35231         (avr_option_override): Use it.
35232         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35233         (mcu_name): New static array.
35234         (comparator, avr_archs_str, avr_mcus_str): New static functions.
35235         (avr_inform_devices, avr_inform_core_architectures): New functions.
35236         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35237         (avrlibc.h) [WITH_AVRLIBC]: Include.
35238         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35239         (print_mcu): Rewrite from scratch.
35240         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35241         Forward to avr-specific specs defined in device-specs file.
35242         * config/avr/t-avr (driver-avr.o): New rule.
35243         (avr-devices.o): Depend on avr-arch.h.
35244         (avr-mcus): No more depend on avr-tables.opt.
35245         (avr-tables.opt): Remove rule.
35246         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35248 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35250         * c-family/c.opt (fchkp-use-wrappers): New.
35251         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35252         (chkp_wrap_function): New.
35253         (chkp_build_instrumented_fndecl): Support wrapped
35254         functions.
35255         * doc/invoke.texi (-fcheck-pointer-bounds): New.
35256         (-fchkp-check-incomplete-type): New.
35257         (-fchkp-first-field-has-own-bounds): New.
35258         (-fchkp-narrow-bounds): New.
35259         (-fchkp-narrow-to-innermost-array): New.
35260         (-fchkp-optimize): New.
35261         (-fchkp-use-fast-string-functions): New.
35262         (-fchkp-use-nochk-string-functions): New.
35263         (-fchkp-use-static-bounds): New.
35264         (-fchkp-use-static-const-bounds): New.
35265         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35266         (-fchkp-check-read): New.
35267         (-fchkp-check-write): New.
35268         (-fchkp-store-bounds): New.
35269         (-fchkp-instrument-calls): New.
35270         (-fchkp-instrument-marked-only): New.
35271         (-fchkp-use-wrappers): New.
35272         (-static-libmpx): New.
35273         (-static-libmpxwrappers): New.
35275 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35277         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35278         (CHKP_SPEC): Add wrappers library.
35279         * c-family/c.opt (static-libmpxwrappers): New.
35281 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35283         * config/i386/linux-common.h (LIBMPX_LIBS): New.
35284         (LIBMPX_SPEC): New.
35285         (CHKP_SPEC): New.
35286         * gcc.c (CHKP_SPEC): New.
35287         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35288         * c-family/c.opt (static-libmpx): New.
35290 2015-03-10  Richard Biener  <rguenther@suse.de>
35292         PR middle-end/44563
35293         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35294         for compare_type.
35295         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35296         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35297         (cgraph_add_edge_to_call_site_hash): Likewise.
35298         (cgraph_node::get_edge): Likewise.
35299         (cgraph_edge::set_call_stmt): Likewise.
35300         (cgraph_edge::remove_caller): Likewise.
35302 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
35304         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35305         (callee_saved_gpr_regs_size): ... this.
35306         (callee_saved_regs_first_regno): Rename to ...
35307         (callee_saved_first_gpr_regno): ... this.
35308         (callee_saved_regs_last_regno) Rename to ...
35309         (callee_saved_last_gpr_regno): ... this.
35310         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35311         variables.
35312         (nds32_initial_elimination_offset): Likewise.
35313         (nds32_expand_prologue): Likewise.
35314         (nds32_expand_epilogue): Likewise.
35315         (nds32_expand_prologue_v3push): Likewise.
35316         (nds32_expand_epilogue_v3pop): Likewise.
35317         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35318         Adjust renamed variables.
35319         (nds32_output_stack_pop): Likewise.
35321 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35323         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35324         code in comment.
35326 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35328         PR rtl-optimization/65321
35329         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35330         than shift mode.
35331         * var-tracking.c (use_narrower_mode): Likewise.
35333 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35335         PR tree-optimization/65355
35336         * varasm.c (notice_global_symbol): Do not produce RTL.
35337         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35338         anchor.
35339         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35340         check for section anchors.
35342 2015-03-10  Alan Modra  <amodra@gmail.com>
35344         PR target/65286
35345         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35346         to be single-arch by default.  Set cpu_is_64bit for powerpc64
35347         given --with-cpu=native.
35348         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35349         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35350         and powerpc64le.
35351         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35352         rs6000_isa_flags rather than TARGET_64BIT.
35354 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
35355             Kaz Kojima  <kkojima@gcc.gnu.org>
35357         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35359 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
35361         PR lto/65361
35362         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35363         on a TREE_BINFO, instead use BINFO_TYPE.
35365 2015-03-09  Richard Biener  <rguenther@suse.de>
35367         PR middle-end/65270
35368         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35369         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35370         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
35371         of that.  When comparing dereferences compare alignment.
35372         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35374 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35376         * ipa-inline-analysis.c (check_callers): Check
35377         node->can_remove_if_no_direct_calls_and_refs_p.
35378         (growth_likely_positive): Reorganize to call
35379         can_remove_if_no_direct_calls_p later.
35380         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35381         will_be_removed_from_program_if_no_direct_calls_p): Add
35382         will_inline parameter.
35383         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35384         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35385         Handle inliner case correctly.
35387 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35389         PR tree-optimization/63743
35390         * cfgexpand.c (reorder_operands): Also reorder if only second operand
35391         had its definition forwarded by TER.
35393 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35395         PR lto/65316
35396         * ipa-utils.h (types_odr_comparable): Add strict argument.
35397         * ipa-devirt.c: Fix whitespace;
35398         (odr_hasher): Remove.
35399         (odr_name_hasher, odr_vtable_hasher): New hashers.
35400         (can_be_name_hashed_p): New predicate.
35401         (hash_type_name): remove.
35402         (hash_odr_name): New.
35403         (odr_name_hasher::hash): new.
35404         (can_be_vtable_hashed_p): New.
35405         (hash_odr_vtable): New.
35406         (odr_vtable_hasher::hash): New.
35407         (types_same_for_odr): Add strict parameter.
35408         (types_odr_comparable): Likewise.
35409         (odr_name_hasher::equal): New.
35410         (odr_vtable_hasher::equal): New.
35411         (odr_name_hasher::remove): New.
35412         (odr_hash_type): Change to hash_table<odr_name_hasher>.
35413         (odr_vtable_hash_type): New.
35414         (odr_vtable_hash): New.
35415         (odr_subtypes_equivalent_p): Do strict comparsion.
35416         (add_type_duplicate): Merge type names; cleanup; avoid type
35417         duplicates.
35418         (register_odr_type): Initialize vtable hash.
35419         (build_type_inheritance_graph): Likewise
35420         (get_odr_type): Reorg to use two hashes.
35421         (dump_possible_polymorphic_call_targets): Move sanity check after debug
35422         output.
35423         (ipa_devirt): Dump type_inheritance_graph.
35424         (types_same_for_odr): Add strict mode.
35426 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35428         PR ipa/65334
35429         * cgraph.h (symtab_node): Add definition_alignment,
35430         can_increase_alignment_p and increase_alignment.
35431         * symtab.c (symtab_node::can_increase_alignment_p,
35432         increase_alignment_1, symtab_node::increase_alignment,
35433         symtab_node::definition_alignment): New.
35434         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35435         can_increase_alignment_p.
35436         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35437         * tree-vect-stmts.c (ensure_base_align): Likewise.
35438         * varasm.c (function_section_1): Use definition_alignment.
35439         (assemble_start_function): Likewise.
35440         (emit_local): likewise.
35441         (build_constant_desc): Likewsie.
35442         (output_constant_def_contents): Likewise.
35443         (place_block_symbol): Likewise.
35444         (output_object_block): Likewise.
35446 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35448         PR ipa/65316
35449         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35450         when outputting debug.
35452 2015-03-07  Marek Polacek  <polacek@redhat.com>
35453             Martin Uecker  <uecker@eecs.berkeley.edu>
35455         PR sanitizer/65280
35456         * doc/invoke.texi: Update description of -fsanitize=bounds.
35458 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
35460         * tree-ssa-phiopt.c (neg_replacement): Remove.
35461         (tree_ssa_phiopt_worker): Remove negate optimization.
35463 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35465         PR ipa/65302
35466         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35468 2015-03-06  Richard Biener  <rguenther@suse.de>
35470         PR middle-end/64928
35471         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35472         and liveout_obstack members.
35473         (calculate_live_on_exit): Remove.
35474         (calculate_live_ranges): Change declaration.
35475         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35476         (new_tree_live_info): Adjust.
35477         (calculate_live_ranges): Delete livein when not wanted.
35478         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35479         Deal with partly deleted live info.
35480         (loe_visit_block): Remove temporary bitmap by using
35481         bitmap_ior_and_compl_into.
35482         (live_worklist): Adjust accordingly.
35483         (calculate_live_on_exit): Make static.
35484         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35485         we do not need livein.
35487 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
35489         * real.c (real_from_string): Fix typo in assertion.
35491 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
35493         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35494         the patch.
35496 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35498         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35500 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
35502         PR target/64342
35503         * lra-assigns.c (find_hard_regno_for): Rename to
35504         find_hard_regno_for_1.  Add a new parameter.
35505         (find_hard_regno_for): New function using find_hard_regno_for_1.
35507 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35509         PR rtl-optimization/65067
35510         * expmed.c (store_bit_field, extract_bit_field): Reworked the
35511         strict volatile bitfield handling.
35513 2015-03-05  Martin Liska  <mliska@suse.cz>
35515         PR ipa/65318
35516         * ipa-icf.c (sem_variable::equals): Compare variables types.
35518 2015-03-05  Richard Henderson  <rth@redhat.com>
35520         PR target/65121
35521         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35522         correctly check weak symbol binding.
35524 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
35526         PR middle-end/65315
35527         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35528         needed alignment.
35530 2015-03-05  Martin Liska  <mliska@suse.cz>
35532         * ipa-inline.c (inline_small_functions): Set default value to
35533         prevent warning during bootstrap.
35534         * tree.h: Add pragma guard that ignores false positives during
35535         bootstrap.
35537 2015-03-05  Richard Biener  <rguenther@suse.de>
35539         PR tree-optimization/65310
35540         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35541         Properly preserve alignment of the base of the access.
35543 2015-03-05  Richard Biener  <rguenther@suse.de>
35545         PR ipa/65270
35546         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35547         Compare dependence info.
35549 2015-03-05  Richard Biener  <rguenther@suse.de>
35551         PR middle-end/65233
35552         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35553         tree-into-ssa.h.
35554         (walk_ssa_copies): Revert last chage.  Instead do not walk
35555         SSA names registered for SSA update.
35557 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35559         PR ipa/65270
35560         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35561         vtable references for their containing type.
35562         (sem_function::equals_wpa): Compare TYPE_RESTRICT
35563         and type attributes.
35565 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
35567         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35568         before negating it.
35569         * stor-layout.c (finalize_record_size): Revert latest change.
35571 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
35573         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35575 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35577         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35578         for correct comdat handling.
35579         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35580         Likewise.
35581         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35582         (used_from_object_file_p_worker): Remove.
35583         (cgraph_node::only_called_directly_or_alised): Add
35584         used_from_object_file_p.
35585         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35586         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35587         can_remove_if_no_direct_calls_and_refs_p.
35589 2015-03-04  Nick Clifton  <nickc@redhat.com>
35591         * config/rl78/rl78.h (enum reg_class): Remove real registers from
35592         General register class.
35593         * config/rl78/rl78-real.md: Replace general register constraints
35594         with real+virtual register constraints.
35596 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35598         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35599         from checking for -mhtm option.
35601 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35603         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35604         (struct ipa_sra_check_caller_data): Add has_thunk field.
35605         (ipa_sra_check_caller): Check for thunk.
35606         (ipa_sra_preliminary_function_checks): Give up on function with
35607         thunks.
35608         (ipa_early_sra): Use call_for_symbol_and_aliases.
35610 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
35612         PR target/65249
35613         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35614         called for __stack_chk_guard symbol.
35616 2015-03-03  DJ Delorie  <dj@redhat.com>
35618         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35619         inc/dec.
35620         (*addhi3_real): Likewise.
35621         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35622         pattern to match incrementing memory.
35623         * config/rl78/predicates.md (rl78_1_2_operand): New.
35624         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35625         it's the same and only mem.
35626         (rl78_alloc_physical_registers_op2): If there's effectively only
35627         one MEM, transcode it into HL.
35628         (rl78_far_p): Reject addresses that aren't legitimate.
35630 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35632         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35633         negating it.
35635         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35637 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35639         Implement call0 ABI for xtensa
35640         * config/xtensa/constraints.md ("a" constraint): Include stack
35641         pointer in case of call0 ABI.
35642         ("q" constraint): Make empty in case of call0 ABI.
35643         ("D" constraint): Include stack pointer in case of call0 ABI.
35644         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35645         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35646         prototypes.
35647         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35648         variable.
35649         (xtensa_regno_to_class): Make it a local variable in the
35650         function xtensa_regno_to_class.
35651         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35652         macro, function prototype and implementation.
35653         (reg_nonleaf_alloc_order): Make it a local variable in the
35654         function order_regs_for_local_alloc.
35655         (xtensa_conditional_register_usage): New function.
35656         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35657         (xtensa_valid_move): Allow direct moves to stack pointer
35658         register in call0 ABI.
35659         (xtensa_setup_frame_addresses): Only spill register windows in
35660         windowed ABI.
35661         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35662         call0 ABI respectively.
35663         (xtensa_function_arg_1): Only mark a7 register for copying in
35664         windowed ABI.
35665         (xtensa_call_save_reg): New function.
35666         (compute_frame_size): Add space for callee saved register
35667         storage to the frame size in call0 ABI.
35668         (xtensa_expand_prologue): Generate code to set up stack frame
35669         and save callee-saved registers in call0 ABI.
35670         (xtensa_expand_epilogue): New function.
35671         (xtensa_set_return_address): New function.
35672         (xtensa_return_addr): Calculate return address in call0 ABI.
35673         (xtensa_builtin_saveregs): Only mark a7 register for copying and
35674         emit copying code in windowed ABI.
35675         (order_regs_for_local_alloc): Add preferred register allocation
35676         order for non-leaf function in call0 ABI.
35677         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35678         (xtensa_asm_trampoline_template): Add trampoline generation for
35679         call0 ABI.
35680         (xtensa_trampoline_init): Add trampoline initialization for
35681         call0 ABI.
35682         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35683         functions.
35684         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35685         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35686         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35687         ABI call-used registers.
35688         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35689         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35690         call0 ABI.
35691         (REG_CLASS_CONTENTS): Include all registers into the preferred
35692         reload registers set, adjust the set in the
35693         xtensa_conditional_register_usage.
35694         (xtensa_regno_to_class): Drop variable declaration.
35695         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35696         function.
35697         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35698         respectively.
35699         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35700         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35701         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35702         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35703         location in call0 ABI.
35704         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35705         stack adjustment size when handling exception.
35706         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35707         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35708         definitions.
35709         ("return" pattern): Generate ret.n/ret in call0 ABI.
35710         ("epilogue" pattern): Expand epilogue.
35711         ("nonlocal_goto" pattern): Use default in call0 ABI.
35712         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35713         emit eh_set_a0_* depending on ABI.
35714         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35715         ("eh_set_a0_call0", "blockage"): New patterns.
35717 2015-03-03  Martin Liska  <mliska@suse.cz>
35719         PR ipa/65287
35720         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35722 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
35724         PR 65138/target
35725         * config/rs6000/rs6000-tables.opt: Regenerate table.
35727 2015-03-03  Renlin Li  <renlin.li@arm.com>
35729         * doc/md.texi (@item ^): Change ? into ^.
35731 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
35733         * doc/tm.texi: Regenerated.
35735 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35737         * builtins.c (expand_builtin_return_addr): Add
35738         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35739         surrounding #ifdef.
35740         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35741         definition to 1.
35742         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35743         Likewise.
35744         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35745         undefined.
35746         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35747         paragraph.
35749 2015-03-03  Martin Jambor  <mjambor@suse.cz>
35750             Eric Botcazou  <ebotcazou@adacore.com>
35752         * tree-sra.c (ipa_sra_check_caller_data): New type.
35753         (has_caller_p): Removed.
35754         (ipa_sra_check_caller): New function.
35755         (ipa_sra_preliminary_function_checks): Use it.
35757 2015-03-03  Martin Liska  <mliska@suse.cz>
35759         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35760         instead of if branch.
35762 2015-03-03  Martin Liska  <mliska@suse.cz>
35764         PR ipa/65282
35765         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35767 2015-03-23  Jeff Law  <law@redhat.com>
35769         PR tree-optimization/65241
35770         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35771         hash table if INSERT is true.
35773 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35775         PR target/65296
35776         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35778 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35780         PR target/64331
35781         * config/avr/avr.c (context.h, tree-pass.h): Include them.
35782         (avr_pass_data_recompute_notes): New static variable.
35783         (avr_pass_recompute_notes): New class.
35784         (avr_register_passes): New static function.
35785         (avr_option_override): Call it.
35787 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35789         Fix various problems with specs file generation.
35791         PR target/65296
35792         * config.gcc (extra_gcc_objs) [avr]: Remove.
35793         * config/avr/driver-avr.c: Remove file.
35794         * config/avr/t-avr (driver-avr.o): Remove rule.
35795         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35796         INCLUDES to build.  Depend on TM_H.
35797         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
35798         build warnings.  Fix non-matching types and non-existing %-codes.
35799         (tm.h): Include.
35800         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35801         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35802         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35803         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35804         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35805         (LIBGCC_SPEC): Remove definitions.
35807 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35809         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35810         to create a register in testing mode.
35812 2015-03-03  Martin Liska  <mliska@suse.cz>
35813             Jan Hubicka  <hubicka@ucw.cz>
35815         PR ipa/65263
35816         * cgraph.c (cgraph_node::has_thunk_p): New function.
35817         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35818         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35819         (sem_function::merge): Assert is changed.
35821 2015-03-03  Martin Liska  <mliska@suse.cz>
35822             Martin Jambor  <mjambor@suse.cz>
35824         PR ipa/65087
35825         * ipa-icf.c (sem_item_optimizer::execute): Change function
35826         return value to boolean.
35827         (sem_item_optimizer::merge_classes): Likewise.
35828         (ipa_icf_driver): Return TODO_remove_functions in case there's
35829         a merge operation processed.
35830         * ipa-icf.h: Change function return value to boolean.
35832 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
35834         PR 65138/target
35835         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35836         processor type for 64-bit little endian PowerPC.
35838         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35839         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
35840         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
35841         printing built-in mask so it does not pass NULL pointers.
35843         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35844         -mcpu=powerpc64le.
35846 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
35848         PR target/58158
35849         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35850         !ISA_HAS_FP_CONDMOVE.
35852 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
35854         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35855         reload_completed.
35857 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
35859         * doc/invoke.texi (Options for Code Generation Conventions):
35860         Fix URL of DSO paper.
35862 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35864         PR ipa/65130
35865         * ipa-inline.c (check_callers): Looks for recursion.
35866         (inline_to_all_callers): Give up on uninlinable or recursive edges.
35867         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35868         summary of inline clones.
35869         (do_estimate_growth_1): Fix recursion check.
35871 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35873         PR ipa/64988
35874         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35875         comdat groups.
35877 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35878             Aldy Hernandez  <aldyh@redhat.com>
35880         PR lto/65276
35881         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35882         when checking TYPE_BINFO.
35884 2015-03-02  Richard Biener  <rguenther@suse.de>
35886         PR ipa/65270
35887         * ipa-icf-gimple.c: Include builtins.h.
35888         (func_checker::compare_memory_operand): Compare base alignment.
35890 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35892         PR target/65184
35893         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35894         passed by reference.
35896 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35898         PR target/65183
35899         * tree-chkp.c (chkp_check_lower): Don't check against
35900         zero bounds for already instrumented functions.
35901         (chkp_check_upper): Likewise.
35902         (chkp_fini): Clean pass local data to avoid wrong reusage.
35904 2015-02-28  Martin Liska  <mliska@suse.cz>
35905             Jan Hubicka  <hubicka@ucw.cz>
35907         * ipa-icf.c (sem_variable::equals): Improve debug output;
35908         get variable constructor.
35909         (sem_variable::parse): Do not filter out too early; give up on
35910         volatile and register vars.
35911         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35912         variables.
35913         * ipa-icf.h (sem_variable::init): Do not set ctor.
35914         (sem_variable::ctor): Remove.
35916 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
35918         PR middle-end/65233
35919         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35921 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35923         * ipa-icf.c: Include stor-layout.h
35924         (sem_function::compare_cgraph_references): Rename to ...
35925         (sem_item::compare_cgraph_references): ... this one.
35926         (sem_variable::equals_wpa): New function
35927         (sem_variable::equals): Do not check stuff already verified by
35928         equals_wpa.
35929         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35930         * ipa-icf.h (sem_item): Add compare_cgraph_references.
35931         (sem_function): Remove compare_cgraph_references.
35932         (sem_variable): Turns equals_wpa into non-inline.
35934 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35936         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35937         (sem_item::add_expr): New function.
35938         (sem_function::hash_stmt): Handle operands of most statements.
35939         (sem_variable::get_hash): Hash the actual constructor.
35940         * ipa-icf.h (sem_item): Add add_expr.
35941         (sem_function): Update prototype of hash_stmt
35943 2015-02-28  Martin Liska  <mliska@suse.cz>
35944             Jan Hubicka  <hubicka@ucw.cz>
35946         PR ipa/65245
35947         * ipa-icf-gimple.c (func_checker::compare_function_decl):
35948         Remove.
35949         (func_checker::compare_variable_decl): Skip symtab vars.
35950         (func_checker::compare_cst_or_decl): Update.
35951         * ipa-icf.c (sem_function::parse): Do not consider aliases.
35952         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35953         use correct symtab predicates.
35954         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35955         (sem_variable::parse):  Update comment.
35956         (sem_item_optimizer::build_graph): Consider ultimate aliases
35957         for references.
35959 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35961         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35962         of OBJ_TYPE_REF.
35964 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35966         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35967         (sem_variable::merge) Likewise.
35969 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35971         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35972         target; also match flag_ipa_devirt.
35974 2015-03-01  Martin Liska  <mliska@suse.cz>
35975             Jan Hubicka  <hubicka@ucw.cz>
35977         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35978         Validate variable alignment.
35979         * ipa-icf.c (sem_function::equals_private): Be more precise
35980         about non-common function attributes.
35981         (sem_variable::equals): Likewise.
35983 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35985         PR ipa/65237
35986         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35987         across COMDAT group boundary.
35989 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35991         PR ipa/65232
35992         * ipa-icf.c (clear_decl_rtl): New function.
35993         (sem_function::merge): Clear RTL before forming alias.
35994         (sem_variable::merge): Clear RTL before forming alias.
35996 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35998         PR ipa/65236
35999         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36001 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
36003         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36004         to neon_to_gp<q>.
36006 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36008         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36009         a typo in the description.
36011 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36013         PR target/64317
36014         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36015         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36016         * lra-constraints.c: Include "params.h".
36017         (EBB_PROBABILITY_CUTOFF): Use
36018         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36019         (lra_inheritance): Use '<' instead of '<=' for
36020         EBB_PROBABILITY_CUTOFF.
36021         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36022         Document change.
36024 2015-02-27  Martin Liska  <mliska@suse.cz>
36026         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36027         vector length condition.
36029 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
36031         * doc/extend.texi (x86 transactional memory intrinsics):
36032         Reorganize discussion of _xbegin.  Clarify that the return
36033         value is a bit mask.  Expand example and move to end of section.
36035 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36036             Aldy Hernandez  <aldyh@redhat.com>
36038         PR rtl-optimization/65220
36039         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36041 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36043         PR target/65032
36044         * lra-remat.c (update_scratch_ops): New.
36045         (do_remat): Call it.
36046         * lra.c (lra_register_new_scratch_op): New. Take code from ...
36047         (remove_scratches): ... here.
36048         * lra-int.h (lra_register_new_scratch_op): New prototype.
36050 2015-02-27  Marek Polacek  <polacek@redhat.com>
36052         PR c/65040
36053         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36054         -Wformat-signedness anymore.
36056 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36058         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36059         function.
36060         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36062 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36064         * config/s390/s390.c (enum s390_builtin):
36065         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36066         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36067         (s390_init_builtins): Generate new builtin functions.
36068         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36069         (s390_sfpc, s390_efpc): New pattern definitions.
36071 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36073         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36074         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36075         (s390_builtin_decls): New array.
36076         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36077         (s390_builtin_decl): New function.
36078         (TARGET_BUILTIN_DECL): Define macro.
36080 2015-02-27  Richard Biener  <rguenther@suse.de>
36082         PR middle-end/63175
36083         * builtins.c (get_object_alignment_2): Make sure to re-apply
36084         the ANDed mask after recursing to its operand gets us a new
36085         misalignment bit position.
36087 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
36088             Martin Liska  <mliska@suse.cz>
36090         PR bootstrap/65150
36091         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36092         Use address_matters_p.
36093         (redirect_all_callers, set_addressable): New functions.
36094         (sem_function::merge): Reorganize and fix merging issues.
36095         (sem_variable::merge): Likewise.
36096         (sem_variable::compare_sections): Remove.
36097         * common.opt (fmerge-all-constants, fmerge-constants): Remove
36098         Optimization flag.
36099         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36100         redirect them.
36101         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36102         decl is used.
36103         (address_matters_1): New function.
36104         (symtab_node::address_matters_p): New function.
36105         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36106         check for merged flag.
36107         * cgraph.h (address_matters_p): Declare.
36108         (symtab_node::address_taken_from_non_vtable_p): Remove.
36109         (symtab_node::address_can_be_compared_p): New method.
36110         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36111         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36112         Remove.
36113         (comdat_can_be_unshared_p_1) Use address_matters_p.
36114         (update_vtable_references): Fix formating.
36115         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36116         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36117         * cgraphclones.c: Preserve merged and icf_merged flags.
36119 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
36121         * doc/extend.texi (Function Attributes): Fix spelling and typos.
36122         (Label Attributes): Likewise.
36123         (Cilk Plus Builtins): Likewise.
36124         (ARC SIMD Built-in Functions): Likewise.
36125         (ARM C Language Extensions (ACLE)): Likewise.
36126         (PowerPC Built-in Functions): Likewise.
36127         (PowerPC Hardware Transactional Memory Built-in Functions):
36128         Likewise.
36130 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36132         PR tree-optimization/65216
36133         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36134         new stmt and new SSA_NAME for lhs whenever the arguments have
36135         changed and weren't just swapped.  Fix comment typo.
36137         PR tree-optimization/65215
36138         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36139         for PDP endian targets.
36140         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36141         Fix up formatting issues.
36142         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
36143         size is smaller than the original, adjust MEM_REF offset by the
36144         difference of sizes.  Use is_gimple_mem_ref_addr instead of
36145         is_gimple_min_invariant test to avoid adding address temporaries.
36147 2015-02-26  Martin Liska  <mliska@suse.cz>
36148             Jan Hubicka  <hubicka@ucw.cz>
36150         PR ipa/64693
36151         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36152         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36153         (sem_item_optimizer::process_cong_reduction): Include division by
36154         sensitive references.
36155         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36156         * ipa-ref.c (ipa_ref::address_matters_p): New function.
36157         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36159 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
36161         PR target/65192
36162         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36163         Remove.
36164         * config/avr/avr.c: Same.
36165         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36166         Refuse any constant address not in 0..0xbf.
36167         * config/avr/avr.md (*mov<mode>, *movsf): Remove
36168         tiny_valid_direct_memory_access_range from insn conditions.
36169         (mov<mode>): Don't special-case expansion of avrtiny addresses.
36171 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
36173         PR target/61142
36174         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36175         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36176         * config/sh/predicates.md (const_logical_operand): New predicate.
36177         * config/sh/sh.md: Add new peephole2 patterns.
36179 2015-02-26  Marek Polacek  <polacek@redhat.com>
36181         PR ipa/65008
36182         * ipa-inline.c (early_inliner): Recompute inline parameters.
36184 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36186         PR target/65171
36187         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36188         instructions with TImode operands are included in the analysis.
36190 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36192         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36193         of an EDGE_FSM_THREAD.
36195 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36197         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36199 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
36201         PR debug/46102
36202         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36204 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36206         PR tree-optimization/65048
36207         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36208         (thread_through_all_blocks): Call valid_jump_thread_path.
36209         Remove invalid FSM jump-thread paths.
36211 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36213         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36214         (ipa_write_optimization_summaries): Likewise.
36215         * tree-streamer.h: Include data-streamer.h.
36216         (streamer_mode_table): Declare extern variable.
36217         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36218         * lto-streamer-out.c (lto_output_init_mode_table,
36219         lto_write_mode_table): New functions.
36220         (produce_asm_for_decls): Call lto_write_mode_table when streaming
36221         offloading LTO.
36222         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36223         (lto_create_simple_input_block): Add mode_table argument to the
36224         lto_input_block constructors.
36225         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36226         Likewise.
36227         * data-streamer-in.c (string_for_index): Likewise.
36228         * ipa-inline-analysis.c (inline_read_section): Likewise.
36229         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36230         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36231         * lto-streamer-in.c (lto_read_body_or_constructor,
36232         lto_input_toplevel_asms): Likewise.
36233         (lto_input_mode_table): New function.
36234         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36235         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36236         Use bp_pack_machine_mode.
36237         * real.h (struct real_format): Add name field.
36238         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36239         (class lto_input_block): Add mode_table member.
36240         (lto_input_block::lto_input_block): Add mode_table_ argument,
36241         initialize mode_table.
36242         (struct lto_file_decl_data): Add mode_table field.
36243         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36244         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36245         unpack_ts_decl_common_value_fields,
36246         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36247         * tree-streamer.c (streamer_mode_table): New variable.
36248         * real.c (ieee_single_format, mips_single_format,
36249         motorola_single_format, spu_single_format, ieee_double_format,
36250         mips_double_format, motorola_double_format,
36251         ieee_extended_motorola_format, ieee_extended_intel_96_format,
36252         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36253         ibm_extended_format, mips_extended_format, ieee_quad_format,
36254         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36255         decimal_single_format, decimal_double_format, decimal_quad_format,
36256         ieee_half_format, arm_half_format, real_internal_format): Add name
36257         field.
36258         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36260 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
36262         PR target/65161
36263         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36264         reordering for selective scheduling.
36266 2015-02-26  Terry Guo  <terry.guo@arm.com>
36268         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36269         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36270         (arm_arch_no_volatile_ce): Declare new global variable.
36271         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36272         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36273         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36274         (TARGET_NO_VOLATILE_CE): New macro.
36275         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36276         volatile memory access in IT block
36278 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36280         PR tree-optimization/61917
36281         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36282         that reduc_def_stmt is null.
36284 2015-02-25  Martin Liska  <mliska@suse.cz>
36286         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36287         hard register variables.
36289 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36291         PR target/64212
36292         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36293         (symtab::noninterposable_alias): Likewise.
36295 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36297         PR target/65167
36298         * config/i386/i386.c (ix86_function_arg_regno_p): Support
36299         bounds registers.
36300         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36302 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
36304         PR target/64997
36305         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36306         as split condition; force split via '#' in output pattern.
36308 2015-02-25  Richard Biener  <rguenther@suse.de>
36309             Kai Tietz  <ktietz@redhat.com>
36311         PR tree-optimization/61917
36312         * tree-vect-loop.c (vectorizable_reduction): Allow
36313         vect_internal_def without reduction to exit graceful.
36315 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36317         PR target/65196
36318         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36319         only with NONDEBUG_INSN_P.
36321 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36323         Use variadic macros with avr-log.c.
36325         * config/avr/avr-protos.h (avr_vdump): New prototype.
36326         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36327         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36328         * config/avr/avr-log.c: Adjust comments.
36329         (avr_vdump): New function.
36330         (avr_vadump): Pass caller as 2nd argument instead of format string.
36331         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36332         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36334 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
36336         PR lto/64374
36337         * target.def (target_option_stream_in): New target hook.
36338         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36339         targetm.target_option.post_stream_in if non-NULL.
36340         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36341         * doc/tm.texi: Updated.
36342         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36343         function.
36344         (TARGET_OPTION_POST_STREAM_IN): Redefine.
36346 2015-02-24  Jeff Law  <law@redhat.com>
36348         PR target/65117
36349         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36350         of operand 0 and operand 2.
36351         (zero_cost_loop_end, loop_end): Similarly.
36353 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
36355         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36356         CXX_MEM_STAT_INFO.
36358 2015-02-24  DJ Delorie  <dj@redhat.com>
36360         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36361         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36362         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36363         instead of hardcoding SImode.
36365 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
36367         * omp-low.c (create_omp_child_function): Tag entrypoint
36368         functions with a special attribute.
36370 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36372         PR target/65058
36373         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36375 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
36377         PR rtl-optimization/65123
36378         * lra-remat.c (operand_to_remat): Check hard regs in insn
36379         definition too.
36381 2015-02-24  Nick Clifton  <nickc@redhat.com>
36383         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36384         to the assembler.
36386 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
36388         PR libgomp/64625
36389         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36390         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36391         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36392         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36393         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36394         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36395         (BUILT_IN_GOACC_PARALLEL): Specify as
36396         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36397         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36398         * builtin-types.def
36399         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36400         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36401         Remove function types.
36402         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36403         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36404         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36405         New function types.
36407 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
36409         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36411 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
36413         PR tree-optimization/65170
36414         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36415         if val[1] < 0, clear also val[2] and return 3.
36417 2015-02-24  Alan Modra  <amodra@gmail.com>
36419         PR target/65172
36420         * config/rs6000/rs6000.c (get_memref_parts): Only return true
36421         when *base is a reg.  Handle nested plus addresses.  Simplify
36422         pre_modify test.
36424 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
36426         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36427         use natural alignment when optimizing for size.
36429 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
36431         PR target/65153
36432         * config/sh/sh.md (movsicc_true+3): Remove peephole.
36433         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36434         * config/sh/sh.c (replace_n_hard_rtx): Remove.
36436 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
36438         PR fortran/63427
36439         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36440         too big for a wide_int.  Implement missing wrapping operation.
36442 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
36444         PR target/65163
36445         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36446         instead of const_int 4294901760.
36448 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
36450         * config/avr/t-avr: Fix typo in comment.
36452 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
36454         * doc/rtl.texi (fma): Clarify documentation.
36456 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
36458         PR debug/58123
36459         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36460         over input_location.
36462 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36464         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36465         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36466         restrict alignments to absolute_biggest_alignment.
36467         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36468         Define.
36469         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36470         * doc/tm.texi: Regenerate.
36471         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36473 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
36475         PR target/64172
36476         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36478 2015-02-20  Richard Biener  <rguenther@suse.de>
36480         PR tree-optimization/65136
36481         * tree-ssa-propagate.c: Include cfgloop.h.
36482         (replace_phi_args_in): Avoid replacing loop latch edge PHI
36483         arguments with constants.
36485 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
36486             Martin Liska  <mliska@suse.cz>
36488         PR target/63892
36489         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36490         don't try to create_thunk if stdarg_p.  If
36491         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36492         redirect_callers if possible.
36493         (sem_item_optimizer::execute): Call unregister_hooks here...
36494         (ipa_icf_driver): ... instead of here.
36496 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36498         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36499         Mark operand 0 as earlyclobber in 2nd alternative.
36500         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36501         Write negated shift amount into QI lowpart operand 0 and use it
36502         in the shift step.
36503         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36505 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36507         * cgraph.h (clone_function_name_1): Declare.
36508         * cgraphclones.c (clone_function_name_1): New function.
36509         (clone_function_name): Use it.
36510         * lto-partition.c: Include "stringpool.h".
36511         (must_not_rename, maybe_rewrite_identifier)
36512         (validize_symbol_for_target): New static functions.
36513         (privatize_symbol_name): Use must_not_rename.
36514         (promote_symbol): Call validize_symbol_for_target.
36515         (lto_promote_cross_file_statics): Likewise.
36516         (lto_promote_statics_nonwpa): Likewise.
36518 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
36520         PR target/64452
36521         * config/avr/avr.md (pushhi_insn): New insn.
36522         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36524 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36525             Jakub Jelinek  <jakub@redhat.com>
36527         * tree-streamer.c (preload_common_nodes): Don't preload
36528         TI_VA_LIST* for offloading.
36529         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36530         in_lto_p.
36532 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
36534         * config/pa/pa.c (pa_emit_move_sequence): Always force
36535         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
36536         note on insn.
36538         * config/pa/pa.c (pa_reloc_rw_mask): New function.
36539         (TARGET_ASM_RELOC_RW_MASK): Define.
36540         (pa_cannot_force_const_mem): Revert previous change.
36542 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
36543             Jan Hubicka  <hubicka@ucw.cz>
36545         PR ipa/65028
36546         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36547         across jump functions.
36549 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
36551         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36553 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
36555         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36557 2015-02-19  Richard Henderson  <rth@redhat.com>
36559         PR middle-end/65074
36560         * varasm.c (default_binds_local_p_2): Don't test node->definition;
36561         test DECL_EXTERNAL independent of symtab_node.
36563 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
36565         PR lto/65012
36566         * varpool.c (varpool_node::get_constructor): Return early
36567         if this->lto_file_data is NULL.
36569 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36571         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36572         (rank_for_schedule_debug): Update.
36573         (ready_sort): Make static.  Move sorting logic to ...
36574         (ready_sort_debug, ready_sort_real): New static functions.
36575         (schedule_block): Sort both debug insns and real insns in preparation
36576         for ready list trimming.  Improve debug output.
36577         * sched-int.h (ready_sort): Remove global declaration.
36579 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
36581         * ipa-icf.c (sem_function::equals_private): Adjust.
36582         (sem_function::bb_dict_test): Take a vec<int> * instead of
36583         auto_vec<int>.
36584         * ipa-icf.h (bb_dict_test): Likewise.
36586 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36588         PR gcov-profile/64634
36589         * tree-eh.c (frob_into_branch_around): Fix up typos
36590         in function comment.
36591         (lower_catch): Put eh_seq resulting from EH lowering of
36592         the cleanup sequence after the cleanup rather than before it.
36594 2015-02-18  Tom de Vries  <tom@codesourcery.com>
36596         * common.opt (fstdarg-opt): New option.
36597         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36598         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36599         (@item -fstdarg-opt): New item.
36601 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
36603         PR target/65064
36604         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36605         for common symbols.
36607 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36609         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36610         insn-modes.h.
36611         (ALL_HOST_OBJS): Add mkoffload.o.
36612         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36614 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
36616         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36617         (compare_virtual_tables): Be smarter about skipping typeinfos;
36618         do sane output on virtual table table mismatch.
36619         (warn_odr): Be ready for forward declarations of enums;
36620         output sane info on base mismatch and virtual table mismatch.
36621         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36622         when only one type is polymorphic.
36623         (get_odr_type): Fix hashtable corruption.
36624         (dump_odr_type): Dump mangled names.
36626 2015-02-18  Richard Biener  <rguenther@suse.de>
36628         PR tree-optimization/65063
36629         * tree-predcom.c (determine_unroll_factor): Return 1 if we
36630         have replaced looparound PHIs.
36632 2015-02-18  Martin Liska  <mliska@suse.cz>
36634         * lto-streamer.c (lto_streamer_init): Encapsulate
36635         streamer_check_handled_ts_structures with checking macro.
36637 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36639         PR ipa/65087
36640         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36641         section if !implicit_section.
36642         (cgraph_node::create_version_clone_with_body): Likewise.
36643         * trans-mem.c (ipa_tm_create_version): Likewise.
36645 2015-02-18  Richard Biener  <rguenther@suse.de>
36647         PR tree-optimization/62217
36648         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36649         into BIVs.
36651 2015-02-18  Marek Polacek  <polacek@redhat.com>
36653         PR sanitizer/65081
36654         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36655         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36656         is in range [-16K, -1].  Don't issue run-time error if
36657         (ptr > ptr + offset).
36659 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
36661         * doc/install.texi (nvptx-*-none): New section.
36662         * doc/invoke.texi (Nvidia PTX Options): Likewise.
36663         * config/nvptx/nvptx.opt: Update.
36665         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36666         (access_check): New functions, copied from
36667         config/i386/intelmic-mkoffload.c.
36668         (main): For non-installed testing, look in all COMPILER_PATHs for
36669         GCC_INSTALL_NAME.
36671         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36673 2015-02-18  Andrew Pinski  <apinski@cavium.com>
36674             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36676         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36677         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36679 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36681         * ipa-visibility.c (function_and_variable_visibility): Only
36682         check locality if node is not already local.
36683         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36684         call_for_symbol_and_aliases instead of
36685         call_for_symbol_thunks_and_aliases.
36686         (ipa_inline): Likewise.
36687         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36688         first walk aliases.
36689         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36690         call_for_symbol_and_aliases.
36691         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36692         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36693         (ipa_propagate_frequency): Update.
36694         (ipa_profile): Add opt_for_fn gueards.
36696 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36698         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36699         * doc/invoke.texi (SH options): Document it.
36700         * config/sh/sh.c (sh_insn_length_adjustment): Check
36701         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36703 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
36705         * common.opt (fipa-cp-alignment): New.
36706         * ipa-cp.c (ipcp_store_alignment_results): Check
36707         flag_ipa_cp_alignment.
36708         * opts.c (default_options_table): Enable -fipa-cp-alignment for
36709         -O2.
36710         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36711         * doc/invoke.texi: Document -fipa-cp-alignment.
36713 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36715         PR target/64793
36716         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36717         to nil.  Adjust comments.
36719 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36721         * ipa-visibility.c (function_and_variable_visibility): Only
36722         check locality if node is not already local.
36723         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36724         call_for_symbol_and_aliases instead of
36725         call_for_symbol_thunks_and_aliases.
36726         (ipa_inline): Likewise.
36727         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36728         first walk aliases.
36729         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36730         call_for_symbol_and_aliases.
36731         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36732         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36733         (ipa_propagate_frequency): Update.
36734         (ipa_profile): Add opt_for_fn guards.
36736 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
36738         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36739         skipping of "strange" tokens.
36741 2015-02-17  Jeff Law  <law@redhat.com>
36743         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
36744         obsolete comment.
36746 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
36748         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36749         as forcing a HARD_DEP between instructions, thereby
36750         disallowing rewriting to break dependencies.
36752 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36754         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36755         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36756         variables in boundary that have no inlitalizer encoded and are
36757         not aliases.
36758         * varasm.c (default_binds_local_p_2): External definitions do not
36759         count as definitions here.
36761 2015-02-16  Jeff Law  <law@redhat.com>
36763         PR tree-optimization/64823
36764         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36765         statements.
36766         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36767         threading through blocks with PHIs, but no statements.
36768         (thread_through_normal_block): Distinguish between blocks where
36769         we did not process all the statements and blocks with no statements.
36771 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
36772             James Greenhalgh  <james.greenhalgh@arm.com>
36774         PR ipa/64963
36775         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36776         section if not linkonce.  Fix up formatting.
36777         (cgraph_node::create_version_clone_with_body): Copy section.
36778         * trans-mem.c (ipa_tm_create_version): Likewise.
36780 2015-02-16  Richard Biener  <rguenther@suse.de>
36782         PR tree-optimization/65077
36783         * tree-ssa-structalias.c (get_constraint_for_1): Handle
36784         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36785         (find_func_aliases): Allow float values to carry pointers again.
36787 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
36789         * doc/install.texi (Specific): Reorder targets list to put
36790         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
36791         from the top menu.
36793 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
36794             David Edelsohn  <dje.gcc@gmail.com>
36796         PR target/65058
36797         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36798         mapping class to external variable or function reference.
36799         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36800         mapping class.
36802 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
36804         PR target/53348
36805         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36806         ASM_WEAKEN_DECL if defined.
36808 2015-02-16  Richard Biener  <rguenther@suse.de>
36810         PR lto/65015
36811         * varasm.c (default_file_start): For LTO produced units
36812         emit <artificial> as file directive.
36814 2015-02-16  Richard Biener  <rguenther@suse.de>
36816         PR tree-optimization/63593
36817         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36818         stmts and releasing SSA names until...
36819         (execute_pred_commoning): ... after processing all chains.
36821 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36823         PR ipa/65059
36824         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36825         external functions.
36827 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
36829         * doc/bugreport.texi: Adjust section titles throughout the file
36830         to use "Title Case".
36831         * doc/extend.texi: Likewise.
36832         * doc/gcov.texi: Likewise.
36833         * doc/implement-c.texi: Likewise.
36834         * doc/implement-cxx.texi: Likewise.
36835         * doc/invoke.texi: Likewise.
36836         * doc/objc.texi: Likewise.
36837         * doc/standards.texi: Likewise.
36838         * doc/trouble.texi: Likewise.
36840 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
36842         * cgraph.h (symtab_node::has_aliases_p): Simplify.
36843         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36844         * tree.c (lookup_binfo_at_offset): Make static.
36845         (get_binfo_at_offset): Do not shadow offset; add explanatory
36846         comment.
36848 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
36850         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36851         for all floading point loads and stores except those using a register
36852         index address.
36853         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36854         to a register.
36856 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36858         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36859         (do_estimate_growth_1): Record if any uninlinable edge was seen.
36860         (estimate_growth): Handle uninlinable edges correctly.
36861         (check_callers): New.
36862         (growth_likely_positive): Handle aliases correctly.
36864 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36866         * ipa-chkp.c: Use iterate_direct_aliases.
36867         * symtab.c (resolution_used_from_other_file_p): Move inline.
36868         (symtab_node::create_reference): Fix formating.
36869         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36870         (symtab_node::iterate_reference): Move inline.
36871         (symtab_node::iterate_referring): Move inline.
36872         (symtab_node::iterate_direct_aliases): Move inline.
36873         (symtab_node::used_from_object_file_p_worker): Inline into ...
36874         (symtab_node::used_from_object_file_p): ... this one; move inline.
36875         (symtab_node::call_for_symbol_and_aliases): Move inline;
36876         use iterate_direct_aliases.
36877         (symtab_node::call_for_symbol_and_aliases_1): New method.
36878         (cgraph_node::call_for_symbol_and_aliases): Move inline;
36879         use iterate_direct_aliases.
36880         (cgraph_node::call_for_symbol_and_aliases_1): New method.
36881         (varpool_node::call_for_node_and_aliases): Rename to ...
36882         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36883         use iterate_direct_aliases.
36884         (varpool_node::call_for_symbol_and_aliases_1): New method.
36885         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36886         (ipa_discover_readonly_nonaddressable_var): Update.
36887         * ipa-devirt.c: Fix formating.
36888         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36889         Move inline.
36890         (cgraph_node::call_for_symbol_and_aliases): Move inline.
36891         (cgraph_node::call_for_symbol_and_aliases_1): New function..
36892         * cgraph.h (used_from_object_file_p_worker): Remove.
36893         (resolution_used_from_other_file_p): Move inline.
36894         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36895         (symtab_node::iterate_reference): Move inline.
36896         (symtab_node::iterate_referring): Move inline.
36897         (symtab_node::iterate_direct_aliases): Move inline.
36898         (symtab_node::used_from_object_file_p_worker): Inline into ...
36899         (symtab_node::used_from_object_file_p): Move inline.
36900         * tree-emutls.c (ipa_lower_emutls): Update.
36901         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36902         (varpool_node::call_for_node_and_aliases): Remove.
36904 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
36906         PR tree-optimization/62209
36907         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36908         op == range->exp, insert seq and gimplified code after labels
36909         instead of after the phi.
36911 2015-02-13  Jeff Law  <law@redhat.com>
36913         PR bootstrap/65060
36914         Revert my change for tree-optimization/64823.
36916 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36918         PR tree-optimization/65053
36919         * tree-ssa-phiopt.c (value_replacement): When moving assign before
36920         cond, either reset VR on lhs or set it to phi result VR.
36922 2015-02-13  Jeff Law  <law@redhat.com>
36924         PR tree-optimization/64823
36925         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36926         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36927         threading through blocks with PHIs, but no statements.
36928         (thread_through_normal_block): Distinguish between blocks where
36929         we did not process all the statements and blocks with no statements.
36931         PR rtl-optimization/47477
36932         * match.pd (convert (plus/minus (convert @0) (convert @1): New
36933         simplifier to narrow arithmetic.
36935 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
36937         PR ipa/65028
36938         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36939         polymorphic call info when type is not known to be preserved.
36941 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
36943         PR ipa/65028
36944         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36945         (inline_call): Use it.
36947 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
36949         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36950         GOMP_DEVICE_NVIDIA_PTX.
36952 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36954         PR ipa/65034
36955         * stmt.c (emit_case_nodes): Use void_type_node instead of
36956         NULL_TREE as LABEL_DECL type.
36958 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
36960         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36961         constraints.
36962         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36963         symbolic references to data to be forced to constant memory on the
36964         SOM target.
36966 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
36968         PR tree-optimization/65002
36969         * tree-cfg.c (pass_data_fixup_cfg): Don't update
36970         SSA on start.
36971         * tree-sra.c (some_callers_have_no_vuse_p): New.
36972         (ipa_early_sra): Reject functions whose callers
36973         assume function is read only.
36975 2015-02-13  Richard Biener  <rguenther@suse.de>
36977         PR lto/65015
36978         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36979         for LTO produced CUs.
36981 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
36983         PR tree-optimization/64705
36984         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36985         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36986         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36987         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36988         expand_simple_operations.
36990 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
36991             Richard Henderson  <rth@redhat.com>
36993         PR rtl/32219
36994         * cgraphunit.c (cgraph_node::finalize_function): Set definition
36995         before notice_global_symbol.
36996         (varpool_node::finalize_decl): Likewise.
36997         * varasm.c (default_binds_local_p_2): Rename from
36998         default_binds_local_p_1, add weak_dominate argument.  Use direct
36999         returns instead of assigning to local variable.  Unify varpool and
37000         cgraph paths via symtab_node.  Reject undef weak variables before
37001         testing visibility.  Reorder tests for simplicity.
37002         (default_binds_local_p): Use default_binds_local_p_2.
37003         (default_binds_local_p_1): Likewise.
37004         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37005         via symtab_node.
37006         (default_elf_asm_output_external): Emit visibility when specified.
37008 2015-02-13  Alan Modra  <amodra@gmail.com>
37010         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37011         code setting up r11 for out-of-line fp restore.
37013 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
37015         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37016         (muser-mode): Likewise.
37018 2015-02-13  Alan Modra  <amodra@gmail.com>
37020         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37021         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37023 2015-02-12  David Howells  <dhowells@redhat.com>
37025         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37026         warning.
37027         * tree-ssa-uninit.c (dump_predicates): Likewise.
37028         * opts.c (print_filtered_help): Likewise.
37030 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37032         * dwarf2out.c (output_die): Use "%s", name instead of name to
37033         avoid -Wformat-security warning.
37035         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37036         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37037         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37038         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37040 2015-02-12  Jason Merrill  <jason@redhat.com>
37042         * common.opt (-flifetime-dse): New.
37044 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37046         PR sanitizer/65019
37047         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37049         PR tree-optimization/65014
37050         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37051         use original second operand of arg0 or arg1 instead of
37052         that adjusted by STRIP_NOPS.
37054 2015-02-11  Jeff Law  <law@redhat.com>
37056         PR target/63347
37057         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37058         that needs to be queued, just queue it for a single cycle.
37060 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
37062         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37063         bodies of thunks; comment on why.
37064         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37065         symbols are extern.
37067 2015-02-11  Richard Henderson  <rth@redhat.com>
37069         PR sanitize/65000
37070         * tree-eh.c (mark_reachable_handlers): Mark source and destination
37071         regions of __builtin_eh_copy_values.
37073 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37075         PR middle-end/65003
37076         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37077         ultimate alias is MEM with SYMBOL_REF satisfying
37078         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
37079         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37081 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
37083         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37084         "diagnostic-core.h".
37085         (main): Initialize progname, and call diagnostic_initialize.
37087         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37088         instead of __OPENMP_TARGET__.
37090         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37091         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37092         hard-coding PTX_ID.
37094 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
37096         * doc/sourcebuild.texi (pie_enabled): Document.
37098 2015-02-11  Martin Liska  <mliska@suse.cz>
37100         PR ipa/64813
37101         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37102         a return value for call to a function that is noreturn.
37104 2015-02-11  Richard Biener  <rguenther@suse.de>
37106         PR lto/65015
37107         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37108         and -fresolution.
37110 2015-02-11  Andrew Pinski  <apinski@cavium.com>
37112         PR target/64893
37113         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37114         Change the first argument type to size_type_node and add another
37115         size_type_node.
37116         (aarch64_simd_expand_builtin): Handle the new argument to
37117         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37118         print an out when the first two arguments are not
37119         nonzero integer constants.
37120         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37121         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37123 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37125         PR target/61925
37126         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37127         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37128         (ix86_set_current_function): Rewritten.
37129         (ix86_add_new_builtins): Temporarily clear current_target_pragma
37130         when creating builtin fndecls.
37132 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37134         PR ipa/65005
37135         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37136         function.
37137         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37138         have no comdat group.
37139         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37140         (lto_output_varpool_node): Always output alias info.
37141         (output_refs): Output refs of boundary aliases, too.
37142         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37143         (output_symtab): Output call eges in thunks in boundary.
37144         (get_alias_symbol): Remove.
37145         (input_node, input_varpool_node): Do not special case weakrefs.
37146         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37147         alias and thunks targets in the boundary; do not take removed symbols
37148         from their comdat groups.
37149         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37150         (cgraph_node::global_info): Remove.
37151         (cgraph_node::rtl_info): Look through aliases and thunks.
37152         * cgrpah.h (global_info): Remove.
37153         (non_local_p): Remove.
37155 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37156             Sandra Loosemore  <sandra@codesourcery.com>
37158         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37159         to inline asm.  List dialects in proper order.
37161 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37162             Sandra Loosemore  <sandra@codesourcery.com>
37164         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37166 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37168         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37169         modified) reference to Solaris.
37171 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
37173         * doc/extend.texi (Extended Asm): Fix typos.
37175 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
37177         PR sanitizer/65004
37178         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37180 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
37182         PR target/64661
37183         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37184         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37185         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37186         * config/sh/constraints.md (Ara, Add): New constraints.
37187         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37188         predicates.
37189         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37190         atomic_mem_operand_0.  Don't use force_reg on the memory address.
37191         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37192         Sra constraint.  Convert to insn_and_split.  Add workaround for
37193         PR 64974.
37194         (atomic_compare_and_swap<mode>_hard): Copy to
37195         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
37196         Use atomic_mem_operand_0 predicate.
37197         (atomic_compare_and_swap<mode>_soft_gusa,
37198         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37199         AraAdd constraints.
37200         (atomic_compare_and_swap<mode>_soft_tcb,
37201         atomic_compare_and_swap<mode>_soft_imask,
37202         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37203         atomic_mem_operand_0 predicate and SraSdd constraints.
37204         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37205         constraint.
37206         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37207         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
37208         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37209         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
37210         force_reg on the memory address.
37211         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37212         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37213         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37214         atomic_mem_operand_1 predicate and Sra constraint.
37215         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37216         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37217         Use atomic_mem_operand_1 predicate.
37218         (atomic_<fetchop_name><mode>_hard): Copy to
37219         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37220         Use atomic_mem_operand_1 predicate.
37221         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37222         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37223         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
37224         insn_and_split.  Use atomic_mem_operand_1 predicate.
37225         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37226         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
37227         Use atomic_mem_operand_1 predicate.
37228         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37229         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37230         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37231         in generated insn with original mem operand before emitting the insn.
37232         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37233         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37234         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37235         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37236         Use atomic_mem_operand_1 predicate and AraAdd constraints.
37237         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37238         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37239         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37240         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37241         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37242         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37243         atomic_not_fetch<mode>_soft_tcb,
37244         atomic_<fetchop_name>_fetch<mode>_soft_imask,
37245         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37246         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37247         Use atomic_mem_operand_1 predicate and SraSdd constraints.
37249 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
37251         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37252         and 3 earlyclobber operands.
37254 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37256         * common.opt (fstack-reuse): Mark as optimization.
37258 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37260         PR ipa/64982
37261         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37263 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
37265         PR tree-optimization/64326
37266         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37268 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
37270         PR gcov-profile/61889
37271         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37273 2015-02-10  Richard Biener  <rguenther@suse.de>
37275         PR tree-optimization/64995
37276         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37277         value we use is final.
37278         (visit_reference_op_store): Always valueize op.
37279         (visit_use): Properly valueize vuses.
37281 2015-02-10  Richard Biener  <rguenther@suse.de>
37283         PR tree-optimization/64909
37284         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37285         pass a scalar-stmt count estimate to the cost model.
37286         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37288 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
37290         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37291         enabled by default together with var-tracking.
37293 2015-02-10  Nick Clifton  <nickc@redhat.com>
37295         * config/rl78/rl78.c: Remove DIV attribute code accidentally
37296         included in previous rl78 commit.
37298 2015-02-10  Richard Biener  <rguenther@suse.de>
37300         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37301         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37302         return the bitpack.
37304 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37306         PR gcov-profile/61889
37307         * config.in: regenerate.
37308         * configure.in: Likewise.
37309         * configure.ac: Check for ftw.h.
37310         * gcov-tool.c: Check for ftw.h before using nftw.
37312 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37314         PR lto/64076
37315         * ipa-visibility.c (update_visibility_by_resolution_info): Only
37316         assert when not in lto mode.
37318 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
37320         * ira-color.c (setup_left_conflict_sizes_p): Simplify
37321         initialization/assignment of conflict_size.
37323 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
37325         PR ipa/64978
37326         * ipa-cp.c (gather_caller_stats): Skip thunks.
37327         (propagate_constants_topo): Skip aliases.
37329 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
37331         PR target/64761
37332         * config/sh/sh.c (sh_option_override): Don't change
37333         -freorder-blocks-and-partition to -freorder-blocks even when
37334         unwinding is enabled.
37335         (sh_can_follow_jump): Return false if the followee jump is
37336         a crossing jump when -freorder-blocks-and-partition is specified.
37337         * config/sh/sh.md (*jump_compact_crossing): New insn.
37339 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
37340             Kaz Kojima  <kkojima@gcc.gnu.org>
37342         PR target/64761
37343         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37344         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37345         (sh_can_redirect_branch): Rename to ...
37346         (sh_can_follow_jump): ... this.  Constify argument types.
37347         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37348         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37349         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37350         * doc/tm.texi: Regenerate.
37352 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37354         PR sanitizer/64981
37355         * builtins.c (expand_builtin): Call targetm.expand_builtin
37356         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37358 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37360         PR ipa/61548
37361         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37363 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37365         PR ipa/63566
37366         * ipa-icf.c (set_local): New function.
37367         (sem_function::merge): Use it.
37369 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37371         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37372         (add_type_duplicate): Fix comparison of BINFOs.
37374 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37376         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37377         on getting VOID pointer.
37379 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37381         PR target/64979
37382         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37383         va_list escapes.
37385 2015-02-09  Richard Biener  <rguenther@suse.de>
37387         * genmatch.c (replace_id): Copy expr_type.
37389 2015-02-09  Richard Biener  <rguenther@suse.de>
37391         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37392         (streamer_write_tree_bitfields): Declare.
37393         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37394         properly unpack padding.
37395         (unpack_value_fields): Inline ...
37396         (streamer_read_tree_bitfields): ... here.
37397         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37398         and properly add padding bits.
37399         (streamer_pack_tree_bitfields): Fold into ...
37400         (streamer_write_tree_bitfields): ... this new function,
37401         exposing the bitpack object.
37402         * lto-streamer-out.c (lto_write_tree_1): Call
37403         streamer_write_tree_bitfields.
37405 2015-02-09  Richard Biener  <rguenther@suse.de>
37407         PR tree-optimization/54000
37408         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37409         (struct ivopts_data): Add loop_loc member.
37410         (tree_ssa_iv_optimize_loop): Dump loop location.
37411         (create_new_ivs): Likewise, also dump number of IVs generated.
37413 2015-02-09  Martin Liska  <mliska@suse.cz>
37415         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37416         just if not yet registered.
37417         (ipa_icf_generate_summary): Register callgraph hooks.
37419 2015-02-08  Andrew Pinski  <apinski@cavium.com>
37421         * config/aarch64/aarch64.c (gty_dummy): Delete.
37423 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37425         PR ipa/63566
37426         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37427         (cgraph_node::local_p): Remove thunk related FIXME.
37429 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37431         PR ipa/63566
37432         * i386.c (ix86_function_regparm): Look through aliases to see if callee
37433         is local and optimized.
37434         (ix86_function_sseregparm): Likewise; also use target's SSE math
37435         settings; error out instead of silently generating wrong code
37436         on mismatches.
37437         (init_cumulative_args): Look through aliases.
37439 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37441         PR ipa/63566
37442         * ipa-split.c (execute_split_functions): Split if function has aliases.
37444 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37446         PR ipa/63566
37447         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37448         aliases before trying to expand it.
37449         (cgraph_node::expand_thunk): Fix formating.
37451 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
37453         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37454         (Using Assembly Language with C): Expand introduction.
37455         (Basic Asm): Copy-edit.  Add more information about uses of
37456         basic asm.
37457         (Extended Asm): Copy-edit.  Document new escape syntax and
37458         %l[label] syntax.
37459         (Global Reg Vars): Copy-edit.
37460         (Local Reg Vars): Likewise.
37462 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
37464         PR debug/2714
37465         PR bootstrap/64256
37466         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37467         (DBX_CONTIN_CHAR): Define.
37469 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
37470             Brian Rzycki  <b.rzycki@samsung.com>
37472         PR tree-optimization/64878
37473         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37474         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37475         Stop recursion at loop phi nodes after having visited a loop phi node.
37477 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37479         * toplev.c (process_options): Change flag_ipa_ra before creating
37480         optimization_{default,current}_node.
37482         PR ipa/64896
37483         * cgraphunit.c (cgraph_node::expand_thunk): If
37484         restype is not is_gimple_reg_type nor the thunk_fndecl
37485         returns aggregate_value_p, set restmp to a temporary variable
37486         instead of resdecl.
37488 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
37490         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37492 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37494         PR target/64205
37495         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37496         add a general secondary reload handler for SDmode, unless we have
37497         both read/write support for SDmode.
37499 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37501         PR middle-end/64937
37502         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37503         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37504         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37505         1 before, push it to abstract_vec.
37506         (dwarf2out_abstract_function): Adjust caller.  Don't call
37507         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37508         DECL_ABSTRACT_P flags for all abstract_vec elts.
37510 2015-02-06  Renlin Li  <renlin.li@arm.com>
37512         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37513         complex gimple.
37514         * tree-ssa.c (execute_update_addresses_taken): Likewise.
37516 2015-02-06  Jeff Law  <law@redhat.com>
37518         PR target/64889
37519         * config/h8300/h8300.c (push): New argument "in_prologue".
37520         Pass "in_prologue" along to "F".
37521         (h8300_push_pop): Corresponding changes.
37522         (h8300_expand_prologue): Likewise.
37523         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
37525 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37527         PR rtl-optimization/64957
37528         PR debug/64817
37529         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37530         IOR rather than for AND.
37532 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
37534         PR target/62631
37535         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37536         of shift-add and (add + shift) operations.  Rename local variable.
37538 2015-02-05  Jeff Law  <law@redhat.com>
37540         PR target/17306
37541         * config/h8300/constraints.md (U): Correctly dectect
37542         "eightbit_data" memory addresses.
37543         * config/h8300/h8300.c (eightbit_constant_address_p): Also
37544         handle (const (plus (symbol_ref (x)))) where x is declared
37545         as an 8-bit data memory address.
37546         * config/h8300/h8300.md (call, call_value): Correctly detect
37547         "funcvec" functions.
37549         PR target/43264
37550         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37551         24 to 28 bits for the H8/300.
37553 2015-02-06  Alan Modra  <amodra@gmail.com>
37555         PR target/64876
37556         * config/rs6000/rs6000.c (chain_already_loaded): New function.
37557         (rs6000_call_aix): Use it.
37559 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
37561         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37562         check.
37564 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
37566         * config/h8300/constraints.md ("U" constraint): Use strict
37567         variant of REG_OK_FOR_BASE_P after reload has started.
37569 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
37571         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37572         define to zero if !TARGET_NEON.
37573         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37575 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37576             Trevor Saunders  <tsaunders@mozilla.com>
37578         PR ipa/61548
37579         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37581 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37583         PR ipa/61548
37584         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37585         when removing varpool nodes.
37587 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37589         PR ipa/61548
37590         * varpool.c (varpool_node::remove): Fix order of variables.
37592 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37594         PR ipa/64686
37595         * ipa-inline.c (inline_small_functions): Fix ordering issue between
37596         speculation resolution and key updates.
37598 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37600         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37601         about not letting any speculative edges unupdated.
37603 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37605         PR gcov/64123
37606         * gcov-io.c (gcov_var): Export.
37608 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37610         PR middle-end/64922
37611         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37612         edges that become speculative.
37614 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37616         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37617         or DW_LANG_Fortran08.
37618         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37619         DW_LANG_Fortran08.
37620         (gen_compile_unit_die): Handle "GNU Fortran2003" and
37621         "GNU Fortran2008" language strings.
37622         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37623         * langhooks.h (lang_GNU_Fortran): New prototype.
37624         * langhooks.c (lang_GNU_Fortran): New function.
37625         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37626         lang_GNU_Fortran.
37628 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37630         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37631         (RTX_OK_FOR_OLO10_P): Likewise.
37633 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37635         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37637 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37639         PR middle-end/64922
37640         * gimple.c: Include gimple-ssa.h.
37641         (maybe_remove_unused_call_args): New function.
37642         * gimple.h (maybe_remove_unused_call_args): Declare.
37643         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37644         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37645         * gimple-fold.c (gimple_fold_call): Likewise.
37647 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
37649         PR rtl-optimization/64905
37650         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37651         pointer alignment if it isn't needed.
37653 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37655         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37656         cortex-a72.cortex-a53.
37657         * config/aarch64/aarch64-tune.md: Regenerate.
37658         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37660 2015-02-04  Nick Clifton  <nickc@redhat.com>
37662         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37663         inside a MEM.
37665 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37667         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37668         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37669         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37670         of DEF_BUILTIN.
37671         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37672         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37673         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37674         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37675         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37676         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37677         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37678         * tree-core.h (enum built_in_function): In between
37679         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37680         for builtins that use DEF_BUILTIN_CHKP macro.
37682 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
37684         PR debug/64817
37685         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37686         operands for tcc_comparison exprs.  Fix typos.
37688         PR debug/64817
37689         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37690         of two XORs that have an intervening AND or IOR.
37692         PR debug/64817
37693         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37694         simplification of XOR of AND to not allocate new rtx before
37695         committing to a simplification.
37697 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37699         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37700         manual swaps in all peepholes.
37702 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37704         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37705         of manual swapping implementation.
37706         (aarch64_expand_vec_perm_const_1): Likewise.
37708 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
37710         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37711         (generic_addrcost_table): Remove NAMED_PARAM.
37712         (cortexa57_addrcost_table): Likewise.
37713         (xgene1_addrcost_table): Likewise.
37714         (generic_regmove_table): Likewise.
37715         (cortexa53_regmove_table): Likewise.
37716         (xgene1_regmove_table): Likewise.
37717         (generic_vector_table): Likewise.
37718         (cortexa57_vector_table): Likewise.
37719         (xgene1_vector_table): Likewise.
37720         (generic_tunings): Likewise.
37721         (cortexa53_tunings): Likewise.
37722         (cortexa57_tunings): Likewise.
37723         (xgene1_tunings): Likewise.
37725 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37727         * config/arm/arm-cores.def: Add cortex-a72 and
37728         cortex-a72.cortex-a53.
37729         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37730         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37731         * config/arm/arm-tune.md: Regenerate.
37732         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37733         "cortex-a72.cortex-a53".
37734         * doc/invoke.texi (ARM Options/-mtune): Likewise.
37736 2015-02-04  Nick Clifton  <nickc@redhat.com>
37738         PR target/64408
37739         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37740         of accepted codes.
37741         (nonimmediate_di_operand): Likewise.
37743         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37744         prefixes of known F5 using MSP430 MCUs.
37746 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37748         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37749         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37750         instead of __builtin_sqrt.
37752 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
37754         * varasm.c (do_assemble_alias): Follow transparent alias
37755         chain for target.
37756         (default_assemble_visibility): Follow transparent alias
37757         chain for decl name.
37759 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37761         PR middle-end/62103
37762         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37763         to compute size of referenced value in the constant case.
37765 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37767         PR rtl-optimization/64756
37768         * cse.c (invalidate_dest): New function.
37769         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
37770         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37771         invalidate and do not record it.
37773 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
37775         PR target/64660
37776         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37777         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37778         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37779         atomic_nand<mode>_soft_tcb): New insns.
37780         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37781         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37782         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37783         Split into atomic_not_fetchsi_hard if operands[0] is unused.
37784         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37785         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37786         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
37787         atomic_not<mode>_hard if operands[0] is unused.
37788         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37789         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37790         if operands[0] is unused.
37791         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
37792         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37793         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37794         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37795         unused.
37796         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
37797         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37798         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37799         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37800         if operands[0] is unused.
37801         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
37802         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37803         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
37804         atomic_nand_fetchsi_hard if operands[0] is unused.
37805         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
37806         atomic_nand<mode>_hard if operands[0] is unused.
37807         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
37808         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37809         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
37810         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37811         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
37812         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37813         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37814         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37815         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
37816         atomic_not<mode>_hard if operands[0] is unused.
37817         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37818         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37819         unused.
37820         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37821         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37822         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
37823         atomic_nand<mode>_hard if operands[0] is unused.
37824         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37825         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37827 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
37829         PR jit/64810
37830         * Makefile.in (GCC_OBJS): Add gcc-main.o.
37831         * gcc-main.c: New file, containing "main" taken from gcc.c.
37832         * gcc.c (do_self_spec): Free decoded_options.
37833         (class driver): Move declaration to gcc.h.
37834         (main): Move declaration and implementation to new file
37835         gcc-main.c.
37836         (driver_get_configure_time_options): New function.
37837         * gcc.h (class driver): Move this declaration here, from
37838         gcc.c.
37839         (driver_get_configure_time_options): New declaration.
37841 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
37843         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37844         cross-module inlining.
37845         * cgraph.h (cgraph_node): Add flag merged.
37846         * ipa-icf.c (sem_function::merge): Maintain it.
37848 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
37850         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37851         instead of OBJECT_P.
37853 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
37855         PR target/62631
37856         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37857         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37858         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37859         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37861 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37863         PR other/63504
37864         * combine.c (reg_n_sets_max): New variable.
37865         (can_change_dest_mode, reg_nonzero_bits_for_combine,
37866         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37867         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37868         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37869         (rest_of_handle_combine): Initialize reg_n_sets_max.
37871 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
37873         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37874         if some always_inline was inlined, apply changes before inlining
37875         heuristically.
37877 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
37879         PR jit/64810
37880         * config/arm/arm.c (arm_option_override): Set
37881         arm_selected_arch/cpu/tune to NULL on entry.
37883 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
37884             Andrew Pinski  <pinskia@gcc.gnu.org>
37885             Jakub Jelinek  <jakub@gcc.gnu.org>
37887         PR target/64231
37888         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37889         integer typing for small model. Use IN_RANGE.
37891 2015-02-02  Richard Biener  <rguenther@suse.de>
37893         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37894         * tree-vrp.c (vrp_valueize_1): Likewise.
37896 2015-02-02  Alan Modra  <amodra@gmail.com>
37898         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37899         than mem for toc_restore.
37900         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37901         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37902         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37904 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
37906         PR target/64047
37907         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37908         explicit default options.
37910 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
37912         PR ipa/64872
37913         * ipa-utils.c (ipa_merge_profiles): Add release argument.
37914         * ipa-icf.c (sem_function::merge): Do not release body when merging.
37915         * ipa-utils.h (ipa_merge_profiles): Update prototype.
37917 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
37919         PR debug/64817
37920         * cfgexpand.c (deep_ter_debug_map): New variable.
37921         (avoid_deep_ter_for_debug): New function.
37922         (expand_debug_expr): If TERed SSA_NAME is in
37923         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37924         instead of trying to expand SSA_NAME's def stmt.
37925         (expand_debug_locations): When expanding debug bind
37926         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37927         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37928         value.
37929         (pass_expand::execute): Call avoid_deep_ter_for_debug on
37930         all debug bind stmts.  Delete deep_ter_debug_map after
37931         expand_debug_location if non-NULL and clear it.
37933 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
37935         PR target/64851
37936         * config/sh/sync.md (atomic_fetch_notsi_hard,
37937         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37938         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37939         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37940         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37941         atomic_not_fetch<mode>_soft_imask): New insns.
37943 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37945         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37946         (rank_for_schedule_debug): Split from ...
37947         (rank_for_schedule): ... this.
37948         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37949         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37951 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37953         * doc/md.texi (Machine Constraints): Alphabetize table by target.
37954         * doc/extend.texi (x86 Variable Attributes): Move section to
37955         correct alphabetization after renaming.
37956         (x86 Type Attributes): Likewise.
37957         (Target Builtins): Re-alphabetize menu.
37958         (x86 Built-in Functions): Move section to correct alphabetization
37959         after renaming.
37960         (x86 transactional memory intrinsics): Likewise.
37961         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37962         and x86 Windows Options in table and menu.
37963         (x86 Options): Move section to correct alphabetization after
37964         renaming.
37965         (x86 Windows Options): Likewise.
37967 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37969         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37970         preferred names of the architecture and its 32- and 64-bit
37971         variants.
37972         * doc/invoke.texi: Likewise.
37973         * doc/md.texi: Likewise.
37975 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37977         PR target/64882
37978         * config/i386/predicates.md (address_no_seg_operand): Reject
37979         non-CONST_INT_P operands in invalid mode.
37981 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37983         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37984         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
37985         * config/i386/predicates.md (address_no_seg_operand): Call
37986         address_operand with VOIDmode.
37987         (vsib_address_operand): Ditto.
37988         (address_mpx_no_base_operand): Ditto.
37989         (address_mpx_no_index_operand): Ditto.
37991 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37993         PR target/64688
37994         * lra-constraints.c (original_subreg_reg_mode): New.
37995         (simplify_operand_subreg): Try to simplify subreg of const.  Use
37996         original_subreg_reg_mode for it.
37997         (swap_operands): Update original_subreg_reg_mode.
37998         (curr_insn_transform): Set up original_subreg_reg_mode.
38000 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38002         PR target/64617
38003         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38004         function.
38005         (process_alt_operands): Use it.
38006         (curr_insn_transform): Check the optional reload pseudo class is
38007         ok for the mode.
38009 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
38011         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38012         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38013         prototype.
38014         * toplev.h (init_asm_output): Update comment on use of
38015         UNKNOWN_LOCATION with fatal_error.
38016         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38017         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38018         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38019         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38020         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38021         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38022         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38023         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38024         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38025         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38026         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38027         fatal_error changed to pass input_location as first argument.
38029 2015-01-30  Martin Liska  <mliska@suse.cz>
38031         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38032         in #pragma GCC diagnostic guards.
38034 2015-01-30  Richard Biener  <rguenther@suse.de>
38036         PR tree-optimization/64829
38037         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38038         not add a widening conversion pattern but hand off extra
38039         widenings to callers.
38040         (vect_recog_widen_mult_pattern): Handle extra widening produced
38041         by vect_handle_widen_op_by_const.
38042         (vect_recog_widen_shift_pattern): Likewise.
38043         (vect_pattern_recog_1): Remove excess vertical space in dumping.
38044         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38045         (vect_init_vector_1): Likewise.
38046         (vect_get_vec_def_for_operand): Likewise.
38047         (vect_finish_stmt_generation): Likewise.
38048         (vectorizable_load): Likewise.
38049         (vect_analyze_stmt): Likewise.
38050         (vect_is_simple_use): Likewise.
38052 2015-01-29  Jeff Law  <law@redhat.com>
38054         * combine.c (try_combine): Fix typo in comment.
38056 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
38058         PR target/64580
38059         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38060         (rs6000_stack_info): Add assert.
38061         (rs6000_output_savres_externs): New function, split off from...
38062         (rs6000_output_function_prologue): ... here.  Do not call it for
38063         thunks.
38065 2015-01-29  Jeff Law  <law@redhat.com>
38067         PR target/15184
38068         * combine.c (try_combine): If I0 is a memory load and I3 a store
38069         to a related address, increase the "goodness" of doing a 4-insn
38070         combination with I0-I3.
38071         (make_field_assignment): Handle SUBREGs in the ior+and case.
38073 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
38075         PR tree-optimization/64746
38076         * tree-if-conv.c (mask_exists): New function.
38077         (predicate_mem_writes): Save created mask with given size for further
38078         use.
38079         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38080         (ifcvt_repair_bool_pattern): Collect all statements that are root
38081         of bool pattern and use iterative algorithm to remove multiple uses
38082         of predicates, display number of required iterations.
38084 2015-01-29  Richard Biener  <rguenther@suse.de>
38086         PR tree-optimization/64853
38087         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38088         stmt will get simulated again.
38089         * tree-ssa-ccp.c (valueize_op_1): Likewise.
38091 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38093         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38094         return_in_pc.  Remove redundant assignments.
38095         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38096         (arm_expand_epilogue): Don't compare boolean with true in if condition.
38098 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
38100         * config/i386/i386.c (ix86_mode_after): Make static.
38102 2015-01-29  Richard Biener  <rguenther@suse.de>
38104         PR tree-optimization/64844
38105         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38106         dump cost model analysis.
38107         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38108         Do not register adjusted load/store costs here.
38110 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38111             Uros Bizjak  <ubizjak@gmail.com>
38113         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38114         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38115         using x86_use_pseudo_pic_reg.
38116         * config/i386/i386.c (ix86_conditional_register_usage): Remove
38117         support for fixed PIC register.
38118         (ix86_use_pseudo_pic_reg): Not static any more.
38120 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38122         PR middle-end/64805
38123         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38124         to avoid error in cgraph node verification.
38126 2015-01-29  Marek Polacek  <polacek@redhat.com>
38128         * doc/standards.texi: Reflect that the default for C is gnu11.
38130 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
38132         PR target/64761
38133         * reorg.c (switch_text_sections_between_p): New function.
38134         (relax_delay_slots): Call it when testing if the jump insn
38135         is removable.  Use targetm.can_follow_jump when testing if
38136         the conditional branch can follow an unconditional jump.
38138 2015-01-27  Caroline Tice  <cmtice@google.com>
38140         Committing VTV Cywin/Ming patch for Patrick Wollgast
38141         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38142         if -fvtable-verify=preinit/std is used.
38143         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38144         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38145         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38146         if -fvtable-verify=preinit/std is used.
38147         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38148         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38149         if -fvtable-verify=preinit/std is used.
38150         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38151         * config/i386/mingw32.h (LIB_SPEC): Likewise.
38152         * varasm.c (assemble_variable): Add code to properly set the comdat
38153         section and name for the .vtable_map_vars section in case the
38154         target is PE or COFF.
38156 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38158         PR ipa/64801
38159         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38160         make sane BB profile.
38161         (cgraph_node::expand_thunk): Make sane BB profile.
38162         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38163         * cgraph.h (init_lowered_empty_function): Update prototype.
38164         * config/i386/i386.c (make_resolver_func): Update call.
38165         * predict.c (gate): Disable branch prediction pass if
38166         profile is already there.
38168 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38170         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38171         * opth-gen.awk: Likewise.
38172         * common.opt: Mark flag_fp_contract_mode as Optimization.
38174 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38176         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38177         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38179 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
38181         PR target/64659
38182         * config/sh/predicates.md (atomic_arith_operand,
38183         atomic_logical_operand): Remove.
38184         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38185         (atomic_arith_operand_0): New predicate.
38186         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38187         Use atomic_arith_operand_0 for input values.
38188         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38189         atomic_compare_and_swap<mode>_soft_gusa,
38190         atomic_compare_and_swap<mode>_soft_tcb,
38191         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38192         arith_reg_operand instead of register_operand.
38193         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
38194         atomic_arith_operand_0 for newval input.
38195         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38196         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38197         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38198         arith_reg_operand instead of register_operand.
38199         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38200         fetchop_predicate_1, fetchop_constraint_1_llcs,
38201         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38202         fetchop_constraint_1_imask): New code iterator attributes.
38203         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38204         register_operand.  Use fetchop_predicate_1.
38205         (atomic_fetch_<fetchop_name>si_hard,
38206         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38207         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38208         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38209         and arith_reg_operand instead of register_operand.  Use
38210         fetchop_predicate_1, fetchop_constraint_1_gusa.
38211         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38212         and arith_reg_operand instead of register_operand.  Use
38213         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
38214         to allow R0 usage.
38215         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38216         and arith_reg_operand instead of register_operand.  Use
38217         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
38218         to allow R0 usage.
38219         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38220         register_operand.  Use atomic_logical_operand_1.
38221         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38222         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38223         arith_reg_operand instead of register_operand.
38224         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38225         Use arith_reg_dest and arith_reg_operand instead of register_operand.
38226         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
38227         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38228         register_operand.  Use fetchop_predicate_1.
38229         (atomic_<fetchop_name>_fetchsi_hard,
38230         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38231         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38232         fetchop_constraint_1_llcs.
38233         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38234         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38235         fetchop_constraint_1_gusa.
38236         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38237         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38238         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
38239         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38240         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38241         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
38242         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38243         register_operand.  Use atomic_logical_operand_1.
38244         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38245         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38246         arith_reg_operand instead of register_operand.
38247         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38248         arith_reg_operand instead of register_operand.  Use logical_operand
38249         and K08.  Adjust asm sequence to allow R0 usage.
38250         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38251         arith_reg_operand instead of register_operand.  Use logical_operand
38252         and K08.
38254 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38256         PR other/63504
38257         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38258         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38259         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38260         only get_full_len HOST_WIDE_INTs from get_val () array rather than
38261         all bits in *val_wide.
38263 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
38265         * varpool.c (tls_model_names): Fix names.
38266         (varpool_node::dump): Dump tls- prefix for tls models.
38268 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
38269             Bernd Schmidt  <bernds@codesourcery.com>
38270             Nathan Sidwell  <nathan@codesourcery.com>
38272         * config/nvptx/mkoffload.c: New file.
38273         * config/nvptx/t-nvptx: Add build rules for it.
38274         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38275         (extra_programs): Add mkoffload.
38276         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38277         function.
38278         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38280 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
38282         PR middle-end/64809
38283         * cfgexpand.c (reorder_operands): Skip debug gimples.
38285 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
38287         PR tree-optimization/64277
38288         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38289         range info when possible to refine estimation.
38291 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38293         PR tree-optimization/64718
38294         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38295         be a 16bit unsigned integer when n->range is 16.
38296         (bswap_replace): Convert src to that type if necessary for all bswap
38297         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
38298         set in pass_optimize_bswap::execute ().
38300 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
38302         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38303         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38304         integer and floating point variants.
38305         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38307 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
38309         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38310         for all vector modes.
38312 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38314         PR bootstrap/64612
38315         * doc/sourcebuild.texi (comdat_group): Document.
38317 2015-01-28  Terry Guo  <terry.guo@arm.com>
38319         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38321 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
38323         * toplev.c (print_version): Add param "show_global_state", and
38324         only print GGC and plugin information if it is true.
38325         (init_asm_output): Pass in "true" for the new param when calling
38326         print_version.
38327         (process_options): Likewise.
38328         (toplev::main): Likewise.
38329         * toplev.h (print_version): Add new param to decl.
38331 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38333         PR ipa/60871
38334         PR ipa/64139
38335         * tree.c (lookup_binfo_at_offset): New function.
38336         (get_binfo_at_offset): Use it.
38338 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38340         PR ipa/64282
38341         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38342         on vtable being vtable.
38344 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
38346         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38347         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38348         -mhotpatch= option.
38349         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38350         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
38351         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38352         Renamed.
38353         (s390_hotpatch_trampoline_halfwords_max): Renamed.
38354         (s390_hotpatch_hw_max): New name.
38355         (s390_hotpatch_trampoline_halfwords): Renamed.
38356         (s390_hotpatch_hw_before_label): New name.
38357         (get_hotpatch_attribute): Removed.
38358         (s390_hotpatch_hw_after_label): New name.
38359         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38360         attribute.
38361         (s390_attribute_table): Ditto.
38362         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38363         (s390_function_num_hotpatch_hw): New name.
38364         Remove special handling of inline functions and hotpatching.
38365         Return number of nops before and after the function label.
38366         (s390_can_inline_p): Removed.
38367         (s390_asm_output_function_label): Emit a configurable number of nops
38368         after the function label.
38369         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38370         (TARGET_CAN_INLINE_P) Removed.
38371         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38373 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38374             Jiong Wang  <jiong.wang@arm.com>
38376         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38377         of scratch reg.
38378         (cb<optab><mode>1): Likewise.
38379         * config/aarch64/iterators.md (bcond): New define_code_attr.
38381 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38383         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38384         memory accesses.
38386 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38388         * config/s390/s390.c (s390_register_move_cost): Increase costs for
38389         FPR->GPR moves.
38391 2015-01-27  Richard Biener  <rguenther@suse.de>
38393         * tree-vrp.c (update_value_range): Intersect the range with
38394         old recorded SSA name range information.
38396 2015-01-27  Nick Clifton  <nickc@redhat.com>
38398         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38399         BC, DE and HL registers directly, not via AX.
38400         When decrementing the stack pointer by a large amount, transfer SP
38401         into AX and perform the subtraction there.
38402         (rl78_expand_epilogue): Perform the inverse of the above
38403         enhancements.
38405 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38407         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38409 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38410             Yury Gribov  <y.gribov@samsung.com>
38412         PR ubsan/64741
38413         * ubsan.c (ubsan_source_location): Refactor code.
38414         (ubsan_type_descriptor): Update type size. Refactor code.
38416 2015-01-27  Richard Biener  <rguenther@suse.de>
38418         PR tree-optimization/56273
38419         PR tree-optimization/59124
38420         PR tree-optimization/64277
38421         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38422         from the first VRP pass.
38424 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38426         PR ipa/64776
38427         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38428         handle the first argument in the same loop as all the other arguments.
38430         PR rtl-optimization/61058
38431         * jump.c (cleanup_barriers): Update basic block boundaries
38432         if BLOCK_FOR_INSN is non-NULL on PREV.
38434 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
38436         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38437         bounds narrowing, already instrumented calls and calls to
38438         not instrumentable functions.
38440 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38442         PR tree-optimization/64807
38443         * wide-int.cc (wi::divmod_internal): Clear
38444         b_dividend[dividend_blocks_needed].
38446 2015-01-26  DJ Delorie  <dj@redhat.com>
38448         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38449         volatile memory references.
38451 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
38453         PR target/49263
38454         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38455         remove_insn.
38456         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38457         shifts if it already fits into K08.
38459 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38461         PR ipa/64730
38462         * ipa-inline.c (inline_small_functions): Print "unknown" even
38463         if edge->call_stmt is non-NULL, but has builtins or unknown
38464         location.
38466         PR middle-end/64421
38467         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38468         with asterisk, skip the first character.
38470 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38472         PR target/64806
38473         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38474         order change.
38476 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
38478         PR target/64795
38479         * config/i386/i386.md (*movdi_internal): Also check operand 0
38480         to determine TYPE_LEA operand.
38481         (*movsi_internal): Ditto.
38483 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38485         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38486         OPTION_MASK_QUAD_MEMORY_ATOMIC.
38488 2015-01-26  Renlin Li  <renlin.li@arm.com>
38490         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38491         the comment.
38492         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38493         for higher part.
38495 2015-01-26  Richard Biener  <rguenther@suse.de>
38497         PR middle-end/64764
38498         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38499         combining two BIT_AND_EXPR predicates.
38501 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38503         PR bootstrap/64754
38504         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38506 2015-01-26  Terry Guo  <terry.guo@arm.com>
38508         * config/arm/arm.c (arm_file_start): Update the assignment of
38509         Tag_ABI_HardFP_use.
38511 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
38513         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38514         pipeline model.
38515         config/arm/arm.md: Include the new Cortex-A57 model.
38516         (generic_sched): Don't use generic_sched when tuning for
38517         Cortex-A57.
38519 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
38520             Uros Bizjak  <ubizjak@gmail.com>
38522         * config/i386/i386.c (get_builtin_code_for_version): Add
38523         support for BMI and BMI2 multiversion functions.
38525 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38527         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38528         (extract_bit_field): Likewise.
38529         (extract_low_bits): Likewise.
38530         (expand_mult): Likewise.
38531         (expand_mult_highpart_adjust): Likewise.
38533 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
38535         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38536         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38537         * config/i386/i386.c (processor_model): Add
38538         M_INTEL_COREI7_BROADWELL.
38539         (arch_names_table): Add "broadwell".
38541 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
38543         PR target/49263
38544         PR target/53987
38545         PR target/64345
38546         PR target/59533
38547         PR target/52933
38548         PR target/54236
38549         PR target/51244
38550         * config/sh/sh-protos.h
38551         (sh_extending_set_of_reg::can_use_as_unextended_reg,
38552         sh_extending_set_of_reg::use_as_unextended_reg,
38553         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38554         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38555         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38556         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38557         (sh_treg_insns): New class.
38558         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38559         (scope_counter): New class.
38560         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38561         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38562         sh_extending_set_of_reg::can_use_as_unextended_reg,
38563         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38564         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38565         sh_split_treg_set_expr): New functions.
38566         (addsubcosts): Handle treg_set_expr.
38567         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38568         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38569         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38570         (sh_insn_operands_modified_between_p): Make non-static.
38571         * config/sh/predicates.md (zero_extend_movu_operand): Allow
38572         simple_mem_operand in addition to displacement_mem_operand.
38573         (zero_extend_operand): Don't allow zero_extend_movu_operand.
38574         (treg_set_expr, treg_set_expr_not_const01,
38575         arith_reg_or_treg_set_expr): New predicates.
38576         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38577         arith_or_int_operand instead of logical_operand.  Convert to
38578         insn_and_split.  Try to optimize constant operand in splitter.
38579         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
38580         (*tstqi_t_zero): Delete.
38581         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38582         (tstsi_t_and_not): Delete.
38583         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38584         Convert to insn_and_split.
38585         (unnamed split, tstsi_t_zero_extract_xor,
38586         tstsi_t_zero_extract_subreg_xor_little,
38587         tstsi_t_zero_extract_subreg_xor_big): Delete.
38588         (*tstsi_t_shift_mask): New insn_and_split.
38589         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38590         to recombine with surrounding insns when splitting.
38591         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38592         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38593         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38594         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38595         (*cbranch_div0s: Delete.
38596         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38597         Try to recombine with surrounding insns when splitting.  Add operand
38598         order variants.
38599         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38600         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38601         *addc_r_r_msb, *addc_2r_msb): Delete.
38602         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
38603         order variant.
38604         (*addc_negreg_t): New insn_and_split.
38605         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38606         Try to recombine with surrounding insns when splitting.
38607         Add operand order variants.
38608         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38609         insn_and_split patterns.
38610         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
38611         surrounding insns when splitting.
38612         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38613         (*rotcl): Likewise.  Add zero_extract variant.
38614         (*ashrsi2_31): New insn_and_split.
38615         (*negc): Convert to insn_and_split.  Use treg_set_expr.
38616         (*zero_extend<mode>si2_disp_mem): Update comment.
38617         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38618         condition.
38619         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
38620         with surrounding insns when splitting.
38621         (any_treg_expr_to_reg): New insn_and_split.
38622         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38623         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38624         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38625         *zero_extract_2): New single bit zero extract patterns.
38626         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38627         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38628         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38629         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38630         set destination.
38631         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38632         register_operand for set source.
38634 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
38636         * i386.opt (prefetch_sse): New targetsave.
38637         * i386.c (ix86_function_specific_save): Save prefetch_sse.
38638         (ix86_function_specific_restore): Restore prefetch_sse and initialize
38639         ix86_cost/ix86_tune_cost.
38641 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38643         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38644         Support the JIT by using 0 as the language type.
38646 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
38648         PR target/64317
38649         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
38650         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38651         (mark_regno_live, process_bb_lives): Pass new parameter value to
38652         make_hard_regno_born.
38654 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38656         PR rtl-optimization/63637
38657         PR rtl-optimization/60663
38658         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38659         if elt->cost is MAX_COST for ASM_OPERANDS.
38660         (find_sets_in_insn): Fix up comment typo.
38661         (cse_insn): Don't set src_volatile for all non-volatile
38662         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38663         or with "memory" clobber.  Set elt->cost to MAX_COST
38664         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
38665         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38667 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38669         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38670         alternative 1.
38672 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38674         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38675         libgcc/config/i386/elf-lib.h.
38677 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38679         PR driver/64737
38680         * gcc.c (print_configuration): Don't print a blank line at the end
38681         here...
38682         (run_attempt): ... but here unstead.
38684         PR middle-end/64734
38685         * omp-low.c (scan_sharing_clauses): Don't ignore
38686         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38687         on target data/update constructs.
38689 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38691         PR target/50928
38692         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38693         (DEBUG_RELOAD): Removed define.
38694         (m32c_limit_reload_class): Enable traces with if DEBUG0.
38695         (m32c_function_arg): Added a type cast.
38696         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38697         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38698         * config/m32c/bitops.md (andqi3_16): Likewise.
38699         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38700         (push_a01_l): Likewise.
38702 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38704         PR jit/64721
38705         * main.c (main): Construct toplev instances with init_signals=true.
38706         * toplev.c (general_init): Add param "init_signals", and use it to
38707         conditionalize the calls to signal and host_hooks.extra_signals.
38708         (toplev::toplev): Add param "init_signals".
38709         (toplev::main): When invoking general_init, pass m_init_signals
38710         to control whether signal-handlers are installed.
38711         * toplev.h (toplev::toplev): Add param "init_signals".
38712         (toplev::m_init_signals): New field.
38714 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38716         PR jit/64722
38717         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38718         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38719         latter may be affected by the former (e.g. on i686).
38721 2015-01-23  Martin Liska  <mliska@suse.cz>
38723         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38724         false positive during profiledbootstrap.
38726 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38728         PR libgomp/64672
38729         * lto-opts.c (lto_write_options): Output non-explicit conservative
38730         -fno-openacc.
38731         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38732         (append_compiler_options): Pass -fopenacc through.
38734 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38736         PR libgomp/64707
38737         * lto-opts.c (lto_write_options): Output non-explicit conservative
38738         -fno-openmp.
38739         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38740         (append_compiler_options): Pass -fopenmp through.
38742 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38744         PR debug/64511
38745         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38746         GTY markup.
38748         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38749         * diagnostic.def (DK_ICE_NOBT): New kind.
38750         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38751         like DK_ICE, but never print backtrace.
38752         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38753         (internal_error_no_backtrace): New function.
38754         * gcc.c (execute): Use internal_error_no_backtrace instead of
38755         internal_error.
38757 2015-01-22  Jeff Law  <law@redhat.com>
38759         PR target/52076
38760         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38761         improve code density for small immediate to memory case.
38762         (insv): Better handle bitfield assignments when the field is
38763         being set to all ones.
38764         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38765         operand predicate.
38767 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38768             Jakub Jelinek  <jakub@redhat.com>
38770         PR middle-end/64729
38771         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38772         for !TARGET_LIBC_PROVIDES_SSP version and
38773         -fstack-protector-{all,strong,explicit} otherwise.
38774         * config/freebsd.h (LINK_SSP_SPEC): Handle
38775         -fstack-protector-{strong,explicit}.
38777 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
38778             H.J. Lu  <hongjiu.lu@intel.com>
38780         PR ipa/64694
38781         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38782         heap.
38784 2015-01-22  Wei Mi  <wmi@google.com>
38786         PR rtl-optimization/64557
38787         * dse.c (record_store): Call get_addr for mem_addr.
38788         (check_mem_read_rtx): Likewise.
38790 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
38792         * fold-const.c (const_binop): Add early return for non-tcc_binary.
38794 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
38796         * toplev.c (init_local_tick): Process the failure when read
38797         fails for random_seed.
38799         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38800         'pretty_name' to avoid memory overflow.
38802 2015-01-22  Richard Biener  <rguenther@suse.de>
38804         PR middle-end/64728
38805         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38806         abnormal coalescing on undefined SSA names.
38808 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
38810         PR target/64688
38811         PR target/64477
38812         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38813         for alternative 3.
38814         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38816 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
38818         PR middle-end/63325
38819         * fold-const.c (fold_checksum_tree): Don't include value of
38820         expr->decl_with_vis.symtab_node in the checksum.
38822 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38824         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38826 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
38828         PR driver/64690
38829         * gcc.c (insert_comments): New function.
38830         (try_generate_repro): Call it.
38831         (append_text): Removed.
38833 2015-01-22  Richard Biener  <rguenther@suse.de>
38835         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38836         with IL incompatible options.  Properly honor user optimize
38837         attributes.
38839 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
38841         PR rtl-optimization/64682
38842         * combine.c (distribute_notes): When moving a death note for
38843         a register that is set in the new I2, make sure to put it
38844         before that new I2.
38846 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
38848         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38849         not TARGET_DEFAULT.
38851 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
38853         PR debug/64511
38854         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38855         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38856         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38858         PR sanitizer/64706
38859         * doc/invoke.texi (-fsanitize=vptr): Document.
38861         PR rtl-optimization/62078
38862         * dse.c: Include cfgcleanup.h.
38863         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38864         anything call purge_all_dead_edges and cleanup_cfg at the end
38865         of the pass.
38867 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
38869         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38870         edges.
38872 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38874         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38875         decl attribute.
38877 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38878             Tejas Belagod <Tejas.Belagod@arm.com>
38880         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38881         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38882         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38883         Removed.
38885 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38886             Tejas Belagod <Tejas.Belagod@arm.com>
38888         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38889         (aarch64_reverse_mask): New decls.
38890         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38891         (insn_count): New mode_attr.
38892         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38893         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38894         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38895         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38896         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38897         (aarch64_simd_st4): New patterns.
38898         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38899         (aarch64_reverse_mask): New functions.
38901 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38903         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38904         Declare.
38905         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38906         addressing modes for BE.
38907         (aarch64_print_operand): Add 'R' specifier.
38908         (aarch64_simd_disambiguate_copy): Delete.
38909         (aarch64_simd_emit_reg_reg_move): New function.
38910         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38911         in define_splits for structural moves.
38912         (mov<mode>): Use less restrictive predicates.
38913         (*aarch64_mov<mode>): Simplify and only allow for LE.
38914         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38916 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38918         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38920 2015-01-21  Richard Henderson  <rth@redhat.com>
38922         PR target/64669
38923         * ccmp.c (used_in_cond_stmt_p): Remove.
38924         (expand_ccmp_expr): Don't use it.
38926 2015-01-21  Nick Clifton  <nickc@redhat.com>
38928         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38929         PARALLELs.
38931 2015-01-21  Richard Biener  <rguenther@suse.de>
38933         PR middle-end/64313
38934         * tree-core.h (builtin_info, builtin_info_type): Turn from
38935         an object with two arrays into an array of an object with
38936         decl and two flags, implicit_p and declared_p.
38937         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38938         set_builtin_decl, set_builtin_decl_implicit_p,
38939         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38940         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38941         * builtins.c (builtin_info): Adjust.
38942         * gimplify.c (gimplify_addr_expr): References to builtins
38943         that have been declared by the user makes them eligible for
38944         use by the compiler.  Call set_builtin_decl_implicit_p on them.
38946 2015-01-20  Jeff Law  <law@redhat.com>
38948         PR target/59946
38949         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38950         allow pc-relative addresses in operand predicates or constraints.
38952 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
38954         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38955         neon on aarch32 processors for stringops.
38957 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38959         PR ipa/63576
38960         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38962 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38964         PR lto/45375
38965         * ipa-inline.c: Include lto-streamer.h
38966         (report_inline_failed_reason): Output source file differences and
38967         flags on optimization/target node mismatch.
38968         (can_inline_edge_p): Consider caller to be the outer inline function;
38969         be less restrictive about matching opimize and optimize_size attributes.
38970         (inline_account_function_p): Break out from ...
38971         (inline_small_functions): ... here.
38972         * ipa-inline-transform.c (clone_inlined_nodes): Use
38973         inline_account_function_p.
38974         (inline_call): Use optimize attribution; use inline_account_function_p.
38975         (inline_transform): Use opt_for_fn.
38976         * ipa-inline.h (inline_account_function_p): Declare.
38978 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
38980         PR debug/64663
38981         * dwarf2out.c (decl_piece_node): Don't put bitsize into
38982         mode if bitsize <= 0.
38983         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38984         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38985         sizes and positions.
38987 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
38989         * config/nios2/nios2.c (nios2_asm_file_end): Implement
38990         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38991         needed.
38992         (TARGET_ASM_FILE_END): Define.
38994 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38996         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38997         (struct tune_params): Use the enum.
38998         * arm.c (arm_*_tune): Update.
38999         (arm_option_override): Update.
39001 2015-01-20  Richard Biener  <rguenther@suse.de>
39003         PR ipa/64684
39004         * ipa-reference.c (add_static_var): Inline ...
39005         (analyze_function): ... here after splitting out from ...
39006         (is_proper_for_analysis): ... this.
39008 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
39010         PR target/64149
39011         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39012         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39013         replace the conditional with it's true branch.
39014         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39015         (arm_lra_p): Remove.
39017 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
39019         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39021 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39023         * config/tilegx/mul-tables.c: Move symtab.h include after
39024         coretypes.h include.
39025         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39026         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39027         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39028         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39029         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39031 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
39033         PR bootstrap/64676
39034         Revert:
39035         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39037         PR rtl-optimization/64081
39038         * loop-iv.c (def_pred_latch_p): New function.
39039         (latch_dominating_def): Allow specific cases with non-single
39040         definitions.
39041         (iv_get_reaching_def): Likewise.
39042         (check_complex_exit_p): New function.
39043         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39044         with exits not executing on any iteration.
39046 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39048         PR lto/45375
39049         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39050         to set branch cost.
39052 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39054         PR lto/45375
39055         * i386.c (gate): Check flag_expensive_optimizations and
39056         optimize_size.
39057         (ix86_option_override_internal): Drop optimize_size condition
39058         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39059         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39060         MASK_PREFER_AVX128.
39061         (ix86_avx256_split_vector_move_misalign,
39062         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39063         * sse.md (all uses of TARGET_PREFER_AVX128): Add
39064         optimize_insn_for_speed_p check.
39066 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
39068         * config/mips/mips.h (FP_ASM_SPEC): New define.
39069         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39070         instead.
39072 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
39074         PR target/53988
39075         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39076         nullptr for insn when reaching the first insn.
39077         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39078         (sh_insn_operands_modified_between_p): Add nullptr check.
39079         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
39080         sign extending mem load if the insn contains any UNSPEC or
39081         UNSPEC_VOLATILE.
39083 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39085         * params.def (inline-unit-growth): Drop to 15%.
39086         * invoke.texi (inline-unit-growth): Document change.
39088 2015-01-19  Martin Liska  <mliska@suse.cz>
39090         PR ipa/64668
39091         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39092         function for second argument of OBJ_TYPE_REF.
39094 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39096         PR ipa/64218
39097         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39098         whether function is an alias.
39100 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39102         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39103         cases.
39105 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
39107         PR rtl-optimization/64671
39108         * lra-remat.c (operand_to_remat): Don't consider jump and call
39109         insns.
39111 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
39113         PR target/59828
39114         * config/rs6000/default64.h: Include rs6000-cpus.def.
39115         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39116         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39117         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39118         and POWER8.
39119         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39120         POWER8.
39121         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39122         pseudo-op to specify assembler dialect.
39124 2015-01-19  Martin Liska  <mliska@suse.cz>
39126         PR ipa/64664
39127         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39128         Handle safe potentially removed nodes during filtering.
39130 2015-01-19  Martin Liska  <mliska@suse.cz>
39132         * doc/extend.texi (no_icf): Add new attribute description.
39133         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39134         where the pass attempts to merge a function with no_icf attribute.
39136 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39138         PR target/64532
39139         * doc/md.texi (ARM Options): Document register constraints.
39141 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
39142             Andrew Pinski  <apinski@cavium.com>
39144         PR target/64304
39145         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39146         (ashl<mode>3): Don't expand if operands[2] is not constant.
39148 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39150         PR target/64448
39151         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39152         Match xor-and-xor RTL pattern.
39154 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39156         PR rtl-optimization/64081
39157         * loop-iv.c (def_pred_latch_p): New function.
39158         (latch_dominating_def): Allow specific cases with non-single
39159         definitions.
39160         (iv_get_reaching_def): Likewise.
39161         (check_complex_exit_p): New function.
39162         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39163         with exits not executing on any iteration.
39165 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
39167         * common.opt (fgraphite): Fix a typo.
39169 2015-01-19  Felix Yang  <felix.yang@huawei.com>
39171         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39172         pattern.
39173         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39174         uminp, smax_nanp, smin_nanp): New builtins.
39175         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39176         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39177         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39178         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39179         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39180         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39181         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39182         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39183         vpminnms_f32): Rewrite using builtin functions.
39185 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
39187         PR libgomp/64625
39188         * omp-low.c (offload_symbol_decl): Remove variable.
39189         (get_offload_symbol_decl): Remove function.
39190         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39191         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39192         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39193         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39194         BUILT_IN_GOACC_UPDATE don't pass it at all.
39196 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39198         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39199         callers.
39201 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39203         * ipa-chkp.c (chkp_produce_thunks): Add early param
39204         to split thunks production into two passes.  Keep
39205         'always_inline' function bodies after the first pass.
39206         (pass_data_ipa_chkp_early_produce_thunks): New.
39207         (pass_ipa_chkp_early_produce_thunks): New.
39208         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39209         chkp_produce_thunks signature.
39210         (make_pass_ipa_chkp_early_produce_thunks): New.
39211         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39212         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39213         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39215 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39217         * cgraph.c (cgraph_node::dump): Dump profile flags.
39219 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
39221         PR target/64652
39222         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39223         reg appear first in the parallel.
39225 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39227         * ipa-reference.c (set_reference_optimization_summary,
39228         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39229         disabled.
39230         (ignore_module_statics): New static var.
39231         (propagate_bits): If ipa-reference is disabled, do not look into local
39232         properties.
39233         (analyze_function): Disable analysis when ipa_reference is disabled.
39234         (generate_summary): Do not dump when reference is disabled;
39235         collect vars accessed from functions with ipa-reference disabled.
39236         (get_read_write_all_from_node): When ipa-reference is disabled, use the
39237         node flags.
39238         (gate): Enable for LTO.
39239         (ignore_edge_p): New function.
39240         (propagate): Skip functions w/o ipa-reference analysis.
39241         * optc-save-gen.awk: Handle optimize_debug correctly.
39242         * opth-gen.awk: Likewise.
39243         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39244         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39245         fira-share-save-slots, fira-share-spill-slots,
39246         fmodulo-sched-allow-regmoves, fpartial-inlining,
39247         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39248         ftracer, ftree-parallelize-loops, fassociative-math,
39249         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39250         Optimization
39251         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39252         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39253         Optimization.
39254         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39255         Fix for IPA.
39257 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39259         PR ipa/64378
39260         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39261         flag correctly.
39262         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39264 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
39266         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39267         Remove duplicate option listings.
39269 2015-01-18  Felix Yang  <felix.yang@huawei.com>
39271         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39272         (autofdo_source_profile::get_callsite_total_count,
39273         function_instance::get_function_instance_by_decl,
39274         string_table::get_index, string_table::get_index_by_decl,
39275         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39276         Fix comment typos. Reformatting and minor code rearrangement.
39278 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39280         * config/rs6000/rs6000.md (probe_stack): Delete.
39281         (probe_stack_address): New.
39283 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39285         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39286         to test for 32-bit ABIs, not !TARGET_POWERPC64.
39288 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39290         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39291         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
39292         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
39293         snafu.
39294         (rs6000_libcall_value): Use the new function.
39296 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
39298         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39300 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
39302         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39303         implement a more precise life analysis for it during backward scan.
39305 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
39307         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39309 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
39311         PR rtl-optimization/52773
39312         * calls.c (emit_library_call_value): When pushing arguments use
39313         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39314         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
39315         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39317 2015-01-17  Jeff Law  <law@redhat.com>
39319         PR rtl-optimization/32790
39320         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39321         not ZERO_EXTEND in SET_DESTs.
39323 2015-01-17  Alan Modra  <amodra@gmail.com>
39325         * cprop.c (do_local_cprop): Revert last change.
39327 2015-01-16  DJ Delorie  <dj@redhat.com>
39328             Nick Clifton  <nickc@redhat.com>
39330         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39331         (addhi3_real): Likewise.  Fix [HL+0] syntax.
39332         (subqi3_real): Likewise.
39333         (subhi3_real): Likewise.
39334         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
39335         (cbranchhi4_real): Likewise.
39336         (cbranchhi4_real_inverted): Likewise.
39337         (cbranchsi4_real_lt): Likewise.
39338         (cbranchsi4_real_ge): Likewise.
39339         (cbranchsi4_real_ge): Likewise.
39340         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39341         (sub<mode>3_virt): Likewise.
39342         (cbranchqi4_virt): Likewise.
39343         (cbranchhi4_virt): Likewise.
39344         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39345         always use '[reg+imm]' even when imm is zero.
39346         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39347         (rl78_general_operand): New.
39348         (rl78_nonimmediate_operand): New.
39349         (rl78_nonfar_operand): Use them.
39350         (rl78_nonfar_nonimm_operand): Likewise.
39351         (rl78_stack_based_mem): Fix.
39352         * config/rl78/constraints.md (Ibqi): New.
39353         (IBqi): New.
39354         (Wsa): New.
39355         (Wsf): New.
39356         (Cs1): Fix.
39357         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39358         (iorqi3): Likewise.
39359         (xorqi3): Likewise.
39360         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39362         * config/rl78/constrains (Qs8): New constraint.
39363         * config/rl78/rl78.c (rl78_flags_already_set): New function.
39364         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39365         * config/rl78/rl78-real.md (update_Z): New attribute.
39366         Update patterns to set it.
39367         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39368         shorter compare and branch sequence can be used.
39369         (cbranchhi4_real): Likewise.
39370         (cbranchhi4_real_inverted): Likewise.
39372         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39373         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39374         address space.
39375         * config/rl78/rl78.c (rl78_get_name_encoding): New.
39376         (rl78_option_override): Allow -mes0 only if C.
39377         (characterize_address): Support subregs of symbol_refs.
39378         (rl78_addr_space_address_mode): Move.  Add __near.
39379         (rl78_far_p): Likewise.
39380         (rl78_addr_space_pointer_mode): Likewise.
39381         (rl78_as_legitimate_address): Likewise.
39382         (rl78_addr_space_subset_p): Likewise.
39383         (rl78_addr_space_convert): Likewise.
39384         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39385         symbols with -mes0.
39386         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
39387         addressing.
39388         (rl78_alloc_physical_registers_op1): Change logic to prefer
39389         symbol[BC] addressing.
39390         (frodata_section): New.
39391         (rl78_asm_init_sections): Initialize it.
39392         (rl78_select_section): Put __far readonly symbols in .frodata.
39393         (rl78_make_type_far): New.
39394         (rl78_insert_attributes): Force all readonly symbols to be
39395         __far when -mes0.
39396         (rl78_asm_out_integer): New.
39397         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39398         * config/rl78/rl78.opt (-mes0): New.
39400         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39401         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39402         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39403         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39404         (rl78_saddr_p): New.
39405         (rl78_output_aligned_common): New.
39406         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39407         (rl78_handle_saddr_attribute): New.
39408         (rl78_handle_naked_attribute): New.
39409         (rl78_attribute_table): Add saddr.
39410         (rl78_print_operand_1): Don't print '!' on saddr operands.
39411         (rl78_print_operand_1): Strip encodings.
39412         (rl78_sfr_p): New.
39413         (rl78_strip_name_encoding): New.
39414         (rl78_attrlist_to_encoding): New.
39415         (rl78_encode_section_info): New.
39416         (rl78_asm_init_sections): New.
39417         (rl78_select_section): New.
39418         (rl78_output_labelref): New.
39419         (rl78_output_aligned_common): New.
39420         (rl78_asm_out_integer): New.
39421         (rl78_asm_ctor_dtor): New.
39422         (rl78_asm_constructor): New.
39423         (rl78_asm_destructor): New.
39425         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39426         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39427         (transcode_memory_rtx): Update.
39428         (rl78_expand_epilogue): Use A_REG instead of 0.
39430 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39432         * config/arm/arm-protos.h (struct tune_params): New field
39433         sched_autopref_queue_depth.
39434         * config/arm/arm.c (sched-int.h): Include header.
39435         (arm_first_cycle_multipass_dfa_lookahead_guard,)
39436         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39437         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39438         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39439         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39440         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39441         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39442         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39443         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
39444         * config/arm/t-arm (arm.o): Update.
39445         * haifa-sched.c (update_insn_after_change): Update.
39446         (rank_for_schedule): Use auto-prefetcher model, if requested.
39447         (autopref_multipass_init): New static function.
39448         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39449         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39450         variable for debug dumps.
39451         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39452         (autopref_multipass_dfa_lookahead_guard): New global function that
39453         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39454         (init_h_i_d): Update.
39455         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39456         * sched-int.h (enum autopref_multipass_data_status): New const enum.
39457         (autopref_multipass_data_): Structure for auto-prefetcher data.
39458         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39459         (struct _haifa_insn_data:autopref_multipass_data): New field.
39460         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39461         (autopref_multipass_dfa_lookahead_guard): Declare.
39463 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39465         * rtlanal.c (get_base_term): Handle SCRATCH.
39467 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39469         * config/aarch64/aarch64.c
39470         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39471         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39472         * config/arm/arm.c
39473         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39474         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39476 2015-01-17  Alan Modra  <amodra@gmail.com>
39478         * cprop.c (do_local_cprop): Disallow replacement of fixed
39479         hard registers.
39481 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39483         PR target/62066
39484         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39485         early return 0.
39487 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39489         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39490         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39492 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39494         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39495         * config/arm/thumb1.md: ... Here.
39497 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39499         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39500         TImode for TARGET_32BIT.
39502 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39504         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39505         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39506         as ...
39507         (rs6000_abi_word_mode): New function.
39509 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39511         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39512         instead of UNITS_PER_WORD to describe the size of stack slots.
39514 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39516         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39517         as rs6000_promote_function_mode.  Move comment to there.
39518         (rs6000_promote_function_mode): New function.
39520 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39522         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39523         -mpowerpc64 is active.
39525 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39527         PR middle-end/64353
39528         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39529         virtuals on start.
39531 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39533         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39534         introduced in revision 219724.
39536 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39537             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39539         PR target/64263
39540         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39541         destination is not a GP reg.
39542         (*movdi_aarch64): Likewise.
39544 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
39546         PR target/64623
39547         * config/rs6000/default64.h: Revert ISA change.
39549 2015-01-16  Richard Biener  <rguenther@suse.de>
39551         PR middle-end/64614
39552         * tree-ssa-uninit.c: Include tree-cfg.h.
39553         (MAX_SWITCH_CASES): New define.
39554         (convert_control_dep_chain_into_preds): Handle switch statements.
39555         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39556         (normalize_one_pred_1): Do not split bit-manipulations.
39557         Record (x & CST).
39559 2015-01-16  Richard Biener  <rguenther@suse.de>
39561         PR tree-optimization/64568
39562         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39563         complex load rewriting for TARGET_MEM_REFs.
39565 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
39567         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39569 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
39571         PR target/64149
39572         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39573         variable.
39574         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39575         (aarch64_lra_p): Remove.
39577 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39579         PR target/64363
39580         * ipa-chkp.h (chkp_instrumentable_p): New.
39581         * ipa-chkp.c: Include tree-inline.h.
39582         (chkp_instrumentable_p): New.
39583         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39584         Fix processing of not instrumentable functions.
39585         (chkp_versioning): Use chkp_instrumentable_p. Warn about
39586         not instrumentable functions.
39587         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39588         chkp_instrumentable_p.
39589         * tree-inline.h (copy_forbidden): New.
39590         * tree-inline.c (copy_forbidden): Not static anymore.
39592 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39594         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39595         ptr1, ptr2 unused.
39597 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39599         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39600         type OP_OUT to OP_INOUT.
39602 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39604         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39605         (high x) y) to y if x and y have the same base.
39607 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39609         * config/arm/cortex-a57.md: New.
39610         * config/aarch64/aarch64.md: Include it.
39611         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39612         * config/aarch64/aarch64-tune.md: Regenerate.
39614 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
39616         PR target/64015
39617         * ccmp.c (expand_ccmp_next): New function.
39618         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39619         and compare insn sequence.
39620         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39621         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39622         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39623         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39624         (*ccmp_ior): Changed to ccmp_ior<mode>.
39625         (cmp<mode>): New pattern.
39626         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39627         parameters.
39628         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39630 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
39632         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39633         _mm256_bsrli_epi128): New.
39634         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39636 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39638         * expmed.c (store_bit_field_using_insv): Improve warning message.
39639         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39641 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39643         PR rtl-optimization/64011
39644         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39645         there is partial overflow.
39647 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39649         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39650         prototype.
39651         (nds32_expand_epilogue_v3pop): Likewise.
39652         * config/nds32/nds32.md (sibcall): Define this for sibling call
39653         optimization.
39654         (sibcall_register): Likewise.
39655         (sibcall_immediate): Likewise.
39656         (sibcall_value): Likewise.
39657         (sibcall_value_register): Likewise.
39658         (sibcall_value_immediate): Likewise.
39659         (sibcall_epilogue): Likewise.
39660         (epilogue): Pass false to indicate this is not a sibcall epilogue.
39661         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39662         (nds32_expand_epilogue_v3pop): Likewise.
39664 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39666         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39667         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39668         (return_internal): New.
39669         (return): Define this named pattern.
39670         (simple_return): Define this named pattern.
39671         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39672         pattern instead of unspec_volatile_func_return.
39673         (nds32_expand_epilogue_v3pop): Likewise.
39674         (nds32_can_use_return_insn): New function.
39676 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39678         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39679         * config/nds32/nds32.md (pop25return): New.
39680         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39681         pop25return pattern.
39683 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39685         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39686         -mforbid-fp-as-gp, and -mex9 options.
39688 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39690         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39691         remove -mgp-direct option.
39693 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39695         * doc/invoke.texi (--param early-inlining-insns): Update default value.
39696         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39698 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39700         * ipa-inline.c (inline_small_functions): Work around hints
39701         cache issue.
39703 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
39705         PR target/59710
39706         * doc/invoke.texi (Option Summary): Document new Nios II
39707         -mgpopt= syntax.
39708         (Nios II Options): Likewise.
39709         * config/nios2/nios2.opt: Add -mgpopt= option support.
39710         Modify existing -mgpopt and -mno-gpopt options to be aliases.
39711         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39712         * config/nios2/nios2.c (nios2_option_override): Adjust
39713         -mgpopt defaulting.
39714         (nios2_in_small_data_p): Return true for explicit small data
39715         sections even with -G0.
39716         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39717         option choices.
39719 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39721         PR ipa/64612
39722         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39723         of comdat locals.
39724         (inline_call): Fix removal of aliases.
39726 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39728         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39729         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39730         * opts.c (common_handle_option): Add -fsanitize=vptr.
39731         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39732         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39733         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39734         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39735         (ubsan_expand_vptr_ifn): New prototype.
39736         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39737         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39738         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39739         expand_LOOP_VECTORIZED): Make argument nameless, remove
39740         ATTRIBUTE_UNUSED.
39741         (expand_UBSAN_VPTR): New function.
39742         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39743         in fn spec.
39744         (UBSAN_VPTR): New internal function.
39745         * sanopt.c (tree_map_traits): Renamed to ...
39746         (sanopt_tree_map_traits): ... this.
39747         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39748         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39749         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
39750         (maybe_optimize_ubsan_vptr_ifn): New function.
39751         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39752         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
39753         -fsanitize=vptr.
39754         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39755         internal calls like pure functions for aliasing, even when they
39756         have other side-effects that prevent making them ECF_PURE.
39757         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39758         (ubsan_expand_vptr_ifn): New function.
39760 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
39762         PR rtl-optimization/64110
39763         * stmt.c (parse_output_constraint): Process '^' and '$'.
39764         (parse_input_constraint): Ditto.
39765         * lra-constraints.c (process_alt_operands): Process the new
39766         constraints.
39767         * ira-costs.c (record_reg_classes): Process the new constraint
39768         '^'.
39769         * genoutput.c (indep_constraints): Add '^' and '$'.
39770         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39771         * doc/md.texi: Add description of the new constraints.
39773 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
39774             Bernd Schmidt  <bernds@codesourcery.com>
39775             Cesar Philippidis  <cesar@codesourcery.com>
39776             James Norris  <jnorris@codesourcery.com>
39777             Tom de Vries  <tom@codesourcery.com>
39778             Ilmir Usmanov  <i.usmanov@samsung.com>
39779             Dmitry Bocharnikov  <dmitry.b@samsung.com>
39780             Evgeny Gavrin  <e.gavrin@samsung.com>
39781             Jakub Jelinek  <jakub@redhat.com>
39783         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39784         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39785         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39786         New function types.
39787         * builtins.c: Include "gomp-constants.h".
39788         (expand_builtin_acc_on_device): New function.
39789         (expand_builtin, is_inexpensive_builtin): Handle
39790         BUILT_IN_ACC_ON_DEVICE.
39791         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39792         New macros.
39793         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39794         flag_openmp.
39795         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39796         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39797         i386/intelmic-offload.h.
39798         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39799         to libgomp and its dependencies.
39800         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39801         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39802         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39803         * config/ia64/hpux.h (LIB_SPEC): Likewise.
39804         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39805         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39806         * doc/generic.texi: Update for OpenACC changes.
39807         * doc/gimple.texi: Likewise.
39808         * doc/invoke.texi: Likewise.
39809         * doc/sourcebuild.texi: Likewise.
39810         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39811         GF_OMP_FOR_KIND_OACC_LOOP.
39812         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39813         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39814         GF_OMP_TARGET_KIND_OACC_UPDATE,
39815         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39816         Dump more data.
39817         * gimple.c: Update comments for OpenACC changes.
39818         * gimple.def: Likewise.
39819         * gimple.h: Likewise.
39820         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39821         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39822         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39823         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39824         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39825         appropriate place.
39826         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39827         * gimplify.c: Include "gomp-constants.h".
39828         Update comments for OpenACC changes.
39829         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39830         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39831         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39832         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39833         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39834         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39835         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39836         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39837         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39838         OMP_CLAUSE_SEQ.
39839         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39840         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39841         OMP_CLAUSE_SET_MAP_KIND.
39842         (gimplify_oacc_cache): New function.
39843         (gimplify_omp_for): Handle OACC_LOOP.
39844         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39845         OACC_DATA.
39846         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39847         OACC_EXIT_DATA, OACC_UPDATE.
39848         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39849         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39850         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39851         (gimplify_body): Consider flag_openacc next to flag_openmp.
39852         * lto-streamer-out.c: Include "gomp-constants.h".
39853         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39854         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39855         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39856         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39857         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39858         (BUILT_IN_ACC_ON_DEVICE): New builtins.
39859         * omp-low.c: Include "gomp-constants.h".
39860         Update comments for OpenACC changes.
39861         (struct omp_context): Add reduction_map, gwv_below, gwv_this
39862         members.
39863         (extract_omp_for_data, use_pointer_for_field, install_var_field)
39864         (new_omp_context, delete_omp_context, scan_sharing_clauses)
39865         (create_omp_child_function, scan_omp_for, scan_omp_target)
39866         (check_omp_nesting_restrictions, lower_reduction_clauses)
39867         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39868         Update for OpenACC changes.
39869         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39870         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39871         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39872         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39873         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39874         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
39875         OMP_CLAUSE_MAP_*.
39876         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39877         Handle GF_OMP_FOR_KIND_OACC_LOOP.
39878         (expand_omp_target, lower_omp_target): Handle
39879         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39880         GF_OMP_TARGET_KIND_OACC_UPDATE,
39881         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39882         GF_OMP_TARGET_KIND_OACC_DATA.
39883         (pass_expand_omp::execute, execute_lower_omp)
39884         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39885         flag_openmp.
39886         (offload_symbol_decl): New variable.
39887         (oacc_get_reduction_array_id, oacc_max_threads)
39888         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39889         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39890         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39891         (oacc_gimple_assign, oacc_initialize_reduction_data)
39892         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39893         functions.
39894         (is_targetreg_ctx): Remove function.
39895         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39896         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39897         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39898         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39899         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39900         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39901         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39902         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39903         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39904         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39905         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39906         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39907         * tree-core.h: Update comments for OpenACC changes.
39908         (enum omp_clause_map_kind): Remove.
39909         (struct tree_omp_clause): Change type of map_kind member from enum
39910         omp_clause_map_kind to unsigned char.
39911         * tree-inline.c: Update comments for OpenACC changes.
39912         * tree-nested.c: Likewise.  Include "gomp-constants.h".
39913         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39914         (convert_tramp_reference_stmt, convert_gimple_call): Update for
39915         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39916         OMP_CLAUSE_SET_MAP_KIND.
39917         * tree-pretty-print.c: Include "gomp-constants.h".
39918         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39919         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39920         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39921         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39922         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39923         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
39924         instead of OMP_CLAUSE_MAP_*.
39925         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39926         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39927         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39928         * tree-streamer-in.c: Include "gomp-constants.h".
39929         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39930         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
39931         * tree-streamer-out.c: Include "gomp-constants.h".
39932         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39933         OMP_CLAUSE_MAP_*.
39934         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39935         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39936         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39937         * tree.c (omp_clause_num_ops): Update accordingly.
39938         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39939         Likewise.
39940         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39941         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39942         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39943         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39944         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39945         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39946         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39947         (OMP_CLAUSE_SET_MAP_KIND): New macro.
39948         * varpool.c (varpool_node::get_create): Consider flag_openacc next
39949         to flag_openmp.
39950         * config/i386/intelmic-offload.h: New file.
39951         * config/nvptx/offload.h: Likewise.
39953 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39955         * explow.h: Remove duplicate contents.
39956         * dojump.h: Likewise.
39958 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
39960         * arm.c (arm_xgene_tune): Add default initializer for instruction
39961         fusion.
39963 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39965         PR ipa/64068
39966         PR ipa/64559
39967         * ipa.c (symbol_table::remove_unreachable_nodes):
39968         Do not put abstract origins into boundary.
39970 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
39972         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39973         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39975 2015-01-15  Steve Ellcey  <sellcey@mips.com>
39977         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39978         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39979         builtins.def, and chkp-builtins.def.
39981 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
39983         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39984         ISA 2.7 (POWER8).
39986 2015-01-15  Richard Biener  <rguenther@suse.de>
39988         PR tree-optimization/61743
39989         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39990         information on PHIs for some simple cases.
39992 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39994         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39995         Include xgene1.md.
39996         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39997         * config/arm/arm-cores.def (xgene1): New entry.
39998         * config/arm/arm-tables.opt: Regenerate.
39999         * config/arm/arm-tune.md: Regenerate.
40000         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40002 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40004         * tree-if-conv.c: Include hash-map.h.
40005         (aggressive_if_conv): New variable.
40006         (fold_build_cond_expr): Add simplification of non-zero condition.
40007         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40008         destination block is not always executed.
40009         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40010         than two predecessors if AGGRESSIVE_IF_CONV is true.
40011         (if_convertible_stmt_p): Fix commentary.
40012         (all_preds_critical_p): New function.
40013         (has_pred_critical_p): New function.
40014         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40015         BB can have more than two predecessors and all incoming edges can be
40016         critical.
40017         (predicate_bbs): Skip predication for loop exit block, use build2_loc
40018         to compute predicate for true edge.
40019         (find_phi_replacement_condition): Delete this function.
40020         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40021         Allow interchange PHI arguments if EXTENDED is false.
40022         Change check that block containing reduction statement candidate
40023         is predecessor of phi-block since phi may have more than two arguments.
40024         (phi_args_hash_traits): New helper structure.
40025         (struct phi_args_hash_traits): New type.
40026         (phi_args_hash_traits::hash): New function.
40027         (phi_args_hash_traits::equal_keys): New function.
40028         (gen_phi_arg_condition): New function.
40029         (predicate_scalar_phi): Add handling of phi nodes with more than two
40030         arguments, delete COND and TRUE_BB arguments, insert body of
40031         find_phi_replacement_condition to predicate ordinary phi nodes.
40032         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40033         delete call of find_phi_replacement_condition and invoke
40034         predicate_scalar_phi with two arguments.
40035         (insert_gimplified_predicates): Add assert that non-predicated block
40036         don't have statements to insert.
40037         (ifcvt_split_critical_edges): New function.
40038         (ifcvt_split_def_stmt): Likewise.
40039         (ifcvt_walk_pattern_tree): Likewise.
40040         (stmt_is_root_of_bool_pattern): Likewise.
40041         (ifcvt_repair_bool_pattern): Likewise.
40042         (ifcvt_local_dce): Likewise.
40043         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40044         is copy of inner or outer loop force_vectorize field, invoke
40045         ifcvt_split_critical_edges, ifcvt_local_dce and
40046         ifcvt_repair_bool_pattern for aggressive if-conversion.
40048 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
40050         * config/aarch64/aarch64.md: Include xgene1.md.
40051         * config/aarch64/xgene1.md: New file.
40053 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40055         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40056         xgene1 (APM XGene-1) core definition.
40057         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40058         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40059         * doc/invoke.texi: Document -mcpu=xgene1.
40061 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40063         * dojump.h: New header file.
40064         * explow.h: Likewise.
40065         * expr.h: Remove includes.
40066         Move expmed.c prototypes to expmed.h.
40067         Move dojump.c prototypes to dojump.h.
40068         Move alias.c prototypes to alias.h.
40069         Move explow.c prototypes to explow.h.
40070         Move calls.c prototypes to calls.h.
40071         Move emit-rtl.c prototypes to emit-rtl.h.
40072         Move varasm.c prototypes to varasm.h.
40073         Move stmt.c prototypes to stmt.h.
40074         (saved_pending_stack_adjust): Move to dojump.h.
40075         (adjust_address): Move to explow.h.
40076         (adjust_address_nv): Move to emit-rtl.h.
40077         (adjust_bitfield_address): Likewise.
40078         (adjust_bitfield_address_size): Likewise.
40079         (adjust_bitfield_address_nv): Likewise.
40080         (adjust_automodify_address_nv): Likewise.
40081         * explow.c (expr_size): Move to expr.c.
40082         (int_expr_size): Likewise.
40083         (tree_expr_size): Likewise.
40084         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40085         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40086         * genemit.c (main): Generate includes statistics.h, real.h,
40087         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40088         stmt.h.
40089         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40090         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40091         explow.h, emit-rtl.h, stmt.h.
40092         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40093         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40094         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40095         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40096         emit-rtl.h, varasm.h, stmt.h.
40097         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40098         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40099         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40100         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40101         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40102         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40103         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40104         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40105         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40106         tm.h tree.h varasm.h vec.h wide-int.h.
40107         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40108         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40109         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40110         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40111         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40112         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40113         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40114         * loop-iv.c: Likewise.
40115         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40116         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40117         statistics.h stmt.h tree.h varasm.h wide-int.h.
40118         * lra-constraints.c: Likewise.
40119         * lra-eliminations.c: Likewise.
40120         * lra-lives.c: Likewise.
40121         * lra-remat.c: Likewise.
40122         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40123         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40124         statistics.h stmt.h tree.h varasm.h wide-int.h.
40125         * hw-doloop.c: Likewise.
40126         * ira-color.c: Likewise.
40127         * ira-emit.c: Likewise.
40128         * loop-doloop.c: Likewise.
40129         * loop-invariant.c: Likewise.
40130         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40131         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40132         statistics.h stmt.h tree.h varasm.h wide-int.h.
40133         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40134         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40135         statistics.h stmt.h tree.h varasm.h wide-int.h.
40136         * combine-stack-adj.c: Likewise.
40137         * cse.c: Likewise.
40138         * ddg.c: Likewise.
40139         * ifcvt.c: Likewise.
40140         * ira-costs.c: Likewise.
40141         * jump.c: Likewise.
40142         * lra-coalesce.c: Likewise.
40143         * lra-spills.c: Likewise.
40144         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40145         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40146         stmt.h varasm.h wide-int.h.
40147         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40148         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40149         varasm.h.
40150         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40151         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40152         statistics.h stmt.h varasm.h wide-int.h.
40153         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40154         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40155         varasm.h wide-int.h.
40156         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40157         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40158         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40159         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40160         statistics.h stmt.h.
40161         * config/tilepro/tilepro.c: Likewise.
40162         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40163         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40164         * config/pdp11/pdp11.c: Likewise.
40165         * config/xtensa/xtensa.c: Likewise.
40166         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40167         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40168         varasm.h.
40169         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40170         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40171         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40172         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40173         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40174         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40175         * rtl-chkp.c: Likewise.
40176         * tree-chkp-opt.c: Likewise.
40177         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40178         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40179         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40180         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40181         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40182         statistics.h stmt.h.
40183         * tree-vect-data-refs.c: Likewise.
40184         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40185         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40186         rtl.h statistics.h stmt.h varasm.h.
40187         * internal-fn.c: Likewise.
40188         * ipa-icf-gimple.c: Likewise.
40189         * lto-section-out.c: Likewise.
40190         * tree-data-ref.c: Likewise.
40191         * tree-nested.c: Likewise.
40192         * tree-outof-ssa.c: Likewise.
40193         * tree-predcom.c: Likewise.
40194         * tree-pretty-print.c: Likewise.
40195         * tree-scalar-evolution.c: Likewise.
40196         * tree-ssa-strlen.c: Likewise.
40197         * tree-vect-loop.c: Likewise.
40198         * tree-vect-patterns.c: Likewise.
40199         * tree-vect-slp.c: Likewise.
40200         * tree-vect-stmts.c: Likewise.
40201         * tsan.c: Likewise.
40202         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40203         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40204         stmt.h.
40205         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40206         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40207         statistics.h stmt.h varasm.h.
40208         * loop-unroll.c: Likewise.
40209         * ubsan.c: Likewise.
40210         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40211         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40212         stmt.h varasm.h.
40213         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40214         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40215         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40216         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40217         statistics.h stmt.h.
40218         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40219         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40220         statistics.h stmt.h varasm.h.
40221         * gimple-match-head.c: Likewise.
40222         * lto-cgraph.c: Likewise.
40223         * lto-section-in.c: Likewise.
40224         * lto-streamer-in.c: Likewise.
40225         * lto-streamer-out.c: Likewise.
40226         * tree-affine.c: Likewise.
40227         * tree-cfg.c: Likewise.
40228         * tree-cfgcleanup.c: Likewise.
40229         * tree-if-conv.c: Likewise.
40230         * tree-into-ssa.c: Likewise.
40231         * tree-ssa-alias.c: Likewise.
40232         * tree-ssa-copyrename.c: Likewise.
40233         * tree-ssa-dse.c: Likewise.
40234         * tree-ssa-forwprop.c: Likewise.
40235         * tree-ssa-live.c: Likewise.
40236         * tree-ssa-math-opts.c: Likewise.
40237         * tree-ssa-pre.c: Likewise.
40238         * tree-ssa-sccvn.c: Likewise.
40239         * tree-tailcall.c: Likewise.
40240         * tree-vect-generic.c: Likewise.
40241         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40242         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40243         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40244         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40245         * varasm.c: Likewise.
40246         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40247         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40248         varasm.h.
40249         * init-regs.c: Likewise.
40250         * ira.c: Likewise.
40251         * omp-low.c: Likewise.
40252         * stack-ptr-mod.c: Likewise.
40253         * tree-ssa-reassoc.c: Likewise.
40254         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40255         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40256         varasm.h.
40257         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40258         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40259         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40260         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40261         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40262         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40263         * tree-ssa-phiopt.c: Likewise.
40264         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40265         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40266         * config/fr30/fr30.c: Likewise.
40267         * config/frv/frv.c: Likewise.
40268         * expr.c: Likewise.
40269         * final.c: Likewise.
40270         * optabs.c: Likewise.
40271         * passes.c: Likewise.
40272         * simplify-rtx.c: Likewise.
40273         * stmt.c: Likewise.
40274         * toplev.c: Likewise.
40275         * var-tracking.c: Likewise.
40276         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40277         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40278         * lower-subreg.c: Likewise.
40279         * postreload-gcse.c: Likewise.
40280         * ree.c: Likewise.
40281         * reginfo.c: Likewise.
40282         * store-motion.c: Likewise.
40283         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40284         fixed-value.h hashtab.h real.h stmt.h varasm.h.
40285         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40286         fixed-value.h hashtab.h statistics.h stmt.h.
40287         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40288         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40289         * except.c: Likewise.
40290         * explow.c: Likewise.
40291         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40292         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40293         varasm.h.
40294         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40295         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40296         * tree-ssa-structalias.c: Likewise.
40297         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40298         fixed-value.h insn-config.h real.h statistics.h.
40299         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40300         fixed-value.h insn-config.h real.h statistics.h stmt.h.
40301         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40302         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40303         * cfgbuild.c: Likewise.
40304         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40305         fixed-value.h real.h rtl.h statistics.h stmt.h.
40306         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40307         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40308         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40309         fixed-value.h real.h statistics.h stmt.h.
40310         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40311         fixed-value.h real.h statistics.h stmt.h varasm.h.
40312         * cprop.c: Likewise.
40313         * modulo-sched.c: Likewise.
40314         * postreload.c: Likewise.
40315         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40316         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40317         statistics.h stmt.h varasm.h.
40318         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40319         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40320         rtl.h statistics.h stmt.h varasm.h.
40321         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40322         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40323         varasm.h.
40324         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40325         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40326         varasm.h.
40327         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40328         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40329         varasm.h.
40330         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40331         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40332         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40333         function.h real.h statistics.h stmt.h varasm.h.
40334         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40335         insn-config.h real.h statistics.h stmt.h.
40336         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40337         statistics.h stmt.h.
40338         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40339         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40340         statistics.h stmt.h varasm.h.
40341         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40342         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40343         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40344         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40345         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40346         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40347         statistics.h stmt.h varasm.h.
40348         * ipa-polymorphic-call.c: Likewise.
40349         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40350         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40351         statistics.h stmt.h.
40352         * config/c6x/c6x.c: Likewise.
40353         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40354         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40355         statistics.h stmt.h varasm.h.
40356         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40357         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40358         stmt.h varasm.h.
40359         * ipa-split.c: Likewise.
40360         * tree-eh.c: Likewise.
40361         * tree-ssa-dce.c: Likewise.
40362         * tree-ssa-loop-niter.c: Likewise.
40363         * tree-vrp.c: Likewise.
40364         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40365         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40366         stmt.h.
40367         * config/nds32/nds32-fp-as-gp.c: Likewise.
40368         * config/nds32/nds32-intrinsic.c: Likewise.
40369         * config/nds32/nds32-isr.c: Likewise.
40370         * config/nds32/nds32-md-auxiliary.c: Likewise.
40371         * config/nds32/nds32-memory-manipulation.c: Likewise.
40372         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40373         * config/nds32/nds32-predicates.c: Likewise.
40374         * config/nds32/nds32.c: Likewise.
40375         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40376         fixed-value.h hashtab.h real.h statistics.h.
40377         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40378         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40379         * config/arm/arm.c: Likewise.
40380         * config/avr/avr.c: Likewise.
40381         * config/bfin/bfin.c: Likewise.
40382         * config/h8300/h8300.c: Likewise.
40383         * config/i386/i386.c: Likewise.
40384         * config/ia64/ia64.c: Likewise.
40385         * config/iq2000/iq2000.c: Likewise.
40386         * config/m32c/m32c.c: Likewise.
40387         * config/m32r/m32r.c: Likewise.
40388         * config/m68k/m68k.c: Likewise.
40389         * config/mcore/mcore.c: Likewise.
40390         * config/mep/mep.c: Likewise.
40391         * config/mips/mips.c: Likewise.
40392         * config/mn10300/mn10300.c: Likewise.
40393         * config/moxie/moxie.c: Likewise.
40394         * config/pa/pa.c: Likewise.
40395         * config/rl78/rl78.c: Likewise.
40396         * config/rx/rx.c: Likewise.
40397         * config/s390/s390.c: Likewise.
40398         * config/sh/sh.c: Likewise.
40399         * config/sparc/sparc.c: Likewise.
40400         * config/spu/spu.c: Likewise.
40401         * config/stormy16/stormy16.c: Likewise.
40402         * config/v850/v850.c: Likewise.
40403         * config/vax/vax.c: Likewise.
40404         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40405         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40406         * config/msp430/msp430.c: Likewise.
40407         * predict.c: Likewise.
40408         * value-prof.c: Likewise.
40409         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40410         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40411         * config/microblaze/microblaze.c: Likewise.
40412         * config/nios2/nios2.c: Likewise.
40413         * config/rs6000/rs6000.c: Likewise.
40414         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40415         insn-config.h real.h rtl.h statistics.h stmt.h.
40416         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40417         insn-config.h real.h statistics.h stmt.h.
40418         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40419         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40420         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40421         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40422         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40423         fixed-value.h real.h statistics.h stmt.h.
40424         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40425         fixed-value.h statistics.h stmt.h.
40426         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40427         stmt.h.
40429 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40431         * gengtype.c (create_user_defined_type): Workaround
40432         -Wmaybe-uninitialized false positives.
40433         * cse.c (fold_rtx): Likewise.
40434         * loop-invariant.c (gain_for_invariant): Likewise.
40436 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
40438         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40439         set the memory attributes in all cases but clear MEM_EXPR if need be.
40441 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40443         PR tree-optimization/64434
40444         * cfgexpand.c (reorder_operands): New function.
40445         (expand_gimple_basic_block): Insert call of reorder_operands if
40446         optimized is true.
40448 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
40450         * config/mips/micromips.md (*swp): Remove explicit parallel.
40451         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40452         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40453         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40454         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40455         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40456         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40457         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40458         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40459         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40460         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40461         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40462         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40463         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40464         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40465         (mips_wrdsp): Likewise.
40466         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40467         parallel.
40468         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40469         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40470         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40471         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40472         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40473         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40474         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40475         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40476         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40478 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40480         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40481         (mips_print_operand): Support 'y' to print exact log2 in decimal
40482         of a const_int.
40483         * config/mips/mips.h (ISA_HAS_LSA): New define.
40484         (ISA_HAS_DLSA): Likewise.
40485         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40486         * config/mips/predicates.md (const_immlsa_operand): New predicate.
40488 2015-01-15  Martin Liska  <mliska@suse.cz>
40490         PR target/64377
40491         * optc-save-gen.awk: Add support for array types.
40493 2015-01-15  Richard Biener  <rguenther@suse.de>
40495         PR middle-end/64365
40496         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40497         for MEM_REF access functions with the same base can never partially
40498         overlap.
40500 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
40502         * common.opt: New option -fstack-protector-explicit.
40503         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40504         (stack_protect_decl_phase): Handle stack_protect attribute for
40505         explicit stack protection requests.
40506         (expand_used_vars): Similarly.
40507         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40508         * doc/extend.texi: Add documentation for "stack_protect" attribute.
40509         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40511 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
40513         PR target/53988
40514         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40515         reg-reg copies.
40516         (sh_extending_set_of_reg): New struct.
40517         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40518         sh_remove_reg_dead_or_unused_notes): New Declarations.
40519         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40520         sh_find_extending_set_of_reg, sh_split_tst_subregs,
40521         sh_extending_set_of_reg::use_as_extended_reg): New functions.
40522         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40523         convert to insn_and_split and use new function sh_split_tst_subregs.
40525 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
40527         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40528         option.
40529         (Optimization Options): Move -fuse-ld documentation to...
40530         (Link Options): ...here.
40532 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40534         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40535         offsets.
40536         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40537         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40538         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40539         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40540         instead of ZR for the memory operand of LL/SC.
40541         (compare_and_swap_12, sync_add<mode>): Likewise.
40542         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40543         (sync_new_<optab>_12, sync_nand_12): Likewise.
40544         (sync_old_nand_12, sync_new_nand_12): Likewise.
40545         (sync_sub<mode>, sync_old_add<mode>): Likewise.
40546         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40547         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40548         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40549         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40550         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40551         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40552         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40553         * doc/md.texi (ZC): Update description.
40555 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40557         * builtins.c (expand_builtin_atomic_exchange): Remove error when
40558         memory model is CONSUME.
40559         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40560         expand_builtin_atomic_store): Change invalid memory model errors to
40561         warnings.
40562         (expand_builtin_atomic_clear): Change invalid model errors to warnings
40563         and issue warning for CONSUME.
40565 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
40567         * lto-cgraph: Update function comments for
40568         lto_symtab_encoder_encode_*.
40570 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40572         * Makefile.in (site.exp): Do not set ENABLE_LTO.
40574 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40576         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40577         * lto-cgraph.c (select_what_to_stream): Remove argument, use
40578         lto_stream_offload_p instead.
40579         * lto-streamer.h (select_what_to_stream): Remove argument.
40580         * passes.c (ipa_write_summaries): Likewise.
40581         * tree-pass.h (ipa_write_summaries): Likewise.
40583 2015-01-14  Richard Biener  <rguenther@suse.de>
40585         PR tree-optimization/59354
40586         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40587         groups larger than the slp group size as having gaps.
40589 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40591         PR middle-end/59448
40592         * builtins.c (get_memmodel): Promote consume to acquire always.
40594 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40596         PR target/64386
40597         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40598         V32HImode.
40600 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40602         PR target/64393
40603         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40604         Enable AVX512BW.
40605         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40606         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40607         AVX512VBMI, as it implies AVX512BW.
40609 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40611         PR target/64387
40612         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40613         (vec_unpacks_hi_v16sf): Ditto.
40615 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40617         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40618         is not available.
40620 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40622         * doc/invoke.texi (mapcs): Mention deprecation.
40623         (mapcs-frame): Likewise.
40625 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40627         PR target/64453
40628         * config/arm/arm.c (callee_saved_reg_p): Define.
40629         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40630         register is callee saved instead of !call_used_regs[reg].
40631         (thumb1_compute_save_reg_mask): Likewise.
40633 2015-01-14  Hale Wang  <hale.wang@arm.com>
40635         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40636         Cortex-M7.
40638 2015-01-14  Richard Biener  <rguenther@suse.de>
40640         PR lto/64415
40641         * tree-inline.c (insert_debug_decl_map): Check destination
40642         function MAY_HAVE_DEBUG_STMTS.
40643         (insert_init_debug_bind): Likewise.
40644         (insert_init_stmt): Remove redundant check.
40645         (remap_gimple_stmt): Drop debug stmts if the destination
40646         function has var-tracking assignments disabled.
40648 2015-01-14  Martin Liska  <mliska@suse.cz>
40650         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40651         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40653 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40655         PR target/64460
40656         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40657         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40659 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40661         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40662         level from an ARCH; do not inject the default.
40663         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40664         MIPS_ISA_LEVEL_SPEC.
40665         (MIPS_ISA_NAN2008_SPEC): Update comment.
40666         (BASE_DRIVER_SELF_SPECS): Likewise.
40667         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40668         MIPS_DEFAULT_ISA_LEVEL_SPEC.
40669         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40670         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40671         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40673 2015-01-14  Richard Biener  <rguenther@suse.de>
40675         PR tree-optimization/64493
40676         PR tree-optimization/64495
40677         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40678         assign the proper vectorized PHI to the inner loop exit PHIs.
40680 2015-01-14  Joey Ye  <joey.ye@arm.com>
40682         * config/arm/arm.c (arm_compute_save_reg_mask):
40683         Do not save lr in case of tail call.
40684         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40686 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
40688         * tree-vrp.c (check_array_ref): Emit more warnings
40689         for warn_array_bounds >= 2.
40690         * common.opt: New option -Warray-bounds=.
40691         * doc/invoke.texi: Document -Warray-bounds=.
40693 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
40695         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40696         (mforbid-fp-as-gp): Remove.
40697         (mex9): Remove.
40698         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40699         (nds32_symbol_load_store_p): Remove.
40700         (nds32_fp_as_gp_check_available): Clean up implementation.
40701         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40702         cases.
40703         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40704         fp-as-gp and ex9 cases.
40706 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40708         * tree-profile.c (init_ic_make_global_vars): Drop workaround
40709         for bintuils bug 14342.
40710         (init_ic_make_global_vars): Likewise.
40711         (gimple_init_edge_profiler): Likewise.
40712         (gimple_gen_ic_func_profiler): Likewise.
40714 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
40716         * ipa-inline.c (inline_small_functions): Swap the operands in
40717         enum.
40719 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40721         PR ipa/64481
40722         * ipa-inline-analysis.c (node_growth_cache): Remove.
40723         (initialize_growth_caches): Do not initialize it.
40724         (free_growth_caches): Do not free it.
40725         (do_estimate_growth): Rename to ...
40726         (estimate_growth): ... this one; drop growth cache code.
40727         (growth_likely_positive): Always go the heuristics way.
40728         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40729         (reset_edge_caches): Do not reset node growth.
40730         (heap_edge_removal_hook): Do not maintain cache.
40731         (inline_small_functions): Likewise; strenghten sanity check.
40732         (ipa_inline): Do not maintain caches.
40733         * ipa-inline.h (node_growth_cache): Remove.
40734         (do_estimate_growth): Remove to ...
40735         (estimate_growth): this one; remove inline version.
40736         (reset_node_growth_cache): Remove.
40738 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40740         PR ipa/64565
40741         * ipa-inline.c (inline_small_functions): Update callee keys after
40742         resolving speculation
40743         (inline_small_functions): Always check monotonicity of the queue.
40745 2015-01-13  Marek Polacek  <polacek@redhat.com>
40747         PR middle-end/64391
40748         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40750 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40752         PR rtl-optimization/64286
40753         * ree.c (combine_reaching_defs): Move part of comment earlier,
40754         remove !SCALAR_INT_MODE_P check.
40755         (add_removable_extension): Don't add vector mode
40756         extensions if all uses of the source register aren't the same
40757         vector extensions.
40759 2015-01-13  Renlin Li  <renlin.li@arm.com>
40761         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40762         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40764 2015-01-13  Martin Liska  <mliska@suse.cz>
40766         * ipa-icf.c (sem_function::equals_private): Call new functions
40767         cl_target_option_print_diff and cl_optimization_print_diff.
40768         * optc-save-gen.awk (cl_target_option_print_diff): New function.
40769         (cl_optimization_print_diff): Likewise.
40770         * opth-gen.awk: Likewise.
40772 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
40774         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40775         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40776         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40777         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40778         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40779         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40781 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40783         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40784         instead of src mode.
40786 2015-01-13  Richard Biener  <rguenther@suse.de>
40788         PR lto/64373
40789         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40790         DECL_CONTEXT.
40792 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40794         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40795         volatile mems.
40796         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40798 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40800         PR middle-end/63974
40801         * cfgexpand.c (expand_computed_goto): Don't call
40802         convert_memory_address here.
40804 2015-01-13  Richard Biener  <rguenther@suse.de>
40806         PR tree-optimization/64406
40807         * tree-loop-distibution.c (pass_loop_distribution::execute):
40808         Reset the SCEV hashtable if we distributed anything.
40810 2015-01-13  Richard Biener  <rguenther@suse.de>
40812         PR tree-optimization/64404
40813         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40814         SLP types for CSEd loads.
40816 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40818         PR tree-optimization/64436
40819         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40820         merge of two symbolic numbers for a bitwise OR to ...
40821         (perform_symbolic_merge): This. Also fix computation of the range and
40822         end of the symbolic number corresponding to the result of a bitwise OR.
40824 2015-01-13  Richard Biener  <rguenther@suse.de>
40826         PR tree-optimization/64568
40827         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40828         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40830 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40832         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40833         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40835 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40837         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40838         target-specific symbol_ref flag.
40839         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40840         resides in rodata section.
40841         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40842         (nds32_encode_section_info): New function.
40844 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40846         * config/nds32/nds32.md (call): Use pseudo instruction bal which
40847         clobbers TA_REGNUM if large code model is specified.
40848         (call_register): Likewise.
40849         (call_immediate): Likewise.
40850         (call_value): Likewise.
40851         (call_value_register): Likewise.
40852         (call_value_immediate): Likewise.
40854 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40856         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40857         (TARGET_CMODEL_MEDIUM): New macro.
40858         (TARGET_CMODEL_LARGE): New macro.
40859         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40860         code model setting in assembly code.
40862 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40864         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40865         Remove MASK_GP_DIRECT flag.
40866         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40867         one of the multilib default options.
40868         * config/nds32/nds32.opt (mgp-direct): Remove.
40869         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40870         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
40872 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40874         * config/nds32/nds32.opt (mcmodel): Add new option.
40875         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40876         to describe code model.
40878 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
40880         PR target/64479
40881         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40883 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
40885         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40886         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40887         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40888         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40889         __builtin_sh_set_fpscr.
40891 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40893         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40894         after a funtion name just to indicate it is a function.
40895         ([-fsanitize-undefined-trap-on-error]): Likewise.
40896         ([-fdbg-cnt=]): Likewise.
40897         ([-mmemcpy]): Likewise.
40898         ([-mflush-func]): Likewise.
40899         ([-msynci]): Likewise.
40901 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40903         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40904         example.
40906 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
40908         PR tree-optimization/64563
40909         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40910         instead of != VR_VARYING.
40912         PR target/64513
40913         * config/i386/i386.c (ix86_expand_prologue): Add
40914         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40916         PR tree-optimization/64454
40917         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40918         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40919         for signed or [0, op1 - 1] for unsigned modulo.
40920         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40921         even if op1 does not satisfy integer_pow2p.
40923         PR other/64370
40924         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40926 2015-01-12  Jeff Law  <law@redhat.com>
40928         PR target/64461
40929         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40930         (trunchiqi2, truncsihi2): Similarly.
40932         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40933         rather than calling F.
40935 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40937         * tsan.c (instrument_expr): Use force_gimple_operand.
40938         Use may_be_nonaddressable_p instead of is_gimple_addressable.
40940 2015-01-12  Richard Biener  <rguenther@suse.de>
40942         PR tree-optimization/64530
40943         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40944         back dr1.
40946 2015-01-12  Richard Biener  <rguenther@suse.de>
40948         PR middle-end/64357
40949         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40950         latches properly.
40952 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40954         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40955         Cortex-A17 tuning parameters.
40956         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40958 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40960         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40961         * config/arm/arm.c (arm_macro_fusion_p): New function.
40962         (arm_macro_fusion_pair_p): Likewise.
40963         (TARGET_SCHED_MACRO_FUSION_P): Define.
40964         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40965         (ARM_FUSE_NOTHING): Likewise.
40966         (ARM_FUSE_MOVW_MOVT): Likewise.
40967         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40968         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40969         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40970         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40971         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40972         arm_cortex_a5_tune): Specify fuseable_ops value.
40974 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
40976         PR bootstrap/64561
40977         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40978         test for PIE with copy reloc.
40979         * configure: Regenerated.
40981 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40983         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40984         in gen_rtx_REG.
40985         (arm_tls_descseq_addr): Likewise.
40986         (arm_gen_movmemqi): Likewise.
40987         (arm_expand_epilogue_apcs_frame): Likewise.
40988         (arm_expand_epilogue): Likewise.
40989         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
40990         in gen_rtx_REG.
40992 2015-01-12  Martin Liska  <mliska@suse.cz>
40994         PR ipa/64550
40995         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40996         volatility for correct operands.
40998 2015-01-12  Martin Liska  <mliska@suse.cz>
41000         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41001         indication that a function is not leaf.
41002         (sem_function::compare_polymorphic_p): Likewise.
41004 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41006         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41007         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41008         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41009         fold-const.h, tree-check.h.
41011 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41013         PR ipa/63967
41014         PR ipa/64425
41015         * ipa-inline.c (compute_uninlined_call_time,
41016         compute_inlined_call_time): Use counts for extra precision when
41017         needed possible.
41018         (big_speedup_p): Fix formating.
41019         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41020         (relative_time_benefit): Remove.
41021         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41022         merge guessed and read profile paths.
41023         (inline_small_functions): Count only !optimize_size functions into
41024         initial size; be more lax about sanity check when profile is used;
41025         be sure to update inlined function profile when profile is read.
41027 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41029         PR ipa/63470
41030         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41031         cost when edge becomes direct.
41032         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41033         is resolved or when introducing new speculation.
41035 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
41037         PR ipa/64551
41038         PR ipa/64552
41039         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41040         '||' to fix typo issue.
41042         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41043         accept and return NULL.
41045 2015-01-12  Martin Liska  <mliska@suse.cz>
41047         * cgraph.c (cgraph_edge::remove_callee): Move function to header
41048         file for being inlined.
41049         (cgraph_set_edge_callee): Delete.
41050         (cgraph_edge::redirect_callee): Move function to header file
41051         for being inlined.
41052         (cgraph_edge::make_direct): Use new function.
41053         (cgraph_edge::dump_edge_flags): New function created from
41054         static dump_edge_flags function.
41055         (cgraph_node::dump): Use new function.
41056         (cgraph_edge::verify_count_and_frequency): New function created
41057         from verify_edge_count_and_frequency.
41058         (cgraph_edge::verify_corresponds_to_fndecl): New function created
41059         from verify_edge_corresponds_to_fndecl.
41060         (verify_edge_corresponds_to_fndecl): Delete.
41061         (cgraph_node::verify_node): Use new function.
41062         * cgraph.h (cgraph_edge::set_callee): New function.
41063         (cgraph_edge::dump_edge_flags): Likewise.
41064         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41066 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
41068         * ipa-utils.c (estimate_function_body_sizes): Do not
41069         free node params when called late with early=true.
41071 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
41073         * doc/md.texi (Instruction Patterns): Rewrite text for
41074         clarity.
41075         (Example): Likewise.
41077 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
41079         * doc/invoke.texi (Option Summary): Break long lines.
41080         [(-fdiagnostics-color)]: Put long literal in @smallexample
41081         instead of inline.
41082         [(-fsanitize-recover)]: Likewise.
41083         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41084         [(-ffast-math)]: Likewise.
41085         [(--param max-inline-insns-recursive)]: Likewise.
41086         [(--param max-inline-recursive-depth)]: Likewise.
41087         [(-mno-text-section-literals)]: Likewise.
41089 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
41091         * doc/install.texi: Update for libgomp being renamed from "GNU
41092         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41093         Runtime Library".
41094         * doc/sourcebuild.texi: Likewise.
41096 2015-01-10  Anthony Green  <green@moxielogic.com>
41098         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41099         mul.x availability for moxiebox configuration.
41101 2015-01-09  Anthony Green  <green@moxielogic.com>
41103         * config/moxie/moxie.md: Tabify assembly output.
41105 2015-01-09  Anthony Green  <green@moxielogic.com>
41107         * config/moxie/moxie.md (CC_REG): Correct register definition.
41109 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
41111         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41112         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
41113         of log files.
41115 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41117         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41119 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
41120             Jakub Jelinek  <jakub@redhat.com>
41122         PR middle-end/64412
41123         * lto-streamer.h (lto_stream_offload_p): New declaration.
41124         * lto-streamer.c (lto_stream_offload_p): New variable.
41125         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41126         at the same time as section_name_prefix.
41127         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41128         if lto_stream_offload_p.
41129         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41130         stream TREE_TARGET_OPTION if lto_stream_offload_p.
41131         (write_ts_function_decl_tree_pointers): Don't
41132         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41133         * tree-streamer-in.c (unpack_value_fields): Don't stream
41134         TREE_TARGET_OPTION in if ACCEL_COMPILER.
41135         (lto_input_ts_function_decl_tree_pointers): Don't stream
41136         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41137         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41138         instead of section_name_prefix string comparisons.
41140 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
41142         PR rtl-optimization/64536
41143         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41144         tablejumps.
41146 2015-01-09  Michael Collison  <michael.collison@linaro.org>
41148         PR tree-optimization/64322
41149         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41150         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41152 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41154         PR rtl-optimization/64539
41155         * regcprop.c (kill_clobbered_values): Factor out of ...
41156         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
41157         instead of note_stores with kill_clobbered_value.
41159 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41161          * ginclude/unwind-arm-common.h: Revert previous commit.
41163 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41165         * config.gcc (arm*-*-freebsd*): New configuration.
41166         * config/arm/freebsd.h: New file.
41167         * config.host: Add extra components for arm*-*-freebsd*.
41168         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41169         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41171 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41173         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41174         for -mcpu=e6500.
41175         * config/rs6000/t-rtems: Add e6500 multilibs.
41177 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41179         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41180         MPC8540.
41182 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41184         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41185         MULTILIB_EXCEPTIONS.
41187 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41189         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41190         MULTILIB_EXCEPTIONS.
41192 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41194         * config/arm/t-rtems-eabi: Rename to...
41195         * config/arm/t-rtems: ...this.
41196         * config/arm/rtems-eabi.h: Rename to...
41197         * config/arm/rtems.h: ...this.
41198         * config.gcc (arm*-*-rtems*): Reflect changes above.
41200 2015-01-09  Richard Biener  <rguenther@suse.de>
41202         PR tree-optimization/64410
41203         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41204         on the LHS.
41205         (execute_update_addresses_taken): Deal with that.
41206         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41207         loads/stores for complex variables.
41209 2015-01-09  Martin Liska  <mliska@suse.cz>
41211         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41212         name comparison.
41213         (func_checker::compare_memory_operand): New function.
41214         (func_checker::compare_operand): Split case to newly
41215         added functions.
41216         (func_checker::compare_cst_or_decl): New function.
41217         (func_checker::compare_gimple_call): Identify
41218         memory operands.
41219         (func_checker::compare_gimple_assign): Likewise.
41220         * ipa-icf-gimple.h: New function.
41222 2015-01-09  Martin Liska  <mliska@suse.cz>
41224         PR ipa/64503
41225         * sreal.c (sreal::dump): Change unsigned format to signed for
41226         m_exp value.
41227         (sreal::to_double): Replace exp2 with scalbln.
41229 2015-01-09  Martin Liska  <mliska@suse.cz>
41231         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41232         * ipa-icf.c (sem_function::equals_private): Add support for target and
41233         (sem_item_optimizer::merge_classes): Remove redundant function
41234         optimization flags comparison.
41235         * tree.h (target_opts_for_fn): New function.
41237 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41239         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41241 2015-01-09  Kito Cheng  <kito@0xlab.org>
41243         PR rtl-optimization/64348
41244         * lra-constraints.c (split_reg): Fix caller-save store/restore
41245         instruction generation.
41247 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
41249         PR gcov-profile/61790
41250         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41251         long long.  Fallback to int64_t if host doesn't have long long and
41252         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
41254 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41256         PR tree-optimization/63989
41257         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41258         from 1000 to 10000.
41259         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41260         (get_stridx): If we don't have a record for certain SSA_NAME,
41261         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41262         constant offset, call get_stridx_plus_constant.
41263         (get_stridx_plus_constant): New function.
41264         (zero_length_string): Don't use get_stridx here.
41266         PR target/55023
41267         PR middle-end/64388
41268         * dse.c (struct insn_info): Mention frame_read set also
41269         before reload for tail calls on some targets.
41270         (scan_insn): Revert 2014-12-22 change.  Set frame_read
41271         also before reload for tail calls if
41272         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
41273         instead of add_non_frame_wild_read for non-const/memset
41274         tail calls after reload.
41276 2015-01-08  Jason Merrill  <jason@redhat.com>
41278         * ubsan.c (do_ubsan_in_current_function): New.
41279         (pass_ubsan::gate): Use it.
41280         * ubsan.h: Declare it.
41281         * convert.c (convert_to_integer): Use it.
41283 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41285         PR target/64338
41286         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41287         compare_code when it is unconditionally overwritten afterwards.
41288         Use ix86_reverse_condition instead of reverse_condition.  Don't
41289         change code if *reverse_condition* returned UNKNOWN and don't
41290         swap ct/cf and negate diff in that case.
41292 2015-01-08  Mike Stump  <mikestump@comcast.net>
41294         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41295         (pass_tsan_O0::gate): Likewise.
41296         * extend.texi (Function Attributes): Add no_sanitize_thread
41297         documentation.
41299 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
41301         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41302         for registering builtins.
41303         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41304         add -fopenmp to the argv_obstack used when invoking
41305         compile_for_target.
41307         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41308         add "-m32" or "-m64" to argv_obstack.
41309         (generate_host_descr_file): Likewise, when invoking host_compiler.
41310         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41311         ld.
41313 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41315         * config/sh/sh-mem.cc: Use constant as second operand when emitting
41316         tstsi_t insns.
41318 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41320         PR target/55212
41321         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41322         constant load if constant operand fits into I08.
41324 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41326         PR sanitizer/64336
41327         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41328         and TREE_THIS_VOLATILE for MEM_REFs.
41329         (build5_stat): Fix up initialization of TREE_READONLY and
41330         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41332 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
41334         PR target/64533
41335         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41336         of r for the second alternative of the destination operand.
41338 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
41340         PR target/36557
41341         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41343 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41345         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41346         keywords.
41347         ([-fivar-visibility], [-fvisibility]): Likewise.
41349 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41351         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41352         the file where @code, @command, etc is more appropriate.
41354 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
41356         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41357         of -mrecip= documentation.
41359 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
41361         PR target/64505
41362         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41363         correct reload handler if -m32 -mpowerpc64 is used.
41365 2015-01-06  Tom de Vries  <tom@codesourcery.com>
41367         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41369 2015-01-08  Christian Bruel  <christian.bruel@st.com>
41371         PR target/64507
41372         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41374 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41376         PR tree-optimization/63259
41377         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41378         if optab exists for 16bit byteswap.
41380 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
41382         * opts.c (common_handle_option): Add support for
41383         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41384         * doc/invoke.texi: Document -fno-sanitize=all,
41385         -f{,no-}sanitize-recover=all.  Document that
41386         -fsanitize=float-cast-overflow is not enabled
41387         by -fsanitize=undefined.  Fix up documentation
41388         of -f{,no-}sanitize-recover.
41390 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
41392         * config.gcc: Add Visium support.
41393         * configure.ac: Likewise.
41394         * configure: Regenerate.
41395         * doc/extend.texi (interrupt attribute): Add Visium.
41396         * doc/invoke.texi: Document Visium options.
41397         * doc/install.texi: Document Visium target.
41398         * doc/md.texi: Document Visium constraints.
41399         * common/config/visium: New directory.
41400         * config/visium: Likewise.
41402 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41404         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41405         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41407 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41409         * combine.c (combine_validate_cost): Do not count the cost of a
41410         split I2 twice.  Do not display it twice in the dump, either.
41412 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41414         Revert parts of r219199.
41415         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41416         <inttypes.h>.
41417         ([-Wtraditional]): Restore markup on <limits.h>.
41419 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
41421         PR c++/31397
41422         * doc/invoke.texi: Document -Wsuggest-override.
41424 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
41426         PR rtl-optimization/64287
41427         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41428         (process_options): Disable flag_ipa_ra if profiling.
41430 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
41432         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41434 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
41436         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41437         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41438         put under #if TARGET_LOOPS guard.
41440 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
41442         * config/i386/i386.c (output_387_binary_op): Use std::swap.
41444 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
41446         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41447         * rtl.h (refers_to_regno_p): Add overload.
41448         * cse.c: Use it.
41449         * bt-load.c: Likewise.
41450         * combine.c: Likewise.
41451         * df-scan.c: Likewise.
41452         * sched-deps.c: Likewise.
41453         * config/s390/s390.c: Likewise.
41454         * config/m32r/m32r.c: Likewise.
41455         * config/rs6000/spe.md: Likewise.
41456         * config/rs6000/rs6000.c: Likewise.
41457         * config/pa/pa.c: Likewise.
41458         * config/stormy16/stormy16.c: Likewise.
41459         * config/cris/cris.c: Likewise.
41460         * config/arc/arc.md: Likewise.
41461         * config/arc/arc.c: Likewise.
41462         * config/sh/sh.md: Likewise.
41463         * config/sh/sh.c: Likewise.
41464         * config/frv/frv.c: Likewise.
41466 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41468         PR sanitizer/64265
41469         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41470         call as cleanup of the whole body.
41471         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41472         * tsan.c (replace_func_exit): New function.
41473         (instrument_func_exit): Moved earlier.
41474         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41475         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41476         been found.
41477         (tsan_pass): Don't call instrument_func_exit.
41478         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41479         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41480         inlining.
41482         PR sanitizer/64344
41483         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41484         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41485         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
41486         if the result is integer_zerop, return NULL_TREE.
41487         * convert.c (convert_to_integer): Pass expr as ARG.
41489         PR tree-optimization/64465
41490         * tree-inline.c (redirect_all_calls): During inlining
41491         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41492         changed the stmt to a non-throwing call.
41494 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41496         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41497         etc markup throughout the file.
41499 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41501         Enable experimental TSAN support for Ada.
41502         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41504 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41506         PR tree-optimization/64494
41507         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41508         clear SSA_NAME_ANTI_RANGE_P flag.
41510 2015-01-05  Marek Polacek  <polacek@redhat.com>
41512         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41514 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41516         Update copyright years.
41518         * gcc.c (process_command): Update copyright notice dates.
41519         * gcov-dump.c: Ditto.
41520         * gcov.c: Ditto.
41521         * doc/cpp.texi: Bump @copying's copyright year.
41522         * doc/cppinternals.texi: Ditto.
41523         * doc/gcc.texi: Ditto.
41524         * doc/gccint.texi: Ditto.
41525         * doc/gcov.texi: Ditto.
41526         * doc/install.texi: Ditto.
41527         * doc/invoke.texi: Ditto.
41529         * auto-profile.c, auto-profile.h: Fix up Copyright line.
41531 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
41533         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41534         verb tense, etc.
41535         ([-fvtable-verify], [-fvtv-debug]): Likewise.
41536         ([-Wabi]): Likewise.
41537         ([-fmessage-length]): Likewise.
41538         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41539         ([-Wno-discarded-qualifiers]): Likewise.
41540         ([-Wnodiscarded-array-qualifiers]): Likewise.
41541         ([-Wno-virtual-move-assign]): Likewise.
41542         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41543         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41544         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41545         ([-fsanitize-undefined-trap-on-error]): Likewise.
41546         ([-floop-interchange]): Likewise.
41547         ([-ftree-coalesce-inlined-vars]): Likewise.
41548         ([-fvect-cost-model]): Likewise.
41549         ([-flto]): Likewise.
41550         ([--param]): Likewise.
41551         (Spec Files): Likewise.
41552         ([-mstrict-align]): Likewise.
41553         ([-mfix-cortex-a53-835769]): Likewise.
41554         ([-march], [-mtune]): Likewise.
41555         ([-mpic-register]): Likewise.
41556         ([-munaligned-access]): Likewise.
41557         ([-msp8]): Likewise.
41558         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41559         (AVR Built-in Macros): Likewise.
41560         ([-mpreferred-stack-boundary]): Likewise.
41561         ([-mtune-crtl]): Likewise.
41562         ([-mashf]): Likewise.
41563         ([-mmcu=]): Likewise.
41564         ([-minrt]): Likewise.
41565         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41566         ([-mupper-regs]): Likewise.
41567         ([-matomic-model]): Likewise.
41568         ([-mdiv]): Likewise.
41569         ([-mzdcbranch]): Likewise.
41570         ([-mdisable-callt]): Likewise.
41571         ([-msoft-float]): Likewise.
41572         ([-m8byte-align]): Likewise.
41573         ([-fstack-reuse]): Likewise.
41575 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41577         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41578         Fix markup, light copy-editing.
41579         ([-fauto-profile]): Rewrite to fix formatting and content
41580         problems.
41582 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41584         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41585         Copy-edit description.
41586         ([-fisolate-erroneous-paths-attribute]): Likewise.
41587         * common.opt (fisolate-erroneous-paths-dereference):
41588         Copy-edit description.
41589         (fisolate-erroneous-paths-attribute): Likewise.
41591 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41593         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41594         tidy grammar.
41596 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41598         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41599         ([-fvtv-debug]): Likewise.
41600         ([-Wc++-compat]): Likewise.
41601         ([-Wc++11-compat]): Likewise.
41602         ([-Wc++14-compat]): Likewise.
41603         ([-Wno-sized-deallocation]): Likewise.
41604         ([-femit-class-debug-always]): Likewise.
41605         ([-femit-struct-debug-detailed]): Likewise.
41606         ([-fno-keep-inline-dllexport]): Likewise.
41607         ([-fira-algorithm]): Likewise.
41608         ([-fira-region]): Likewise.
41609         ([-flra-remat]): Likewise.
41610         ([-fipa-ra]): Likewise.
41611         ([-fhoist-adjacent-loads]): Likewise.
41612         ([-fisolate-erroneous-paths-dereference]): Likewise.
41613         ([-fisolate-erroneous-paths-attribute]): Likewise.
41614         ([-ftree-switch-conversion]): Likewise.
41615         ([-ftree-tail-merge]): Likewise.
41616         ([-ftree-loop-if-convert]): Likewise.
41617         ([-ftree-loop-if-convert-stores]): Likewise.
41618         ([-ftree-loop-distribution]): Likewise.
41619         ([-ftree-loop-distribute-patterns]): Likewise.
41620         ([-flto-compression-level]): Likewise.
41621         ([-flto-report]): Likewise.
41622         ([-flto-report-wpa]): Likewise.
41623         ([-fuse-linker-plugin]): Likewise.
41624         ([-mfix-cortex-a53-835769]): Likewise.
41625         ([-mno-fix-cortex-a53-835769]): Likewise.
41626         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41627         explicit listing; add a note to the discussion indicating they
41628         exist.  Reorder table to group similar options.  Add missing
41629         @opindex entries.  Add @need commands throughout the table to
41630         allow it to be split across multiple pages.
41631         ([-m8bit-idiv]): Fix @opindex.
41632         ([-mavx256-split-unaligned-load]): Likewise.
41633         ([-mavx256-split-unaligned-store]): Likewise.
41634         ([-mstack-protector-guard]): Likewise.
41635         ([-mcpu=]): Likewise.
41636         ([-mcpu]): Likewise.
41637         ([-mpointer-size=]): Likewise.
41639 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
41641         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41642         instead of `m' constraint.  Likewise for unnamed movb comparison
41643         patterns using reg_before_reload_operand predicate.
41644         * config/pa/predicates.md (reg_before_reload_operand): Tighten
41645         predicate to reject register index and LO_SUM DLT memory forms
41646         after reload.
41648 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41650         * doc/invoke.texi (Option Summary): Fix spelling of
41651         -fdevirtualize-at-ltrans.
41652         ([-fdevirtualize]): Fix markup.
41653         ([-fdevirtualize-speculatively]): Fix typo.
41654         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
41655         implementor-speaky.
41656         * common.opt (fdevirtualize-at-ltrans): Likewise.
41657         * ipa-devirt.c: Fix typos in comments throughout the file.
41658         (ipa_devirt): Fix typos in format strings for dump output.
41660 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41662         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41663         discussion of defaults, light copy-editing.
41665 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41667         * tsan.c (instrument_expr): corrected previous checkin.
41669 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41671         Instrument bit field and unaligned accesses for TSAN.
41672         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41673         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41674         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41675         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41676         unaligned memory regions.
41678 2015-01-01  Anthony Green  <green@moxielogic.com>
41680         * config/moxie/predicates.md (moxie_general_movsrc_operand):
41681         Restrict move source register offsets to 16 bits.
41683 Copyright (C) 2015 Free Software Foundation, Inc.
41685 Copying and distribution of this file, with or without modification,
41686 are permitted in any medium without royalty provided the copyright
41687 notice and this notice are preserved.