S/390: Enable vrepi constants.
[official-gcc.git] / gcc / ChangeLog
blobc5b4fdab3d3e09f6ee7d3d90454d26a25d6091ef
1 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3         * config/s390/constraints.md ("jKK"): New constraint.
4         * config/s390/s390.c (tm-constrs.h): Include for
5         satisfies_constraint_*.
6         (s390_legitimate_constant_p): Allow jKK constants.  Use
7         satisfies_constraint_* also for the others.
8         (legitimate_reload_vector_constant_p): Likewise.
9         (print_operand): Allow h output modifier on vectors.
10         * config/s390/vector.md ("mov<mode>"): Add vrepi.
12 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
15         latter I->K.
17 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
20         strvg.
21         ("bswaphi2"): New pattern.
22         New splitter for HI reg-reg bswap.
24 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
26         PR driver/68029
27         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color 
28         if it is the first parameter.
30 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
32         PR tree-optimization/68577
33         * tree-vect-stmts.c (simple_integer_narrowing): New function.
34         (vectorizable_call): Restrict internal function handling
35         to NONE and NARROW cases, using simple_integer_narrowing
36         to test for the latter.  Add cost of narrowing operation
37         and insert it where necessary.
39 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
41         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
42         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
43         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
45 2015-12-01  Nathan Sidwell  <nathan@acm.org>
47         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
48         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
49         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
50         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
51         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
52         (init_output_initializer): Call write_var_marker.
53         (nvptx_output_aligned_decl): New.
54         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
56 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
58         * c-common.c (parse_optimize_options): Do not silently ignore
59         -fstrict-aliasing changes.
61 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
63         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
64         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
65         stream TYPE_ALIAS_SET.
66         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
67         stream TYPE_ALIAS_SET.
69 2015-12-01  Nathan Sidwell  <nathan@acm.org>
71         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
72         consider mode.
74 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
76         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
77         indirection for large and small code models.
78         (adjust_vperm): Likewise.
80 2015-12-01  Julian Brown  <julian@codesourcery.com>
81             Cesar Philippidis  <cesar@codesourcery.com>
82             James Norris  <James_Norris@mentor.com>
84         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
85         support.
86         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
87         (is_gimple_omp_oacc): Add support for above.
88         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
89         (omp_notice_variable): Diagnose undefined implicit uses of
90         use_device variables in offloaded regions.
91         (gimplify_scan_omp_clauses): Add host_data, use_device
92         support. Diagnose undefined mapping of use_device variables in
93         OpenACC clauses.
94         (gimplify_omp_workshare): Add host_data support.
95         (gimplify_expr): Likewise.
96         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
97         * omp-low.c (lookup_decl_in_outer_ctx)
98         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
99         host_data regions.
100         (scan_sharing_clauses): Support use_device.
101         (check_omp_nesting_restrictions): Support host_data.
102         (expand_omp_target): Support host_data.
103         (lower_omp_target): Skip over outer host_data regions when looking
104         up decls. Support use_device.
105         (make_gimple_omp_edges): Support host_data.
106         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
107         clause.
109 2015-12-01  Marek Polacek  <polacek@redhat.com>
111         PR middle-end/68582
112         * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
113         for VAR_DECLs.
115 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
117         PR tree-optimization/68474
118         * tree-call-cdce.c (use_internal_fn): Protect call to
119         gen_shrink_wrap_conditions.
121 2015-12-01  Christian Bruel  <christian.bruel@st.com>
123         PR target/68617
124         * config/arm/arm.opt (unaligned_access): Save.
125         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
126         * config/arm/arm.c (arm_option_override): Move unaligned_access setting
127         (arm_option_override_internal): ... here.
128         * config/arm/arm.h (TARGET_32BIT_P): New macro.
130 2015-12-01  Richard Biener  <rguenther@suse.de>
132         PR tree-optimization/68379
133         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
134         always base loads on the first used DR of a group.
135         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
136         Compute alignment of the first scalar element unconditionally.
138 2015-12-01  Richard Biener  <rguenther@suse.de>
140         PR middle-end/68590
141         * genmatch.c (struct capture_info): Add match_use_count.
142         (capture_info::walk_match): Increment match_use_count.
143         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
144         replacements in a save_expr if they occur more often than
145         in the original expression.
147 2015-12-01  Richard Biener  <rguenther@suse.de>
149         PR ipa/68470
150         * ipa-split.c (split_function): Handle main part not returning.
152 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
154         PR middle-end/68595
155         * tree-vect-stmts.c (vect_init_vector): Cast boolean
156         scalars to a proper value before building a vector.
158 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
160         * genattrtab.c (check_attr_test): Take an attr_desc instead of
161         an is_const flag.  Put the file_location argument first.
162         Update recursive calls.  Improve error messages.
163         (check_attr_value): Take a file location and use it instead
164         of attr->loc.  Improve error messages.  Update calls to
165         check_attr_test.
166         (check_defs): Update call to check_attr_value.
167         (make_canonical): Likewise.
168         (gen_attr): Likewise.
169         (main): Likewise.
170         (gen_insn_reserv): Update call to check_attr_test.
172 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
174         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
176 2015-12-01  Richard Biener  <rguenther@suse.de>
178         PR middle-end/68590
179         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
181 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
183         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
184         odr_type_p): Move to ...
185         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
186         odr_type_p): here; miscro-optimize.
188 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
190         PR tree-optimization/68529
191         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
192         Compute no-overflow information for control iv.
193         (number_of_iterations_lt, number_of_iterations_le): Add new param.
194         (number_of_iterations_cond): Pass new argument to above functions.
196 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
198         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
199         inlining -fno-strict-aliasing into -fstrict-aliasing body.
201 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
202             Sebastian Pop  <s.pop@samsung.com>
204         PR tree-optimization/68565
205         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
206         codegen_error.  Fail when rhs of division operations is integer_zerop.
207         (ternary_op_to_tree): Early return on codegen_error.
208         (unary_op_to_tree): Same.
209         (nary_op_to_tree): Same.
210         (gcc_expression_from_isl_expr_op): Same.
211         (gcc_expression_from_isl_expression): Same.
212         (graphite_create_new_loop): On codegen_error continue generating
213         wrong code.
214         (graphite_create_new_loop_guard): Same.
215         (build_iv_mapping): Same.
216         (graphite_create_new_guard): Same.
218 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
219             Sebastian Pop  <s.pop@samsung.com>
221         * graphite-isl-ast-to-gimple.c: Fix dump messages.
222         * graphite-scop-detection.c: Same.
223         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
225 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
227         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
228         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
229         (convert_local_omp_clauses): Likewise.
231 2015-11-30  Tom de Vries  <tom@codesourcery.com>
233         PR tree-optimization/46032
234         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
235         factored out of ...
236         (find_func_aliases_for_call): ... here.
237         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
238         BUILT_IN_GOMP_PARALLEL.
239         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
240         function.
242 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
244         PR tree-optimization/68501
245         * target.def (builtin_reciprocal): Replace the 3 arguments with
246         a gcall * one, adjust description.
247         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
248         with a gcall * one.
249         * targhooks.c (default_builtin_reciprocal): Likewise.
250         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
251         targetm.builtin_reciprocal even on internal functions, adjust
252         the arguments and allow replacing an internal function with normal
253         built-in.
254         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
255         with a gcall * one.  Handle internal fns too.
256         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
257         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
258         * doc/tm.texi (builtin_reciprocal): Document.
260 2015-11-30  Richard Biener  <rguenther@suse.de>
262         PR tree-optimization/68592
263         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
264         on the pattern def sequence.
266 2015-11-30  Nathan Sidwell  <nathan@acm.org>
268         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
269         (write_one_arg): Reorder parms, add 'sep' param.
270         (nvptx_write_function_decl): Rename to ...
271         (write_fn_proto): ... here.  Do name replacement. Emit linaer
272         comment marker. Deal with both decls and defns. Simplify argument
273         formatting.
274         (write_function_decl_and_comment): Delete.
275         (write_func_decl_from_insn): Rename to ...
276         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
277         (nvptx_record_fndecl): Call write_fn_proto.
278         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
279         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
280         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
282 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
284         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
285         (define_insn "*k<logic><mode>"): Use new iterator.
287 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
289         PR target/28115
290         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
291         (sparc_adjust_cost): Add missing space.
293 2015-11-30  Richard Biener  <rguenther@suse.de>
295         PR c/68162
296         * dwarf2out.c (gen_type_die_with_usage): Keep variant types
297         of arrays.
299 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
301         * tree-if-conv.c (struct ifc_dr): Add new tree
302         base_predicate field.
303         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
304         base ref, DR pairs and store base_predicate for write type DRs.
305         (ifcvt_memrefs_wont_trap): Guard checks with
306         -ftree-loop-if-convert-stores flag.
308 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
310         * cgraph.c (cgraph_node::make_local): No name is unique during
311         incremental linking.
312         * cgraph.h (can_be_discarded_p): Update comment; also common and
313         WEAK in named sections can be discarded; when doing incremental
314         link do not rely on resolution being the final one.
315         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
316         When symbol can be discarded, do not rely on resolution info.
317         * symtab.c (symtab_node::nonzero_address): Take into account that
318         symbol can be discarded.
319         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
320         definition correctly.
321         (function_and_variable_visibility): Do not set unique_name when
322         incrementally linking.
324 2015-11-29  Nathan Sidwell  <nathan@acm.org>
326         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
327         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
328         (ctrap<mode>): Use const0_operand.
330 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
332         * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
333         dump
335 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
337         PR target/28115
338         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
339         recog_memoized test for insn and check recog_memoized for dep_insn.
341 2015-11-28  Nathan Sidwell  <nathan@acm.org>
343         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
344         (FRAME_POINTER_CFA_OFFSET): Define.
345         (struct nvptx_args): Use 'tree' type.
346         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
348 2015-11-28  Tom de Vries  <tom@codesourcery.com>
350         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
352 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
354         * doc/invoke.texi (Option Summary): Use negative form of
355         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
356         sort alphabetically and re-justify.
358 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
360         PR rtl-optimization/68536
361         * lra.c (lra_emit_add): Add code for null base.
362         * lra-constraints.c (curr_insn_transform): Skip operators for
363         subreg reloads.
365 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
367         Revert
368         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
370         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
371         multiple_sets.
372         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
373         are not modified by the final modified insns in the basic blocks.
375 2015-11-27  Nathan Sidwell  <nathan@acm.org>
377         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
378         Don't declare.
379         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
380         (nvptx_maybe_convert_symbolic_operand): Simplify.
381         (nvptx_addr_space_from_address): Delete.
382         (nvptx_print_operand): Adjust 'A' case.
384 2015-11-27  Richard Biener  <rguenther@suse.de>
386         PR tree-optimization/68559
387         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
388         peeling for gap checks ...
389         * tree-vect-stmts.c (vectorizable_load): ... here and relax
390         for SLP.
391         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
392         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
394 2015-11-27  Nathan Sidwell  <nathan@acm.org>
396         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
397         declare.
398         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
399         (nvptx_record_fndecl): Don't return value, remove force
400         argument. Require fndecl.
401         (nvptx_record_libfunc): New.
402         (nvptx_record_needed_decl): Deteermine how to record decl here.
403         (nvptx_maybe_record_fnsym): New.
404         (nvptx_expand_call): Don't record libfuncs here,
405         (nvptx_maybe_convert_symbolic_operand): Use
406         nvptx_maye_record_fnsym.
407         (nvptx_assemble_integer): Reimplement with single switch.
408         (nvptx_output_call_insn): Register libfuncs here.
409         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
410         * config/nvptx/nvptx.md (expand_movdi): Don't call
411         nvptx_record_needed_decl.
413 2015-11-27  Richard Biener  <rguenther@suse.de>
415         PR tree-optimization/68553
416         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
417         generation for 1:1 permutations.
418         (vect_transform_slp_perm_load): Detect 1:1 permutations.
420 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
422         * gimple.h (nonbarrier_call_p): Declare.
423         * gimple.c (nonbarrier_call_p): New function.
424         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
425         Also increment call phase for ASMs with vdef and potential barrier
426         calls.
428 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
430         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
431         multiple_sets.
432         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
433         are not modified by the final modified insns in the basic blocks.
435 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
437         PR rtl-optimization/68506
438         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
439         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
440         blocks.
442 2015-11-27  Martin Liska  <mliska@suse.cz>
444         PR c++/68312
445         * vec.h (release_vec_vec): New function.
447 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
449         PR tree-optimization/68552
450         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
451         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
452         or whether v0 == v1.
454 2015-11-27  Martin Liska  <mliska@suse.cz>
456         * tree-ssa-uninit.c: Fix whitespaces in the source file.
457         The change is just automatical.
459 2015-11-27  Martin Liska  <mliska@suse.cz>
461         * tree-chkp.c (chkp_make_static_bounds): Release buffer
462         used for string.
464 2015-11-27  Martin Liska  <mliska@suse.cz>
466         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
467         Do not release memory for comp_alias_ddrs.
468         * tree-vect-loop.c (destroy_loop_vec_info): Release
469         the memory for all loop_vec_info.
471 2015-11-27  Martin Liska  <mliska@suse.cz>
473         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
474         of a local-scope vec.
475         (struct final_warning_record): Use auto_vec instead
476         of vec.
478 2015-11-27  Richard Biener  <rguenther@suse.de>
480         PR tree-optimization/68553
481         * tree-vect-slp.c (vect_get_mask_element): Remove.
482         (vect_transform_slp_perm_load): Implement in a simpler way.
484 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
486         PR rtl-optimization/67753
487         PR rtl-optimization/64164
488         * function.c (assign_parm_setup_block): Right-shift
489         upward-padded big-endian args when bypassing the stack slot.
491 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
493         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
494         `-mcompact-branches='.
495         (MIPS Options): Likewise.
497 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
499         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
501 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
503         * doc/install.texi (Prerequisites): Increase ISL requirement to
504         0.14 or 0.15.
506 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
508         * config/aarch64/arm_neon.h
509         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
510         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
511         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
512         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
513         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
514         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
515         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
516         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
517         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
518         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
519         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
520         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
522 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
524         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
525         (vqrdmlahq_s16, vqrdmlahq_s32): New.
526         (vqrdmlsh_s16, vqrdmlsh_s32): New.
527         (vqrdmlshq_s16, vqrdmlshq_s32): New.
529 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
531         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
532         ARM_FEATURE_QRDMX.
534 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
536         PR debug/53927
537         * tree-nested.c (finalize_nesting_tree_1): Append a field to
538         hold the frame base address.
539         * dwarf2out.c (gen_subprogram_die): Generate for
540         DW_AT_static_link a location description that computes the value
541         of this field.
543 2015-11-26  Tom de Vries  <tom@codesourcery.com>
545         revert:
546         2015-11-25  Tom de Vries  <tom@codesourcery.com>
548         * cfgloop.c (find_single_latch): New function, factored out of ...
549         (flow_loops_find): ... here.
550         (verify_loop_structure): Improve verification of loop->latch.
551         * cfgloop.h (find_single_latch): Declare.
552         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
554 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
556         * config/aarch64/aarch64-simd-builtins.def:
557         Add missing changes from r230962.
559 2015-11-26  Nathan Sidwell  <nathan@acm.org>
561         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
562         arg with name.  Don't deal with split regs.  Tweak formatting.
563         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
564         (nvptx_output_call_insn): Don't deal with split regs here.
566 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
568         * config/aarch64/aarch64-simd-builtins.def
569         (sqrdmlah, sqrdmlsh): New.
570         (sqrdmlah_lane, sqrdmlsh_lane): New.
571         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
573 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
575         * config/aarch64/aarch64-simd.md
576         (aarch64_sqmovun<mode>): Fix some white-space.
577         (aarch64_<sur>qmovun<mode>): Likewise.
578         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
579         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
580         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
581         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
582         (UNSPEC_SQRDMLSH): New.
583         (SQRDMLH_AS): New.
584         (rdma_as): New.
586 2015-11-26  Richard Biener  <rguenther@suse.de>
588         PR tree-optimization/66721
589         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
590         iteration cost earlier.  Re-do analysis without SLP when
591         vectorization using SLP fails and without has a chance to succeed.
593 2015-11-26  Richard Biener  <rguenther@suse.de>
595         * genmatch.c (dt_simplify::gen_1): For generic wrap all
596         multi-result-use captures in a SAVE_EXPR.
598 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
600         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
601         (TARGET_SIMD_RDMA): New.
603 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
605         * combine.c (subst): Do not return clobber of zero in widening mult
606         case.  Just return x unchanged if it is a no-op substitution.
608 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
610         PR target/68416
611         * config/i386/i386.h (enum reg_class): Add
612         bounds registers to ALL_REGS.
614 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
616         PR tree-optimization/68128
617         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
618         * gimplify.c: Include gimple-walk.h.
619         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
620         (omp_notice_variable): Set flags to n->value if n already
621         exists in target region, but we need to jump to do_outer.
622         (omp_shared_to_firstprivate_optimizable_decl_p,
623         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
624         functions.
625         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
626         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
627         not modified in the body.  Call omp_mark_stores for outer
628         contexts on OMP_CLAUSE_SHARED clauses if they could be written
629         in the body or on OMP_CLAUSE_LASTPRIVATE.
630         (gimplify_adjust_omp_clauses): Add body argument, call
631         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
632         Set OMP_CLAUSE_SHARED_READONLY
633         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
634         not modified in the body.  Call omp_mark_stores for outer
635         contexts on OMP_CLAUSE_SHARED clauses if they could be written
636         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
637         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
638         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
639         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
640         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
641         * tree-nested.c (convert_nonlocal_omp_clauses,
642         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
643         non-local vars or local vars referenced from nested routines.
644         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
645         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
646         TREE_READONLY, don't call use_pointer_for_field with non-NULL
647         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
649 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
651         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
652         about signed left shift stronger and clarify the cases when they're
653         broken.
655 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
656             Bernd Schmidt  <bschmidt@redhat.com>
658         PR rtl-optimization/67226
659         * calls.c (store_one_arg): Take into account
660         crtl->args.pretend_args_size when checking for overlap between
661         arg->value and argblock + arg->locate.offset during sibcall
662         optimization.
664 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
666         * config/aarch64/aarch64.md (cbranch<mode>4): Use
667         aarch64_fp_compare_operand.
668         (store_pairsf): Use aarch64_reg_or_fp_zero.
669         (store_pairdf): Likewise.
670         (cstore<mode>4): Use aarch64_fp_compare_operand.
671         (cmov<mode>6): Likewise.
672         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
674 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
675             Sebastian Pop  <s.pop@samsung.com>
677         PR tree-optimization/68453
678         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
679         not redirect edges already pointing to their destination.
680         (translate_isl_ast_node_for): Split edges after loops to create
681         basic blocks for close phi nodes.  Save merge points at the end of
682         a loop guard.
683         (translate_isl_ast_node_if): Save merge points at the end of the
684         if region.
685         (add_close_phis_to_outer_loops): New.
686         (add_close_phis_to_merge_points): New.
687         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
688         (copy_bb_and_scalar_dependences): Do not split basic blocks on
689         loop close phi locations.
691 2015-11-25  Jan Hubicka  <jh@suse.cz>
693         * ipa-visibility.c (cgraph_externally_visible_p,
694         varpool_node::externally_visible_p): When doing incremental linking,
695         hidden symbols may be still used later.
696         (update_visibility_by_resolution_info): Do not drop weak during
697         incremental link.
698         (function_and_variable_visibility): Fix formating.
699         * flag-types.h (lto_linker_output): Declare.
700         * common.opt 9flag_incremental_link): New flag.
702 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
704         * config/rs6000/constraints.md (wb constraint): New constraint for
705         ISA 3.0 d-form scalar addressing.
707         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
708         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
709         Altivec registers.  Add wb constraint for Altivec registers with
710         D-form addressing.  If we have ISA 3.0 d-form support, undo
711         secondary reload support for using FPR registers if we want to do
712         D-form addressing.
713         (rs6000_debug_reg_global): Likewise.
714         (rs6000_setup_reg_addr_masks): Likewise.
715         (rs6000_init_hard_regno_mode_ok): Likewise.
716         (rs6000_secondary_reload): Likewise.
717         (rs6000_preferred_reload_class): Likewise.
718         (rs6000_secondary_reload_class): Likewise.
720         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
721         constraint.
723         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
724         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
725         (f32_lm2): Likewise.
726         (f32_li2): Likewise.
727         (f32_sr2): Likewise.
728         (f32_sm2): Likewise.
729         (f32_si2): Likewise.
730         (f64_p9): Likewise.
731         (extendsfdf2_fpr): Likewise.
732         (mov<mode>_hardfloat): Likewise.
733         (mov<mode>_hardfloat32): Likewise.
734         (mov<mode>_hardfloat64): Likewise.
736         * doc/md.texi (RS/6000 constraints): Document wb constraint.
737         Fixup we constraint documentation.
739 2015-11-25  Tom de Vries  <tom@codesourcery.com>
741         * omp-low.c (pass_expand_omp_ssa::clone): New function.
742         * passes.def: Add pass_oacc_kernels pass group.
743         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
745 2015-11-25  Tom de Vries  <tom@codesourcery.com>
747         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
748         Declare.
749         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
750         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
751         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
752         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
754 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
756         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
757         TV_IPA_LTO_OUTPUT): New.
758         * lto-compress.c: Include timevar.h
759         (lto_end_compression, lto_end_uncompression): Add timers.
760         * langhooks.c: Include timevar.h
761         (lhd_append_data): Add timer.
763 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
765         * varasm.c (default_elf_asm_output_limited_string,
766         default_elf_asm_output_ascii): Replace fprintf by putc.
768 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
770         PR rtl-optimization/67954
771         * lra-constraints.c (curr_insn_transform): Add check on scratch
772         pseudo when change class to NO_REGS.  Add an assert.
774 2015-11-25  Nathan Sidwell  <nathan@acm.org>
776         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
777         constraint is 'n'.
778         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
779         number.
780         (nvptx_write_function_decl): Number args from 0.
781         (nvptx_declare_function_name): Likewise.
782         (nvptx_function_incoming_arg): Likewise.
783         (nvptx_output_call_insn): Correct formatting.
785 2015-11-25  David Sherwood  <david.sherwood@arm.com>
787         * optabs.def: Add new optabs fmax_optab/fmin_optab.
788         * internal-fn.def: Add new fmax/fmin internal functions.
789         * doc/md.texi: Add fmin and fmax patterns.
791 2015-11-25  Jason Merrill  <jason@redhat.com>
793         PR c++/68385
794         * tree.c (integer_zerop, integer_onep, integer_each_onep)
795         (integer_all_onesp, integer_minus_onep, integer_pow2p)
796         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
797         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
799 2015-11-25  Richard Biener  <rguenther@suse.de>
801         PR middle-end/68528
802         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
803         on stripped operands.
805 2015-11-25  Nathan Sidwell  <nathan@acm.org>
807         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
808         (nvptx_declare_function_name): Move assignments next to register
809         declarations, and process params here.
811 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
813         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
814         both the symbol and the "dot" symbol for function descriptors. Fix
815         inversion for rename of symbols with dollar sign.
817 2015-11-25  Tom de Vries  <tom@codesourcery.com>
819         * cfgloop.c (find_single_latch): New function, factored out of ...
820         (flow_loops_find): ... here.
821         (verify_loop_structure): Improve verification of loop->latch.
822         * cfgloop.h (find_single_latch): Declare.
823         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
825 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
827         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
828         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
829         (STARTFILE_SPEC): Use %(startfile_vtv).
830         (ENDFILE_SPEC): Use %(endfile_vtv).
831         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
832         ENDFILE_VTV_SPEC.
834         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
836 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
838         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
839         noce_can_store_speculate): Delete.
840         (noce_process_if_block): Don't try to handle single MEM stores.
841         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
842         * alias.c (memory_must_be_modified_in_insn_p): Delete.
844 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
846         PR rtl-optimization/68435
847         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
848         for conflicts between a, b and the set destinations.
850 2015-11-25  Richard Biener  <rguenther@suse.de>
852         PR tree-optimization/68517
853         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
854         Properly handle zero-sized types.
856 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
858         * ipa-inline-analysis.c: Include gimplify.h
859         (set_cond_stmt_execution_predicate,
860         set_switch_stmt_execution_predicate): Be sure to not leak locations
861         to function body.
863 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
865         PR target/67089
866         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
867         match_uaddsub_overflow): New functions.
868         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
870 2015-11-25  Richard Biener  <rguenther@suse.de>
872         PR tree-optimization/68492
873         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
874         op from scalars after operand swapping.
876 2015-11-25  Richard Biener  <rguenther@suse.de>
878         PR tree-optimization/68502
879         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
880         check that the step is a multiple of the type size.
882 2015-11-24  Michael Collison  <michael.collison@linaro.org>
884         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
885         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
886         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
888 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
890         * frame-header-opt.c (gate): Check for optimize > 0.
891         (has_inlined_assembly): New function.
892         (needs_frame_header_p): Remove is_leaf_function check,
893         add argument type check.
894         (callees_functions_use_frame_header): Add is_leaf_function
895         and has_inlined_assembly calls..
896         (set_callers_may_not_allocate_frame): New function.
897         (frame_header_opt): Add is_leaf_function call, add
898         set_callers_may_not_allocate_frame call.
899         * config/mips/mips.c (mips_compute_frame_info): Add check
900         to see if callee saved regs can be put in frame header.
901         (mips_expand_prologue): Add check to see if step1 is zero,
902         fix cfa restores when using frame header to store regs.
903         (mips_can_use_return_insn): Check to see if registers are
904         stored in frame header.
905         * config/mips/mips.h (machine_function): Add
906         callers_may_not_allocate_frame and
907         use_frame_header_for_callee_saved_regs fields.
909 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
911         PR rtl-optimization/68520
912         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
913         its bit was already set in BB_WITH.
915 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
917         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
918         double check that type is main variant.
919         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
920         variant.
921         (verify_type_variant): Verify that variants have no
922         TYPE_ALIAS_SET_KNOWN_P set
923         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
924         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
925         only for main variants; stream TYPE_ALIAS_SET as a bit.
926         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
927         accordingly.
929 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
931         * tree.c (make_vector_type): Properly compute canonical type of the
932         main variant.
933         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
934         a main variant.
936 2015-11-24  Nathan Sidwell  <nathan@acm.org>
938         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
939         VOIDmode, don't alter incoming mode.
940         (nvptx_split_reg_p): Delete.
941         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
942         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
943         maybe_split_mode calls.
944         (nvptx_print_operand): Use maybe_split_mode.
946 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
948         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
949         only for types where LTO sets them.
950         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
951         (make_vector_type): Likewise.
952         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
953         * tree.h (canonical_type_used_p): New inline.
954         * alias.c (get_alias_set): Handle structural equality for all
955         types that pass canonical_type_used_p.
956         (record_component_aliases): Look through all types with
957         record_component_aliases for possible pointers; sanity check that
958         the alias sets match.
960 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
962         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
964 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
966         * tree.c (free_node): New function.
967         (type_hash_canon): Use it.
968         * tree.h (free_node): Declare.
970 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
971             Michael Meissner  <meissner@linux.vnet.ibm.com>
973         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
974         (Fv2): New mode attribute to be used when ISA 2.07 instructions
975         are used on SF values, and ISA 2.06 instructions on DF values.
976         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
977         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
978         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
979         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
980         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
981         (fre<Fs>): Use <Fv2> instead of <Fv>.
982         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
983         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
984         (xsrdpi<mode>): Add support for the lround function.
985         (lround<mode>di2): Likewise.
986         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
987         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
988         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
989         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
991 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
992             Sebastian Pop  <s.pop@samsung.com>
994         PR tree-optimization/67984
995         * graphite-isl-ast-to-gimple.c (is_constant): New.
996         (get_rename): Call is_constant.
997         (get_new_name): Same.
999 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1000             Sebastian Pop  <s.pop@samsung.com>
1002         * graphite-dependences.c: Only include graphite.h.
1003         * graphite-isl-ast-to-gimple.c: Same.
1004         * graphite-optimize-isl.c: Same.
1005         * graphite-poly.c: Same.
1006         * graphite-scop-detection.c: Same.
1007         * graphite-sese-to-poly.c: Same.
1008         * graphite.c: Same.
1009         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1010         * graphite-poly.h: Same.
1011         * graphite-scop-detection.h: Same.
1012         * graphite.h: New.
1014 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
1016         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1017         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
1018         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1019         function already takes care of checking what it can emit.
1021 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1023         * doc/invoke.texi (-fpic): Add the AArch64 limit.
1024         (-fPIC): Add AArch64.
1026 2015-11-24  Tom de Vries  <tom@codesourcery.com>
1028         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1029         (pass_lim::execute): Allow to run outside pass_tree_loop.
1031 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
1033         * config/aarch64/aarch64.md (add<mode>3):
1034         Block early expansion into 2 add instructions.
1035         (add<mode>3_pluslong): New pattern to combine complex
1036         immediates into 2 additions.
1038 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1040         PR target/66217
1041         PR target/67677
1042         PR target/68332
1043         * config/rs6000/predicates.md (and_operand): Check that the operand
1044         is a const_int before calling rs6000_is_valid_and_mask.
1046 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1048         * config/aarch64/aarch64.md (*condjump): Rename to...
1049         (condjump): ... This.
1050         (*compare_condjump<mode>): New define_insn_and_split.
1051         (*compare_cstore<mode>_insn): Likewise.
1052         (*cstore<mode>_insn): Rename to...
1053         (cstore<mode>_insn): ... This.
1054         * config/aarch64/iterators.md (CMP): Handle ne code.
1055         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1057 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
1059         PR target/68497
1060         * config/i386/i386.c (output_387_binary_op): Fix assertion for
1061         -fno-checking case.
1063 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1065         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1066         (val_ssa_equiv_hash_traits::remove): Likewise.
1067         (pass_uncprop::execute): Adjust.
1069 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1071         * hash-map-traits.h (simple_hashmap_traits ::remove): call
1072         destructors on values that are being removed.
1073         * mem-stats.h (hash_map): Pass type of values to
1074         simple_hashmap_traits.
1075         * tree-sra.c (sra_deinitialize): Remove work around for hash
1076         maps not destructing values.
1077         * genmatch.c (sinfo_hashmap_traits): Adjust.
1078         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1080 2015-11-24  Richard Biener  <rguenther@suse.de>
1081             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1083         PR middle-end/68375
1084         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1085         bogus assertion.
1087 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
1089         PR target/68483
1090         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1091         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1092         returns false.
1093         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1094         whenever first is nelt or above.  Don't mask expected with
1095         2 * nelt - 1.
1097 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1099         PR c/68337
1100         * gimple-fold.c: Include ipa-chkp.h.
1101         (gimple_fold_builtin_memory_op): Don't fold call if we
1102         are going to instrument it and it may copy pointers.
1104 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
1105             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1107         PR rtl-optimization/68194
1108         PR rtl-optimization/68328
1109         PR rtl-optimization/68185
1110         * ree.c (combine_reaching_defs): Reject copy_needed case if
1111         copies_list is not empty.
1113 2015-11-24  Richard Biener  <rguenther@suse.de>
1115         PR middle-end/68221
1116         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1117         use mem_ref_offset.
1119 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1121         PR rtl-optimization/68381
1122         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1123         is poisoned.
1125 2015-11-23  Nick Clifton  <nickc@redhat.com>
1126             Jeff Law  <law@redhat.com>
1128         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1129         the source/dest of the target extension require a different number of
1130         hard registers.
1131         (combine_set_extension): Remove #if 0 code.
1133 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1134             Sebastian Pop  <s.pop@samsung.com>
1136         PR tree-optimization/68314
1137         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1138         * graphite-poly.c (new_scop): Remove original_schedule.
1139         (free_scop): Same.
1140         * graphite-poly.h (struct scop): Same.
1141         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1142         (build_pbb_scattering_polyhedrons): Add back.
1143         (build_scop_minimal_scattering): Remove.
1144         (build_scop_scattering): Add back.
1145         (build_scop_original_schedule): Remove.
1146         (build_poly_scop): Revert to only call build_scop_scattering.
1148 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1149             Sebastian Pop  <s.pop@samsung.com>
1151         PR tree-optimization/68493
1152         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1153         missing early return when codegen_error is set.
1155 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1156             Sebastian Pop  <s.pop@samsung.com>
1158         PR tree-optimization/68279
1159         * graphite-poly.c (new_scop): Remove poly_scop_p.
1160         * graphite-poly.h (struct scop): Same.
1161         (build_poly_scop): Declare.
1162         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1163         (cleanup_loop_iter_dom): New.
1164         (build_loop_iteration_domains): Early return when scev analysis fails.
1165         (create_pw_aff_from_tree): Same.
1166         (add_condition_to_pbb): Same.
1167         (add_conditions_to_domain): Same.
1168         (add_conditions_to_constraints): Same.
1169         (build_scop_iteration_domain): Same.
1170         (build_poly_scop): Same.  Do not initialize poly_scop_p.
1171         * graphite-sese-to-poly.h: Remove.
1172         * graphite.c: Do not include graphite-sese-to-poly.h.
1173         (graphite_transform_loops): Stop before code generation when
1174         build_poly_scop fails.
1175         * sese.c (scalar_evolution_in_region): Add fixme note about scev
1176         analysis.
1178 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1179             Sebastian Pop  <s.pop@samsung.com>
1181         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1182         Remove call to update_ssa.
1183         * sese.c (sese_insert_phis_for_liveouts): Same.
1185 2015-11-23  Marek Polacek  <polacek@redhat.com>
1187         PR tree-optimization/68455
1188         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1189         extract_range_from_multiplicative_op_1 on symbolic ranges.
1191 2015-11-23  Richard Henderson  <rth@redhat.com>
1193         * optabs.def (uaddv4_optab, usubv4_optab): New.
1194         * internal-fn.c (expand_addsub_overflow): Use them.
1195         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1197         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1198         to reversed operands.
1199         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1200         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1201         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1202         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1203         (*add<SWI>3_cconly_overflow_2): New.
1204         (*add<SWI>3_cc_overflow_2): New.
1205         (*addsi3_zext_cc_overflow_2): New.
1207 2015-11-23  Richard Biener  <rguenther@suse.de>
1209         PR tree-optimization/68465
1210         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1211         Also record equalities from multiple predecessor blocks if
1212         only one non-backedge exists.
1214 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1216         PR target/68363
1217         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1218         that are not INSN_P.
1220 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
1222         * config/aarch64/aarch64-builtins.c
1223         (aarch64_gimple_fold_builtin): Fold FMULX.
1225 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
1227         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1228         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
1229         after GCC header files and before graphite header files.
1230         * graphite-dependences.c: Same.
1231         * graphite-isl-ast-to-gimple.c: Same.
1232         * graphite-optimize-isl.c: Same.
1233         * graphite-poly.c: Same.
1234         * graphite-scop-detection.c: Same.
1235         * graphite-sese-to-poly.c: Same.
1236         * graphite.c: Same.
1238 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
1239             Jiong Wang  <jiong.wang@arm.com>
1241         PR tree-optimization/68317
1242         PR tree-optimization/68326
1243         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1244         final min and max are not infinity.
1246 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
1247             Richard Biener  <rguenther@suse.de>
1249         PR tree-optimization/68327
1250         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1251         compute vectype for non-relevant mask producers.
1252         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1253         relevance earlier.
1255 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1257         PR tree-optimization/68460
1258         * tree-parloops.c (gather_scalar_reductions): Also call
1259         free_stmt_vec_info_vec if simple_loop_info == NULL.
1261 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1263         * opts.c (finish_options): Allow -fsanitize-recover=address for
1264         userspace sanitization.
1265         * asan.c (asan_expand_check_ifn): Redefine recover_p.
1266         * doc/invoke.texi (fsanitize-recover): Update documentation.
1268 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1270         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1272 2015-11-23  Richard Biener  <rguenther@suse.de>
1274         PR tree-optimization/68445
1275         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1276         two different strides.
1278 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1280         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1281         * config/s390/s390.c (s390_check_symref_alignment): Use new
1282         symref flags, early abort on wrong alignment
1283         (s390_secondary_reload): Use new symref flags.
1284         (s390_encode_section_info): Likewise.
1285         * config/s390/predicates.md: Likewise.
1287 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1289         PR target/68390
1290         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1291         for indirect function call.
1293 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
1295         * config/aarch64/aarch64-simd.md
1296         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1297         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1298         (*aarch64_mulx_elt_to_64v2df): Likewise.
1299         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1300         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1301         (vmulx_lane_f64): Likewise.
1302         (vmulxq_lane_f32): Refactored & moved.
1303         (vmulxq_lane_f64): Likewise.
1304         (vmulx_laneq_f32): New.
1305         (vmulx_laneq_f64): Likewise.
1306         (vmulxq_laneq_f32): Likewise.
1307         (vmulxq_laneq_f64): Likewise.
1308         (vmulxs_lane_f32): Likewise.
1309         (vmulxs_laneq_f32): Likewise.
1310         (vmulxd_lane_f64): Likewise.
1311         (vmulxd_laneq_f64): Likewise.
1313 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
1315         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1316         In LTO we do not compute TYPE_CANONICAL of pointers.
1317         (gimple_canonical_types_compatible_p): Improve coments; sanity check
1318         that pointers do not have canonical type that would make us believe
1319         they are different.
1320         * alias.c (get_alias_set): Do structural type equality on pointers;
1321         enable pointer path for LTO; also glob pointer to vector with pointer
1322         to vector element; glob pointers and references for LTO; do more strict
1323         sanity checking about build_pointer_type returning the canonical type
1324         which is also the main variant.
1325         (record_component_aliases): When component type is pointer and we
1326         do LTO; record void_type_node alias set.
1328 2015-11-21  Nathan Sidwell  <nathan@acm.org>
1330         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1332         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1333         leading blank line.
1334         (write_func_decl_from_insn): Likewise.
1335         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1336         (nvptx_file_end): Likewise.
1337         (nvptx_function_end): Undent output.
1338         (nvptx_expand_call): Fix formatting.
1339         (nvptx_output_call_insn): Indent output.
1340         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1341         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1343 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
1345         PR debug/66432
1346         * tree-inline.c (copy_debug_stmt): If
1347         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1348         in decl_debug_args, don't call remap_gimple_op_r on it.
1350 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1352         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1353         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1354         Check that all record types are complete.
1355         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1356         compare alias sets for types w/o alias sets.
1358 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1360         * config/sparc/sparc.md (umulxhi_vis): Move around.
1361         (*umulxhi_sp64): Likewise.
1362         (umulxhi_v8plus): Likewise.
1363         (xmulx_vis): Likewise.
1364         (*xmulx_sp64): Likewise.
1365         (xmulx_v8plus): Likewise.
1366         (xmulxhi_vis): Likewise.
1367         (*xmulxhi_sp64): Likewise.
1368         (xmulxhi_v8plus): Likewise.
1370 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1372         PR 62314
1373         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1374         (class layout): Update comment
1375         (layout::print_any_fixits): New method.
1376         (layout::move_to_column): New method.
1377         (diagnostic_show_locus): Add call to layout.print_any_fixits.
1379 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
1381         PR middle-end/68221
1382         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1383         has non-zero bias, subtract it in integer type instead of
1384         pointer plus of negated bias.
1386         PR middle-end/68339
1387         * omp-low.c (expand_simd_clones): Call node->get_body () before
1388         allocating stuff in GC.
1390 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
1392         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1394 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
1396         * config/aarch64/aarch64.md (predicated): Copy attribute from
1397         "arm.md".
1398         * config/arm/arm.md (predicated): Added description.
1400 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1402         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1403         for unaligned_access.
1404         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1405         from matching condition.
1406         (unaligned_loadhis): Likewise.
1407         (unaligned_loadhiu): Likewise.
1408         (unaligned_storesi): Likewise.
1409         (unaligned_storehi): Likewise.
1411 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1413         PR target/68149
1414         * config/arm/arm.md (unaligned_loaddi): Delete.
1415         (unaligned_storedi): Likewise.
1416         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1417         unaligned DImode memory ops.  Instead perform two back-to-back
1418         unaligned SImode ops.
1420 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
1421             James Norris  <jnorris@codesourcery.com>
1423         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1424         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1426 2015-11-20  Alan Hayward <alan.hayward@arm.com>
1428         PR tree-optimization/68413
1429         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1430         evolution base
1431         (vectorizable_reduction): Use cached base
1433 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1435         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1436         dump-file string.
1437         (try_create_reduction_list): Same.  Fix typo in dump-file string.
1439 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1441         * doc/md.texi (Standard Names): Move entry for addptr3 around,
1442         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1443         glitch in entries for cbranch4 and jump.
1445 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1447         PR tree-optimization/68373
1448         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1449         of ...
1450         (scev_const_prop): ... here.
1451         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1452         * tree-parloops.c (try_create_reduction_list): Call
1453         final_value_replacement_loop.
1455 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
1457         PR tree-optimization/52272
1458         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1459         (struct iv_common_cand_hasher): New struct.
1460         (iv_common_cand_hasher::hash): New function.
1461         (iv_common_cand_hasher::equal): New function.
1462         (struct ivopts_data): New fields, iv_common_cand_tab and
1463         iv_common_cands.
1464         (tree_ssa_iv_optimize_init): Initialize above fields.
1465         (record_common_cand, common_cand_cmp): New functions.
1466         (add_iv_candidate_derived_from_uses): New function.
1467         (add_iv_candidate_for_use): Record iv_common_cands derived from
1468         iv use in hash table, instead of adding candidates directly.
1469         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1470         (record_important_candidates): Add important candidates to iv uses'
1471         related_cands.  Always keep related_cands for future use.
1472         (try_add_cand_for): Use iv uses' related_cands.
1473         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1474         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1476 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1478         * config/s390/s390.md ("bswaphi2"): New pattern.
1480 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1482         * config/s390/s390.md (GPR1_REGNUM): New constant.
1483         ("*trunc<BFP:mode><DFP_ALL:mode>2")
1484         ("*trunc<DFP_ALL:mode><BFP:mode>2")
1485         ("trunc<BFP:mode><DFP_ALL:mode>2")
1486         ("trunc<DFP_ALL:mode><BFP:mode>2")
1487         ("*extend<BFP:mode><DFP_ALL:mode>2")
1488         ("*extend<DFP_ALL:mode><BFP:mode>2")
1489         ("extend<BFP:mode><DFP_ALL:mode>2")
1490         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1492 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1493             Sebastian Pop  <s.pop@samsung.com>
1495         PR tree-optimization/68428
1496         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1497         over basic blocks outside the scop.
1499 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1500             Sebastian Pop  <s.pop@samsung.com>
1502         PR tree-optimization/68341
1503         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1504         gcc_unreachable and safely fail codegen.
1505         (copy_loop_close_phi_args): Do not insert merge phis in a basic
1506         block with loop phi nodes.
1507         (edge_for_new_close_phis): New.
1508         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1510 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1512         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1513         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1514         (nvptx_declare_objec_name): Likewise.
1516 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
1518         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1519         (get_false_edge_from_guard_bb): Move...
1520         * sese.c (get_false_edge_from_guard_bb)
1521         (get_true_edge_from_guard_bb): ... here.
1523 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
1525         Revert
1526         2015-11-18  Alan Modra  <amodra@gmail.com>
1528         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1529         type-limits warning.
1532 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1534         * tree.h (desired_pro_or_demotion_p): New function.
1535         * tree-vrp.c (simplify_cond_using_ranges): Call it.
1537 2015-11-19  Michael Matz  <matz@suse.de>
1539         * fwprop.c (update_uses): Use flag_checking instead of
1540         gcc_checking_assert.
1542 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
1544         * doc/gty.texi (Support for inheritance): Fix missing
1545         parentheses in example.
1547 2015-11-19  Marek Polacek  <polacek@redhat.com>
1549         PR tree-optimization/68431
1550         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1552 2015-11-19  Nathan Sidwell  <nathan@acm.org>
1554         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1555         atomic_exchange<mode>): Input values can be immediates.
1557 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1559         PR lto/61313
1560         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1561         by the user.
1562         * configure: Regenerate.
1564 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1566         PR target/68408
1567         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1568         (DTORS_SECTION_ASM_OP): Likewise.
1570 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1572         PR rtl-optimization/68376
1573         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1574         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1576 2015-11-19  Richard Biener  <rguenther@suse.de>
1578         PR middle-end/68117
1579         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1580         redirect_edge_var_map_destroy.
1582 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
1584         PR target/67770
1585         * config/i386/i386.md (simple_return): Disable if
1586         ix86_static_chain_on_stack is true.
1588 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1590         PR bootstrap/68393
1591         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1592         destinations.
1594 2015-11-18  Jeff Law  <law@redhat.com>
1596         PR tree-optimization/68198
1597         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1598         between threading a multi-way branch and a thread path that contains
1599         a multi-way branch.  Disallow the case where a path contains a
1600         multi-way branch and does not thread a multi-way branch.
1601         (thread_through_all_blocks): Update comment.
1603 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
1605         PR c/65083
1606         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1607         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1608         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1609         functions before defining as macros.
1611 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1613         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1614         (nvptx_record_offload_symbol): Remove code compensating for lack
1615         of default dimension handling.
1616         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1618 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1620         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1621         type to bool for early exit.
1622         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1623         in case of error.
1624         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1625         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1626         predecessor dominates the other.
1627         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1628         element is not found it returns -1.
1629         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1630         out early when codegen fails.
1631         (graphite_regenerate_ast_isl): Remove codegen region when pending
1632         phis could not be generated.
1634 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
1636         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1637         semicolon.
1638         (class translate_isl_ast_to_gimple): Indentation.
1639         (translate_pending_phi_nodes): Comment.
1640         (add_parameters_to_ivs_params): Moved from sese.c inside class
1641         translate_isl_ast_to_gimple.
1642         (get_max_schedule_dimensions): Same.
1643         (generate_isl_context): Same.
1644         (extend_schedule): Same.
1645         (generate_isl_schedule): Same.
1646         (set_options): Same.
1647         (scop_to_isl_ast): Same.
1648         (is_valid_rename): Same.
1649         (get_rename): Same.
1650         (get_rename_from_scev): Same.
1651         (get_def_bb_for_const): Same.
1652         (get_new_name): Same.
1653         (collect_all_ssa_names): Same.
1654         (copy_loop_phi_args): Same.
1655         (copy_loop_phi_nodes): Same.
1656         (copy_loop_close_phi_args): Same.
1657         (copy_loop_close_phi_nodes): Same.
1658         (copy_cond_phi_args): Same.
1659         (copy_cond_phi_nodes): Same.
1660         (graphite_copy_stmts_from_block): Same.
1661         (copy_bb_and_scalar_dependences): Same.
1662         (add_phi_arg_for_new_expr): Same.
1663         (rename_uses): Same.
1664         (set_rename): Same.
1665         (set_rename_for_each_def): Same.
1666         (gsi_insert_earliest): Same.
1667         (rename_all_uses): Same.
1668         (codegen_error_p): Same.
1669         (print_isl_ast_node): Same.
1670         (translate_isl_ast_for_loop): Call function codegen_error_p.
1671         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1672         (translate_isl_ast_node_user): Make nb_loops const and release
1673         iv_map before exit.
1674         (get_true_edge_from_guard_bb): Move all free-functions early.
1675         (get_false_edge_from_guard_bb): Same.
1676         (bb_contains_loop_close_phi_nodes): Same.
1677         (bb_contains_loop_phi_nodes): Same.
1678         (is_loop_closed_ssa_use):  Same.
1679         (number_of_phi_nodes): Same.
1680         (phi_uses_name): Same.
1681         (later_of_the_two): Same.
1682         (substitute_ssa_name):
1683         (get_edges): Same.
1684         (get_loc): Same.
1685         (get_loop_init_value): Same.
1686         (find_init_value): Same.
1687         (find_init_value_close_phi): Same.
1688         (ast_build_before_for): Same.
1689         (graphite_regenerate_ast_isl): Formatting changes.
1690         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1691         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1692         (set_rename): Same.
1693         (gsi_insert_earliest): Same.
1694         (collect_all_ssa_names): Same.
1695         (rename_all_uses): Same.
1696         (rename_uses): Same.
1697         (get_def_bb_for_const): Same.
1698         (copy_loop_phi_nodes): Same.
1699         (copy_loop_close_phi_args): Same.
1700         (copy_loop_close_phi_nodes): Same.
1701         (copy_cond_phi_args): Same.
1702         (copy_cond_phi_nodes): Same.
1703         (set_rename_for_each_def): Same.
1704         (graphite_copy_stmts_from_block): Same.
1705         (copy_bb_and_scalar_dependences): Same.
1706         (if_region_set_false_region): Same.
1707         (scev_analyzable_p): Same.
1708         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1710 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
1712         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1713         commit from r125920 for FreeBSD.
1715 2015-11-18  Jason Merrill  <jason@redhat.com>
1717         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1718         to be vecs of vecs.
1719         (add_finalizer): Split out from ggc_internal_alloc.
1720         (ggc_handle_finalizers): Run finalizers for the current depth.
1721         (init_ggc, ggc_pch_read): Reserve space for finalizers.
1723 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
1725         PR target/68410
1726         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1727         from || expression.
1729 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1731         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1732         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1733         and atmega328pb.
1734         * doc/avr-mmcu.texi: Regenerate.
1736 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1738         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1739         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1740         (struct bb_sese): New struct.
1741         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1742         (BB_GET_SESE, BB_SET_SESE): Define.
1743         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1744         (nvptx_find_sese): New.
1745         (nvptx_neuter_pars): Find SESE regions when optimizing.
1747 2015-11-18  Alan Modra  <amodra@gmail.com>
1749         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1750         type-limits warning.
1752 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1754         PR bootstrap/68406
1755         * hash-set.h (hash_set::traverse): Expand Key typedef.
1757 2015-11-18  Martin Liska  <mliska@suse.cz>
1759         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1760         options struct.
1762 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1764         * config/nvptx/nvptx.c (global_lock_var): New.
1765         (nvptx_global_lock_addr): New.
1766         (nvptx_lockless_update): Recomment and adjust for clarity.
1767         (nvptx_lockfull_update): New.
1768         (nvptx_reduction_update): New.
1769         (nvptx_goacc_reduction_fini): Call it.
1771 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
1773         * regrename.h (struct du_head): Add target_data_1 and target_data_2
1774         fields.
1775         * regrename.c (create_new_chain): Clear entire struct after allocating.
1777         * config/i386/i386.opt (mmitigate-rop): New option.
1778         * doc/invoke.texi (mmitigate-rop): Document.
1779         * config/i386/i386.c: Include "regrename.h".
1780         (ix86_rop_should_change_byte_p, reg_encoded_number,
1781         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1782         static functions.
1783         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1784         * config/i386/i386.md (attr "modrm_class"): New.
1785         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1786         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1787         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1789 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1791         PR target/68405
1792         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1794 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
1796         PR tree-optimization/68157
1797         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1798         pow_stmt or mul_stmt from stmt's uid.
1799         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1801 2015-11-18  Martin Liska  <mliska@suse.cz>
1803         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1805 2015-11-18  Martin Liska  <mliska@suse.cz>
1807         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1808         Fix GNU coding style.
1809         (find_def_preds): Use auto_vec.
1810         (destroy_predicate_vecs): Change signature of the function.
1811         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1812         new signature.
1813         (simplify_preds_4): Use destroy_predicate_vecs instread of
1814         just releasing preds vector.
1815         (normalize_preds): Likewise.
1816         (is_use_properly_guarded): Use new signature of
1817         destroy_predicate_vecs.
1818         (find_uninit_use): Likewise.
1820 2015-11-18  Richard Biener  <rguenther@suse.de>
1822         PR tree-optimization/67790
1823         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1824         IL rewrite for MINUS_EXPR reductions, rename back to ...
1825         (vect_is_simple_reduction): ... this, removing the wrapper.
1826         (vect_force_simple_reduction): Adjust.
1827         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1828         reductions and make use if reduc_index in all places.  For
1829         the final reduction of MINUS_EXPR use PLUS_EXPR.
1831 2015-11-18  Alan Modra  <amodra@gmail.com>
1833         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1834         to ld.
1835         * configure: Regenerate.
1837 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1839         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1841 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1843         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1844         uses of ssa_name with constant.
1846 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1848         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1849         something changed.
1851 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1853         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1854         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1855         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1857 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
1859         * regrename.c (regrename_find_superclass): New function, code moved
1860         from ...
1861         (rename_chains): ... here.  Call it.
1862         * regrename.h (regrename_find_superclass): Declare.
1864         * regrename.c (record_out_operands): Terminate earlyclobbered
1865         operands here.
1867         PR target/66785
1868         * regrename.c (record_operand_use): Keep track of failed operands
1869         and stop appending if we see any.
1870         * regrename.h (struct operand_rr_info): Add a failed field and shrink
1871         n_chains to short.
1873 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1875         PR 48568
1876         * doc/extend.texi (Common Function Attributes) [visibility]:
1877         Add cross-references to matching variable and type attributes.
1878         (Common Variable Attributes) [visibility]: Add missing entry.
1880 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1882         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1883         entries that map directly to optabs.
1885 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1887         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1888         entries that map directly to optabs.
1890 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1892         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1893         * internal-fn.c (direct_internal_fn_array): Update accordingly.
1894         * tree-vectorizer.h (vectorizable_function): Delete.
1895         * tree-vect-stmts.c: Include internal-fn.h.
1896         (vectorizable_internal_function): New function.
1897         (vectorizable_function): Inline into...
1898         (vectorizable_call): ...here.  Explicitly reject calls that read
1899         from or write to memory.  Try using an internal function before
1900         falling back on the old vectorizable_function behavior.
1902 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1904         * target.def (builtin_vectorized_function): Take a combined_fn (in
1905         the form of an unsigned int) rather than a function decl.
1906         (builtin_md_vectorized_function): New.
1907         * targhooks.h (default_builtin_vectorized_function): Replace the
1908         fndecl argument with an unsigned int.
1909         (default_builtin_md_vectorized_function): Declare.
1910         * targhooks.c (default_builtin_vectorized_function): Replace the
1911         fndecl argument with an unsigned int.
1912         (default_builtin_md_vectorized_function): New function.
1913         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1914         New hook.
1915         * doc/tm.texi: Regenerate.
1916         * tree-vect-stmts.c (vectorizable_function): Update call to
1917         builtin_vectorized_function, also passing internal functions.
1918         Call builtin_md_vectorized_function for target-specific builtins.
1919         * config/aarch64/aarch64-protos.h
1920         (aarch64_builtin_vectorized_function): Replace fndecl argument
1921         with an unsigned int.
1922         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1923         (aarch64_builtin_vectorized_function): Update after above changes.
1924         Use CASE_CFN_*.
1925         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1926         fndecl argument with an unsigned int.
1927         * config/arm/arm-builtins.c: Include case-cfn-macros.h
1928         (arm_builtin_vectorized_function): Update after above changes.
1929         Use CASE_CFN_*.
1930         * config/i386/i386.c: Include case-cfn-macros.h
1931         (ix86_veclib_handler): Take a combined_fn rather than a
1932         built_in_function.
1933         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
1934         mathfn_built_in rather than calling builtin_decl_implicit directly.
1935         (ix86_builtin_vectorized_function) Update after above changes.
1936         Use CASE_CFN_*.
1937         * config/rs6000/rs6000.c: Include case-cfn-macros.h
1938         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1939         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
1940         than calling builtin_decl_implicit directly.
1941         (rs6000_builtin_vectorized_function): Update after above changes.
1942         Use CASE_CFN_*.  Move BUILT_IN_MD to...
1943         (rs6000_builtin_md_vectorized_function): ...this new function.
1944         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1946 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1948         * tree-vect-patterns.c: Include internal-fn.h.
1949         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1951 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1953         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1954         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1956 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1958         * builtins.c (expand_errno_check, expand_builtin_mathfn)
1959         (expand_builtin_mathfn_2): Delete.
1960         (expand_builtin): Remove handling of functions with
1961         internal function equivalents.
1962         * internal-fn.def (SET_EDOM): New internal function.
1963         * internal-fn.h (set_edom_supported_p): Declare.
1964         * internal-fn.c (expand_SET_EDOM): New function.
1965         (set_edom_supported_p): Likewise.
1966         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1967         Rewrite comment at head of file.
1968         (is_call_dce_candidate): Rename to...
1969         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
1970         or gimple_call_builtin_p here.
1971         (edom_only_function): New function.
1972         (shrink_wrap_one_built_in_call_with_conds): New function, split out
1973         from...
1974         (shrink_wrap_one_built_in_call): ...here.
1975         (can_use_internal_fn, use_internal_fn): New functions.
1976         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1977         for calls that have an lhs.
1978         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1979         (pass_call_cdce::execute): Skip blocks that are optimized for size.
1980         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
1981         calls with an lhs.
1982         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1983         at -O and above.
1985 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1987         * builtins.h (called_as_built_in): Declare.
1988         * builtins.c (called_as_built_in): Make external.
1989         * internal-fn.h (expand_internal_call): Define a variant that
1990         specifies the internal function explicitly.
1991         * internal-fn.c (expand_load_lanes_optab_fn)
1992         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1993         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1994         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1995         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1996         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1997         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1998         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1999         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2000         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2001         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2002         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2003         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2004         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2005         argument.
2006         (internal_fn_expanders): Update prototype.
2007         (expand_internal_call): Define a variant that specifies the
2008         internal function explicitly. Use it to implement the previous
2009         interface.
2010         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2011         functions as calls to internal functions.
2013 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2015         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2016         (generated_files): Likewise.
2017         (s-cfn-operators, cfn-operators.pd): New rules.
2018         (s-match): Depend on cfn-operators.pd.
2019         * gencfn-macros.c: Expand comment to describe -o behavior.
2020         (print_define_operator_list): New function.
2021         (main): Accept -o.  Call print_define_operator_list.
2022         * genmatch.c (main): Add the current directory to the include path.
2023         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
2024         instead.
2026 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2028         * doc/match-and-simplify.texi: Document the "null" identifier.
2029         * genmatch.c (id_base::NULL_ID): New kind.
2030         (null_id): New variable.
2031         (get_operator): Add a parameter that says whether null identifiers
2032         are allowed.
2033         (contains_id): New function.
2034         (lower_for): Skip substitutions that would have a null_id in
2035         either the match or the result.
2036         (parser::parse_for): Allow the null identifier to be used.
2037         (parser::parse_operator_list): Likewise.
2038         (main): Initialize null_id.
2040 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2042         * match.pd: Use HYPOT and COS rather than hypot and cos.
2043         Use CASE_CFN_* macros.  Guard log/exp folds with
2044         SCALAR_FLOAT_TYPE_P.
2045         * genmatch.c (internal_fn): New enum.
2046         (fn_id::fn): Change to an unsigned int.
2047         (fn_id::fn_id): Accept internal_fn too.
2048         (add_builtin): Rename to...
2049         (add_function): ...this and turn into a template.
2050         (get_operator): Only try one variation if the original name fails.
2051         Only add _EXPR if the original name was all lower case.
2052         Try converting internal and built-in function names to their
2053         CFN equivalents.
2054         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2055         (dt_simplify::gen_1): Likewise.
2056         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2057         and get_call_combined_fn for generic.
2058         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2059         (decision_tree::gen): Likewise.
2060         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2061         Use add_function rather than add_builtin.  Register internal
2062         functions too.
2063         * generic-match-head.c: Include case-cfn-macros.h.
2064         * gimple-fold.c (replace_stmt_with_simplification): Use
2065         gimple_call_combined_fn to test whether we can keep an
2066         existing call.
2067         * gimple-match.h (code_helper): Replace built_in_function
2068         with combined_fn.
2069         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2070         and case-fn-macros.h.
2071         (gimple_resimplify1): Use fold_const_call.
2072         (gimple_resimplify2, gimple_resimplify3): Likewise.
2073         (build_call_internal, build_call): New functions.
2074         (maybe_push_res_to_seq): Use them.
2075         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
2076         rather than a built-in function.
2077         * tree.h (build_call_expr_internal_loc): Declare.
2078         (maybe_build_call_expr_loc): Likewise.
2079         * tree.c (build_call_expr_internal_loc_array): New function.
2080         (maybe_build_call_expr_loc): Likewise.
2082 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2084         * builtins.h (mathfn_built_in): Add a variant that takes
2085         a combined_fn.
2086         * builtins.c: Include case-cfn-macros.h.
2087         (CASE_MATHFN): Use CASE_CFN_*.
2088         (CASE_MATHFN_REENT): Use CFN_ codes.
2089         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2090         argument with a combined_fn.
2091         (mathfn_built_in): Add a variant that takes a combined_fn.
2092         (expand_builtin_int_roundingfn_2): Update callers accordingly.
2093         (fold_builtin_sincos, fold_builtin_classify): Likewise.
2095 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2097         * tree-vect-patterns.c: Include case-cfn-macros.h.
2098         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2100 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2102         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2103         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2104         (pass_cse_sincos::execute): Likewise.
2106 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2108         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2109         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2110         (decrement_power, acceptable_pow_call): Likewise.
2111         (attempt_builtin_copysign): Likewise.
2113 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2115         * tree-vrp.c: Include case-cfn-macros.h.
2116         (extract_range_basic): Switch on combined_fn rather than handling
2117         built-in functions and internal functions separately.
2119 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2121         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2122         than a built_in_function.
2123         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2124         a function decl.
2125         (integer_valued_real_call_p): Likewise.
2126         * fold-const.c: Include case-cfn-macros.h
2127         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2128         (negate_expr_p): Update accordingly.
2129         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2130         a function decl.
2131         (integer_valued_real_call_p): Likewise.
2132         (tree_invalid_nonnegative_warnv_p): Update accordingly.
2133         (integer_valued_real_p): Likewise.
2134         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2135         to tree_call_nonnegative_warnv_p.
2136         (gimple_call_integer_valued_real_p): Likewise
2137         integer_valued_real_call_p.
2138         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2139         (backprop::process_builtin_call_use): Extend to combined_fn.
2140         (strip_sign_op_1): Likewise.
2141         (backprop::process_use): Don't check for built-in calls here.
2142         (backprop::execute): Likewise.
2143         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2145 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2147         * fold-const-call.h (fold_const_call): Replace built_in_function
2148         arguments with combined_fn arguments.
2149         * fold-const-call.c: Include case-cfn-macros.h.
2150         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2151         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2152         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2153         built_in_function arguments with combined_fn arguments.
2154         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2155         (fold_builtin_3): Update calls to fold_const_call.
2157 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2159         * Makefile.in (HASH_TABLE_H): Add GGC_H.
2160         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2161         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2162         (build/gencfn-macros$(build_exeext): New rules.
2163         (genprogerr): Add cfn-macros.
2164         * hash-set.h (hash_set): Use the traits value_type as the key.
2165         * gencfn-macros.c: New file.
2167 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2169         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2170         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2171         * builtins.c (associated_internal_fn): Handle them.
2173 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2175         * builtins.h (associated_internal_fn): Declare.
2176         (replacement_internal_fn): Likewise.
2177         * builtins.c: Include internal-fn.h
2178         (associated_internal_fn, replacement_internal_fn): New functions.
2179         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2180         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2181         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2182         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2183         (LDEXP): New functions.
2184         * internal-fn.c: Include recog.h.
2185         (unary_direct, binary_direct): New macros.
2186         (expand_direct_optab_fn): New function.
2187         (expand_unary_optab_fn): New macro.
2188         (expand_binary_optab_fn): Likewise.
2189         (direct_unary_optab_supported_p): Likewise.
2190         (direct_binary_optab_supported_p): Likewise.
2192 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2194         * coretypes.h (tree_pair): New type.
2195         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
2196         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2197         * internal-fn.h (direct_internal_fn_info): New structure.
2198         (direct_internal_fn_array): Declare.
2199         (direct_internal_fn_p, direct_internal_fn): New functions.
2200         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2201         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2202         (mask_store_direct, store_lanes_direct): New macros.
2203         (direct_internal_fn_array) New array.
2204         (get_multi_vector_move): Return the optab handler without asserting
2205         that it is available.
2206         (expand_LOAD_LANES): Rename to...
2207         (expand_load_lanes_optab_fn): ...this and add an optab argument.
2208         (expand_STORE_LANES): Rename to...
2209         (expand_store_lanes_optab_fn): ...this and add an optab argument.
2210         (expand_MASK_LOAD): Rename to...
2211         (expand_mask_load_optab_fn): ...this and add an optab argument.
2212         (expand_MASK_STORE): Rename to...
2213         (expand_mask_store_optab_fn): ...this and add an optab argument.
2214         (direct_internal_fn_types, direct_optab_supported_p)
2215         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2216         (direct_internal_fn_supported_p): New functions.
2217         (direct_mask_load_optab_supported_p): New macro.
2218         (direct_load_lanes_optab_supported_p): Likewise.
2219         (direct_mask_store_optab_supported_p): Likewise.
2220         (direct_store_lanes_optab_supported_p): Likewise.
2222 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2224         * tree-core.h (internal_fn): Move immediately after the definition
2225         of built_in_function.
2226         (combined_fn): New enum.
2227         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2228         (internal_fn_p, as_internal_fn): New functions.
2229         (get_call_combined_fn, combined_fn_name): Declare.
2230         * tree.c (get_call_combined_fn): New function.
2231         (combined_fn_name): Likewise.
2232         * gimple.h (gimple_call_combined_fn): Declare.
2233         * gimple.c (gimple_call_combined_fn): New function.
2235 2015-11-17  Martin Sebor  <msebor@redhat.com>
2237         PR c++/68308
2238         * cp/init.c (build_new_1): Check for expression constness
2239         the right way.
2241 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2243         PR target/53587
2244         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2245         option list.
2246         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
2247         discussion of the Microsoft structure layout details here from
2248         its former home in extend.texi.
2249         * doc/extend.texi (x86 Variable Attributes): Replace detailed
2250         discussion with pointer to its new location.  Add cross-reference
2251         to corresponding type attributes.
2252         (x86 Type Attributes): Add cross-references to command-line options
2253         and variable attributes.
2255 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
2257         PR middle-end/68134
2258         * targhooks.c (default_get_mask_mode): Filter out
2259         scalar modes returned by mode_for_vector.
2261 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2263         PR target/68143
2264         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2265         offset from dstbase and use it appropriately in
2266         adjust_automodify_address.
2267         (arm_block_set_aligned_vect): Likewise.
2269 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2271         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2272         (MULTILIB_DIRNAMES): Adjust accordingly.
2274 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
2276         * config/aarch64/aarch64-cores.def (cortex-a35): New.
2277         * config/aarch64/aarch64.c (cortexa35_tunings): New.
2278         * config/aarch64/aarch64-tune.md: Regenerate.
2279         * doc/invoke.texi (-mcpu): Add Cortex-A35
2281 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
2283         PR target/68263
2284         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2285         to 32 for IAMCU.
2286         * config/i386/sse.md (*mov<mode>_internal): Always enable
2287         AVX and SSE unaligned moves for IAMCU.
2289 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2291         * tree-if-conv.c: Include varasm.h
2292         (ref_DR_map): Define.
2293         (baseref_DR_map): Like wise
2294         (struct ifc_dr): Add new tree predicate field.
2295         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2296         (memrefs_read_or_written_unconditionally): Remove.
2297         (write_memrefs_written_at_least_once): Remove.
2298         (ifcvt_memrefs_wont_trap): Use hash maps to query
2299         unconditional read/written information.
2300         (if_convertible_loop_p_1):  Initialize hash maps and predicates
2301         before hashing data references and delete hashmaps at the end.
2303 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
2305         PR 56036
2306         * doc/invoke.texi (Optimize Options): Move @end table to the right
2307         place.
2309 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
2311         PR 65129
2312         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2313         return value.
2315 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
2317         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2318         128-bit types, just types that fit in a single vector.
2319         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2321 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
2323         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2324         in the user documentation.
2325         (define_peephole2, define_split): Similarly.
2327 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2329         * lto-streamer-out.c (write_global_references): Adjust integer type.
2330         (lto_output_decl_state_refs): Likewise.
2332 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2334         * config/arm/arm-cores.def (cortex-a35): New.
2335         * config/arm/arm.c (arm_cortex_a35_tune): New.
2336         * config/arm/arm-tables.opt: Regenerate.
2337         * config/arm/arm-tune.md: Regenerate.
2338         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2339         * config/arm/t-aprofile: Likewise.
2340         * doc/invoke.texi (-mcpu): Likewise.
2342 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
2344         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2345         and qdf24xx and xgene1 to match -march=armv8-a.
2347 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2349         PR rtl-optimization/68330
2350         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2351         of LSHIFTRT by a non-zero constant integer.
2353 2015-11-16  Richard Biener  <rguenther@suse.de>
2355         PR tree-optimization/68306
2356         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2357         bogus copying from verify_data_ref_alignment and use continue
2358         instead of return.
2360 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
2361             Kaz Kojima  <kkojima@gcc.gnu.org>
2363         PR target/68277
2364         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2365         operands[2].
2366         (*addsi3): Add another insn_and_split variant for reload.
2368 2015-11-16  Richard Biener  <rguenther@suse.de>
2370         PR middle-end/68117
2371         * cfgexpand.c (pass_expand::execute): Destroy the edge
2372         redirection var map before setting RTL CFG hooks.
2374 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
2376         * config/i386/sse.md (reduc_splus_v8df): Rename to...
2377         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2379         (reduc_splus_v4df): Rename to...
2380         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2382         (reduc_splus_v2df): Rename to...
2383         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2385         (reduc_splus_v16sf): Rename to...
2386         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2388         (reduc_splus_v8sf): Rename to...
2389         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2391         (reduc_splus_v4sf): Rename to...
2392         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2394         (reduc_<code>_<mode>, all 3 variants): Rename each to...
2395         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2397         (reduc_umin_v8hf): Rename to...
2398         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2400 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2402         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2403         without additional conditions.
2404         * doc/extend.texi (@item simd): New.
2406 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2408         * passes.c (first_pass_instance): Remove variable.
2409         (execute_todo): Remove setting of first_pass_instance.
2410         * tree-pass.h (first_pass_instance): Remove declaration.
2412 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2414         * passes.def: Add arg to pass_ccp pass instantiation.
2415         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
2416         instead of first_pass_instance.
2417         (do_ssa_ccp): Add and handle param nonzero_p.
2418         (pass_ccp::pass_ccp): Initialize nonzero_p.
2419         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
2420         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2421         (pass_ccp::nonzero_p): New private member.
2423 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2425         * passes.def: Add arg to pass_object_sizes pass instantiation.
2426         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2427         insert_min_max_p.
2428         (pass_object_sizes::set_pass_param): New member function.  Set
2429         insert_min_max_p.
2430         (pass_object_sizes::insert_min_max_p): New private member.
2431         (pass_object_sizes::execute): Use insert_min_max_p instead of
2432         first_pass_instance.
2434 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2436         * passes.def: Add arg to pass_dominator pass instantiation.
2437         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2438         of comment.
2439         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2440         may_peel_loop_headers_p.
2441         (pass_dominator::set_pass_param): New member function.  Set
2442         may_peel_loop_headers_p.
2443         (pass_dominator::may_peel_loop_headers_p): New private member.
2444         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2445         first_pass_instance.
2447 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2449         * passes.def: Add arg to pass_reassoc pass instantiation.
2450         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2451         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2452         of first_pass_instance.
2453         (execute_reassoc): Add and handle insert_powi_p parameter.
2454         (pass_reassoc::insert_powi_p): New private member.
2455         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2456         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
2457         (pass_reassoc::execute): Call execute_reassoc with extra arg.
2459 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2461         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2462         * gen-pass-instances.awk (handle_line): Same.
2463         * pass_manager.h (class pass_manager): Define and undefine
2464         NEXT_PASS_WITH_ARG.
2465         * passes.c (opt_pass::set_pass_param): New function.
2466         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2467         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2468         * tree-pass.h (gimple_opt::set_pass_param): Declare.
2469         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2470         warn_array_bounds_p parameter.
2471         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2472         (pass_vrp::set_pass_param): New function.
2473         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2474         (pass_vrp::warn_array_bounds_p): New private member.
2476 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2478         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2479         (output_probe_stack_range): Rotate the loop and simplify.
2481 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2483         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2484         (output_probe_stack_range): Rotate the loop and simplify.
2486 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2488         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2489         an lea instruction when possible.
2490         (output_adjust_stack_and_probe): Rotate the loop and simplify.
2491         (ix86_emit_probe_stack_range): Adjust.
2492         (output_probe_stack_range): Rotate the loop and simplify.
2494 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2496         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2497         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2498         with appropriate pragma GCC target.
2500 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2502         PR target/65837
2503         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2504         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2506 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2508         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2509         (cortexa57_tunings): Use it.
2511 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2513         PR target/65837
2514         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2515         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2516         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2517         undefine __ARM_FP.
2518         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2519         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2520         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2521         * doc/extend.texi (-mfpu=): Describe attribute.
2523 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2525         PR target/65837
2526         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2527         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2528         arm_init_neon_builtins.
2529         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2530         (arm_init_neon_builtins_internal)
2531         (arm_init_crypto_builtins_internal):
2532         Test and set neon_set_p, neon_crypto_set_p.
2533         (neon_set_p, neon_crypto_set_p): New static booleans.
2535 2015-11-16  Christian Bruel  <christian.bruel@st.com>
2537         PR target/65837
2538         * config/arm/arm.c (arm_fpu_desc): Remove.
2539         (all_fpus): Make global.
2540         (arm_option_override): Use FPU TARGET accessors.
2541         (arm_declare_function_name): Likewise.
2542         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2543         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2544         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2545         (TARGET_NEON): Likewise.
2546         (all_fpus): Declare extern.
2547         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2548         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2550 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2552         PR middle-end/68366
2553         * sdbout.c: Include emit-rtl.h and function.h.
2555 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
2557         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2558         Remove support for FreeBSD 5 and earlier.
2560 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2562         * configure: Regenerate.
2563         * configure.ac: Always define ENABLE_OFFLOADING.
2564         * cgraph.c (cgraph_node::create): Adjust.
2565         * gcc.c (process_command): Likewise.
2566         * omp-low.c (create_omp_child_function): Likewise.
2567         (expand_omp_target): Likewise.
2568         * varpool.c (varpool_node::get_create): Likewise.
2570 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2572         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2573         * df-scan.c (df_get_exit_block_use_set): Adjust.
2574         * except.c (expand_eh_return): Likewise.
2576 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2578         * config/i386/i386.h (TARGET_PECOFF): Remove define.
2579         * defaults.h (TARGET_PECOFF): New default definition.
2580         * varasm.c (handle_vtv_comdat_section): Adjust.
2582 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2584         * defaults.h: New definition of SDB_DEBUGGING_INFO.
2585         * doc/tm.texi: Regenerate.
2586         * doc/tm.texi.in: Adjust.
2587         * final.c (rest_of_clean_state): Remove check if
2588         SDB_DEBUGGING_INFO is defined.
2589         * function.c (number_blocks): Likewise.
2590         * output.h: Likewise.
2591         * sdbout.c: Likewise.
2592         * toplev.c (process_options): Likewise.
2594 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2596         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2597         (enum sdb_masks): Likewise.
2598         * sdbout.c (plain_type_1): Likewise.
2599         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2601 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
2603         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2604         internal calls - 0 if ordered simd and 1 for ordered threads simd.
2605         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2606         argument is 1, replace it with GOMP_ordered_* call instead of removing
2607         it.
2609 2015-11-13  Rich Felker <dalias@libc.org>
2611         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2612         address loading hack for FDPIC targets.
2614 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
2615             Jeff Law  <law@redhat.com>
2617         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2618         * common.opt (-fsplit-paths): New flag controlling path splitting.
2619         * doc/invoke.texi (fsplit-paths): Document.
2620         * opts.c (default_options_table): Add -fsplit-paths to -O2.
2621         * passes.def: Add split_paths pass.
2622         * timevar.def (TV_SPLIT_PATHS): New timevar.
2623         * tracer.c: Include "tracer.h"
2624         (ignore_bb_p): No longer static.
2625         (transform_duplicate): New function, broken out of tail_duplicate.
2626         (tail_duplicate): Use transform_duplicate.
2627         * tracer.h (ignore_bb_p): Declare
2628         (transform_duplicate): Likewise.
2629         * tree-pass.h (make_pass_split_paths): Declare.
2630         * gimple-ssa-split-paths.c: New file.
2632 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2633             Marek Polacek  <polacek@redhat.com>
2634             Jason Merrill  <jason@redhat.com>
2636         * convert.c (maybe_fold_build1_loc): New.
2637         (maybe_fold_build2_loc): New.
2638         (convert_to_pointer_1): Split out from convert_to_pointer.
2639         (convert_to_pointer_nofold): New.
2640         (convert_to_real_1): Split out from convert_to_real.
2641         (convert_to_real_nofold): New.
2642         (convert_to_integer_1): Split out from convert_to_integer.
2643         (convert_to_integer_nofold): New.
2644         (convert_to_complex_1): Split out from convert_to_complex.
2645         (convert_to_complex_nofold): New.
2646         * convert.h: Declare new functions.
2647         * tree-complex.c (create_one_component_var): Break up line to
2648         avoid sequence point issues.
2650 2015-11-13  Jason Merrill  <jason@redhat.com>
2652         * fold-const.c (fold_convert_const): Fold changing cv-quals on
2653         VECTOR_CST.
2655         * hash-map.h (hash_map::empty): New.
2657 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2659         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2660         (oacc_loop_fixed_partitions): Correct return type to bool.
2661         (oacc_loop_auto_partitions): New.
2662         (oacc_loop_partition): Take mask argument, call
2663         oacc_loop_auto_partitions.
2664         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2666 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2668         * config/rs6000/constraints.md (we constraint): New constraint for
2669         64-bit power9 vector support.
2670         (wL constraint): New constraint for the element in a vector that
2671         can be addressed by the MFVSRLD instruction.
2673         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2674         declaration.
2675         (convert_int_to_float128): Likewise.
2676         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2677         hardware support for IEEE 128-bit floating point.
2678         (rs6000_expand_float128_convert): Likewise.
2679         (convert_float128_to_int): Likewise.
2680         (convert_int_to_float128): Likewise.
2682         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2683         ISA 3.0 hardware IEEE 128-bit floating point.
2684         (UNSPEC_IEEE128_MOVE): Likewise.
2685         (UNSPEC_IEEE128_CONVERT): Likewise.
2686         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2687         (Ff): Add support for DImode.
2688         (Fv): Likewise.
2689         (any_fix code iterator): New and updated iterators for IEEE
2690         128-bit floating point hardware support.
2691         (any_float code iterator): Likewise.
2692         (s code attribute): Likewise.
2693         (su code attribute): Likewise.
2694         (az code attribute): Likewise.
2695         (uns code attribute): Likewise.
2696         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2697         floating point hardware support.
2698         (abs<mode>2, FLOAT128 iterator): Likewise.
2699         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2700         floating point hardware.
2701         (sub<mode>3, IEEE128 iterator): Likewise.
2702         (mul<mode>3, IEEE128 iterator): Likewise.
2703         (div<mode>3, IEEE128 iterator): Likewise.
2704         (copysign<mode>3, IEEE128 iterator): Likewise.
2705         (sqrt<mode>2, IEEE128 iterator): Likewise.
2706         (neg<mode>2, IEEE128 iterator): Likewise.
2707         (abs<mode>2, IEEE128 iterator): Likewise.
2708         (nabs<mode>2, IEEE128 iterator): Likewise.
2709         (fma<mode>4_hw, IEEE128 iterator): Likewise.
2710         (fms<mode>4_hw, IEEE128 iterator): Likewise.
2711         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2712         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2713         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2714         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2715         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2716         (fix_fixuns code attribute): Likewise.
2717         (float_floatuns code attribute): Likewise.
2718         (fix<uns>_<mode>si2_hw): Likewise.
2719         (fix<uns>_<mode>di2_hw): Likewise.
2720         (float<uns>_<mode>si2_hw): Likewise.
2721         (float<uns>_<mode>di2_hw): Likewise.
2722         (xscvqp<su>wz_<mode>): Likewise.
2723         (xscvqp<su>dz_<mode>): Likewise.
2724         (xscv<su>dqp_<mode): Likewise.
2725         (ieee128_mfvsrd): Likewise.
2726         (ieee128_mfvsrwz): Likewise.
2727         (ieee128_mtvsrw): Likewise.
2728         (ieee128_mtvsrd): Likewise.
2729         (trunc<mode>df2_odd): Likewise.
2730         (cmp<mode>_h): Likewise.
2731         (128-bit GPR splitters): Don't split a 128-bit move that is a
2732         direct move between GPR and vector registers using ISA 3.0 direct
2733         move instructions.
2734         (maddld4): Add support for the ISA 3.0 integer multiply-add
2735         instruction.
2737         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2738         debugging.
2739         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2740         constraint.  Disable the VSX<->GPR direct move helpers if we have
2741         the MFVSRLD and MTVSRDD instructions.
2742         (rs6000_secondary_reload_simple_move): Add support for doing
2743         vector direct moves directly without additional scratch registers
2744         if we have ISA 3.0 instructions.
2745         (rs6000_secondary_reload_direct_move): Update comments.
2746         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2747         instructions.
2749         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2750         direct move instructions.
2751         (vsx_movti_64bit): Likewise.
2752         (vsx_extract_<mode>): Likewise.
2754         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2755         macros for ISA 3.0 direct move instructions.
2756         (TARGET_DIRECT_MOVE_128): Likewise.
2757         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2758         instruction.
2760         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2761         constraints.  Update wa documentation to say not to use %x<n> on
2762         instructions that only take Altivec registers.
2764 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2766         * Makefile.in (OBJS): Add gcc-rich-location.o.
2767         * diagnostic.c (diagnostic_append_note): Pass line_table to
2768         rich_location ctor.
2769         (emit_diagnostic): Likewise.
2770         (inform): Likewise.
2771         (inform_n): Likewise.
2772         (warning): Likewise.
2773         (warning_at): Likewise.
2774         (warning_n): Likewise.
2775         (pedwarn): Likewise.
2776         (permerror): Likewise.
2777         (error): Likewise.
2778         (error_n): Likewise.
2779         (error_at): Likewise.
2780         (sorry): Likewise.
2781         (fatal_error): Likewise.
2782         (internal_error): Likewise.
2783         (internal_error_no_backtrace): Likewise.
2784         (source_range::debug): Likewise.
2785         * gcc-rich-location.c: New file.
2786         * gcc-rich-location.h: New file.
2787         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2788         (warning_at): Likewise.
2789         * gimple.h (gimple_set_block): Use set_block function.
2790         * input.c (dump_line_table_statistics): Dump stats on how many
2791         ranges were optimized vs how many needed ad-hoc table.
2792         (write_digit_row): Add "map" param; use its range_bits
2793         to calculate the per-character offset.
2794         (dump_location_info): Print the range and column bits for each
2795         ordinary map.  Use the range bits to calculate the per-character
2796         offset.  Pass the map as a new param to the various calls to
2797         write_digit_row.  Eliminate uses of
2798         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2799         * print-tree.c (print_node): Print any source range information.
2800         * rtl-error.c (diagnostic_for_asm): Likewise.
2801         * toplev.c (general_init): Initialize line_table's
2802         default_range_bits.
2803         * tree-cfg.c (move_block_to_fn): Likewise.
2804         (move_block_to_fn): Likewise.
2805         * tree-inline.c (copy_phis_for_bb): Likewise.
2806         * tree.c (tree_set_block): Likewise.
2807         (get_pure_location): New function.
2808         (set_source_range): New functions.
2809         (set_block): New function.
2810         (set_source_range): New functions.
2811         * tree.h (CAN_HAVE_RANGE_P): New.
2812         (EXPR_LOCATION_RANGE): New.
2813         (EXPR_HAS_RANGE): New.
2814         (get_expr_source_range): New inline function.
2815         (DECL_LOCATION_RANGE): New.
2816         (set_source_range): New decls.
2817         (get_decl_source_range): New inline function.
2819 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
2821         PR tree-optimization/67682
2822         * tree-vect-slp.c (vect_split_slp_store_group): New.
2823         (vect_analyze_slp_instance): During basic block SLP, recurse on
2824         subgroups if vect_build_slp_tree fails after 1st vector.
2826 2015-11-13  Christian Bruel  <christian.bruel@st.com>
2828         PR target/65837
2829         * config/arm/arm.c (arm_option_override): Move NEON check...
2830         (arm_option_check_internal): here
2831         (arm_file_start): Move .fpu print...
2832         (arm_declare_function_name): here
2833         (arm_option_print): Dump current fpu name.
2834         * config/arm/arm.opt (arm_fpu_index): Mark Save.
2836 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
2837             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2839         * combine.c (subst): Don't substitute or simplify when
2840         handling register-wise widening multiply.
2841         (force_to_mode): Likewise.
2843 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
2845         PR tree-optimization/68264
2846         * tree-call-cdce.c (gen_one_condition): Update commentary.
2847         (gen_conditions_for_pow_int_base): Invert the sense of the tests
2848         passed to gen_one_condition.
2849         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
2850         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2851         using EDGE_FALSE_VALUE for edges to the call block and
2852         EDGE_TRUE_VALUE for the others.
2854 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2856         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2857         complex types.
2859 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2861         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2863 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2865         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2866         len_of_prefix.
2868 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2870         * gen-pass-instances.awk (handle_line): Add args_str variable.
2872 2015-11-13  Martin Liska  <mliska@suse.cz>
2874         * graphite-poly.c (free_scop): Release scop->drs vector.
2875         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2876         Release dom vector.
2877         (try_generate_gimple_bb): Use vNULL as a default initialization
2878         for vectors.
2880 2015-11-13  Martin Liska  <mliska@suse.cz>
2882         PR ipa/68311
2883         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2884         Replace array initialization (using a variable post-increment)
2885         that possible triggers multiple unsequenced modifications
2886         with a pair of pushes to a vector.
2888 2015-11-13  Richard Biener  <rguenther@suse.de>
2890         PR tree-optimization/68306
2891         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2892         loop related checks ...
2893         (vect_verify_datarefs_alignment): ... here.
2894         (vect_slp_analyze_and_verify_node_alignment): Compute and
2895         verify alignment of the single DR that it matters.
2896         * tree-vect-stmts.c (vectorizable_store): Add an assert.
2897         (vectorizable_load): Add a comment.
2898         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2899         for determining load cost.
2901 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2903         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2904         mix of boolean and integer vectors in a single statement.
2905         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2906         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2907         determine constant type.
2908         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2909         for loop invariants.
2911 2015-11-13  Alan Hayward <alan.hayward@arm.com>
2913         PR tree-optimization/66558
2914         * tree-vect-loop.c (is_integer_induction):Add.
2915         (vectorizable_reduction): Add integer induction checks.
2917 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
2919         Revert [ARM] Remove neon-testgen.ml and generated tests.
2921         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2923         [ARM] Remove neon-testgen.ml and generated tests.
2925         * config/arm/neon-testgen.ml: Remove.
2927 2015-11-13  Richard Biener  <rguenther@suse.de>
2929         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2930         Signal fatal failure if early checks fail.
2931         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2932         do not bother testing further vector sizes.
2934 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
2936         * config/i386/predicates.md (misaligned_operand): Return true if
2937         operand is aligned to less than its natural alignmnet.
2939 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2941         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2942         (vec_cmpu@var{m}@var{n}): New item.
2943         (vcond@var{m}@var{n}): Specify comparison is signed.
2944         (vcondu@var{m}@var{n}): New item.
2945         (vcond_mask_@var{m}@var{n}): New item.
2946         (maskload@var{m}@var{n}): New item.
2947         (maskstore@var{m}@var{n}): New item.
2949 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2951         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2952         types of stored value and storage are compatible.
2954 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
2956         * gcc.c (POST_LINK_SPEC): Define if not already defined.
2957         (LINK_COMMAND_SPEC): Use post_link.
2958         (post_link_spec): New, initialize to POST_LINK_SPEC.
2959         (post_link): Initialize new static spec.
2960         * doc/tm.texi.in (POST_LINK_SPEC): Document.
2961         * doc/tm.texi: Regenerated.
2963 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2965         PR driver/67613
2966         * Makefile.in (GCC_OBJS): Add spellcheck.o.
2967         (OBJS): Add spellcheck-tree.o.
2968         * gcc.c: Include "spellcheck.h".
2969         (suggest_option): New function.
2970         (driver::handle_unrecognized_options): Call suggest_option to
2971         provide a hint about misspelled options.
2972         * spellcheck.c: Update file comment.
2973         (levenshtein_distance): Convert 4-param implementation from static
2974         to extern scope.  Remove note about unit tests from leading
2975         comment for const char * implementation.  Move tree
2976         implementation to...
2977         * spellcheck-tree.c: New file.
2978         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
2980 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2982         * Makefile.in (OBJS): Add spellcheck.o.
2983         * spellcheck.c: New file.
2984         * spellcheck.h: New file.
2986 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
2988         * config/ft32/ft32.md (*sne): New insn pattern.
2990 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
2992         * cprop.c (is_too_expensive): Remove.
2993         (gcse.h): Include.
2994         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2995         is_too_expensive.
2996         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2997         * gcse.c (is_too_expensive): Rename to ...
2998         (gcse_or_cprop_is_too_expensive): ... this.
2999         Expand warning to add required size of max-gcse-memory.
3000         (one_pre_gcse_pass): Use it.
3001         (one_code_hoisting_pass): Use it.
3002         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3004 2015-11-12  James Norris  <jnorris@codesourcery.com>
3005             Joseph Myers  <joseph@codesourcery.com>
3007         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3008         GF_OMP_TARGET_KIND_OACC_DECLARE.
3009         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3010         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3011         * gimplify.c (oacc_declare_returns): New.
3012         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3013         (device_resident_p): New function.
3014         (oacc_default_clause): Handle device_resident clause.
3015         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3016         (gimplify_expr): Handle OACC_DECLARE.
3017         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3018         * omp-low.c (expand_omp_target): Handle
3019         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3020         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3021         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3022         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3023         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3024         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3025         GOMP_MAP_DEVICE_RESIDENT.
3027 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3029         [ARM] Remove neon-testgen.ml and generated tests.
3031         * config/arm/neon-testgen.ml: Remove.
3033 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
3035         * config/aarch64/aarch64-cores.def (qdf24xx): New.
3036         * config/aarch64/aarch64-tune.md: Regenerated.
3037         * config/arm/arm-cores.def (qdf24xx): New.
3038         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3039         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3040         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3041         (ARM Options/-mtune): Likewise.
3043 2015-11-12  Martin Liska  <mliska@suse.cz>
3045         * config/i386/i386.c (ix86_valid_target_attribute_p):
3046         Finalize options at the of the function.
3047         * gcc.c (driver_get_configure_time_options): Call newly
3048         introduced init_opts_obstack.
3049         * lto-wrapper.c (main): Likewise.
3050         * opts.c (init_opts_obstack): New function.
3051         (init_options_struct): Call newly introduced init_opts_obstack.
3052         * opts.h (init_options_struct): Declare.
3054 2015-11-12  Martin Liska  <mliska@suse.cz>
3056         PR ipa/68035
3057         * ipa-icf.c (void sem_item::set_hash): New function.
3058         (sem_function::get_hash): Use renamed m_hash member variable.
3059         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3060         (sem_item::update_hash_by_local_refs): Likewise.
3061         (sem_variable::get_hash): Use renamed m_hash member variable.
3062         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3063         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3064         (sem_item_optimizer::build_graph): As the hash value of an item
3065         is lazy initialized, force the calculation.
3066         * ipa-icf.h (set_hash): Declare new function and rename hash member
3067         variable to m_hash.
3069 2015-11-12  Richard Biener  <rguenther@suse.de>
3071         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3072         Rename to vect_slp_analyze_instance_dependence.
3073         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3074         Remove WAR special-case.
3075         (vect_slp_analyze_node_dependences): Instead add more specific
3076         code here, not relying on other instances being vectorized.
3077         (vect_slp_analyze_instance_dependence): Adjust accordingly.
3078         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3079         vertical space in dump files.
3080         (vect_print_slp_tree): Likewise.
3081         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3082         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3083         not vectorized stmts until after dependence analysis removed
3084         instances.  Merge alignment and dependence checks.
3085         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3086         flag on all stmts.
3088 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
3090         * config/aarch64/aarch64-protos.h (tune_params): Add new members
3091         "max_case_values" and "cache_line_size".
3092         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3093         function.
3094         (aarch64_override_options_internal): Tune heuristics based on new
3095         members in "tune_params".
3096         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3098 2015-11-12  Richard Biener  <rguenther@suse.de>
3100         PR tree-optimization/68306
3101         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3102         relevant and vectorizable checks here.
3103         (vect_verify_datarefs_alignment): Add relevant check here.
3105 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
3107         * gimplify.c (oacc_default_clause): New.
3108         (omp_notice_variable): Call it.
3110 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3112         PR tree-optimization/68305
3113         * tree-vect-slp.c (vect_get_constant_vectors): Support
3114         COND_EXPR with SSA_NAME as a condition.
3116 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3118         * config/visium/visium-protos.h (notice_update_cc): Delete.
3119         (print_operand): Likewise.
3120         (print_operand_address): Likewise.
3122 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3124         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3125         FUNCTION_VALUE_REGNO_P): Remove.
3126         * config/alpha/alpha-protos.h (function_value): Remove.
3127         * config/alpha/alpha.c (function_value): Rename to...
3128         (alpha_function_value_1): ... this.  Make static.
3129         (alpha_function_value, alpha_libcall_value,
3130         alpha_function_value_regno_p): New functions.
3131         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3132         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3134 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3136         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3137         * config/alpha/alpha.c (alpha_memory_latency): Make static.
3138         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3139         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3141 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3143         PR target/67265
3144         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3145         assertion on the CFA register.
3147 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3149         * expr.c (do_store_flag): Expand vector comparison as
3150         VEC_COND_EXPR if vector comparison is not supported by target.
3152 2015-11-12  Renlin Li  <renlin.li@arm.com>
3154         * config/arm/arm.md (addsi3_compare_op2): Make the order of
3155         assembly pattern consistent with constraint order.
3157 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3159         * gen-pass-instances.awk (handle_line): Simplify match regexp.
3161 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3163         * gen-pass-instances.awk (handle_line): Simplify init of
3164         postfix_starts_at.
3166 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3168         * gen-pass-instances.awk (handle_line): Rename var where to
3169         call_starts_at.
3171 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
3173         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3174         do not expand to rtl.
3176 2015-11-12  Richard Biener  <rguenther@suse.de>
3178         PR tree-optimization/58497
3179         * tree-vect-generic.c: Include gimplify.h.
3180         (tree_vec_extract): Lookup constant/constructor DEFs.
3181         (do_cond): Unshare cond.
3183 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3185         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3186         combined insn if the alignment of vector mode memory operand
3187         is less than ssememalign.
3189 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3191         * gen-pass-instances.awk (handle_line): Print parentheses and
3192         pass_name explicitly.
3194 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3196         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3197         and postfix vars.
3199 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3201         * gen-pass-instances.awk (handle_line): Add comments.
3203 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3205         * gen-pass-instances.awk (handle_line): Rename len_of_end to
3206         len_of_close.
3208 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3210         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3212 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3214         * gen-pass-instances.awk (handle_line): Restructure using early-out.
3216 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3218         * gen-pass-instances.awk (handle_line): Unify semicolon use.
3220 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3222         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3224 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3226         * gen-pass-instances.awk: Add emacs indent setting.
3228 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3230         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3231         to match.pd.
3232         Move Convert A/(B/C) to (A/B)*C to match.pd.
3233         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3234         Move Optimize (X & (-A)) / A where A is a power of 2, to
3235         X >> log2(A) to match.pd.
3237         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3238         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3239         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3240         New simplifier.
3241         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3243 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
3245         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3246         variable.
3247         (neon_vst2_lane<mode>): Likewise.
3248         (neon_vld3_lane<mode>): Likewise.
3249         (neon_vst3_lane<mode>): Likewise.
3250         (neon_vld4_lane<mode>): Likewise.
3251         (neon_vst4_lane<mode>): Likewise.
3253 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
3254             Sebastian Pop  <s.pop@samsung.com>
3256         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3257         New member codegen_error
3258         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3259         early return.
3260         (translate_isl_ast_node_user): Early return in case of error.
3261         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3262         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3263         (add_parameters_to_ivs_params): Remove macro.
3264         (graphite_regenerate_ast_isl): Add if_region pointer to region.
3265         * graphite-poly.c (new_poly_dr): Remove macro.
3266         (print_pdr): Same.
3267         (new_gimple_poly_bb): Same.
3268         (free_gimple_poly_bb): Same.
3269         (print_scop_params): Same.
3270         * graphite-poly.h (struct poly_dr): Same.
3271         (struct poly_bb): Add new_bb.
3272         (gbb_from_bb): Remove dead code.
3273         (pbb_from_bb): Same.
3274         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3275         (parameter_index_in_region): Same.
3276         (find_scop_parameters): Same.
3277         (build_cross_bb_scalars_def): New.
3278         (build_cross_bb_scalars_use): New.
3279         (graphite_find_cross_bb_scalar_vars): New
3280         (try_generate_gimple_bb): Reads and Writes.
3281         (build_alias_set): Move.
3282         (gather_bbs::before_dom_children): Gather bbs visited.
3283         (build_scops): call build_alias_set.
3284         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3285         (remove_simple_copy_phi): Delete.
3286         (remove_invariant_phi): Delete.
3287         (simple_copy_phi_p): Delete.
3288         (reduction_phi_p): Delete.
3289         (isl_id_for_dr): Remove unused param.
3290         (parameter_index_in_region_1): Remove macro usage.
3291         (set_scop_parameter_dim): Same.
3292         (add_param_constraints): Same.
3293         (add_conditions_to_constraints): Same
3294         (build_scop_iteration_domain): Same.
3295         (pdr_add_alias_set): Comment.
3296         (add_scalar_version_numbers): New.
3297         (build_poly_dr): ISL id.
3298         (build_scop_drs): Move.
3299         (build_poly_sr_1): Same.
3300         (insert_stmts): Remove.
3301         (build_poly_sr): New.
3302         (new_pbb_from_pbb): Delete.
3303         (insert_out_of_ssa_copy_on_edge): Delete.
3304         (create_zero_dim_array): Delete.
3305         (scalar_close_phi_node_p): Delete.
3306         (propagate_expr_outside_region): Delete.
3307         (rewrite_close_phi_out_of_ssa): Delete.
3308         (rewrite_phi_out_of_ssa): Delete.
3309         (rewrite_degenerate_phi): Delete.
3310         (rewrite_reductions_out_of_ssa): Delete.
3311         (rewrite_cross_bb_scalar_dependence): Delete.
3312         (handle_scalar_deps_crossing_scop_limits):
3313         (rewrite_cross_bb_scalar_deps): Delete.
3314         (build_poly_scop): Remove calls to out-of-ssa functions.
3315         * graphite.c (graphite_transform_loops): Early return in case of
3316         codegen error.
3317         * sese.c (debug_rename_map_1): Delete.
3318         (debug_rename_map): Delete.
3319         (sese_record_loop): Remove macro.
3320         (build_sese_loop_nests): Same.
3321         (new_sese_info): Same.
3322         (free_sese_info): Same.
3323         (sese_insert_phis_for_liveouts):
3324         (is_loop_closed_ssa_use): New.
3325         (number_of_phi_nodes): New.
3326         (bb_contains_loop_close_phi_nodes): New.
3327         (bb_contains_loop_phi_nodes): New.
3328         (phi_uses_name): New.
3329         (is_valid_rename):
3330         (get_rename): Add old_bb and loop_phi for more precise matching of
3331         exprs.
3332         (set_rename): Pass region.
3333         (later_of_the_two): New.
3334         (gsi_insert_earliest): New.
3335         (collect_all_ssa_names): New.
3336         (substitute_ssa_name): New.
3337         (rename_all_uses): New.
3338         (get_rename_from_scev): New.
3339         (rename_uses): Pass old_bb for more precise matching of exprs.
3340         (get_def_bb_for_const): New.
3341         (get_new_name): New.
3342         (get_loc): New.
3343         (get_edges): New.
3344         (copy_loop_phi_args): New.
3345         (copy_loop_phi_nodes): New.
3346         (get_loop_init_value): New.
3347         (find_init_value): New.
3348         (find_init_value_close_phi): New.
3349         (copy_loop_close_phi_args): New.
3350         (copy_loop_close_phi_nodes): New.
3351         (add_phi_arg_for_new_expr): New.
3352         (copy_cond_phi_args): New.
3353         (copy_cond_phi_nodes): New.
3354         (copy_phi_nodes): New.
3355         (should_copy_to_new_region): New.
3356         (set_rename_for_each_def): New.
3357         (graphite_copy_stmts_from_block): Early return in case of error.
3358         (copy_bb_and_scalar_dependences): Same.
3359         * sese.h (vec_find): New.
3360         (SESE_PARAMS): Delete.
3361         (SESE_LOOPS): Delete.
3362         (SESE_LOOP_NEST): Delete.
3363         (sese_contains_loop): Remove macro usage.
3364         (sese_nb_params): Same.
3365         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3367 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3369         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3370         isl_union_map_add_map on every pbb->schedule.
3372 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3374         * tree-parloops.c (create_parallel_loop): Return void.
3376 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3378         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3379         block only when needed.
3381 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
3383         * config/alpha/alpha-protos.h (print_operand): Remove.
3384         (print_operand_address): Remove.
3385         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3386         (PRINT_OPERAND_ADDRESS): Remove.
3387         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3388         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3389         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3390         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3391         (print_operand_address): Rename to...
3392         (alpha_print_operand_address): ...this and make static.
3393         (print_operand): Rename to...
3394         (alpha_print_operand): ...this and make static.
3395         (alpha_print_operand_punct_valid_p): New static function.
3397 2015-11-11  Richard Biener  <rguenther@suse.de>
3399         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3400         Declare.
3401         (vect_analyze_data_refs_alignment): Make loop vect specific.
3402         (vect_verify_datarefs_alignment): Likewise.
3403         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3404         Add missing continue.
3405         (vect_compute_data_ref_alignment): Export.
3406         (vect_compute_data_refs_alignment): Merge into...
3407         (vect_analyze_data_refs_alignment): ... this.
3408         (verify_data_ref_alignment): Split out from ...
3409         (vect_verify_datarefs_alignment): ... here.
3410         (vect_slp_analyze_and_verify_node_alignment): New function.
3411         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3412         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3413         misplaced checks on alignment.
3414         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
3415         alignment analysis after SLP discovery and do it per instance.
3416         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3417         bother to re-try using different vector sizes.
3419 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3420             Cesar Philippidis  <cesar@codesourcery.com>
3422         * gimplify.c (enum omp_region_type): Add ORT_ACC,
3423         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
3424         (gimple_add_tmp_var): Add ORT_ACC checks.
3425         (gimplify_var_or_parm_decl): Likewise.
3426         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3427         (omp_add_variable): Look in outer contexts for openacc and allow
3428         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3429         (omp_notice_variable, omp_is_private, omp_check_private): Add
3430         ORT_ACC checks.
3431         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3432         Permit private openacc reductions.
3433         (gimplify_oacc_cache): Specify ORT_ACC.
3434         (gimplify_omp_workshare): Adjust OpenACC region types.
3435         (gimplify_omp_target_update): Likewise.
3436         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3437         (lower-rec_input_clauses): Don't handle openacc firstprivate
3438         references here.
3439         (lower_omp_target): Emit initializers for openacc firstprivate vars.
3441 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3443         PR target/67265
3444         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3445         frame pointer for stack checking if non-call exceptions aren't used.
3446         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3448 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
3450         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3451         [LA]SHIFTRT.
3453 2015-11-11  Martin Liska  <mliska@suse.cz>
3454             Richard Biener  <rguenther@suse.de>
3456         PR rtl-optimization/68287
3457         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3458         number of elements.
3460 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
3462         * config/mips/mips.c (mips_breakable_sequence_p): New function.
3463         (mips_break_sequence): New function.
3464         (mips_reorg_process_insns): Use them. Use compact branches in selected
3465         situations.
3467 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
3469         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3471 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
3472             Jim Wilson  <wilson@gcc.gnu.org>
3474         PR target/67305
3475         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3476         be true and eliminable registers mentioned.
3478 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
3480         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3481         options.
3482         * config/arc/arc-opts.h: Add ARCv2 CPUs.
3483         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3484         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3485         situation, and store instructions with large offsets.
3486         (arc_secondary_reload_conv): New function.
3487         (arc_init): Add ARCv2 options.
3488         (arc_conditional_register_usage): Select the proper register usage
3489         for ARCv2 processors.
3490         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3491         architecture.
3492         (arc_compute_function_type): Likewise.
3493         (arc_print_operand): Handle new ARCv2 punctuation characters.
3494         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3495         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3496         function.
3497         (arc_reorg, arc_hazard): Use it.
3498         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3499         (ASM_SPEC): Add ARCv2 options.
3500         (TARGET_NORM): ARC HS has norm instructions by default.
3501         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3502         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3503         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3504         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3505         Likewise.
3506         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3507         (TARGET_LP_WR_INTERLOCK): Likewise.
3508         * config/arc/arc.md
3509         (commutative_binary_mult_comparison_result_used, movsicc_insn)
3510         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3511         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3512         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3513         Use it for ARCv2.
3514         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3515         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3516         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3517         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3518         (extzvsi): New pattern.
3519         * config/arc/arc.opt: New ARCv2 options.
3520         * config/arc/arcEM.md: New file.
3521         * config/arc/arcHS.md: Likewise.
3522         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3523         values.
3524         (Cm2): A signed 9-bit integer constant constraint.
3525         (C62): An unsigned 6-bit integer constant constraint.
3526         (C16): A signed 16-bit integer constant constraint.
3527         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3528         (short_const_int_operand): New predicate.
3529         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3530         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3531         -mcode-density and -mdiv-rem.
3533 2015-11-11  Julia Koval  <julia.koval@intel.com>
3535         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3537 2015-11-11  Julia Koval  <julia.koval@intel.com>
3539         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3541 2015-11-11  Martin Liska  <mliska@suse.cz>
3543         * gimple-ssa-strength-reduction.c (create_phi_basis):
3544         Use auto_vec.
3545         * passes.c (release_dump_file_name): New function.
3546         (pass_init_dump_file): Used from this function.
3547         (pass_fini_dump_file): Likewise.
3548         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3549         * var-tracking.c (vt_initialize): Use pool_allocator.
3551 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
3552             Jiong Wang      <jiong.wang@arm.com>
3554         PR tree-optimization/68234
3555         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3556         node which estimiated to be VR_VARYING initially.
3558 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
3560         * regname.c (scan_rtx_reg): Check the matching number of consecutive
3561         registers when tying chains.
3562         (build_def_use): Move terminated_this_insn earlier in the function.
3564 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
3566         * configure.ac: Use = with test and not ==.
3567         * configure: Regenerated.
3569 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
3571         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3572         machine asserts.  Update defines for 64 bit.
3574 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3576         PR target/63870
3577         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3578         lane number.
3579         (neon_vst1_lane<mode>): Likewise.
3580         (neon_vld2_lane<mode>): Likewise.
3581         (neon_vst2_lane<mode>): Likewise.
3582         (neon_vld3_lane<mode>): Likewise.
3583         (neon_vst3_lane<mode>): Likewise.
3584         (neon_vld4_lane<mode>): Likewise.
3585         (neon_vst4_lane<mode>): Likewise.
3587 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3589         PR target/63870
3590         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3591         qualifier_struct_load_store_lane_index.
3592         (arm_storestruct_lane_qualifiers) Likewise.
3593         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3594         big-endian.
3595         (neon_vst1_lane<mode>) Likewise.
3596         (neon_vld2_lane<mode>) Likewise.
3597         (neon_vst2_lane<mode>) Likewise.
3598         (neon_vld3_lane<mode>) Likewise.
3599         (neon_vst3_lane<mode>) Likewise.
3600         (neon_vld4_lane<mode>) Likewise.
3601         (neon_vst4_lane<mode>) Likewise.
3603 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
3605         PR target/63870
3606         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3607         qualifier_struct_load_store_lane_index.
3608         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3609         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3610         argument qualifiers.
3611         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3612         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3614 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
3616         * config/nvptx/nvptx.opt (moptimize): New flag.
3617         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3618         default.
3619         (nvptx_optimize_inner): New.
3620         (nvptx_process_pars): Call it when optimizing.
3621         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3623 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3625         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3626         Remove redundant code.
3628 2015-11-10  Jeff Law  <law@redhat.com>
3630         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3631         call to output_address.
3632         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3633         Add unnamed machine_mode argument.
3635 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3637         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3638         default to 64-bit.
3640 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3642         * config/i386/i386.md (*movabs<mode>_1): Add explicit
3643         size directives for -masm=intel.
3644         (*movabs<mode>_2): Ditto.
3646 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3648         * config/i386/i386.c (ix86_print_operand): Remove dead code that
3649         tried to avoid (%rip) for call operands.
3651 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
3653         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3654         argument.  Do not use RIP relative addressing when no_rip is set.
3655         (ix86_print_operand): Update call to ix86_print_operand_address_as.
3656         (ix86_print_operand_address): Ditto.
3657         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3658         absolute movabs operand 0.  Add square braces for -masm=intel.
3659         (*movabs<mode>_2): Ditto for operand 1.
3661 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3663         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3664         combine_vcvtf2i pattern.
3666 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3668         * config/arm/arm.c (neon_valid_immediate): Remove integer
3669         CONST_DOUBLE handling.  It should never occur.
3671 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
3673         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3674         (ATOMIC_LDOP): Likewise.
3675         (atomic_ldop): Likewise.
3676         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3677         (ATOMIC_LDOP): Likewise.
3678         (atomic_ldop): Likewise.
3680 2015-11-10  Martin Liska  <mliska@suse.cz>
3682         * alloc-pool.h (allocate_raw): New function.
3683         (operator new (size_t, object_allocator<T> &a)): Use the
3684         function instead of object_allocator::allocate).
3686 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3688         * config/i386/sse.md (HALFMASKMODE): New attribute.
3689         (DOUBLEMASKMODE): New attribute.
3690         (vec_pack_trunc_qi): New.
3691         (vec_pack_trunc_<mode>): New.
3692         (vec_unpacks_lo_hi): New.
3693         (vec_unpacks_lo_si): New.
3694         (vec_unpacks_lo_di): New.
3695         (vec_unpacks_hi_hi): New.
3696         (vec_unpacks_hi_<mode>): New.
3698 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3700         * optabs.c (expand_binop_directly): Allow scalar mode for
3701         vec_pack_trunc_optab.
3702         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3703         boolean vector producers from pattern sequence when computing VF.
3704         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3705         vect_recog_mask_conversion_pattern.
3706         (search_type_for_mask): Choose the smallest
3707         type if different size types are mixed.
3708         (build_mask_conversion): New.
3709         (vect_recog_mask_conversion_pattern): New.
3710         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3711         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3712         load with pattern.
3713         (vectorizable_conversion): Support boolean vectors.
3714         (free_stmt_vec_info): Allow patterns for statements with no lhs.
3715         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3717 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3719         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3720         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3721         Cast mask to FP mode if required.
3722         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3723         (vcond_mask_<mode><avx512fmaskmodelower>): New.
3724         (vcond_mask_<mode><sseintvecmodelower>): New.
3725         (vcond_mask_<mode><sseintvecmodelower>): New.
3726         (vcond_mask_v2div2di): New.
3727         (vcond_mask_<mode><sseintvecmodelower>): New.
3728         (vcond_mask_<mode><sseintvecmodelower>): New.
3730 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3732         * optabs-query.h (get_vcond_mask_icode): New.
3733         * optabs-tree.c (expand_vec_cond_expr_p): Use
3734         get_vcond_mask_icode for VEC_COND_EXPR with mask.
3735         * optabs.c (expand_vec_cond_mask_expr): New.
3736         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3737         * optabs.def (vcond_mask_optab): New.
3738         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3739         generate redundant comparison for COND_EXPR.
3740         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3741         as a condition.
3742         (vectorizable_condition): Likewise.
3743         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3744         cond_exp with no embedded comparison.
3745         (vect_build_slp_tree_1): Likewise.
3747 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3749         * config/i386/sse.md (maskload<mode>): Rename to ...
3750         (maskload<mode><sseintvecmodelower>): ... this.
3751         (maskstore<mode>): Rename to ...
3752         (maskstore<mode><sseintvecmodelower>): ... this.
3753         (maskload<mode><avx512fmaskmodelower>): New.
3754         (maskstore<mode><avx512fmaskmodelower>): New.
3756 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3758         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3759         (expand_MASK_STORE): Adjust to maskstore optab changes.
3760         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3761          Adjust to maskload, maskstore optab changes.
3762         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3763         * optabs.def (maskload_optab): Transform into convert optab.
3764         (maskstore_optab): Likewise.
3765         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3766         can_vec_mask_load_store_p signature change.
3767         (predicate_mem_writes): Use boolean mask.
3768         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3769         can_vec_mask_load_store_p signature change.  Allow invariant masks.
3770         (vectorizable_operation): Ignore type precision for boolean vectors.
3772 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3774         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3775         (const_vector_mask_from_tree): New.
3776         (const_vector_from_tree): Use const_vector_mask_from_tree
3777         for boolean vectors.
3778         * optabs-query.h (get_vec_cmp_icode): New.
3779         * optabs-tree.c (expand_vec_cmp_expr_p): New.
3780         * optabs-tree.h (expand_vec_cmp_expr_p): New.
3781         * optabs.c (vector_compare_rtx): Add OPNO arg.
3782         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3783         (expand_vec_cmp_expr): New.
3784         * optabs.def (vec_cmp_optab): New.
3785         (vec_cmpu_optab): New.
3786         * optabs.h (expand_vec_cmp_expr): New.
3787         * tree-vect-generic.c (expand_vector_comparison): Add vector
3788         comparison optabs check.
3789         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
3790         operations for VF.  Add mask type computation.
3791         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3792         (vectorizable_comparison): New.
3793         (vect_analyze_stmt): Add vectorizable_comparison.
3794         (vect_transform_stmt): Likewise.
3795         (vect_init_vector): Support boolean vector invariants.
3796         (vect_get_vec_def_for_operand): Add VECTYPE arg.
3797         (vectorizable_condition): Directly provide vectype for invariants
3798         used in comparison.
3799         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3800         (enum vect_var_kind): Add vect_mask_var.
3801         (enum stmt_vec_info_type): Add comparison_vec_info_type.
3802         (vectorizable_comparison): New.
3803         (vect_get_vec_def_for_operand): Add VECTYPE arg.
3804         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3805         (vect_create_destination_var): Likewise.
3806         * tree-vect-patterns.c (check_bool_pattern): Check fails
3807         if we can vectorize comparison directly.
3808         (search_type_for_mask): New.
3809         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3810         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3811         comparison statements.
3812         (vect_get_constant_vectors): Support boolean vector constants.
3813         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3814         (ix86_expand_int_vec_cmp): New.
3815         (ix86_expand_fp_vec_cmp): New.
3816         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3817         op_true and op_false.
3818         (ix86_int_cmp_code_to_pcmp_immediate): New.
3819         (ix86_fp_cmp_code_to_pcmp_immediate): New.
3820         (ix86_cmp_code_to_pcmp_immediate): New.
3821         (ix86_expand_mask_vec_cmp): New.
3822         (ix86_expand_fp_vec_cmp): New.
3823         (ix86_expand_int_sse_cmp): New.
3824         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3825         (ix86_expand_int_vec_cmp): New.
3826         (ix86_get_mask_mode): New.
3827         (TARGET_VECTORIZE_GET_MASK_MODE): New.
3828         * config/i386/sse.md (avx512fmaskmodelower): New.
3829         (vec_cmp<mode><avx512fmaskmodelower>): New.
3830         (vec_cmp<mode><sseintvecmodelower>): New.
3831         (vec_cmpv2div2di): New.
3832         (vec_cmpu<mode><avx512fmaskmodelower>): New.
3833         (vec_cmpu<mode><sseintvecmodelower>): New.
3834         (vec_cmpuv2div2di): New.
3836 2015-11-10  Richard Biener  <rguenther@suse.de>
3838         PR tree-optimization/68240
3839         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3840         properly.
3841         (visit_phi): For PHIs with just a single executable edge
3842         take its value directly.
3843         (expressions_equal_p): Handle VN_TOP properly.
3845 2015-11-10  Richard Biener  <rguenther@suse.de>
3847         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3848         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3849         conservatively.
3851 2015-11-10  Richard Biener  <rguenther@suse.de>
3853         PR tree-optimization/56118
3854         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3855         cost favor vectorized version.
3857 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3859         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3860         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3861         (neg_not_op): New code attribute.
3863 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3865         * ifcvt.c (noce_try_inverse_constants): New function.
3866         (noce_process_if_block): Call it.
3867         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3868         * optabs.def (negcc_optab, notcc_optab): Declare.
3869         * optabs.c (emit_conditional_neg_or_complement): New function.
3870         * doc/tm.texi (Standard Names): Document negcc, notcc names.
3872 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3874         PR rtl-optimization/68236
3875         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3876         if insn_queue doesn't exist.
3877         (haifa_sched_finish): Reset insn_queue to NULL.
3879 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
3881         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3882         (build_def_use): Initialize terminated_this_insn.
3883         (find_best_rename_reg): Pick and check register from the tied chain.
3884         (regrename_do_replace): Mark head as renamed.
3885         (struct du_head *terminated_this_insn). New static variable.
3886         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
3887         * regrename.h (struct du_head): Add tied_chain, renamed members.
3889 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3891         PR bootstrap/68256
3892         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3893         Return false.
3895 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3897         PR target/57845
3898         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3899         not promote the mode for aggregate types.
3901 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3903         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3904         * omp-low.c (build_oacc_routine_dims): New.
3906 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3908         * config/rs6000/constraints.md (wF constraint): New constraints
3909         for power9/toc fusion.
3910         (wG constraint): Likewise.
3912         * config/rs6000/predicates.md (u6bit_cint_operand): New
3913         predicate, recognize 0..63.
3914         (upper16_cint_operand): New predicate for power9 and toc fusion.
3915         (fpr_reg_operand): Likewise.
3916         (toc_fusion_or_p9_reg_operand): Likewise.
3917         (toc_fusion_mem_raw): Likewise.
3918         (toc_fusion_mem_wrapped): Likewise.
3919         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3920         address range.
3921         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3922         instead.
3923         (fusion_addis_mem_combo_load): Add support for power9 fusion of
3924         floating point loads, floating point stores, and gpr stores.
3925         (fusion_addis_mem_combo_store): Likewise.
3926         (fusion_offsettable_mem_operand): Likewise.
3928         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3929         (emit_fusion_load_store): Likewise.
3930         (fusion_p9_p): Likewise.
3931         (expand_fusion_p9_load): Likewise.
3932         (expand_fusion_p9_store): Likewise.
3933         (emit_fusion_p9_load): Likewise.
3934         (emit_fusion_p9_store): Likewise.
3935         (fusion_wrap_memory_address): Likewise.
3937         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3938         elements for power9 fusion.
3939         (rs6000_debug_print_mode): Rework debug information to print more
3940         information about fusion.
3941         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3942         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3943         offsettable memory address.
3944         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3945         (emit_fusion_gpr_load): Move most of the code from
3946         emit_fusion_gpr_load into emit_fusion-addis that handles both
3947         power8 and power9 fusion.
3948         (emit_fusion_addis): Likewise.
3949         (emit_fusion_load_store): Likewise.
3950         (fusion_wrap_memory_address): Add support for TOC fusion.
3951         (fusion_split_address): Likewise.
3952         (fusion_p9_p): Add support for power9 fusion.
3953         (expand_fusion_p9_load): Likewise.
3954         (expand_fusion_p9_store): Likewise.
3955         (emit_fusion_p9_load): Likewise.
3956         (emit_fusion_p9_store): Likewise.
3958         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3959         new instructions in ISA 3.0.
3960         (TARGET_CTZ): Likewise.
3961         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3962         (TARGET_TOC_FUSION_FP): Likewise.
3964         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3965         fusion unspecs.
3966         (UNSPEC_FUSION_ADDIS): Likewise.
3967         (QHSI mode iterator): New iterator for power9 fusion.
3968         (GPR_FUSION): Likewise.
3969         (FPR_FUSION): Likewise.
3970         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3971         (umod<mode>3): Likewise.
3972         (divmod peephole): Likewise.
3973         (udivmod peephole): Likewise.
3974         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3975         instructions.
3976         (ctz<mode>2_h): Likewise.
3977         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3978         (ashdi3_extswsli_dot): Likewise.
3979         (ashdi3_extswsli_dot2): Likewise.
3980         (power9 fusion splitter): New power9/toc fusion support.
3981         (toc_fusionload_<mode>): Likewise.
3982         (toc_fusionload_di): Likewise.
3983         (fusion_gpr_load_<mode>): Update predicate function.
3984         (power9 fusion peephole2s): New power9/toc fusion support.
3985         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3986         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3987         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3988         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3989         (fusion_p9_<mode>_constant): Likewise.
3991 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
3993         * optabs.c (prepare_libcall_arg): New function.
3994         (expand_fixed_convert): Add call to prepare_libcall_arg.
3996 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3998         * sched-int.h (dump_rgn_dependencies_dot): Declare
3999         * sched-rgn.c (dump_rgn_dependencies_dot): New function
4000         * print-rtl.h (print_insn): Add prototype
4002         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4003         * common.opt (-fsched-verbose): Set default value to 1.
4004         * invoke.texi (-fsched-verbose): Update the option's description.
4006 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4008         * config/visium/visium.h (PRINT_OPERAND): Delete.
4009         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4010         (PRINT_OPERAND_ADDRESS): Likewise.
4011         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4012         to...
4013         (visium_print_operand_punct_valid_p): ...this.  New function.
4014         (TARGET_PRINT_OPERAND): Define to...
4015         (print_operand): Rename to...
4016         (visium_print_operand): ...this.
4017         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4018         (visium_output_address): Rename to...
4019         (visium_print_operand_address): ...this.
4020         (print_operand_address): Delete.
4022 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4024         PR middle-end/68259
4025         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4026         Check that the type of the first operand is an aggregate type.
4028 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4030         * omp-low.c: Fix some OpenACC comment typos.
4031         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4032         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4033         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4035 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
4037         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4039 2015-11-09  Jeff Law  <law@redhat.com>
4041         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4042         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
4043         Fix comment typo.
4045 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4046             Peter Bergner  <bergner@vnet.ibm.com>
4048         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4049         ISA 3.0 (power9).
4050         (-mpower9-vector): Likewise.
4051         (-mpower9-dform): Likewise.
4052         (-mpower9-minmax): Likewise.
4053         (-mtoc-fusion): Likewise.
4054         (-mmodulo): Likewise.
4055         (-mfloat128-hardware): Likewise.
4057         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4058         mask for ISA 3.0 (power9).
4059         (POWERPC_MASKS): Add new ISA 3.0 switches.
4060         (power9 cpu): Add power9 cpu.
4062         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4063         (ASM_CPU_SPEC): Likewise.
4064         (EXTRA_SPECS): Likewise.
4066         * config/rs6000/rs6000-opts.h (enum processor_type): Add
4067         PROCESSOR_POWER9.
4069         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4070         (rs6000_debug_reg_global): Add support for power9 fusion.
4071         (rs6000_setup_reg_addr_masks): Cache mode size.
4072         (rs6000_option_override_internal): Until real power9 tuning is
4073         added, use -mtune=power8 for -mcpu=power9.
4074         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4075         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4076         of Altivec registers.
4077         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4078         (rs6000_loop_align): Add support for power9 cpu.
4079         (rs6000_file_start): Likewise.
4080         (rs6000_adjust_cost): Likewise.
4081         (rs6000_issue_rate): Likewise.
4082         (insn_must_be_first_in_group): Likewise.
4083         (insn_must_be_last_in_group): Likewise.
4084         (force_new_group): Likewise.
4085         (rs6000_register_move_cost): Likewise.
4086         (rs6000_opt_masks): Likewise.
4088         * config/rs6000/rs6000.md (cpu attribute): Add power9.
4089         * config/rs6000/rs6000-tables.opt: Regenerate.
4091         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4092         _ARCH_PWR9 if power9 support is available.
4094         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4095         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4097         * configure.ac: Determine if the assembler supports the ISA 3.0
4098         instructions.
4099         * config.in (HAVE_AS_POWER9): Likewise.
4100         * configure: Regenerate.
4102         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4103         switches.
4105 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4107         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4108         Remove integer CONST_DOUBLE handling.  It should never occur.
4110 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4112         PR target/68129
4113         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4114         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4115         Delete VOIDmode case.  Assert that mode is not VOIDmode.
4116         * config/aarch64/predicates.md (const0_operand): Remove const_double
4117         match.
4119 2015-11-09  Martin Liska  <mliska@suse.cz>
4121         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4122         body_info release function.
4123         * ipa-prop.c (ipa_release_body_info): New function.
4124         (ipa_analyze_node): Call the function.
4125         (ipa_node_params::~ipa_node_params): Release known_csts.
4126         * ipa-prop.h (ipa_release_body_info): Declare.
4128 2015-11-09  Martin Liska  <mliska@suse.cz>
4130         * gcc.c (record_temp_file): Release name string.
4131         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4132         * lra-lives.c (free_live_range_list): Utilize
4133         lra_live_range_pool for allocation and deallocation.
4134         (create_live_range): Likewise.
4135         (copy_live_range): Likewise.
4136         (lra_merge_live_ranges): Likewise.
4137         (remove_some_program_points_and_update_live_ranges): Likewise.
4138         (lra_create_live_ranges_1): Release point_freq_vec that can
4139         be not freed from previous iteration of the function.
4140         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4141         * tree-sra.c (sra_deinitialize): Release all vectors in
4142         base_access_vec.
4143         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4144         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4145         Release edge_info for a removed edge.
4146         (thread_through_all_blocks): Free region vector.
4147         * tree-ssa.h (free_dom_edge_info): Declare function extern.
4149 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
4151         * optabs.c (expand_vec_cond_expr): Always get sign from type.
4152         * tree.c (wide_int_to_tree): Support negative values for boolean.
4153         (build_nonstandard_boolean_type): Use signed type for booleans.
4155 2015-11-09  Richard Biener  <rguenther@suse.de>
4157         PR tree-optimization/68248
4158         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4160 2015-11-09  Richard Biener  <rguenther@suse.de>
4162         PR tree-optimization/56118
4163         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4164         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4165         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4166         function.
4167         (vect_slp_analyze_data_ref_dependences): Instead of computing
4168         all dependences of the region DRs just analyze the code motions
4169         SLP vectorization will perform.  Remove SLP instances that
4170         cannot have their store/load motions applied.
4171         (vect_analyze_data_refs): Allow DRs without a vectype
4172         in BB vectorization.
4174 2015-11-09  Julian Brown  <julian@codesourcery.com>
4176         * final.c (output_asm_insn): Pass VOIDmode to output_address.
4177         (output_address): Add MODE argument. Pass to print_operand_address
4178         hook.
4179         * targhooks.c (default_print_operand_address): Add MODE argument.
4180         * targhooks.h (default_print_operand_address): Update prototype.
4181         * output.h (output_address): Update prototype.
4182         * target.def (print_operand_address): Add MODE argument.
4183         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4184         output_address.
4185         (print_operand): Pass access mode to output_address.
4186         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4187         argument.
4188         (mcore_print_operand): Update calls to mcore_print_operand_address.
4189         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4190         output_address.
4191         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4192         output_address.
4193         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4194         global.
4195         (tilegx_print_operand): Don't set above global. Update calls to
4196         output_address.
4197         (tilegx_print_operand_address): Add MODE argument. Use instead of
4198         output_memory_reference_mode global.
4199         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4200         (frv_print_operand): Pass mode to frv_print_operand_address calls.
4201         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4202         output_address.
4203         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4204         (cris_print_operand): Pass mode to output_address calls.
4205         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4206         * config/aarch64/aarch64.h (aarch64_print_operand)
4207         (aarch64_print_operand_address): Remove prototypes.
4208         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4209         global.
4210         (aarch64_print_operand): Make static. Update calls to output_address.
4211         (aarch64_print_operand_address): Add MODE argument. Use instead of
4212         aarch64_memory_reference_mode global.
4213         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4214         hooks.
4215         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4216         Delete macro definitions.
4217         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4218         * config/xtensa/xtensa.c (print_operand): Pass mode in
4219         output_address calls.
4220         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4221         argument.
4222         (h83000_print_operand): Update calls to h8300_print_operand_address
4223         and output_address.
4224         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4225         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4226         global.
4227         (tilepro_print_operand): Pass mode to output_address.
4228         (tilepro_print_operand_address): Add MODE argument. Use instead of
4229         output_memory_reference_mode.
4230         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4231         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4232         to output_address calls.
4233         (nvptx_print_operand_address): Add MODE argument.
4234         * config/alpha/alpha.c (print_operand): Pass mode argument in
4235         output_address calls.
4236         * config/m68k/m68k.c (print_operand): Pass mode argument in
4237         output_address call.
4238         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4239         (avr_print_operand): Update calls to avr_print_operand_address.
4240         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4241         argument. Update calls to output_address.
4242         (sparc_print_operand): Pass mode to output_address.
4243         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4244         argument.
4245         (iq2000_print_operand): Pass mode in output_address calls.
4246         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4247         MODE argument.
4248         (xstormy16_print_operand): Pass mode to
4249         xstormy16_print_operand_address calls.
4250         * config/mips/mips.c (mips_print_operand): Update calls to
4251         output_address.
4252         (mips_print_operand_address): Add MODE argument.
4253         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4254         to output_address.
4255         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4256         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4257         output_address.
4258         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4259         (rx_print_operand): Update calls to output_address,
4260         rx_print_operand_address.
4261         * config/nds32/nds32.c (nds32_print_operand): Update calls to
4262         output_address.
4263         (nds32_print_operand_address): Add MODE argument.
4264         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4265         output_address calls.
4266         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4267         output_address call.
4268         (c6x_print_address_operand): Update calls to output_address.
4269         (c6x_print_operand_address): Pass mode to above.
4270         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4271         (v850_print_operand): Pass mode to v850_print_operand_address,
4272         output_address.
4273         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4274         (mmix_print_operand): Pass mode in output_address calls.
4275         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4276         (sh_print_operand): Pass mem mode to output_address,
4277         sh_print_operand_address.
4278         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4279         (cr16_print_operand): Pass mode to output_address,
4280         cr16_print_operand_address.
4281         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4282         output_address.
4283         * config/microblaze/microblaze.c (print_operand): Pass mode to
4284         output_address.
4285         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4286         output_address.
4287         (nios2_print_operand_address): Add MODE argument. Update call to
4288         nios2_print_operand_address.
4289         * config/s390/s390.c (print_operand): Pass mode to output_address.
4290         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4291         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4292         output_address.
4293         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4294         Use instead of output_memory_reference_mode.
4295         (output_memory_reference_mode): Delete global.
4296         (arm_print_operand): Pass mem mode to output_address.
4297         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4298         (m32r_print_operand): Pass mode to output_address.
4299         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4300         argument.
4301         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4302         * config/i386/i386.c (ix86_print_operand): Pass mode to
4303         output_address calls.
4304         (ix86_print_operand_address): Add MODE argument.
4306 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4308         PR middle-end/68251
4309         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4310         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4311         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4312         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4314 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4316         PR rtl-optimization/67749
4317         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4318         case before emitting the two blocks.  Instead modify the register
4319         in the corresponding final insn of the basic block.
4321 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4323         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4324         assembler syntax.
4325         Support Solaris ld.
4326         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4328         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4329         HAVE_INITFINI_ARRAY_SUPPORT.
4330         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4332         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4333         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4334         Don't check HAVE_AS_SPARC_NOBITS.
4335         Heed SECTION_NOTYPE.
4337         * configure: Regenerate.
4338         * config.in: Regenerate.
4340 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4342         PR middle-end/68253
4343         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4345 2015-11-09  Richard Henderson  <rth@redhat.com>
4347         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4348         __SEG_GS, __SEG_TLS.
4349         (ix86_register_pragmas): Register address spaces __seg_fs,
4350         __seg_gs, __seg_tls.
4351         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4352         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4353         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4354         * config/i386/i386.c (ix86_decompose_address): Likewise.
4355         (ix86_legitimate_address_p): Likewise.
4356         (memory_address_length): Likewise.  Check mem address space too.
4357         (ix86_print_operand): Use ix86_print_operand_address_as.
4358         (ix86_print_operand_address_as): Rename from
4359         ix86_print_operand_address, add new addr_space_t parameter.
4360         Validate that either the parameter or the ix86_address segment
4361         is default address space.  Handle ADDR_SPACE_SEG_TLS.
4362         (ix86_print_operand_address): New.
4363         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4364         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4365         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4366         (ix86_addr_space_zero_address_valid): New.
4367         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4368         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4369         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4370         * config/i386/predicates.md (address_no_seg_operand): Likewise.
4371         (vsib_address_operand): Likewise.
4372         (address_mpx_no_base_operand): Likewise.
4373         (address_mpx_no_index_operand): Likewise.
4374         * doc/extend.texi (x86 Named Address Spaces): New section.
4376         * config/i386/i386.c (ix86_check_no_addr_space): New.
4377         (decide_alg): Add have_as parameter.
4378         (alg_usable_p): Likewise; disable rep algorithms if set.
4379         (ix86_expand_set_or_movmem): Notice if either MEM has a
4380         non-default address space.
4381         (ix86_expand_strlen): Likewise.
4382         * config/i386/i386.md (strmov, strset): Likewise.
4383         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4384         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4385         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4386         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4387         *cmpstrnqi_1, *strlenqi_1): Likewise.
4389         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4390         (*movabs<mode>_2): Likewise.
4392         * dwarf2out.c (modified_type_die): Pass the address space number
4393         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4394         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4395         * targhooks.c (default_addr_space_debug): New.
4396         * targhooks.h (default_addr_space_debug): Declare.
4397         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4398         * doc/tm.texi: Rebuild.
4400         * gimple.c (check_loadstore): Return false when 0 is a valid address.
4401         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4402         null when 0 is valid in the source address space.
4403         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4404         * targhooks.c (default_addr_space_zero_address_valid): New.
4405         * targhooks.h (default_addr_space_zero_address_valid): Declare.
4406         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4407         * doc/tm.texi: Rebuild.
4409         * cselib.c (add_mem_for_addr): Compare address spaces when
4410         matching memories.
4411         (cselib_lookup_mem): Likewise.
4412         * fold-const.c (operand_equal_p): Check address spaces of
4413         pointer types before checking integer constants.
4415         PR tree-opt/66768
4416         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4417         the correct type for the base.
4419 2015-11-09  Jeff Law  <law@redhat.com>
4421         * tree-into-ssa.c (names_to_release): No longer static.
4422         * tree-into-ssa.h (names_to_release): Declare.
4423         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4424         (release_free_names_and_compact_live_names): New function extracted
4425         from pass_release_ssa_names::execute.
4426         (pass_release_ssa_names::execute): Use it.
4428 2015-11-09  Alan Modra  <amodra@gmail.com>
4430         * gensupport.c (add_mnemonic_string): Make len param a size_t.
4431         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
4432         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
4433         return value.
4435 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
4437         PR rtl-optimization/68182
4438         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4439         branch with only one successor just like unconditional branches.
4441 2015-11-08  Jeff Law  <law@redhat.com>
4443         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4444         non-FSM path has no edges marked with EDGE_DFS_BACK.
4445         (ssa_redirect_edges): No longer call mark_loop_for_removal.
4446         (thread_single_edge, def_split_header_continue_p): Remove.
4447         (bb_ends_with_multiway_branch): Likewise.
4448         (thread_through_loop_header): Remove cases of threading from
4449         latch through the header.  Simplify knowing we won't thread
4450         the latch.
4451         (thread_through_all_blocks): Simplify knowing that only the FSM
4452         threader needs to handle backedges.
4454 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4456         * doc/extend.texi (type attributes): Document scalar_storage_order.
4457         (Structure-Packing Pragmas): Rename into...
4458         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
4459         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4460         (Warnings): Document -Wno-scalar-storage-order.
4461         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4462         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4463         extract_bit_field and store_bit_field.
4464         (initialize_argument_information): Adjust call to store_expr.
4465         (load_register_parameters): Adjust call to extract_bit_field.
4466         * expmed.c (check_reverse_storage_order_support): New function.
4467         (check_reverse_float_storage_order_support): Likewise.
4468         (flip_storage_order): Likewise.
4469         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
4470         of the value if it is true.  Pass REVERSE to recursive call after
4471         adjusting the target offset.
4472         Do not use extraction or movstrict instruction if REVERSE is true.
4473         Pass REVERSE to store_fixed_bit_field.
4474         (store_bit_field): Add REVERSE parameter and pass to it to above.
4475         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4476         store_split_bit_field and store_fixed_bit_field_1.
4477         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
4478         order of the value if it is true and adjust the target offset.
4479         (store_split_bit_field): Add REVERSE parameter and pass it to
4480         store_fixed_bit_field.  Adjust the target offset if it is true.
4481         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
4482         of the value if it is true.  Pass REVERSE to recursive call after
4483         adjusting the target offset.
4484         Do not use extraction or subreg instruction if REVERSE is true.
4485         Pass REVERSE to extract_fixed_bit_field.
4486         (extract_bit_field): Add REVERSE parameter and pass to it to above.
4487         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4488         extract_split_bit_field and extract_fixed_bit_field_1.
4489         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
4490         order of the value if it is true and adjust the target offset.
4491         (extract_split_bit_field): Add REVERSE parameter and pass it to
4492         extract_fixed_bit_field.  Adjust the target offset if it is true.
4493         * expmed.h (flip_storage_order): Declare.
4494         (store_bit_field): Adjust prototype.
4495         (extract_bit_field): Likewise.
4496         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4497         (emit_group_store): Adjust call to store_bit_field.
4498         (copy_blkmode_from_reg): Likewise.
4499         (copy_blkmode_to_reg): Likewise.
4500         (write_complex_part): Likewise.
4501         (read_complex_part): Likewise.
4502         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
4503         that it isn't true if the target is a register.
4504         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4505         and flip the storage order of the value.
4506         <BIT_IOR_EXPR>: Flip the storage order of the value.
4507         (get_bit_range): Adjust call to get_inner_reference.
4508         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4509         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
4510         with reverse storage order.
4511         (store_expr_with_bounds): Add REVERSE parameter and pass it to
4512         recursive calls and call to store_bit_field.  Force the value into a
4513         register if it is true and then flip the storage order of the value.
4514         (store_expr): Add REVERSE parameter and pass it to above.
4515         (categorize_ctor_elements_1): Adjust call to
4516         initializer_constant_valid_p.
4517         (store_constructor_field): Add REVERSE parameter and pass it to
4518         recursive calls and call to store_field.
4519         (store_constructor): Add REVERSE parameter and pass it to calls to
4520         store_constructor_field and store_expr.  Set it to true for an
4521         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4522         (store_field): Add REVERSE parameter and pass it to recursive calls
4523         and calls to store_expr and store_bit_field.  Temporarily flip the
4524         storage order of the value with record type and integral mode and
4525         adjust the shift if it is true.
4526         (get_inner_reference): Add PREVERSEP parameter and set it to true
4527         upon encoutering a reference with reverse storage order.
4528         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4529         (expand_constructor): Adjust call to store_constructor.
4530         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4531         of the union type to store_expr in the MEM case and assert that it
4532         isn't set in the REG case.  Adjust call to store_field.
4533         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4534         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4535         get_inner_reference and extract_bit_field. Temporarily flip the
4536         storage order of the value with record type and integral mode and
4537         adjust the shift if it is true.  Flip the storage order of the value
4538         at the end if it is true.
4539         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4540         get_inner_reference.  Do not fetch an inner reference if it is true.
4541         * expr.h (store_expr_with_bounds): Ajust prototype.
4542         (store_expr): Likewise.
4543         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4544         REF_REVERSE_STORAGE_ORDER on the reference according to it.
4545         (optimize_bit_field_compare): Deal with reverse storage order.
4546         Adjust calls to get_inner_reference and make_bit_field_ref.
4547         (decode_field_reference): Add PREVERSEP parameter and adjust call to
4548         get_inner_reference.
4549         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
4550         to decode_field_reference and make_bit_field_ref.
4551         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4552         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4553         (fold_comparison): Adjust call to get_inner_reference.
4554         (split_address_to_core_and_offset): Adjust call to
4555         get_inner_reference.
4556         * gimple-expr.c (useless_type_conversion_p): Return false for array
4557         types with different TYPE_REVERSE_STORAGE_ORDER flag.
4558         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4559         REF_REVERSE_STORAGE_ORDER flag.
4560         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4561         * output.h (assemble_real): Adjust prototype.
4562         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4563         * stor-layout.c (finish_record_layout): Propagate the
4564         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4565         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4566         (TYPE_SATURATING): Adjust.
4567         (REF_REVERSE_STORAGE_ORDER): Document.
4568         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4569         set it to true upon encoutering a reference with reverse storage order.
4570         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4571         * tree-inline.c (remap_gimple_op_r): Propagate the
4572         REF_REVERSE_STORAGE_ORDER flag.
4573         (copy_tree_body_r): Likewise.
4574         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4575         store_expr.
4576         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4577         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4578         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4579         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4580         REF_REVERSE_STORAGE_ORDER flag.
4581         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4582         (gimple_canonical_types_compatible_p): Likewise.
4583         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4584         (TYPE_SATURATING): Adjust.
4585         (REF_REVERSE_STORAGE_ORDER): New flag.
4586         (reverse_storage_order_for_component_p): New inline predicate.
4587         (storage_order_barrier_p): Likewise.
4588         (get_inner_reference): Adjust prototype.
4589         * varasm.c: Include expmed.h.
4590         (assemble_variable_contents): Adjust call to output_constant.
4591         (assemble_real): Add REVERSE parameter.  Flip the storage
4592         order of the value if REVERSE is true.
4593         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4594         (assemble_constant_contents): Adjust call to output_constant.
4595         (output_constant_pool_2): Adjust call to assemble_real.
4596         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4597         TYPE_REVERSE_STORAGE_ORDER.
4598         (initializer_constant_valid_p): Add REVERSE parameter.
4599         (output_constant): Add REVERSE parameter.
4600         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4601         <REAL_TYPE>: Adjust call to assemble_real.
4602         <COMPLEX_TYPE>: Pass it to recursive calls.
4603         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
4604         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
4605         (struct oc_local_state): Add REVERSE field.
4606         (output_constructor_array_range): Adjust calls to output_constant.
4607         (output_constructor_regular_field): Likewise.
4608         (output_constructor_bitfield): Adjust call to output_constructor.
4609         Flip the storage order of the value if REVERSE is true.
4610         (output_constructor): Add REVERSE parameter.  Set it to true for an
4611         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
4612         output_constructor_bitfield.
4613         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4614         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4615         * builtins.c (get_object_alignment_2): Likewise.
4616         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4617         and get_ref_base_and_extent.
4618         * dbxout.c (dbxout_expand_expr): Likewise.
4619         * dwarf2out.c (add_var_loc_to_decl): Likewise.
4620         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4621         (loc_list_from_tree): Likewise.
4622         (fortran_common): Likewise.
4623         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4624         get_ref_base_and_extent.
4625         (get_base_constructor): Likewise.
4626         (fold_const_aggregate_ref_1): Likewise.
4627         * gimple-laddress.c (pass_laddress::execute): Adjust call to
4628         get_inner_reference.
4629         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4630         get_inner_reference and bail out on reverse storage order.
4631         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4632         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4633         build_ref_for_offset.
4634         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4635         get_ref_base_and_extent.
4636         (ipa_polymorphic_call_context): Likewise.
4637         (extr_type_from_vtbl_ptr_store): Likewise.
4638         (check_stmt_for_type_change): Likewise.
4639         (get_dynamic_type): Likewise.
4640         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4641         get_ref_base_and_extent.
4642         (compute_complex_assign_jump_func): Likewise.
4643         (get_ancestor_addr_info): Likewise.
4644         (compute_known_type_jump_func): Likewise.
4645         (determine_known_aggregate_parts): Likewise.
4646         (ipa_get_adjustment_candidate): Likewise.
4647         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4648         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4649         (build_ref_for_offset): Adjust prototype.
4650         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4651         get_inner_reference.
4652         * tree-affine.c (tree_to_aff_combination): Adjust call to
4653         get_inner_reference.
4654         (get_inner_reference_aff): Likewise.
4655         * tree-data-ref.c (split_constant_offset_1): Likewise.
4656         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
4657         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4658         get_inner_reference.
4659         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4660         (dump_access): Print new fields.
4661         (create_access): Adjust call to get_ref_base_and_extent and set the
4662         REVERSE flag according to the result.
4663         (completely_scalarize_record): Set the REVERSE flag.
4664         (scalarize_elem): Add REVERSE parameter.
4665         (build_access_from_expr_1): Preserve storage order barriers.
4666         (build_accesses_from_assign): Likewise.
4667         (build_ref_for_offset): Add REVERSE parameter and set the
4668         REF_REVERSE_STORAGE_ORDER flag accordingly.
4669         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4670         the REF_REVERSE_STORAGE_ORDER flag if there are components.
4671         (analyze_access_subtree): Likewise.
4672         (create_artificial_child_access): Set the REVERSE flag.
4673         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4674         (turn_representatives_into_adjustments): Propagate REVERSE flag.
4675         (ipa_sra_check_caller): Adjust call to get_inner_reference.
4676         * tree-ssa-alias.c (ao_ref_base): Adjust call to
4677         get_ref_base_and_extent.
4678         (aliasing_component_refs_p): Likewise.
4679         (stmt_kills_ref_p_1): Likewise.
4680         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4681         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4682         Return true if reverse storage order.
4683         <BIT_FIELD_REF>: Likewise.
4684         <COMPONENT_REF>: Likewise.
4685         <ARRAY_REF>: Likewise.
4686         <ARRAY_RANGE_REF>: Likewise.
4687         (split_address_cost): Likewise.  Bail out if reverse storage order.
4688         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4689         get_inner_reference.  Bail out if reverse storage order.
4690         (bswap_replace): Adjust call to get_inner_reference.
4691         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4692         the REF_REVERSE_STORAGE_ORDER flag.
4693         <BIT_FIELD_REF>: Likewise.
4694         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4695         barriers.
4696         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4697         to the REF_REVERSE_STORAGE_ORDER flag.
4698         <BIT_FIELD_REF>: Likewise.
4699         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4700         (contains_storage_order_barrier_p): New predicate.
4701         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4702         Punt on storage order barriers if necessary.
4703         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4704         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4705         call to get_ref_base_and_extent.
4706         (do_structure_copy): Likewise.
4707         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4708         get_inner_reference.
4709         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
4710         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4711         * ubsan.c (instrument_bool_enum_load): Likewise.
4712         (instrument_object_size): Likewise.
4713         * var-tracking.c (track_expr_p): Adjust call to
4714         get_ref_base_and_extent.
4715         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4716         get_inner_reference.
4717         * config/s390/s390.c (s390_expand_atomic): Adjust call to
4718         store_bit_field.
4719         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4720         extract_bit_field.
4721         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4723 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4725         * config/sparc/sparc.opt (mfix-at697f): Add final period.
4727 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4729         PR rtl-optimization/67864
4730         * common/config/i386/i386-common.c (ix86_option_optimization_table)
4731         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4732         at -Os and up.
4734 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4736         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4737         internal functions.
4739 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4741         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4742         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4744 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4746         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4747         * internal-fn.c: Don't undef it here.
4748         * tree-core.h: Likewise.
4750 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4752         * builtins.c (fold_builtin_nan): Delete.
4753         (fold_builtin_memcmp): Remove case where both arguments are constant.
4754         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4755         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4756         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4757         * fold-const-call.c: Include fold-const.h.
4758         (host_size_t_cst_p): New function.
4759         (build_cmp_result, fold_const_builtin_nan): Likewise.
4760         (fold_const_call_1): New function, split out from...
4761         (fold_const_call): ...here (for all three interfaces).  Handle
4762         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4764 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4766         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4767         (fold_builtin_1): Don't call them.
4768         * fold-const-call.c: Include tm.h.
4769         (fold_const_call_ss): New variant for integer-to-integer folds.
4770         (fold_const_call): Call it.
4772 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4774         * builtins.c (fold_builtin_classify): Move constant cases to...
4775         * fold-const-call.c (fold_const_call_ss): ...here.
4777 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4779         * builtins.h (c_getstr): Move to...
4780         * fold-const.h (c_getstr): ...here.
4781         * builtins.c (c_getstr): Move to...
4782         * fold-const.c (c_getstr): ...here.
4784 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4786         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4787         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4789 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4791         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4792         the dominance info; free it if we can't.
4793         (pass_call_cdce::execute): Don't free the dominance info here.
4795 2015-11-06  Jeff Law <law@redhat.com>
4797         * tree-ssa-threadedge.c (dummy_simplify): Remove.
4798         (thread_around_empty_blocks): Remove backedge_seen_p argument.
4799         If we thread to a backedge, then return false.  Update recursive
4800         call to eliminate backedge_seen_p argument.
4801         (thread_through_normal_block): Remove backedge_seen_p argument.
4802         Remove backedge_seen_p argument from calls to
4803         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
4804         If we thread to a backedge, then return 0.
4805         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
4806         pass it to thread_through_normal_block or thread_through_empty_blocks.
4807         For joiner handling, if we see a backedge, do not try normal
4808         threading.
4810 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4812         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4813         * graphite-poly.c (new_scop): Initialize original_schedule.
4814         (free_scop): Free original_schedule.
4815         * graphite-poly.h (struct scop): Add field original_schedule.
4816         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4817         (build_poly_scop): Call build_scop_original_schedule.
4819 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4821         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4822         (build_pbb_minimal_scattering_polyhedrons): New.
4823         (build_scop_scattering): Remove.
4824         (build_scop_minimal_scattering): New.
4825         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4826         (build_poly_scop): Call build_scop_minimal_scattering.
4828 2015-11-06  Jeff Law <law@redhat.com>
4830         * cfg-flags.def (IGNORE): New edge flag.
4831         * tree-vrp.c (identify_jump_threads): Mark and clear edges
4832         scheduled for removal with EDGE_IGNORE around call into
4833         jump threader.  Do no thread across edges with EDGE_IGNORE,
4834         but do allow threading across those with EDGE_DFS_BACK.
4836 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
4838         * doc/md.texi (multi-alternative constraints): Don't document
4839         alternatives inherently tied to reload for the user documentation.
4841 2015-11-06  Michael Collison  <michael.collison@linaro.org>
4842             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4844         Revert:
4845         2015-08-01  Michael Collison  <michael.collison@linaro.org
4846                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4848         * config/arm/arm.md (*arm_smin_cmp): New pattern.
4849         (*arm_umin_cmp): Likewise.
4851 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
4853         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4854         * omp-low.c (check_omp_nesting_restrictions): Update for the
4855         various new OpenMP 4.5 nesting restrictions, clarified
4856         nesting glossary, closely nested region relationship clarified
4857         to mean explicit or implicit parallel regions (target/teams),
4858         use %</%> or %qs where appropriate.
4860 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4861             Sebastian Pop  <s.pop@samsung.com>
4863         * graphite-scop-detection.c (loop_is_valid_scop): Call
4864         optimize_loop_nest_for_speed_p.
4866 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4867             Sebastian Pop  <s.pop@samsung.com>
4869         * graphite-optimize-isl.c (optimize_isl): Call
4870         isl_options_set_schedule_maximize_band_depth.
4872 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4873             Sebastian Pop  <s.pop@samsung.com>
4875         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4876         and exit edges should not be a part of irreducible loop.
4877         (scop_detection::can_represent_loop_1): Loops should not be
4878         irreducible.
4879         (scop_detection::harmful_stmt_in_region): All the basic block
4880         should belong to reducible loops.
4882 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
4884         * config/aarch64/aarch64-simd-builtins.def: Update builtins
4885         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4886         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4887         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4888         (aarch64_tbx4v8qi): Rename to...
4889         aarch64_tbx4<mode>): ... this.
4890         (aarch64_qtbl3<mode>): New pattern.
4891         (aarch64_qtbx3<mode>): New pattern.
4892         (aarch64_qtbl4<mode>): New pattern.
4893         (aarch64_qtbx4<mode>): New pattern.
4894         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4895         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4896         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4897         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4898         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4899         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4900         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4901         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4902         functions.
4904 2015-11-06  Mike Stump  <mikestump@comcast.net>
4906         PR debug/66728
4907         * dwarf2out.c (get_full_len): Return a value based upon the actual
4908         precision needed for the value.
4909         (add_const_value_attribute): Use a maximal wide-int for
4910         CONST_WIDE_INTs, not VOIDmode.
4911         (output_die): Don't ever output NULL with printf.
4913         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4914         BLKmode nor VOIDmode values.
4916 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4918         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4919         and "range2".
4920         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4921         * diagnostic-core.h (warning_at_rich_loc): New declaration.
4922         (error_at_rich_loc): New declaration.
4923         (permerror_at_rich_loc): New declaration.
4924         (inform_at_rich_loc): New declaration.
4925         * diagnostic-show-locus.c (adjust_line): Delete.
4926         (struct point_state): New struct.
4927         (class colorizer): New class.
4928         (class layout_point): New class.
4929         (class layout_range): New class.
4930         (struct line_bounds): New.
4931         (class layout): New class.
4932         (colorizer::colorizer): New ctor.
4933         (colorizer::~colorizer): New dtor.
4934         (layout::layout): New ctor.
4935         (layout::print_source_line): New method.
4936         (layout::print_annotation_line): New method.
4937         (layout::get_state_at_point): New method.
4938         (layout::get_x_bound_for_row): New method.
4939         (diagnostic_show_locus): Reimplement in terms of class layout.
4940         (diagnostic_print_caret_line): Delete.
4941         * diagnostic.c (diagnostic_initialize): Replace
4942         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4943         (diagnostic_set_info_translated): Convert param from location_t
4944         to rich_location *.  Eliminate calls to set_location on the
4945         message in favor of storing the rich_location ptr there.
4946         (diagnostic_set_info): Convert param from location_t to
4947         rich_location *.
4948         (diagnostic_build_prefix): Break out array into...
4949         (diagnostic_kind_color): New variable.
4950         (diagnostic_get_color_for_kind): New function.
4951         (diagnostic_report_diagnostic): Colorize the option_text
4952         using the color for the severity.
4953         (diagnostic_append_note): Update for change in signature of
4954         diagnostic_set_info.
4955         (diagnostic_append_note_at_rich_loc): New function.
4956         (emit_diagnostic): Update for change in signature of
4957         diagnostic_set_info.
4958         (inform): Likewise.
4959         (inform_at_rich_loc): New function.
4960         (inform_n): Update for change in signature of diagnostic_set_info.
4961         (warning): Likewise.
4962         (warning_at): Likewise.
4963         (warning_at_rich_loc): New function.
4964         (warning_n): Update for change in signature of diagnostic_set_info.
4965         (pedwarn): Likewise.
4966         (permerror): Likewise.
4967         (permerror_at_rich_loc): New function.
4968         (error): Update for change in signature of diagnostic_set_info.
4969         (error_n): Likewise.
4970         (error_at): Likewise.
4971         (error_at_rich_loc): New function.
4972         (sorry): Update for change in signature of diagnostic_set_info.
4973         (fatal_error): Likewise.
4974         (internal_error): Likewise.
4975         (internal_error_no_backtrace): Likewise.
4976         (source_range::debug): New function.
4977         * diagnostic.h (struct diagnostic_info): Eliminate field
4978         "override_column".  Add field "richloc".
4979         (struct diagnostic_context): Add field "colorize_source_p".
4980         (diagnostic_override_column): Delete.
4981         (diagnostic_set_info): Convert param from location_t to
4982         rich_location *.
4983         (diagnostic_set_info_translated): Likewise.
4984         (diagnostic_append_note_at_rich_loc): New function.
4985         (diagnostic_num_locations): New function.
4986         (diagnostic_expand_location): Get the location from the
4987         rich_location.
4988         (diagnostic_print_caret_line): Delete.
4989         (diagnostic_get_color_for_kind): New declaration.
4990         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4991         (error_cb): Update for change in signature of "error" callback.
4992         (fatal_at): Likewise.
4993         (warning_at): Likewise.
4994         * input.c (linemap_client_expand_location_to_spelling_point): New.
4995         * pretty-print.c (text_info::set_range): New method.
4996         (text_info::get_location): New method.
4997         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4998         (struct text_info): Eliminate "locations" array in favor of
4999         "m_richloc", a rich_location *.
5000         (textinfo::set_location): Add a "caret_p" param, and reimplement
5001         in terms of a call to set_range.
5002         (textinfo::get_location): Eliminate inline implementation in favor of
5003         an out-of-line reimplementation.
5004         (textinfo::set_range): New method.
5005         * rtl-error.c (diagnostic_for_asm): Update for change in signature
5006         of diagnostic_set_info.
5007         * tree-diagnostic.c (default_tree_printer): Update for new
5008         "caret_p" param for textinfo::set_location.
5009         * tree-pretty-print.c (percent_K_format): Likewise.
5011 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5013         Properly apply.
5014         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5015         * config/aarch64/aarch64.c
5016         (aarch64_can_use_per_function_literal_pools_p): New.
5017         (aarch64_use_blocks_for_constant_p): Adjust declaration
5018         and use aarch64_can_use_function_literal_pools_p.
5019         (aarch64_select_rtx_section): Update.
5021 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5023         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5024         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5025         (arm_output_multireg_pop): Likewise.
5026         (output_move_double):  Likewise.
5027         (output_move_quad):  Likewise.
5028         (output_return_instruction): Likewise.
5029         (arm_print_operand): Remove support for %( and %. print modifiers.
5030         (arm_output_shift): Make unified asm.
5031         (arm_declare_function_name): Likewise.
5032         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5033         (ASM_APP_OFF): Adjust.
5034         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5035         (ASM_OUTPUT_REG_POP): Likewise.
5036         * config/arm/arm.md: Adjust uses of %., %(, %)
5037         * config/arm/sync.md: Likewise.
5038         * config/arm/thumb2.md: Likewise.
5039         * config/arm/ldmstm.md: Regenerate.
5040         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5041         * doc/invoke.texi (masm-unified-syntax): Update documentation.
5043 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5045         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5047 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5049         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5050         add OEP_MATCH_SIDE_EFFECTS.
5051         * fold-const.c (operand_equal_p): Update documentation; handle
5052         OEP_MATCH_SIDE_EFFECTS.
5053         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5054         OEP_MATCH_SIDE_EFFECTS.
5056 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
5057             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5059         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5060         * config/aarch64/aarch64-protos.h: Declare.
5061         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5062         frsqrts.
5063         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5064         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5065         code when applicable.
5066         * config/aarch64/aarch64.md: Added enum entries.
5067         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5069 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5071         PR ipa/68057
5072         PR ipa/68220
5073         * ipa-polymorphic-call.c
5074         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5075         issue when offset is out of range.
5076         (contains_type_p): Fix out of range check, clear dynamic flag.
5078 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
5080         * config.gcc (e6500): Fix cpu_is_64bit typo.
5082 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
5084         * tree-sra.c (completely_scalarize): Properly handle negative array
5085         indices using offset_int.
5087 2015-11-06  Richard Biener  <rguenther@suse.de>
5089         * alloc-pool.h (object_allocator::allocate): Default-initialize
5090         object.
5092 2015-11-06  Richard Biener  <rguenther@suse.de>
5094         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5095         * lra.c (init_reg_info): Truncate copy_vec instead of
5096         re-allocating a new one and leaking the old.
5097         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5098         bb_infos vec.
5099         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5100         * postreload-gcse.c (free_mem): Free modify_mem_list and
5101         canon_modify_mem_list.
5103 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
5105         PR tree-optimization/68145
5106         * tree-vect-stmts.c (vectorizable_operation): Fix
5107         determination for booleans.
5109 2015-11-06  Tom de Vries  <tom@codesourcery.com>
5111         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5112         cond_jump, instead of split after last nondebug insn before cond_jump.
5113         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5114         returning.
5116 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5118         PR target/68088
5119         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5120         subregs from accumulator and make sure it's a register.
5122 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
5124         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5125         low part to scalar.
5126         (reduc_uplus_<mode>): Remove.
5127         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5128         loongson_extract_lo_<mode>.
5129         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5130         reduc_smax_<mode>, reduc_smax_<mode>, use vec
5131         loongson_extract_lo_<mode>.
5132         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5134 2015-11-06  Richard Biener  <rguenther@suse.de>
5136         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5137         members.
5138         (vect_stmt_in_region_p): Declare.
5139         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5140         (destroy_bb_vec_info): Likewise.
5141         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5142         (vect_get_and_check_slp_defs): Likewise.
5143         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5144         (vect_slp_bb): Likewise.
5145         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5146         in terms of vect_stmt_in_region_p.
5147         (vect_pattern_recog): Iterate over the BB region.
5148         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5149         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5150         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5151         * config/i386/i386.c: Include gimple-iterator.h.
5152         * config/aarch64/aarch64.c: Likewise.
5154 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
5156         PR rtl-optimization/67753
5157         PR rtl-optimization/64164
5158         * function.c (assign_parm_setup_block): Avoid allocating a
5159         stack slot if we don't have an ABI-reserved one.  Emit the
5160         copy to target_reg in the conversion seq if the copy from
5161         entry_parm is in it too.  Don't use the conversion seq to copy
5162         a PARALLEL to a REG or a CONCAT.
5164 2015-11-06  Richard Biener  <rguenther@suse.de>
5166         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5167         equal_keys.
5169 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
5170             Thomas Schwinge  <thomas@codesourcery.com>
5171             James Norris  <jnorris@codesourcery.com>
5174         * gimplify.c (gimplify_scan_omp_clauses): Add support for
5175         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
5176         (gimplify_adjust_omp_clauses): Likewise.
5177         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5178         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5179         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5180         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5181         (omp_clause_code_name): Likewise.
5182         (walk_tree_1): Handle OMP_CLAUSE_TILE.
5183         * tree.h (OMP_TILE_LIST): New macro.
5185 2015-11-05  Martin Sebor  <msebor@redhat.com>
5187         PR c++/67942
5188         * doc/invoke.texi (-Wplacement-new): Document new option.
5190 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
5192         PR tree-optimization/65963
5193         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5194         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5196 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
5198         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5199         (noce_convert_multiple_sets): Likewise.
5200         (noce_process_if_block): Call them.
5202 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5204         * gimple-fold.c: Include omp-low.h.
5205         (fold_internal_goacc_dim): New.
5206         (gimple_fold_call): Call it.
5208 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
5209             Ilya Verbin  <ilya.verbin@intel.com>
5211         * builtin-types.def
5212         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5213         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5214         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5215         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5216         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5217         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5218         (struct cgraph_simd_clone_arg): Adjust comment.
5219         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5220         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
5221         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5222         to GOMP_target_data_ext.
5223         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5224         to GOMP_target_update_ext.
5225         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5226         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5227         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5228         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5229         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5230         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5231         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5232         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5233         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5234         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5235         * tree-core.h (enum omp_clause_schedule_kind): Add
5236         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5237         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5238         OMP_CLAUSE_SCHEDULE_LAST value.
5239         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5240         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5241         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5242         OMP_FOR_CHECK.  Remove comment.
5243         * tree-pretty-print.c (dump_omp_clause): Handle
5244         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5245         Simplify.  Print schedule clause modifiers.
5246         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5247         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5248         cases.
5249         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5250         (omp_default_clause): Tweak for
5251         private/firstprivate/is_device_ptr variables on target
5252         construct and use_device_ptr on target data.
5253         (omp_check_private): Likewise.
5254         (omp_notice_variable): For references check whether what it refers
5255         to has mappable type, rather than the reference itself.
5256         (omp_is_private): Diagnose linear iteration variables on non-simd
5257         constructs.
5258         (omp_no_lastprivate): Return true only for Fortran.
5259         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5260         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5261         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5262         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5263         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
5264         lastprivate and linear when combined with distribute.  Gimplify
5265         variable low-bound for array reduction.  Look through
5266         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5267         reductions.
5268         (gimplify_adjust_omp_clauses_1): For implicit references to
5269         variables with reference type and when not ref to scalar or
5270         ref to pointer, map what they refer to using tofrom and
5271         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5272         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5273         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5274         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
5275         Diagnose the same var on both firstprivate and lastprivate on
5276         distribute construct.
5277         (gimplify_omp_for): Fix up handling of predetermined
5278         lastprivate or linear iter vars when combined with distribute.
5279         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5280         functions.
5281         (gimplify_omp_workshare): Call optimize_target_teams.
5282         * omp-low.c (struct omp_region): Add sched_modifiers field.
5283         (struct omp_for_data): Likewise.
5284         (omp_any_child_fn_dumped): New variable.
5285         (extract_omp_for_data): Fill in sched_modifiers, and mask out
5286         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5287         from sched_kind.
5288         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5289         bits of OMP_CLAUSE_SCHED_KIND.
5290         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5291         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
5292         for array section reductions.
5293         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5294         for distribute parallel for, if there are lastprivate clauses on the
5295         for.
5296         (lower_rec_input_clauses): Handle non-zero low-bound on array
5297         section reductions.
5298         (lower_reduction_clauses): Likewise.
5299         (lower_send_clauses): Look through POINTER_PLUS_EXPR
5300         for array section reductions.
5301         (expand_parallel_call): Use nonmonotonic entrypoints for
5302         nonmonotonic: dynamic/guided.
5303         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5304         child_fn if current_function_decl has assembler name set, but child_fn
5305         does not.  Dump the header and IL of the child function when not in SSA
5306         form.
5307         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
5308         arguments to BUILT_IN_GOMP_TARGET.
5309         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5310         Initialize the extra _looptemp_ clause to fd->loop.n2.
5311         (expand_omp_for): Use nonmonotonic entrypoints for
5312         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
5313         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
5314         again if we have dumped any child functions.
5315         (lower_omp_for_lastprivate): Determine the right count variable
5316         for distribute simd, or distribute parallel for{, simd}.
5317         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5318         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
5319         support.
5320         (simd_clone_clauses_extract): Handle variable step
5321         for references and arguments passed by reference.
5322         (simd_clone_mangle): Mangle ref/uval/val variable steps.
5323         (simd_clone_adjust_argument_types): Handle
5324         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5325         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5326         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5327         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5328         (simd_clone_linear_addend): New function.
5329         (simd_clone_adjust): Handle variable step like similarly
5330         to constant step, use simd_clone_linear_addend to determine
5331         the actual step at runtime.
5333 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5335         * target.def (goacc.dim_limit): New hook.
5336         * targhooks.h (default_goacc_dim_limit): Declare.
5337         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5338         * doc/tm.texi: Rebuilt.
5339         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5340         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5341         (default_goacc_dim_limit): New.
5342         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5343         (nvptx_goacc_dim_limit) New.
5344         (TARGET_GOACC_DIM_LIMIT): Override.
5345         * tree-vrp.c: Include omp-low.h, target.h.
5346         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5347         IFN_GOACC_DIM_POS.
5349 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5351         * tree-vect-generic.c (do_compare): Use -1 for true
5352         result instead of 1.
5354 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5356         * config/aarch64/aarch64.c
5357         (aarch64_can_use_per_function_literal_pools_p): New.
5358         (aarch64_use_blocks_for_constant_p): Adjust declaration
5359         and use aarch64_can_use_function_literal_pools_p.
5360         (aarch64_select_rtx_section): Update.
5362 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5364         * targhooks.c (default_get_mask_mode): Use BLKmode in
5365         case target doesn't support required vector mode.
5366         * stor-layout.c (layout_type); Check for BLKmode.
5368 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5369             Sebastian Pop  <s.pop@samsung.com>
5371         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5372         Remove use of parameter_rename_map.
5373         (copy_def): Remove.
5374         (copy_internal_parameters): Remove.
5375         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5376         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5377         (free_sese_info): Do not free parameter_rename_map.
5378         (set_rename): Do not use parameter_rename_map.
5379         (rename_uses): Update call to set_rename.
5380         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5381         * sese.h (parameter_rename_map_t): Remove.
5382         (struct sese_info_t): Remove field parameter_rename_map.
5384 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5385             Sebastian Pop  <s.pop@samsung.com>
5387         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5388         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5389         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5390         anonymous namespace.
5391         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5392         (isl_id_for_pbb): Use a buffer of size 10.
5393         (isl_id_for_ssa_name): Same.
5394         * sese.c (set_rename): Add more dumps.
5396 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5398         * omp-low.c (struct omp_context): Remove reduction_map field.
5399         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5400         (new_omp_context, delete_omp_context, scan_omp_target): Remove
5401         reduction_map handling.
5402         (lower_omp_target): Remove obsolete openacc reduction handling.
5404 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5406         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5408 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5409             Cesar Philippidis  <cesar@codesourcery.com>
5411         * config/nvptx/nvptx.c: Include gimple headers.
5412         (worker_red_size, worker_red_align, worker_red_name,
5413         worker_red_sym): New.
5414         (nvptx_option_override): Initialize worker reduction buffer.
5415         (nvptx_file_end): Write out worker reduction buffer var.
5416         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5417         nvptx_expand_cmp_swap): New builtin expanders.
5418         (enum nvptx_builtins): New.
5419         (nvptx_builtin_decls): New.
5420         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5421         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5422         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5423         nvptx_lockless_update): New helpers.
5424         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5425         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5426         (nvptx_goacc_reduction): New.
5427         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5428         TARGET_BUILTIN_DECL): Override.
5429         (TARGET_GOACC_REDUCTION): Override.
5431 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5432             Cesar Philippidis  <cesar@codesourcery.com>
5434         * internal-fn.def (GOACC_REDUCTION): New.
5435         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5436         * internal-fn.c (expand_GOACC_REDUCTION): New.
5437         * target.def (goacc.reduction): New OpenACC hook.
5438         * targhooks.h (default_goacc_reduction): Declare.
5439         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5440         * doc/tm.texi: Rebuilt.
5441         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5442         scan_sharing_clauses): Remove oacc reduction handling here.
5443         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5444         (oacc_lower_reduction_var_helper): Delete.
5445         (lower_oacc_reductions): New.
5446         (lower_reduction_clauses): Don't handle OpenACC reductions here.
5447         (lower_oacc_head_tail): Call lower_oacc_reductions.
5448         (oacc_gimple_assign, oacc_init_reduction_array,
5449         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5450         oacc_process_reduction_data): Delete.
5451         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
5452         dummy OpenACC gang reduction for reductions at outer level.
5453         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5454         (default_goacc_reduction): New.
5455         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5457 2015-11-04  Martin Liska  <mliska@suse.cz>
5459         * cgraphunit.c (cgraph_node::expand_thunk): Call
5460         allocate_struct_function before init_function_start.
5461         (cgraph_node::expand): Use push_cfun and pop_cfun.
5462         * config/i386/i386.c (ix86_code_end): Call
5463         allocate_struct_function before init_function_start.
5464         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5465         * function.c (init_function_start): Move preamble to all
5466         callers.
5467         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5468         (execute_one_pass): Handle newly added TODO_discard_function.
5469         (execute_pass_list_1): Terminate if cfun equals to NULL.
5470         (execute_pass_list): Do not push and pop cfun, expect that
5471         cfun is set.
5472         * tree-pass.h (TODO_discard_function): Define.
5474 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
5476         * cfganal.c (inverted_post_order_compute): Remove conditional
5477         compilation, use flag_checking.
5478         * config.in: Regenerate.
5479         * configure: Regenerate.
5480         * configure.ac: Remove ENABLE_CHECKING.
5481         * genconditions.c: Do not #undef ENABLE_CHECKING.
5482         * sese.h (bb_in_region): Comment out broken check.
5483         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5484         conditional compilation, use flag_checking.
5486 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5488         PR tree-optimization/67742
5489         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5490         field.
5491         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5492         (create_variable_info_for_1): Add and handle handle_param parameter.
5493         Add restrict handling.
5494         (create_variable_info_for): Call create_variable_info_for_1 with extra
5495         arg.
5496         (make_param_constraints): Drop restrict_name parameter.  Ignore
5497         vi->only_restrict_pointers.
5498         (intra_create_variable_infos): Call create_variable_info_for_1 with
5499         extra arg.  Remove restrict handling.  Call make_param_constraints with
5500         one fewer arg.
5502 2015-11-04  Tom de Vries  <tom@codesourcery.com>
5504         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5505         variable.
5507 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5509         * config/arm/coff.h: Remove.
5511 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5513         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5514         check for aggregate types and beef up comment for mode check.
5516 2015-11-03  Richard Biener  <rguenther@suse.de>
5518         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5519         data references here.
5520         * tree-vect-loop.c: Include cgraph.h.
5521         (vect_analyze_loop_2): Collect data references here.
5522         * tree-vect-slp.c (find_bb_location): Inline ...
5523         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
5524         Factor in vect_slp_transform_bb.
5525         (vect_slp_transform_bb): Removed.
5526         (vect_slp_analyze_bb_1): Collect data references here.
5527         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5528         vect_slp_bb.
5529         * tree-vectorizer.h (vect_slp_bb): Declare.
5530         (vect_slp_analyze_bb): Remove.
5531         (vect_slp_transform_bb): Remove.
5532         (find_bb_location): Remove.
5533         (vect_analyze_data_refs): Remove stmt count reference parameter.
5535 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
5537         * multiple_target.c (create_dispatcher_calls): Add target check
5538         on ifunc.
5539         (create_target_clone): Change assembler name for versioned declarations.
5541 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
5542             Chung-Lin Tang  <cltang@codesourcery.com>
5544         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5545         * omp-low.c (check_omp_nesting_restrictions): Allow
5546         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5547         contexts.
5549 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
5551         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5552         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5553         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5554         builtin.
5555         (vmulxq_f32): Likewise.
5556         (vmulx_f64): New.
5557         (vmulxq_f64): Rewrite to call fmulx builtin.
5558         (vmulxs_f32): Likewise.
5559         (vmulxd_f64): Likewise.
5560         (vmulx_lane_f32): Remove.
5561         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5563 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
5565         * config/aarch64/aarch64.md (*movhf_aarch64): Use
5566         aarch64_reg_or_fp_zero for second operand.
5568 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
5570         * gimple-expr.c: Include hash-set.h and rtl.h.
5571         (mark_addressable_queue): New var.
5572         (mark_addressable): Factor actual marking into...
5573         (mark_addressable_1): ... this.  Queue it up during expand.
5574         (mark_addressable_2): New.
5575         (flush_mark_addressable_queue): New.
5576         * gimple-expr.h (flush_mark_addressable_queue): Declare.
5577         * cfgexpand.c: Include gimple-expr.h.
5578         (pass_expand::execute): Flush mark_addressable queue.
5580 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
5582         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5583         bb_no_side_effects_p tests...
5584         (tree_ssa_ifcombine_bb): ... here.
5586         PR tree-optimization/68083
5587         * tree-ssa-ifcombine.c: Include tree-ssa.h.
5588         (bb_no_side_effects_p): Test for undefined uses too.
5589         * tree-ssa.c (gimple_uses_undefined_value_p): New.
5590         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5592 2015-11-02  Jeff Law <law@redhat.com>
5594         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5595         cases where the loop latch edge is in the middle of an FSM path.
5597 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5599         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5600         (make_param_constraints): ... this.  Add and handle restrict_name
5601         parameter.  Handle is_full_var case.
5602         (intra_create_variable_infos): Use make_param_constraints.
5604 2015-11-03  Tom de Vries  <tom@codesourcery.com>
5606         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5607         make_copy_constraint call with make_constraint_from call.
5609 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
5611         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5612         PIE executables.
5614 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
5616         * builtins.h (fold_fma): Move to fold-const-call.h.
5617         * builtins.c: Include fold-const-call.h.
5618         (mathfn_built_in_2): New function, split out from...
5619         (mathfn_built_in_1): ...here.
5620         (do_real_to_int_conversion, fold_const_builtin_pow)
5621         (fold_const_builtin_logb, fold_const_builtin_significand)
5622         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5623         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5624         (fold_builtin_sincos): Use fold_const_call to handle constants.
5625         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5626         checks for ERROR_MARK.  Use fold_const_call to handle constant
5627         folds for math functions.
5628         (fold_fma): Move to fold-const-call.c.
5629         * fold-const.c: Include fold-const-call.h.
5630         * Makefile.in (OBJS): Add fold-const-call.o.
5631         (PLUGIN_HEADERS): Add fold-const-call.h.
5632         * realmpfr.h (real_from_mpfr): Allow the format to be specified
5633         directly.
5634         * realmpfr.c (real_from_mpfr): Likewise.
5635         * fold-const-call.h, fold-const-call.c: New files.
5637 2015-11-02  Julian Brown  <julian@codesourcery.com>
5639         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5640         brackets and semicolon.
5642 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
5644         Revert:
5645         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
5647         PR tree-optimization/65963
5648         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5649         LSHIFT_EXPRs as equivalent MULT_EXPRs.
5651 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5653         PR middle-end/68166
5654         * fold-const.c: Include "md5.h".
5656 2015-11-01  Jeff Law <law@redhat.com>
5658         * vmsdbgout.c: Revert unused header file reduction patch.
5660         * config/mcore/mcore.c: Include regs.h.
5662 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5664         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5666 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
5668         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5669         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5670         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5672 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5674         * ggc-common.c: Restore needed header for checking=release.
5676 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5678         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5680 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5682         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5683         existing varinfo for arguments.
5685 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5687         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5688         create_function_info_for.  Dump constraints generated during
5689         create_function_info_for. Move intra_create_variable_infos call and
5690         function-return-values-escape bit to ...
5691         (create_function_info_for): ... here, and merge
5692         intra_create_variable_infos call with argument loop.  Add and handle
5693         nonlocal_p parameter.
5695 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5697         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5698         updating is alap, and seperated from preceding code.  Make sure
5699         insert_vi_for_tree is seperated from surrounding code.
5701 2015-10-31  Tom de Vries  <tom@codesourcery.com>
5703         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5705 2015-10-30  Jeff Law <law@redhat.com>
5706             Nathan Sidwell  <nathan@acm.org>
5708         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5709         args.
5710         (MOVE_MAX): Set to 8.
5712 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
5714         * cgraph.c: Include context.h for offloading.
5715         * varpool.c: Include context.h and omp-low.h.
5717 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
5719         * rtl.h (contains_symbol_ref_p): Declare.
5720         (SYMBOL_REF_P): Define.
5721         * rtlanal.c (contains_symbol_ref_p: New function.
5722         * lra-constraints.c (contains_symbol_ref_p): Remove.
5723         * var-tracking.c (contains_symbol_ref): Remove.
5724         (track_expr_p): Use contains_symbol_ref_p instead of
5725         contains_symbol_ref.
5727 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5729         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5730         * fold-const.c (get_array_ctor_element_at_index): New.
5731         (fold): Remove binary-search through CONSTRUCTOR, call previous.
5733         * fold-const.h (get_array_ctor_element_at_index): New.
5735 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
5737         * Makefile.in (OBJS): Add multiple_target.o.
5738         * attrib.c (make_attribute): Moved from config/i386/i386.c
5739         * config/i386/i386.c (make_attribute): Deleted.
5740         * multiple_target.c (create_dispatcher_calls): New.
5741         (get_attr_len): Ditto.
5742         (get_attr_str): Ditto.
5743         (separate_attrs): Ditto.
5744         (is_valid_asm_symbol): Ditto.
5745         (create_new_asm_name): Ditto.
5746         (create_target_clone): Ditto.
5747         (expand_target_clones): Ditto.
5748         (ipa_target_clone): Ditto.
5749         (ipa_dispatcher_calls): Ditto.
5750         * passes.def (pass_target_clone): Two new ipa passes.
5751         * tree-pass.h (make_pass_target_clone): Ditto.
5752         * doc/extend.texi (target_clones): New attribute description.
5754 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5756         PR rtl-optimization/68106
5757         * lra-remat.c (input_regno_present_p): Process hard regs
5758         explicitly present in machine description insns.
5759         (call_used_input_regno_present_p): Ditto.
5760         (calculate_gen_cands): Ditto.
5761         (do_remat): Ditto.
5763 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
5765         * config/arm/neon-testgen.ml: Fix comment typo.
5767 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5769         * rtlanal.c (reg_set_p): Expand function comment.
5771 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
5773         * alias.c: Remove unused headers.
5774         * asan.c: Likewise.
5775         * attribs.c: Likewise.
5776         * auto-inc-dec.c: Likewise.
5777         * auto-profile.c: Likewise.
5778         * bb-reorder.c: Likewise.
5779         * bitmap.c: Likewise.
5780         * bt-load.c: Likewise.
5781         * builtins.c: Likewise.
5782         * caller-save.c: Likewise.
5783         * calls.c: Likewise.
5784         * ccmp.c: Likewise.
5785         * cfg.c: Likewise.
5786         * cfganal.c: Likewise.
5787         * cfgbuild.c: Likewise.
5788         * cfgcleanup.c: Likewise.
5789         * cfgexpand.c: Likewise.
5790         * cfghooks.c: Likewise.
5791         * cfgloop.c: Likewise.
5792         * cfgloopanal.c: Likewise.
5793         * cfgloopmanip.c: Likewise.
5794         * cfgrtl.c: Likewise.
5795         * cgraph.c: Likewise.
5796         * cgraphbuild.c: Likewise.
5797         * cgraphclones.c: Likewise.
5798         * cgraphunit.c: Likewise.
5799         * cilk-common.c: Likewise.
5800         * combine-stack-adj.c: Likewise.
5801         * combine.c: Likewise.
5802         * compare-elim.c: Likewise.
5803         * convert.c: Likewise.
5804         * coverage.c: Likewise.
5805         * cppbuiltin.c: Likewise.
5806         * cprop.c: Likewise.
5807         * cse.c: Likewise.
5808         * cselib.c: Likewise.
5809         * data-streamer-in.c: Likewise.
5810         * data-streamer-out.c: Likewise.
5811         * data-streamer.c: Likewise.
5812         * dbxout.c: Likewise.
5813         * dce.c: Likewise.
5814         * ddg.c: Likewise.
5815         * debug.c: Likewise.
5816         * df-core.c: Likewise.
5817         * df-problems.c: Likewise.
5818         * df-scan.c: Likewise.
5819         * dfp.c: Likewise.
5820         * dojump.c: Likewise.
5821         * dominance.c: Likewise.
5822         * domwalk.c: Likewise.
5823         * double-int.c: Likewise.
5824         * dse.c: Likewise.
5825         * dumpfile.c: Likewise.
5826         * dwarf2asm.c: Likewise.
5827         * dwarf2cfi.c: Likewise.
5828         * dwarf2out.c: Likewise.
5829         * emit-rtl.c: Likewise.
5830         * except.c: Likewise.
5831         * explow.c: Likewise.
5832         * expmed.c: Likewise.
5833         * expr.c: Likewise.
5834         * final.c: Likewise.
5835         * fixed-value.c: Likewise.
5836         * fold-const.c: Likewise.
5837         * function.c: Likewise.
5838         * fwprop.c: Likewise.
5839         * gcse.c: Likewise.
5840         * generic-match-head.c: Likewise.
5841         * ggc-common.c: Likewise.
5842         * gimple-builder.c: Likewise.
5843         * gimple-expr.c: Likewise.
5844         * gimple-fold.c: Likewise.
5845         * gimple-iterator.c: Likewise.
5846         * gimple-low.c: Likewise.
5847         * gimple-match-head.c: Likewise.
5848         * gimple-pretty-print.c: Likewise.
5849         * gimple-ssa-isolate-paths.c: Likewise.
5850         * gimple-ssa-strength-reduction.c: Likewise.
5851         * gimple-streamer-in.c: Likewise.
5852         * gimple-streamer-out.c: Likewise.
5853         * gimple-walk.c: Likewise.
5854         * gimple.c: Likewise.
5855         * gimplify-me.c: Likewise.
5856         * gimplify.c: Likewise.
5857         * godump.c: Likewise.
5858         * graph.c: Likewise.
5859         * graphds.c: Likewise.
5860         * haifa-sched.c: Likewise.
5861         * hw-doloop.c: Likewise.
5862         * ifcvt.c: Likewise.
5863         * init-regs.c: Likewise.
5864         * internal-fn.c: Likewise.
5865         * ipa-chkp.c: Likewise.
5866         * ipa-comdats.c: Likewise.
5867         * ipa-cp.c: Likewise.
5868         * ipa-devirt.c: Likewise.
5869         * ipa-icf-gimple.c: Likewise.
5870         * ipa-icf.c: Likewise.
5871         * ipa-inline-analysis.c: Likewise.
5872         * ipa-inline-transform.c: Likewise.
5873         * ipa-inline.c: Likewise.
5874         * ipa-polymorphic-call.c: Likewise.
5875         * ipa-profile.c: Likewise.
5876         * ipa-prop.c: Likewise.
5877         * ipa-pure-const.c: Likewise.
5878         * ipa-ref.c: Likewise.
5879         * ipa-reference.c: Likewise.
5880         * ipa-split.c: Likewise.
5881         * ipa-utils.c: Likewise.
5882         * ipa-visibility.c: Likewise.
5883         * ipa.c: Likewise.
5884         * ira-build.c: Likewise.
5885         * ira-color.c: Likewise.
5886         * ira-conflicts.c: Likewise.
5887         * ira-costs.c: Likewise.
5888         * ira-emit.c: Likewise.
5889         * ira-lives.c: Likewise.
5890         * ira.c: Likewise.
5891         * jump.c: Likewise.
5892         * langhooks.c: Likewise.
5893         * lcm.c: Likewise.
5894         * lists.c: Likewise.
5895         * loop-doloop.c: Likewise.
5896         * loop-init.c: Likewise.
5897         * loop-invariant.c: Likewise.
5898         * loop-iv.c: Likewise.
5899         * loop-unroll.c: Likewise.
5900         * lower-subreg.c: Likewise.
5901         * lra-assigns.c: Likewise.
5902         * lra-coalesce.c: Likewise.
5903         * lra-constraints.c: Likewise.
5904         * lra-eliminations.c: Likewise.
5905         * lra-lives.c: Likewise.
5906         * lra-remat.c: Likewise.
5907         * lra-spills.c: Likewise.
5908         * lra.c: Likewise.
5909         * lto-cgraph.c: Likewise.
5910         * lto-compress.c: Likewise.
5911         * lto-opts.c: Likewise.
5912         * lto-section-in.c: Likewise.
5913         * lto-section-out.c: Likewise.
5914         * lto-streamer-in.c: Likewise.
5915         * lto-streamer-out.c: Likewise.
5916         * lto-streamer.c: Likewise.
5917         * mcf.c: Likewise.
5918         * mode-switching.c: Likewise.
5919         * modulo-sched.c: Likewise.
5920         * optabs.c: Likewise.
5921         * opts-global.c: Likewise.
5922         * passes.c: Likewise.
5923         * plugin.c: Likewise.
5924         * postreload-gcse.c: Likewise.
5925         * postreload.c: Likewise.
5926         * predict.c: Likewise.
5927         * print-tree.c: Likewise.
5928         * profile.c: Likewise.
5929         * real.c: Likewise.
5930         * realmpfr.c: Likewise.
5931         * recog.c: Likewise.
5932         * ree.c: Likewise.
5933         * reg-stack.c: Likewise.
5934         * regcprop.c: Likewise.
5935         * reginfo.c: Likewise.
5936         * regrename.c: Likewise.
5937         * regstat.c: Likewise.
5938         * reload.c: Likewise.
5939         * reload1.c: Likewise.
5940         * reorg.c: Likewise.
5941         * resource.c: Likewise.
5942         * rtl-chkp.c: Likewise.
5943         * rtl-error.c: Likewise.
5944         * rtlanal.c: Likewise.
5945         * rtlhooks.c: Likewise.
5946         * sanopt.c: Likewise.
5947         * sched-deps.c: Likewise.
5948         * sched-ebb.c: Likewise.
5949         * sched-rgn.c: Likewise.
5950         * sdbout.c: Likewise.
5951         * sel-sched-dump.c: Likewise.
5952         * sel-sched-ir.c: Likewise.
5953         * sel-sched.c: Likewise.
5954         * sese.c: Likewise.
5955         * shrink-wrap.c: Likewise.
5956         * simplify-rtx.c: Likewise.
5957         * stack-ptr-mod.c: Likewise.
5958         * statistics.c: Likewise.
5959         * stmt.c: Likewise.
5960         * stor-layout.c: Likewise.
5961         * store-motion.c: Likewise.
5962         * stringpool.c: Likewise.
5963         * symtab.c: Likewise.
5964         * target-globals.c: Likewise.
5965         * targhooks.c: Likewise.
5966         * toplev.c: Likewise.
5967         * tracer.c: Likewise.
5968         * trans-mem.c: Likewise.
5969         * tree-affine.c: Likewise.
5970         * tree-call-cdce.c: Likewise.
5971         * tree-cfg.c: Likewise.
5972         * tree-cfgcleanup.c: Likewise.
5973         * tree-chkp-opt.c: Likewise.
5974         * tree-chkp.c: Likewise.
5975         * tree-chrec.c: Likewise.
5976         * tree-complex.c: Likewise.
5977         * tree-data-ref.c: Likewise.
5978         * tree-dfa.c: Likewise.
5979         * tree-diagnostic.c: Likewise.
5980         * tree-dump.c: Likewise.
5981         * tree-eh.c: Likewise.
5982         * tree-emutls.c: Likewise.
5983         * tree-if-conv.c: Likewise.
5984         * tree-inline.c: Likewise.
5985         * tree-into-ssa.c: Likewise.
5986         * tree-iterator.c: Likewise.
5987         * tree-loop-distribution.c: Likewise.
5988         * tree-nested.c: Likewise.
5989         * tree-nrv.c: Likewise.
5990         * tree-object-size.c: Likewise.
5991         * tree-outof-ssa.c: Likewise.
5992         * tree-parloops.c: Likewise.
5993         * tree-phinodes.c: Likewise.
5994         * tree-predcom.c: Likewise.
5995         * tree-pretty-print.c: Likewise.
5996         * tree-profile.c: Likewise.
5997         * tree-scalar-evolution.c: Likewise.
5998         * tree-sra.c: Likewise.
5999         * tree-ssa-address.c: Likewise.
6000         * tree-ssa-alias.c: Likewise.
6001         * tree-ssa-ccp.c: Likewise.
6002         * tree-ssa-coalesce.c: Likewise.
6003         * tree-ssa-copy.c: Likewise.
6004         * tree-ssa-dce.c: Likewise.
6005         * tree-ssa-dse.c: Likewise.
6006         * tree-ssa-forwprop.c: Likewise.
6007         * tree-ssa-ifcombine.c: Likewise.
6008         * tree-ssa-live.c: Likewise.
6009         * tree-ssa-loop-ch.c: Likewise.
6010         * tree-ssa-loop-im.c: Likewise.
6011         * tree-ssa-loop-ivcanon.c: Likewise.
6012         * tree-ssa-loop-ivopts.c: Likewise.
6013         * tree-ssa-loop-manip.c: Likewise.
6014         * tree-ssa-loop-niter.c: Likewise.
6015         * tree-ssa-loop-prefetch.c: Likewise.
6016         * tree-ssa-loop-unswitch.c: Likewise.
6017         * tree-ssa-loop.c: Likewise.
6018         * tree-ssa-math-opts.c: Likewise.
6019         * tree-ssa-operands.c: Likewise.
6020         * tree-ssa-phiopt.c: Likewise.
6021         * tree-ssa-phiprop.c: Likewise.
6022         * tree-ssa-pre.c: Likewise.
6023         * tree-ssa-propagate.c: Likewise.
6024         * tree-ssa-reassoc.c: Likewise.
6025         * tree-ssa-scopedtables.c: Likewise.
6026         * tree-ssa-sink.c: Likewise.
6027         * tree-ssa-strlen.c: Likewise.
6028         * tree-ssa-structalias.c: Likewise.
6029         * tree-ssa-tail-merge.c: Likewise.
6030         * tree-ssa-ter.c: Likewise.
6031         * tree-ssa-threadupdate.c: Likewise.
6032         * tree-ssa-uncprop.c: Likewise.
6033         * tree-ssa-uninit.c: Likewise.
6034         * tree-ssa.c: Likewise.
6035         * tree-ssanames.c: Likewise.
6036         * tree-stdarg.c: Likewise.
6037         * tree-streamer-in.c: Likewise.
6038         * tree-streamer-out.c: Likewise.
6039         * tree-streamer.c: Likewise.
6040         * tree-switch-conversion.c: Likewise.
6041         * tree-tailcall.c: Likewise.
6042         * tree-vect-data-refs.c: Likewise.
6043         * tree-vect-generic.c: Likewise.
6044         * tree-vect-loop-manip.c: Likewise.
6045         * tree-vect-loop.c: Likewise.
6046         * tree-vect-patterns.c: Likewise.
6047         * tree-vect-slp.c: Likewise.
6048         * tree-vect-stmts.c: Likewise.
6049         * tree-vectorizer.c: Likewise.
6050         * tree-vrp.c: Likewise.
6051         * tree.c: Likewise.
6052         * tsan.c: Likewise.
6053         * ubsan.c: Likewise.
6054         * value-prof.c: Likewise.
6055         * var-tracking.c: Likewise.
6056         * varasm.c: Likewise.
6057         * varpool.c: Likewise.
6058         * vmsdbgout.c: Likewise.
6059         * vtable-verify.c: Likewise.
6060         * web.c: Likewise.
6061         * wide-int-print.cc: Likewise.
6062         * wide-int.cc: Likewise.
6063         * xcoffout.c: Likewise.
6065 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
6067         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6068         between pass numbering and execution order.
6070 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6072         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6073         check for dependencies.
6075 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6077         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6078         CDI_DOMINATORS.
6080 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6082         * real.h (format_helper): New.
6083         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6084         (real_from_target, real_nan, real_2expN, real_value_truncate)
6085         (significand_size, real_from_string2, exact_real_inverse)
6086         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6087         (real_round, real_isinteger, real_from_integer): Replace
6088         machine_mode arguments with format_helper arguments.
6089         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6090         (real_from_integer, real_nan, real_2expN, real_convert)
6091         (real_value_truncate, exact_real_truncate, real_to_target)
6092         (real_from_target, significand_size, real_powi, real_trunc)
6093         (real_floor, real_ceil, real_round, real_isinteger): Replace
6094         machine_mode arguments with format_helper arguments.
6095         (real_to_target_fmt, real_from_target_fmt): Delete.
6096         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6097         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6098         argument with real_format.
6099         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6101 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6103         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6104         (fixed_to_decimal, fixed_convert_from_real)
6105         (real_convert_from_fixed): Fix mode arguments to real_2expN.
6107 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6109         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6110         SCALAR_FLOAT_MODE_P.
6112 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6114         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6115         (completely_scalarize): Comment zero-length arrays.
6116         (get_access_replacement): Correct comment re. precondition.
6118 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6120         * config/i386/i386.c (get_builtin_code_for_version): Set priority
6121         for PROCESSOR_ZNVER1.
6122         (enum processor_model): Add M_AMDFAM17H_znver1.
6123         (struct arch_names_table): Likewise.
6124         * doc/extend.texi: ADD znver1.
6126 2015-10-30  Richard Biener  <rguenther@suse.de>
6128         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6129         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
6130         zeros to be folded to VECTOR_CSTs.
6131         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6132         * fold-const.c (fold): Use build_vector_from_ctor.
6134 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
6136         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6137         "mov %0.h[0], %1.h[0] to "neon_move".
6138         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6139         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6140         "mov_imm".
6141         (*cmovsi_insn_uxtw): Likewise.
6143 2015-10-30  Tom de Vries  <tom@codesourcery.com>
6145         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6146         unsigned, and initialize, and use initial value instead of hardcoded
6147         constant.  Add generic constraints dumping section.  Don't dump global
6148         initializers constraints dumping section if empty.  Don't update
6149         variable from if unused.
6151 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6153         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6154         flag_checking and/or CHECKING_P to eliminate conditional compilation
6155         on ENABLE_CHECKING.
6156         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6157         * config/bfin/bfin.c (hwloop_optimize): Likewise.
6158         * config/i386/i386.c (ix86_print_operand_address): Likewise.
6159         (output_387_binary_op): Likewise.
6160         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6161         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6162         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6163         Likewise.
6164         * config/rs6000/rs6000.h: Likewise.
6165         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6167 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6169         * config/sh/sh.opt (mfdpic): Add missing period.
6171 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6173         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6174         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6175         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6176         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6177         mcore_base_register_rtx_p, mcore_legitimate_index_p,
6178         mcore_legitimate_address_p): New functions.
6179         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6181 2015-10-29  Jeff Law  <law@redhat.com>
6183         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6184         method.
6185         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6186         * tree-ssa-threadedge.c
6187         (record_temporary_equivalences_from_stmts_at_dest): Remove
6188         backedge_seen argument and associated code which invalidated
6189         equivalences based on the value of that argument.
6190         (thread_through_normal_block): Corresponding changes.
6192 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6194         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6195         function earlier in the file.
6196         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6197         df_regs_ever_live_p.
6199 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6201         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6202         by ignoring it.
6204 2015-10-29  Richard Henderson  <rth@redhat.com>
6206         PR target/68124
6207         PR rtl-opt/67609
6208         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6209         sse check to the exact conditions of PR 67609.
6211 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6213         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6214         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6215         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6216         of the traditional names that TFmode uses for handling IEEE
6217         extended double. If -mfloat128, add KFmode functions for all of
6218         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6219         make TFmode use the same emulation functions as KFmode.
6220         (init_float128_ibm): Likewise.
6221         (init_float128_ieee): Likewise.
6222         (rs6000_generate_compare): For IEEE 128-bit floating point
6223         comparisons, call the unordered comparison function instead of the
6224         ordered comparison function.
6225         (rs6000_expand_float128_convert): Deal with operands that are
6226         memory operands. Restructure the code to use a switch statement on
6227         the mode. Add support for TFmode defaulting to either IBM extended
6228         double or IEEE 128-bit floating point. If the underlying types are
6229         the same, use a move instead of a conversion function.
6230         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6231         use for IEEE 128-bit floating point constants with -mfloat128.
6232         (rs6000_c_mode_for_suffix): Likewise.
6233         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6234         128-bit floating point with IBM extended double floating point.
6235         (rs6000_invalid_binary_op): Likewise.
6236         (rs6000_gen_le_vsx_permute): On little endian systems generate a
6237         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6238         types that can go in vector registers.
6239         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6240         point types that can go in vector registers on little endian
6241         PowerPC systems.
6242         (mark_swaps_for_removal): Likewise.
6243         (rs6000_analyze_swaps): Likewise.
6244         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6246         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6247         rework IEEE 128-bit floating point insns to deal with TFmode being
6248         either IBM extended double or IEEE 128-bit floating point.
6249         (IFKF): Likewise.
6250         (IBM128): Update iterator to add condition that the mode is IBM
6251         extended double.
6252         (IEEE128): New iterator for IEEE 128-bit floating point.
6253         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6254         (FLOAT128): Likewise.
6255         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6256         iterator.
6257         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6258         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6259         instead of hard coding TFmode or KFmode.
6260         (negtf2_internal): Likewise.
6261         (neg<mode>2_internal): Likewise.
6262         (abs<mode>2): Likewise.
6263         (abstf2_internal): Likewise.
6264         (abs<mode>2_internal): Likewise.
6265         (ieee_128bit_neg<mode>2): Likewise.
6266         (ieee_128bit_neg<mode>2_internal): Likewise.
6267         (ieee_128bit_abs<mode>2): Likewise.
6268         (ieee_128bit_abs<mode>2_internal): Likewise.
6269         (ieee_128bit_nabs<mode>2): Likewise.
6270         (ieee_128bit_nabs<mode>2_internal): Likewise.
6271         (extendiftf2): Add explicit conversions between 128-bit floating
6272         point types. Drop the old conversions that had become unwieldy.
6273         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6274         (extendifkf2): Likewise.
6275         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6276         (extendtfkf2): Likewise.
6277         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6278         (trunciftf2): Likewise.
6279         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6280         (truncifkf2): Likewise.
6281         (float<SDI:mode><IFKF:mode>2): Likewise.
6282         (trunckftf2): Likewise.
6283         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6284         (trunctfif2): Likewise.
6285         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6286         (extenddftf2): Rework 128-bit floating point conversions to
6287         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6288         KFmode expanders into one function.
6289         (extenddf<mode>2): Likewise.
6290         (extenddftf2_fprs): Likewise.
6291         (extenddf<mode>2_fprs): Likewise.
6292         (extenddftf2_vsx): Likewise.
6293         (extenddf<mode>2_vsx): Likewise.
6294         (extendsftf2): Likewise.
6295         (extendsf<mode>2): Likewise.
6296         (trunctfdf2): Likewise.
6297         (trunc<mode>df2): Likewise.
6298         (trunctfdf2_internal1): Likewise.
6299         (trunc<mode>df2_internal1): Likewise.
6300         (trunctfdf2_internal2): Likewise.
6301         (trunc<mode>df2_internal2): Likewise.
6302         (trunctfsf2): Likewise.
6303         (trunc<mode>sf2): Likewise.
6304         (trunctfsf2_fprs): Likewise.
6305         (trunc<mode>sf2_fprs): Likewise.
6306         (floatsit2f): Likewise.
6307         (floatsi<mode>2): Likewise.
6308         (fix_trunc_helper): Likewise.
6309         (fix_trunc_helper<mode>): Likewise.
6310         (fix_trunctfsi2): Likewise.
6311         (fix_trunc<mode>si2): Likewise.
6312         (fix_trunctfsi2_fprs): Likewise.
6313         (fix_trunc<mode>si2_fprs): Likewise.
6314         (fix_trunctfsi2_internal): Likewise.
6315         (fix_trunc<mode>si2_internal): Likewise.
6316         (fix_trunctfdi2): Likewise.
6317         (fix_trunc<mode>di2): Likewise.
6318         (fixuns_trunctf<mode>2): Likewise.
6319         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6320         (floatditf2): Likewise.
6321         (floatdi<mode>2): Likewise.
6322         (floatuns<mode>tf2): Likewise.
6323         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6324         (cmptf_internal1): Use a mode iterator to add support for both
6325         types (IFmode, TFmode) that support IBM extended double.
6326         (cmp<mode>_internal1): Likewise.
6327         (cmptf_internal2): Likewise.
6328         (cmp<mode>_internal2): Likewise.
6330         * doc/extend.texi (Floating Types): Document __ibm128 and
6331         __float128 on PowerPC.
6333         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6334         -mfloat128 and -mno-float128.
6336 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6338         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6339         floating point modes that can go in vector registers.
6340         (MODES_TIEABLE_P): Move tests for vector modes before tests for
6341         scalar floating point, so that IEEE 128-bit floating point that
6342         can go in vector registers bind with vectors and not FP.
6343         (struct rs6000_args): Add libcall field.
6345         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6346         and -mfloat128-software switches.  Replace them with a binary
6347         -mfloat128 switch.
6348         (-mfloat128): Likewise.
6350         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6351         128-bit floating point types in GPRs, even if the appropriate
6352         option enabling the type was not used.
6353         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6354         debugging.
6355         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6356         pre-decrement on IEEE 128-bit floating point values.
6357         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6358         is IEEE 128-bit floating point.
6359         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6360         128-bit floating point types that can go in vector registers.
6361         (rs6000_option_override_internal): Change -mfloat128-none and
6362         -mfloat128-software to -mfloat128, and move code to be near other
6363         VSX option handling.
6364         (rs6000_option_override_internal): Disable -mfloat128 if we don't
6365         have the Altivec ABI.
6366         (rs6000_init_builtins): Don't make TFmode use either IFmode or
6367         KFmode floating point nodes. Instead, have three separate nodes.
6368         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6369         eventually moving the long double default to IEEE 128-bit floating
6370         point.
6371         (rs6000_opt_masks): Add -mfloat128.
6372         (struct rs6000_opt_var): Fix typo in comment.
6373         (init_cumulative_args): Initialize libcall field in
6374         CUMULATIVE_ARGS.
6375         (rs6000_function_arg): Treat library functions as if they had
6376         prototypes to prevent IEEE 128-bit support functions from passing
6377         arguments in both GPRs and vector registers.
6378         (rs6000_arg_partial_bytes): Likewise.
6380         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6381         an option that can be turned on via -mcpu=<xxx>.
6383         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6384         longer used.
6386         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6387         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6388         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6389         double is IBM extended double.
6391         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6392         SUBREGs.
6394 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6396         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6397         * genconditions.c: Define CHECKING_P in the generated code.
6398         * genextract.c: Use flag_checking in insn_extract.
6399         * gengtype.c (main): Remove conditional compilation.
6400         * gengtype.h: Likewise.
6402 2015-10-29  Jeff Law  <law@redhat.com>
6404         PR tree-optimization/67892
6405         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6406         in comment.
6407         (thread_through_normal_block): If we have seen a backedge, then
6408         do nothing.  No longer call find_jump_threads_backwards here.
6409         (thread_across_edge): Use find_jump_threads_backwards to find
6410         jump threads if the old style threader was not successful.
6411         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6412         gsi_last_nondebug_bb.  Return NULL if the block does not end
6413         with a control statement.
6414         (find_jump_threads_backwards): Setup code moved here from
6415         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
6416         single edge argument instead of name & block.
6417         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6418         prototype.
6420 2015-10-29  Tom de Vries  <tom@codesourcery.com>
6422         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6423         types.
6425 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6427         * omp-low.c (lower_omp_target): Remove unreachable code & merge
6428         ifs.
6430 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
6432         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6434 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6436         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6437         guard_bb0 and use guard_bb throughout.
6439 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6441         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6442         unnecessary label.
6444 2015-10-29  Richard Biener  <rguenther@suse.de>
6446         PR middle-end/68142
6447         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6448         overflow.
6450 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
6452         * alias.c: Reorder #include statements and remove duplicates.
6453         * asan.c: Likewise.
6454         * attribs.c: Likewise.
6455         * auto-inc-dec.c: Likewise.
6456         * auto-profile.c: Likewise.
6457         * bb-reorder.c: Likewise.
6458         * bt-load.c: Likewise.
6459         * builtins.c: Likewise.
6460         * caller-save.c: Likewise.
6461         * calls.c: Likewise.
6462         * ccmp.c: Likewise.
6463         * cfg.c: Likewise.
6464         * cfganal.c: Likewise.
6465         * cfgbuild.c: Likewise.
6466         * cfgcleanup.c: Likewise.
6467         * cfgexpand.c: Likewise.
6468         * cfghooks.c: Likewise.
6469         * cfgloop.c: Likewise.
6470         * cfgloopanal.c: Likewise.
6471         * cfgloopmanip.c: Likewise.
6472         * cfgrtl.c: Likewise.
6473         * cgraph.c: Likewise.
6474         * cgraphbuild.c: Likewise.
6475         * cgraphclones.c: Likewise.
6476         * cgraphunit.c: Likewise.
6477         * cilk-common.c: Likewise.
6478         * combine-stack-adj.c: Likewise.
6479         * combine.c: Likewise.
6480         * compare-elim.c: Likewise.
6481         * convert.c: Likewise.
6482         * coverage.c: Likewise.
6483         * cppbuiltin.c: Likewise.
6484         * cprop.c: Likewise.
6485         * cse.c: Likewise.
6486         * cselib.c: Likewise.
6487         * data-streamer-in.c: Likewise.
6488         * data-streamer-out.c: Likewise.
6489         * data-streamer.c: Likewise.
6490         * dbxout.c: Likewise.
6491         * dce.c: Likewise.
6492         * ddg.c: Likewise.
6493         * debug.c: Likewise.
6494         * df-core.c: Likewise.
6495         * df-problems.c: Likewise.
6496         * df-scan.c: Likewise.
6497         * dfp.c: Likewise.
6498         * dojump.c: Likewise.
6499         * dominance.c: Likewise.
6500         * double-int.c: Likewise.
6501         * dse.c: Likewise.
6502         * dumpfile.c: Likewise.
6503         * dwarf2asm.c: Likewise.
6504         * dwarf2cfi.c: Likewise.
6505         * dwarf2out.c: Likewise.
6506         * emit-rtl.c: Likewise.
6507         * except.c: Likewise.
6508         * explow.c: Likewise.
6509         * expmed.c: Likewise.
6510         * expr.c: Likewise.
6511         * final.c: Likewise.
6512         * fixed-value.c: Likewise.
6513         * fold-const.c: Likewise.
6514         * function.c: Likewise.
6515         * fwprop.c: Likewise.
6516         * gcse.c: Likewise.
6517         * generic-match-head.c: Likewise.
6518         * ggc-common.c: Likewise.
6519         * gimple-builder.c: Likewise.
6520         * gimple-expr.c: Likewise.
6521         * gimple-fold.c: Likewise.
6522         * gimple-iterator.c: Likewise.
6523         * gimple-low.c: Likewise.
6524         * gimple-match-head.c: Likewise.
6525         * gimple-pretty-print.c: Likewise.
6526         * gimple-ssa-isolate-paths.c: Likewise.
6527         * gimple-ssa-strength-reduction.c: Likewise.
6528         * gimple-streamer-in.c: Likewise.
6529         * gimple-streamer-out.c: Likewise.
6530         * gimple-walk.c: Likewise.
6531         * gimple.c: Likewise.
6532         * gimplify-me.c: Likewise.
6533         * gimplify.c: Likewise.
6534         * godump.c: Likewise.
6535         * graph.c: Likewise.
6536         * graphite-poly.c: Likewise.
6537         * haifa-sched.c: Likewise.
6538         * hw-doloop.c: Likewise.
6539         * ifcvt.c: Likewise.
6540         * incpath.c: Likewise.
6541         * init-regs.c: Likewise.
6542         * internal-fn.c: Likewise.
6543         * ipa-chkp.c: Likewise.
6544         * ipa-comdats.c: Likewise.
6545         * ipa-cp.c: Likewise.
6546         * ipa-devirt.c: Likewise.
6547         * ipa-icf-gimple.c: Likewise.
6548         * ipa-icf.c: Likewise.
6549         * ipa-inline-analysis.c: Likewise.
6550         * ipa-inline-transform.c: Likewise.
6551         * ipa-inline.c: Likewise.
6552         * ipa-polymorphic-call.c: Likewise.
6553         * ipa-profile.c: Likewise.
6554         * ipa-prop.c: Likewise.
6555         * ipa-pure-const.c: Likewise.
6556         * ipa-ref.c: Likewise.
6557         * ipa-reference.c: Likewise.
6558         * ipa-split.c: Likewise.
6559         * ipa-utils.c: Likewise.
6560         * ipa-visibility.c: Likewise.
6561         * ipa.c: Likewise.
6562         * ira-build.c: Likewise.
6563         * ira-color.c: Likewise.
6564         * ira-conflicts.c: Likewise.
6565         * ira-costs.c: Likewise.
6566         * ira-emit.c: Likewise.
6567         * ira-lives.c: Likewise.
6568         * ira.c: Likewise.
6569         * jump.c: Likewise.
6570         * langhooks.c: Likewise.
6571         * lcm.c: Likewise.
6572         * lists.c: Likewise.
6573         * loop-doloop.c: Likewise.
6574         * loop-init.c: Likewise.
6575         * loop-invariant.c: Likewise.
6576         * loop-iv.c: Likewise.
6577         * loop-unroll.c: Likewise.
6578         * lower-subreg.c: Likewise.
6579         * lra-assigns.c: Likewise.
6580         * lra-coalesce.c: Likewise.
6581         * lra-constraints.c: Likewise.
6582         * lra-eliminations.c: Likewise.
6583         * lra-lives.c: Likewise.
6584         * lra-remat.c: Likewise.
6585         * lra-spills.c: Likewise.
6586         * lra.c: Likewise.
6587         * lto-cgraph.c: Likewise.
6588         * lto-compress.c: Likewise.
6589         * lto-opts.c: Likewise.
6590         * lto-section-in.c: Likewise.
6591         * lto-section-out.c: Likewise.
6592         * lto-streamer-in.c: Likewise.
6593         * lto-streamer-out.c: Likewise.
6594         * lto-streamer.c: Likewise.
6595         * mode-switching.c: Likewise.
6596         * modulo-sched.c: Likewise.
6597         * omp-low.c: Likewise.
6598         * optabs.c: Likewise.
6599         * opts-global.c: Likewise.
6600         * passes.c: Likewise.
6601         * plugin.c: Likewise.
6602         * postreload-gcse.c: Likewise.
6603         * postreload.c: Likewise.
6604         * predict.c: Likewise.
6605         * print-tree.c: Likewise.
6606         * profile.c: Likewise.
6607         * real.c: Likewise.
6608         * realmpfr.c: Likewise.
6609         * recog.c: Likewise.
6610         * ree.c: Likewise.
6611         * reg-stack.c: Likewise.
6612         * regcprop.c: Likewise.
6613         * reginfo.c: Likewise.
6614         * regrename.c: Likewise.
6615         * regstat.c: Likewise.
6616         * reload.c: Likewise.
6617         * reload1.c: Likewise.
6618         * reorg.c: Likewise.
6619         * resource.c: Likewise.
6620         * rtl-chkp.c: Likewise.
6621         * rtl-error.c: Likewise.
6622         * rtlanal.c: Likewise.
6623         * rtlhooks.c: Likewise.
6624         * sanopt.c: Likewise.
6625         * sched-deps.c: Likewise.
6626         * sched-ebb.c: Likewise.
6627         * sched-rgn.c: Likewise.
6628         * sese.c: Likewise.
6629         * shrink-wrap.c: Likewise.
6630         * simplify-rtx.c: Likewise.
6631         * stack-ptr-mod.c: Likewise.
6632         * statistics.c: Likewise.
6633         * stmt.c: Likewise.
6634         * stor-layout.c: Likewise.
6635         * store-motion.c: Likewise.
6636         * stringpool.c: Likewise.
6637         * symtab.c: Likewise.
6638         * target-globals.c: Likewise.
6639         * targhooks.c: Likewise.
6640         * toplev.c: Likewise.
6641         * tracer.c: Likewise.
6642         * trans-mem.c: Likewise.
6643         * tree-affine.c: Likewise.
6644         * tree-call-cdce.c: Likewise.
6645         * tree-cfg.c: Likewise.
6646         * tree-cfgcleanup.c: Likewise.
6647         * tree-chkp-opt.c: Likewise.
6648         * tree-chkp.c: Likewise.
6649         * tree-chrec.c: Likewise.
6650         * tree-complex.c: Likewise.
6651         * tree-data-ref.c: Likewise.
6652         * tree-dfa.c: Likewise.
6653         * tree-diagnostic.c: Likewise.
6654         * tree-dump.c: Likewise.
6655         * tree-eh.c: Likewise.
6656         * tree-emutls.c: Likewise.
6657         * tree-if-conv.c: Likewise.
6658         * tree-inline.c: Likewise.
6659         * tree-into-ssa.c: Likewise.
6660         * tree-iterator.c: Likewise.
6661         * tree-loop-distribution.c: Likewise.
6662         * tree-nested.c: Likewise.
6663         * tree-nrv.c: Likewise.
6664         * tree-object-size.c: Likewise.
6665         * tree-outof-ssa.c: Likewise.
6666         * tree-parloops.c: Likewise.
6667         * tree-phinodes.c: Likewise.
6668         * tree-predcom.c: Likewise.
6669         * tree-pretty-print.c: Likewise.
6670         * tree-profile.c: Likewise.
6671         * tree-scalar-evolution.c: Likewise.
6672         * tree-sra.c: Likewise.
6673         * tree-ssa-address.c: Likewise.
6674         * tree-ssa-alias.c: Likewise.
6675         * tree-ssa-ccp.c: Likewise.
6676         * tree-ssa-coalesce.c: Likewise.
6677         * tree-ssa-copy.c: Likewise.
6678         * tree-ssa-dce.c: Likewise.
6679         * tree-ssa-dom.c: Likewise.
6680         * tree-ssa-dse.c: Likewise.
6681         * tree-ssa-forwprop.c: Likewise.
6682         * tree-ssa-ifcombine.c: Likewise.
6683         * tree-ssa-live.c: Likewise.
6684         * tree-ssa-loop-ch.c: Likewise.
6685         * tree-ssa-loop-im.c: Likewise.
6686         * tree-ssa-loop-ivcanon.c: Likewise.
6687         * tree-ssa-loop-ivopts.c: Likewise.
6688         * tree-ssa-loop-manip.c: Likewise.
6689         * tree-ssa-loop-niter.c: Likewise.
6690         * tree-ssa-loop-prefetch.c: Likewise.
6691         * tree-ssa-loop-unswitch.c: Likewise.
6692         * tree-ssa-loop.c: Likewise.
6693         * tree-ssa-math-opts.c: Likewise.
6694         * tree-ssa-operands.c: Likewise.
6695         * tree-ssa-phiopt.c: Likewise.
6696         * tree-ssa-phiprop.c: Likewise.
6697         * tree-ssa-pre.c: Likewise.
6698         * tree-ssa-propagate.c: Likewise.
6699         * tree-ssa-reassoc.c: Likewise.
6700         * tree-ssa-sccvn.c: Likewise.
6701         * tree-ssa-scopedtables.c: Likewise.
6702         * tree-ssa-sink.c: Likewise.
6703         * tree-ssa-strlen.c: Likewise.
6704         * tree-ssa-structalias.c: Likewise.
6705         * tree-ssa-tail-merge.c: Likewise.
6706         * tree-ssa-ter.c: Likewise.
6707         * tree-ssa-threadedge.c: Likewise.
6708         * tree-ssa-threadupdate.c: Likewise.
6709         * tree-ssa-uncprop.c: Likewise.
6710         * tree-ssa-uninit.c: Likewise.
6711         * tree-ssa.c: Likewise.
6712         * tree-ssanames.c: Likewise.
6713         * tree-stdarg.c: Likewise.
6714         * tree-streamer-in.c: Likewise.
6715         * tree-streamer-out.c: Likewise.
6716         * tree-streamer.c: Likewise.
6717         * tree-switch-conversion.c: Likewise.
6718         * tree-tailcall.c: Likewise.
6719         * tree-vect-data-refs.c: Likewise.
6720         * tree-vect-generic.c: Likewise.
6721         * tree-vect-loop-manip.c: Likewise.
6722         * tree-vect-loop.c: Likewise.
6723         * tree-vect-patterns.c: Likewise.
6724         * tree-vect-slp.c: Likewise.
6725         * tree-vect-stmts.c: Likewise.
6726         * tree-vectorizer.c: Likewise.
6727         * tree-vrp.c: Likewise.
6728         * tree.c: Likewise.
6729         * tsan.c: Likewise.
6730         * ubsan.c: Likewise.
6731         * value-prof.c: Likewise.
6732         * var-tracking.c: Likewise.
6733         * varasm.c: Likewise.
6734         * varpool.c: Likewise.
6735         * vtable-verify.c: Likewise.
6736         * web.c: Likewise.
6737         * wide-int-print.cc: Likewise.
6738         * wide-int.cc: Likewise.
6739         * xcoffout.c: Likewise.
6741 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
6743         * Makefile.in (NO_PIE_CFLAGS): New.
6744         (NO_PIE_FLAG): Likewise.
6745         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6746         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6747         (BUILD_NO_PIE_CFLAGS): Likewise.
6748         (BUILD_NO_PIE_FLAG): Likewise.
6749         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6750         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6751         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6752         $(BUILD_NO_PIE_CFLAGS).
6753         (BUILD_CXXFLAGS): Likewise.
6754         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6755         $(BUILD_NO_PIE_FLAG).
6756         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
6757         (BUILD_NO_PIE_FLAG): Likewise.
6758         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6759         (NO_PIE_FLAG_FOR_BUILD): Likewise.
6760         * configure: Regenerated.
6762 2015-10-29  Richard Biener  <rguenther@suse.de>
6764         PR middle-end/56956
6765         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6766         unsigned conditonal negation to ABS_EXPR.
6768 2015-10-29  Richard Biener  <rguenther@suse.de>
6770         * gimple-match-head.c (gimple_simplify): Remove premature checking
6771         of builtin_decl_implicit of function calls we simplify.
6773 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
6775         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6776         (get_computation_cost_at): Ditto.
6777         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6778         and inv_expr_id.
6780 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6782         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6783         superfluous code.
6785 2015-10-28  Jason Merrill  <jason@redhat.com>
6787         * Makefile.in (TAGS): Include libcpp and libiberty.
6789 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6791         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6792         (extract_omp_for_data): Remove OpenACC special handling of
6793         chunking.
6795         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6796         (struct parallel): Update comment.
6797         (nvptx_reorg): Likewise.
6798         (nvptx_neuter): Cleanup whitespace.
6800 2015-10-28  Richard Henderson  <rth@redhat.com>
6802         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6804 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6806         PR target/67839
6807         * config/avr/predicates.md (low_io_address_operand): Don't
6808         consider MODE when computing upper bound.
6809         (io_address_operand): Likewise.
6811 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
6813         * fold-const.c (operand_equal_p): Do not verify that types are
6814         compatible for MEM_REFs.
6816 2015-10-28  Richard Biener  <rguenther@suse.de>
6818         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6819         in simplifying VEC_COND_EXPR conditions.
6821 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6823         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6824         into vi_next of a full_var.
6826 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6828         * tree-ssa-structalias.c (new_var_info, make_heapvar)
6829         (make_constraint_from_restrict, make_constraint_from_global_restrict)
6830         (create_function_info_for, create_variable_info_for_1)
6831         (create_variable_info_for): Add and handle add_id parameter.
6832         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6833         (init_base_vars): Add extra argument to calls to new_var_info.
6834         (get_vi_for_tree): Add extra argument to call to
6835         create_variable_info_for.
6836         (process_constraint, do_deref, process_all_all_constraints): Add extra
6837         argument to calls to new_scalar_tmp_constraint_exp.
6838         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6839         argument to calls to make_heapvar.
6840         (make_restrict_var_constraints): Add extra argument to call to
6841         make_constraint_from_global_restrict.
6842         (intra_create_variable_infos): Add extra argument to call to
6843         create_variable_info_for_1.
6844         (ipa_pta_execute): Add extra argument to call to
6845         create_function_info_for.
6847 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6849         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6850         (sibcall_value): Likewise.
6852 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6854         * config/nvptx/nvptx.h (struct machine_function): Add
6855         axis_predicate.
6856         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6857         nvptx_expand_oacc_join): Declare.
6858         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6859         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6860         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6861         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6862         UNSPECV_JOINING, UNSPECV_JOIN): New.
6863         (BITS, BITD): New mode iterators.
6864         (br_true_uni, br_false_uni): New.
6865         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6866         (oacc_dim_size, oacc_dim_pos): New.
6867         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6868         (oacc_fork, oacc_join): New.
6869         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6870         (worker_load<mode>, worker_store<mode>): New.
6871         (nvptx_barsync): New.
6872         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6873         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6874         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6875         worker_bcast_sym): New.
6876         (nvptx_option_override): Initialize worker broadcast buffer.
6877         (nvptx_emit_forking, nvptx_emit_joining): New.
6878         (nvptx_init_axis_predicate): New.
6879         (nvptx_declare_function_name): Init axis predicates.
6880         (nvptx_expand_call): Add fork/join markers around routine call.
6881         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6882         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6883         (nvptx_gen_vcast): New.
6884         (struct wcast_data_t): New.
6885         (enum propagate_mask): New.
6886         (nvptx_gen_wcast): New.
6887         (nvptx_print_operand): Add 'S' case.
6888         (struct parallel): New.
6889         (parallel::parallel, parallel::~parallel): New.
6890         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6891         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6892         nvptx_find_par, nvptx_discover_pars): New.
6893         (nvptx_propagate): New.
6894         (vprop_gen, nvptx_vpropagate): New.
6895         (wprop_gen, nvptx_wpropagate): New.
6896         (nvptx_wsync): New.
6897         (nvptx_single, nvptx_skip_par): New.
6898         (nvptx_process_pars, nvptx_neuter_pars): New.
6899         (ntptx_reorg): Split blocks, generate parallel structure, apply
6900         neutering.
6901         (nvptx_cannot_copy_insn_p): New.
6902         (nvptx_file_end): Emit worker broadcast decl.
6903         (nvptx_goacc_fork_join): New.
6904         (TARGET_CANNOT_COPY_INSN_P): Override.
6905         (TARGET_GOACC_FORK_JOIN): Override.
6907 2015-10-28  Richard Biener  <rguenther@suse.de>
6909         * fold-const.c (negate_expr_p): Adjust the division case to
6910         properly avoid introducing undefined overflow.
6911         (fold_negate_expr): Likewise.
6913 2015-10-28  Richard Biener  <rguenther@suse.de>
6915         PR tree-optimization/65962
6916         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6917         Avoid creating loop carried dependences also for outer loops
6918         of the loop a use to replace is in.
6920 2015-10-28  Richard Biener  <rguenther@suse.de>
6922         * common.opt (fchecking): New flag controlling flag_checking.
6923         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6924         * timevar.c (timer::print): Adjust output.
6925         * doc/invoke.texi (fchecking): Document.
6927 2015-10-28  Richard Biener  <rguenther@suse.de>
6929         PR middle-end/68067
6930         * fold-const.c (negate_expr_p): We cannot negate plus or minus
6931         if overflow is not wrapping.  Likewise multiplication unless
6932         one operand is constant and not power of two.
6933         (fold_negate_expr): Adjust accordingly.
6935 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6937         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6938         fields.
6939         (is_oacc_parallel, is_oacc_kernels): New.
6940         (enclosing_target_ctx): May return NULL.
6941         (ctx_in_oacc_kernels_region): New.
6942         (check_oacc_kernel_gwv): New.
6943         (oacc_loop_or_target_p): Delete.
6944         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
6945         operands.  Strip reductions fro kernels.
6946         (scan_omp_target): Don't calculate gwv mask.
6947         (lower_oacc_head_mark, lower_oacc_loop_marker,
6948         lower_oacc_head_tail): New.
6949         (struct oacc_collapse): New.
6950         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6951         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6952         Remove OpenACC handling.
6953         (expand_oacc_for): New.
6954         (expand_omp_for): Call expand_oacc_for.
6955         (lower_omp_for): Call lower_oacc_head_tail.
6957 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
6959         * attribs.c (check_attribute_tables): New function, broken out from...
6960         (init_attributes): Use it.
6961         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6962         gcc_checking_assert and checking_* functions to eliminate
6963         ENABLE_CHECKING conditionals.
6964         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6965         (pass_expand::execute): Likewise.
6966         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6967         * cgraphunit.c (mark_functions_to_output): Likewise.
6968         (cgraph_node::expand_thunk): Likewise.
6969         (symbol_table::compile): Likewise.
6970         * ddg.c (add_cross_iteration_register_deps): Likewise.
6971         (create_ddg_all_sccs): Likewise.
6972         * df-core.c (df_finish_pass, df_analyze): Likewise.
6973         * diagnostic-core.h: Likewise.
6974         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6975         * dominance.c (calculate_dominance_info): Likewise.
6976         * dwarf2out.c (add_AT_die_ref): Likewise.
6977         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6978         (loc_list_from_tree, gen_lexical_block_die): Likewise.
6979         gen_type_die_with_usage, gen_type_die): Likewise.
6980         (dwarf2out_decl): Likewise.
6981         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6982         * except.c (duplicate_eh_regions): Likewise.
6983         * fwprop.c (register_active_defs, update_df_init): Likewise.
6984         (fwprop_init, fwprop_done): Likewise.
6985         (update_uses): Likewise.
6986         * ggc-page.c (ggc_grow): Likewise.
6987         * gimplify.c (gimplify_body): Likewise.
6988         (gimplify_hasher::equal): Likewise.
6989         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6990         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6991         Likewise.
6992         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6993         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6994         * hash-table.h (::find_empty_slot_for_expand): Likewise.
6995         * ifcvt.c (if_convert): Likewise.
6996         * ipa-cp.c (ipcp_propagate_stage): Likewise.
6997         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6998         (odr_type_p, odr_types_equivalent_p): Likewise.
6999         (add_type_duplicate, get_odr_type): Likewise.
7000         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7001         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7002         (sem_item_optimizer::verify_classes): Likewise.
7003         (sem_item_optimizer::traverse_congruence_split): Likewise.
7004         (sem_item_optimizer::checking_verify_classes): New.
7005         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7006         method.
7007         * cfgrtl.c (commit_edge_insertions): Likewise.
7008         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7009         (rtl_flow_call_edges_add): Likewise.
7010         * cgraph.c (symbol_table::create_edge): Likewise.
7011         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7012         * cgraph.h (symtab_node): Likewise.
7013         (symtab_node::checking_verify_symtab_nodes): Define.
7014         (cgraph_node::checking_verify_cgraph_nodes): Define.
7015         * cfghooks.h (checking_verify_flow_info): Define.
7016         * cfgloop.h (checking_verify_loop_structure): Define.
7017         * dominance.h (checking_verify_dominators): Define.
7018         * et-forest.c: Fix comment.
7019         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7020         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7021         ENABLE_CHECKING conditionals.
7022         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7023         * ipa-inline.c (inline_small_functions): Likewise.
7024         (early_inliner): Likewise.
7025         * ipa-inline.h (estimate_edge_growth): Likewise.
7026         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7027         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7028         (ipa_single_use): Likewise.
7029         * ira-int.h: Likewise.
7030         * ira.c (ira): Likewise.
7031         * loop-doloop.c (doloop_optimize_loops): Likewise.
7032         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7033         * loop-invariant.c (move_loop_invariants): Likewise.
7034         * lra-assigns.c (lra_assign): Likewise.
7035         * lra-constraints.c (lra_constraints): Likewise.
7036         * lra-eliminations.c (lra_eliminate): Likewise.
7037         * lra-int.h (struct lra_reg): Likewise.
7038         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7039         (lra_create_live_ranges_1): Likewise.
7040         * lra-remat.c (create_remat_bb_data): Likewise.
7041         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7042         (lra): Likewise.
7043         (check_rtl): Always define. Remove incorrect guard around
7044         extract_constrain_insn call.
7045         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7046         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7047         ENABLE_CHECKING conditionals.
7048         * lto-streamer-out.c (DFS::DFS): Likewise.
7049         (lto_output): Likewise.
7050         * lto-streamer.c (lto_streamer_init): Likewise.
7051         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7052         expand_omp_target, execute_expand_omp): Likewise.
7053         (lower_omp_target): Likewise.
7054         * passes.c (execute_function_todo): Likewise.
7055         (execute_todo, execute_one_pass): Likewise.
7056         (verify_curr_properties): Always define.
7057         * predict.c (tree_estimate_probability: Use flag_checking,
7058         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7059         ENABLE_CHECKING conditionals.
7060         (propagate_freq): Likewise.
7061         * pretty-print.c (pp_format): Likewise.
7062         * real.c (real_to_decimal_for_mode): Likewise.
7063         * recog.c (split_all_insns): Likewise.
7064         * regcprop.c (kill_value_one_regno): Likewise.
7065         (copy_value): Likewise.
7066         (validate_value_data): Define unconditionally.
7067         * reload.c: Fix comment.
7068         * timevar.c: Include options.h
7069         * tree-ssa.h (checking_verify_ssa): Define.
7070         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7071         * sched-deps.c (CHECK): Remove unused macro.
7072         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7073         gcc_checking_assert and checking_* functions to eliminate
7074         ENABLE_CHECKING conditionals.
7075         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7076         * sel-sched.c (struct moveop_static_params): Likewise.
7077         (find_best_reg_for_expr, move_cond_jump): Likewise.
7078         (move_op_orig_expr_not_found): Likewise.
7079         (code_motion_process_successors, move_op): Likewise.
7080         * ssa-iterators.h (first_readonly_imm_use): Likewise.
7081         (next_readonly_imm_use): Likewise.
7082         * store-motion.c (compute_store_table): Likewise.
7083         * symbol-summary.h (function_summary::function_summary): Likewise.
7084         * target.h (cumulative_args_t): Likewise.
7085         (get_cumulative_args, pack_cumulative_args): Likewise.
7086         * timevar.c: (timer::print): Likewise.
7087         * trans-mem.c (ipa_tm_execute): Likewise.
7088         * tree-cfg.c (move_stmt_op): Likewise.
7089         (move_sese_region_to_fn): Likewise.
7090         (gimple_flow_call_edges_add): Likewise.
7091         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7092         Likewise.
7093         * tree-eh.c (remove_unreachable_handlers): Likewise.
7094         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7095         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7096         * tree-into-ssa.c (update_ssa): Likewise.
7097         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7098         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7099         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7100         * tree-predcom.c (suitable_component_p): Likewise.
7101         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7102         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7103         * tree-ssa-live.c (verify_live_on_entry): Likewise.
7104         * tree-ssa-live.h (register_ssa_partition): Likewise.
7105         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7106         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7107         (tree_transform_and_unroll_loop): Likewise.
7108         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7109         * tree-ssa-operands.c (get_expr_operands): Likewise.
7110         * tree-ssa-propagate.c (replace_exp_1): Likewise.
7111         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7112         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7113         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7114         * tree-ssanames.c (release_ssa_name_fn): Likewise.
7115         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7116         * tree-vect-loop-manip.c
7117         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7118         (slpeel_checking_verify_cfg_after_peeling): Likewise.
7119         (vect_do_peeling_for_loop_bound): Likewise.
7120         (vect_do_peeling_for_alignment): Likewise.
7121         * tree-vrp.c (supports_overflow_infinity): Likewise.
7122         (set_value_range): Likewise.
7123         * tree.c (free_lang_data_in_cgraph): Likewise.
7124         * value-prof.c (gimple_remove_histogram_value): Likewise.
7125         (free_hist): Likewise.
7126         * var-tracking.c (canonicalize_values_star): Likewise.
7127         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7129 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7131         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7132         IFN_GOACC_LOOP): New.
7133         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7134         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7135         IFN_UNIQUE_OACC_TAIL_MARK.
7136         (enum ifn_goacc_loop_kind): New.
7137         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7138         IFN_UNIQUE_OACC_JOIN cases.
7139         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7140         (expand_GOACC_LOOP): New.
7141         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7142         * omp-low.c: Include gimple-pretty-print.h.
7143         (struct oacc_loop): New.
7144         (enum oacc_loop_flags): New.
7145         (oacc_thread_numbers): New.
7146         (oacc_xform_loop): New.
7147         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7148         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7149         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7150         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7151         oacc_loop_discovery): New.
7152         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7153         oacc_loop_process): New.
7154         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7155         (execute_oacc_device_lower): Discover & process loops.  Process
7156         internal fns.
7157         * target.def (goacc.fork_join): Change sense of hook, clarify
7158         documentation.
7159         * doc/tm.texi: Regenerated.
7161 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7163         * target-insns.def (oacc_fork, oacc_join): Define.
7164         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7165         (goacc.fork_join): New GOACC hook.
7166         * targhooks.h (default_goacc_fork_join): Declare.
7167         * omp-low.c (default_goacc_forkjoin): New.
7168         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7169         * doc/tm.texi: Regenerate.
7171 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7173         * omp-low.c (oacc_init_rediction_array): New.
7174         (oacc_initialize_reduction_data): Initialize array.
7176 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7178         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7180 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7182         * internal-fn.c (expand_UNIQUE): New.
7183         * internal-fn.h (enum ifn_unique_kind): New.
7184         * internal-fn.def (IFN_UNIQUE): New.
7185         * target-insns.def (unique): Define.
7186         * gimple.h (gimple_call_internal_unique_p): New.
7187         * gimple.c (gimple_call_same_target_p): Check internal fn
7188         uniqueness.
7189         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7190         * tree-ssa-threadedge.c
7191         (record_temporary_equivalences_from_stmts): Likewise.
7192         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7194 2015-10-27  Richard Henderson  <rth@redhat.com>
7196         PR rtl-opt/67609
7197         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7198         narrowing subregs on SSE and MMX registers.
7199         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7200         appear to be sub-words of multi-register pseudos must be rejected.
7201         * doc/tm.texi: Regenerate.
7203 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7205         PR target/68102
7206         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7207         operands[0] is a reg before taking its REGNO in split condition.
7208         (*movdi_aarch64): Likewise.
7210 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7212         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7213         Handle floating point inner modes properly.
7215 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
7217         * tree-vect-looop.c
7218         (vectorizable_live_operation): Change iterator.
7220 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7221             Aditya Kumar  <aditya.k7@samsung.com>
7223         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7224           function to schedule based on isl_schedule_node.
7225         (get_schedule_map_st): New schedule optimizer based on
7226         isl_schedule_node.
7227         (scop_get_domains): New. Return the isl_union_set containing the
7228         domains of all the pbbs.
7229         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7231 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
7233         PR target/67215
7234         * calls.c (prepare_call_address): Don't handle -fno-plt here.
7235         * config/i386/i386.c (ix86_expand_call): Generate indirect call
7236         via GOT for -fno-plt.  Support indirect call via GOT for x32.
7237         * config/i386/predicates.md (sibcall_memory_operand): Allow
7238         GOT memory operand.
7240 2015-10-27  Richard Biener  <rguenther@suse.de>
7242         PR tree-optimization/68104
7243         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7244         strided access check ...
7245         (vect_compute_data_refs_alignment): ... here.
7247 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
7248             Joseph Myers  <joseph@codesourcery.com>
7249             Mark Shinwell  <shinwell@codesourcery.com>
7250             Andrew Stubbs  <ams@codesourcery.com>
7251             Rich Felker <dalias@libc.org>
7253         * config.gcc: Handle --enable-fdpic.
7254         * config/sh/constraints.md (Ccl): New constraint.
7255         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7256         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7257         __SH_FDPIC__.
7258         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7259         library functions.
7260         * config/sh/sh-protos.h (function_symbol_result): New struct.
7261         (function_symbol): Return function_symbol_result.
7262         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7263         declarations.
7264         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7265         target hook.
7266         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7267         (sh_option_override): Force -fPIC if FDPIC is in effect.
7268         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7269         UNSPEC_GOTOFFFUNCDESC cases.
7270         (prepare_move_operands): Use FDPIC initial GOT register for
7271         TLS-related GOT access; inhibit cross-section address offset constants
7272         for FDPIC.
7273         (sh_assemble_integer): New function.
7274         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7275         PC-relative call sites.
7276         (expand_ashiftrt): Adapt invocation of function_symbol.
7277         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7278         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7279         UNSPEC_GOTOFFFUNCDESC.
7280         (legitimize_pic_address): Resolve function symbols to function
7281         descriptors for FDPIC.  Do not use GOT-relative addressing for local
7282         data that may be read-only on FDPIC.
7283         (sh_emit_storesi, sh_emit_storehi): New functions.
7284         (sh_trampoline_init): Generate FDPIC trampolines.
7285         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7286         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7287         (sh_output_mi_thunk): Generate FDPIC call.
7288         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
7289         FDPIC, generate call site labels to use PC-relative addressing rather
7290         than GOT-relative addressing.
7291         (sh_conditional_register_usage): Make PIC register fixed and call used
7292         when FDPIC is in effect.
7293         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7294         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7295         sh_get_fdpic_reg_initial_val): New functions.
7296         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7297         Handle -mfdpic.
7298         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7299         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7300         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7301         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7302         FDPIC_SELF_SPECS.
7303         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7304         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7305         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7306         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7307         constants.
7308         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7309         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7310         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7311         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7312         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7313         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7314         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7315         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7316         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7317         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7318         block_move_real, block_lump_real, block_move_real_i4,
7319         block_lump_real_i4): Add support for FDPIC calls.
7320         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7321         call_value_pop): Adjust for new function_symbol signature.
7322         * config/sh/sh.opt (-mfdpic): New option.
7323         * doc/install.texi (Options specification): Document --enable-fdpic.
7324         * doc/invoke.texi (SH Options): Document -mfdpic.
7327 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7329         PR tree-optimization/65963
7330         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7331         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7333 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7335         PR target/67929
7336         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7337         * config/arm/constraints.md (Dp): Update callsite.
7338         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7340 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7342         * builtins.c (fold_builtin_load_exponent): Rename to...
7343         (fold_const_builtin_load_exponent): ...this and only handle
7344         constant arguments.
7345         (fold_builtin_2): Update accordingly.
7346         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7348 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7350         * builtins.c (fold_builtin_logb): Rename to...
7351         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7352         (fold_builtin_significand): Rename to...
7353         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7354         (fold_builtin_1): Update accordingly.
7356 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7358         * builtins.c (fold_builtin_fmin_fmax): Delete.
7359         (fold_builtin_2): Handle constant fmin and fmax arguments here.
7360         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7362 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
7364         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7365         for register extension into sign and zero register extension.
7366         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7367         for sign and zero register extension.
7368         (cortexa57_addrcost_table): Likewise.
7369         (xgene1_addrcost_table): Likewise.
7371 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7373         * fold-const.c (fold_minmax): Delete.
7374         (fold_binary_loc): Don't call it.
7375         * match.pd: Add rules previously handled by fold_minmax.
7377 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7379         * builtins.c (fold_builtin_fma): Remove constant handling.
7380         (fold_builtin_3): Handle constant fma arguments here.
7382 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7384         * builtins.c (fold_builtin_fabs): Remove constant handling.
7385         (fold_builtin_abs): Likewise.
7387 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7389         * builtins.c (fold_builtin_copysign): Delete.
7390         (fold_builtin_2): Handle constant copysign arguments here.
7391         * match.pd: Add rules previously handled by fold_builtin_copysign.
7393 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7395         * builtins.c (fold_builtin_signbit): Delete.
7396         (fold_builtin_2): Handle constant signbit arguments here.
7397         * match.pd: Add rules previously handled by fold_builtin_signbit.
7399 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7401         * match.pd: Handle sqrt(x) cmp 0 specially.
7403 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
7405         * tree-vect-generic.c (expand_vector_operations_1): Check
7406         optab type before using it.
7408 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7410         * config/aarch64/aarch64-protos.h
7411         (struct tune_params): Add autoprefetcher_model field.
7412         * config/aarch64/aarch64.c: Include params.h
7413         (generic_tunings): Specify autoprefetcher_model value.
7414         (cortexa53_tunings): Likewise.
7415         (cortexa57_tunings): Likewise.
7416         (cortexa72_tunings): Likewise.
7417         (thunderx_tunings): Likewise.
7418         (xgene1_tunings): Likewise.
7419         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7420         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7421         (aarch64_override_options_internal): Set
7422         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7424 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7426         * builtins.c (fold_builtin_exponent): Delete.
7427         (fold_builtin_2): Handle constant expN arguments here.
7428         * match.pd: Fold expN(logN(x)) -> x.
7430 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7432         * builtins.c (fold_builtin_powi): Delete.
7433         (fold_builtin_2): Handle constant powi arguments here.
7434         * match.pd: Add rules previously handled by fold_builtin_powi.
7436 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7438         * builtins.c (fold_builtin_pow): Delete in favor of...
7439         (fold_const_builtin_pow): ...this new function.  Only handle constant
7440         arguments.
7441         (fold_builtin_2): Update accordingly.
7442         * match.pd: Add rules previously handled by fold_builtin_pow.
7444 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7446         * builtins.c (fold_builtin_hypot): Delete.
7447         (fold_builtin_2): Handle constant hypot arguments here.
7448         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
7449         hypot(x, x) to fabs(x)*sqrt(2).
7451 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7453         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7454         instead of make_ssa_name if not yet in SSA form.
7456 2015-10-27  Richard Biener  <rguenther@suse.de>
7458         * cfg.c (free_edge): Add function argument and use it instead of cfun.
7459         (clear_edges): Likewise.
7460         * cfg.h (clear_edges): Adjust prototype.
7461         * cfgexpand.c (pass_expand::execute): Adjust.
7462         * cfgloop.c (release_recorded_exits): Add function argument and use
7463         it instead of cfun.
7464         * cfgloop.h (release_recorded_exits): Adjust prototype.
7465         (loops_state_satisfies_p): Add overload with function argument.
7466         (loops_state_set): Likewise.
7467         (loops_state_clear): Likewise.
7468         (struct loop_iterator): Add function argument to constructor
7469         and iterator and use it instead of cfun.
7470         (FOR_EACH_LOOP_FN): New macro.
7471         (loop_optimizer_finalize): Add overload with function argument.
7472         * loop-init.c (loop_optimizer_init): Adjust.
7473         (fix_loop_structure): Likewise.
7474         (loop_optimizer_finaliz): Add function argument and use it
7475         instead of cfun.
7476         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7477         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7478         * cgraph.c (release_function_body): Do not push/pop cfun.
7479         * final.c (rest_of_clean_state): Adjust.
7480         * graphite.c (graphite_finalize): Likewise.
7481         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7482         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7483         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7484         (tree_unroll_loops_completely): Likewise.
7485         (pass_complete_unrolli::execute): Likewise.
7486         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7487         Add function argument and use it instead of cfun.
7488         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7489         Adjust prototype.
7490         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7491         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7492         instead of cfun.
7493         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7494         * tree-ssanames.c (fini_ssanames): Add function argument and use it
7495         instead of cfun.
7496         * tree-ssanames.c (fini_ssanames): Adjust prototype.
7497         * tree-vrp.c (execute_vrp): Adjust.
7498         * value-prof.c (free_histograms): Add function argument and use it
7499         instead of cfun.
7500         * value-prof.h (free_histograms): Adjust prototype.
7502 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
7504         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7505         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7506         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
7508 2015-10-27  Tom de Vries  <tom@codesourcery.com>
7510         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7511         field_type.
7513 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
7515         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7516         (inv_can_prop_to_addr_use): New function.
7517         (record_use): Call can_prop_to_addr_uses, set the new field.
7518         (get_inv_cost): Count cost if inv can't be propagated into its
7519         address uses.
7521 2015-10-26  Doug Evans  <dje@google.com>
7523         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7525 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
7527         * match.pd (fold_widened_comparison): Apply simplifications to all
7528         integral types.
7530 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
7532         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7533         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7534         * doc/tm.texi: Regenerated.
7535         * reorg.c (dbr_schedule): Use new hook.
7536         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7538 2015-10-26  Jeff Law  <law@redhat.com>
7540         PR tree-optimization/68013
7541         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7542         Make sure the first block in the path is in VISITED_BBs.
7544 2015-10-26  Richard Biener  <rguenther@suse.de>
7545         Dominik Vogt  <vogt@linux.vnet.ibm.com>
7547         PR middle-end/67443
7548         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7549         Properly prune ref->ref for accesses outside of ref.
7551 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7553         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7554         new statements to be inserted if inplace.  Allow calls to have
7555         nonempty sequences.
7557 2015-10-26  Richard Biener  <rguenther@suse.de>
7559         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7560         (do_valueize): New function.
7561         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7562         replace_uses_by.
7563         * tree-ssa-threadedge.c: Remove builtins.h include, include
7564         gimple-fold.h
7565         (fold_assignment_stmt): Remove.
7566         (threadedge_valueize): New function.
7567         (record_temporary_equivalences_from_stmts): Use
7568         gimple_fold_stmt_to_constant_1, note additional cleanup
7569         opportunities.
7571 2015-10-26  Richard Biener  <rguenther@suse.de>
7573         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7574         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7576 2015-10-26  Alan Hayward <alan.hayward@arm.com>
7578         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7579         VEC_COND_EXPR types.
7581 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7583         * auto-inc-dec.c (insert_move_insn_before): Delete.
7584         (attempt_change): Remember to cost the simple move in the
7585         FORM_PRE_ADD and FORM_POST_ADD cases.
7587 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7589         PR target/68091
7590         * config/sh/sh.c (sh_vector_mode_supported_p): Use
7591         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7593 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7595         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7596         factored out of ...
7597         (intra_create_variable_infos): ... here.
7599 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7601         * tree-ssa-structalias.c (intra_create_variable_infos): Add
7602         restrict_pointer_p and recursive_restrict_p variables.
7604 2015-10-26  Tom de Vries  <tom@codesourcery.com>
7606         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7607         get_vi_for_tree call.
7609 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7611         PR middle-end/67989
7612         * optabs.c (expand_atomic_compare_and_swap): Handle case when
7613         ptarget_oval or ptarget_bool are const0_rtx.
7615 2015-10-26  Christian Bruel  <christian.bruel@st.com>
7617         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7618         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7619         * cp/method.c (implicitly_declare_fn): Likewise.
7620         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7621         * java/class.c (add_method_1): Likewise.
7623 2015-10-26  Richard Biener  <rguenther@suse.de>
7625         * alloc-pool.h (base_pool_allocator): Use placement new.
7626         (base_pool_allocator::remove): Likewise.  Compute size outside of
7627         flag_checking.
7629 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7631         * builtins.c (do_real_to_int_conversion): New function.
7632         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7633         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7634         arguments here.
7635         * match.pd: Add rules previously handled by fold_fixed_mathfn
7636         and fold_builtin_int_roundingfn.
7638 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
7640         * match.pd: Use macros to define built-in operator lists.
7642 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
7643             Richard Biener  <rguenther@suse.de>
7645         * genmatch.c (dt_simplify::gen): Skip captures that are
7646         part of the result.
7647         (parser::parse_expr): Allow captures in results too.
7648         * builtins.c (fold_builtin_cexp): Delete.
7649         (fold_builtin_1): Handle constant cexp arguments here.
7650         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7652 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
7654         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7655         conditional compilation.
7656         (base_pool_allocator::remove): Use flag_checking.
7658 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
7660         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7662         PR middle-end/68079
7663         * dojump.c (do_compare_and_jump): Canonicalize both function and
7664         method types.
7666 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
7668         PR target/68084
7669         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7670         for =@ccae.
7672 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7674         PR ipa/pr67600
7675         * ipa-polymorphic-call.c
7676         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7677         instance offset with offset of outer type.
7679 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7681         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7683 2015-10-23  Caroline Tice  <cmtice@google.com>
7685         (from Richard Biener
7686         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
7687         call to iterative_hash_host_wide_int.
7689 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7691         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7692         Define as yes.
7694 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7696         * tree-vect-generic.c (expand_vector_operations_1): Check
7697         optab exists before use it.
7699 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7701         * tree-vect-generic.c (expand_vector_condition): Avoid
7702         uninitialized variable warning.
7704 2015-10-23  Jeff Law  <law@redhat.com>
7706         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7707         here.  Instead...
7708         (execute_todo): Call it here.
7709         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7710         statistics
7711         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7713 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7714             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7716         * config.gcc (enable_secureplt): Add *-linux*-musl*.
7718 2015-10-23  Jeff Law  <law@redhat.com>
7720         PR tree-optimization/67830
7721         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7722         Explicitly verify the mask has no bits outside the type of
7723         the innermost operands.
7725 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
7726             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7728         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7729         (MUSL_DYNAMIC_LINKER64): Define.
7730         (GNU_USER_DYNAMIC_LINKER32): Update.
7731         (GNU_USER_DYNAMIC_LINKER64): Update.
7732         (CHOOSE_DYNAMIC_LINKER): Update.
7734         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7735         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7736         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7737         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7738         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7739         (CHOOSE_DYNAMIC_LINKER): Update.
7740         (INCLUDE_DEFAULTS): Redefine.
7742         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7744 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7746         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7747         comparing addresses.
7749 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
7751         * fold-const.c (operand_equal_p): Handle matching of vector
7752         constructors.
7754 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7756         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7758 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
7759             Andrew Pinski  <apinski@cavium.com>
7761         PR rtl-optimization/67736
7762         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7763         of gen_lowpart.
7765 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7767         PR middle-end/68066
7768         * tree.c (build_truth_vector_type): Support BLK mode
7769         returned for boolean vector.
7771 2015-10-23  Alan Hayward <alan.hayward@arm.com>
7773         PR tree-optimization/65947
7774         * tree-vect-loop.c
7775         (vect_is_simple_reduction_1): Find condition reductions.
7776         (vect_model_reduction_cost): Add condition reduction costs.
7777         (get_initial_def_for_reduction): Add condition reduction initial var.
7778         (vect_create_epilog_for_reduction): Add condition reduction epilog.
7779         (vectorizable_reduction): Condition reduction support.
7780         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7781         * doc/sourcebuild.texi (Vector-specific attributes): Document
7782         vect_max_reduc
7784 2015-10-23  Richard Biener  <rguenther@suse.de>
7786         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7787         and builtins.def.
7789 2015-10-23  Richard Biener  <rguenther@suse.de>
7790             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7792         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7793         into (A ^ B) - B to match.pd
7794         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7796         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7797         New simplifier.
7798         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7799         New simplifier.
7800         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7801         New simplifier.
7802         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7803         New simplifier.
7804         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7805         INTEGER_CST@1)): New simplifier.
7807 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
7809         * builtins.c (integer_valued_real_p): Move to fold-const.c.
7810         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7811         (fold_builtin_ceil, fold_builtin_round): Delete.
7812         (fold_builtin_1): Handle constant trunc, floor, ceil and round
7813         arguments here.
7814         * convert.c (convert_to_real): Remove narrowing of rounding
7815         functions.
7816         * fold-const.h (integer_valued_real_unary_p)
7817         (integer_valued_real_binary_p, integer_valued_real_call_p)
7818         (integer_valued_real_single_p, integer_valued_real_p): Declare.
7819         * fold-const.c (tree_single_nonnegative_warnv_p): Move
7820         name_registered_for_update_p check to SSA_NAME case statement.
7821         Don't call tree_simple_nonnegative_warnv_p for SSA names.
7822         (integer_valued_real_unary_p, integer_valued_real_binary_p)
7823         (integer_valued_real_call_p, integer_valued_real_single_p)
7824         (integer_valued_real_invalid_p): New functions.
7825         (integer_valued_real_p): Move from fold-const.c and rework
7826         to call the functions above.  Handle SSA names.
7827         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7828         * gimple-fold.c (gimple_assign_integer_valued_real_p)
7829         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7830         (gimple_stmt_integer_valued_real_p): New functions.
7831         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7832         Fold f(x)->x for the same f if x is known to be integer-valued.
7833         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7834         the result.  Canonicalize floor(x) as trunc(x) if x is
7835         nonnegative.
7837 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7839         * tree-ssa-structalias.c (intra_create_variable_infos): Use
7840         make_constraint_from.
7842 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7844         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7845         setting of is_full_var in case of a single field.
7847 2015-10-22  Martin Sebor  <msebor@redhat.com>
7849         PR driver/68043
7850         * config/i386/i386.opt: Add missing periods to the ends of sentences.
7851         * config/msp430/msp430.opt: Same.
7853 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7855         * doc/extend.exp (Global Register Variables): Rewrite.
7857 2015-10-22  Jeff Law  <law@redhat.com>
7859         * genattrtab.c (main): If we do not have any annul-true or annul-false
7860         slots, then write out a dummy eligible_for_annul_true or
7861         eligible_for_annul_false as needed.
7863 2015-10-22  Nick Clifton  <nickc@redhat.com>
7865         * config/msp430/msp430.opt: Add -msilicon-errata and
7866         -msilicon-errata-warn.
7867         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7868         assembler.
7869         * doc/invoke.texi: Document new options.
7871 2015-10-22  Richard Biener  <rguenther@suse.de>
7873         PR tree-optimization/58497
7874         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7875         (expand_vector_operations_1): Use it.  Lower operations on
7876         all uniform vectors to scalar operations if the HW supports it.
7878 2015-10-22  Richard Biener  <rguenther@suse.de>
7880         PR tree-optimization/19049
7881         PR tree-optimization/65962
7882         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7883         to strided accesses if single-element interleaving doesn't work.
7885 2015-10-22  Richard Biener  <rguenther@suse.de>
7887         PR middle-end/68046
7888         PR middle-end/61893
7889         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7890         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7891         (expand_unop): Likewise.
7893 2015-10-22  Richard Biener  <rguenther@suse.de>
7895         * fold-const.c (fold_addr_of_array_ref_difference): Properly
7896         convert operands before folding a MINUS_EXPR.
7897         (fold_binary_loc): Move simplification of MINUS_EXPR on
7898         converted POINTER_PLUS_EXPRs ...
7899         * match.pd: ... here.
7901 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7903         * builtins.c (fold_builtin_tan): Delete.
7904         (fold_builtin_1): Handle constant tan arguments here.
7905         * match.pd: Simplify (tan (atan x)) to x.
7907 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7909         * builtins.c (fold_builtin_cproj): Delete.
7910         (fold_builtin_1): Handle constant arguments here.
7911         (build_complex_cproj): Move and rename to...
7912         * tree.c: (build_complex_inf): ...this.
7913         * tree.h (build_complex_inf): Declare.
7914         * match.pd: Fold cproj(x)->x if x has no infinity.
7915         Use build_complex_inf for existing cproj rules.
7917 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7919         PR target/68015
7920         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7921         already have a comparison result.
7923 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7925         PR target/63304
7926         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7927         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7928         (aarch64_classify_address): Likewise.
7929         (aarch64_secondary_reload): Likewise.
7930         (aarch64_override_options_after_change_1): Adjust.
7931         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7932         Use aarch64_nopcrelative_literal_loads.
7933         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7934         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7935         Declare.
7937 2015-10-21  Martin Sebor  <msebor@redhat.com>
7939         PR driver/68043
7940         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7941         (print_filtered_help): Reference aliased option's name and encourage
7942         readers to use it in preference to the alias if the former is not
7943         documented.  Mention when using an option is diagnosed.
7944         * gcc.c (display_help): End each sentence with a period.
7946         * common.opt: End each sentence that describes an option with
7947         a period.
7948         * config/aarch64/aarch64.opt: Same.
7949         * config/alpha/alpha.opt: Same.
7950         * config/arc/arc.opt: Same.
7951         * config/arm/arm.opt: Same.
7952         * config/avr/avr.opt: Same.
7953         * config/bfin/bfin.opt: Same.
7954         * config/c6x/c6x.opt: Same.
7955         * config/cr16/cr16.opt: Same.
7956         * config/cris/cris.opt: Same.
7957         * config/cris/linux.opt: Same.
7958         * config/darwin.opt: Same.
7959         * config/epiphany/epiphany.opt: Same.
7960         * config/fr30/fr30.opt: Same.
7961         * config/frv/frv.opt: Same.
7962         * config/ft32/ft32.opt: Same.
7963         * config/g.opt: Same.
7964         * config/h8300/h8300.opt: Same.
7965         * config/i386/cygming.opt: Same.
7966         * config/i386/djgpp.opt: Same.
7967         * config/i386/i386.opt: Same.
7968         * config/i386/interix.opt: Same.
7969         * config/i386/mingw-w64.opt: Same.
7970         * config/i386/mingw.opt: Same.
7971         * config/ia64/ia64.opt: Same.
7972         * config/ia64/ilp32.opt: Same.
7973         * config/iq2000/iq2000.opt: Same.
7974         * config/linux.opt: Same.
7975         * config/lm32/lm32.opt: Same.
7976         * config/lynx.opt: Same.
7977         * config/m32c/m32c.opt: Same.
7978         * config/m32r/m32r.opt: Same.
7979         * config/m68k/ieee.opt: Same.
7980         * config/m68k/m68k.opt: Same.
7981         * config/mcore/mcore.opt: Same.
7982         * config/mep/mep.opt: Same.
7983         * config/microblaze/microblaze.opt: Same.
7984         * config/mips/mips.opt: Same.
7985         * config/mmix/mmix.opt: Same.
7986         * config/mn10300/mn10300.opt: Same.
7987         * config/moxie/moxie.opt: Same.
7988         * config/msp430/msp430.opt: Same.
7989         * config/nios2/elf.opt: Same.
7990         * config/nios2/nios2.opt: Same.
7991         * config/nvptx/nvptx.opt: Same.
7992         * config/pa/pa-hpux.opt: Same.
7993         * config/pa/pa-hpux1010.opt: Same.
7994         * config/pa/pa-hpux1111.opt: Same.
7995         * config/pa/pa-hpux1131.opt: Same.
7996         * config/pa/pa.opt: Same.
7997         * config/pa/pa64-hpux.opt: Same.
7998         * config/pdp11/pdp11.opt: Same.
7999         * config/rl78/rl78.opt: Same.
8000         * config/rs6000/476.opt: Same.
8001         * config/rs6000/aix64.opt: Same.
8002         * config/rs6000/darwin.opt: Same.
8003         * config/rs6000/linux64.opt: Same.
8004         * config/rs6000/rs6000.opt: Same.
8005         * config/rs6000/sysv4.opt: Same.
8006         * config/s390/s390.opt: Same.
8007         * config/s390/tpf.opt: Same.
8008         * config/sh/sh.opt: Same.
8009         * config/sol2.opt: Same.
8010         * config/sparc/long-double-switch.opt: Same.
8011         * config/sparc/sparc.opt: Same.
8012         * config/spu/spu.opt: Same.
8013         * config/stormy16/stormy16.opt: Same.
8014         * config/tilegx/tilegx.opt: Same.
8015         * config/tilepro/tilepro.opt: Same.
8016         * config/v850/v850.opt: Same.
8017         * config/vax/vax.opt: Same.
8018         * config/visium/visium.opt: Same.
8019         * config/vms/vms.opt: Same.
8020         * config/vxworks.opt: Same.
8021         * config/xtensa/xtensa.opt: Same.
8023 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8024             Sebastian Pop  <s.pop@samsung.com>
8026         * graphite-scop-detection.c (parameter_index_in_region): Update call to
8027         invariant_in_sese_p_rec.
8028         * graphite-sese-to-poly.c (extract_affine): Same.
8029         * sese.c (invariant_in_sese_p_rec): Pass in an extra
8030         parameter has_vdefs.
8031         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8032         variable depends on virtual definitions in the current region.
8033         * sese.h (invariant_in_sese_p_rec): Update declaration.
8035 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8036             Sebastian Pop  <s.pop@samsung.com>
8038         * graphite-scop-detection.c (build_scops): Do not handle scops
8039         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8040         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8042 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
8044         * config.in: Regenerate.
8045         * configure: Regenerate.
8046         * configure.ac (CHECKING_P): Define.
8047         * system.h: Use CHECKING_P.
8049 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8051         PR ipa/67056
8052         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8053         is negative we don't know the type.
8054         (check_stmt_for_type_change): Skip constructors of non-polymorphic
8055         types as those won't help devirutalization.
8057 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8059         * fold-const.c (operand_equal_p): Add code matching empty constructors.
8061 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8063         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8064         comments.
8065         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8066         Add comments on sign of the result.
8067         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8068         Recurse on operand #1 instead of operand #0.
8069         <CEIL_MOD_EXPR>: Do not recurse.
8070         <ROUND_MOD_EXPR>: Likewise.
8072 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8074         * cfgrtl.c (pass_free_cfg::execute): Adjust.
8075         * final.c (dbr_sequence_length): Always define.
8076         (shorten_branches): Adjust.
8077         * genattr-common.c (main): Always define DELAY_SLOTS.
8078         * genattr.c (main): Unconditionally declare functions and define
8079         macros related to delay slots.
8080         * genattrtab.c (write_eligible_delay): Adjust.
8081         (main): Always write out delay slot functions.
8082         * opts.c (default_options_table): Adjust.
8083         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8084         (redirect_with_delay_list_safe_p): Likewise.
8085         (fill_simple_delay_slots): Likewise.
8086         (fill_slots_from_thread): Likewise.
8087         (make_return_insns): Likewise.
8088         (dbr_schedule): Likewise.
8089         (rest_of_handle_delay_slots): Likewise.
8090         (pass_delay_slots::gate): Likewise.
8091         * toplev.c (process_options): Likewise.
8093 2015-10-21  Richard Henderson  <rth@redhat.com>
8095         * targhooks.c (default_addr_space_pointer_mode): Remove check
8096         for generic address space.
8097         (default_addr_space_address_mode): Likewise.
8098         (default_addr_space_valid_pointer_mode): Likewise.
8099         (default_addr_space_legitimate_address_p): Likewise.
8100         (default_addr_space_legitimize_address): Likewise.
8101         * target.def (addr_space.pointer_mode): Update documentation
8102         of default behavior.
8103         (addr_space.address_mode): Likewise.
8104         * tm.texi: Update.
8106         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8107         address spaces.
8109 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8111         * builtins.c (fold_builtin_cabs): Delete.
8112         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8113         * match.pd: Add rules previously handled by fold_builtin_cabs.
8115 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8117         * fold-const.h (fold_strip_sign_ops): Delete.
8118         * fold-const.c (fold_strip_sign_ops): Likewise.
8119         (fold_unary_loc, fold_binary_loc): Remove calls to it.
8120         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8121         (fold_builtin_ccos): Delete.
8122         (fold_builtin_pow): Don't call fold_strip_sign_ops.
8123         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8124         Remove fndecl argument.
8125         (fold_builtin_1): Update calls accordingly.  Handle constant
8126         cos, cosh, ccos and ccosh here.
8128 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8130         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8131         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8132         * common.opt (fssa-backprop): New option.
8133         * fold-const.h (negate_mathfn_p): Declare.
8134         * fold-const.c (negate_mathfn_p): Make public.
8135         * timevar.def (TV_TREE_BACKPROP): New.
8136         * tree-pass.h (make_pass_backprop): Declare.
8137         * passes.def (pass_backprop): Add.
8138         * gimple-ssa-backprop.c: New file.
8140 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8141             Sebastian Pop  <s.pop@samsung.com>
8143         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8144         Do not call create_empty_if_region_on_edge when cond_expr is true.
8145         (translate_isl_ast_node_for): Check whether a guard has been generated.
8147 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8149         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8150         (operator=): Removed.
8151         (dr_info): Make alias_set number the last argument with default
8152         value of invalid_alias_set.
8153         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8154         of dr_info.
8155         (rewrite_reductions_out_of_ssa): Iterate only through the
8156         basic blocks which are inside region.
8157         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8158         * sese.h (struct sese_l): Removed assignment operator.
8159         (split_region_for_bb): Removed dead code.
8161 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8163         * graphite-poly.h (struct dr_info): Removed conversion constructor.
8164         (struct scop): Renamed scop::region to scop::scop_info
8165         (scop_set_region): Same.
8166         (SCOP_REGION): Removed
8167         (SCOP_CONTEXT): Removed.
8168         (POLY_SCOP_P): Removed.
8169         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8170         Rename scop->region to scop->scop_info.
8171         (add_parameters_to_ivs_params): Same.
8172         (graphite_regenerate_ast_isl): Same.
8173         * graphite-poly.c (new_scop): Same.
8174         (free_scop): Same.
8175         (print_scop_params): Same.
8176         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8177         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8178         (dot_all_scops_1): Rename scop->region to scop->scop_info.
8179         (scop_detection::nb_pbbs_in_loops): Same.
8180         (find_scop_parameters): Same.
8181         (try_generate_gimple_bb): Same.
8182         (gather_bbs::before_dom_children): Same.
8183         (gather_bbs::after_dom_children): Same.
8184         (build_scops): Same.
8185         * graphite-sese-to-poly.c (build_scop_scattering): Same.
8186         (extract_affine_chrec): Same.
8187         (extract_affine): Same.
8188         (set_scop_parameter_dim): Same.
8189         (build_loop_iteration_domains): Same.
8190         (create_pw_aff_from_tree): Same.
8191         (add_param_constraints): Same.
8192         (build_scop_iteration_domain): Same.
8193         (build_scop_drs): Same.
8194         (analyze_drs_in_stmts): Same.
8195         (insert_out_of_ssa_copy_on_edge): Same.
8196         (rewrite_close_phi_out_of_ssa):Same.
8197         (rewrite_reductions_out_of_ssa):Same.
8198         (handle_scalar_deps_crossing_scop_limits):Same.
8199         (rewrite_cross_bb_scalar_deps):Same.
8200         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8201         (build_poly_scop):Same.
8202         (build_alias_set): Use pointer to dr_info.
8203         * graphite.c (print_graphite_scop_statistics):
8204         (graphite_transform_loops):
8205         * sese.h (struct sese_l): Remove conversion constructor.
8207 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8209         PR middle-end/67966
8210         * tree.c (verify_type): Verify that TYPE_MODE match
8211         between TYPE_CANONICAL and type.
8212         * expr.c (store_expr_with_bounds): Revert my previous change.
8213         * expmed.c (store_bit_field_1): Revert prevoius change.
8214         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8215         to match for all types.
8217 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
8219         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8220         nesting.
8222 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8224         * doc/tm.texi: Regenerated.
8225         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8226         * stor-layout.c (layout_type): Use mode to get vector mask size.
8227         * target.def (get_mask_mode): New.
8228         * targhooks.c (default_get_mask_mode): New.
8229         * targhooks.h (default_get_mask_mode): New.
8230         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8231         for boolean vector.
8232         * tree.c (MAX_BOOL_CACHED_PREC): New.
8233         (nonstandard_boolean_type_cache): New.
8234         (build_nonstandard_boolean_type): New.
8235         (make_vector_type): Vector mask has no canonical type.
8236         (build_truth_vector_type): New.
8237         (build_same_sized_truth_vector_type): New.
8238         (truth_type_for): Support vector masks.
8239         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8240         (build_truth_vector_type): New.
8241         (build_same_sized_truth_vector_type): New.
8242         (build_nonstandard_boolean_type): New.
8243         * tree-cfg.c (verify_gimple_comparison) Require boolean
8244         vector type for vector comparison.
8245         (verify_gimple_assign_ternary): Likewise.
8246         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8247         condition operand.
8248         * tree-vect-stmts.c (vectorizable_condition): Use boolean
8249         vector type for vector comparison.
8250         * tree-vect-generic.c (elem_op_func): Add new operand to hold
8251         vector type.
8252         (do_unop): Adjust to modified function type.
8253         (do_binop): Likewise.
8254         (do_plus_minus): Likewise.
8255         (do_negate); Likewise.
8256         (expand_vector_piecewise): Likewise.
8257         (do_cond): Likewise.
8258         (do_compare): Use comparison instead of condition.
8259         (expand_vector_divmod): Use boolean vector type for comparison.
8260         (expand_vector_operations_1): Skip scalar mask operations.
8262 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8264         * omp-low.c (simd_clone_create): Set in_other_partition
8265         for created clones.
8267 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8269         * doc/extend.exp (Local Register Variables): Rewrite.
8271 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8273         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8274         and x*x in cases where the operands are sign ops.  Extend these
8275         rules to handle copysign as a sign op (including for cos, cosh
8276         and pow, which already treated negate and abs as sign ops).
8278 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
8280         PR target/68018
8281         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8282         for 64-bit MS_ABI targets also when default incoming stack boundary
8283         is overriden.
8285 2015-10-21  Richard Biener  <rguenther@suse.de>
8287         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8288         cond stmts, enhanced and split out from ...
8289         (vn_phi_eq): ... here.
8291 2015-10-21  Richard Biener  <rguenther@suse.de>
8293         PR middle-end/68031
8294         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8295         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8296         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
8297         make sure they are not registered for update.
8299 2015-10-21  Richard Biener  <rguenther@suse.de>
8301         PR tree-optimization/68026
8302         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8303         unsigned VARYING values.
8305 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
8307         * asan.c (asan_emit_stack_protection): Don't pass local stack to
8308         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8309         NULL and use local stack than.
8310         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8311         in addition to __asan_init.
8312         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8313         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8314         * asan.h (asan_intercepted_p): Handle new string builtins.
8315         * ubsan.c (ubsan_use_new_style_p): New function.
8316         (ubsan_instrument_float_cast): If location is unknown, assign
8317         input_location to loc. Propagate loc to ubsan_create_data if
8318         ubsan_use_new_style_p returned true.
8320 2015-10-21  Jeff Law  <law@redhat.com>
8322         * Makefile.in (OBJS): Remove sched-vis.c
8323         * sched-vis.c: Removed.  Code moved into...
8324         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
8325         * rtl.h: Remove prototypes for functions now living in print-rtl.c
8326         * print-rtl.h Add prototypes for new functions in print-rtl.c.
8327         * auto-inc-dec.c: Include print-rtl.h
8328         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8329         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8331         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8332         ATTRIBUTE_UNUSED.
8334 2015-10-21  Richard Biener  <rguenther@suse.de>
8335             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8337         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8338         to match.pd.
8339 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8340 about signed left shift stronger and clarify the cases when they're
8341 broken.
8342         Move (a * (1 << b)) is (a << b) to match.pd.
8343         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8344         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8345         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8347         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8348         New simplifier.
8349         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8350         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8351         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8352         : New simplifier.
8353         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8354         New simplifier.
8355         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8357 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
8358             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8359             Alan Modra  <amodra@gmail.com>
8361         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8362         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8363         (LINK_SPEC): Add %(link_secure_plt).
8364         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8365         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8367 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
8368             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8370         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8371         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8373 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8375         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8376         New function.
8377         (fusion_load_store): Use it.
8378         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8379         ldp and stp in VD modes.
8380         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8381         (store_pair<mode>, VD): Likewise.
8383 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
8385         PR rtl-optimization/67609
8386         * lra-splill.c (lra_final_code_change): Don't remove all
8387         sub-registers.
8389 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8391         * simplify-rtx.c (simplify_binary_operation): If either operand was
8392         a constant pool reference use them if all other simplifications failed.
8394 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8396         * config/aarch64/aarch64.md
8397         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8398         * config/aarch64/aarch64-simd.md
8399         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8400         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8401         (aarch64_fpconst_pow_of_2): New function.
8402         (aarch64_vec_fpconst_pow_of_2): Likewise.
8403         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8404         prototype.
8405         (aarch64_vec_fpconst_pow_of_2): Likewise.
8406         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8407         (aarch64_fp_vec_pow2): Likewise.
8409 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
8411         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8412         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
8413         * config/alpha/alpha.c (alpha_function_arg_advance): Update
8414         ALPHA_ARG_SIZE usage.
8415         (alpha_arg_partial_bytes): Ditto.
8417 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8419         PR target/66810
8420         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8421         error_mark_node decls.
8423 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8425         PR target/67963
8426         PR target/67985
8427         * common/config/i386/i386-common.c (ix86_handle_option): Remove
8428         OPT_miamcu handling.
8429         * config/i386/i386.c (PTA_NO_80387): New macro.
8430         (processor_alias_table): Add PTA_NO_80387 to lakemont.
8431         (ix86_option_override_internal): Update MASK_80387 from
8432         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
8433         SSE math only if 80387 is supported.  Don't change
8434         MASK_FLOAT_RETURNS.
8435         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8436         80387 is supported.
8437         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8438         if TARGET_80387 is true and TARGET_IAMCU is false.
8439         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8440         is true and TARGET_IAMCU_P is false.
8442 2015-10-20  Richard Biener  <rguenther@suse.de>
8444         PR tree-optimization/68017
8445         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8447 2015-10-20  Martin Liska  <mliska@suse.cz>
8449         * cgraphclones.c (cgraph_node::create_virtual_clone):
8450         Verify cgraph_node.local.versionable instead of calling
8451         tree_versionable_function_p.
8452         * ipa-cp.c (determine_versionability): Save the information
8453         to ipa_node_params summary.
8454         (ipcp_versionable_function_p): Use it.
8455         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8456         (ipcp_generate_summary): Do not compute cgraph_node
8457         versionability.
8458         * ipa-inline-analysis.c (inline_generate_summary): Compute
8459         versionability for all cgraph nodes.
8460         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8461         ipa_node_params::versionability.
8462         * ipa-prop.h (struct ipa_node_params): Declare it.
8464 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8466         PR other/67868
8467         * varasm.c (assemble_variable): Move special vtv handling to..
8468         (handle_vtv_comdat_sections): .. here. New function.
8469         (output_object_block): Handle vtv sections.
8471 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8473         PR target/66912
8474         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8476 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
8478         * doc/extend.texi: Update documentation WRT inline functions.
8480 2015-10-20  Alan Modra  <amodra@gmail.com>
8482         PR go/66870
8483         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8484         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8485         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8487 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
8489         PR rtl-optimization/66790
8490         * df.h (DF_MIR): New macro.
8491         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8492         (DF_MIR_INFO_BB): New macro.
8493         (DF_MIR_IN, DF_MIR_OUT): New macros.
8494         (struct df_mir_bb_info): New.
8495         (df_mir): New macro.
8496         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8497         declarations.
8498         (df_mir_get_bb_info): New.
8499         * df-problems.c (struct df_mir_problem_data): New.
8500         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8501         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8502         df_mir_confluence_0, df_mir_confluence_n,
8503         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8504         df_mir_bottom_dump, df_mir_verify_solution_start,
8505         df_mir_verify_solution_end): New.
8506         (problem_MIR): New.
8507         (df_mir_add_problem, df_mir_simulate_one_insn): New.
8508         * timevar.def (TV_DF_MIR): New.
8509         * ree.c: Include bitmap.h
8510         (add_removable_extension): Add an INIT_REGS parameter.  Use it
8511         to skip zero-extensions that may get an uninitialized register.
8512         (find_removable_extensions): Compute must-initialized registers
8513         using the MIR dataflow problem. Update the call to
8514         add_removable_extension.
8515         (find_and_remove_re): Call df_mir_add_problem.
8517 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
8519         * common/config/mn10300/mn10300-common.c
8520         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8521         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8523 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
8525         * doc/extend.texi (Explicit Register Variables): Simplify and
8526         avoid unnecessary and confusion abbreviations.  Update cross
8527         references.
8528         doc/implement-c.tex: Update cross reference.
8530 2015-10-19  Jeff Law  <law@redhat.com>
8532         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8533         that create irreducible loops unless the path elimiantes a multiway
8534         branch.
8536 2015-10-19  Richard Biener  <rguenther@suse.de>
8538         PR tree-optimization/67975
8539         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8540         * tree-cfg.c (extract_true_false_controlled_edges): Split out
8541         core worker from ...
8542         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8543         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8544         instead of block number for PHIs with two or one args.
8545         (vn_phi_eq): Compare edge predicates of PHIs that are in different
8546         blocks.
8548 2015-10-19  Richard Biener  <rguenther@suse.de>
8550         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8551         (gimple_stmt_nonnegative_warnv_p): Use it.
8552         * match.pd (CPROJ): New operator list.
8553         (cproj (complex ...)): Move simplifications from ...
8554         * builtins.c (fold_builtin_cproj): ... here.
8556 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8558         * config/i386/i386.c (ix86_expand_vector_move): Use
8559         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8560         alignment.
8562 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8564         * doc/invoke.texi: Replace @optindex with @opindex.
8566 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8568         PR target/67995
8569         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8570         arch= is set,  clear all bits in x_ix86_isa_flags, except for
8571         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8573 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
8575         PR middle-end/68002
8576         * common.opt (fkeep-static-functions): New option.
8577         * doc/invoke.texi: Document it.
8578         * cgraphunit.c (cgraph_node::finalize_function): Use it.
8580 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8582         * sched-int.h (struct autopref_multipass_data_): Remove offset
8583         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
8584         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8585         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
8586         (autopref_rank_data): New function.
8587         (autopref_rank_for_schedule): Use it.
8588         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8590 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
8592         PR other/65800
8593         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8595 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8597         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8598         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
8599         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8600         (STANDARD_STARTFILE_PREFIX_1): New.
8601         (STANDARD_STARTFILE_PREFIX_2): New.
8603 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8605         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8606         (darwin_driver_init): Note a version-min when provided on the c/l.
8607         * config/darwin.h (%darwin_minversion): Remove.
8608         * config/i386/darwin.h: Likewise.
8609         * config/rs6000/darwin.h: Likewise.
8610         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8611         rather than an arbitrary constant.
8613 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8615         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8616         PPC, detect conflicts between -arch and multilib settings.  Detect
8617         and warn about conflicts between multiple -arch definitions.
8619 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
8621         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8623 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8625         * lra-constraints.c (add_next_usage_insn): Change argument type
8626         from rtx to rtx_insn *.
8628 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8630         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8631         for Lakemont.
8633 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
8635         * config/tilepro/gen-mul-tables.cc: Adjust include files.
8636         * config/tilegx/mul-tables.c: Regenerate.
8637         * config/tilepro/mul-tables.c: Regenerate.
8639         * config/tilegx/tilegx-c.c: Adjust include files.
8640         * config/tilegx/tilegx.c: Likewise.
8641         * config/tilepro/tilepro-c.c: Likewise.
8642         * config/tilepro/tilepro.c: Likewise.
8643         * config/aarch64/aarch64-builtins.c: Likewise.
8644         * config/aarch64/aarch64.c: Likewise.
8645         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8646         * config/alpha/alpha.c: Likewise.
8647         * config/arc/arc.c: Likewise.
8648         * config/arm/aarch-common.c: Likewise.
8649         * config/arm/arm-builtins.c: Likewise.
8650         * config/arm/arm-c.c: Likewise.
8651         * config/arm/arm.c: Likewise.
8652         * config/avr/avr-c.c: Likewise.
8653         * config/avr/avr-devices.c: Likewise.
8654         * config/avr/avr-log.c: Likewise.
8655         * config/avr/avr.c: Likewise.
8656         * config/bfin/bfin.c: Likewise.
8657         * config/c6x/c6x.c: Likewise.
8658         * config/cr16/cr16.c: Likewise.
8659         * config/cris/cris.c: Likewise.
8660         * config/darwin-c.c: Likewise.
8661         * config/darwin-driver.c: Likewise.
8662         * config/darwin.c: Likewise.
8663         * config/default-c.c: Likewise.
8664         * config/epiphany/epiphany.c: Likewise.
8665         * config/epiphany/mode-switch-use.c: Likewise.
8666         * config/epiphany/resolve-sw-modes.c: Likewise.
8667         * config/fr30/fr30.c: Likewise.
8668         * config/frv/frv.c: Likewise.
8669         * config/ft32/ft32.c: Likewise.
8670         * config/glibc-c.c: Likewise.
8671         * config/h8300/h8300.c: Likewise.
8672         * config/i386/host-cygwin.c: Likewise.
8673         * config/i386/host-mingw32.c: Likewise.
8674         * config/i386/i386-c.c: Likewise.
8675         * config/i386/i386.c: Likewise.
8676         * config/i386/msformat-c.c: Likewise.
8677         * config/i386/winnt-cxx.c: Likewise.
8678         * config/i386/winnt-stubs.c: Likewise.
8679         * config/i386/winnt.c: Likewise.
8680         * config/ia64/ia64-c.c: Likewise.
8681         * config/ia64/ia64.c: Likewise.
8682         * config/iq2000/iq2000.c: Likewise.
8683         * config/lm32/lm32.c: Likewise.
8684         * config/m32c/m32c-pragma.c: Likewise.
8685         * config/m32c/m32c.c: Likewise.
8686         * config/m32r/m32r.c: Likewise.
8687         * config/mcore/mcore.c: Likewise.
8688         * config/mep/mep-pragma.c: Likewise.
8689         * config/mep/mep.c: Likewise.
8690         * config/microblaze/microblaze-c.c: Likewise.
8691         * config/microblaze/microblaze.c: Likewise.
8692         * config/mips/mips-tables.opt
8693         * config/mips/mips.c: Likewise.
8694         * config/mmix/mmix.c: Likewise.
8695         * config/mn10300/mn10300.c: Likewise.
8696         * config/moxie/moxie.c: Likewise.
8697         * config/msp430/msp430-c.c: Likewise.
8698         * config/msp430/msp430.c: Likewise.
8699         * config/nds32/nds32-cost.c: Likewise.
8700         * config/nds32/nds32-fp-as-gp.c: Likewise.
8701         * config/nds32/nds32-intrinsic.c: Likewise.
8702         * config/nds32/nds32-isr.c: Likewise.
8703         * config/nds32/nds32-md-auxiliary.c: Likewise.
8704         * config/nds32/nds32-memory-manipulation.c: Likewise.
8705         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8706         * config/nds32/nds32-predicates.c: Likewise.
8707         * config/nds32/nds32.c: Likewise.
8708         * config/nios2/nios2.c: Likewise.
8709         * config/nvptx/mkoffload.c: Likewise.
8710         * config/nvptx/nvptx.c: Likewise.
8711         * config/pa/pa.c: Likewise.
8712         * config/pdp11/pdp11.c: Likewise.
8713         * config/rl78/rl78-c.c: Likewise.
8714         * config/rl78/rl78.c: Likewise.
8715         * config/rs6000/host-darwin.c: Likewise.
8716         * config/rs6000/rs6000-c.c: Likewise.
8717         * config/rs6000/rs6000-linux.c: Likewise.
8718         * config/rs6000/rs6000.c: Likewise.
8719         * config/rx/rx.c: Likewise.
8720         * config/s390/s390-c.c: Likewise.
8721         * config/s390/s390.c: Likewise.
8722         * config/sh/sh-c.c: Likewise.
8723         * config/sh/sh-mem.cc: Likewise.
8724         * config/sh/sh.c: Likewise.
8725         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8726         * config/sh/sh_treg_combine.cc: Likewise.
8727         * config/sol2-c.c: Likewise.
8728         * config/sol2-cxx.c: Likewise.
8729         * config/sol2-stubs.c: Likewise.
8730         * config/sol2.c: Likewise.
8731         * config/sparc/sparc-c.c: Likewise.
8732         * config/sparc/sparc.c: Likewise.
8733         * config/spu/spu-c.c: Likewise.
8734         * config/spu/spu.c: Likewise.
8735         * config/stormy16/stormy16.c: Likewise.
8736         * config/v850/v850-c.c: Likewise.
8737         * config/v850/v850.c: Likewise.
8738         * config/vax/vax.c: Likewise.
8739         * config/visium/visium.c: Likewise.
8740         * config/vms/vms-c.c: Likewise.
8741         * config/vms/vms.c: Likewise.
8742         * config/vxworks.c: Likewise.
8743         * config/winnt-c.c: Likewise.
8744         * config/xtensa/xtensa.c: Likewise.
8746 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8748         PR target/67745
8749         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8750         (FUNCTION_BOUNDARY_P): New macro:
8751         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8752         New hook.
8753         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8754         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8755         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8756         * function.c (allocate_struct_function): Call
8757         relayout_function hook.
8758         * passes.c (rest_of_decl_compilation): Likewise.
8760 2015-10-16  Christian Bruel  <christian.bruel@st.com>
8762         PR target/67745
8763         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8764         * config/arm/arm.c (arm_option_override_internal): Call
8765         arm_override_options_after_change_1.
8766         (arm_override_options_after_change): New function.
8767         (arm_override_options_after_change_1): Likewise.
8768         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8770 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8772         Revert:
8773         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8774         empty constructors.
8776 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
8778         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8779         argument is an ADDR_EXPR.
8781 2015-10-16  Richard Biener  <rguenther@suse.de>
8783         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8784         and get rid of force_gimple_operand_gsi.
8785         (gimple_fold_builtin_memory_chk): Likewise.
8786         (gimple_fold_builtin_stxcpy_chk): Likewise.
8787         (rewrite_to_defined_overflow): Likewise.
8788         (gimple_convert_to_ptrofftype): New function.
8789         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8791 2015-10-16  Richard Biener  <rguenther@suse.de>
8793         * tree-nested.h (build_addr): Adjust prototype.
8794         * tree-nested.c (build_addr): Remove context argument and use
8795         mark_addressable.
8796         (get_static_chain): Adjust calls to build_addr.
8797         (convert_nl_goto_reference): Likewise.
8798         (convert_tramp_reference_op): Likewise.
8799         (finalize_nesting_tree_1): Likewise.
8800         * value-prof.c (gimple_ic): Likewise.
8801         * gimple-low.c (lower_builtin_setjmp): Likewise.
8802         * tree-parloops.c (take_address_of): Likewise.
8803         (create_call_for_reduction_1): Likewise.
8804         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8805         (gimple_gen_ic_func_profiler): Likewise.
8807 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8809         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8810         empty constructors.
8812 2015-10-16  Michael Collison  <michael.collison@linaro.org>
8813             Andrew Pinski <andrew.pinski@caviumnetworks.com>
8815         * match.pd ((x < y) && (x < z) -> x < min (y,z),
8816         (x > y) and (x > z) -> x > max (y,z))
8818 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
8819             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8821         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8822         (DYNAMIC_LINKER): Renamed to ...
8823         (GLIBC_DYNAMIC_LINKER): This.
8824         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8826 2015-10-15  Marek Polacek  <polacek@redhat.com>
8828         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8829         gimple_call_builtin instead of is_gimple_call.
8831 2015-10-15  Richard Biener  <rguenther@suse.de>
8833         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8835 2015-10-15  Richard Biener  <rguenther@suse.de>
8837         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8838         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8839         * tree-vect-loop.c (get_initial_def_for_induction): Drop
8840         use of force_gimple_operand in favor of gimple_build.
8841         Use vect_get_new_ssa_name.
8842         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8843         (vectorizable_mask_load_store): Likewise.
8844         (vectorizable_call): Likewise.
8845         (vectorizable_store): Likewise.
8846         (vectorizable_load): Likewise.
8847         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8849 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
8851         PR tree-optimization/67945
8852         * tree-pass.h (PROP_gimple_opt_math): New property flag.
8853         * generic-match-head.c (canonicalize_math_p): New function.
8854         * gimple-match-head.c: Include tree-pass.h.
8855         (canonicalize_math_p): New function.
8856         * match.pd: Group math built-in rules into simplifications
8857         and canonicalizations.  Guard the latter with canonicalize_math_p.
8858         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8859         PROP_gimple_opt_math property.
8861 2015-10-15  Marek Polacek  <polacek@redhat.com>
8863         PR tree-optimization/67953
8864         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8866 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
8868         * config.gcc: Recognize "." in architecture base name for AArch64.
8870 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8872         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8873         ROUND_UP macro.
8874         * config/mips/mips.c (mips_setup_incoming_varargs): Use
8875         ROUND_DOWN to calculate off.
8876         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8877         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8878         rounded_size.
8880 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8882         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8884 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
8885             Torvald Riegel  <triegel@redhat.com>
8887         PR target/67281
8888         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8889         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8890         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8891         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8892         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
8893         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8894         trechkpt, treclaim, tsr, ttest): New define_expands.
8895         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8896         __TM_FENCE__ for htm.
8897         * doc/extend.texi: Update documentation for htm builtins.
8899 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8901         PR target/67967
8902         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8903         REG_CFA_EXPRESSION to aligned SSE stores.
8905 2015-10-14  Jeff Law  <law@redhat.com>
8907         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8908         num_threaded_edges for successful FSM threads too.
8910 2015-10-14  Richard Biener  <rguenther@suse.de>
8912         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8913         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
8914         (vect_get_vec_def_for_operand): Remove unused parameter.
8915         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8916         (vect_create_epilog_for_reduction): Likewise.
8917         (vectorizable_reduction): Likewise.
8918         (vectorizable_live_operation): Likewise.
8919         * tree-vect-patterns.c (type_conversion_p): Likewise.
8920         (vect_recog_vector_vector_shift_pattern): Likewise.
8921         (check_bool_pattern): Likewise.
8922         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8923         (vect_analyze_slp_cost_1): Likewise.
8924         * tree-vect-stmts.c (process_use): Likewise.
8925         (vect_get_vec_def_for_operand): Do not handle reductions.
8926         (vect_get_vec_defs): Adjust.
8927         (vectorizable_mask_load_store): Likewise.
8928         (vectorizable_call): Likewise.
8929         (vectorizable_simd_clone_call): Likewise.
8930         (vect_get_loop_based_defs): Likewise.
8931         (vectorizable_conversion): Likewise.
8932         (vectorizable_assignment): Likewise.
8933         (vectorizable_shift): Likewise.
8934         (vectorizable_operation): Likewise.
8935         (vectorizable_store): Likewise.
8936         (vectorizable_load): Likewise.
8937         (vect_is_simple_cond): Likewise.
8938         (vectorizable_condition): Likewise.
8939         (vect_is_simple_use): Remove unused parameters.
8940         (vect_is_simple_use_1): Adjust and rename.
8942 2015-10-14  Richard Biener  <rguenther@suse.de>
8944         PR tree-optimization/67915
8945         * match.pd: Handle comparisons of addresses of STRING_CSTs.
8946         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8947         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8948         stmt folding in favor of GIMPLE one.
8950 2015-10-14  Marek Polacek  <polacek@redhat.com>
8952         PR tree-optimization/67815
8953         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8954         (reassociate_bb): Call it.
8956 2015-10-14  Richard Biener  <rguenther@suse.de>
8958         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8959         Reset info at start.
8960         (vect_analyze_group_access_1): Add debug print.
8961         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8962         (vect_compute_single_scalar_iteration_cost): ... to this.
8963         (vect_analyze_loop_2): Adjust.
8964         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8965         * tree-vectorizer.h: ... here.
8966         (add_stmt_info_to_vec): Remove.
8967         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8969 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8971         * targhooks.c (default_target_option_pragma_parse): Do not warn if
8972         called on behalf of "#pragma GCC pop_options".
8974 2015-10-14  Tom de Vries  <tom@codesourcery.com>
8976         * cfganal.c (verify_no_unreachable_blocks): New function.
8977         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8978         verify_no_unreachable_blocks.
8979         cfganal.h (verify_no_unreachable_blocks): Declare.
8981 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
8983         * common.opt: Add flag_checking.
8984         * system.h (CHECKING_P): Define.
8986 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8987             Aldy Hernandez  <aldyh@redhat.com>
8988             Ilya Verbin  <ilya.verbin@intel.com>
8990         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8991         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8992         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8993         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8994         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8995         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8996         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8997         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8998         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8999         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9000         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9001         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9002         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9003         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9004         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9005         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9006         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9007         (struct cgraph_simd_clone_arg): Adjust comment.
9008         * coretypes.h (struct gomp_ordered): New forward decl.
9009         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9010         set critical clauses to it.
9011         (gimple_build_omp_ordered): Return gomp_ordered * instead of
9012         gimple *.  Add CLAUSES argument, set ordered clauses to it.
9013         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9014         GIMPLE_OMP_ORDERED.
9015         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9016         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9017         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
9018         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9019         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
9020         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9021         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
9022         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9023         renumber
9024         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9025         (gomp_critical): Add clauses field.
9026         (gomp_ordered): New struct.
9027         (is_a_helper <gomp_ordered *>::test): New inline.
9028         (gimple_build_omp_critical): Add CLAUSES argument.
9029         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
9030         instead of gimple *.
9031         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9032         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9033         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9034         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9035         inline functions.
9036         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9037         (dump_gimple_omp_target): Handle enter data and exit data.
9038         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9039         (dump_gimple_omp_critical): Print clauses.
9040         (dump_gimple_omp_ordered): New function.
9041         (dump_gimple_omp_task): Handle taskloop.
9042         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9043         GIMPLE_OMP_ORDERED.
9044         * gimple-walk.c (walk_gimple_op): Walk clauses on
9045         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9046         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9047         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9048         (struct gimplify_omp_ctx): Add loop_iter_var,
9049         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9050         and target_firstprivatize_array_bases fields.
9051         (delete_omp_context): Release loop_iter_var.
9052         (gimplify_bind_expr): Handle ORT_NONE.
9053         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9054         ORT_COMBINED_TARGET.
9055         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9056         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9057         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
9058         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
9059         ctx->target_map_scalars_firstprivate.
9060         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
9061         data sharing clauses.  For data sharing clause with VLA decl
9062         on omp target/target data don't add firstprivate for the pointer.
9063         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9064         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9065         the addition of ORT_COMBINED_TARGET.
9066         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
9067         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
9068         pointers as zero length array sections and
9069         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9070         data sharing.
9071         (omp_check_private): Handle omp_member_access_dummy_var vars.
9072         (find_decl_expr): New function.
9073         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
9074         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9075         Handle OMP_CLAUSE_GANG separately.  Handle
9076         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9077         clauses.  Diagnose linear clause on combined
9078         distribute {, parallel for} simd construct, unless it is the loop
9079         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9080         Handle map clauses with COMPONENT_REF.  Initialize
9081         ctx->target_map_scalars_firstprivate,
9082         ctx->target_firstprivatize_array_bases and
9083         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
9084         linear clause even to target region if combined.  Remove
9085         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9086         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
9087         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9088         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
9089         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9090         For linear clause on worksharing loop combined with parallel add
9091         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
9092         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
9093         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
9094         taskloop if needed.
9095         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9096         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9097         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9098         GOMP_MAP_POINTER.
9099         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
9100         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9101         in target body.  Handle removal of struct mapping if struct is not
9102         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
9103         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
9104         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
9105         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9106         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9107         clause appear together.  Handle
9108         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
9109         clause if it has map-type-modifier always.  Handle
9110         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9111         clauses.
9112         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9113         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9114         callers.
9115         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
9116         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
9117         iterators in doacross loops.
9118         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9119         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
9120         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
9121         for the addition of ORT_COMBINED_TARGET.
9122         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9123         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
9124         and OMP_TARGET_EXIT_DATA.
9125         (gimplify_omp_ordered): New function.
9126         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9127         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
9128         Gimplify clauses on OMP_CRITICAL.
9129         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9130         expand_GOMP_SIMD_ORDERED_END): New functions.
9131         * internal-fn.def (GOMP_SIMD_ORDERED_START,
9132         GOMP_SIMD_ORDERED_END): New internal functions.
9133         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9134         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9135         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9136         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9137         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9138         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9139         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9140         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9141         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9142         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9143         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9144         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9145         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9146         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9147         adjust type.
9148         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9149         GOMP_target_data_41, adjust type.
9150         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9151         GOMP_target_update_41, adjust type.
9152         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9153         field.
9154         (struct omp_for_data): Add ordered and simd_schedule fields.
9155         (omp_member_access_dummy_var, unshare_and_remap_1,
9156         unshare_and_remap, is_taskloop_ctx): New functions.
9157         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9158         (extract_omp_for_data): Handle taskloops and doacross loops
9159         and simd schedule modifier.
9160         (omp_adjust_chunk_size): New function.
9161         (get_ws_args_for): Use it.
9162         (lookup_sfield): Change first argument to splay_tree_key,
9163         add overload with first argument tree.
9164         (maybe_lookup_field): Likewise.
9165         (use_pointer_for_field): Handle omp_member_access_dummy_var.
9166         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9167         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9168         (build_outer_var_ref): Add LASTPRIVATE argument, handle
9169         taskloops and omp_member_access_dummy_var vars.
9170         (build_sender_ref): Change first argument to splay_tree_key,
9171         add overload with first argument tree.
9172         (install_var_field): For mask & 8 use &DECL_UID as key instead
9173         of the tree itself.
9174         (fixup_child_record_type): Const qualify *.omp_data_i.
9175         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9176         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9177         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9178         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9179         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9180         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9181         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9182         kinds.
9183         (add_taskreg_looptemp_clauses): New function.
9184         (scan_omp_parallel): Use it.
9185         (scan_omp_task): Likewise.
9186         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9187         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9188         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9189         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
9190         sandwiched taskloop constructs.  Type check
9191         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
9192         region.  Diagnose depend(source) or depend(sink:...) on
9193         target constructs or task/taskloop.
9194         (handle_simd_reference): Use get_name.
9195         (lower_rec_input_clauses): Likewise.  Ignore all
9196         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9197         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
9198         before passing it to omp_clause_{default,copy}_ctor.  Handle
9199         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
9200         lastprivate_firstprivate flag for linear that needs copyin and
9201         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9202         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9203         on taskloop lookup decl in outer context.  Pass true to
9204         build_outer_var_ref lastprivate argument.  Handle
9205         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9206         outside of outer taskloop for.
9207         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9208         OMP_CLAUSE_DECL.
9209         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9210         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
9211         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
9212         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
9213         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9214         abstract origin.  Handle omp_member_access_dummy_var vars.
9215         (expand_parallel_call): Use expand_omp_build_assign.
9216         (expand_task_call): Handle taskloop construct expansion.  Add
9217         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
9218         integers.  Add priority argument to GOMP_task* calls.  Or in
9219         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9220         GOMP_task call.
9221         (expand_omp_build_assign): Add prototype.  Add AFTER
9222         argument, if true emit statements after *GSI_P and continue linking.
9223         (expand_omp_taskreg): Adjust expand_task_call caller.
9224         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9225         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9226         zero_iter2_bb and first_zero_iter2 arguments, handle computation
9227         of counts even for ordered loops.
9228         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9229         (expand_omp_ordered_source, expand_omp_ordered_sink,
9230         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9231         functions.
9232         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
9233         clauses on worksharing loop.  Handle DOACROSS loop expansion.
9234         (expand_omp_for_static_nochunk): Handle linear clauses on
9235         worksharing loop.  Adjust expand_omp_for_init_counts
9236         callers.
9237         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
9238         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
9239         expand_omp_for_init_counts callers.
9240         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9241         functions.
9242         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9243         Handle doacross loops.
9244         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9245         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
9246         GOMP_target_{41,update_41,enter_exit_data} libcalls.
9247         (expand_omp): Don't expand ordered depend constructs here, record
9248         ord_stmt instead for later expand_omp_for_generic.
9249         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9250         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9251         clause as stand-alone directive.
9252         (lower_omp_ordered_clauses): New function.
9253         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9254         don't lower anything.
9255         (lower_omp_for_lastprivate): Use last _looptemp_ clause
9256         on taskloop for comparison.
9257         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
9258         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9259         expansion for linear adjustments.
9260         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9261         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9262         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
9263         to tree * pointing to the stmt's clauses.
9264         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9265         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9266         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9267         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9268         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9269         clauses.  Always use short kind and 8-bit align shift.
9270         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9271         (struct lower_omp_regimplify_operands_data): New type.
9272         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9273         New functions.
9274         (lower_omp_1): Use lower_omp_regimplify_operands instead of
9275         gimple_regimplify_operands.
9276         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9277         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9278         clause as stand-alone directive.
9279         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9280         (simd_clone_mangle): Mangle the various linear kinds
9281         per the new ABI.
9282         (simd_clone_adjust_argument_types): Handle
9283         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9284         (simd_clone_init_simd_arrays): Don't do anything for uval.
9285         (simd_clone_adjust): Handle
9286         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9287         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9288         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9289         * omp-low.h (omp_member_access_dummy_var): New prototype.
9290         * passes.def (pass_simduid_cleanup): Schedule another copy of the
9291         pass after all optimizations.
9292         * tree.c (omp_clause_code_name): Add entries for
9293         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9294         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9295         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
9296         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9297         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9298         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
9299         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9300         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9301         clauses.
9302         * tree-core.h (enum omp_clause_linear_kind): New.
9303         (struct tree_omp_clause): Change type of map_kind
9304         from unsigned char to unsigned int.  Add subcode.if_modifier
9305         and subcode.linear_kind fields.
9306         (enum omp_clause_code): Add
9307         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9308         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9309         (OMP_CLAUSE_REDUCTION): Document
9310         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9311         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9312         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9313         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
9314         operand.
9315         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
9316         operand.
9317         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9318         codes.
9319         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9320         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9321         char.
9322         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9323         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9324         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9325         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9326         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9327         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9328         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9329         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9330         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9331         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9332         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9333         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9334         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9335         * tree-inline.c (remap_gimple_stmt): Handle clauses on
9336         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
9337         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9338         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9339         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9340         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9341         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9342         (convert_local_omp_clauses): Likewise.
9343         * tree-pretty-print.c (dump_omp_clause): Handle
9344         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9345         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9346         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9347         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9348         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
9349         GOMP_MAP_FORCE_DEALLOC.  Handle
9350         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9351         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9352         and clauses on OMP_ORDERED and OMP_CRITICAL.
9353         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9354         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9355         (vectorize_loops): Adjust comments.
9356         (pass_simduid_cleanup::execute): Likewise.
9357         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9358         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9359         * wide-int.h (wi::gcd): New.
9361 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9363         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9364         (ix86_function_arg_advance): Ditto.
9365         (ix86_function_arg): Ditto.
9366         (ix86_gimplify_va_arg): Ditto.
9367         (ix86_class_max_nregs): Ditto.
9368         (inline_memory_move_cost): Ditto.
9369         (ix86_set_reg_reg_cost): Ditto.
9370         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9372 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
9374         PR middle-end/67912
9375         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9377 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9379         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9380         ROUND_UP macro and UNITS_PER_WORD * 2.
9381         * config/sparc/sparc.c (sparc_compute_frame_size):
9382         Use ROUND_UP and ROUND_DOWN macros where applicable.
9383         (function_arg_record_value, function_arg_record_value_1)
9384         (function_arg_record_value_1): Ditto.
9385         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9386         alignment to double-word.
9387         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9388         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9389         rounded_size.
9391 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
9393         * rtl.h (print_insn): Fix prototype.
9395 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9397         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9398         -1.  Add assert that returned entry matches phi argument.
9399         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9400         free_stmt_vec_info_vec ...
9401         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
9402         with -1.
9404 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
9406         PR tree-optimization/67909, 67947
9407         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9408         really skip the inner loop.
9410 2015-10-13  Jeff Law  <law@redhat.com>
9412         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9413         Allow single block jump threading paths.
9415 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9417         PR tree-optimization/67476
9418         * doc/invoke.texi (@item parloops-schedule): New item.
9419         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9420         * tree-parloops.c: Include params-enum.h.
9421         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9423 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9425         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9426         * params-enum.h: New file.
9427         * opts.c (handle_param): Handle case that param arg is a string.
9428         * params-list.h: Handle DEFPARAMENUM5 in params.def.
9429         * params.c (find_param): New function, factored out of ...
9430         (set_param_value): ... here.
9431         (param_string_value_p): New function.
9432         * params.h (struct param_info): Add value_names field.
9433         (find_param, param_string_value_p): Declare.
9435 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9437         PR tree-optimization/67476
9438         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9440 2015-10-13  Richard Biener  <rguenther@suse.de>
9442         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9443         the data dependence vector.
9444         (vect_peeling_hash_insert): Get the peeling hash table as argument.
9445         (vect_peeling_hash_get_lowest_cost): Likewise.
9446         (vect_enhance_data_refs_alignment): Adjust.
9447         (struct _vect_peel_info, struct _vect_peel_extended_info,
9448         struct peel_info_hasher): Move from ...
9449         * tree-vectorizer.h: ... here.
9450         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9451         (LOOP_VINFO_PEELING_HTAB): Likewise.
9452         (struct _loop_vec_info): Remove min_profitable_iters and
9453         peeling_htab members.
9454         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9455         here.
9456         (destroy_loop_vec_info): Adjust.
9457         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9458         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9459         to estimate alias versioning cost.
9460         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9462 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
9464         * real.h (real_isinteger): Declare.
9465         * real.c (real_isinteger): New function.
9466         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9467         if y is an even integer.
9469 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9471         revert:
9472         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9473         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9474         counts when these are more informative.
9476 2015-10-12  Jeff Law  <law@redhat.com>
9478         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9479         (fsm_find_control_stmt_paths): Change name of first argument to
9480         more accurately relfect what it really is.  Handle simplification
9481         of GIMPLE_COND after finding a thread path for NAME.
9482         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9483         nontrivial conditions to be handled by FSM threader.
9484         (thread_through_normal_block): Extract the name to looup via
9485         FSM threader from COND_EXPR.
9487         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9488         restriction that traced SSA_NAME is a user variable.
9490 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9492         PR tree-optimization/67476
9493         * omp-low.c (expand_omp_for_generic): Add missing phis.
9495 2015-10-12  Tom de Vries  <tom@codesourcery.com>
9497         PR tree-optimization/67476
9498         * omp-low.c (expand_omp_for_generic): Handle simple latch.
9500 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
9502         * config/aarch64/aarch64-simd-builtins.def: Update builtins
9503         tables: add tbl3 and tbx4.
9504         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9505         (aarch64_tbx4v8qi): New.
9506         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9507         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9508         Rewrite using builtin functions.
9509         * config/aarch64/iterators.md (UNSPEC_TBX): New.
9511 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9513         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9514         ROUND_UP macro.
9515         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9516         Use ROUND_UP and ROUND_DOWN macros where applicable.
9517         (rs6000_darwin64_record_arg_flush): Ditto.
9518         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9519         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9520         rounded_size.
9522 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
9524         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9525         (AARCH64_ROUND_DOWN): Ditto.
9526         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9528 2015-10-12  Richard Biener  <rguenther@suse.de>
9530         PR ipa/67783
9531         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9532         code that analyzes IVs on each stmt but in a cheaper way avoiding
9533         quadratic behavior.
9535 2015-10-12  Nick Clifton  <nickc@redhat.com>
9537         * config/msp430/msp430.c (msp430_mcu_names): Rename to
9538         msp430_mcu_data, add fields for ISA and hardware multiply
9539         support.  Import latest data from the devices.csv file.
9540         (msp430_override_option): Use the data from the new array.
9541         (msp430_use_f5_series_hwmult): Likewise.
9542         (use_32bit_hwmult): Likewise.
9543         (msp430_no_hwmult): Likewise.
9544         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9545         MCU names.
9546         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9547         not recognised then no hardware multiply support is assumed and
9548         that only the MSP430 ISA is allowed.
9550 2015-10-12  Richard Biener  <rguenther@suse.de>
9552         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9553         related code ...
9554         (vect_analyze_loop_2): ... here.
9556 2015-10-11  Jason Merrill  <jason@redhat.com>
9558         PR c++/67557
9559         * expr.c (store_field): Call store_constructor directly when
9560         storing a CONSTRUCTOR into a target smaller than its type.
9561         Guard against unsafe bitwise copy.
9563 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9565         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9566         counts when these are more informative.
9568 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9570         * tree-profile.c (tree_profiling): Do not clear
9571         pure/const when not instrumenting.
9572         (pass tree_profile): Add dump of symtab.
9574 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9576         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9577         addresses.
9578         (fold_addr_of_array_ref_difference): Likewise.
9580 2015-10-11  Jeff Law  <law@redhat.com>
9582         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9583         tree-ssa-threadbackward.c.
9584         (fsm_find_control_statement_thread_paths): Likewise.
9585         (thread_through_normal_block): Break out FSM bits and move them
9586         into a new function in tree-ssa-threadbackward.c.  Call new function
9587         instead.
9588         Minimize header file usage.
9589         * tree-ssa-threadbackward.h: New file.
9590         * tree-ssa-threadbackward.c: Likewise.
9591         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9593 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
9595         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9597 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
9599         PR rtl-optimization/67864
9600         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9601         fallthrough edges for conditional jumps.  Don't sort candidate
9602         edges if not optimizing for speed.
9604 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9606         * defaults.h (REVERSE_CONDITION): New default definition.
9607         * jump.c (reversed_comparison_code_parts): Adjust.
9609 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9611         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9612         check HARD_FRAME_POINTER_IS_ARG_POINTER.
9614 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9616         * defaults.h (FRAME_ADDR_RTX): New default definition.
9617         * builtins.c (expand_builtin_return_addr): Adjust.
9619 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9621         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9622         * builtins.c (expand_builtin_return_addr): Adjust.
9624 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9626         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9627         * builtins.c (expand_builtin_return_addr): Adjust.
9628         * doc/tm.texi: Likewise.
9629         * doc/tm.texi.in: Likewise.
9630         * except.c (expand_builtin_unwind_init): Likewise.
9632 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9634         * builtins.c (expand_builtin_return_addr): Adjust.
9635         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9637 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9639         * tree.c (type_with_interoperable_signedness): New.
9640         (gimple_canonical_types_compatible_p): Use it.
9641         * tree.h (type_with_interoperable_signedness): Declare
9643 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
9645         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9646         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9647         when OEP_ADDRESS_OF is se.
9649 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9650             Sebastian Pop  <s.pop@samsung.com>
9652         * graphite-dependences.c (scop_get_dependences): Add dump of the
9653         data dependence graph.
9654         * graphite-poly.c (print_isl_union_map): New.
9655         (debug_isl_union_map): New.
9656         * graphite-poly.h (print_isl_union_map): Declare.
9657         (debug_isl_union_map): Declare.
9659 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
9660             Sebastian Pop  <s.pop@samsung.com>
9662         * graphite-poly.c (print_iteration_domain): Remove verbosity.
9663         Remove OpenScop formatting.
9664         (print_iteration_domains): Same.
9665         (debug_iteration_domain): Same.
9666         (debug_iteration_domains): Same.
9667         (print_pdr): Same.
9668         (debug_pdr): Same.
9669         (dump_gbb_cases): Same.
9670         (dump_gbb_conditions): Same.
9671         (print_pdrs): Same.
9672         (debug_pdrs): Same.
9673         (print_pbb_body): Same.
9674         (print_pbb): Same.
9675         (print_scop_params): Same.
9676         (print_scop_context): Same.
9677         (print_scop): Same.
9678         (debug_pbb_domain): Same.
9679         (debug_pbb): Same.
9680         (debug_scop_context): Same.
9681         (debug_scop): Same.
9682         (debug_scop_params): Same.
9683         * graphite-poly.h: Same.
9684         * graphite.c (graphite_transform_loops): Same.
9686 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9688         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9689         call that isn't needed.
9691 2015-10-09  Jeff Law  <law@redhat.com>
9693         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9694         rather than moving each name to the freelist individually.
9696 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
9698         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9699         * frame-header-opt.c: New file.
9700         * config/mips/mips-proto.h (mips_register_frame_header_opt):
9701         Add prototype.
9702         * config/mips/mips.c (mips_compute_frame_info): Check
9703         optimize_call_stack flag.
9704         (mips_option_override): Register new frame_header_opt pass.
9705         (mips_frame_info, mips_int_mask, mips_shadow_set,
9706         machine_function): Move these types to...
9707         * config/mips/mips.h: here.
9708         (machine_function): Add does_not_use_frame_header and
9709         optimize_call_stack fields.
9710         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9711         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9712         Document new flags.
9713         * config/mips/mips.opt (mframe-header-opt): Add new option.
9715 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
9717         * config/i386/i386.c
9718         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9719         ROUND_DOWN where applicable.
9721 2015-10-09  Jeff Law  <law@redhat.com>
9723         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9724         correct statement.
9726 2015-10-09  Renlin Li  <renlin.li@arm.com>
9728         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9729         operands[0] and operands[2].
9730         (neon_vtrn<mode>_insn): Likewise.
9731         (neon_vzip<mode>_insn): Likewise.
9733 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9735         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9736         ((X & C2) << C1): Expand to...
9737         (X {&,^,|} C2 << C1): ...This.
9738         ((X & C2) >> C1): Expand to...
9739         (X {&,^,|} C2 >> C1): ...This.
9741 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
9743         PR target/67895
9744         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9745         Adjust embedded rounding/SAE specifier position.
9746         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9747         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9748         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9749         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9750         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9751         Likewise.
9752         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9754 2015-10-09  Martin Jambor  <mjambor@suse.cz>
9756         tree-optimization/67794
9757         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9758         between types of state,ents but accept original definitions as a
9759         parameter.
9760         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9761         iterate over definitions.
9763 2015-10-09  James Norris  <jnorris@codesourcery.com>
9765         * config/rs6000/rs6000.c (rs6000_offload_options): New.
9766         (TARGET_OFFLOAD_OPTIONS): New.
9768 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
9770         PR middle-end/67891
9771         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9773         PR middle-end/67766
9774         * function.c (expand_function_end): Move return value
9775         promotion past the handling of PARALLELs and CONCATs.
9777         PR rtl-optimization/67828
9778         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9779         (tree_may_unswitch_on): Don't unswitch on expressions
9780         involving undefined values.
9782 2015-10-09  Richard Biener  <rguenther@suse.de>
9784         * genmatch.c (print_operand): Fix formatting.
9785         (dt_node::append_simplify): Warn for multiple simplifiers
9786         that match the same pattern.
9787         * match.pd (log (exp @0)): Remove duplicates.
9789 2015-10-09  Richard Biener  <rguenth@suse.de>
9791         PR target/67366
9792         * gimple-fold.c (optabs-query.h): Include
9793         (gimple_fold_builtin_memory_op): Allow unaligned stores
9794         when movmisalign_optabs are available.
9796 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9798         PR target/67366
9799         * config/arm/arm.md (movmisalign<mode>): New.
9800         * config/arm/iterators.md (HSI): New.
9802 2015-10-09  Richard Biener  <rguenther@suse.de>
9804         PR tree-optimization/67891
9805         * gimple-match.h (gimple_simplified_result_is_gimple_val):
9806         New helper.
9807         (gimple_resimplify1): Declare.
9808         (gimple_resimplify2): Likewise.
9809         (gimple_resimplify3): Likewise.
9810         * gimple-match-head.c (gimple_resimplify1): Export.
9811         (gimple_resimplify2): Likewise.
9812         (gimple_resimplify3): Likewise.
9813         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9814         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9815         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9816         to avoid creating stmts without VN info.
9818 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
9820         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9821         of availability.
9823 2015-10-08  Jeff Law  <law@redhat.com>
9825         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9826         and release_ssa_name in two places.
9827         (gimple_stringop_fixed_value): Similarly.
9829         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9830         release_defs.
9832         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9833         unlink_stmt_vdef and release_ssa_name_fn.
9835         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9836         release_defs.
9838 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
9840         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9841         SSE register save area to 16 bytes only if the incoming stack
9842         boundary is no less than 16 bytes.
9844 2015-10-08  Jeff Law  <law@redhat.com>
9846         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9847         release_ssa_name.  Fix typo in comment.
9849 2015-10-08  Nathan Sidwell  <nathan@acm.org>
9851         * config/nvptx/nvptx.h (struct machine_function): Add comment.
9852         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9853         may return pointer as well as in memory.
9854         (nvptx_output_return): Likewise.
9856 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9858         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9859         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9860         * match.pd: Add rules previously handled by fold_builtin_sqrt
9861         and fold_builtin_cbrt.
9863 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9865         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9866         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9867         * fold-const.h (tree_unary_nonnegative_warnv_p)
9868         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9869         (tree_expr_nonnegative_warnv_p): Add depth parameters.
9870         * fold-const.c: Include gimple-fold.h and params.h.
9871         (tree_ssa_name_nonnegative_warnv_p): New function.
9872         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9873         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9874         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9875         Add a depth parameter and increment it for recursive calls to
9876         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
9877         to handle SSA names.
9878         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9879         (gimple_stmt_nonnegative_warnv_p): Declare.
9880         * tree-vrp.c (remove_range_assertions): Remove assert that condition
9881         cannot be proven false.
9882         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9883         (gimple_stmt_nonnegative_warnv_p): Move to...
9884         * gimple-fold.c: ...here.  Add depth parameters and pass them
9885         down to the tree routines.  Accept statements that aren't
9886         assignments or calls but just return false for them.
9887         (gimple_val_nonnegative_real_p): Delete.
9888         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9889         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9890         Check HONOR_NANs first.
9892 2015-10-08  Martin Jambor  <mjambor@suse.cz>
9894         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
9895         unnecessary MIN.
9897 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9899         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9900         in the tail of outer-loop.
9902 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
9904         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9905         return UI_NONE.
9907 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9909         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9910         "cfghooks.h", add prototypes for introduced new functions.
9911         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9912         checks on ability of loop unswitching to tree_unswitch_single_loop;
9913         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9914         on innermost loop check.
9915         (tree_unswitch_single_loop): Add all required checks on ability of
9916         loop unswitching under zero recursive level guard.
9917         (tree_unswitch_outer_loop): New function.
9918         (find_loop_guard): Likewise.
9919         (empty_bb_without_guard_p): Likewise.
9920         (used_outside_loop_p): Likewise.
9921         (get_vop_from_header): Likewise.
9922         (hoist_guard): Likewise.
9923         (check_exit_phi): Likewise.
9925 2015-10-08  Marek Polacek  <polacek@redhat.com>
9927         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9928         ops element.
9930 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9932         PR c/65345
9933         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9934         create_tmp_var_raw instead of create_tmp_var.
9936 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
9938         * expr.c (store_expr_with_bounds): Handle aggregate moves from
9939         BLKmode.
9940         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9941         to define gimple type system; compare aggregates only by size.
9943 2015-10-07  Jeff Law  <law@redhat.com>
9945         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9946         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9947         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
9948         unnecessarily.
9950 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9951             Sebastian Pop  <s.pop@samsung.com>
9953         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9954         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9955         (generate_isl_schedule): Same.
9956         * graphite-optimize-isl.c (scop_get_domains): Same.
9957         (apply_schedule_map_to_scop): Same.
9958         * graphite-poly.c (print_iteration_domains): Same.
9959         (remove_gbbs_in_scop): Same.
9960         (new_scop): Same.
9961         (free_scop): Same.
9962         (print_scop): Same.
9963         * graphite-poly.h (struct scop): Rename bbs to pbbs.
9964         (SCOP_BBS): Remove.
9965         * graphite-scop-detection.c (compare_bb_depths): Remove.
9966         (graphite_sort_dominated_info): Remove.
9967         (try_generate_gimple_bb): Move out of scop_detection.
9968         (all_non_dominated_preds_marked_p): Remove.
9969         (build_scop_bbs_1): Remove.
9970         (build_scop_bbs): Remove.
9971         (nb_pbbs_in_loops): Do not use SCOP_BBS.
9972         (find_scop_parameters): Same.
9973         (sese_dom_walker): Rename gather_bbs.
9974         (before_dom_children): Call try_generate_gimple_bb and collect gbb
9975         and pbb.
9976         (build_scops): Call gather_bbs.
9977         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9978         (add_conditions_to_constraints): Same.
9979         (build_scop_iteration_domain): Same.
9980         (build_scop_drs): Same.
9981         (new_pbb_from_pbb): Same.
9982         * sese.c (new_sese_info): Create bbs.
9983         * sese.h (struct sese_info_t): Add bbs.
9985 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
9987         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9988         encoding in 64-bit mode.
9990 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
9992         PR target/66697
9993         * config/i386/i386.c (ix86_option_override_internal): Always use
9994         8-byte minimum stack boundary in 64-bit mode.
9995         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9996         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9997         Add a REG_CFA_EXPRESSION note if needed.
9998         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9999         (ix86_handle_force_align_arg_pointer_attribute): New.
10000         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10001         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10002         with ix86_handle_force_align_arg_pointer_attribute.
10003         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10005 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10006             Sebastian Pop  <s.pop@samsung.com>
10008         * graphite-scop-detection.c (parameter_index_in_region): Remove
10009         use of SESE_ADD_PARAMS.
10010         (find_scop_parameters): Same.
10011         * sese.c (new_sese_info): Same.
10012         * sese.h (struct sese_info_t): Remove add_params.
10013         (SESE_ADD_PARAMS): Remove.
10015 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10016             Sebastian Pop  <s.pop@samsung.com>
10018         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10019         an sese_info_p.
10020         (copy_def): Same.
10021         (copy_internal_parameters): Same.
10022         (translate_isl_ast_to_gimple): Use an sese_l.
10023         (build_iv_mapping): Same.
10024         * graphite-poly.c (new_sese): Rename new_sese_info.
10025         (free_sese): Rename free_sese_info.
10026         * graphite-poly.h (struct scop): Use an sese_info_p.
10027         (scop_set_region): Same.
10028         * graphite-scop-detection.c (struct sese_l): Moved...
10029         (get_entry_bb): Moved...
10030         (get_exit_bb): Moved...
10031         (parameter_index_in_region_1): Use an sese_info_p.
10032         (parameter_index_in_region): Same.
10033         (scan_tree_for_params): Same.
10034         (find_params_in_bb): Same.
10035         (sese_dom_walker): Use an sese_l.
10036         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10037         (reduction_phi_p): Same.
10038         (parameter_index_in_region_1): Use an sese_info_p.
10039         (propagate_expr_outside_region): Use an sese_l.
10040         * graphite.c: Replace uses of SCOP_REGION.
10041         * sese.c (sese_record_loop): Use an sese_info_p.
10042         (build_sese_loop_nests): Same.
10043         (sese_build_liveouts_use): Same.
10044         (sese_build_liveouts_bb): Same.
10045         (sese_build_liveouts_bb): Same.
10046         (sese_bad_liveouts_use): Same.
10047         (sese_reset_debug_liveouts_bb): Same.
10048         (sese_build_liveouts): Same.
10049         (new_sese): Renamed new_sese_info.
10050         (free_sese): Renamed free_sese_info.
10051         (set_rename): Use an sese_info_p.
10052         (graphite_copy_stmts_from_block): Same.
10053         (copy_bb_and_scalar_dependences): Same.
10054         (outermost_loop_in_sese_1): Use an sese_l.
10055         (outermost_loop_in_sese): Same.
10056         (if_region_set_false_region): Use an sese_info_p.
10057         (move_sese_in_condition): Same.
10058         (scalar_evolution_in_region): Use an sese_l.
10059         * sese.h (struct sese_l): ... here.
10060         (SESE_ENTRY): Remove.
10061         (SESE_ENTRY_BB): Remove.
10062         (SESE_EXIT): Remove.
10063         (SESE_EXIT_BB): Remove.
10064         (sese_contains_loop): Use an sese_info_p.
10065         (sese_nb_params): Same.
10066         (bb_in_sese_p): Use an sese_l.
10067         (stmt_in_sese_p): Same.
10068         (defined_in_sese_p): Same.
10069         (loop_in_sese_p): Same.
10070         (sese_loop_depth): Same.
10071         (struct ifsese_s): Use an sese_info_p.
10072         (gbb_loop_at_index): Use an sese_l.
10073         (nb_common_loops): Same.
10074         (scev_analyzable_p): Same.
10076 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10078         * config/i386/i386.c (ix86_conditional_register_usage): Use
10079         CALL_USED_REGISTERS_MASK.
10080         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10082 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10084         PR bootstrap/67385
10085         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10086         * configure: Regenerated.
10088 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10090         PR target/67850
10091         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10092         (ix86_set_current_function): This.
10093         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10095 2015-10-07  Richard Biener  <rguenther@suse.de>
10097         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10098         (vinfo_for_stmt): Adjust.
10099         (set_vinfo_for_stmt): Likewise.
10100         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10101         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10102         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10103         of inner loop.
10104         (vect_analyze_loop_1): Remove.
10105         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10106         inner loop when vectorizing an outer loop by splitting out from ...
10107         (vect_analyze_loop_form): ... here.
10109 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10111         PR c/65345
10112         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10113         Use create_tmp_var_raw instead of create_tmp_var.
10115 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10117         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10118         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10119         * real.c (CACHED_FRACTION): New helper macro.
10120         (dconst_third_ptr): Use it.
10121         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10122         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10123         dconst_sixth.
10124         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10126 2015-10-06  Jeff Law  <law@redhat.com>
10128         PR tree-optimization/67816
10129         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10130         from remove_jump_threads_starting_at.  Accept an edge rather than
10131         a basic block.
10132         * tree-ssa-threadupdate.c (removed_edges): New hash table.
10133         (remove_jump_threads_including): Note edges that get removed from
10134         the CFG for later pruning of jump threading paths including them.
10135         (thread_through_all_blocks): Remove paths which include edges that
10136         have been removed.
10137         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10138         on each outgoing edges when optimizing away a control statement.
10140 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10142         * reorg.c (emit_delay_sequence): Store list of delay slot insns
10143         in a vector instead of rtx_insn_list.
10144         (add_to_delay_list): Likewise.
10145         (delete_from_delay_slot): Likewise.
10146         (optimize_skip): Likewise.
10147         (redirect_with_delay_list_safe_p): Likewise.
10148         (check_annul_list_true_false): Likewise.
10149         (steal_delay_list_from_target): Likewise.
10150         (steal_delay_list_from_fallthrough): Likewise.
10151         (redundant_insn): Likewise.
10152         (fill_simple_delay_slots): Likewise.
10153         (fill_slots_from_thread): Likewise.
10154         (fill_eager_delay_slots): Likewise.
10155         (relax_delay_slots): Likewise.
10157 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
10159         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10160         For -mgpopt=local, also exclude unintialized common symbols.
10161         * doc/invoke.texi (Nios II Options): Document the change.
10163 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10165         * config/aarch64/iterators.md (vwcore): Add missing cases for
10166          V4HF/V8HF modes.
10168 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10169             Sebastian Pop  <s.pop@samsung.com>
10171         * graphite-poly.c (new_scop): Initialize drs.
10172         * graphite-poly.h (struct dr_info): New.
10173         (struct scop): Add drs.
10174         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10175         (pdr_add_memory_accesses): Same.
10176         (build_poly_dr): Same.
10177         (build_alias_set): Same.
10178         (build_scop_drs): Same.
10179         (build_pbb_drs): Remove.
10180         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10181         * tree-data-ref.h (data_reference): Remove alias_set.
10183 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10184             Sebastian Pop  <s.pop@samsung.com>
10186         * graphite-poly.c (free_data_refs_aux): Remove.
10187         (free_gimple_poly_bb): Do not call free_data_refs_aux.
10188         * graphite-poly.h (struct base_alias_pair): Remove.
10189         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10190         base_alias_pair and dr->aux.
10191         (build_alias_set): Same.
10192         * tree-data-ref.c (create_data_ref): Initialize alias_set.
10193         * tree-data-ref.h (data_reference): Add alias_set.
10195 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10196             Sebastian Pop  <s.pop@samsung.com>
10198         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10199         Do not set PDR_BASE_OBJECT_SET.
10200         * graphite-poly.h (poly_dr): Same.
10201         (PDR_BASE_OBJECT_SET): Remove.
10202         (new_poly_dr): Update decl.
10203         * graphite-sese-to-poly.c (build_poly_dr): Update call to
10204         new_poly_dr.
10205         (write_alias_graph_to_ascii_dimacs): Remove.
10206         (write_alias_graph_to_ascii_dot): Remove.
10207         (write_alias_graph_to_ascii_ecc): Remove.
10208         (dr_same_base_object_p): Remove.
10209         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
10210         code.
10211         (build_base_obj_set_for_drs): Remove.
10212         (dump_alias_graphs): Remove.
10213         (build_scop_drs): Remove dead code.
10215 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10216             Peter Bergner  <bergner@vnet.ibm.com>
10218         PR target/67808
10219         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10220         allow registers, but provide insns for the combiner to create for
10221         loads from memory. Separate VSX code from non-VSX code. For
10222         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10223         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10224         so that registers come before memory operations. Drop support from
10225         converting DFmode to TFmode, if the DFmode value is in a GPR
10226         register.
10227         (extenddftf2_fprs): Likewise.
10228         (extenddftf2_internal): Likewise.
10229         (extenddftf2_vsx): Likewise.
10230         (extendsftf2): In the expander, only allow registers, but provide
10231         insns for the combiner to create for stores and loads.
10233 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10235         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10236         from the decl parameter.
10238 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
10240         PR 67861
10241         * gimple-fold.c (gimple_fold_builtin): Add break after
10242         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10244 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
10246         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10247         to scop->isl_context.
10249 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10251         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10252         (output_probe_stack_range): Rotate the loop and simplify.
10253         (thumb1_expand_prologue): Tweak sorry message.
10254         * config/arm/arm.md (probe_stack): Use bare string.
10256 2015-10-06  Nick Clifton  <nickc@redhat.com>
10258         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10260 2015-10-06  Nick Clifton  <nickc@redhat.com>
10262         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10263         (ATTR_PERSIST): New constant.
10264         (msp430_data_attr): New function - verifies an attribute that only
10265         applies to variables.
10266         (msp430_attributes): Add noinit and persistent attributes.
10267         (noinit_section): New variable.
10268         (presis_section): New variable.
10269         (TARGET_ASM_INIT_SECTIONS): Define.
10270         (msp430_init_sections): New function - initialises the noinit and
10271         persist section variables.
10272         (msp430_select_section): Add support for noinit and persist
10273         attributes.
10274         (msp430_section_type_flags): Likewise.
10275         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
10276         and persistent attributes.
10278 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10279             Sebastian Pop  <s.pop@samsung.com>
10281         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10282         (no_violations): Remove.
10283         (subtract_commutative_associative_deps): Remove.
10284         (compute_deps): Do not call subtract_commutative_associative_deps.
10285         (transform_is_safe): Remove.
10286         (graphite_legal_transform): Remove.
10287         * graphite-poly.h (graphite_legal_transform): Remove.
10289 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
10291         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10292         which are in this region are passed so gcc_assert and remove redundant
10293         computation.
10294         * sese.c (sese_build_liveouts): Pass only those bbs which are not
10295         in region.
10296         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10297         gcc_assert on that and remove unnecessary computation.
10298         (sese_build_liveouts_use): Same.
10300 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10302         * graphite-dependences.c (scop_get_reads): Renamed scop->context
10303         to scop->param_context.
10304         (scop_get_must_writes): Same.
10305         (scop_get_may_writes): Same.
10306         (scop_get_original_schedule): Same.
10307         (scop_get_transformed_schedule): Same.
10308         (subtract_commutative_associative_deps): Same.
10309         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10310         (generate_isl_context): Same.
10311         (generate_isl_schedule): Same.
10312         (scop_to_isl_ast): Same.
10313         (graphite_regenerate_ast_isl): Same.
10314         * graphite-optimize-isl.c (scop_get_domains): Same.
10315         (optimize_isl): Renamed scop->context to scop->param_context.
10316         * graphite-poly.c (new_poly_bb): Change the type of argument to
10317         gimple_poly_bb_p.
10318         (new_scop): Renamed scop->context to scop->param_context.
10319         (free_scop): Same.
10320         (print_scop_context): Same.
10321         * graphite-poly.h (new_poly_dr): Change the type of argument from
10322         void* to data_reference_p.
10323         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10324         (new_poly_bb): Change the type of argument from void* to
10325         gimple_poly_bb_p.
10326         (pbb_set_black_box): Same.
10327         (struct scop): Rename context to param_context, ctx to isl_context.
10328         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10329         Move declarations closer to assignment.
10330         (find_params_in_bb): Same.
10331         (find_scop_parameters): Same.
10332         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10333         Global to be used for statement IDs.
10334         (isl_id_for_pbb): Use ssa_name_version_typesize.
10335         (simple_copy_phi_p): Move declarations closer to assignment.
10336         (build_pbb_scattering_polyhedrons): Same.
10337         (build_scop_scattering): Same.
10338         (isl_id_for_ssa_name): Same.
10339         (extract_affine_name): Same.
10340         (extract_affine_int): Same.
10341         (extract_affine): Same.
10342         (set_scop_parameter_dim): Use renamed member.
10343         (build_loop_iteration_domains): Same.
10344         (add_param_constraints): Same.
10345         (build_scop_iteration_domain): Same.
10346         (pdr_add_data_dimensions): Same.
10347         (build_poly_dr): Same.
10348         (build_scop_drs): Move declarations closer to assignment.
10349         (analyze_drs_in_stmts): Same.
10350         (insert_out_of_ssa_copy): Same.
10351         (insert_out_of_ssa_copy_on_edge): Same.
10352         (propagate_expr_outside_region): Same.
10353         (rewrite_phi_out_of_ssa): Same.
10354         (rewrite_degenerate_phi): Same.
10355         (rewrite_reductions_out_of_ssa): Same.
10356         (rewrite_cross_bb_scalar_dependence): Same.
10357         (handle_scalar_deps_crossing_scop_limits): Same.
10358         (rewrite_cross_bb_scalar_deps): Same.
10359         * graphite.c (graphite_transform_loops): Use renamed member.
10361 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
10363         PR c/65345
10364         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10365         create_tmp_var_raw instead of create_tmp_var.
10367 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10369         PR c/65345
10370         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10371         Use create_tmp_var_raw instead of create_tmp_var.
10373 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
10375         PR target/67849
10376         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10377         split for upper-bank registers when target does not support
10378         AVX512VL.
10379         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10380         split when target does not support AVX512VL.
10382 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
10384         PR c/65345
10385         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10386         Adjust to use create_tmp_var_raw instead of create_tmp_var.
10388 2015-10-06  Nick Clifton  <nickc@redhat.com>
10390         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10391         multiplication.
10393 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10395         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10396         (case ${target}): Add znver1.
10397         * config/i386/cpuid.h(bit_CLZERO):  Define.
10398         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10399         -march=native recognize znver1 processors.
10400         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10401         znver1, clzero def_and_undef.
10402         * config/i386/i386.c (struct processor_costs znver1_cost): New.
10403         (m_znver1): New definition.
10404         (m_AMD_MULTIPLE): Includes m_znver1.
10405         (processor_target_table): Add znver1 entry.
10406         (ix86_target_string) : Add clzero entry.
10407         (static const char *const cpu_names): Add znver1 entry.
10408         (ix86_option_override_internal): Add znver1 instruction sets.
10409         (PTA_CLZERO) :  New definition.
10410         (ix86_option_override_internal): Handle new clzerooption.
10411         (ix86_issue_rate): Add znver1.
10412         (ix86_adjust_cost): Add znver1.
10413         (ia32_multipass_dfa_lookahead): Add znver1.
10414         (has_dispatch): Add znver1.
10415         * config/i386/i386.h (TARGET_znver1): New definition.
10416         (TARGET_CLZERO): Define.
10417         (TARGET_CLZERO_P): Define.
10418         (struct ix86_size_cost): Add TARGET_ZNVER1.
10419         (enum processor_type): Add PROCESSOR_znver1.
10420         * config/i386/i386.md (define_attr "cpu"): Add znver1.
10421         (set_attr znver1_decode): New definitions for znver1.
10422         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10423         (mclzero): New.
10424         * config/i386/mmx.md (set_attr znver1_decode): New definitions
10425         for znver1.
10426         * config/i386/sse.md (set_attr znver1_decode): Likewise.
10427         * config/i386/x86-tune.def:  Add znver1 tunings.
10428         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10429         * doc/invoke.texi: Add details about znver1
10431 2015-10-06  Richard Biener  <rguenther@suse.de>
10433         PR tree-optimization/67859
10434         * tree-ssa-pre.c (create_expression_by_pieces): Properly
10435         discard not inserted stmts.
10437 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
10439         * doc/extend.texi (Template Instantiation): Reorder options and
10440         de-emphasize -frepo.
10441         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10442         example instead of -frepo.
10444 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10446         PR c/65345
10447         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10448         use create_tmp_var_raw rather than create_tmp_var.
10450 2015-10-06  Richard Biener  <rguenther@suse.de>
10452         * tree-vectorizer.h (vec_info): New base class for...
10453         (_loop_vec_info): ... this and ...
10454         (_bb_vec_info): ... this.
10455         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10456         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10457         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10458         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10459         vect_destroy_datarefs): Adjust interface to take a vec_info *
10460         rather than both a loop_vec_info and a bb_vec_info argument.
10461         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10462         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10463         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10464         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10465         accordingly.
10466         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10467         (destroy_loop_vec_info, vect_analyze_loop_2,
10468         vect_is_simple_reduction_1, get_initial_def_for_induction,
10469         vect_create_epilog_for_reduction, vectorizable_reduction,
10470         vectorizable_live_operation, vect_transform_loop): Adjust.
10471         * tree-vect-patterns.c (type_conversion_p,
10472         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10473         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10474         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10475         check_bool_pattern, vect_recog_bool_pattern,
10476         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10477         * tree-vect-slp.c (vect_get_and_check_slp_defs,
10478         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10479         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10480         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10481         (new_bb_vec_info): Initialize base classs.
10482         * tree-vect-stmts.c (record_stmt_cost, process_use,
10483         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10484         vectorizable_mask_load_store, vectorizable_call,
10485         vectorizable_simd_clone_call, vectorizable_conversion,
10486         vectorizable_assignment, vectorizable_shift,
10487         vectorizable_operation, vectorizable_store,
10488         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10489         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10490         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10492 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10494         PR c/65345
10495         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10496         create_tmp_var_raw rather than create_tmp_var.
10498 2015-10-05  Marek Polacek  <polacek@redhat.com>
10500         * tree-ssa-loop-im.c
10501         (move_computations_dom_walker::before_dom_children): Don't set
10502         SSA_NAME_ANTI_RANGE_P.
10503         * tree-ssa-phiopt.c (value_replacement): Likewise.
10505 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10506             Sebastian Pop  <s.pop@samsung.com>
10508         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10510 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10511             Sebastian Pop  <s.pop@samsung.com>
10513         * graphite-poly.c (new_gimple_poly_bb): ... here.
10514         (free_data_refs_aux): ... here.
10515         (free_gimple_poly_bb): ... here.
10516         (remove_gbbs_in_scop): ... here.
10517         (new_scop): Call new_sese.
10518         (free_scop): Call remove_gbbs_in_scop and free_sese.
10519         * graphite-poly.h (base_alias_pair): ... here.
10520         (new_gimple_poly_bb): Declare.
10521         (free_gimple_poly_bb): Declare.
10522         * graphite-scop-detection.c (parameter_index_in_region_1):
10523         (parameter_index_in_region): ... here.
10524         (scan_tree_for_params): ... here.
10525         (find_params_in_bb): ... here.
10526         (find_scop_parameters): ... here.
10527         (build_scops): Call find_scop_parameters.
10528         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10529         (free_scops): Move...
10530         (single_pred_cond_non_loop_exit): Move...
10531         (sese_dom_walker::before_dom_children): Move...
10532         (sese_dom_walker::after_dom_children): Move...
10533         (build_poly_scop): Move...
10534         * graphite-sese-to-poly.h (base_alias_pair): Move...
10535         * graphite.c (free_scops): ... here.
10537 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10538             Sebastian Pop  <s.pop@samsung.com>
10540         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10541         (trivially_empty_bb_p): Move...
10542         (same_close_phi_node): Move...
10543         (new_gimple_poly_bb): Move...
10544         (compare_bb_depths): Move...
10545         (graphite_sort_dominated_info): Move...
10546         (remove_duplicate_close_phi): Move...
10547         (make_close_phi_nodes_unique): Move...
10548         (canonicalize_loop_closed_ssa): Move...
10549         (canonicalize_loop_closed_ssa_form): Move...
10550         (loop_ivs_can_be_represented): Move...
10551         (single_pred_cond_non_loop_exit): Move...
10552         (graphite_can_represent_init): Move...
10553         (graphite_can_represent_scev): Move...
10554         (stmt_has_simple_data_refs_p): Move...
10555         (stmt_has_side_effects):  Move...
10556         (graphite_can_represent_stmt): Move...
10557         (scop_detection): ... here.
10558         (sese_dom_walker): ... and here.
10559         (build_scops): Call all moved functions.
10560         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10561         (all_non_dominated_preds_marked_p): Move...
10562         (build_scop_bbs_1): Move...
10563         (build_scop_bbs): Move...
10564         (set_scop_parameter_dim): Move...
10565         (nb_pbbs_in_loops): Move...
10566         (build_poly_scop): Do not call all the moved functions.
10568 2015-10-05  Martin Jambor  <mjambor@suse.cz>
10569             Jan Hubicka  <hubicka@ucw.cz>
10571         * ipa-cp.c (ipcp_alignment_lattice): New type.
10572         (ipcp_param_lattices): Use the above to represent alignment.
10573         (ipcp_alignment_lattice::print): New function.
10574         (print_all_lattices): Use it to print alignment information.
10575         (ipcp_alignment_lattice::top_p): New function.
10576         (ipcp_alignment_lattice::bottom_p): Likewise.
10577         (ipcp_alignment_lattice::set_to_bottom): Likewise.
10578         (ipcp_alignment_lattice::meet_with_1): Likewise.
10579         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10580         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10581         (initialize_node_lattices): Likewise.
10582         (propagate_alignment_accross_jump_function): Work with the new class
10583         for alignment lattices.
10584         (propagate_constants_accross_call): Pass only the alignment lattice to
10585         propagate_alignment_accross_jump_function.
10586         (ipcp_store_alignment_results): Work with the new class for alignment
10587         lattices.
10589 2015-10-05  Marek Polacek  <polacek@redhat.com>
10591         PR tree-optimization/67821
10592         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10594 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
10596         PR other/65021
10597         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10598         function to...
10599         (mkoffload_cleanup): ... this.  Adjust all users.
10600         (maybe_unlink): Look at save_temps and verbose flags instead of
10601         debug flag.
10602         (main): Parse "-save-temps" flag.
10603         (generate_target_descr_file, generate_target_offloadend_file)
10604         (generate_host_descr_file, prepare_target_image): Pass it on.
10605         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10606         (mkoffload_cleanup): New function.
10607         (maybe_unlink): Look at save_temps and verbose flags instead of
10608         debug flag.
10609         (main): Instead of calling utils_cleanup, register atexit handler
10610         for mkoffload_cleanup.
10611         (main): Parse "-save-temps" flag.
10612         (compile_native, main): Pass it on.
10613         * lto-wrapper.c (compile_offload_image): Likewise.
10615 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10617         * gimple.h (gimple_op_ptr): Require a non const gimple *.
10618         (gimple_assign_lhs_ptr): Likewise.
10619         (gimple_assign_rhs1_ptr): Likewise.
10620         (gimple_assign_rhs2_ptr): Likewise.
10621         (gimple_assign_rhs3_ptr): Likewise.
10622         (gimple_call_lhs_ptr): Likewise.
10623         (gimple_call_fn_ptr): Likewise.
10624         (gimple_call_chain_ptr): Likewise.
10625                 (gimple_call_arg_ptr): Likewise.
10626                 (gimple_cond_lhs_ptr): Likewise.
10627         (gimple_cond_rhs_ptr): Likewise.
10628         (gimple_switch_index_ptr): Likewise.
10629         (gimple_return_retval_ptr): Likewise.
10631 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10633         * gimple.h (gimple_asm_input_op_ptr): Remove.
10634         (gimple_asm_output_op_ptr): Likewise.
10636 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10638         * gimple.h (gimple_location_ptr): Remove.
10639         * tree-vrp.c (check_all_array_refs): Adjust.
10641 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10643         * tree-ssa-operands.c (build_uses): store tree * instead of
10644         tree.
10645         (finalize_ssa_uses): Adjust.
10646         (append_use): Likewise.
10647         (verify_ssa_operands): Likewise.
10649 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10651         * real.h (build_real_truncate): Declare.
10652         * tree.c (build_real_truncate): New function.
10653         (strip_float_extensions): Use it.
10654         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10655         (fold_builtin_hypot, fold_builtin_pow): Likewise.
10656         * match.pd: Likewise.
10658 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10659            Jiong Wang  <jiong.wang@arm.com>
10661         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10663 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10665         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10666         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10667         (aarch64_print_operand, aarch64_float_const_representable_p)
10668         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10669         instead of REAL_VALUE_FROM_CONST_DOUBLE.
10670         * config/arc/arc.c (arc_print_operand): Likewise.
10671         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10672         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10673         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10674         Likewise.
10675         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10676         (consttable_16): Likewise.
10677         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10678         * config/avr/avr.c (avr_print_operand): Likewise.
10679         * config/bfin/bfin.md: Likewise (in a define_split).
10680         * config/c6x/c6x.md: Likewise (in a define_split).
10681         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10682         (cr16_print_operand): Likewise.
10683         * config/cris/cris.c (cris_print_operand): Likewise.
10684         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10685         * config/fr30/fr30.c (fr30_print_operand): Likewise.
10686         (fr30_const_double_is_zero): Likewise.
10687         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10688         * config/frv/frv.md: Likewise (in a define_split).
10689         * config/frv/predicates.md (int_2word_operand): Likewise.
10690         * config/h8300/h8300.c (h8300_print_operand): Likewise.
10691         * config/i386/i386.c (standard_80387_constant_p): Likewise.
10692         (ix86_print_operand, ix86_split_to_parts): Likewise.
10693         * config/i386/i386.md: Likewise (in a define_split).
10694         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10695         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10696         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10697         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10698         (print_operand): Likewise.
10699         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10700         * config/mep/mep.md: Likewise (in define_split).
10701         * config/microblaze/microblaze.c (microblaze_const_double_ok)
10702         (print_operand): Likewise.
10703         * config/mips/mips.md (consttable_float): Likewise.
10704         * config/mmix/mmix.c (mmix_intval): Likewise.
10705         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10706         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10707         * config/pa/pa.c (pa_singlemove_string): Likewise.
10708         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10709         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10710         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10711         (output_toc): Likewise.
10712         * config/rs6000/rs6000.md: Likewise (in define_splits).
10713         * config/rx/rx.c (rx_print_operand): Likewise.
10714         * config/s390/s390.c (s390_output_pool_entry): Likewise.
10715         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10716         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10717         (and also in define_splits).
10718         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10719         (fp_high_losum_p): Likewise.
10720         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10721         (*movsf_high): Likewise.
10722         * config/spu/spu.c (const_double_to_hwint): Likewise.
10723         * config/v850/v850.c (const_double_split): Likewise.
10724         * config/vax/vax.c (vax_float_literal): Likewise.
10725         * config/visium/visium.c (visium_expand_copysign): Likewise.
10726         * config/visium/visium.md: Likewise (in define_split).
10727         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10728         * config/xtensa/xtensa.c (print_operand): Likewise.
10729         (xtensa_output_literal): Likewise.
10730         * cprop.c (implicit_set_cond_p): Likewise.
10731         * dwarf2out.c (insert_float): Likewise.
10732         * expmed.c (expand_mult, make_tree): Likewise.
10733         * expr.c (compress_float_constant): Likewise.
10734         * rtlanal.c (split_double): Likewise.
10735         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10736         (simplify_const_unary_operation, simplify_binary_operation_1)
10737         (simplify_const_binary_operation): Likewise.
10738         (simplify_const_relational_operation): Likewise.
10739         * varasm.c (output_constant_pool_2): Likewise.
10741 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10743         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10744         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10745         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10746         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10747         instead of CONST_DOUBLE_FROM_REAL_VALUE.
10748         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10749         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10750         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10751         (ix86_emit_swsqrtsf): Likewise.
10752         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10753         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10754         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10755         * config/pa/pa.c (pa_expand_builtin): Likewise.
10756         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10757         (rs6000_scale_v2df): Likewise.
10758         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10759         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10760         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10761         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10762         (vec_ctul): Likewise.
10763         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10764         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10765         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10766         * cse.c (fold_rtx): Likewise.
10767         * emit-rtl.c (immed_double_const): Likewise (in comments).
10768         (init_emit_once): Likewise.
10769         * expr.c (compress_float_constant, expand_expr_real_1)
10770         (const_vector_from_tree): Likewise.
10771         * optabs.c (expand_float, expand_fix): Likewise.
10772         * reg-stack.c (reg_to_stack): Likewise.
10773         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10774         (simplify_const_unary_operation, simplify_binary_operation_1)
10775         (simplify_const_binary_operation, simplify_relational_operation)
10776         (simplify_immed_subreg): Likewise.
10778 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10780         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10781         * doc/tm.texi: Regenerate.
10782         * real.h (REAL_ARITHMETIC): Delete.
10783         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10784         (ix86_expand_round_sse4): Use real_arithmetic instead of
10785         REAL_ARITHMETIC.
10786         * config/i386/sse.md (round<mode>2): Likewise.
10787         * rtl.h (rtx_to_tree_code): Likewise (in comment).
10788         * explow.c (rtx_to_tree_code): Likewise (in comment).
10789         * match.pd: Likewise.
10790         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10791         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10792         (expand_pow_as_sqrts): Likewise.
10793         * tree-pretty-print.c (dump_generic_node): Remove code that
10794         was conditional on REAL_ARITHMETIC being undefined.
10796 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10798         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10799         * doc/tm.texi: Regenerate.
10800         * real.h (real_less): Declare.
10801         (REAL_VALUES_LESS): Delete.
10802         * real.c (real_less): New function.
10803         (real_compare): Use it.
10804         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10805         of REAL_VALUES_LESS.
10806         * config/microblaze/microblaze.c (microblaze_const_double_ok):
10807         Likewise.
10808         * fold-const.c (fold_convert_const_int_from_real): Likewise.
10809         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10810         (simplify_const_relational_operation): Likewise.
10811         * tree-call-cdce.c (check_pow): Likewise.
10812         (gen_conditions_for_pow_cst_base): Likewise.
10814 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10816         * real.h (REAL_VALUES_IDENTICAL): Delete.
10817         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10818         instead of REAL_VALUES_IDENTICAL.
10819         * fold-const.c (operand_equal_p): Likewise.
10820         * ipa-icf.c (sem_variable::equals): Likewise.
10821         * tree-complex.c (some_nonzerop): Likewise.
10822         (expand_complex_multiplication): Likewise.
10823         * tree.c (simple_cst_equal): Likewise.
10824         * varasm.c (compare_constant): Likewise.
10826 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10828         * real.h (real_equal): Declare.
10829         (REAL_VALUES_EQUAL): Delete.
10830         * real.c (real_equal): New function.
10831         (real_compare): Use it.
10832         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10833         * doc/tm.texi: Regenerate.
10834         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10835         real_equal instead of REAL_VALUES_EQUAL.
10836         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10837         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10838         (fp_const_from_val): Likewise.
10839         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10840         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10841         (floating_exact_log2): Likewise.
10842         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10843         * config/vax/vax.c (vax_float_literal): Likewise.
10844         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10845         * cprop.c (implicit_set_cond_p): Likewise.
10846         * expmed.c (expand_mult): Likewise.
10847         * fold-const.c (const_binop): Likewise.
10848         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10849         (simplify_const_binary_operation): Likewise.
10850         (simplify_const_relational_operation): Likewise.
10851         * tree-call-cdce.c (check_pow): Likewise.
10852         (gen_conditions_for_pow_cst_base): Likewise.
10853         * tree-inline.c (estimate_num_insns): Likewise.
10854         * tree-ssa-dom.c (record_equality): Likewise.
10855         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10856         (gimple_expand_builtin_pow): Likewise.
10857         (pass_optimize_widening_mul::execute): Likewise.
10858         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10859         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10860         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10862 2015-10-05  Richard Biener  <rguenther@suse.de>
10864         PR ipa/67783
10865         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10866         consider loop header PHI defs as IVs.
10868 2015-10-05  Richard Biener  <rguenther@suse.de>
10870         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10871         call handling ...
10872         (create_expression_by_pieces): ... here and build GIMPLE
10873         calls directly.  Use gimple_build API and avoid force_gimple_operand.
10874         (insert_into_preds_of_block): Simplify.
10875         (do_regular_insertion): Add comment.
10877 2015-10-04  Jason Merrill  <jason@redhat.com>
10879         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10881 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
10883         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10884         check for general register.
10885         (ix86_emit_save_regs): Ditto.
10886         (ix86_emit_save_regs_using_mov): Ditto.
10887         (ix86_emit_restore_regs_using_pop): Ditto.
10888         (ix86_emit_restore_regs_using_mov): Ditto.
10890 2015-10-03  Marek Polacek  <polacek@redhat.com>
10892         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10893         (insn-dfatab.o): Likewise.
10895 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
10897         * config.gcc (xtensa*-*-uclinux*): New configuration.
10898         * config/xtensa/uclinux.h: New file.
10899         * config/xtensa/uclinux.opt: New file.
10901 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
10903         * doc/cpp.texi (Standard Predefined Macros): Document value of
10904         __cplusplus for C++14.
10906 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
10908         * gcc.c (process_command): Use spec_machine rather than
10909         spec_host_machine to build tooldir_prefix2.
10911 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10912             Bernd Schmidt  <bernds@codesourcery.com>
10914         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10915         (Token, Stmt): Remove structs.
10916         (decls, vars, fns): Remove variables.
10917         (alloc_comment, append_stmt, is_keyword): Remove macros.
10918         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10919         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10920         (parse_init, parse_file): Remove functions.
10921         (read_file): Accept a pointer to a length and store into it.
10922         (process): Don't try to parse the input file, just write it out as
10923         a string, but looking for maps.  Also write out the length.
10924         (main): Don't use "-S" to compile PTX code.
10926 2015-10-02  Jeff Law  <law@redhat.com>
10928         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10929         fixups.
10931 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10933         PR target/67822
10934         * config/nvptx/mkoffload.c (main): Scan the argument vector for
10935         -fopenmp, and skip generating an offloading image if specified.
10937 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
10939         * system.h (ROUND_UP): New macro definition.
10940         (ROUND_DOWN): Ditto.
10941         * ggc-page.c (ROUND_UP): Remove local macro definition.
10942         (PAGE_ALIGN): Implement using ROUND_UP macro.
10944         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10945         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10946         to align values.
10947         (ix86_compute_frame_layout): Ditto.
10948         (ix86_expand_prologue): Ditto.
10949         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10950         to round down values.
10951         (expand_set_or_movmem_via_rep): Ditto.
10953 2015-10-02  Marek Polacek  <polacek@redhat.com>
10955         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10957 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
10959         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10960         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10961         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10962         (free_gimple_bb): Renamed free_gimple_poly_bb.
10963         (try_generate_gimple_bb): Hoist loop invariant code.
10964         (analyze_drs_in_stmts): Same.
10965         (build_scop_drs): Call renamed functions.
10966         (new_pbb_from_pbb): Same.
10967         (scop_ivs_can_be_represented): Delete as functionality now moved to
10968         graphite-scop-detection.c
10969         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10971 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
10973         * graphite-scop-detection.c (stmt_has_side_effects): New function
10974           outlined from stmt_simple_for_scop_p.
10975         (graphite_can_represent_stmt): Same.
10976         (stmt_simple_for_scop_p): Moved code out of this function for better
10977         readability.
10979 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10981         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10982         F_AVX512IFMA.
10983         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10985 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10987         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10989 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10991         PR rtl-optimization/67756
10992         * lra-constraints.c (match_reload): Add a new parameter.  Use it
10993         for creating a pseudo with the same value.
10994         (curr_insn_transform): Pass a new argument to match_reload.
10996 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10998         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10999         (expand_vec_perm_even_odd_1): Handle V64QImode.
11000         (ix86_expand_vec_perm_const_1): Try expansion with
11001         expand_vec_perm_even_odd_trunc as well.
11002         * config/i386/sse.md (VI124_AVX512F): Rename to ...
11003         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11004         to V54QI.
11005         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11006         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11007         to V32HI and V16SI.
11008         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11009         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11010         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11011         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11012         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11013         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11015 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11017         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11018         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11020 2015-10-02  Jason Merrill  <jason@redhat.com>
11022         PR c/59218
11023         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11024         (diagnose_tm_1_op): Also diagnose volatile accesses in
11025         transaction_safe function.
11027 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
11029         * system.h (malloc.h): Don't include obsolete header.
11031 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11033         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11034         (TLS_SECTION_ASM_FLAG): Delete.
11036 2015-10-02  Marek Polacek  <polacek@redhat.com>
11038         PR c/64249
11039         * doc/invoke.texi: Document -Wduplicated-cond.
11040         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11041         (insn-dfatab.o): Likewise.
11042         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11043         warning.
11045 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
11047         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11048         sequences.
11050 2015-10-02  Renlin Li  <renlin.li@arm.com>
11052         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11054 2015-10-02  Renlin Li  <renlin.li@arm.com>
11056         PR target/66776
11057         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11059 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11061         PR rtl-optimization/67786
11062         PR rtl-optimization/67787
11063         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11064         it modifies a reg used in the condition calculation.
11066 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
11068         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11069         alternatives for reads from memory and moves from general-purpose
11070         registers.
11071         (*aarch64_combinez_be<mode>): Likewise.
11073 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
11075         PR target/51726
11076         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11077         selectany within this function without need to keep attribute.
11078         (i386_pe_encode_section_info): Remove selectany-code.
11080 2015-10-02  Richard Biener  <rguenther@suse.de>
11082         * tree-ssa-sccvn.c (has_VN_INFO): New function.
11083         (free_scc_vn): Use it.
11084         (visit_use): Remove dead code and refactor to use gassign
11085         and use less indentation.
11087 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11089         PR target/67788
11090         PR target/67789
11091         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11092         (rs6000_cannot_copy_insn_p): New function.
11093         * config/rs6000/rs6000.md (cannot_copy): New attribute.
11094         (load_toc_v4_PIC_1_normal): Set cannot_copy.
11095         (load_toc_v4_PIC_1_476): Ditto.
11097 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11099         * graphite-scop-detection.c (struct sese_l): New conversion constructor
11100         so that this type can be pushed into a vec.
11101         (class scop_builder): use sese_l to collect scops.
11102         (get_scops): New getter function.
11103         (remove_intersecting_scops): Use sese_l instead of scops_p.
11104         (intersects): Same.
11105         (add_scop): Same.
11106         (subsumes): Same.
11107         (remove_subscops): Same.
11108         (build_scops): Add scops to vec<scops_p> once all the scops have been
11109         detected.
11111 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11113         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11114         Renamed type from gimple_bb_p to gimple_poly_bb_p.
11115         (translate_isl_ast_node_user): Same.
11116         * graphite-poly.c (new_poly_bb): Same.
11117         * graphite-poly.h (gbb_from_bb): Same.
11118         * sese.h: Same.
11119         * graphite-sese-to-poly.c (new_gimple_bb):
11120         gimple_bb_p -> gimple_poly_bb_p
11121         (build_scop_scattering): Same.
11122         (find_params_in_bb): Same.
11123         (add_conditions_to_domain): Same.
11124         (sese_dom_walker::before_dom_children): Same.
11125         (analyze_drs_in_stmts): Same.
11126         (new_pbb_from_pbb): Same.
11127         (free_data_refs_aux): New pointer to type base_alias_pair.
11128         * graphite-sese-to-poly.h: Same.
11129         * sese.c (if_region_set_false_region): Fixed Indentation.
11130         (move_sese_in_condition): Same.
11132 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11133             Aditya Kumar  <aditya.k7@samsung.com>
11135         PR tree-optimization/66980
11136         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11137         when data reference analysis has failed.
11139 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11140             Aditya Kumar  <aditya.k7@samsung.com>
11142         PR tree-optimization/67754
11143         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11144         scev analysis on the same loop nest as analyze_drs_in_stmts.
11145         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11146         renamed...
11147         (try_generate_gimple_bb): Call outermost_loop_in_sese.
11148         (analyze_drs_in_stmts): Same.
11149         * sese.c (outermost_loop_in_sese): ...here.
11151 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11152             Aditya Kumar  <aditya.k7@samsung.com>
11154         PR tree-optimization/67754
11155         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11156         recursion on the inner loops.
11158 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11160         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11161         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11162         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11163         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11164         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11166 2015-10-01  Marek Polacek  <polacek@redhat.com>
11168         PR c/65345
11169         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11170         create_tmp_var_raw rather than create_tmp_var.
11172 2015-10-01  Marek Polacek  <polacek@redhat.com>
11174         PR tree-optimization/67769
11175         * tree-ssa-phiopt.c (conditional_replacement): Call
11176         reset_flow_sensitive_info_in_bb.
11177         (minmax_replacement): Likewise.
11178         (abs_replacement): Likewise.
11180 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
11182         * builtins.c: Don't include gomp-constants.h.
11183         (fold_builtin_1): Don't fold acc_on_device here.
11184         * gimple-fold.c: Include gomp-constants.h.
11185         (gimple_fold_builtin_acc_on_device): New.
11186         (gimple_fold_builtin): Call it.
11188 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11190         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11191         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11193 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
11195         * config/arm/aarch-common-protos.h
11196         (aarch_accumulator_forwarding): New.
11197         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11198         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11199         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11200         * config/arm/cortex-a53.md: Rewrite.
11202 2015-10-01  Richard Biener  <rguenther@suse.de>
11204         * gimple-match.h (mprts_hook): Declare.
11205         * gimple-match.head.c (mprts_hook): Define.
11206         (maybe_push_res_to_seq): Use new hook.
11207         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11208         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11209         (vn_ssa_aux::has_constants): Remove.
11210         * tree-ssa-sccvn.c: Include gimple-match.h.
11211         (VN_INFO_GET): Assert we don't re-use SSA names.
11212         (vn_get_expr_for): Remove.
11213         (expr_has_constants): Likewise.
11214         (stmt_has_constants): Likewise.
11215         (simplify_binary_expression): Likewise.
11216         (simplify_unary_expression): Likewise.
11217         (vn_lookup_simplify_result): New hook.
11218         (visit_copy): Adjust.
11219         (visit_reference_op_call): Likewise.
11220         (visit_phi): Likewise.
11221         (visit_use): Likewise.
11222         (process_scc): Likewise.
11223         (init_scc_vn): Likewise.
11224         (visit_reference_op_load): Likewise.  Use match-and-simplify and
11225         a gimple seq for inserted expressions.
11226         (try_to_simplify): Remove GENERIC stmt combining code.
11227         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11228         * tree-ssa-pre.c (eliminate_insert): Adjust.
11229         (eliminate_dom_walker::before_dom_children): Likewise.
11231 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11233         * doc/invoke.texi (Optimization Options): Add
11234         -freorder-blocks-algorithm=.
11235         (Optimize Options) <-O>: Add -freorder-blocks.
11236         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
11237         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11238         <-freorder-blocks>: Also enabled at levels -O and -Os.
11239         <-freorder-blocks-algorithm=>: Document new option.
11241 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11243         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11244         with flag_reorder_blocks_algorithm.
11245         * common.opt (freorder-blocks-algorithm=): New flag.
11246         (reorder_blocks_algorithm): New enum.
11247         * flag-types.h (reorder_blocks_algorithm): New enum.
11248         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11249         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11251 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11253         * bb-reorder.c: Add intro comment.
11254         (reorder_basic_blocks_software_trace_cache): Print a header to
11255         the dump file.
11256         (edge_order): New function.
11257         (reorder_basic_blocks_simple): New function.
11258         (reorder_basic_blocks): Choose between the STC and the simple
11259         algorithms (always choose the former).
11261 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11263         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11264         function, factored out from ...
11265         (reorder_basic_blocks): ... here.
11267 2015-10-01  Tom de Vries  <tom@codesourcery.com>
11269         * tree-cfg.c (dump_function_to_file): Dump function attributes using
11270         __attribute__(()) string.  Move dumping of function attributes to before
11271         function name.
11273 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
11275         PR target/66870
11276         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11277         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11278         based on gold linker version.
11279         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11280         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11281         * configure, config.in: Regenerate.
11283 2015-10-01  Alan Modra  <amodra@gmail.com>
11285         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11286         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11287         (rs6000_output_mi_thunk): Likewise.
11289 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11291         * config/nvptx/mkoffload.c (process): Change offload data format.
11293 2015-09-30  Jeff Law  <law@redhat.com>
11295         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11296         with constant conditions.
11297         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11298         (remove_ctrl_stmt_and_useless_edges): No longer static.
11299         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11300         (remove_ctrl_stmt_and_useless_edges): Likewise.
11302 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11303             Cesar Philippidis  <cesar@codesourcery.com>
11305         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11306         (TARGET_GOACC_VALIDATE_DIMS): Override.
11307         * target.def (TARGET_GOACC): New target hook prefix.
11308         (validate_dims): New hook.
11309         * targhooks.h (default_goacc_validate_dims): New.
11310         * omp-low.c (oacc_validate_dims): New.
11311         (execute_oacc_device_lower): New.
11312         (default_goacc_validate_dims): New.
11313         (pass_data_oacc_device_lower): New.
11314         (pass_oacc_device_lower): New pass.
11315         (make_pass_oacc_device_lower): New.
11316         * tree-pass.h (make_pass_oacc_device_lower): Declare.
11317         * passes.def (pass_oacc_device_lower): Add it.
11318         * doc/tm.texi: Rebuilt.
11319         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11320         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11322 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11324         PR rtl-optimization/67037
11325         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11327 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
11329         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11330         * passes.c: Include tree-ssanames.h.
11331         (execute_function_todo): Flush the pending free SSA_NAMEs after
11332         eliminating unreachable basic blocks.
11333         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11334         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11335         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11336         (flush_ssanames_freelist): New function.
11337         (release_ssaname_fn): Put released names on the queue.
11338         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11339         * tree-ssanames.h (flush_ssanames_freelist): Declare.
11341 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11343         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11344         (generate_target_descr_file, generate_target_offloadend_file)
11345         (generate_host_descr_file, prepare_target_image): Pass it on.
11346         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11347         (compile_native, main): Pass it on.
11348         * lto-wrapper.c (compile_offload_image): Likewise.
11350 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11351             Ilya Verbin  <ilya.verbin@intel.com>
11352             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11354         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11355         (prepare_target_image, main): Refactor argv building to use
11356         obstacks.
11358 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11360         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11361         * config/spu/spu.c (spu_expand_atomic_op): New function.
11362         * config/spu/spu.md (AINT): New mode iterator.
11363         (ATOMIC): New code iterator.
11364         (atomic_name, atomic_pred): New code predicates.
11365         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11366         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11367         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11368         "atomic_<atomic_name>_fetch<mode>"): Likewise.
11370 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
11372         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11373         debug insns.
11374         (scalar_chain::convert_reg): Likewise.
11376 2015-09-30  Richard Biener  <rguenther@suse.de>
11378         * builtins.c: Add comment that no new simplifications should
11379         be added here.
11381 2015-09-30  Marek Polacek  <polacek@redhat.com>
11383         PR tree-optimization/67690
11384         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11385         reset_flow_sensitive_info_in_bb.
11386         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11387         * tree-ssanames.c: Include "gimple-iterator.h".
11388         (reset_flow_sensitive_info_in_bb): New function.
11389         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11391 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11393         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11394         variable, replacing it with...
11395         (offload_abi): ... this new variable.  Adjust all users.
11396         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11398 2015-09-30  Matthias Klose  <doko@ubuntu.com>
11400         * configure.ac: Remove extraneous ;;.
11401         * configure: Regenerate.
11403 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
11405         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11406         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11407         predicate, disallow register for operand 2.
11409 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
11411         * graphite-dependences.c (scop_get_dependences): Moved in down
11412         in order to be visible to its caller.
11413         * graphite-poly.h: Removed compute_deps, and extend_schedule.
11415 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11416             Aditya Kumar  <aditya.k7@samsung.com>
11418         PR tree-optimization/67754
11419         * graphite-optimize-isl.c (optimize_isl): Call
11420         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11422 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11424         * builtins.c (expand_builtin_acc_on_device): Delete.
11425         (expand_builtin): Don't call it.
11426         (fold_builtin_1): Fold acc_on_device.
11428 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
11430         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11431         (ix86_nsaved_sseregs): Likewise.
11433 2015-09-29  Jeff Law  <law@redhat.com>
11435         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11436         computation of unused value.
11438         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11439         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11440         inline macro expansion.
11442         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11444         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11445         (gen_shl_sext): Likewise.
11446         * config/sh/sh.md (divsi3): Likewise.
11447         (imm->ext_dest_operand splitter): Likewise.
11449 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11450             Aditya Kumar  <aditya.k7@samsung.com>
11452         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11453         (nb_data_writes_in_bb): Remove.
11454         (split_pbb): Remove.
11455         (split_reduction_stmt): Remove.
11456         (is_reduction_operation_p): Remove.
11457         (phi_contains_arg): Remove.
11458         (follow_ssa_with_commutative_ops): Remove.
11459         (detect_commutative_reduction_arg): Remove.
11460         (detect_commutative_reduction_assign): Remove.
11461         (follow_inital_value_to_phi): Remove.
11462         (edge_initial_value_for_loop_phi): Remove.
11463         (initial_value_for_loop_phi): Remove.
11464         (used_outside_reduction): Remove.
11465         (detect_commutative_reduction): Remove.
11466         (translate_scalar_reduction_to_array_for_stmt): Remove.
11467         (remove_phi): Remove.
11468         (dr_indices_valid_in_loop): Remove.
11469         (close_phi_written_to_memory): Remove.
11470         (translate_scalar_reduction_to_array): Remove.
11471         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11472         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11473         (rewrite_commutative_reductions_out_of_ssa): Remove.
11474         (build_poly_scop): Remove call to
11475         rewrite_commutative_reductions_out_of_ssa.
11477 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
11479         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11480         Add new insn types for vector load and store pairs.
11481         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11482         types "neon_ldp{,_q}".
11483         * config/arm/cortex-a57.md (neon_load_c): Add insn types
11484         "neon_ldp{,_q}".
11485         (neon_store_complex): Add insn types "neon_stp{,_q}".
11486         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11487         "neon_{ldp,stp}_q".
11489 2015-09-29  Jeff Law  <law@redhat.com>
11491         * config/rx/constraints.md (Int08): Fix undefined left shift
11492         behaviour.
11493         (Sint08, Sint16, Sint24): Likewise.
11494         * config/rx/rx.c (rx_get_stack_layout): Likewise.
11496         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11497         behaviour.
11499         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11500         left shift behaviour.
11501         * config/msp430/constraints.md ('L' constraint): Similarly.
11502         ('Ys' constraint): Similarly.
11504 2015-09-29  Richard Biener  <rguenther@suse.de>
11506         PR tree-optimization/67170
11507         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11508         the translate function pointer parameter to get the
11509         bool whether to disambiguate only by reference.
11510         (walk_non_aliased_vuses): Likewise.
11511         * tree-ssa-alias.c (maybe_skip_until): Adjust.
11512         (get_continuation_for_phi_1): Likewise.
11513         (get_continuation_for_phi): Likewise.
11514         (walk_non_aliased_vuses): Likewise.
11515         * tree-ssa-sccvn.c (const_parms): New bitmap.
11516         (vn_reference_lookup_3): Adjust for interface change.
11517         Disambiguate parameters pointing to readonly memory.
11518         (free_scc_vn): Free const_parms.
11519         (run_scc_vn): Initialize const_parms from a fn spec attribute.
11521 2015-09-29  Richard Biener  <rguenther@suse.de>
11523         PR tree-optimization/67741
11524         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11525         builtin calls with correct signature.
11527 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
11529         PR target/65105
11530         * config/i386/i386.c: Include dbgcnt.h.
11531         (has_non_address_hard_reg): New.
11532         (convertible_comparison_p): New.
11533         (scalar_to_vector_candidate_p): New.
11534         (remove_non_convertible_regs): New.
11535         (scalar_chain): New.
11536         (scalar_chain::scalar_chain): New.
11537         (scalar_chain::~scalar_chain): New.
11538         (scalar_chain::add_to_queue): New.
11539         (scalar_chain::mark_dual_mode_def): New.
11540         (scalar_chain::analyze_register_chain): New.
11541         (scalar_chain::add_insn): New.
11542         (scalar_chain::build): New.
11543         (scalar_chain::compute_convert_gain): New.
11544         (scalar_chain::replace_with_subreg): New.
11545         (scalar_chain::replace_with_subreg_in_insn): New.
11546         (scalar_chain::emit_conversion_insns): New.
11547         (scalar_chain::make_vector_copies): New.
11548         (scalar_chain::convert_reg): New.
11549         (scalar_chain::convert_op): New.
11550         (scalar_chain::convert_insn): New.
11551         (scalar_chain::convert): New.
11552         (convert_scalars_to_vector): New.
11553         (pass_data_stv): New.
11554         (pass_stv): New.
11555         (make_pass_stv): New.
11556         (ix86_option_override): Created and register stv pass.
11557         (flag_opts): Add -mstv.
11558         (ix86_option_override_internal): Likewise.
11559         * config/i386/i386.md (SWIM1248x): New.
11560         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11561         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11562         (*anddi3_doubleword): New.
11563         (*zext<mode>_doubleword): New.
11564         (*zextsi_doubleword): New.
11565         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11566         (*<code>di3_doubleword): New.
11567         * config/i386/i386.opt (mstv): New.
11568         * dbgcnt.def (stv_conversion): New.
11570 2015-09-29  Tom de Vries  <tom@codesourcery.com>
11572         * tree-cfg.c (dump_function_to_file): Dump function attributes.
11574 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11576         PR target/67716
11577         * config/sh/sh.c (sh_override_options_after_change): New.
11578         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11579         (sh_option_override): Move align_loops, align_jumps and
11580         align_functions handling into sh_override_options_after_change.
11582 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
11584         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11585         (nvptx_record_offload_symbol): Record function execution geometry.
11586         * config/nvptx/mkoffload.c (process): Include launch geometry in
11587         function data.
11588         * omp-low.c (oacc_launch_pack): New.
11589         (replace_oacc_fn_attrib): New.
11590         (set_oacc_fn_attrib): New.
11591         (get_oacc_fn_attrib): New.
11592         (expand_omp_target): Create keyed varargs for GOACC_parallel call
11593         generation.
11594         * omp-low.h (get_oacc_fn_attrib): Declare.
11595         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11596         (DEF_FUNCTION_TYPE_VAR_11): Delete.
11597         * tree.h (OMP_CLAUSE_EXPR): New.
11598         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11600 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11601             Sebastian Pop  <s.pop@samsung.com>
11603         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11605 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11606             Sebastian Pop  <s.pop@samsung.com>
11608         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11609         * graphite-scop-detection.c (struct sese_l): New type.
11610         (get_entry_bb): API for getting entry bb of SESE.
11611         (get_exit_bb): API for getting exit bb of SESE.
11612         (class debug_printer): New type.  Simple printer in debug mode.
11613         (trivially_empty_bb_p): New.  Return true when BB is empty or
11614         contains only debug instructions.
11615         (graphite_can_represent_expr): Call scalar_evoution_in_region
11616         instead of analyze_scalar_evolution.  Pass in scop instead of only
11617         the scop entry.
11618         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11619         scop entry.
11620         (stmt_simple_for_scop_p): Same.
11621         (harmful_stmt_in_bb): Same.
11622         (graphite_can_represent_loop): Deleted.
11623         (struct scopdet_info): Deleted.
11624         (scopdet_basic_block_info): Deleted.
11625         (build_scops_1): Deleted.
11626         (bb_in_sd_region): Deleted.
11627         (find_single_entry_edge): Deleted.
11628         (find_single_exit_edge): Deleted.
11629         (create_single_entry_edge): Deleted.
11630         (sd_region_without_exit): Deleted.
11631         (create_single_exit_edge): Deleted.
11632         (unmark_exit_edges): Deleted.
11633         (mark_exit_edges): Deleted.
11634         (create_sese_edges): Deleted.
11635         (build_graphite_scops): Deleted.
11636         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11637         (build_scops): Use the new scop_builder to build scops.
11638         (dot_all_scops_1): Use the new pretty printer.  Print loop father
11639         as well.
11640         (loop_body_is_valid_scop): New.  Return true if loop body is a
11641         valid scop.
11642         (class scop_builder): New.  Builds SCoPs for polyhedral
11643         optimizations.
11644         (scop_builder): New constructor.
11645         (static sese_l invalid_sese): sese_l with invalid edges.
11646         (get_sese): Get an sese (from a loop) if possible, invalid_sese
11647         otherwise.
11648         (get_nearest_dom_with_single_entry): Get nearest dominator of a
11649         basic_block with single entry.  Return NULL if we get to the
11650         beginning of a function.
11651         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11652         a basic_block with single exit.  Return NULL if we get to the
11653         beginning of a function.
11654         (print_sese): Pretty-print SESE.
11655         (merge_sese): Merge two SESEs if possible and return the new SESE.
11656         (build_scop_depth): Start building the SCoP within a loop nest.
11657         (build_scop_breadth): Start building the SCoP at a single loop
11658         depth.  Merge adjacent SESEs if valid.
11659         (can_represent_loop_1): Returns true if Graphite can represent
11660         loop inside SCoP.  Helper for can_represent_loop.
11661         (can_represent_loop): Returns true if Graphite can represent LOOP
11662         and all its nested loops in SCoP.
11663         (loop_is_valid_scop): Returns true if LOOP and all its nests
11664         constitute a valid SCoP.
11665         (region_has_one_loop): Returns true of a region has only one loop.
11666         (add_scop): Add SCoP to the list of valid scops.  Removes an
11667         already existing scop if it intersects with or subsumed by this one.
11668         (harmful_stmt_in_region): Returns true if SCoP has any statment
11669         which cannot be represented by Graphite.
11670         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11671         (remove_subscops): Remove any SCoP from the list of already found
11672         SCoPs, if subsumed by S1.
11673         (intersects): Return true if region bounded by SCoPs S1 and S2
11674         intersect.
11675         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11676         * graphite.c (print_graphite_scop_statistics):
11677         (print_graphite_statistics): Print SCoP info while debugging.
11678         (graphite_initialize): Early exit in case number of loops in a
11679         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11680         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11681         (graphite_finalize):
11682         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11683         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11684         (recompute_all_dominators): Recalculate POST_DOMINATORS.
11685         * tree-cfg.c (print_loops): Print the function name while printing
11686         loops.
11688 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
11689             Sebastian Pop  <s.pop@samsung.com>
11691         PR tree-optimization/67700
11692         * graphite-sese-to-poly.c (parameter_index_in_region): Call
11693         invariant_in_sese_p_rec.
11694         (extract_affine): Same.
11695         (rewrite_cross_bb_scalar_deps): Call update_ssa.
11696         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
11697         * sese.h (invariant_in_sese_p_rec): Declare.
11699 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
11701         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11703 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
11705         Revert:
11706         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11707                     Jiong Wang  <jiong.wang@arm.com>
11709         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11710         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11711         (REG_CLASS_NAMES): Likewise.
11712         (REG_CLASS_CONTENTS): Likewise.
11713         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11714         (aarch64_register_move_cost): Likewise.
11715         (aarch64_load_symref_appropriately): Invoke the new added pattern if
11716         possible.
11717         * config/aarch64/constraints.md (Uc0): New constraint.
11719 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
11721         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11723 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
11725         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11726         SECTION_EXCLUDE in XO mapping class.
11728 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
11730         PR target/54236
11731         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11732         and handle ne and eq codes.
11733         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11734         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
11735         CONST_INT_P.  Use reverse_condition.
11736         (sh_split_treg_set_expr): Likewise.
11738 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
11740         * config/arm/types.md (type): Add rotate_imm.
11741         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11742         ROR immediate case.
11743         (*rorsi3_insn_uxtw): Likewise.
11744         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11745         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11746         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11748 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11750         PR rtl-optimization/67481
11751         * ifcvt.c (contains_ccmode_rtx_p): New function.
11752         (insn_valid_noce_process_p): Use it.
11754 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11756         PR rtl-optimization/67456
11757         PR rtl-optimization/67464
11758         PR rtl-optimization/67465
11759         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11760         move in the mode of x.  Handle combination of complex and simple
11761         block pairs as well as the case when one is empty.
11763 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11765         * doc/gimple.texi: Update references to gimple_statement_base.
11766         * gdbhooks.py: Likewise.
11767         * gimple.h: Likewise.
11769 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11771         * config/sparc/driver-sparc.c: map LEON to leon3
11773 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11775         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11776           and make it inverse to change default
11777         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11778           supervisor mode
11779         * doc/invoke.texi: Document change of default
11781 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
11783         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11784         true on %f0 for a target without FPU.
11785         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11786         without FPU.
11787         (untyped_return): Do not load %f0 for a target without FPU.
11789 2015-09-28  Andrew Pinski  <apinski@cavium.com>
11791         * config/aarch64/aarch64.md (prefetch):
11792         Change the predicate of operand 0 to register_operand.
11794 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
11796         * config/i386/predicates.md (register_sse4nonimm_operand): New
11797         predicate.
11798         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11799         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11800         Use register_sse4nonimm_operand as operand 0 predicate.
11801         (*vec_extractv8hi_sse2): Remove insn pattern.
11802         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11803         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11805 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
11806             Kaz Kojima  <kkojima@gcc.gnu.org>
11808         PR target/67391
11809         * config/sh/sh-protos.h (sh_lra_p): Declare.
11810         * config/sh/sh.c (sh_lra_p): Make non-static.
11811         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11812         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
11813         Expand into addsi3_scr if operands[2] if needed.
11814         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
11815         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
11816         (addsi3_scr, *addsi3): New insn_and_split patterns.
11818 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
11820         PR rtl-optimization/64164
11821         PR tree-optimization/67312
11822         PR middle-end/67340
11823         PR middle-end/67490
11824         PR bootstrap/67597
11825         * cfgexpand.c (parm_in_stack_slot_p): Remove.
11826         (ssa_default_def_partition): Remove.
11827         (get_rtl_for_parm_ssa_default_def): Remove.
11828         (set_rtl): Check that RTL assignments match expectations.
11829         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
11830         default def location for params and results.  Record SSA names
11831         or types in REG and MEM attrs, respectively.
11832         (set_parm_rtl): New.
11833         (expand_one_ssa_partition): Drop logic that assigned MEMs with
11834         unassigned addresses.
11835         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11836         deferred stack alloc vars.
11837         (expand_used_vars): Skip partitions holding parm default defs.
11838         Move adjust_one_expanded_partition_var loop...
11839         (pass_expand::execute): ... here.  Drop redundant assert.
11840         Adjust comments before the final loop over all ssa names.
11841         Require assigned rtl of parms and results to match exactly.
11842         Reset its attributes to match them, not any other variables in
11843         the same partition.
11844         (expand_debug_expr): Use entry value for PARM's default defs
11845         only iff they have zero nondebug uses.
11846         * cfgexpand.h (parm_in_stack_slot_p): Remove.
11847         (get_rtl_for_parm_ssa_default_def): Remove.
11848         (set_parm_rtl): Declare.
11849         * doc/invoke.texi: Improve wording.
11850         * explow.c (promote_decl_mode): Fix promote_function_mode for
11851         result decls not by reference.
11852         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11853         bypass TYPE_MODE to get the actual vector mode.
11854         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
11855         2015-08-19's changes as follows.  Drop include of
11856         basic-block.h and df.h.
11857         (rtl_for_parm): Remove.
11858         (maybe_reset_rtl_for_parm): Remove.
11859         (parm_in_unassigned_mem_p): Remove.
11860         (use_register_for_decl): Add logic for RESULT_DECLs matching
11861         assign_parms' behavior.
11862         (split_complex_args): Revert.
11863         (assign_parms_augmented_arg_list): Revert.  Add comment
11864         referencing the logic above.
11865         (assign_parm_adjust_stack_rtl): Revert.
11866         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
11867         of SET_DECL_RTL.  Set up a REG if the parm demands so.
11868         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
11869         calls into a single set_parm_rtl.  Set up a temporary RTL
11870         temporarily for expand_assignment.
11871         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
11872         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
11873         (assign_bounds): Revert.
11874         (assign_parms): Revert.  Use set_parm_rtl.
11875         (allocate_struct_function): Relayout result and parms of
11876         non-abstruct functions.
11877         (expand_function_start): Revert.  Use set_parm_rtl.  If the
11878         result is not a hard reg, create a pseudo from the promoted
11879         mode of the default def.  Promote static chain mode.
11880         * tree-outof-ssa.c (remove_ssa_form): Drop unused
11881         partition_has_default_def.  Set up
11882         partitions_for_parm_default_defs.
11883         (finish_out_of_ssa): Remove partition_has_default_def.
11884         Release partitions_for_parm_default_defs.
11885         * tree-outof-ssa.h (struct ssaexpand): Remove
11886         partition_has_default_def.  Add
11887         partitions_for_parm_default_defs.
11888         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11889         stor-layout.h.
11890         (build_ssa_conflict_graph): Fix conflict-detection of default
11891         defs of even unused default defs of params and results.
11892         (for_all_parms): New.
11893         (create_default_def): New.
11894         (register_default_def): New.
11895         (coalesce_with_default): New.
11896         (create_outofssa_var_map): Create default defs for all parms
11897         and results, and register their partitions.  Add GIMPLE_RETURN
11898         operands as coalesce candidates with results.  Add default
11899         defs of each parm or result as coalesce candidates with its
11900         other defs.  Mark each result def, and each default def of
11901         parms, as used_in_copy.
11902         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
11903         with the ssa names, even anonymous ones.  Drop
11904         parm_in_stack_slot_p calls.  Require same signedness and
11905         alignment.
11906         (coalesce_ssa_name): Add coalesce candidates for all defs of
11907         each parm and result, even unused ones.
11908         (parm_default_def_partition_arg): New type.
11909         (set_parm_default_def_partition): New.
11910         (get_parm_default_def_partitions): New.
11911         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11912         * tree-ssa-live.c (partition_view_init): Regard unused defs of
11913         parms and results as used.
11914         (verify_live_on_entry): Don't error out just because they're
11915         not live.
11917 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
11919         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11920         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11921         (output_fde): Don't output length for debug_frame on AIX.
11922         (output_call_frame_info): Don't output length for debug_frame on AIX.
11923         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11924         HAVE_XCOFF_DWARF_EXTRAS.
11925         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11926         HAVE_XCOFF_DWARF_EXTRAS.
11927         (output_compilation_unit_header): Don't output length on AIX.
11928         (output_pubnames): Don't output length on AIX.
11929         (output_aranges): Delete argument. Compute length locally. Don't
11930         output length on AIX.
11931         (output_line_info): Don't output length on AIX.
11932         (dwarf2out_finish): Don't compute aranges_length.
11933         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11934         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11935         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11936         symbol decoration for AIX.
11937         (rs6000_xcoff_debug_unwind_info): New.
11938         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11939         for SECTION_DEBUG.
11940         (rs6000_xcoff_declare_function_name): Emit different
11941         .function pseudo-op when DWARF2_DEBUG. Don't call
11942         xcoffout_declare_function for DWARF2_DEBUG.
11943         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11944         Redefine.
11945         * config/rs6000/aix71.h: New.
11946         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11947         locations support.
11948         * configure: Regenerate.
11949         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11950         DWARF support.
11952 2015-09-26  Jeff Law  <law@redhat.com>
11954         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11955         behaviour.
11956         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11957         behaviour.
11959         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11960         behaviour
11962         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11963         undefined behaviour.
11965         * config/cris/cris.md (asrandb): Fix left shift undefined
11966         behaviour.
11967         (asrandw): Likewise.
11969 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11971         PR target/61578
11972         * lra-constarints.c (match_reload): Check presence of the input pseudo
11973         in the output operand.
11975 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11977         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11979 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11981         * doc/invoke.texi (-fsanitize): Update URLs.
11983 2015-09-25  Teresa Johnson  <tejohnson@google.com>
11985         * opts.c (finish_options): Unset -freorder-blocks-and-partition
11986         if not using profile.
11988 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11990         PR pretty-print/67567
11991         * pretty-print.c (pp_string): Add gcc_checking_assert.
11992         * pretty-print.h (output_buffer_append_r): Likewise.
11994 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
11996         PR target/67675
11997         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11998         addr2 individually.  Don't emit logical or insn if one is known to
11999         be aligned approriately.
12000         (sh_expand_cmpnstr): Likewise.
12002 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
12004         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12005         __builtin_aarch64_fp[sc]r arguments into a register.
12007 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
12009         * config.gcc (x86_archs): Replace lakemount with lakemont.
12010         (with_cpu): Likewise.
12011         (with_arch): Likewise.
12012         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12013         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
12014         __tune_lakemount__ with __tune_lakemont__.
12015         * config/i386/i386.c (lakemount_cost): Renamed to ...
12016         (lakemont_cost): This.
12017         (m_LAKEMOUNT): Renamed to ...
12018         (m_LAKEMONT): This.
12019         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12020         (processor_target_table): Replace "lakemount" with "lakemont".
12021         (processor_alias_table): Likewise.
12022         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12023         PROCESSOR_LAKEMONT.
12024         (ix86_adjust_cost): Likewise.
12025         (ia32_multipass_dfa_lookahead): Likewise.
12026         * config/i386/i386.h (processor_type): Likewise.
12027         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12028         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
12029         Lakemount with Lakemont.
12031 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
12033         * config.gcc (x86_archs): Replace iamcu with lakemount.
12034         (with_cpu): Likewise.
12035         (with_arch): Likewise.
12036         * doc/invoke.texi: Likewise.
12037         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12038         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
12039         __tune_iamcu__ with __tune_lakemount__.
12040         * config/i386/i386.c (iamcu_cost): Renamed to ...
12041         (lakemount_cost): This.
12042         (m_IAMCU): Renamed to ...
12043         (m_LAKEMOUNT): This.
12044         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12045         (processor_target_table): Replace "iamcu" with "lakemount".
12046         (processor_alias_table): Likewise.
12047         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12048         PROCESSOR_LAKEMOUNT.
12049         (ix86_adjust_cost): Likewise.
12050         (ia32_multipass_dfa_lookahead): Likewise.
12051         * config/i386/i386.h (processor_type): Likewise.
12052         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12054 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
12056         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12057         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12058         Declare.
12059         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12060         (pa_expand_compare_and_swap_loop): New.
12061         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12062         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12063         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12064         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12065         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12066         Revise.
12068 2015-09-24  Michael Collison  <michael.collison@linaro.org>
12070         PR other/57195
12071         * read-md.c (read_name): Allow mode iterators inside angle
12072         brackets in rtl expressions.
12074 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
12076         PR target/61578
12077         * ira-color.c (update_allocno_cost): Add parameter.
12078         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
12079         parameter.
12081 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12083         PR driver/67640
12084         * opts-common.c (prune_options): Discard all -fdiagnostics-color
12085         but the last one, which is moved to the front to be processed
12086         first.
12087         * opts.c (enable_warning_as_error): Reject options that do not
12088         control warnings.
12090 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12092         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12094 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12096         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12097         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12098         (aarch64_cannot_force_const_mem): Likewise.
12099         (aarch64_classify_address): Likewise.
12100         (aarch64_classify_symbolic_expression): Likewise.
12101         (aarch64_print_operand): Likewise.
12102         (aarch64_classify_symbol): Likewise.
12103         (aarch64_mov_operand_p): Likewise.
12104         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12105         (aarch64_mov_operand): Likewise.
12107 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
12109         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12110         for info->spe_gp_size.
12112 2015-09-24  Richard Biener  <rguenther@suse.de>
12114         PR lto/67699
12115         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12116         abstract origins.
12118 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
12120         * tree-object-size.c (plus_stmt_object_size)
12121         (cond_expr_object_size): Change the formal parameters from gimple
12122         to gimple *.
12123         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12124         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12125         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12127 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12129         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12130         Check for ld -type pie on Solaris 11.x and 12.
12131         * configure: Regenerate.
12132         * config.in: Regenerate.
12134         * gcc.c (LD_PIE_SPEC): Allow redefinition.
12136         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12137         (STARTFILE_SPEC): Use it.
12138         (ENDFILE_CRTEND_SPEC): Define.
12139         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12140         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12141         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12142         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12143         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12144         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12145         (ENDFILE_ARCH_SPEC): Define.
12146         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12148 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12150         * configure.ac (gcc_cv_solaris_crts): New test.
12151         * configure. Regenerate.
12152         * config.in: Regenerate.
12153         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12154         HAVE_SOLARIS_CRTS variant.
12156 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12158         * tree-inline.h (count_insns_seq): Delete prototype.
12159         (estimate_num_insns_seq): Define prototype.
12160         * tree-inline.c (count_insns_seq): Delete.
12161         (estimate_num_insns_seq): Remove static qualifier.
12162         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12163         with estimate_num_insns_seq.
12165 2015-09-24  Richard Biener  <rguenther@suse.de>
12167         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12168         members.
12169         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12170         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
12171         offset.
12172         (ao_ref_init_from_vn_reference): Record clique and base in the
12173         built base.
12174         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12176 2015-09-24  Richard Biener  <rguenther@suse.de>
12178         PR tree-optimization/48885
12179         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12180         as not including any restrict tags from other pointers.
12182 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12184         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12185         character when appending to offload_targets.
12187         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12188         offload targets by commas, not colons.
12189         * config.in: Regenerate.
12190         * configure: Likewise.
12191         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12192         instead of setting up the default offload targets here...
12193         (process_command): ..., do it here.
12194         libgomp/
12195         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12196         targets are separated by commas.
12197         * config.h.in: Regenerate.
12199 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12200             Nathan Sidwell  <nathan@codesourcery.com>
12202         * omp-low.h (omp_reduction_init_op): Declare.
12203         * omp-low.c (omp_reduction_init_op): New, broken out of ...
12204         (omp_reduction_init): ... here.  Call it.
12205         * tree-parloops.c (initialize_reductions): Use
12206         omp_reduction_init_op.
12208 2015-09-23   Richard Biener  <rguenther@suse.de>
12210         PR middle-end/67662
12211         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12212         undefined overflow unless they will cancel out.
12214 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12216         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12217         insn emit.
12219 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12221         PR c/49655
12222         * opts.h (write_langs): Declare.
12223         * opts-global.c (write_langs): Make it extern.
12225 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
12227         PR target/67391
12228         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12229         overlapping regs when matching the pattern.
12231 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12233         * config/aarch64/aarch64-simd.md
12234         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12235         (aarch64_float_truncate_hi_v4sf_le): New.
12236         (aarch64_float_truncate_hi_v4sf_be): Likewise.
12238 2015-09-23  Richard Biener  <rguenther@suse.de>
12240         * tree-ssa-structalias.c (intra_create_variable_infos): Build
12241         representatives for all restrict qualified pointer destinations.
12243 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12245         * config/i386/i386.md (define_code_attr mshift): New.
12246         (define_mode_iterator SWI1248_AVX512BW): Rename ...
12247         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12248         only.
12249         (define_insn "*k<logic><mode>"): Use new iterator name.
12250         (define_insn "*<mshift><mode>3"): New.
12252 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
12254         PR middle-end/67649
12255         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12256         mark the block as accessible.
12258 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
12260         * function.c (thread_prologue_and_epilogue_insns): Delete
12261         orig_entry_edge argument to try_shrink_wrapping.
12262         * shrink-wrap.c (can_get_prologue): New function.
12263         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12264         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
12265         can_get_prologue where needed.  Remove code that finds a single
12266         edge for the prologue.  Remove code that tests if any reg clobbered
12267         by the prologue is live on the prologue edge.  Remove code that finds
12268         the new prologue edge after duplicating blocks.  Make a new prologue
12269         block and edge.
12270         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12272 2015-09-22  Jeff Law  <law@redhat.com>
12274         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12275         behavior.
12277 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
12279         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
12280         -Wtemplates, -Wnamespaces): Document.
12282 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12284         PR tree-optimization/67671
12285         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12286         pointer references as restrict.
12288 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
12290         * config/nios2/nios2.c (nios2_legitimize_address): When handling
12291         'reg + reloc' cases, allow first operand to be non-REG, and use
12292         force_reg() to enforce address pattern.
12294 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
12296         PR target/67480
12297         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12298         (define_mode_iterator VI12_AVX_AVX512F): New.
12299         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12300         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12301         (define_insn "*<code><mode>3"): ... Into new pattern using
12302         VI12_AVX_AVX512F iterators without masking.
12304 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12306         * config.gcc: Support "skylake-avx512".
12307         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12308         PROCESSOR_SKYLAKE_AVX512.
12309         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12310         (processor_target_table): Add "skylake-avx512".
12311         (PTA_SKYLAKE_AVX512): Define.
12312         (ix86_option_override_internal): Add "skylake_avx512".
12313         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12314         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12315         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12316         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12317         * doc/invoke.texi (skylake-avx512): New.
12319 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12321         * config/i386/i386.md (define_insn "kunpckhi"): Fix
12322         operand in pattern.
12323         (define_insn "kunpcksi"): Ditto.
12324         (define_insn "kunpckdi"): Ditto.
12326 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12328         * config/i386/i386.md (define_split not/xor SWI1248x): Use
12329         iterator instead of fixed modes.
12331 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12333         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12334         Adjust declaration.
12335         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12336         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
12337         out_result.  Update to support update-fetch operations.
12338         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12339         Adjust for change to aarch64_gen_atomic_ldop.
12340         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12341         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12342         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12343         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12344         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12346 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12348         * config/aarch64/aarch64-protos.h
12349         (aarch64_atomic_ldop_supported_p): Declare.
12350         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12351         (enum aarch64_atomic_load_op_code): New.
12352         (aarch64_emit_atomic_load_op): New.
12353         (aarch64_gen_atomic_ldop): Update to support load-operate
12354         patterns.
12355         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12356         to an expander.
12357         (aarch64_atomic_<atomic_optab><mode>): New.
12358         (aarch64_atomic_<atomic_optab><mode>_lse): New.
12359         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12360         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12361         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12363 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12365         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12366         (UNSPECV_ATOMIC_LDOP_OR): New.
12367         (UNSPECV_ATOMIC_LDOP_BIC): New.
12368         (UNSPECV_ATOMIC_LDOP_XOR): New.
12369         (UNSPECV_ATOMIC_LDOP_PLUS): New.
12370         (ATOMIC_LDOP): New.
12371         (atomic_ldop): New.
12372         (aarch64_atomic_load<atomic_ldop><mode>): New.
12374 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12376         * config/aarch64/aarch64.md
12377         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12378         pattern.
12380 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12382         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12383         Declare.
12384         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12385         (aarch64_gen_atomic_ldop): New.
12386         (aarch64_split_atomic_op): Fix whitespace and add a comment.
12387         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12388         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12389         (atomic_exchange<mode>): Replace with an expander.
12390         (aarch64_atomic_exchange<mode>): New.
12391         (aarch64_atomic_exchange<mode>_lse): New.
12392         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12393         (aarch64_atomic_swp<mode>): New.
12395 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12397         * tree-inline.c (expand_call_inline): Use inform for extra note.
12398         Do not give a note with UNKNOWN_LOCATION.
12399         Replace input_location with gimple_location (stmt).
12400         Use true/false instead of TRUE/FALSE.
12402 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12404         PR tree-optimization/67666
12405         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12406         with single field non-conservative.
12408 2015-09-21  David S. Miller  <davem@davemloft.net>
12410         PR/67622
12411         Revert:
12412         2015-09-11  David S. Miller  <davem@davemloft.net>
12414         * config/sparc/constraints.md: Make "U" constraint a real register
12415         constraint.
12416         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12417         (D_MODES, DF_MODES): Add missing cast.
12418         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12419         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12420         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12421         cost to 8.
12422         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12423         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12424         provide these insn when flag_pic.
12426         2015-09-17  David S. Miller  <davem@davemloft.net>
12428         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12429         Declare.
12430         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12431         function.
12432         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12433         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12434         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12435         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12436         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12437         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12438         provide when flag_pic.
12440 2015-09-21  Jeff Law  <law@redhat.com>
12442         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12443         behavior.
12445 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12447         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12449 2015-09-21  Richard Biener  <rguenther@suse.de>
12451         * passes.c (rest_of_decl_compilation): Do not call
12452         dwarf2out_early_global_decl for aliases.
12454 2015-09-21  Richard Biener  <rguenther@suse.de>
12456         PR debug/67664
12457         * dwarf2out.c (add_location_or_const_value_attribute): Remove
12458         attribute parameter.  Early exit if either DW_AT_const_value
12459         or DW_AT_location are present already.
12460         (gen_variable_die): Adjust caller.
12461         (dwarf2out_late_global_decl): Likewise.
12463 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12465         PR target/67657
12466         * config/sh/sh.c (sh_remove_overlapping_post_inc,
12467         sh_peephole_emit_move_insn): Add new functions.
12468         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12469         sh_peephole_emit_move_insn): Declere them.
12470         * config/sh/sh.md: Use them in various peephole2 patterns.
12472 2015-09-21  Richard Biener  <rguenther@suse.de>
12474         PR middle-end/67651
12475         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12476         address with -fno-delete-null-pointer-checks.
12478 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
12480         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12481         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12482         (reduc_uplus_v16qi): Remove.
12484         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12485         (reduc_<VEC_reduc_name>_v2df): Remove.
12486         (reduc_<VEC_reduc_name>_v4sf): Remove.
12487         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12489         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12490         gen_ function by removing * prefix.
12491         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12493 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12495         PR middle-end/60832
12496         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12497         Print i_bound without converting it to a tree.
12499 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
12501         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12502         operands[4] operands[5] swap with std::swap, removed tmp variable.
12503         (arm_evpc_neon_vzip): Replaced in0/in1 and
12504         out0/out1 swaps with std::swap, removed x variable.
12505         (arm_evpc_neon_vtrn): Replaced in0/int1 and
12506         out0/out1 swaos with std::swap, removed x variable.
12507         (arm_expand_vec_perm_const_1): Replaced
12508         d->op0/d->op1 swap with std::swap, removed x variable.
12509         (arm_evpc_neon_vuzp): Replaced in0/in1 and
12510         out0/out1 swaps with std::swap, removed x variable.
12512 2015-09-21  Jonathan Yong  <10walls@gmail.com>
12514         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12515         sysroot/usr/lib/32api for additional win32 libraries,
12516         fixes failing Cygwin bootstrapping.
12518 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12520         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12522 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
12524         PR target/67126
12525         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12526         (*mov_t_msb_neg): Rewrite negc pattern.
12528 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12530         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12531         immediate generation code.
12533 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12535         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12536         redundant immediate generation code.
12538 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12540         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12541         (AARCH64_NUM_BITMASKS): Remove.
12542         (aarch64_bitmasks_cmp): Remove.
12543         (aarch64_build_bitmask_table): Remove.
12545 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12547         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12548         slow immediate matching loops with a faster algorithm.
12550 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
12552         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12553         faster algorithm.
12555 2015-09-20  Jeff Law  <law@redhat.com>
12557         PR tree-optimization/47679
12558         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12559         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12560         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12561         (thread_through_normal_block): Use record_temporary_equivalences.
12563 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
12565         * coretypes.h (gimple): Change typedef to be a forward declaration.
12566         * gimple.h (gimple_statement_base): rename to gimple.
12567         * (all functions and types using gimple): Adjust.
12568         * *.[ch]: Likewise.
12570 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
12571             David Edelsohn  <dje.gcc@gmail.com>
12573         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12574         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12575         (EH_FRAME_THROUGH_COLLECT2): Define.
12576         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12577         (ASM_OUTPUT_DWARF_PCREL): Define.
12578         (ASM_OUTPUT_DWARF_DATAREL): Define.
12580 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
12582         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12583         of TARGET_ELF32.
12585 2015-09-18  Jeff Law  <law@redhat.com>
12587         PR tree-optimization/47679
12588         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
12589         it here ...
12590         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12591         object.  Update constructor.
12592         (pass_dominator::execute):  Corresponding chagnes to declaration
12593         and initialization of avail_exprs_stack.  Update constructor call
12594         for dom_opt_dom_walker object.
12595         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
12596         it down to children as needed.
12597         (record_equivalences_from_incoming_edge): Likewise.
12598         (eliminate_redundant_computations): Likewise.
12599         (record_equivalences_from_stmt): Likewise.
12600         (simplify_stmt_for_jump_threading): Likewise.
12601         (record_temporary_equivalences): Likewise.
12602         (optimize_stmt): Likewise.
12603         (dom_opt_dom_walker::thread_across_edge): Update access to
12604         avail_exprs_stack object and pass it to children as needed.
12605         (dom_opt_dom_walker::before_dom_children): Similarly.
12606         (dom_opt_dom_walker::after_dom_children): Similarly.
12607         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12608         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12609         Add avail_expr_stack argument.  Pass it to children as needed.
12610         (dummy_simplify): Likewise.
12611         (simplify_control_stmt_condition): Likewise.
12612         (thread_around_empty_blocks): Likewise.
12613         (thread_through_normal_block): Likewise.
12614         (thread_across_edge): Likewise.
12615         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12616         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12618         PR tree-optimization/47679
12619         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
12620         it here ...
12621         (dom_opt_dom_walker): New private member holding the const_and_copies
12622         object.  Update constructor.
12623         (pass_dominator::execute): Corresponding changes to declaration
12624         and initialization of const_and_copies.  Update constructor call
12625         for the dom_opt_dom_walker object.
12626         (record_temporary_equivalences): Accept const_and_copies argument
12627         pass it down to children as needed.
12628         (record_equality): Likewise.
12629         (record_equivalences_from_incoming_edge): Likewise.
12630         (cprop_into_successor_phis, optimize_stmt): Likewise.
12631         (eliminate_redundant_computations): Likewise.
12632         (dom_opt_dom_walker::thread_across_edge): Update access to
12633         const_and_copies object and pass it to children as needed.
12634         (dom_opt_dom_walker::before_dom_children): Similarly.
12635         (dom_opt_dom_walker::after_dom_children): Similarly.
12637         PR tree-optimization/47679
12638         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
12639         it into the avail_exprs_stack class.
12640         (pass_dominator::execute): Corresponding changes to declaration
12641         and initialization of avail_exprs.  Pass avail_exprs to
12642         dump_dominator_optimization_stats.
12643         (record_cond): Extract avail_exprs from avail_exprs_stack.
12644         (lookup_avail_expr): Similarly.
12645         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
12646         position in file.
12647         (dump_dominator_optimization_stats): Make static and prototype.
12648         Add argument for the hash table to dump.
12649         (debug_dominator_optimization_stats): Remove.
12650         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12651         prototype.
12652         (debug_dominator_optimization_stats): Similarly.
12653         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12654         "void" in prototype for pop_to_marker method.  Add accessor method
12655         for the underlying avail_exprs table.
12657         * tree-ssa-threadedge.c: Remove trailing whitespace.
12659 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
12661         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12662         unsigned.
12663         (pa_ldil_cint_p): Likewise.
12664         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12665         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12666         Update callers.
12667         * config/pa/pa.md: Likewise.
12669 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
12671         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12672         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12673         (diagnostic_show_locus): Likewise.
12674         (diagnostic_print_caret_line): Likewise.
12675         * diagnostic-show-locus.c: New file.
12677 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
12679         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12680         "back" parameter. Declare label in #if block.
12682 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
12684         PR middle-end/67619
12685         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12686         the address to a register.
12688 2015-09-18  Jeff Law  <law@redhat.com>
12690         PR tree-optimization/47679
12691         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12692         * tree-ssa-dom.c: Remove unnecessary header includes.
12693         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12694         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12695         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12696         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12697         (pass_phi_only_cprop::execute): Likewise.
12698         (make_pass_phi_only_cprop): Likewise.
12699         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
12700         uses of file scoped statics by passing the required objects
12701         as parameters wherever needed.
12703 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
12704             David Edelsohn  <dje.gcc@gmail.com>
12706         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12707         EH_FRAME_THROUGH_COLLECT2.
12708         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12709         DW_EH_PE_datarel.
12710         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12711         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
12712         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12713         * except.c (switch_to_exception_section): Use a read-only section
12714         even if EH_FRAME_SECTION_NAME is undefined.
12715         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12716         * collect2.c (write_c_file_stat): Provide dbase on AIX.
12717         (scan_prog_file): Don't export __dso_handle nor
12718         __gcc_unwind_dbase.
12719         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12720         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12721         (ASM_OUTPUT_DWARF_PCREL): Define.
12722         (ASM_OUTPUT_DWARF_DATAREL): Define.
12723         (EH_FRAME_THROUGH_COLLECT2): Define.
12724         (EH_FRAME_IN_DATA_SECTION): Delete.
12725         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12726         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12727         Declare.
12728         (rs6000_asm_output_dwarf_datarel): Declare.
12729         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12730         (rs6000_aix_asm_output_dwarf_datarel): New.
12731         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12732         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12733         (EH_FRAME_THROUGH_COLLECT2): Define.
12734         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12735         (EH_FRAME_THROUGH_COLLECT2): Define.
12736         (EH_TABLES_CAN_BE_READ_ONLY): Define.
12737         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12738         (EH_FRAME_THROUGH_COLLECT2): New.
12739         (ASM_OUTPUT_DWARF_DATAREL): New.
12740         * doc/tm.texi: Regenerate.
12742 2015-09-18  Richard Biener  <rguenther@suse.de>
12744         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12745         we're in early phase.
12746         (schedule_generic_params_dies_gen): Likewise.
12747         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12748         work as possible, retaining unhandled cases.
12749         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12750         clear out generic_type_instances at the end.
12751         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12752         (dwarf2out_early_finish): ... here.  Do most of
12753         gen_remaining_tmpl_value_param_die_attribute here.
12755 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
12757         PR tree-optimization/67283
12758         * tree-sra.c (type_consists_of_records_p): Rename to...
12759         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12760         (completely_scalarize_record): Rename to...
12761         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12762         (scalarize_elem): New.
12763         (analyze_all_variable_accesses): Follow renamings.
12765 2015-09-18  Richard Biener  <rguenther@suse.de>
12767         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12768         in early-dwarf.
12770 2015-09-18  Richard Biener  <rguenther@suse.de>
12772         PR tree-optimization/66142
12773         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12774         treat MEM[&x] and x the same.
12775         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12776         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12777         when we simplified sth.
12778         (vn_reference_maybe_forwprop_address): Likewise.
12779         (valueize_refs_1): When we simplified through
12780         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12781         set valueized_anything to true.
12782         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12783         one ref kills the other instead of just a offset-based test.
12784         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12785         for the operand_equal_p test to compare bases and also compare
12786         sizes.
12788 2015-09-17  Christian Bruel  <christian.bruel@st.com>
12790         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12792 2015-09-17  Richard Henderson  <rth@redhat.com>
12794         PR libstdc++/65913
12795         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12796         pointers that encode the alignment of the object.
12798 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12800         PR rtl-optimization/66790
12801         * df-problems.c (LIVE): Amend documentation.
12803 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12805         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12806         and optabs-tree.o.
12807         (GTFILES): Replace optabs.c with optabs-libfunc.c.
12808         * genopinit.c (main): Add an include guard to insn-opinit.h.
12809         Protect the rtx_code parts with NUM_RTX_CODE.
12810         * optabs.h: Split parts out to...
12811         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12812         * optabs.c: Split parts out to...
12813         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12814         * cilk-common.c: Include optabs-query.h rather than optabs.h.
12815         * fold-const.c: Likewise.
12816         * target-globals.c: Likewise.
12817         * tree-if-conv.c: Likewise.
12818         * tree-ssa-forwprop.c: Likewise.
12819         * tree-ssa-loop-prefetch.c: Likewise.
12820         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12821         Remove unncessary include files.
12822         * tree-ssa-phiopt.c: Likewise.
12823         * tree-ssa-reassoc.c: Likewise.
12824         * tree-switch-conversion.c: Likewise.
12825         * tree-vect-data-refs.c: Likewise.
12826         * tree-vect-generic.c: Likewise.
12827         * tree-vect-loop.c: Likewise.
12828         * tree-vect-patterns.c: Likewise.
12829         * tree-vect-slp.c: Likewise.
12830         * tree-vect-stmts.c: Likewise.
12831         * tree-vrp.c: Likewise.
12832         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12833         rather than optabs.h.
12834         * expr.c: Include optabs-tree.h.
12835         * function.c: Likewise.
12837 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12839         PR middle-end/65958
12840         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12841         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12842         * config/arm/arm.c: Include common/common-target.h.
12843         (use_return_insn): Return 0 if the static chain register was saved
12844         above a non-APCS frame.
12845         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12846         (struct scratch_reg): New.
12847         (get_scratch_register_on_entry): New function.
12848         (release_scratch_register_on_entry): Likewise.
12849         (arm_emit_probe_stack_range): Likewise.
12850         (output_probe_stack_range): Likewise.
12851         (arm_expand_prologue): Factor out code dealing with the IP register
12852         for nested function and adjust it for stack checking.
12853         Invoke arm_emit_probe_stack_range if static builtin stack checking
12854         is enabled.
12855         (thumb1_expand_prologue): Sorry out if static builtin stack checking
12856         is enabled.
12857         (arm_expand_epilogue): Add the saved static chain register, if any, to
12858         the amount of pre-pushed registers to pop.
12859         (arm_frame_pointer_required): Return true if static stack checking is
12860         enabled and we want to catch the exception with the EABI unwinder.
12861         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12862         (UNSPEC_PROBE_STACK_RANGE): Likewise.
12863         * config/arm/arm.md (probe_stack): New insn.
12864         (probe_stack_range): Likewise.
12866 2015-09-17  Richard Biener  <rguenther@suse.de>
12868         * genmatch.c (parser::parse_expr): Improve error message
12869         for mis-placed flags.
12871 2015-09-17  Richard Biener  <rguenther@suse.de>
12873         * passes.c (rest_of_decl_compilation): Always call early_global_decl
12874         debug hook when we created a varpool node.
12875         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12876         dwarf2out_early_global_decl, when not just add location or
12877         value attributes to existing DIEs.
12879 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
12881         * config/aarch64/aarch64.md (copysigndf3): New.
12882         (copysignsf3): Likewise.
12884 2015-09-17  David S. Miller  <davem@davemloft.net>
12886         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12887         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12888         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12889         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12890         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12891         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12892         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12893         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12894         provide when flag_pic.
12896 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12898         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12899         object_allocator change.
12901 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12903         PR tree-optimization/66388
12904         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12905         (dump_iv): Dump no_overflow information.
12906         (alloc_iv): Initialize new field for struct iv.
12907         (mark_bivs): Count number of no_overflow bivs.
12908         (find_deriving_biv_for_expr, record_biv_for_address_use): New
12909         functions.
12910         (idx_find_step): Call new functions above.
12911         (add_candidate_1, add_candidate): New paramter.
12912         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12913         (get_computation_aff): Simplify convertion of cand for BIV.
12914         (get_computation_cost_at): Step cand's base if necessary.
12916 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12918         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12919         parameter.
12920         (tree_simplify_using_condition): Ditto.
12921         (simplify_using_initial_conditions): Ditto.
12922         (loop_exits_before_overflow): Pass new argument to function
12923         simplify_using_initial_conditions.  Remove case for type conversions
12924         simplification.
12925         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12926         parameter.
12927         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12928         in iv base using loop initial conditions.
12930 2015-09-16  Jeff Law  <law@redhat.com>
12932         PR tree-optimization/47679
12933         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12934         (free_all_edge_infos): Use it.
12935         (allocate_edge_info): Free preexisting edge info data.
12936         (pass_dominator::execute): Set up initial edge info structures.
12937         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12938         thread_across_edge.
12939         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12940         If non-null, then push/pop markers appropriately.
12941         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12942         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12943         thread-across_edge.
12945 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
12947         * config/ft32/ft32.c: Fix the memory address space predicate.
12949 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12951         PR target/67573
12952         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12953         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12955 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12957         * toplev.h (check_global_declaration): Remove declaration.
12958         * toplev.c (check_global_declaration): Move to ...
12959         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12960         (analyze_functions): Update call.
12962 2015-09-16  David S. Miller  <davem@davemloft.net>
12964         * lra-constraints.c (simplify_operand_subreg): Do not assume that
12965         lowpart of a SUBREG has offset zero.
12967 2015-09-16  Jeff Law  <law@redhat.com>
12969         PR tree-optimization/47679
12970         * tree-ssa-dom.c (enum expr_kind): Moved from here to
12971         tree-ssa-scopedtables.h.
12972         (struct hashable_expr, class expr_hash_elt): Likewise.
12973         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12974         Move associated methods into tree-ssa-scopedtables.c.
12975         (avail_expr_hash, initialize_expr_from_cond): Similarly.
12976         (hashable_expr_equal_p, add_expr_commutative): Likewise.
12977         (add_hashable_expr): Likewise.
12978         (record_cond): Delete element directly.
12979         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12980         private copy ctor and assignment operator methods.
12981         (expr_elt_hasher): Inline trivial methods.
12982         (initialize_expr_from_cond): Prototype.
12983         * tree-ssa-scopedtables.c: Add necessary includes, functions and
12984         methods that were previously in tree-ssa-dom.c.  Improve various
12985         comments.
12987 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
12989         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12991 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
12993         PR bootstrap/67587
12994         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12995         fixup_partitions.
12997 2015-09-16  Richard Biener  <rguenther@suse.de>
12999         PR middle-end/67253
13000         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13001         location of possibly shared trees.
13003 2015-09-16  Richard Biener  <rguenther@suse.de>
13005         PR middle-end/67271
13006         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13008 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
13010         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13011         offset and size computations instead of HOST_WIDE_INT.
13013 2015-09-16  Richard Biener  <rguenther@suse.de>
13015         PR middle-end/67442
13016         * fold-const.c (extract_muldiv_1): Properly extend multiplication
13017         result before builting a tree via wide_int_to_tree.
13019 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
13021         * Makefile.in: Add memory-block.cc
13022         (pool_allocator::initialize): Use fixed block size.
13023         (pool_allocator::release): Use memory_block_pool.
13024         (pool_allocator::allocate): Likewise.
13025         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13026         object pools.
13027         * cfg.c (initialize_original_copy_tables): Likewise.
13028         * cselib.c (elt_list_pool, elt_loc_list_pool,
13029         cselib_val_pool): Likewise.
13030         * df-problems.c (df_chain_alloc): Likewise.
13031         * df-scan.c (df_scan_alloc): Likewise.
13032         * dse.c (cse_store_info_pool, rtx_store_info_pool,
13033         read_info_type_pool, insn_info_type_pool, bb_info_pool,
13034         group_info_pool, deferred_change_pool): Likewise.
13035         * et-forest.c (et_nodes, et_occurrences): Likewise.
13036         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13037         ipcp_agg_lattice_pool): Likewise.
13038         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13039         * ipa-profile.c (histogram_pool): Likewise.
13040         * ipa-prop.c (ipa_refdesc_pool): Likewise.
13041         * ira-build.c (live_range_pool, allocno_pool, object_pool,
13042         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13043         * ira-color.c (update_cost_record_pool): Likewise.
13044         * lra-lives.c (lra_live_range_pool): Likewise.
13045         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13046         * memory-block.cc: New file.
13047         * memory-block.h: New file.
13048         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13049         * sched-deps.c (sched_deps_init): Likewise.
13050         * sel-sched-ir.c (sched_lists_pool): Likewise.
13051         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13052         * tree-sra.c (access_pool): Likewise.
13053         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13054         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13055         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13056         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13057         * tree-ssa-strlen.c (strinfo_pool): Likewise.
13058         * tree-ssa-structalias.c (variable_info_pool): Likewise.
13059         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13060         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13062 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13064         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13065         definition.
13066         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13067         call0 ABI.
13069 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13071         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13072         to pass TLS call argument, according to current ABI.
13073         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13074         callx0 for TLS call, according to current ABI.
13076 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13078         * tree-eh.c (lower_try_finally_dup_block): Clear location information
13079         on stack restore statements.
13080         (decide_copy_try_finally): Do not consider a stack restore statement as
13081         coming from sources.
13083 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
13085         * config/alpha/alpha.c (alpha_expand_block_clear): Use
13086         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13088 2015-09-15  Jeff Law  <law@redhat.com>
13090         PR tree-optimization/47679
13091         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13092         methods and private members.
13093         (avail_exprs_stack): Similarly.  Change type of global
13094         from a pair of expr_hash_elt_t to the new class.
13095         (expr_elt_hasher::hash): Corresponding changes.
13096         (expr_elt_hasher::equal): Similarly.
13097         (avail_expr_hash): Similarly.
13098         (pass_dominator::execute): Similarly.
13099         (dom_opt_dom_walker::thread_across_edge): Similarly.
13100         (record_cond): Similarly.
13101         (dom_opt_dom_walker::before_dom_children): Similarly.
13102         (dom_opt_dom_walker::after_dom_children): Similarly.
13103         (lookup_avail_expr): Likewise.
13104         (initialize_hash_element): Now a expr_hash_elt constructor.
13105         (initialize_hash_element_from_expr): Similarly.
13106         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13107         (free_expr_hash_elt): Call dtor for the element.
13108         (remove_local_expressions_from_table): Now the "pop_to_marker"
13109         method in the available_exprs_stack class.
13110         (avail_expr_stack::record_expr): Method factored out.
13111         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13112         Fix formatting.
13113         (hashable_expr_equal_p): Fix formatting.
13115 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
13117         * input.h (location_get_source_line): Drop "expanded_location"
13118         param in favor of a file and line number.
13119         * input.c (location_get_source_line): Likewise.
13120         (dump_location_info): Update for change in signature of
13121         location_get_source_line.
13122         * diagnostic.c (diagnostic_print_caret_line): Likewise.
13124 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13126         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13127         Bump to 4KB for SJLJ exceptions.
13128         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
13129         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13130         * doc/tm.texi: Regenerate.
13132 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13134         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13135         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
13136         Update prototype.
13138 2015-09-15  Richard Biener  <rguenther@suse.de>
13140         PR tree-optimization/67470
13141         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13142         structure for PHI hoisting by inserting a forwarder block
13143         if appropriate.
13145 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13147         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13148         (arm_option_print): New function.
13150 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13152         PR target/52144
13153         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13154         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13155         Remove flags parameter.
13156         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13157         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13158         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13159         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13160         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13161         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13162         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13163         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13165 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13167         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13169         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13170         AARCH64_VALID_SIMD_DREG_MODE.
13172 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13174         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13175         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13176         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13177         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13178         aarch64_ld4_lane<mode>): Combine together, making...
13179         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13180         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13181         aarch64_st4_lane<mode>): Combine together, making...
13182         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13183         * config/aarch64/iterators.md (nregs): Add comment.
13185 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13187         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13188         Change operand mode from <V_TWO_ELEM> to BLK.
13189         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13190         (aarch64_vec_store_lanesoi_lane<mode): Likewise
13191         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13192         (aarch64_ld2_lane<mode>): Likewise.
13193         (aarch64_st2_lane<VQ:mode>): Likewise.
13194         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13196 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13198         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13199         Change operand mode from <V_FOUR_ELEM> to BLK.
13200         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13201         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13202         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13203         (aarch64_ld4_lane<mode>): Likewise.
13204         (aarch64_st4_lane<mode>): Likewise.
13205         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13207 2015-09-15  Richard Biener  <rguenther@suse.de>
13209         PR middle-end/67563
13210         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13211         transfer EH info from old to new stmt.
13212         (replace_call_with_value): Likewise.
13213         (replace_call_with_call_and_fold): Likewise.
13214         (gimple_fold_builtin_memory_op): Likewise.
13215         (gimple_fold_builtin_memset): Likewise.
13216         (gimple_fold_builtin_stpcpy): Likewise.
13217         (gimple_fold_call): Likewise.
13219 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13221         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13222         comment.
13223         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13224         (aarch64_simd_intEI_type_node): Likewise.
13225         (aarch64_simd_builtin_std_type): Remove EImode case.
13226         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13227         * config/aarch64/aarch64-modes.def: Remove EImode.
13229 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13231         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13232         Change operand mode from <V_THREE_ELEM> to BLK.
13233         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13234         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13235         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13236         (aarch64_ld3_lane<mode>): Likewise.
13237         (aarch64_st3_lane<mode>): Likewise.
13238         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13240 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13242         * config/aarch64/aarch64-simd.md
13243         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13244         Change all TImode operands to BLKmode.
13245         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13246         Change all EImode operands to BLKmode.
13247         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13248         Change all OImode operands to BLKmode.
13250         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13251         and call set_mem_size.
13252         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13254         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13256 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13258         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13259         to...
13260         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13262         (vec_store_lanesci_lane<mode>): Rename to...
13263         (aarch64_vec_store_lanesci_lane<mode>): ...this.
13265         (vec_store_lanesxi_lane<mode>): Rename to...
13266         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13268         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13269         aarch64_st4_lane<mode>): Follow renaming.
13271 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13273         * config/s390/s390.c (s390_const_operand_ok): Add missing
13274         brackets.
13276 2015-09-15  Richard Biener  <rguenther@suse.de>
13278         PR lto/67568
13279         * lto-streamer.h (lto_location_cache::current_sysp): Properly
13280         initialize.
13281         * lto-streamer-out.c (clear_line_info): Likewise.
13283 2015-09-15  Richard Biener  <rguenther@suse.de>
13285         * doc/match-and-simplify.texi: Fix wording.
13287 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
13289         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13290         unnecessary type conversion in op1.
13292 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13294         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13295         (dup_block_and_redirect): Delete function.
13296         (can_dup_for_shrink_wrapping): New function.
13297         (fix_fake_fallthrough_edge): New function.
13298         (try_shrink_wrapping): Rewrite function.
13299         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13301 2015-09-14  Rich Felker  <dalias@libc.org>
13303         * configure.ac: Change target pattern for sh TLS support
13304         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13305         * configure: Regenerate.
13307 2015-09-14  Jeff Law  <law@redhat.com>
13309         PR tree-optimization/47679
13310         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13311         type rather than void *.
13313 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13315         PR fortran/67460
13316         * diagnostic.c (diagnostic_initialize): Do not set
13317         some_warnings_are_errors.
13318         (diagnostic_finish): Use DK_WERROR count instead.
13319         (diagnostic_report_diagnostic): Do not set
13320         some_warnings_are_errors.
13321         * diagnostic.h (struct diagnostic_context): Remove
13322         some_warnings_are_errors.
13324 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
13326         * config/sparc/predicates.md (const_all_ones_operand): Use
13327         CONSTM1_RTX to simplify definition.
13329 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
13331         PR target/67061
13332         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13333         Handle call insns.
13335 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
13337         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13338         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13339         OPT_fshow_column to handled saved option cases.
13340         (append_compiler_options): Do not skip the above added options.
13342 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13344         PR target/63304
13345         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13346         nopcrelative_literal_loads.
13347         (aarch64_classify_address): Likewise.
13348         (aarch64_constant_pool_reload_icode): Define.
13349         (aarch64_secondary_reload): Handle secondary reloads for
13350         literal pools.
13351         (aarch64_override_options): Handle nopcrelative_literal_loads.
13352         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13353         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13354         Define.
13355         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13356         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13357         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13358         predicate.
13359         * doc/invoke.texi (mpc-relative-literal-loads): Document.
13361 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
13363         PR middle-end/67401
13364         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13365         sync_compare_and_swap_optab libcall to target_oval.
13367 2015-09-14  Marek Polacek  <polacek@redhat.com>
13369         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13370         value.
13371         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13373 2015-09-11  Mark Wielaard  <mjw@redhat.com>
13375         PR c/28901
13376         * toplev.c (check_global_declaration): Check and use
13377         warn_unused_const_variable.
13378         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13379         (-Wunused-variable): Remove non-constant. For C implies
13380         -Wunused-const-variable.
13381         (-Wunused-const-variable): New.
13383 2015-09-14  Richard Biener  <rguenther@suse.de>
13385         * doc/match-and-simplify.texi: Update for changed syntax
13386         of inner ifs and the new switch expression.
13388 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13390         * config/i386/haswell.md: New file describing Haswell pipeline.
13391         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13392         haswell-like processors.
13393         (ix86_reassociation_width): Increase reassociation width for 64-bit
13394         Haswell processor family.
13395         * config/i386/i386.md: Introduce haswell cpu and include new md file.
13397 2015-09-14  Richard Biener  <rguenther@suse.de>
13399         * doc/match-and-simplify.texi: Fixup some formatting issues
13400         and document the 's' flag.
13402 2015-09-13  Olivier Hainque  <hainque@adacore.com>
13403             Eric Botcazou  <ebotcazou@adacore.com>
13405         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13406         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
13407         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13408         (TARGET_CPU_gr5): Likewise.
13409         (TARGET_CPU_gr6): Likewise.
13410         (MULTILIB_DEFAULTS): Likewise.
13411         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13412         for mcpu=gr5 and mcpu=gr6.
13413         (MULTILIB_DIRNAMES): Adjust accordingly.
13415 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13417         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13418         (mem_ref_p): Likewise.
13419         (outermost_indep_loop): Adjust.
13420         (mem_ref_in_stmt): Likewise.
13421         (determine_max_movement): Likewise.
13422         (mem_ref_alloc): Likewise.
13423         (record_mem_ref_loc): Likewise.
13424         (set_ref_stored_in_loop): Likewise.
13425         (mark_ref_stored): Likewise.
13426         (gather_mem_refs_stmt): Likewise.
13427         (mem_refs_may_alias_p): Likewise.
13428         (for_all_locs_in_loop): Likewise.
13429         (struct rewrite_mem_ref_loc): Likewise.
13430         (rewrite_mem_refs): Likewise.
13431         (struct first_mem_ref_loc_1): Likewise.
13432         (first_mem_ref_loc): Likewise.
13433         (struct sm_set_flag_if_changed): Likewise.
13434         (execute_sm_if_changed_flag_set): Likewise.
13435         (execute_sm): Likewise.
13436         (hoist_memory_references):
13437         (struct ref_always_accessed): Likewise.
13438         (ref_always_accessed_p): Likewise.
13439         (refs_independent_p): Likewise.
13440         (record_dep_loop): Likewise.
13441         (ref_indep_loop_p_1): Likewise.
13442         (ref_indep_loop_p_2): Likewise.
13443         (ref_indep_loop_p): Likewise.
13444         (can_sm_ref_p): Likewise.
13445         (find_refs_for_sm): Likewise.
13446         (tree_ssa_lim_finalize): Likewise.
13448 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13450         * dwarf2out.c (dw_attr_ref): Remove typedef.
13451         (dw_line_info_ref): Likewise.
13452         (pubname_ref): Likewise.
13453         (dw_ranges_ref): Likewise.
13454         (dw_ranges_by_label_ref): Likewise.
13455         (comdat_type_node_ref): Likewise.
13456         (get_AT): Adjust.
13457         (get_AT_low_pc): Likewise.
13458         (get_AT_hi_pc): Likewise.
13459         (get_AT_string): Likewise.
13460         (get_AT_flag): Likewise.
13461         (get_AT_unsigned): Likewise.
13462         (get_AT_ref): Likewise.
13463         (get_AT_file): Likewise.
13464         (remove_AT): Likewise.
13465         (print_die): Likewise.
13466         (check_die): Likewise.
13467         (die_checksum): Likewise.
13468         (attr_checksum_ordered): Likewise.
13469         (struct checksum_attributes): Likewise.
13470         (collect_checksum_attributes): Likewise.
13471         (die_checksum_ordered): Likewise.
13472         (same_die_p): Likewise.
13473         (is_declaration_die): Likewise.
13474         (clone_die): Likewise.
13475         (clone_as_declaration): Likewise.
13476         (copy_declaration_context): Likewise.
13477         (break_out_comdat_types): Likewise.
13478         (copy_decls_walk): Likewise.
13479         (output_location_lists): Likewise.
13480         (external_ref_hasher::hash): Likewise.
13481         (optimize_external_refs_1): Likewise.
13482         (build_abbrev_table): Likewise.
13483         (size_of_die): Likewise.
13484         (unmark_all_dies): Likewise.
13485         (size_of_pubnames): Likewise.
13486         (output_die_abbrevs): Likewise.
13487         (output_die): Likewise.
13488         (output_pubnames): Likewise.
13489         (add_ranges_num): Likewise.
13490         (add_ranges_by_labels): Likewise.
13491         (add_high_low_attributes): Likewise.
13492         (gen_producer_string): Likewise.
13493         (dwarf2out_set_name): Likewise.
13494         (new_line_info_table): Likewise.
13495         (prune_unused_types_walk_attribs): Likewise.
13496         (prune_unused_types_update_strings): Likewise.
13497         (prune_unused_types): Likewise.
13498         (resolve_addr): Likewise.
13499         (optimize_location_lists_1): Likewise.
13500         (index_location_lists): Likewise.
13501         (dwarf2out_finish): Likewise.
13503 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13505         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13507 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13509         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13510         (dump_asserts_for): Adjust.
13511         (register_new_assert_for): Likewise.
13512         (process_assert_insertions): Likewise.
13513         (insert_range_assertions): Likewise.
13515 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13517         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13518         and remove typedef.
13519         (new_temp_expr_table): Adjust.
13520         (free_temp_expr_table): Likewise.
13521         (version_to_be_replaced_p): Likewise.
13522         (make_dependent_on_partition): Likewise.
13523         (add_to_partition_kill_list): Likewise.
13524         (remove_from_partition_kill_list): Likewise.
13525         (add_dependence): Likewise.
13526         (finished_with_expr): Likewise.
13527         (process_replaceable): Likewise.
13528         (kill_expr): Likewise.
13529         (kill_virtual_exprs): Likewise.
13530         (mark_replaceable): Likewise.
13531         (find_replaceable_in_bb): Likewise.
13532         (find_replaceable_exprs): Likewise.
13533         (debug_ter): Likewise.
13535 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13537         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13538         (struct btr_user): Rename from btr_user_s.
13539         (struct btr_def): Rename from btr_def_s.
13540         (find_btr_def_group): Adjust.
13541         (add_btr_def): Likewise.
13542         (new_btr_user): Likewise.
13543         (note_other_use_this_block): Likewise.
13544         (compute_defs_uses_and_gen): Likewise.
13545         (link_btr_uses): Likewise.
13546         (build_btr_def_use_webs): Likewise.
13547         (block_at_edge_of_live_range_p): Likewise.
13548         (btr_def_live_range): Likewise.
13549         (combine_btr_defs): Likewise.
13550         (move_btr_def): Likewise.
13551         (migrate_btr_def): Likewise.
13552         (migrate_btr_defs): Likewise.
13554 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13556         * var-tracking.c (shared_hash_def): Rename to shared_hash.
13557         (shared_hash): Remove typedef.
13558         (struct dataflow_set): Adjust.
13559         (shared_hash_unshare): Likewise.
13560         (dataflow_set_merge): Likewise.
13561         (vt_initialize): Likewise.
13562         (vt_finalize): Likewise.
13564 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13566         * var-tracking.c (struct location_chain): Rename from
13567         location_chain_def.
13568         (struct variable_part): Adjust.
13569         (variable_htab_free): Likewise.
13570         (unshare_variable): Likewise.
13571         (get_init_value): Likewise.
13572         (get_addr_from_local_cache): Likewise.
13573         (drop_overlapping_mem_locs): Likewise.
13574         (val_reset): Likewise.
13575         (struct variable_union_info): Likewise.
13576         (variable_union): Likewise.
13577         (find_loc_in_1pdv): Likewise.
13578         (insert_into_intersection): Likewise.
13579         (intersect_loc_chains): Likewise.
13580         (canonicalize_loc_order_check): Likewise.
13581         (canonicalize_values_mark): Likewise.
13582         (canonicalize_values_star): Likewise.
13583         (canonicalize_vars_star): Likewise.
13584         (variable_merge_over_cur): Likewise.
13585         (remove_duplicate_values): Likewise.
13586         (variable_post_merge_new_vals): Likewise.
13587         (variable_post_merge_perm_vals): Likewise.
13588         (find_mem_expr_in_1pdv): Likewise.
13589         (dataflow_set_preserve_mem_locs): Likewise.
13590         (dataflow_set_remove_mem_locs): Likewise.
13591         (variable_part_different_p): Likewise.
13592         (onepart_variable_different_p): Likewise.
13593         (find_src_set_src): Likewise.
13594         (dump_var): Likewise.
13595         (set_slot_part): Likewise.
13596         (clobber_slot_part): Likewise.
13597         (delete_slot_part): Likewise.
13598         (vt_expand_var_loc_chain): Likewise.
13599         (emit_note_insn_var_location): Likewise.
13600         (vt_finalize): Likewise.
13602 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13604         * dse.c (store_info_t): Remove typedef.
13605         (group_info_t): Likewise.
13606         (const_group_info_t): Likewise.
13607         (deferred_change_t): Likewise.
13608         (get_group_info): Adjust.
13609         (free_store_info): Likewise.
13610         (canon_address): Likewise.
13611         (clear_rhs_from_active_local_stores): Likewise.
13612         (record_store): Likewise.
13613         (replace_read): Likewise.
13614         (check_mem_read_rtx): Likewise.
13615         (scan_insn): Likewise.
13616         (remove_useless_values): Likewise.
13617         (dse_step1): Likewise.
13618         (dse_step2_init): Likewise.
13619         (dse_step2_nospill): Likewise.
13620         (scan_stores_nospill): Likewise.
13621         (scan_reads_nospill): Likewise.
13622         (dse_step3_exit_block_scan): Likewise.
13623         (dse_step3): Likewise.
13624         (dse_step5_nospill): Likewise.
13625         (dse_step6): Likewise.
13627 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13629         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13630         (alias_set_entry): Remove typedef.
13631         (alias_set_subset_of): Adjust.
13632         (alias_sets_conflict_p): Likewise.
13633         (init_alias_set_entry): Likewise.
13634         (get_alias_set): Likewise.
13635         (new_alias_set): Likewise.
13636         (record_alias_subset): Likewise.
13638 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
13640         * doc/install.texi (Downloading the source): Mark up
13641         contrib/download_prerequisites properly and drop leading "./".
13643 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13645         * config/arc/arc.h: Remove define of STRUCT_VALUE.
13646         * config/lm32/lm32.h: Likewise.
13647         * config/mep/mep.h: Likewise.
13648         * config/visium/visium.h: Likewise.
13649         * system.h: Poison STRUCT_VALUE macro.
13651 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
13653         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13654         CONSTANT_P operands.
13656 2015-09-11  David S. Miller  <davem@davemloft.net>
13658         * config/sparc/constraints.md: Make "U" constraint a real register
13659         constraint.
13660         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13661         (D_MODES, DF_MODES): Add missing cast.
13662         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13663         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13664         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13665         cost to 8.
13666         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13667         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13668         provide these insn when flag_pic.
13670 2015-09-11  Jeff Law  <law@redhat.com>
13672         PR tree-optimization/47679
13673         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13674         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13675         member with m_.  Update inline member functions as necessary.  Add
13676         toplevel comment.
13677         * tree-ssa-scopedtables.c: Update const_and_copies's member
13678         functions to use m_ prefix to access the stack.
13680 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13682         * graphite-optimize-isl.c (disable_tiling): Remove.
13683         (get_schedule_for_band): Do not use disable_tiling.
13684         (get_prevector_map): Delete function.
13685         (enable_polly_vector): Remove.
13686         (get_schedule_for_band_list): Remove dead code.
13688 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
13690         * graphite-optimize-isl.c (get_tile_map): Refactor.
13691         (get_schedule_for_band): Same.
13692         (getScheduleForBand): Same.
13693         (get_prevector_map): Same.
13694         (get_schedule_for_band_list): Same.
13695         (get_schedule_map): Same.
13696         (get_single_map): Same.
13697         (apply_schedule_map_to_scop): Same.
13698         (optimize_isl): Same.
13700 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13702         PR target/63304
13703         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13704         (movtf): Delete.
13705         * config/aarch64/iterators.md (GPF_TF_F16): New.
13706         (GPF_F16): Delete.
13708 2015-09-10  Nathan Sidwell  <nathan@acm.org>
13710         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13711         (nvptx_reorg): Adjust comments.
13713 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
13715         PR bootstrap/67363
13716         * configure.ac: Check if setenv and unsetenv are declared.
13717         * configure: Rebuild.
13718         * config.in: Rebuild.
13719         * system.h: Declare setenv and unsetenv if not declared.
13721 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13723         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13724         commentary to simplify permute mask adjustment equation.
13725         (special_handling_values): Add SH_VPERM.
13726         (const_load_sequence_p): New function.
13727         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13728         the mask loaded from the constant pool.
13729         (adjust_vperm): New function.
13730         (handle_special_swappables): Call adjust_vperm.
13731         (dump_swap_insn_table): Handle SH_VPERM.
13733 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13735         * shrink-wrap.c (requires_stack_frame_p): Remove static.
13736         * shrink-wrap.h (requires_stack_frame_p): Put back.
13738 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13740         * reload1.c (elimination_costs_in_insn): Locally turn
13741         -Wmaybe-uninitialized into a warning.
13743 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
13745         * shrink-wrap.c (requires_stack_frame_p): Make static.
13746         (prepare_shrink_wrap): Likewise.
13747         (dup_block_and_redirect): Likewise.
13748         * shrink-wrap.h: Remove declarations of those functions.
13750 2015-09-10  Mark Wielaard  <mjw@redhat.com>
13752         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13754 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
13756         PR target/67506
13757         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13758         missing simplify_gen_subreg.
13760 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13762         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13763         the vector element is bigger than 64 bit.
13765 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13767         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13768         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13770 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13772         * config/s390/s390.c: Add V1TImode to constant pool modes.
13774 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13776         PR target/67439
13777         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13778         predicate.  Set predicable_short_it attr to "no".
13780 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
13782         PR rtl-optimization/67421
13783         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13784         left wide shift tranformation.
13786 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
13788         * common/config/arc/arc-common.c: Remove references to A5.
13789         * config/arc/arc-opts.h: Likewise.
13790         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13791         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13792         * config/arc/t-arc-newlib: Likewise.
13794 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
13796         * config/arc/arc.md (length): Fix attribute length for conditional
13797         executed instructions with long immediate.
13799 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13801         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13802         type for second alternative.
13804 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
13806         * doc/invoke.texi (Downloading GCC): Mention
13807         contrib/download_prerequisites script.
13809 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
13811         PR c++/67523
13812         * gimplify.c (gimplify_omp_for): If inner stmt is not found
13813         for combined loop, assert seen_error () and return GS_ERROR.
13815         PR middle-end/67521
13816         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13817         if decl is already in outer->variables.
13819         PR middle-end/67517
13820         * gimplify.c (gimplify_scan_omp_clauses): Instead of
13821         asserting that decl is not specified in octx->variables,
13822         break out of the loop if it is.
13824         PR c++/67514
13825         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13826         iterator is not explicitly determined, but is defined inside
13827         of the combined workshare region, handle it like if it has
13828         DECL_EXPR in OMP_FOR_PRE_BODY.
13830 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13832         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13833         (*cmp<mode>): Add assembler spacing.
13834         (setcc_int<mode>, set_cc_float<mode>): Likewise.
13835         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13836         level.
13837         (write_func_decl_from_insn): Refactor argument loops & comma emission.
13838         (nvptx_expand_call): Likewise.
13839         (nvptx_output_call_insn): Likewise.
13840         (nvptx_reorg_subreg): Add spacing.
13842 2015-09-09  Marek Polacek  <polacek@redhat.com>
13844         PR middle-end/67512
13845         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13846         for comparisons.
13848 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13850         PR c++/53184
13851         * doc/invoke.texi ([Wsubobject-linkage]): Document.
13853 2015-09-09  Tom de Vries  <tom@codesourcery.com>
13855         * params-list.h: Add missing copyright notice.
13857 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13859         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13860         sel_truesi, not andsi.
13862 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13864         * config/arm/arm.md (*subsi3_compare0): Rename to...
13865         (subsi3_compare0): ... This.
13866         (modsi3): New define_expand.
13867         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13868         when operand is power of 2.
13870 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13872         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13873         (*neg<mode>2_compare0): Rename to...
13874         (neg<mode>2_compare0): ... This.
13875         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13876         Move check for speed inside the if-then-elses.  Reflect
13877         CSNEG sequence in MOD by power of 2 case.
13879 2015-09-09  Alan Modra  <amodra@gmail.com>
13881         PR target/67378
13882         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13883         reload replacement for PRE_MODIFY address reg.
13885 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
13887         PR tree-optimization/53852
13888         * config.in: Regenerate.
13889         * configure: Regenerate.
13890         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13891         * graphite-optimize-isl.c (optimize_isl): Stop computation when
13892         PARAM_MAX_ISL_OPERATIONS is reached.
13893         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13894         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13895         result equal to isl_stat_ok as the status now can be isl_error_quota.
13896         (subtract_commutative_associative_deps): Same.
13897         (compute_deps): Same.
13899 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13900             Sebastian Pop  <s.pop@samsung.com>
13902         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13903         Return the parameter if it was saved in corresponding
13904         parameter_rename_map of the region.
13905         (copy_def): Copy def from sese region to the newly created region.
13906         (copy_internal_parameters): Copy all the internal parameters defined
13907         within a region to the newly created region.
13908         (graphite_regenerate_ast_isl): Copy parameters to the new region before
13909         translating isl to gimple.
13910         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13911         the loop-nest does not have any data-references.
13912         (build_graphite_scops): Create a scop only when there is at least one
13913         loop inside it.
13914         (contains_only_close_phi_nodes): Deleted.
13915         (print_graphite_scop_statistics): Deleted
13916         (print_graphite_statistics): Deleted
13917         (limit_scops): Deleted.
13918         (build_scops): Removed call to limit_scops.
13919         * sese.c (new_sese): Construct.
13920         (free_sese): Destruct.
13921         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13922         added.
13923         (set_rename): Pass sese region so that parameters inside the region can
13924         be added to its parameter_rename_map.
13925         (rename_uses): Pass sese region.
13926         (graphite_copy_stmts_from_block): Do not copy parameters that have been
13927         generated in the header of the scop. For each SSA_NAME in the
13928         parameter_rename_map rename its usage.
13929         (invariant_in_sese_p_rec): Return false if tree t is defined outside
13930         sese region.
13931         (scalar_evolution_in_region): If the tree t is invariant just return t.
13932         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13933         struct sese to keep track of all the parameters which need renaming.
13934         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13935         any data-refs.
13936         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13938 2015-09-08  Tom de Vries  <tom@codesourcery.com>
13940         * Makefile.in (generated_files): Add params.list.
13941         (params.list, s-params.list): Add rule.
13942         * params.h (enum compiler_param): Include params-list.h.  Move define
13943         DEFPARAM, include params.def and undef DEFPARAM ...
13944         * params-list.h: ... here.  New file.
13946 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
13948         * pretty-print.h (printer_fn): Fix typo in comment.
13950 2015-09-07  Jeff Law  <law@redhat.com>
13952         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13954 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13956         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13957         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13958         (arm_neon_fp16_hw): New.
13960 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13962         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13963         UNITS_PER_WORD >= 4.
13965 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13967         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13968         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13969         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13970         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13971         (aarch64_float_extend_lo_v2df): Rename to...
13972         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13974         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13975         (float_extend_lo): Add v4sf.
13977         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13978         * config/aarch64/iterators.md (VQ_HSF): New iterator.
13979         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13980         (Vwide): New mode_attr.
13982 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13984         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13985         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13986         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13987         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13988         V4HF and V8HF variants to iterator.
13990         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13992         * config/aarch64/iterators.md (VDQF_F16): New.
13993         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13995 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13997         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13998         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13999         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14000         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14001         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14002         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14003         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14004         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14005         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14006         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14007         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14008         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14009         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14010         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14011         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14012         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14013         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14014         vld1q_dup_f16): New.
14016 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14018         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14019         Reparameterize to...
14020         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14021         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14022         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14024         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14025         v8hf variant.
14026         (float_truncate_lo_): Use BUILTIN_VDF iterator.
14028         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14030         * config/aarch64/iterators.md (VDF, Vdtype): New.
14031         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14033 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14035         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14036         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14037         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14038         Add __builtin_aarch64_simd_hf.
14039         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14040         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14041         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14042         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14043         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14044         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14045         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14046         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14047         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14049         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14050         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14051         (VDC, Vdbl): Add V4HF.
14053 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14055         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14056         V4HFmode and V8HFmode.
14057         (aarch64_split_simd_move): Add case for V8HFmode.
14058         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14059         (aarch64_simd_builtin_std_type): Handle HFmode.
14060         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14062         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14063         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14064         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14066         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14067         Float16x8_t.
14069         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14070         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14071         New typedefs.
14072         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14073         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14074         vst1q_lane_f16): New.
14075         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14076         (VALLDI_F16, VALL_F16): New.
14077         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14078         Add cases for V4HF and V8HF.
14079         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14081 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14083         * config/arm/arm-builtins.c (VAR11, VAR12): New.
14084         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14085         vld4_dup): Add v4hf variant.
14086         (vget_high, vget_low): Add v8hf variant.
14087         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14088         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14089         v4hf and v8hf variants.
14091         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14092         (VDX): Add V4HF.
14093         (V_DOUBLE): Add case for V4HF.
14094         (VQX): Add V8HF.
14095         (V_HALF): Add case for V8HF.
14096         (VDQX): Add V4HF, V8HF.
14097         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14098         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14100         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14101         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14102         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14103         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14104         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14105         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14106         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14107         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14108         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14110         (neon_vcreate, neon_vreinterpretv8qi<mode>,
14111         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14112         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14113         Change VDX to VD_RE.
14115         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14116         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14117         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14119         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14120         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14121         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14122         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14123         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14124         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14125         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14126         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14127         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14129 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14131         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14132         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14133         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14134         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14135         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14136         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14137         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14138         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14139         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14140         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14141         New.
14143 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14145         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14147         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14149         * config/arm/arm-builtins.c (v8hf_UP): New.
14150         (arm_init_simd_builtin_types): Initialise Float16x8_t.
14152         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14154         * config/arm/arm_neon.h (float16x8_t): New typedef.
14156 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14158         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14159         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14160         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14161         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14162         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14163         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14164         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14165         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14166         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14167         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14169 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
14171         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14172         non-alphanumeric characters in the symbol name.
14174 2015-09-07  Marek Polacek  <polacek@redhat.com>
14176         PR inline-asm/67448
14177         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14178         a memory input.
14180 2015-09-07  Marek Polacek  <polacek@redhat.com>
14182         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14184 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
14186         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14187         not warn.
14189 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
14191         PR middle-end/67452
14192         * tree-ssa-live.c: Include cfgloop.h.
14193         (remove_unused_locals): Clear loop->simduid if simduid is about
14194         to be removed from cfun->local_decls.
14196 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14198         PR target/65210
14199         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14200         attribute as well.
14202 2015-09-04  Tom de Vries  <tom@codesourcery.com>
14204         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14206 2015-09-04  Jeff Law  <law@redhat.com>
14208         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14209         unnecessary constructor.  It's now trivial and implemented inside...
14210         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14211         constructor.  Add comments to various methods.  Remove unused
14212         private fields.
14213         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14214         * tree-vrp.c (identify_jump_threads): Likewise.
14215         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14216         indentation issues.
14217         (thread_across_edge): Similarly.
14218         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14219         arguments in constructor call.
14221 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
14223         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14224         temp path contains a '-'.
14226 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14227             Petr Murzin  <petr.murzin@intel.com>
14228             Kirill Yukhin  <kirill.yukhin@intel.com>
14230         * config/i386/i386-builtin-types.def
14231         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14232         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14233         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14234         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14235         * config/i386/i386.c
14236         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14237         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14238         IX86_BUILTIN_SCATTERALTDIV16SI.
14239         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14240         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14241         __builtin_ia32_scatteraltdiv8si.
14242         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14243         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14244         IX86_BUILTIN_SCATTERALTDIV16SI.
14245         (ix86_vectorize_builtin_scatter): New.
14246         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14247         ix86_vectorize_builtin_scatter.
14249 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14250             Petr Murzin  <petr.murzin@intel.com>
14251             Kirill Yukhin  <kirill.yukhin@intel.com>
14253         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14254         * doc/tm.texi: Regenerate.
14255         * target.def: Add scatter builtin.
14256         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14257         for loads/stores in case of gather/scatter accordingly.
14258         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14259         STMT_VINFO_GATHER_P(S).
14260         (vect_check_gather): Rename to ...
14261         (vect_check_gather_scatter): this.
14262         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14263         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14264         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14265         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14266         variable and new checkings for it accordingly.
14267         * tree-vect-stmts.c
14268         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14269         STMT_VINFO_GATHER_P(S).
14270         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14271         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14273 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14275         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14276         define_insn.
14277         (mulv16qi3): New define_expand.
14279 2015-09-03  Martin Sebor  <msebor@redhat.com>
14281         PR c/66516
14282         * doc/extend.texi (Other Builtins): Document when the address
14283         of a built-in function can be taken.
14285 2015-09-03  Richard Biener  <rguenther@suse.de>
14287         * dwarf2out.c (flush_limbo_die_list): Split out from ...
14288         (dwarf2out_early_finish): ... here.
14289         (dwarf2out_finish): Do not call dwarf2out_early_finish but
14290         flush_limbo_die_list.  Assert we have no deferred asm names.
14292 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14294         * optabs.c (expand_binop): Don't create a broadcast vector with a
14295         source element wider than the inner mode.
14297 2015-09-03  Richard Biener  <rguenther@suse.de>
14299         * varasm.c (output_constant): Use fold_convert instead of
14300         wide_int_to_tree.
14302 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14304         PR tree-optimization/65637
14305         * omp-low.c (expand_omp_for_static_chunk): Handle case that
14306         fin_bb has 2 predecessors.
14308 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14310         PR tree-optimization/65637
14311         * omp-low.c (find_phi_with_arg_on_edge): New function.
14312         (expand_omp_for_static_chunk): Fix inner loop phi.
14314 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14316         PR tree-optimization/65637
14317         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14318         that head is NULL.
14320 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14322         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14324 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14326         * doc/invoke.texi (parloops-chunk-size): Add item.
14327         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14328         * tree-parloops.c: Include params.h.
14329         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14330         param parloops-chunk-size is used.
14332 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14334         PR middle-end/67351
14335         * fold-const.c (fold_binary_loc) : Move
14336         Transform (x >> c) << c into x & (-1<<c) or
14337         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14338         types using simplify and match.
14339         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14340         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14342 2015-09-03  Richard Biener  <rguenther@suse.de>
14344         PR ipa/66705
14345         * tree-ssa-structalias.c (ctor_for_analysis): New function.
14346         (create_variable_info_for_1): Use ctor_for_analysis instead
14347         of get_constructor.
14348         (create_variable_info_for): Likewise.
14350 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
14352         PR ipa/67280
14353         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14354         in new callgraph edge.
14356 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
14358         PR target/59810
14359         PR target/63652
14360         PR target/63653
14361         * config/aarch64/aarch64-simd.md
14362         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14363         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14364         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14365         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14367 2015-09-02  Alan Modra  <amodra@gmail.com>
14369         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14370         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14371         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14373 2015-09-02  Alan Modra  <amodra@gmail.com>
14375         PR target/67417
14376         * config/rs6000/predicates.md (current_file_function_operand): Don't
14377         return true for weak symbols.
14378         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14380 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14381             Andrew Bennett  <andrew.bennett@imgtec.com>
14383         * config/mips/mips-opts.h (mips_cb_setting): New enum.
14384         * config/mips/mips-protos.h: Add definitions for
14385         mips_output_jump and mips_output_equal_conditional_branch
14386         * config/mips/mips.c (MIPS_JR): Change to support the
14387         JIC instruction.
14388         (mips_emit_compare): Add support for the MIPS R6 conditional
14389         compact branches.
14390         (mips_process_sync_loop): Likewise.
14391         (mips_output_order_conditional_branch): Likewise.
14392         (mips16_build_call_stub): Change MIPS_CALL to
14393         mips_output_jump.
14394         (mips_print_operand_punctuation): Update 's' case to only
14395         apply to micromips r2.
14396         (mips_adjust_insn_length): Add support for forbidden slot
14397         hazards.
14398         (mips_avoid_hazard): Likewise.
14399         (mips_reorg_process_insns): Likewise.
14400         (mips_output_jump): New function.
14401         (mips_output_equal_conditional_branch): Likewise.
14402         (mips_output_conditional_branch): Use jrc/bc if compact
14403         branch support is enabled.  Ensure the forbidden slots
14404         between the two branch instructions is filled with a nop.
14405         (mips_option_override): Add support to process the compact
14406         branch option and set the correct defaults.  Prevent
14407         non-explict relocs being using for MIPS R6.
14408         (mips_trampoline_init): Add compact branch support.
14409         (mips_mult_zero_zero_cost): Allow zero initialisation of
14410         accumulators with TARGET_DSP.
14411         * config/mips/mips.h (TARGET_CB_NEVER): New define.
14412         (TARGET_CB_MAYBE): New define.
14413         (TARGET_CB_ALWAYS): New define.
14414         (ISA_HAS_DELAY_SLOTS): New define.
14415         (ISA_HAS_COMPACT_BRANCHES): New define.
14416         (ISA_HAS_JRC): New define.
14417         (MIPS_BRANCH_C): New define.
14418         (MIPS_CALL): Removed.
14419         (MICROMIPS_J): Removed.
14420         * config/mips/mips.md (compact_form): New attr.
14421         (hazard): Add support for forbidden slots.
14422         (define_delay): Add support for compact branches.
14423         (*branch_order<mode>): Likewise.
14424         (*branch_order<mode>_inverted): Likewise.
14425         (*branch_equality<mode>): Likewise.
14426         (*branch_equality<mode>_inverted): Likewise.
14427         (*jump_absolute): Likewise.
14428         (*jump_pic): Likewise.
14429         (indirect_jump): Use mips_output_jump to produce assembly output.
14430         (tablejump_<mode>"): Likewise.
14431         (*<optab>"): Likewise.
14432         (<optab>_internal): Likewise.
14433         (sibcall_internal): Likewise.
14434         (sibcall_value_internal): Likewise.
14435         (sibcall_value_multiple_internal): Likewise.
14436         (call_internal): Likewise.
14437         (call_split): Likewise.
14438         (call_internal_direct): Likewise.
14439         (call_direct_split): Likewise.
14440         (call_value_internal): Likewise.
14441         (call_value_split): Likewise.
14442         (call_value_internal_direct): Likewise.
14443         (call_value_direct_split): Likewise.
14444         (call_value_multiple_internal): Likewise.
14445         (call_value_multiple_split): Likewise.
14446         (mips_get_fcsr_mips16_<mode>): Likewise.
14447         (mips_set_fcsr_mips16_<mode>): Likewise.
14448         (tls_get_tp_mips16_<mode>): Likewise.
14449         * config/mips/mips.opt: Add -mcompact-branches option.
14450         * config/mips/predicates.md (order_operator): Ensure the
14451         conditional compact branches are only used if the ISA them.
14452         * doc/invoke.texi: Document -mcompact-branches option.
14454 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
14456         PR target/61578
14457         * lra-lives.c (process_bb_lives): Process move pseudos with the
14458         same value for copies and preferences
14459         * lra-constraints.c (match_reload): Create match reload pseudo
14460         with the same value from single dying input pseudo.
14462 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14464         PR target/67405
14465         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14467 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
14469         * trans-mem.c: Add contributed-by.
14470         * trans-mem.h: Same.
14472 2015-09-01  Richard Biener  <rguenther@suse.de>
14474         * expr.c (expand_expr_real_1): For expanding TERed defs
14475         set the current location to that of the def if not UNKNOWN.
14477 2015-09-01  David Sherwood  <david.sherwood@arm.com>
14479         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14481 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14483         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14484         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
14485         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14486         Include rtl-iter.h.
14487         (noce_simple_bbs): New function.
14488         (noce_try_move): Bail if basic blocks are not simple.
14489         (noce_try_store_flag): Likewise.
14490         (noce_try_store_flag_constants): Likewise.
14491         (noce_try_addcc): Likewise.
14492         (noce_try_store_flag_mask): Likewise.
14493         (noce_try_cmove): Likewise.
14494         (noce_try_minmax): Likewise.
14495         (noce_try_abs): Likewise.
14496         (noce_try_sign_mask): Likewise.
14497         (noce_try_bitop): Likewise.
14498         (bbs_ok_for_cmove_arith): New function.
14499         (noce_emit_all_but_last): Likewise.
14500         (noce_emit_insn): Likewise.
14501         (noce_emit_bb): Likewise.
14502         (noce_try_cmove_arith): Handle non-simple basic blocks.
14503         (insn_valid_noce_process_p): New function.
14504         (contains_mem_rtx_p): Likewise.
14505         (bb_valid_for_noce_process_p): Likewise.
14506         (noce_process_if_block): Allow non-simple basic blocks
14507         where appropriate.
14509 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
14511         * tree-ssa-dom.c (record_equivalences_from_phis,
14512         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14513         (lookup_avail_expr): Likewise, and remove comment and unused temp.
14515 2015-09-01  Nick Clifton  <nickc@redhat.com>
14517         * config/msp430/msp430.opt (mcpu): Fix typo.
14519 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14521         * config/aarch64/aarch64.c (aarch64_set_current_function):
14522         Re-layout any vector parameters have non-simd layout.
14523         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14524         Delete.
14525         (aarch64_simd_expand_args): Delete call to the above.
14527 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
14529         * doc/invoke.texi (asan-stack): Add space before option.
14531 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14533         * tree.h (zerop): New function.
14534         * tree.c (zerop): Likewise.
14535         (element_precision): Handle expressions.
14536         * match.pd (define_predicates): Add zerop.
14537         (x <= +Inf): Fix comment.
14538         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14539         * fold-const.c (fold_binary_loc): ... here. Remove.
14541 2015-08-31  Richard Biener  <rguenther@suse.de>
14543         PR middle-end/67381
14544         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14546 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
14548         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14549         (CEXPI): New operator list.
14550         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14551         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14552         Converted from ...
14553         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14555 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14557         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14558         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14559         parameter.
14560         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14561         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14562         (rewrite_into_loop_closed_ssa): ... here.
14563         (replace_uses_in_dominated_bbs): Remove function.
14564         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14565         rewrite_into_loop_closed_ssa_1.
14567 2015-08-31  Michael Matz  <matz@suse.de>
14569         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14570         enter entry and exit blocks for reverse post order.
14572 2015-08-31  Richard Biener  <rguenther@suse.de>
14574         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14575         (lto_location_cache::current_sysp): Likewise.
14576         (output_block::current_sysp): Likewise.
14577         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14578         (lto_location_cache::apply_location_cache): Properly record
14579         system header locations.
14580         (lto_location_cache::input_location): Input whether a file
14581         is a system header.
14582         * lto-streamer-out.c (lto_output_location): Stream whether a file
14583         is a system header.
14585 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14587         PR bootstrap/67363
14588         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14590 2015-08-31  Tom de Vries  <tom@codesourcery.com>
14592         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14593         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14594         Improve function header comments.
14596 2015-08-30  Michael Collison  <michael.collison@linaro.org>
14598         PR other/67320
14599         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14600         standard names
14602 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14604         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14605         special_handling bitfield.
14606         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14607         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14608         that represents a general xxpermdi.
14609         (insn_is_swappable_p): Add handling for vec_concat of two
14610         doublewords, which maps to a specific xxpermdi.
14611         (adjust_xxpermdi): New function.
14612         (adjust_concat): Likewise.
14613         (handle_special_swappables): Call adjust_xxpermdi and
14614         adjust_concat.
14615         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14617 2015-08-30  Rich Felker <dalias@libc.org>
14619         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14620         case instead of sh[123456ble]-*-*.
14622 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
14624         * ira.c (print_unform_and_important_classes,
14625         print_translated_classes): Remove reg_class_names static array.
14626         (print_unform_and_important_classes): Rename to ...
14627         (print_uniform_and_important_classes): ... this.
14628         (ira_debug_allocno_classes): Update accordingly.
14630 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14632         PR tree-optimization/46193
14633         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14634         clause.
14636 2015-08-28  Jeff Law  <law@redhat.com>
14638         PR lto/66752
14639         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14640         unable to find X NE 0 in the tables, return X as the simplified
14641         condition.
14642         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14643         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14644         to VISISTED_BBS.
14645         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14646         after removing the control flow statement and unnecessary edges.
14648 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
14650         Revert:
14651         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14653         PR tree-optimization/67283
14654         * tree-sra.c (type_consists_of_records_p): Rename to...
14655         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14657         (completely_scalarize_record): Rename to...
14658         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14659         code to:
14660         (scalarize_elem): New.
14662 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
14664         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14665         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14666         (aarch64_symbol_type): Likewise.
14667         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14668         Likewise.
14669         (aarch64_expand_mov_immediate): Likewise.
14670         (aarch64_print_operand): Likewise.
14671         (aarch64_classify_tls_symbol): Likewise.
14673 2015-08-28  Richard Biener  <rguenther@suse.de>
14675         * cgraphunit.c (symbol_table::compile): Move early debug generation
14676         and finish...
14677         (symbol_table::finalize_compilation_unit): ... back here and
14678         add a !seen_error () guard.
14680 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14682         * toplev.c (process_options): Do not use flag_loop_block,
14683         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
14684         flag_loop_optimize_isl.
14686 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14688         * Makefile.in (OBJS): Remove graphite-blocking.o and
14689         graphite-interchange.o.
14690         * common.opt (floop-strip-mine, floop-interchange, floop-block):
14691         Alias of floop-nest-optimize.
14692         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14693         Document as alias of -floop-nest-optimize.
14694         * graphite-blocking.c: Remove.
14695         * graphite-interchange.c: Remove.
14696         * graphite-optimize-isl.c: Include dumpfile.h.
14697         (getScheduleForBand): Add dump for tiled loops.  Use
14698         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14699         * graphite-poly.c (scop_max_loop_depth): Remove.
14700         (print_scattering_function_1): Remove.
14701         (print_scattering_function): Remove.
14702         (print_scattering_functions): Remove.
14703         (debug_scattering_function): Remove.
14704         (debug_scattering_functions): Remove.
14705         (apply_poly_transforms): Remove use of flag_loop_block,
14706         flag_loop_strip_mine, and flag_loop_interchange.
14707         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14708         PBB_ORIGINAL.
14709         (print_pdr_access_layout): Remove.
14710         (print_pdr): Print ISL representation.
14711         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14712         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14713         (free_scop): Same.
14714         (openscop_print_pbb_domain): Remove.
14715         (print_pbb): Remove call to print_scattering_function.
14716         (openscop_print_scop_context): Remove.
14717         (print_scop_context): Do not print matrices anymore.
14718         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14719         SCOP_TRANSFORMED_SCHEDULE.
14720         (print_isl_set): Add printing of a new line.
14721         (print_isl_map): Same.
14722         (print_isl_aff): Same.
14723         (print_isl_constraint): Same.
14724         (loop_to_lst): Remove.
14725         (scop_to_lst): Remove.
14726         (lst_indent_to): Remove.
14727         (print_lst): Remove.
14728         (debug_lst): Remove.
14729         (dot_lst_1): Remove.
14730         (dot_lst): Remove.
14731         (reverse_loop_at_level): Remove.
14732         (reverse_loop_for_pbbs): Remove.
14733         * graphite-poly.h (pdr_dim_iter_domain): Remove.
14734         (pdr_nb_params): Remove.
14735         (pdr_alias_set_dim): Remove.
14736         (pdr_subscript_dim): Remove.
14737         (pdr_iterator_dim): Remove.
14738         (pdr_parameter_dim): Remove.
14739         (same_pdr_p): Remove.
14740         (struct poly_scattering): Remove.
14741         (struct poly_bb): Remove _original, _transformed, _saved.
14742         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14743         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14744         (PBB_NB_LOCAL_VARIABLES): Remove.
14745         (PBB_NB_SCATTERING_TRANSFORM): Remove.
14746         (schedule_to_scattering): Remove.
14747         (number_of_write_pdrs): Remove.
14748         (pbb_dim_iter_domain): Remove.
14749         (pbb_nb_params): Remove.
14750         (pbb_nb_scattering_orig): Remove.
14751         (pbb_nb_scattering_transform): Remove.
14752         (pbb_nb_dynamic_scattering_transform): Remove.
14753         (pbb_nb_local_vars): Remove.
14754         (pbb_iterator_dim): Remove.
14755         (pbb_parameter_dim): Remove.
14756         (psco_scattering_dim): Remove.
14757         (psct_scattering_dim): Remove.
14758         (psct_local_var_dim): Remove.
14759         (psco_iterator_dim): Remove.
14760         (psct_iterator_dim): Remove.
14761         (psco_parameter_dim): Remove.
14762         (psct_parameter_dim): Remove.
14763         (psct_dynamic_dim): Remove.
14764         (psct_static_dim): Remove.
14765         (psct_add_local_variable): Remove.
14766         (new_lst_loop): Remove.
14767         (new_lst_stmt): Remove.
14768         (free_lst): Remove.
14769         (copy_lst): Remove.
14770         (lst_add_loop_under_loop): Remove.
14771         (lst_depth): Remove.
14772         (lst_dewey_number): Remove.
14773         (lst_dewey_number_at_depth): Remove.
14774         (lst_pred): Remove.
14775         (lst_succ): Remove.
14776         (lst_find_pbb): Remove.
14777         (find_lst_loop): Remove.
14778         (lst_find_first_pbb): Remove.
14779         (lst_empty_p): Remove.
14780         (lst_find_last_pbb): Remove.
14781         (lst_contains_p): Remove.
14782         (lst_contains_pbb): Remove.
14783         (lst_create_nest): Remove.
14784         (lst_remove_from_sequence): Remove.
14785         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14786         (lst_niter_for_loop): Remove.
14787         (pbb_update_scattering): Remove.
14788         (lst_update_scattering_under): Remove.
14789         (lst_update_scattering): Remove.
14790         (lst_insert_in_sequence): Remove.
14791         (lst_replace): Remove.
14792         (lst_substitute_3): Remove.
14793         (lst_distribute_lst): Remove.
14794         (lst_remove_all_before_including_pbb): Remove.
14795         (lst_remove_all_before_excluding_pbb): Remove.
14796         (struct scop): Remove original_schedule, transformed_schedule, and
14797         saved_schedule.
14798         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14799         (SCOP_SAVED_SCHEDULE): Remove.
14800         (poly_scattering_new): Remove.
14801         (poly_scattering_free): Remove.
14802         (poly_scattering_copy): Remove.
14803         (store_scattering_pbb): Remove.
14804         (store_lst_schedule): Remove.
14805         (restore_lst_schedule): Remove.
14806         (store_scattering): Remove.
14807         (restore_scattering_pbb): Remove.
14808         (restore_scattering): Remove.
14809         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14810         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
14811         compute the scattering polyhedron dimension from the dimension of
14812         pbb->domain.
14813         (build_scop_scattering): Update call to
14814         build_pbb_scattering_polyhedrons.
14815         (build_poly_scop): Remove call to scop_to_lst.
14816         * graphite.c (graphite_transform_loops): Add call to print_scop.
14817         (gate_graphite_transforms): Remove use of flag_loop_block,
14818         flag_loop_interchange, and flag_loop_strip_mine.
14820 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14822         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14823         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14824         -floop-nest-optimize.
14825         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14826         (generate_luj_sepclass): Remove.
14827         (generate_luj_options): Remove.
14828         (set_options): Remove opt_luj.
14829         (scop_to_isl_ast): Remove opt_luj.
14830         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14831         flag_loop_unroll_jam.
14832         (getPrevectorMap_full): Remove.
14833         (getScheduleForBandList): Remove map_sepcl.
14834         (getScheduleMap): Same.
14835         (apply_schedule_map_to_scop): Remove sepcl.
14836         (optimize_isl): Same.
14837         * graphite-poly.c (apply_poly_transforms): Remove check for
14838         flag_loop_unroll_jam.
14839         (new_poly_bb): Remove map_sepclass.
14840         * graphite-poly.h (struct poly_bb): Same.
14841         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14842         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14843         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14844         * toplev.c (process_options): Remove flag_loop_unroll_jam.
14846 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
14848         PR target/67317
14849         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14850         (addqi3_cc): Ditto.
14851         (UNSPEC_ADD_CARRY): Remove.
14852         (addqi3_cconly_overflow): New expander.
14853         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14854         Adjust for changed add<mode>3_carry.
14855         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14856         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14857         (<plusminus_insn><mode>3_carry): Remove expander.
14858         (*<plusminus_insn><mode>3_carry): Split insn pattern to
14859         add<mode>3_carry and sub<mode>3_carry.
14860         (plusminus_carry_mnemonic): Remove code attribute.
14861         (add<mode>3_carry): Canonicalize insn pattern.
14862         (*addsi3_carry_zext): Ditto.
14863         (sub<mode>3_carry): Ditto.
14864         (*subsi3_carry_zext): Ditto.
14865         (adcx<mode>3): Remove insn pattern.
14866         (addcarry<mode>): New insn pattern.
14867         (subborrow<mode>): Ditto.
14868         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14869         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14870         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14871         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14872         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14873         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14874         Rewrite expander to not clobber carry flag chains.
14876 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
14878         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14879         instead of a rotate.
14881 2015-08-27  Marek Polacek  <polacek@redhat.com>
14883         PR middle-end/67005
14884         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14885         an entry into an irreducible region.
14887 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14889         * configure: Regenerate.
14891 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14893         PR tree-optimization/67283
14894         * tree-sra.c (type_consists_of_records_p): Rename to...
14895         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14897         (completely_scalarize_record): Rename to...
14898         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14899         (scalarize_elem): New.
14901 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14903         * tree-sra.c (completely_scalarize_var): Rename to...
14904         (create_total_scalarization_access): ... Here. Drop call to
14905         completely_scalarize_record.
14907         (analyze_all_variable_accesses): Replace completely_scalarize_var
14908         with create_total_scalarization_access and completely_scalarize_record.
14910 2015-08-27  Alan Modra  <amodra@gmail.com>
14912         PR target/67356
14913         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14914         for operand 1.
14916 2015-08-27  Richard Biener  <rguenther@suse.de>
14918         * passes.c (rest_of_decl_compilation): Guard early_global_decl
14919         call with !seen_error ().
14920         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14921         early debug generation and finish...
14922         (symbol_table::compile): ... here to put it after a !seen_error ()
14923         guard.
14925 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14927         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14928         Solaris 12+.
14930 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14931             Andre Vieira  <andre.simoesdiasvieira@arm.com>
14933         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14934         (*cb<optab><mode>1): Likewise.
14935         (*tb<optab><mode>1): Likewise.
14936         (*cb<optab><mode>1): Likewise.
14937         * config/aarch64/iterators.md (inv_cb): New code attribute.
14938         (inv_tb): Likewise.
14939         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14940         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14942 2015-08-27  Richard Biener  <rguenther@suse.de>
14944         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14946 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14948         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14949         trap to fix ICE.
14951 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14953         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14954         Add declaration.
14956         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14957         comment.
14958         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14959         floating point in VSX registers.
14960         (rs6000_output_move_128bit): Always print out the set insn if we
14961         can't generate an appropriate 128-bit move.
14962         (rs6000_generate_compare): Add support for IEEE 128-bit floating
14963         point in VSX registers comparisons.
14964         (rs6000_expand_float128_convert): Likewise.
14966         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14967         predicate for only GPR hard registers.
14969         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14970         modes to iterators. Add new iterators for moving 128-bit values in
14971         scalar FPR registers and VSX registers.
14972         (FMOVE128): Likewise.
14973         (FMOVE128_FPR): Likewise.
14974         (FMOVE128_GPR): Likewise.
14975         (FMOVE128_VSX): Likewise.
14976         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14977         in VSX registers.
14978         (IFKF): Likewise.
14979         (IBM128): Likewise.
14980         (TFIFKF): Likewise.
14981         (RELOAD): Add IEEE 128-bit floating point modes.
14982         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14983         floating point in VSX registers modes.
14984         (signbit<mode>2, IBM128 iterator): Likewise.
14985         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14986         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14987         (negtf2): Likewise.
14988         (neg<mode>2, TFIFKF iterator): Likewise.
14989         (negtf2_internal): Likewise.
14990         (abstf2): Likewise.
14991         (abs<mode>2, TFIFKF iterator): Likewise.
14992         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14993         VSX insn support for negate, absolute value, and negative absolute
14994         value.
14995         (ieee_128bit_vsx_neg<mode>2): Likewise.
14996         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14997         (ieee_128bit_vsx_abs<mode>2): Likewise.
14998         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14999         (ieee_128bit_vsx_nabs<mode>2): Likewise.
15000         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15001         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15002         floating point in VSX registers.
15003         (unpack<mode>_dm): Likewise.
15004         (unpack<mode>_nodm): Likewise.
15005         (pack<mode>): Likewise.
15006         (unpackv1ti): Likewise.
15007         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15008         (packv1ti): Likewise.
15009         (pack<mode>, FMOVE128_VSX iterator): Likewise.
15010         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15011         registers.
15012         (extenddftf2_internal): Likewise.
15013         (trunctfdf2): Likewise.
15014         (trunctfdf2_internal2): Likewise.
15015         (fix_trunc_helper): Likewise.
15016         (fix_trunctfdi2"): Likewise.
15017         (floatditf2): Likewise.
15018         (floatuns<mode>tf2): Likewise.
15019         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15020         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15021         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15022         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15023         (float<SDI:mode><IFKF:mode>2): Likewise.
15024         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15026 2015-08-26  Renlin Li  <renlin.li@arm.com>
15028         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15030 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15031             Jiong Wang  <jiong.wang@arm.com>
15033         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15034         (tlsie_tiny_<mode>): New define_insn.
15035         (tlsie_tiny_sidi): Likewise.
15036         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15037         SYMBOL_TINY_TLSIE.
15038         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15039         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15040         SYMBOL_TINY_TLSIE.
15041         (aarch64_expand_mov_immediate): Likewise.
15042         (aarch64_print_operand): Likewise.
15043         (arch64_classify_tls_symbol): Likewise.
15045 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15047         * config/arm/arm-arches.def: Replace single value flags with
15048         an initializer built from ARM_FSET_MAKE_CPU1.
15049         * config/arm/arm-cores.def: Likewise.
15050         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15051         derivation from the ARM_CORE macro definition, use the given value
15052         instead.
15053         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15054         ARM_ARCH macro definition, use the given value instead.
15056 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15058         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15059         feature set.
15060         (struct builtin_description): Replace field mask with field
15061         features.
15062         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15063         (IWMMXT2_BUILTIN): Likewise.
15064         (IWMMXT2_BUILTIN2): Likewise.
15065         (FP_BUILTIN): Likewise.
15066         (CRC32_BUILTIN): Likewise.
15067         (CRYPTO_BUILTIN): Likewise.
15068         (iwmmx_mbuiltin): Likewise.
15069         (iwmmx2_mbuiltin): Likewise.
15070         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15071         struct builtin_description.
15073 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15075         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15076         (struct builtin_description): Change type of mask to unsigned
15077         long.
15078         * config/arm/arm-protos.h (insn_flags): Declare as type
15079         arm_feature_set.
15080         (tune_flags): Likewise.
15081         * config/arm/arm.c (feature_count): New.
15082         (insn_flags): Define as type arm_feature_set.
15083         (tune_flags): Likewise.
15084         (struct processors): Define field flags as type arm_feature_set.
15085         (all_cores): Update for change to struct processors.
15086         (all_architectures): Likewise.
15087         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15088         macros.
15089         (arm_option_override_internal): Likewise.
15090         (arm_option_override): Likewise.
15092 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15093             Jiong Wang  <jiong.wang@arm.com>
15095         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15096         tls size for tiny, small, large memory model.
15097         (aarch64_load_symref_appropriately): Support new symbol types.
15098         (aarch64_expand_mov_immediate): Likewise.
15099         (aarch64_print_operand): Likewise.
15100         (aarch64_classify_tls_symbol): Likewise.
15101         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15102         (aarch64_symbol_type): Likewise.
15103         * config/aarch64/aarch64.md (tlsle): Deleted.
15104         (tlsle12_<mode>): New define_insn.
15105         (tlsle24_<mode>): Likewise.
15106         (tlsle32_<mode>): Likewise.
15107         (tlsle48_<mode>): Likewise.
15108         * doc/sourcebuild.texi (AArch64-specific attributes): Document
15109         "aarch64_tlsle32".
15111 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15113         * config/arm/arm-protos.h (FL_NONE): New.
15114         (FL_ANY): New.
15115         (arm_feature_set): New.
15116         (ARM_FSET_MAKE): New.
15117         (ARM_FSET_MAKE_CPU1): New.
15118         (ARM_FSET_MAKE_CPU2): New.
15119         (ARM_FSET_CPU1): New.
15120         (ARM_FSET_CPU2): New.
15121         (ARM_FSET_EMPTY): New.
15122         (ARM_FSET_ANY): New.
15123         (ARM_FSET_HAS_CPU1): New.
15124         (ARM_FSET_HAS_CPU2): New.
15125         (ARM_FSET_HAS_CPU): New.
15126         (ARM_FSET_ADD_CPU1): New.
15127         (ARM_FSET_ADD_CPU2): New.
15128         (ARM_FSET_DEL_CPU1): New.
15129         (ARM_FSET_DEL_CPU2): New.
15130         (ARM_FSET_UNION): New.
15131         (ARM_FSET_INTER): New.
15132         (ARM_FSET_XOR): New.
15133         (ARM_FSET_EXCLUDE): New.
15134         (AFM_FSET_IS_EMPTY): New.
15135         (ARM_FSET_CPU_SUBSET): New.
15137 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15139         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15140         SYMBOL_TLSLE to SYMBOL_TLSLE24.
15141         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15142         Likewise.
15143         (aarch64_expand_mov_immediate): Likewise.
15144         (aarch64_print_operand): Likewise.
15145         (aarch64_classify_symbol): Likewise.
15147 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15149         * config/aarch64/aarch64.opt (mtls-size): New entry.
15150         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15151         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15152         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15154 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15156         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15157         ARM_CORE entry.  Fix some white-space.
15158         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15159         ARM_CORE definition.
15161 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15163         * fold-const.c (fold_binary_loc) : Move Optimize
15164         root(x)*root(y) as root(x*y) to match.pd.
15165         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15166         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15167         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15168         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15169         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15170         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15171         (mult (exps:s @0) (exps:s @1)) : New simplifier.
15172         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15173         (rdiv @0 (exps:s @1)) : New simplifier.
15175 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
15177         * gcc.c (driver::finalize): Only assign to extra_specs if
15178         [EXTRA_SPECS].
15180 2015-08-25  Marek Polacek  <polacek@redhat.com>
15182         PR middle-end/67330
15183         * varasm.c (declare_weak): Return after giving an error.
15185 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
15187         * gcc-main.c (main): Add params to driver ctor.
15188         * gcc.c (class env_manager): New.
15189         (env): New global.
15190         (env_manager::init): New.
15191         (env_manager::get): New.
15192         (env_manager::xput): New.
15193         (env_manager::restore): New.
15194         Poison getenv and putenv.
15195         (DEFAULT_TARGET_SYSTEM_ROOT): New.
15196         (target_system_root): Update initialization to use
15197         DEFAULT_TARGET_SYSTEM_ROOT.
15198         (struct spec_list): Add field "default_ptr".
15199         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15200         (init_spec): Likewise.
15201         (set_spec): Clear field "default_ptr".
15202         (read_specs): Free "spec" and "buffer".
15203         (xputenv): Reimplement in terms of env_manager.
15204         (process_command): Replace ::getenv calls with calls to the
15205         env_manager singleton.
15206         (process_brace_body): Free string in three places.
15207         (driver::driver): New.
15208         (driver::~driver): New.
15209         (used_arg): Convert from a function to...
15210         (class used_arg_t): ...this class, and...
15211         (used_arg): ...this new global instance.
15212         (used_arg_t::finalize): New function.
15213         (getenv_spec_function): Add "const" to local "value".  Replace
15214         ::getenv call with call to the env_manager singleton.
15215         (path_prefix_reset): New function.
15216         (driver::finalize): New function.
15217         * gcc.h (driver::driver): New.
15218         (driver::~driver): New.
15219         (driver::finalize): New.
15221 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15223         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15224         target doesn't have one.
15226 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15228         PR target/67346
15229         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15231 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15233         PR target/67344
15234         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15235         a define_insn, remove second alternative.
15237 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
15238             Joseph Myers  <joseph@codesourcery.com>
15240         * gcc.c (struct switchstr): Expand comment.
15242 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15244         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15245         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15247 2015-08-25  Richard Biener  <rguenther@suse.de>
15249         PR middle-end/67306
15250         * genmatch.c (expr::gen_transform): Verify the result of
15251         builtin_decl_implicit.
15252         (dt_simplify::gen_1): Likewise.
15254 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15256         * config/arm/constraints.md: Also list Cs and US ARM-specific
15257         constraints as used.
15259 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15261         PR target/66609
15262         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15263         UNSPEC_PCREL.
15264         (nonpic_symbol_mentioned_p): Likewise.
15265         (sh_delegitimize_address): Likewise.
15266         (sh_function_ok_for_sibcall): Take into account weak symbols.
15267         (sh_expand_sym_label2reg): New.
15268         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15269         * config/sh/sh.md (UNSPEC_PCREL): New enum.
15270         (call_pcrel): Use sh_expand_sym_label2reg.
15271         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15272         (symPCREL_label2reg) New expand.
15274 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15276         * graphite-poly.c: Change type of region from void* to sese.
15277         * graphite-poly.h (struct scop): Changing the type of scop::region
15278         from void* to sese. Change accessor macro accordingly.
15279         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15281 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15283         * graphite-scop-detection.c (stmt_simple_for_scop_p):
15284         Constrain only on INTEGER_TYPE.
15286 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15288         PR target/67211
15289         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15290         -mefficient-unaligned-vsx on ISA 2.7.
15292         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15293         option to a masked option.
15295         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15296         logic for -mefficient-unaligned-vsx so that it is set via an arch
15297         ISA option, instead of being set if -mtune=power8 is set. Move
15298         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15299         near other default option handling.
15301 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15303         * genflags.c (gen_macro): Delete.
15304         (gen_proto): Don't create GEN.*CALL.* macros.
15305         * gensupport.h (get_file_location): Declare.
15306         * gensupport.c (rtx_locs): New variable.
15307         (read_md_rtx): Record rtx locations.
15308         (get_file_location): New function.
15309         * target-insns.def (call, call_pop, call_value, call_value_pop)
15310         (sibcall, sibcall_value): New patterns.
15311         * gentarget-def.c (parse_argument): New function.
15312         (def_target_insn): Use it.  Handle optional operands.  Raise an
15313         error if an .md pattern has the wrong number of operands for the
15314         pattern name.  Remove the names of unused operands from the prototype.
15315         * builtins.c (expand_builtin_apply): Use targetm functions
15316         instead of HAVE_call_value and GEN_CALL_VALUE.
15317         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
15318         and sibcall_value_pop.
15319         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15320         of GEN_CALL.
15321         * config/alpha/alpha.md (untyped_call): Likewise.
15322         * config/iq2000/iq2000.md (untyped_call): Likewise.
15323         * config/m68k/m68k.md (untyped_call): Likewise.
15324         * config/mips/mips.md (untyped_call): Likewise.
15325         * config/pa/pa.md (untyped_call): Likewise.
15326         * config/rs6000/rs6000.md (untyped_call): Likewise.
15327         * config/sparc/sparc.md (untyped_call): Likewise.
15328         * config/tilegx/tilegx.md (untyped_call): Likewise.
15329         * config/tilepro/tilepro.md (untyped_call): Likewise.
15330         * config/visium/visium.md (untyped_call): Likewise.
15331         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15332         gen_call_value instead of GEN_CALL_VALUE.
15333         * config/arm/arm.md (untyped_call): Likewise.
15334         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15335         GEN_CALL.
15337 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15339         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15340         (have_cbranchcc4): New variable.
15341         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15342         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15343         (if_convert): Initialize have_cbranchcc4.
15345 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15347         * builtins.c (expand_cmpstrn): Rename to...
15348         (expand_cmpstrn_or_cmpmem): ...this.
15349         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15350         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15351         Remove mode argument.
15352         (expand_builtin): Update accordingly.
15354 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15356         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15357         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
15358         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15359         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15360         Add predicates for operands 0 and 3.
15361         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15362         operand.
15363         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15364         immediate_operand to nonmemory_operand.
15366 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15368         * df-scan.c (df_insn_info_init_fields): New function, split out
15369         from...
15370         (df_insn_create_insn_record): ...here.
15371         (df_insn_info_free_fields): New function, split out from...
15372         (df_insn_info_delete): ...here.
15373         (df_insn_rescan): Use the new functions instead of freeing and
15374         reallocating the df_insn_info.
15376 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15378         * doc/install.texi (Binaries): Remove links no longer valid.
15380 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15382         * config/nvptx/mkoffload.c (process): Replace
15383         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15385 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
15387         PR target/67329
15388         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15390 2015-08-24  Renlin Li  <renlin.li@arm.com>
15392         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15393         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15394         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15395         * config/arm/constraints.md ("j"): Add check for high code.
15397 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15399         PR tree-optimization/65468
15400         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15401         chunk_size is one.
15403 2015-08-24  Nathan Sidwell  <nathan@acm.org>
15405         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15406         change to nvptx_type_from_mode call. Use arg_promotion for both
15407         split and non-split args.
15409 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15411         * target-insns.def (movstr): New pattern.
15412         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15413         (expand_movstr): Use targetm rather than HAVE_movstr/
15414         CODE_FOR_movstr.
15416 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15418         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15419         cast syntax.
15421 2015-08-24  Andrew Pinski  <apinski@cavium.com>
15423         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15424         AARCH64_EXTRA_TUNING_OPTION.
15425         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15426         New enum.
15427         (aarch64_extra_tuning_flags): Base the shifted value on the index
15428         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15429         * config/aarch64/aarch64.c: Remove the last argument to
15430         AARCH64_EXTRA_TUNING_OPTION.
15432 2015-08-23  Nathan Sidwell  <nathan@acm.org>
15434         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15435         decls.
15436         (nvptx_declare_function_name): Insert formatting tabs for
15437         consistency.
15439 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15441         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15442         parm_decl, rather than generating a dummy default def in cfun.
15443         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
15444         ssa_name from cfun and child_fn do not share a stmt as def stmt.
15445         (move_stmt_op): Handle PARM_DECl.
15446         (gather_ssa_name_hash_map_from): New function.
15447         (move_sese_region_to_fn): Add default defs for function params, and add
15448         them to vars_map.  Release copied ssa names.
15449         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15451 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15453         * doc/sourcebuild.texi: Rename vect_no_int_max with
15454         vect_no_int_min_max.  Update description.
15456 2015-08-22  Andrew Pinski  <apinski@cavium.com>
15458          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15459         * config/aarch64/aarch64-protos.h
15460         (aarch64_fusion_pairs_index): New enum.
15461         (aarch64_fusion_pairs): Base the shifted value on the index instead
15462         Rewrite AARCH64_FUSE_ALL to be based on the end index.
15463         of the argument to AARCH64_FUSION_PAIR.
15464         * config/aarch64/aarch64.c: Remove the last argument to
15465         AARCH64_FUSION_PAIR.
15467 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
15469         * dominance.c (new_zero_array): Define.
15470         (dom_info): Redefine as class with proper encapsulation.
15471         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15472         Add new members.
15473         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
15474         allocations/deallocations.  Pass function as parameter (instead of
15475         using cfun).
15476         (dom_info::get_idom): Define accessor method.
15477         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15478         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
15479         (calculate_dominance_info): Adjust to use dom_info class.
15480         (verify_dominators): Likewise.
15482 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
15484         * print-rtl.c (print_rtx): Check the correct range for
15485         flag_dump_unnumbered_links to behave as documented.
15487         PR rtl-optimization/67227
15488         PR rtl-optimization/64164
15489         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15490         (nonoverlapping_memrefs_p): Test offsets and sizes when given
15491         identical gimple_reg exprs.
15493 2015-08-21  Nathan Sidwell  <nathan@acm.org>
15495         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15496         expansion.
15497         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15498         crtl->stack_alignment_needed to determine alignment.
15499         (nvptx_get_drap_rtx): New.
15500         (TARGET_GET_DRAP_RTX): Override.
15501         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15503 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15505         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15507 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15509         * configure.ac: Remove uwin* cases.
15510         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15511         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15512         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15513         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15514         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15515         i[34567]86-*-uwin*, powerpc-*-beos*.
15517 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
15519         * gencodes.c (gencodes): Print the comma for the preceding
15520         enum value rather than the current one.  Use aliased enum values
15521         rather than #defines for compiled-out patterns.
15522         (main): Update accordingly.  Replace LAST_INSN_CODE with
15523         NUM_INSN_CODES.
15524         * lra.c (insn_code_data): Update accordingly.
15525         (finish_insn_code_data_once, get_static_insn_data): Likewise.
15526         * recog.h (target_recog): Likewise.
15527         (preprocess_insn_constraints): Change parameter to unsigned int.
15528         * recog.c (preprocess_insn_constraints): Likewise.
15529         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15530         * tree-vect-stmts.c (vectorizable_operation): Simplify.
15532 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15534         PR rtl-optimization/61657
15535         * loop-iv.c (iv_number_of_iterations): Declare up and down as
15536         unsigned.  Remove superflous uint64_t cast.
15538 2014-08-21  Felix Yang  <felix.yang@huawei.com>
15539             Jiji Jiang  <jiangjiji@huawei.com>
15541         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15542         argument and get builtin function code directly from CALL.
15543         (gimple_stringop_fixed_value): Modified accordingly.
15544         (gimple_stringops_transform, gimple_stringops_values_to_profile):
15545         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15547 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15549         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15551 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15553         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15554         to match.pd.
15555         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15556         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15557         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15558         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15559         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15560         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15561         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15562         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15563         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15564         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15566         * match.pd (SIN ) : New Operator.
15567         (TAN) : New Operator.
15568         (mult (SQRT@1 @0) @1) : New simplifier.
15569         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15570         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15571         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15572         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15573         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15574         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15575         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15576         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15577         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15578         (rdiv @0 (POW:s @1 @2)) : New simplifier.
15580 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
15582         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15583         loop if EXPR is simplified to const value.
15585 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
15587         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15588         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15590 2015-08-21  Richard Biener  <rguenther@suse.de>
15592         PR middle-end/67285
15593         * gimple-fold.c (replace_stmt_with_simplification): Assert
15594         seq is empty when replacing a call with itself but different
15595         arguments.
15596         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15597         a call require that it is const.
15599 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15601         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15602         * builtins.c (get_object_alignment_2): Adjust.
15603         * varasm.c (align_variable): Likewise.
15604         (get_variable_align): Likewise.
15605         (build_constant_desc): Likewise.
15606         (force_const_mem): Likewise.
15607         * doc/tm.texi.in: Likewise.
15608         * doc/tm.texi: Regenerate.
15610 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15612         * genconfig.c (main): Always define HAVE_cc0.
15613         * recog.c (rest_of_handle_peephole2): Adjust.
15615 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15617         * reorg.c (relax_delay_slots): Don't use #if to check value of
15618         HAVE_cc0.
15620 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15622         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15623         * targhooks.c (default_have_conditional_execution): Adjust.
15625 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15627         * rtl.h (rtvec_all_equal_p): Declare.
15628         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15629         * rtl.c (rtvec_all_equal_p): New function.
15630         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15631         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15632         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15633         * config/arm/arm.c (neon_vdup_constant): Likewise.
15634         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15635         * config/tilegx/constraints.md (W, Y): Likewise.
15636         * config/tilepro/constraints.md (W, Y): Likewise.
15637         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15638         (classify_immediate): Use unwrap_const_vec_duplicate.
15639         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15640         (reg_or_v2s8bit_operand): Likewise.
15641         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15642         (reg_or_v4s8bit_operand): Likewise.
15644 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15646         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15647         (vec_shasigma_be): New #define.
15648         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15649         (VPMSUMH): Likewise.
15650         (VPMSUMW): Likewise.
15651         (VPMSUMD): Likewise.
15652         (VPMSUM): New BU_P8V_OVERLOAD_2.
15653         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15654         entries for VEC_MADD and VEC_VPMSUM.
15656 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
15658         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15659         Multiply argument avr_n_flash by 64 to match unit of "KiB".
15660         (avr_pgm_check_var_decl): Same.
15662 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
15664         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15665         initialization of HFmode scalar type (float16_t) to...
15666         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15667         code.
15669         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15671         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15672         having an -mfp16-format.
15674 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15676         * config/i386/predicates.md (vector_all_ones_operand): Use
15677         CONSTM1_RTX to simplify definition.
15679 2015-08-20  Richard Biener  <rguenther@suse.de>
15681         * toplev.c (compile_file): Remove loop calling late_global_decl
15682         on all symbols.
15683         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15684         on decls we assembled.
15686 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
15688         * common/config/aarch64/aarch64-common.c
15689         (AARCH64_CPU_NAME_LENGTH): Delete.
15690         (aarch64_option_extension): New.
15691         (all_extensions): Likewise.
15692         (processor_name_to_arch): Likewise.
15693         (arch_to_arch_name): Likewise.
15694         (all_cores): New.
15695         (all_architectures): Likewise.
15696         (aarch64_get_extension_string_for_isa_flags): Likewise.
15697         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15698         architecture names.
15699         * config/aarch64/aarch64-protos.h
15700         (aarch64_get_extension_string_for_isa_flags): New.
15701         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15702         (aarch64_option_print): Get the string to print from
15703         aarch64_get_extension_string_for_isa_flags.
15704         (aarch64_declare_function_name): Likewise.
15705         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15706         (MCPU_TO_MARCH_SPEC): This.
15707         (ASM_CPU_SPEC): Use it.
15708         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15709         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15710         (EXTRA_SPEC_FUNCTIONS): Use it.
15712 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
15714         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15715         expansion when !ISA_HAS_LWL_LWR.
15716         (mips_block_move_straight): Update the size of elements copied to
15717         account for alignment when !ISA_HAS_LWL_LWR.
15718         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15720 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
15722         * expr.c (expand_expr_real_2): Check gimple statement during
15723         LSHIFT_EXPR expand.
15725 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
15727         * common.opt (fstack-protector): Initialize to -1.
15728         (fstack-protector-all): Likewise.
15729         (fstack-protector-strong): Likewise.
15730         (fstack-protector-explicit): Likewise.
15731         * configure.ac: Add --enable-default-ssp.
15732         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
15733         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15734         -1.
15735         * doc/install.texi: Document --enable-default-ssp.
15736         * config.in: Regenerated.
15737         * configure: Likewise.
15739 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
15741         PR rtl-optimization/64164
15742         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15743         (parm_in_stack_slot_p): ... this.  Disregard mode, what
15744         matters is whether the parm will live in a pseudo or a stack
15745         slot.
15746         (expand_one_ssa_partition): Deal with params without a default
15747         def.  Disregard mode.
15748         * cfgexpand.h: Renamed function declaration.
15749         * tree-ssa-coalesce.c: Adjust.
15750         * function.c (split_complex_args): Allocate stack slot for
15751         unassigned parms before splitting.
15752         (parm_in_unassigned_mem_p): New.  Use it instead of
15753         parm_maybe_byref_p throughout this file.
15754         (assign_parm_setup_block): Use it.  Accept pseudos in the
15755         expand-assigned rtl.
15756         (assign_parm_setup_reg): Drop BLKmode requirement.
15757         (assign_parm_setup_stack): Allocate and fill in the address of
15758         unassigned MEM parms.
15760 2015-08-19  David Sherwood  <david.sherwood@arm.com>
15762         * genmodes.c (emit_mode_unit_size_inline): New function.
15763         (emit_mode_unit_precision_inline): New function.
15764         (emit_insn_modes_h): Emit new #define.  Emit new functions.
15765         (emit_mode_unit_size): New function.
15766         (emit_mode_unit_precision): New function.
15767         (emit_mode_adjustments): Add mode_unit_size adjustments.
15768         (emit_insn_modes_c): Emit new arrays.
15769         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15770         use new inline methods.
15772 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15774         * config/aarch64/aarch64.c (bit_count): Delete prototype
15775         and definition.
15776         (aarch64_print_operand): Use popcount_hwi instead of the above.
15778 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15780         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15781         comment.
15783 2015-08-19  Marek Polacek  <polacek@redhat.com>
15785         PR middle-end/67133
15786         * gimple-ssa-isolate-paths.c
15787         (insert_trap_and_remove_trailing_statements): Rename to ...
15788         (insert_trap): ... this.  Don't remove trailing statements; split
15789         block instead.
15790         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15792 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
15794         PR other/67042
15795         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15796         conditionalize the whole on __GNUC__.  Add fallback code
15797         depending neither on undefined nor implementation-defined behaviour.
15799 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
15801         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15802         whitespaces with tab.
15804 2015-08-19  Florian Weimer  <fweimer@redhat.com>
15806         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15807         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15808         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15809         Move Name_Ids instantiation to the Prj.Proc package, to avoid
15810         trampolines.
15812 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15814         * config/arm/arm.c (bounds_check): Use %wd print format
15815         for HOST_WIDE_INT arguments.
15817 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
15819         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15820         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15821         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15822         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15823         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15824         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15825         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15826         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15827         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15828         typedefs.
15830 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
15832         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15833         function.c, graphite-scop-detection.c, haifa-sched.c,
15834         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15835         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15836         varasm.c: Remove typedefs of structs.
15838 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15840         * config/rs6000/altivec.h (vec_adde): New define.
15841         (vec_addec): Likewise.
15842         (vec_double): Likewise.
15843         (vec_bperm): Likewise.
15844         (vec_gb): Likewise.
15845         * config/rs6000/rs6000-builtin.def (ADDE): New
15846         BU_ALTIVEC_OVERLOAD_3.
15847         (ADDEC): Likewise.
15848         (DOUBLE): New BU_VSX_OVERLOAD_1.
15849         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15850         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15851         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15852         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15853         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15854         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15855         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15856         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15857         and P8V_BUILTIN_VEC_VBPERMQ.
15859 2015-08-18  Jason Merrill  <jason@redhat.com>
15861         * print-tree.c (print_node): Handle TREE_BINFO.
15863 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15865         PR middle-end/36757
15866         * builtins.c (expand_builtin_signbit): Add asserts to make sure
15867         we can expand BUILT_IN_SIGNBIT inline.
15868         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15869         * doc/extend.texi: Document the type-generic __builtin_signbit.
15871 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
15873         PR rtl-optimization/67218
15874         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15875         (simplify_unary_operation_1): Use it.
15877 2015-08-18  Marek Polacek  <polacek@redhat.com>
15879         PR middle-end/67222
15880         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15881         if the call isn't valid.
15882         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15883         gimple_call_builtin_p.
15884         (call_may_clobber_ref_p_1): Likewise.
15885         (stmt_kills_ref_p): Likewise.
15887 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15889         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15890         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15891         (mips_hard_regno_scratch_ok): Likewise.
15892         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15893         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15895 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
15897         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15898         (determine_value_range): Call refine_value_range_using_guard for
15899         each loop initial condition to improve value range.
15901 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
15903         * config/i386/i386.c: Remove include of fibheap.h.
15905 2015-08-17  Richard Biener  <rguenther@suse.de>
15907         PR tree-optimization/67221
15908         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15909         (sccvn_dom_walker::before_dom_children): Mark backedges of
15910         non-executable blocks as not executable.
15912 2015-08-17  David Sherwood  <david.sherwood@arm.com>
15914         * config/arm/arm.c (neon_element_bits): Replace call to
15915         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15916         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15917         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15918         (neon_vdup_lane<mode>): Likewise.
15919         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15920         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15921         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15922         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15923         * config/spu/spu.c (arith_immediate_p): Likewise.
15924         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15925         * expr.c (expand_expr_real_2): Likewise.
15926         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15927         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15928         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15929         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15930         New variable.
15931         * fold-const.c (fold_binary_loc): Replace call to
15932         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15933         GET_MODE_UNIT_PRECISION (m).
15935 2015-08-17  Mike Stump  <mikestump@comcast.net>
15937         * config/arm/arm.c (arm_block_move_unaligned_straight):
15938         Emit normal move instead of unaligned load when source or destination
15939         are appropriately aligned.
15941 2015-08-17  Richard Biener  <rguenther@suse.de>
15942             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15944         PR middle-end/16107
15945         * match.pd (div (coss (op @0) : New simplifier.
15947 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
15949         PR rtl-optimization/64164
15950         PR bootstrap/66978
15951         PR middle-end/66983
15952         PR rtl-optimization/67000
15953         PR middle-end/67034
15954         PR middle-end/67035
15955         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15956         * tree-ssa-copyrename.c: Removed.
15957         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15958         -ftree-coalesce-vars.
15959         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15960         * common.opt (ftree-copyrename): Ignore.
15961         (ftree-coalesce-inlined-vars): Likewise.
15962         * doc/invoke.texi: Remove the ignored options above.
15963         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15964         * tree-ssa-coalesce.h: ... here.
15965         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15966         headers required by it.
15967         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15968         across variables when flag_tree_coalesce_vars.  Check register
15969         use and promoted modes to allow coalescing.  Do not coalesce
15970         maybe-byref parms with SSA_NAMEs of other variables, or
15971         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
15972         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15973         with its member functions to tree-ssa-coalesce.c.
15974         (var_map_base_init): Likewise.  Renamed to
15975         compute_samebase_partition_bases.
15976         (partition_view_normal): Drop want_bases parameter.
15977         (partition_view_bitmap): Likewise.
15978         * tree-ssa-live.h: Adjust declarations.
15979         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15980         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15981         default defs at the entry point.
15982         (dump_part_var_map): New.
15983         (compute_optimized_partition_bases): New, called by...
15984         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15985         of compute_samebase_partition_bases.  Adjust.
15986         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15987         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15988         (ssa_default_def_partition): New.
15989         (get_rtl_for_parm_ssa_default_def): New.
15990         (align_local_variable, add_stack_var): Support anonymous SSA
15991         names.
15992         (defer_stack_allocation): Likewise.  Declare earlier.
15993         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15994         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15995         Do no record deferred-allocation marker in
15996         SA.partition_to_pseudo.
15997         (expand_stack_vars): Adjust check for the marker in it.
15998         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15999         redundant MEM attr setting.
16000         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16001         from...
16002         (expand_one_stack_var): ... this.  New wrapper to check and
16003         skip already expanded SSA partitions.
16004         (record_alignment_for_reg_var): New, factored out of...
16005         (expand_one_var): ... this.
16006         (expand_one_ssa_partition): New.
16007         (adjust_one_expanded_partition_var): New.
16008         (expand_one_register_var): Check and skip already expanded SSA
16009         partitions.
16010         (expand_used_vars): Don't create DECLs for anonymous SSA
16011         names.  Expand all SSA partitions, then adjust all SSA names.
16012         (pass::execute): Replace the loops that set
16013         SA.partition_to_pseudo from partition leaders and cleared
16014         DECL_RTL for multi-location variables, and that which used to
16015         rename vars and set attrs, with one that clears DECL_RTL and
16016         checks that PARMs and RESULTs default_defs match DECL_RTL.
16017         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16018         * emit-rtl.c: Include stor-layout.h.
16019         (set_reg_attrs_for_parm): Handle NULL decl.
16020         (set_reg_attrs_for_decl_rtl): Take mode from expression if
16021         it's not a DECL.
16022         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16023         rather than its possibly-NULL DECL.
16024         * explow.c (promote_ssa_mode): New.
16025         * explow.h (promote_ssa_mode): Declare.
16026         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16027         (read_complex_part): Export.
16028         * expr.h (read_complex_part): Declare.
16029         * cfgexpand.h (parm_maybe_byref_p): Declare.
16030         * function.c: Include cfgexpand.h.
16031         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16032         (use_register_for_parm_decl): Wrapper for the above to
16033         special-case the result_ptr.
16034         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16035         (split_complex_args): Take assign_parm_data_all argument.
16036         Pass it to rtl_for_parm.  Set up rtl and context for split
16037         args.  Reset complex parm before fetching its default decl
16038         rtl.
16039         (assign_parms_unsplit_complex): Use the default-def complex
16040         parm rtl if it matches the components.
16041         (assign_parms_augmented_arg_list): Adjust.
16042         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16043         multiple locations.  Recognize split complex args.
16044         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16045         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16046         (assign_parm_setup_block): Prefer SSA-assigned location, and
16047         fill in its address if the memory location of a maybe-byref
16048         parm was not assigned by cfgexpand.
16049         (assign_parm_setup_reg): Likewise.  Adjust its mode as
16050         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
16051         sure passed_pointer parms don't need conversion.  Copy address
16052         or value as needed.
16053         (assign_parm_setup_stack): Prefer SSA-assigned location.
16054         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16055         rtl before testing for pointer bounds.  Special-case result_ptr.
16056         (expand_function_start): Maybe reset DECL_RTL of result.
16057         Prefer SSA-assigned location for result and static chain.
16058         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
16059         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
16060         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16061         anonymous SSA names.  Use promote_ssa_mode.
16062         (get_temp_reg): Likewise.
16063         (remove_ssa_form): Adjust.
16064         * stor-layout.c (layout_decl): Don't set mem attributes of
16065         non-MEMs.
16066         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16067         and get its reg_usage for reg invalidation.
16068         (compute_bb_dataflow): Pass it insn.
16069         (emit_notes_in_bb): Likewise.
16071 2015-08-14  Marek Polacek  <polacek@redhat.com>
16073         * tree-core.h (tree_base): Fix typo.
16075 2015-08-14  Marek Polacek  <polacek@redhat.com>
16077         PR middle-end/67133
16078         * gimple.c (infer_nonnull_range_by_attribute): Check that the
16079         nonnull argument position is not outside function arguments.
16081 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
16083         PR target/67143
16084         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16085         'lconst_atomic' with 'const_atomic'.
16086         (atomic_fetch_<optab><mode>): Likewise.
16087         (atomic_<optab>_fetch<mode>): Likewise.
16088         * config/aarch64/iterators.md (lconst-atomic): Move below
16089         'const_atomic'.
16090         (const_atomic): New.
16092 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
16093             Bernd Schmidt  <bernds@codesourcery.com>
16095         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16096         debug options.
16097         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16098         (DWARF2_DEBUGGING_INFO): Don't define.
16099         * debug.h (dwarf2_lineno_debug_hooks): Declare.
16100         * toplev.c (process_options): Add a case for it.
16101         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16102         (dwarf2out_init): Skip most initializations if
16103         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16104         case.
16105         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16106         DWARF2_LINENO_DEBUGGING_INFO.
16107         * opts.c (set_debug_level): Likewise.
16109 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
16111         * config/arm/types.md (is_neon_type): Add missing types.
16113 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
16115         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16116         for skylake.
16117         * config/i386/i386.c (PTA_SKYLAKE): New macros.
16118         (processor_alias_table): Add skylake description.
16119         (enum processor_model): Add skylake processor.
16120         (arch_names_table): Add skylake record.
16121         * doc/invoke.texi: Add skylake item.
16123 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
16125         * ira-int.h: Include recog.h.
16126         * ira-build.c: Don't include recog.h.
16127         * ira-color.c: Likewise.
16128         * ira-conflicts.c: Likewise.
16129         * ira-costs.c: Likewise.
16130         * ira-emit.c: Likewise.
16131         * ira-lives.c: Likewise.
16132         * ira.c: Likewise.
16133         * sched-deps.c: Likewise.
16134         * sel-sched.c: Likewise.
16135         * target-globals.c: Likewise.
16137 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16139         PR bootstrap/55035
16140         * reload1.c (elimination_costs_in_insn): Make it obvious to the
16141         compiler that the n_dups and n_operands loop bounds are invariant.
16143 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16145         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16146         expressions in A and B.
16148 2015-08-13  Richard Biener  <rguenther@suse.de>
16150         * tree.c (nonnull_arg_p): Move from ...
16151         * tree-vrp.c (nonnull_arg_p): ... here.
16152         * tree.h (nonnull_arg_p): Declare.
16153         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16154         here, register ptr != 0 for nonnull_arg_p pointer arguments.
16155         Properly initialize static chain and by-reference result pointer.
16156         (run_scc_vn): Adjust.
16158 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16160         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16161         TUNE_I6400.
16163 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16165         * config/aarch64/aarch64-protos.h
16166         (aarch64_gen_atomic_cas): Declare.
16167         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16168         Choose appropriate instruction pattern for the target.
16169         (aarch64_gen_atomic_cas): New.
16170         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16171         (atomic_compare_and_swap<mode>_1): Rename to
16172         aarch64_compare_and_swap<mode>.  Fix some indentation.
16173         (aarch64_compare_and_swap<mode>_lse): New.
16174         (aarch64_atomic_cas<mode>): New.
16176 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16178         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16179         (TARGET_LSE): New.
16181 2015-08-13  Richard Biener  <rguenther@suse.de>
16183         PR tree-optimization/67191
16184         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16185         assert we value-numbered last stmts operand because it can validly
16186         trigger for unreachable code.
16188 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16190         PR rtl-optimization/67103
16191         * ifcvt.c (noce_try_store_flag_constants): Move
16192         x = (-(test != 0) & (b - a)) + a transformation to...
16193         (noce_try_cmove): ... Here.  Try it if normal conditional
16194         move fails.
16196 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16198         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16199         pseudo-processors.
16200         * config/mips/mips.md (processor): Remove w32 and w64.
16202 2015-08-13  Richard Biener  <rguenther@suse.de>
16204         PR tree-optimization/66502
16205         PR tree-optimization/67167
16206         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16207         backedge arguments.
16208         (vn_phi_lookup): Adjust.
16209         (vn_phi_insert): Likewise.
16210         (visit_phi): Prefer to value-number to another PHI node
16211         over value-numbering to a PHI argument.
16212         (init_scc_vn): Mark DFS back edges.
16214 2015-08-13  Richard Biener  <rguenther@suse.de>
16216         * gimple.h (gcall::code_): New constant static member.
16217         (gcond::code_): Likewise.
16218         * gimple.c (gcall::code_): Define.
16219         (gcond::code_): Likewise.
16220         (is_a_helper <const gcond *>): Add.
16221         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16222         and forward to a new gcall overload with less checking and a
16223         cheaper way to access the operand.
16224         (gimple_call_lhs_ptr): Likewise.
16225         (gimple_call_set_lhs): Likewise.
16226         (gimple_call_internal_p): Likewise.
16227         (gimple_call_with_bounds_p): Likewise.
16228         (gimple_call_set_with_bounds): Likewise.
16229         (gimple_call_internal_fn): Likewise.
16230         (gimple_call_set_ctrl_altering): Likewise.
16231         (gimple_call_ctrl_altering_p): Likewise.
16232         (gimple_call_fntype): Likewise.
16233         (gimple_call_fn): Likewise.
16234         (gimple_call_fn_ptr): Likewise.
16235         (gimple_call_set_fndecl): Likewise.
16236         (gimple_call_fndecl): Likewise.
16237         (gimple_call_chain): Likewise.
16238         (gimple_call_num_args): Likewise.
16239         (gimple_call_arg): Likewise.
16240         (gimple_call_arg_ptr): Likewise.
16241         (gimple_call_set_arg): Likewise.
16242         (gimple_call_noreturn_p): Likewise.
16243         (gimple_cond_code): Likewise.
16244         (gimple_cond_lhs): Likewise.
16245         (gimple_cond_rhs): Likewise.
16246         (gimple_has_lhs): Reduce checking.
16248 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16250         PR middle-end/25529
16251         * match.pd (div (mult @0 @1) @1) : New simplifier.
16253 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16255         PR target/67071
16256         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16257         predicate to allow construction of vector constants using the
16258         VSLDOI vector shift instruction.
16260         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16261         declaration.
16263         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16264         the number of bytes to be shifted left and filled in with either
16265         all zero or all one bits.
16266         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16267         methods exist.
16268         (output_vec_const_move): On power8, generate XXLORC to generate
16269         a vector constant with all 1's. Do a split if we need to use a
16270         VSLDOI instruction.
16272         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16273         properly test for the MSB.
16275         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16276         vector constants that can be created with VSLDOI.
16278 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16280         revert:
16281         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16282         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16283         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16284         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16285         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16286         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16287         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16288         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16289         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16291 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
16293         * config/xtensa/constraints.md (define_constraint "Y"): New
16294         constraint.
16295         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16296         * config/xtensa/linux.h (ASM_SPEC): Likewise.
16297         * config/xtensa/predicates.md (move_operand): Match constants
16298         and symbols in the presence of TARGET_AUTO_LITPOOLS.
16299         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16300         immediate references to TLS data.
16301         (xtensa_emit_move_sequence): Don't force constants to memory in
16302         the presence of TARGET_AUTO_LITPOOLS.
16303         (print_operand): Add 'y' format, same as default, but capable of
16304         printing SF mode constants as well.
16305         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16306         (movsf_internal): Add movi pattern that loads literal.
16307         (movsf, movdf): Don't force constants to memory in the presence
16308         of TARGET_AUTO_LITPOOLS.
16309         (movdf_internal): Add 'Y' constraint.
16310         * config/xtensa/xtensa.opt (mauto-litpools): New option.
16311         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16313 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16315         * config/arm/arm-fpus.def: Replace booleans with feature flags.
16316         Update comment.
16317         * config/arm/arm.c (ARM_FPU): Update macro.
16318         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16319         (TARGET_FP16): Likewise.
16320         (TARGET_CRYPTO): Likewise.
16321         (TARGET_NEON): Likewise.
16322         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
16323         field features.
16325 2015-08-12  Tom de Vries  <tom@codesourcery.com>
16327         PR other/67092
16328         PR other/67098
16329         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
16330         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16331         accordingly.  Mention default for --with-stage1-ldflags.
16333 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16335         * config/arm/arm.h (arm_fpu_feature_set): New.
16336         (ARM_FPU_FSET_HAS): New.
16337         (FPU_FL_NONE): New.
16338         (FPU_FL_NEON): New.
16339         (FPU_FL_FP16): New.
16340         (FPU_FL_CRYPTO): New.
16342 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16344         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16345         after -mcmodel=large -fPIC sorry.
16347 2015-08-12  Richard Biener  <rguenther@suse.de>
16349         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16350         comparison operand order and commutative ternary op operand order.
16351         (sccvn_dom_walker::cond_stack): New state to track temporary
16352         expressions.
16353         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16354         no longer valid.
16355         (sccvn_dom_walker::record_cond): Add a single temporary conditional
16356         expression.
16357         (sccvn_dom_walker::record_conds): Add a temporary conditional
16358         expressions and all related expressions also true/false.
16359         (sccvn_dom_walker::before_dom_children): Record temporary
16360         expressions based on the controlling condition of a single
16361         predecessor.  When trying to simplify a conditional statement
16362         lookup expressions we might have inserted earlier.
16364 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
16366         PR target/67127
16367         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16368         to ARM core registers.
16370 2015-08-12  Nathan Sidwell  <nathan@acm.org>
16372         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16373         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16375 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
16377         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16378         line with comments.
16379         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16381 2015-08-12  Richard Biener  <rguenther@suse.de>
16383         * gimple.h (remove_pointer): New trait.
16384         (GIMPLE_CHECK2): New inline template function.
16385         (gassign::code_): New constant static member.
16386         (is_a_helper<const gassign *>): Add.
16387         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16388         and forward to a new gassign overload with less checking and a
16389         cheaper way to access the operand.
16390         (gimple_assign_lhs_ptr): Likewise.
16391         (gimple_assign_set_lhs): Likewise.
16392         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16393         Likewise.
16394         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16395         Likewise.
16396         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16397         Likewise.
16398         (gimple_assign_rhs_code): Likewise.
16399         * gimple.c (gassign::code_): Define.
16401 2015-08-12  Richard Biener  <rguenther@suse.de>
16403         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16404         Eliminate edges marked as not executable by SCCVN.
16405         * tree-ssa-sccvn.c: Include gimple-iterator.h.
16406         (cond_dom_walker): Rename to sccvn_dom_walker.
16407         (sccvn_dom_walker::before_dom_children): Value-number defs
16408         of all stmts.
16409         (run_scc_vn): Remove loop value-numbering all SSA names.
16410         Drop not visited SSA names to varying.
16412 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16414         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16415         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16416         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16417         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16418         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16419         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16420         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16421         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16422         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16424 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
16426         PR target/66954
16427         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16428         to enum feature_priority and feature_list.
16429         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16430         and isa_names_table.
16432 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16434         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16435         vect_induction_def.
16437 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16439         PR c/66098
16440         PR c/66711
16441         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16442         account when deciding what was the command-line status.
16444 2015-08-11  Nathan Sidwell  <nathan@acm.org>
16446         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16448         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16449         we're not the only contributor to target phi.
16451 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
16453         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16454         FIXED_REG0.
16456 2015-08-11  Tom de Vries  <tom@codesourcery.com>
16458         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16460 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
16462         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16463         with CPU_SLM.
16464         * config/i386/i386.md (cpu): Remove knl.
16466 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16468         PR libgomp/65742
16469         PR middle-end/66332
16470         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16471         open-coded sequence.
16472         * omp-low.c (oacc_process_reduction_data): Remove handline of
16473         GOMP_DEVICE_HOST_NONSHM.
16475         * lto-streamer-in.c (lto_input_mode_table): Adjust to
16476         GET_MODE_INNER changes.
16478 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
16479             Ilya Verbin  <ilya.verbin@intel.com>
16481         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16483 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16485         * doc/options.texi (EnabledBy): Document that the argument must be
16486         a Common option.
16487         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16488         Not enabled by -Wall.
16489         * optc-gen.awk: Give nicer error messages. Detect if the argument
16490         of EnabledBy is not a Common option.
16491         * common.opt (Wnull-dereference): Not enabled by -Wall.
16492         * opt-functions.awk (lang_enabled_by): Nicer error messages.
16494 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16496         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16497         model == 0x4f as Broadwell.
16499 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
16501         PR rtl-optimization/67028
16502         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
16503         Add test to see if a const_int fits in the new mode.
16505 2015-08-07  DJ Delorie  <dj@redhat.com>
16507         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16509 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
16511         PR rtl-optimization/67029
16512         * ira-color.c: Include "recog.h" before including "ira-int.h".
16513         * target-globals.c: Likewise.
16514         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16515         adds an alternative_mask argument and use it instead of
16516         preferred_alternatives.
16517         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16518         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16519         * sched-deps.c: Include "ira-int.h" after including "ira.h".
16520         (sched_analyze_insn): Update call to
16521         ira_implicitly_set_insn_hard_regs.
16522         * sel-sched.c: Include "ira-int.h" after including "ira.h".
16523         (implicit_clobber_conflict_p): Update call to
16524         ira_implicitly_set_insn_hard_regs.
16526 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16528         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16530 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16532         PR target/67002
16533         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16534         currently_expanding_to_rtl is set.
16536 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
16538         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16539         * configure: Regenerate.
16541 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16542             Jiong Wang  <jiong.wang@arm.com>
16544         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16545         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16546         (REG_CLASS_NAMES): Likewise.
16547         (REG_CLASS_CONTENTS): Likewise.
16548         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16549         (aarch64_register_move_cost): Likewise.
16550         (aarch64_load_symref_appropriately): Invoke the new added pattern if
16551         possible.
16552         * config/aarch64/constraints.md (Uc0): New constraint.
16554 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16556         * config/aarch64/constraints.md (Usf): Add the test of
16557         aarch64_is_noplt_call_p.
16559 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
16561         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16562         declaration.
16563         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16564         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16565         (call_symbol): Likewise.
16567 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16569         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16570         for vectorizing multiplication patterns.
16571         * tree-vectorizer.h: Adjust the number of patterns.
16573 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
16575         * config/i386/sse.md (*vec_concatv2df): Declare added
16576         alternatives as sselog type.
16578 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16580         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16581         all GPRs.
16583 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16585         * config/s390/s390.c (s390_expand_tbegin): Expand either
16586         tbegin_1_z13 or tbegin_1 depending on VX flag.
16587         * config/s390/s390.md ("tbegin_1_z13"): New expander.
16589 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16591         * config/s390/s390.opt: Clarify description for -mzvector
16592         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16593         -mzvector.
16595 2015-08-06  Richard Biener  <rguenther@suse.de>
16597         * gimple.h (gimple_call_set_fn): Access op member directly.
16598         (gimple_call_chain_ptr): Likewise.
16599         (gimple_call_set_chain): Likewise.
16600         (gimple_cond_lhs_ptr): Likewise.
16601         (gimple_cond_set_lhs): Likewise.
16602         (gimple_cond_rhs_ptr): Likewise.
16603         (gimple_cond_set_rhs): Likewise.
16604         (gimple_cond_true_label): Likewise.
16605         (gimple_cond_set_true_label): Likewise.
16606         (gimple_cond_set_false_label): Likewise.
16607         (gimple_cond_false_label): Likewise.
16608         (gimple_label_label): Likewise.
16609         (gimple_label_set_label): Likewise.
16610         (gimple_goto_set_dest): Likewise.
16611         (gimple_asm_input_op): Likewise.
16612         (gimple_asm_input_op_ptr): Likewise.
16613         (gimple_asm_set_input_op): Likewise.
16614         (gimple_asm_output_op): Likewise.
16615         (gimple_asm_output_op_ptr): Likewise.
16616         (gimple_asm_set_output_op): Likewise.
16617         (gimple_asm_clobber_op): Likewise.
16618         (gimple_asm_set_clobber_op): Likewise.
16619         (gimple_asm_label_op): Likewise.
16620         (gimple_asm_set_label_op): Likewise.
16621         (gimple_switch_index): Likewise.
16622         (gimple_switch_index_ptr): Likewise.
16623         (gimple_return_retval_ptr): Likewise.
16624         (gimple_return_retval): Likewise.
16625         (gimple_return_set_retval): Likewise.
16626         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
16627         (gimple_switch_label): Likewise.
16628         (gimple_switch_set_label): Likewise.
16630 2015-08-06  Richard Biener  <rguenther@suse.de>
16632         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16633         bool comparison canonicalization and restrict to integers.
16635 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
16637         * coretypes.h (enum symbol_visibility): Relocate here.
16638         * flag-types.h (enum symbol_visibility): Remove.
16639         * tree-core.h (enum symbol_visibility): Remove.
16641 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
16643         PR target/66870
16644         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16645         for no_split_stack function attribute along with
16646         flag_split_stack.
16647         (rs6000_expand_split_stack_prologue): Likewise.
16649 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16650             Jeff Law  <law@redhat.com>
16652         PR c/16351
16653         * doc/invoke.texi (Wnull-dereference): New.
16654         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16655         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16656         Warn for potential NULL dereferences.
16657         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16658         * ubsan.c (instrument_nonnull_arg): Call
16659         infer_nonnull_range_by_attribute.
16660         (instrument_nonnull_return): Likewise.
16661         * common.opt (Wnull-dereference); New.
16662         * gimple.c (infer_nonnull_range): Remove bool arguments.
16663         (infer_nonnull_range_by_dereference): New.
16664         (infer_nonnull_range_by_attribute): New.
16665         * gimple.h: Update declarations.
16667 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16669         * gensupport.c (sequence_num): Replace with...
16670         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16671         ...these new variables.
16672         (init_rtx_reader_args_cb): Update accordingly.
16673         (get_num_code_insns): Likewise.
16674         (read_md_rtx): Rework to use a while loop and get_c_test.
16675         Use the new counters.  Remove redundant DEFINE_SUBST case.
16676         * genoutput.c (gen_split): Delete.
16677         (main): Don't call it.
16679 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16681         * gensupport.h (get_c_test): Declare.
16682         * gensupport.c (get_c_test): New function.
16683         * genconditions.c (main): Use it.
16684         * genrecog.c (validate_pattern): Likewise.
16685         (match_pattern_1): Likewise.  Remove c_test argument.
16686         (match_pattern): Update accordingly and remove c_test argument.
16687         (main): Update accordingly.
16689 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16691         * gensupport.h (get_num_insn_codes): Declare.
16692         * gensupport.c (get_num_insn_codes): New function.
16693         * genattrtab.c (optimize_attrs): Rename max_insn_code to
16694         num_insn_codes.
16695         (main): Likewise.  Use get_num_insn_codes.
16696         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16698 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16700         PR middle-end/66311
16701         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16702         is zero- rather than sign-extended.
16704 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
16706         * target-insns.def (can_extend): Delete.
16708 2015-08-05  Richard Biener  <rguenther@suse.de>
16710         PR tree-optimization/67121
16711         * tree-if-conv.c (combine_blocks): Clear range-info produced
16712         by stmts no longer executed conditionally.
16714 2015-08-05  Nick Clifton  <nickc@redhat.com>
16716         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16717         to allow identical far pointers to remain.
16719 2015-08-05  Richard Biener  <rguenther@suse.de>
16721         PR middle-end/67120
16722         * match.pd: Compare address bases with == if they are decls
16723         or SSA names, not operand_equal_p.  Otherwise fail.
16725 2015-08-05  Richard Biener  <rguenther@suse.de>
16727         PR tree-optimization/67055
16728         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16729         NULL gimple_block.
16731         * g++.dg/torture/pr67055.C: New testcase.
16733 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16735         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16736         noavx512vl.
16737         (define_attr "enabled"): Handle avx521vl and noavx512vl.
16738         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16739         AVX-512 alternative out of SSE.
16740         (define_insn "*vec_concatv2df"): Ditto.
16742 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
16744         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16745         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16746         CODE_FOR_avx_ptestv4di.
16747         * config/i386/sse.md (define_mode_iterator V_AVX): New.
16748         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16749         (define_insn "avx_ptest256"): Merge this ...
16750         (define_insn "sse4_1_ptest"): And this ...
16751         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16753 2015-08-05  Richard Biener  <rguenther@suse.de>
16755         PR tree-optimization/67109
16756         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16757         against too big groups.  Print whether this is a load or store
16758         group.  Rename from ...
16759         (vect_analyze_group_access): ... this which is now a wrapper
16760         dissolving an invalid group.
16761         (vect_analyze_data_ref_accesses): Print whether this is a load
16762         or store group.
16764 2015-08-05  Richard Biener  <rguenther@suse.de>
16766         PR middle-end/67107
16767         * match.pd: Guard const_binop result checking against NULL_TREE
16768         result.
16770 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
16772         * cse.c (cse_insn): Restoring old behaviour for src_eqv
16773          when dest and value in the REG_EQUAL are same and dest
16774          is STRICT_LOW_PART.
16776 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
16778         * config/moxie/moxie.h (PRINT_OPERAND,
16779           PRINT_OPERAND_ADDRESS): Remove macros.
16780         * config/moxie/moxie-protos.h (moxie_print_operand,
16781           moxie_print_operand_address): Remove declaration.
16782         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16783           TARGET_PRINT_OPERAND_ADDRESS): Define.
16784           (moxie_print_operand, moxie_print_operand_address): Make static.
16786 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16788         PR target/66731
16789         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16790         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16792 2015-08-04  Richard Biener  <rguenther@suse.de>
16794         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16795         generated code.
16796         (dt_operand::gen_gimple_expr): Adjust.
16798 2015-08-04  Richard Biener  <rguenther@suse.de>
16800         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16801         bool compares on RHS.
16802         * match.pd: Add X ==/!= !X is false/true pattern.
16804 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
16806         * config/aarch64/aarch64.c: Change inner loop statement cost
16807         to be consistent with other targets.
16809 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
16811         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16812         targets.
16814 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
16816         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16817         (machine_function): Remove pseudos field.
16819 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16821         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16822         Exit early and use target_option_current_node if processing current
16823         pragma.
16825 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16827         * doc/extend.texi (AArch64 Function Attributes): New node.
16828         (AArch64 Pragmas): Likewise.
16830 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16832         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16833         Initialize simd builtins if TARGET_SIMD.
16834         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16835         Make sure that the builtins are initialized only once no matter how
16836         many times the function is called.
16837         (aarch64_init_builtins): Unconditionally initialize crc builtins.
16838         (aarch64_relayout_simd_param): New function.
16839         (aarch64_simd_expand_args): Use above during argument expansion.
16840         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16841         simd builtins if TARGET_SIMD.
16842         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16843         prototype.
16844         (aarch64_relayout_simd_types): Likewise.
16846 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16848         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16849         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16850         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16851         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16852         static keyword.
16853         (aarch64_reset_previous_fndecl): New function.
16854         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16855         the string.
16856         * config/aarch64/aarch64-c.c: New file.
16857         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16858         Push and pop options at beginning and end.  Remove ifdef
16859         __ARM_FEATURE_CRC32.
16860         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16861         Add pragma +nothing+simd and +nothing+crypto where appropriate.
16862         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16863         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16864         Define prototype.
16865         (aarch64_register_pragmas): Likewise.
16866         (aarch64_reset_previous_fndecl): Likewise.
16867         (aarch64_process_target_attr): Likewise.
16868         (aarch64_override_options_internal): Likewise.
16870 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16872         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16873         New function.
16874         (aarch64_can_inline_p): Likewise.
16875         (TARGET_CAN_INLINE_P): Define.
16877 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16879         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16880         Remove static.  Handle OPT_mgeneral_regs_only,
16881         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16882         OPT_momit_leaf_frame_pointer.
16883         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16884         (aarch64_attr_opt_type): New enum.
16885         (aarch64_attribute_info): New struct.
16886         (aarch64_handle_attr_arch): New function.
16887         (aarch64_handle_attr_cpu): Likewise.
16888         (aarch64_handle_attr_tune): Likewise.
16889         (aarch64_handle_attr_isa_flags): Likewise.
16890         (aarch64_attributes): New table.
16891         (aarch64_process_one_target_attr): New function.
16892         (num_occurences_in_str): Likewise.
16893         (aarch64_process_target_attr): Likewise.
16894         (aarch64_option_valid_attribute_p): Likewise.
16895         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16896         * config/aarch64/aarch64-protos.h: Include input.h
16897         (aarch64_handle_option): Declare prototype.
16899 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16901         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16902         * config/aarch64/aarch64.c: Include target-globals.h
16903         (aarch64_previous_fndecl): New variable.
16904         (aarch64_set_current_function): New function.
16905         (TARGET_SET_CURRENT_FUNCTION): Define.
16907 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16909         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16910         (explicit_arch): Likewise.
16911         (x_aarch64_isa_flags): Likewise.
16912         (mgeneral-regs-only): Mark as Save.
16913         (mfix-cortex-a53-835769): Likewise.
16914         (mcmodel=): Likewise.
16915         (mstrict-align): Likewise.
16916         (momit-leaf-frame-pointer): Likewise.
16917         (mtls-dialect): Likewise.
16918         (master=): Likewise.
16919         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16920         (aarch64_isa_flags): Remove extern declaration.
16921         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16922         to indicate success or failure.
16923         (aarch64_validate_march): Likewise.
16924         (aarch64_validate_mtune): Likewise.
16925         (aarch64_isa_flags): Delete.
16926         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16927         instead of aarch64_isa_flags.
16928         (aarch64_get_tune_cpu): New function.
16929         (aarch64_get_arch): Likewise.
16930         (aarch64_override_options): Use above and set up explicit_tune_core
16931         and explicit_arch.
16932         (aarch64_print_extension): Move earlier in file.  Add isa_flags
16933         argument and use that instead of the global aarch64_isa_flags.
16934         (aarch64_option_save): New function.
16935         (aarch64_option_restore): Likewise.
16936         (aarch64_option_print): Likewise.
16937         (aarch64_declare_function_name): Likewise.
16938         (aarch64_start_file): Delete.
16939         (TARGET_ASM_FILE_START): Do not define.
16940         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16941         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16942         Declare prototype.
16944 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16946         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16947         flag_omit_leaf_frame_pointer to 2.
16949 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16951         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16952         define to 0 or 1.
16953         (TARGET_FIX_ERR_A53_835769): New macro.
16954         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16955         handling of opts->x_aarch64_fix_a53_err835769.
16956         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16957         than aarch64_fix_a53_err835769.
16958         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16959         * config/aarch64/aarch64-linux.h: Likewise.
16961 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
16963         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16964         ix86_expand_int_movcc as boolean.
16966 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16968         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16969         (aarch64_cpu_string): Likewise.
16970         (aarch64_tune_string): Likewise.
16971         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16972         (aarch64_parse_extension): Return aarch64_parse_opt_result.
16973         Add extra argument to put result into.
16974         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
16975         (aarch64_parse_cpu): Add arguments to put results into. Return
16976         aarch64_parse_opt_result.
16977         (aarch64_parse_tune): Likewise.
16978         (aarch64_override_options_after_change_1): New function.
16979         (aarch64_override_options_internal): New function.
16980         (aarch64_validate_mcpu): Likewise.
16981         (aarch64_validate_march): Likewise.
16982         (aarch64_validate_mtune): Likewise.
16983         (aarch64_override_options): Update to reflect above changes.
16984         Move some logic into aarch64_override_options_internal.
16985         Initialize target_option_default_node and target_option_current_node.
16986         (aarch64_override_options_after_change): Move logic into
16987         aarch64_override_options_after_change_1 and call it with global_options.
16988         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16989         flag values from that.
16991 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16993         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16994         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16995         * config/aarch64/aarch64.c (struct processor): Add arch field.
16996         (all_architectures): Handle above, move above all_cores.
16997         (all_cores): Handle above.
16998         (aarch64_parse_arch): Handle above changes.
16999         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17000         above.  Update comments.
17001         (armv8.1-a): Likewise.
17002         * config/aarch64/aarch64-cores.def: Update according to above.
17003         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17004         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17005         aarch64_arch_driver_info.
17007 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17009         * config/aarch64/aarch64.c (struct processor): Add ident field.
17010         Rename core sched_core.
17011         (all_cores): Handle above changes.
17012         (all_architectures): Likewise.
17013         (aarch64_parse_arch): Likewise.
17014         (aarch64_override_options): Likewise.
17016 2015-08-04  Richard Biener  <rguenther@suse.de>
17018         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17019         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17020         comparisons embedded in [VEC_]COND_EXPRs.
17022 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
17024         * tree-if-conv.c: Fix various typos in comments.
17025         * tree-vect-stmts.c: Likewise.
17027 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17029         PR tree-optimization/67043
17030         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17031         preheader after hoisting invariant in it.
17032         (find_defs): Force recomputation of all luids.
17034 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
17036         * config/rs6000/htm.md (tabort.): Restrict the source operand to
17037         using a base register.
17039 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
17041         * main.c (main): Pass in NULL for toplev's external_timer.
17042         * timevar.c: Include coretypes.h.
17043         (class timer::named_items): New.
17044         (timer::named_items::named_items): New.
17045         (timer::named_items::~named_items): New.
17046         (timer::named_items::push): New.
17047         (timer::named_items::pop): New.
17048         (timer::named_items::print): New.
17049         (timer::timer): Initialize field "m_jit_client_items".
17050         (timer::~timer): New.
17051         (timer::push): Move bulk of implementation to...
17052         (timer::push_internal): ...here.  New function.
17053         (timer::pop): Move bulk of implementation to...
17054         (timer::pop_internal): ...here.  New function.
17055         (timer::push_client_item): New.
17056         (timer::pop_client_item): New.
17057         (timer::print_row): New function, taken from timer::print.
17058         (timer::print): Print "GCC items" header if we also have client
17059         items.  Move row-printing to timer::print_row.  Print any client
17060         items.
17061         (timer::get_topmost_item_name): New method.
17062         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17063         (TV_JIT_CLIENT_CODE): New.
17064         * timevar.h (timer::push_client_item): New declaration.
17065         (timer::pop_client_item): New declaration.
17066         (timer::get_topmost_item_name): New method.
17067         (timer::push_internal): New declaration.
17068         (timer::pop_internal): New declaration.
17069         (timer::print_row): New declaration.
17070         (timer::named_items): New declaration.
17071         (timer::m_jit_client_items): New field.
17072         (timer): Add friend class named_items.
17073         (auto_timevar::auto_timevar): Add timer param.
17074         (auto_timevar::~auto_timevar): Use field "m_timer".
17075         (auto_timevar::m_timer): New field.
17076         * toplev.c (initialize_rtl): Add g_timer as param when
17077         constructing auto_timevar instance.
17078         (toplev::toplev): Add "external_timer" param, and use it to
17079         initialize the "g_timer" global if non-NULL.
17080         (toplev::~toplev): If this created "g_timer", delete it.
17081         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17082         with "external_timer" timer *.
17084 2015-08-03  Alexander Basov <coohpt@gmail.com>
17086         PR middle-end/64744
17087         PR middle-end/48470
17088         PR middle-end/43404
17089         * cfgexpand.c (expand_one_var): Add check if stack is going to
17090         be used in naked function.
17091         * expr.c (expand_expr_addr_expr_1): Remove excess checking
17092         whether expression should not reside in MEM.
17093         * function.c (use_register_for_decl): Do not use registers for
17094         non-register things (volatile, float, BLKMode) in naked functions.
17096 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
17098         PR target/67060
17099         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17100         Adjust splits to match new pattern.
17102 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17104         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17105         (VEC_M): Likewise.
17106         (VEC_N): Likewise.
17107         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17108         point in VSX registers.
17110         * config/rs6000/constraints.md (wb constraint): Document unused
17111         w<x> constraint.
17112         (we constraint): Likewise.
17113         (wo constraint): Likewise.
17114         (wp constraint): New constraint for IEEE 128-bit floating point in
17115         VSX registers.
17116         (wq constraint): Likewise.
17118         * config/rs6000/predicates.md (easy_fp_constant): Add support for
17119         IEEE 128-bit floating point in VSX registers.
17120         (easy_scalar_constant): Likewise.
17122         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17123         constraints (wp, wq) for IEEE 128-bit floating point in VSX
17124         registers.
17125         (rs6000_init_hard_regno_mode_ok): Likewise.
17127         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17128         floating point in VSX registers.
17129         (VSX_L): Likewise.
17130         (VSX_M): Likewise.
17131         (VSX_M2): Likewise.
17132         (VSm): Likewise.
17133         (VSs): Likewise.
17134         (VSr): Likewise.
17135         (VSa): Likewise.
17136         (VSv): Likewise.
17137         (vsx_le_permute_<mode>): Add support to properly swap bytes for
17138         IEEE 128-bit floating point in VSX registers on little endian.
17139         (vsx_le_undo_permute_<mode>): Likewise.
17140         (vsx_le_perm_load_<mode>): Likewise.
17141         (vsx_le_perm_store_<mode>): Likewise.
17142         (splitters for IEEE 128-bit fp moves): Likewise.
17144         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17145         wq constraints.
17147         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17148         floating point in VSX registers.
17149         (VM2): Likewise.
17151         * doc/md.text (Machine Constraints): Document wp and wq
17152         constraints on PowerPC.
17154 2015-08-03  Jeff Law  <law@redhat.com>
17156         PR middle-end/66314
17157         PR gcov-profile/66899
17158         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17159         iterate over the jump threading paths when an element in the
17160         jump threading paths array is eliminated.
17162 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
17164         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17166 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
17168         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17169         is_use_properly_guarded the variable def_preds.  Free its
17170         contents before returning.
17171         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17172         (is_use_properly_guarded): Replace local variable def_preds with
17173         a parameter.  Adjust accordingly.  Only update *def_preds if it's
17174         the empty vector.
17176 2015-08-03  Richard Biener  <rguenther@suse.de>
17178         * genmatch.c (simplify::for_subst_vec): New member.
17179         (binary_ok): New helper for for lowering.
17180         (lower_for): Delay substituting operators into result expressions
17181         if we can merge the results eventually again.
17182         (capture_info::walk_result): Adjust for user_id appearing as
17183         result expression operator.
17184         (expr::gen_transform): Likewise.
17185         (dt_simplify::gen_1): Likewise.
17186         (dt_simplify::gen): Pass not substituted operators to tail
17187         functions or initialize local variable with it.
17188         (decision_tree::gen): Adjust function signature.
17189         * match.pd: Fix tests against global code and add default
17190         cases to switch stmts.
17192 2015-08-03  Richard Biener  <rguenther@suse.de>
17194         * genmatch.c (dt_simplify::gen): Create captures array
17195         with an initializer.
17197 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17199         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17200         the host compiler is affected by placement new aliasing bug.
17201         * configure: Regenerate.
17202         * Makefile.in (ALIASING_FLAGS): New variable.
17203         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17205 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17207         PR target/66731
17208         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17209         (negmulsf3_vfp): Likewise.
17210         (muldf3negdf_vfp): Disable for -frounding-math.
17211         (mulsf3negsf_vfp): Likewise.
17212         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17213         fix MULT cost with -frounding-math.
17215 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17217         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17218         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17219         explicit.  Prefer to add the flag whenever possible.
17220         (noce_process_if_block): Try noce_try_store_flag_constants before
17221         noce_try_cmove.
17223 2015-08-03  Richard Biener  <rguenther@suse.de>
17225         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17226         New hash-map to record equivalent transforms.
17227         (dt_node::analyze): Populate the equivalent transforms hash-map.
17228         (dt_simplify::info): Add reference to hash-map entry.
17229         (dt_simplify::gen): If we have split out a function for the
17230         transform, generate a call to it.
17231         (sinfo_hashmap_traits::hash): New function.
17232         (compare_op): New helper function for ...
17233         (sinfo_hashmap_traits::equal_keys): ... this new function.
17234         (decision_tree::gen): Split out common equivalent transforms
17235         into functions.
17237 2015-08-03  Richard Biener  <rguenther@suse.de>
17239         * gimple-fold.c (fold_gimple_assign): Remove folding of
17240         the comparison in COND_EXPRs.
17242 2015-08-03  Richard Biener  <rguenther@suse.de>
17244         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17245         on the rhs of assignments first simplify the embedded
17246         GENERIC condition.
17248 2015-08-03  Richard Biener  <rguenther@suse.de>
17250         PR tree-optimization/66917
17251         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17252         field.
17253         (DR_VECT_AUX): New macro.
17254         (set_dr_misalignment): Adjust.
17255         (dr_misalignment): Likewise.
17256         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17257         Compute whether the base is at least element aligned.
17258         * tree-vect-stmts.c (ensure_base_align): Adjust.
17259         (vectorizable_store): If the base is not element aligned
17260         preserve alignment of the original access if misalignment is unknown.
17261         (vectorizable_load): Likewise.
17263 2015-08-02  Martin Sebor  <msebor@redhat.com>
17265         * c-family/c.opt (-Wframe-address): New warning option.
17266         * doc/invoke.texi (Wframe-address): Document it.
17267         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17268         Clarify possible effects of calling the functions with non-zero
17269         arguments and mention -Wframe-address.
17270         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17272 2015-08-01  Michael Collison  <michael.collison@linaro.org
17273             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17275         * config/arm/arm.md (*arm_smin_cmp): New pattern.
17276         (*arm_umin_cmp): Likewise.
17278 2015-08-01  Caroline Tice  <cmtice@google.com>
17280         PR 66521
17281         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17282         global variables.
17283         (vtbl_find_mangled_name):  New function.
17284         (vtbl_register_mangled_name):  New function.
17285         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
17286         mangled name in mangled name vectors.
17287         (find_or_create_vtbl_map_node):  Ditto.
17288         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
17289         update recursion_depth on function entry; pass it to every recursive
17290         call; automatically exit if depth > 25 (give up looking at that point).
17291         (verify_bb_vtables):  Initialize recursion_depth and pass it to
17292         var_is_used_for_virtual_call_p.
17293         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17294         global variable decls.
17295         (vtbl_register_mangled_name): New extern function decl.
17297 2015-08-01  Tom de Vries  <tom@codesourcery.com>
17299         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17300         function.
17301         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17302         Declare.
17303         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17304         operation_no_trapping_overflow.  Allow non-overflow operations.
17305         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17306         operations.
17308 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17310         PR target/67049
17311         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17313 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17315         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17316         Enable for TARGET_32BIT.
17317         (*if_move_neg): Likewise.
17319 2015-07-31  Nick Clifton  <nickc@redhat.com>
17321         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17322         Returns true for __model__.
17323         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17325 2015-07-31  Alan Modra  <amodra@gmail.com>
17327         PR target/66870
17328         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17329         (rs6000_emit_prologue): Set it.
17330         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17332 2015-07-31  Richard Biener  <rguenther@suse.de>
17334         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17335         -> X == (C1 ^ C2) which is already implemented in match.pd.
17336         Remove redundant dispatching to fold_relational_const.
17337         Move unordered self and NaN compares ...
17338         * match.pd: ... as patterns here.  Remove some stray captures
17339         and add a comment.
17341 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
17343         * config/i386/i386.c
17344         (bdesc_special_args): Convert mask type from signed to unsigned for
17345         masked builtins.
17346         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17347         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17348         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17349         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17350         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17351         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17352         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17353         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17354         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17355         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17356         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17357         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17358         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17359         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17360         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17361         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17362         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17363         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17364         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17365         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17366         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17367         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17368         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17369         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17370         * config/i386/i386-builtin-types.def
17371         (V16QI_FTYPE_V16SI): Remove.
17372         (V8DF_FTYPE_V8SI): Ditto.
17373         (V8HI_FTYPE_V8DI): Ditto.
17374         (V8SI_FTYPE_V8DI): Ditto.
17375         (V8SF_FTYPE_V8DF): Ditto.
17376         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17377         (V16HI_FTYPE_V16SI): Ditto.
17378         (V16SF_FTYPE_V16HI): Ditto.
17379         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17380         (V16SF_FTYPE_V16SI): Ditto.
17381         (V4DI_FTYPE_V4DI): Ditto.
17382         (V16SI_FTYPE_V16SF): Ditto.
17383         (V16SF_FTYPE_FLOAT): Ditto.
17384         (V8DF_FTYPE_DOUBLE): Ditto.
17385         (V8DI_FTYPE_INT64): Ditto.
17386         (V8DI_FTYPE_V4DI): Ditto.
17387         (V16QI_FTYPE_V8DI): Ditto.
17388         (UINT_FTYPE_V4SF): Ditto.
17389         (UINT64_FTYPE_V4SF): Ditto.
17390         (UINT_FTYPE_V2DF): Ditto.
17391         (UINT64_FTYPE_V2DF): Ditto.
17392         (V16SI_FTYPE_V16SI): Ditto.
17393         (V8DI_FTYPE_V8DI): Ditto.
17394         (V16SI_FTYPE_PV4SI): Ditto.
17395         (V16SF_FTYPE_PV4SF): Ditto.
17396         (V8DI_FTYPE_PV2DI): Ditto.
17397         (V8DF_FTYPE_PV2DF): Ditto.
17398         (V4DI_FTYPE_PV2DI): Ditto.
17399         (V4DF_FTYPE_PV2DF): Ditto.
17400         (V16SI_FTYPE_PV2SI): Ditto.
17401         (V16SF_FTYPE_PV2SF): Ditto.
17402         (V8DI_FTYPE_PV4DI): Ditto.
17403         (V8DF_FTYPE_PV4DF): Ditto.
17404         (V8SF_FTYPE_FLOAT): Ditto.
17405         (V4SF_FTYPE_FLOAT): Ditto.
17406         (V4DF_FTYPE_DOUBLE): Ditto.
17407         (V8SF_FTYPE_PV4SF): Ditto.
17408         (V8SI_FTYPE_PV4SI): Ditto.
17409         (V4SI_FTYPE_PV2SI): Ditto.
17410         (V8SF_FTYPE_PV2SF): Ditto.
17411         (V8SI_FTYPE_PV2SI): Ditto.
17412         (V16SF_FTYPE_PV8SF): Ditto.
17413         (V16SI_FTYPE_PV8SI): Ditto.
17414         (V8DI_FTYPE_V8SF): Ditto.
17415         (V4DI_FTYPE_V4SF): Ditto.
17416         (V2DI_FTYPE_V4SF): Ditto.
17417         (V64QI_FTYPE_QI): Ditto.
17418         (V32HI_FTYPE_HI): Ditto.
17419         (V8UHI_FTYPE_V8UHI): Ditto.
17420         (V16UHI_FTYPE_V16UHI): Ditto.
17421         (V32UHI_FTYPE_V32UHI): Ditto.
17422         (V2UDI_FTYPE_V2UDI): Ditto.
17423         (V4UDI_FTYPE_V4UDI): Ditto.
17424         (V8UDI_FTYPE_V8UDI): Ditto.
17425         (V4USI_FTYPE_V4USI): Ditto.
17426         (V8USI_FTYPE_V8USI): Ditto.
17427         (V16USI_FTYPE_V16USI): Ditto.
17428         (V2DF_FTYPE_V2DF_UINT64): Ditto.
17429         (V2DI_FTYPE_V2DF_V2DF): Ditto.
17430         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17431         (V8DF_FTYPE_V8DF_V8DI): Ditto.
17432         (V4SF_FTYPE_V4SF_UINT64): Ditto.
17433         (V4SI_FTYPE_V4SF_V4SF): Ditto.
17434         (V16SF_FTYPE_V16SF_V16SI): Ditto.
17435         (V64QI_FTYPE_V32HI_V32HI): Ditto.
17436         (V32HI_FTYPE_V16SI_V16SI): Ditto.
17437         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17438         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17439         (V32HI_FTYPE_V64QI_V64QI): Ditto.
17440         (V32HI_FTYPE_V32HI_V32HI): Ditto.
17441         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17442         (V16SI_FTYPE_V16SI_V4SI): Ditto.
17443         (V16SI_FTYPE_V16SI_V16SI): Ditto.
17444         (V16SI_FTYPE_V32HI_V32HI): Ditto.
17445         (V16SI_FTYPE_V16SI_SI): Ditto.
17446         (V8DI_FTYPE_V8DI_V8DI): Ditto.
17447         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17448         (V8DI_FTYPE_V16SI_V16SI): Ditto.
17449         (V8DI_FTYPE_V8DI_V2DI): Ditto.
17450         (QI_FTYPE_QI): Ditto.
17451         (SI_FTYPE_SI): Ditto.
17452         (DI_FTYPE_DI): Ditto.
17453         (QI_FTYPE_QI_QI): Ditto.
17454         (QI_FTYPE_QI_INT): Ditto.
17455         (HI_FTYPE_HI_INT): Ditto.
17456         (SI_FTYPE_SI_INT): Ditto.
17457         (DI_FTYPE_DI_INT): Ditto.
17458         (HI_FTYPE_V16QI_V16QI): Ditto.
17459         (SI_FTYPE_V32QI_V32QI): Ditto.
17460         (DI_FTYPE_V64QI_V64QI): Ditto.
17461         (QI_FTYPE_V8HI_V8HI): Ditto.
17462         (HI_FTYPE_V16HI_V16HI): Ditto.
17463         (SI_FTYPE_V32HI_V32HI): Ditto.
17464         (QI_FTYPE_V4SI_V4SI): Ditto.
17465         (QI_FTYPE_V8SI_V8SI): Ditto.
17466         (QI_FTYPE_V2DI_V2DI): Ditto.
17467         (QI_FTYPE_V4DI_V4DI): Ditto.
17468         (QI_FTYPE_V8DI_V8DI): Ditto.
17469         (HI_FTYPE_V16SI_V16SI): Ditto.
17470         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17471         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17472         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17473         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17474         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17475         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17476         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17477         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17478         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17479         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17480         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17481         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17482         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17483         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17484         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17485         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17486         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17487         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17488         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17489         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17490         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17491         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17492         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17493         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17494         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17495         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17496         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17497         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17498         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17499         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17500         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17501         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17502         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17503         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17504         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17505         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17506         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17507         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17508         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17509         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17510         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17511         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17512         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17513         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17514         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17515         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17516         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17517         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17518         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17519         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17520         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17521         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17522         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17523         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17524         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17525         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17526         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17527         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17528         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17529         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17530         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17531         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17532         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17533         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17534         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17535         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17536         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17537         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17538         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17539         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17540         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17541         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17542         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17543         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17544         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17545         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17546         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17547         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17548         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17549         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17550         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17551         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17552         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17553         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17554         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17555         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17556         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17557         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17558         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17559         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17560         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17561         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17562         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17563         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17564         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17565         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17566         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17567         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17568         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17569         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17570         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17571         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17572         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17573         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17574         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17575         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17576         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17577         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17578         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17579         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17580         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17581         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17582         (HI_FTYPE_HI): Ditto.
17583         (HI_FTYPE_V16QI): Ditto.
17584         (SI_FTYPE_V32QI): Ditto.
17585         (DI_FTYPE_V64QI): Ditto.
17586         (QI_FTYPE_V8HI): Ditto.
17587         (HI_FTYPE_V16HI): Ditto.
17588         (SI_FTYPE_V32HI): Ditto.
17589         (QI_FTYPE_V4SI): Ditto.
17590         (QI_FTYPE_V8SI): Ditto.
17591         (HI_FTYPE_V16SI): Ditto.
17592         (QI_FTYPE_V2DI): Ditto.
17593         (QI_FTYPE_V4DI): Ditto.
17594         (QI_FTYPE_V8DI): Ditto.
17595         (V16QI_FTYPE_HI): Ditto.
17596         (V32QI_FTYPE_SI): Ditto.
17597         (V64QI_FTYPE_DI): Ditto.
17598         (V8HI_FTYPE_QI): Ditto.
17599         (V16HI_FTYPE_HI): Ditto.
17600         (V32HI_FTYPE_SI): Ditto.
17601         (V4SI_FTYPE_QI): Ditto.
17602         (V4SI_FTYPE_HI): Ditto.
17603         (V8SI_FTYPE_QI): Ditto.
17604         (V8SI_FTYPE_HI): Ditto.
17605         (V2DI_FTYPE_QI): Ditto.
17606         (V4DI_FTYPE_QI): Ditto.
17607         (HI_FTYPE_HI_HI): Ditto.
17608         (SI_FTYPE_SI_SI): Ditto.
17609         (DI_FTYPE_DI_DI): Ditto.
17610         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17611         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17612         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17613         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17614         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17615         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17616         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17617         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17618         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17619         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17620         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17621         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17622         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17623         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17624         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17625         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17626         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17627         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17628         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17629         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17630         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17631         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17632         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17633         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17634         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17635         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17636         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17637         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17638         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17639         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17640         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17641         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17642         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17643         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17644         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17645         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17646         (V16SI_FTYPE_HI): Ditto.
17647         (V8DI_FTYPE_QI): Ditto.
17648         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17649         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17650         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17651         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17652         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17653         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17654         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17655         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17656         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17657         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17658         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17659         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17660         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17661         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17662         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17663         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17664         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17665         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17666         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17667         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17668         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17669         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17670         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17671         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17672         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17673         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17674         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17675         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17676         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17677         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17678         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17679         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17680         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17681         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17682         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17683         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17684         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17685         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17686         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17687         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17688         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17689         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17690         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17691         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17692         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17693         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17694         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17695         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17696         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17697         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17698         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17699         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17700         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17701         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17702         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17703         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17704         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17705         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17706         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17707         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17708         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17709         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17710         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17711         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17712         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17713         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17714         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17715         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17716         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17717         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17718         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17719         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17720         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17721         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17722         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17723         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17724         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17725         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17726         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17727         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17728         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17729         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17730         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17731         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17732         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17733         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17734         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17735         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17736         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17737         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17738         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17739         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17740         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17741         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17742         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17743         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17744         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17745         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17746         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17747         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17748         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17749         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17750         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17751         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17752         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17753         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17754         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17755         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17756         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17757         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17758         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17759         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17760         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17761         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17762         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17763         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17764         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17765         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17766         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17767         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17768         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17769         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17770         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17771         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17772         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17773         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17774         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17775         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17776         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17777         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17778         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17779         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17780         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17781         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17782         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17783         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17784         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17785         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17786         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17787         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17788         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17789         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17790         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17791         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17792         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17793         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17794         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17795         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17796         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17797         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17798         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17799         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17800         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17801         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17802         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17803         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17804         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17805         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17806         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17807         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17808         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17809         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17810         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17811         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17812         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17813         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17814         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17815         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17816         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17817         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17818         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17819         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17820         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17821         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17822         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17823         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17824         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17825         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17826         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17827         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17828         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17829         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17830         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17831         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17832         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17833         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17834         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17835         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17836         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17837         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17838         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17839         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17840         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17841         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17842         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17843         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17844         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17845         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17846         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17847         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17848         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17849         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17850         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17851         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17852         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17853         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17854         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17855         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17856         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17857         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17858         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17859         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17860         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17861         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17862         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17863         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17864         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17865         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17866         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17867         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17868         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17869         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17870         (QI_FTYPE_V8DF_INT_QI): Ditto.
17871         (QI_FTYPE_V4DF_INT_QI): Ditto.
17872         (QI_FTYPE_V2DF_INT_QI): Ditto.
17873         (HI_FTYPE_V16SF_INT_HI): Ditto.
17874         (QI_FTYPE_V8SF_INT_QI): Ditto.
17875         (QI_FTYPE_V4SF_INT_QI): Ditto.
17876         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17878 2015-07-31  Richard Biener  <rguenther@suse.de>
17880         * gimple-fold.c (fold_gimple_assign): Remove folding of
17881         GIMPLE_BINARY_RHS.
17883 2015-07-31  Tom de Vries  <tom@codesourcery.com>
17885         PR tree-optimization/66846
17886         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17887         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17888         (expand_omp_target) [ENABLE_CHECKING]: Same.
17889         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17890         cfun if !LOOPS_NEED_FIXUP.
17891         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
17892         that omp_for already has its own loop struct.
17893         * tree-parloops.c (create_phi_for_local_result)
17894         (create_call_for_reduction): Handle simple latch bb.
17895         (create_parallel_loop): Add simple latch bb to preserve
17896         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
17897         (gen_parallel_loop): Remove call to cancel_loop_tree.
17898         (parallelize_loops): Skip loops that are inner loops of parallelized
17899         loops.
17900         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17901         verify_loop_structure.
17903 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17905         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17906         * config/v850/v850.md (RV_REGNUM): New constants.
17907         * config/v850/v850.c (v850_libcall_value): New functions.
17908         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17909         (TARGET_LIBCALL_VALUE): Define.
17911 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17913         * rtl.h (lowpart_subreg): Move in file.
17914         * loop-iv.c (lowpart_subreg): Move to...
17915         * simplify-rtx.c (lowpart_subreg): ...here.
17916           (simplify_binary_operation_1): Use lowpart_subreg instead of
17917           simplify_gen_subreg.
17918         * expr.c (expand_expr_real_2): Ditto.
17919         * emit-rtl.c (gen_lowpart_common): Ditto.
17920         * combine.c (gen_lowpart_for_combine): Ditto.
17921         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17922           expand_debug_source_expr): Ditto.
17924 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
17926         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17927         (expand_builtin_atomic_clear): Remove support for atomic_clear
17928         pattern.
17930 2015-07-30  Richard Biener  <rguenther@suse.de>
17932         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17933         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17934         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
17935         redundant operand canonicalization.
17937 2015-07-30  David Sherwood  <david.sherwood@arm.com>
17939         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17940         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17941         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17942         * config/arm/arm.c (neon_valid_immediate): Likewise.
17943         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17944         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17945         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17946         (expand_vec_perm_vpshufb2_vpermq): Likewise.
17947         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17948         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17949         * config/i386/sse.md
17950         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17951         (*ssse3_palignr<mode>_perm): Likewise.
17952         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17953         * config/spu/spu.c (arith_immediate_p): Likewise.
17954         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17955         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17957 2015-07-30  Richard Biener  <rguenther@suse.de>
17959         * genmatch.c (decision_tree::gen_gimple): Merge with ...
17960         (decision_tree::gen_generic): ... this into ...
17961         (decision_tree::gen): ... this.
17962         (main): Adjust callers.
17964 2015-07-30  Richard Biener  <rguenther@suse.de>
17966         * genmatch.c (verbose): New global.
17967         (warning_at): Add overload with source_location.
17968         (capture_info::capture_info): Add bool whether generating gimple
17969         or generic.  Add gimple member.
17970         (capture_info::cinfo): Add capture member.
17971         (capture_info::walk_match): Record capture.  Warn on
17972         non-captured leafs.
17973         (capture_info::walk_c_expr): Add more fragments captures cannot
17974         escape through.  Warn on escaped captures.
17975         (dt_simplify::gen_1): Warn on operands we force to have no
17976         side-effects.
17977         (main): Initialize verbose.
17978         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17980 2015-07-30  Richard Biener  <rguenther@suse.de>
17982         PR middle-end/67053
17983         * match.pd: Allow both operands to independently have conversion
17984         when simplifying compares of addresses.
17986 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
17988         PR target/66217
17989         PR target/67045
17990         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17991         around those cases that need one.
17993 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
17995         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17997 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17999         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18000         New.  Copied from config/i386/gnu-user.h.
18001         (ASM_COMMENT_START): Likewise.
18002         (DBX_REGISTER_NUMBER): Likewise.
18004 2015-07-29  Richard Biener  <rguenther@suse.de>
18006         * gimple-fold.c (fold_gimple_cond): Remove.
18007         (fold_stmt_1): Do not call it.
18009 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
18011         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18012         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18014         * config/aarch64/aarch64-modes.def: Add HFmode.
18016         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18017         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18019         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18020         aarch64_promoted_type): New.
18022         (aarch64_float_const_representable_p): Disable HFmode.
18023         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18024         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18025         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18027         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18028         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18030         * config/aarch64/iterators.md (GPF_F16): New.
18032 2015-07-29  Richard Biener  <rguenther@suse.de>
18034         * match.pd: Merge address comparison patterns and make them
18035         handle some more cases.
18037 2015-07-29  Richard Biener  <rguenther@suse.de>
18039         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18040         (parser::parse_capture): Add bool argument on whether to reject
18041         unknown captures.
18042         (parser::parse_expr): Adjust.
18043         (parser::parse_op): Likewise.
18044         (parser::parse_pattern): Likewise.
18046 2015-07-29  Richard Biener  <rguenther@suse.de>
18048         * gimple-fold.c (has_use_on_stmt): New function.
18049         (replace_stmt_with_simplification): Use it to allow
18050         abnormals originally referenced in the stmt.
18051         (fold_stmt_1): Canonicalize operand order.
18053 2015-07-28  David Sherwood  <david.sherwood@arm.com>
18055         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18056         GET_MODE_INNER unconditionally.
18057         * config/spu/spu.c (arith_immediate_p): Likewise.
18058         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18059         * expmed.c (synth_mult): Remove check for VOIDmode result from
18060         GET_MODE_INNER.
18061         (expand_mult_const): Likewise.
18062         * fold-const.c (fold_binary_loc): Replace call to element_precision
18063         with call to GET_MODE_PRECISION.
18064         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18065         m->name.
18066         (emit_mode_inner): Likewise.
18067         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18068         result check.
18069         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18070         (GET_MODE_UNIT_PRECISION): Likewise.
18071         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18072         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18073         * stor-layout.c (bitwise_type_for_mode): Update assert.
18074         (element_precision): Remove.
18076 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18078         * target-insns.def (reload_load_address): New targetm instruction
18079         pattern.
18080         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18082 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18084         * target-insns.def (atomic_test_and_set): New targetm instruction
18085         pattern.
18086         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18087         HAVE_*/gen_* interface.
18089 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18091         * target-insns.def (can_extend, ptr_extend): New targetm instruction
18092         patterns.
18093         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18094         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18095         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18096         * rtlanal.c (nonzero_bits1): Likewise.
18097         (num_sign_bit_copies1): Likewise.
18099 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18101         * target-insns.def (eh_return): New targetm instruction pattern.
18102         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18103         interface.
18104         * function.c (thread_prologue_and_epilogue_insns): Remove
18105         preprocessor condition.
18107 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18109         * target-insns.def (indirect_jump): New targetm instruction pattern.
18110         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18111         interface.
18113 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18115         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18116         instead of nonimmediate_operand.  Remove C condiition.
18118 2015-07-28  Richard Biener  <rguenther@suse.de>
18120         * match.pd: Add more simplification of address comparisons.
18122 2015-07-28  Richard Biener  <rguenther@suse.de>
18124         * match.pd: Re-order two cases in comparison with max/min
18125         value simplification to make it apply for bools.
18127 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18129         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18130         Handle simple SIGN_EXTEND or ZERO_EXTEND.
18131         (aarch64_rtx_costs): Properly strip extend or extract before
18132         passing down to rtx costs again.
18134 2015-07-28  Nick Clifton  <nickc@redhat.com>
18136         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18137         Optimizes the case where -mes0 is active and a constant symbolic
18138         address is used.
18139         * config/rl78/rl78-protos.h: Prototype the new function.
18140         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18142 2015-07-28  Tom de Vries  <tom@codesourcery.com>
18144         * tree-parloops.c (reduc_stmt_res): New function.
18145         (initialize_reductions, add_field_for_reduction)
18146         (create_phi_for_local_result, create_loads_for_reductions)
18147         (create_stores_for_reduction, build_new_reduction): Handle case that
18148         reduc_stmt is a phi.
18149         (gather_scalar_reductions): Allow double_reduc reductions.
18151 2015-07-28  Richard Biener  <rguenther@suse.de>
18153         * fold-const.c (fold_comparison): Remove equality folding
18154         of decl addresses ...
18155         * match.pd: ... here and merge with existing pattern.
18157 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18159         PR tree-optimization/66828
18160         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18161         from int64_t to uint64_t.
18163 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18165         * opts-common.c (read_cmdline_option): List DriverOnly enum values
18166         as valid only in the error message of the driver, not in the
18167         messages of the language compilers.
18169 2015-07-27  Tom de Vries  <tom@codesourcery.com>
18171         * tree-parloops.c (gather_scalar_reductions): Simplify function
18172         structure.
18174 2015-07-27  Marek Polacek  <polacek@redhat.com>
18176         * ipa-devirt.c (types_same_for_odr): Fix typo.
18178 2015-07-27  Jason Merrill  <jason@redhat.com>
18180         PR debug/66468
18181         * dwarf2out.c (gen_inlined_subroutine_die): Check
18182         cgraph_function_possibly_inlined_p.
18184 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18186         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18187         Place integer variant first.
18188         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18190 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18192         PR/63870
18193         * config/arm/arm-builtins.c (enum arm_builtins):
18194         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18195         (ARM_BUILTIN_NEON_BASE): Rename macro to....
18196         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18197         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18198         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18200 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18202         PR/63870
18203         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18204         Add qualifier_lane_index.
18205         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18206         (arm_getlane_qualifiers): Use qualifier_lane_index.
18207         (arm_lanemac_qualifiers): Rename to...
18208         (arm_mac_n_qualifiers): ...this.
18209         (LANEMAC_QUALIFIERS): Rename to...
18210         (MAC_N_QUALIFIERS): ...this.
18211         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18212         (arm_setlane_qualifiers): Use qualifier_lane_index.
18213         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18214         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18215         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18216         (arm_expand_neon_builtin): Handle qualifier_lane_index.
18218         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18219         * config/arm/arm.c (bounds_check): Likewise, improve error message.
18220         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18221         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18222         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18223         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18224         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18225         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18226         qualifiers to TERNOP_IMM.
18227         (vdup_lane): Change qualifiers to GETLANE.
18228         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18229         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18230         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18231         vqdmlsl_n): Change qualifiers to MAC_N.
18233         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18234         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18235         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18236         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18237         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18238         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18239         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18240         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18241         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18242         Remove call to neon_lane_bounds.
18244 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18246         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18247         Place integer variant first.
18249 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
18251         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18252         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18253         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18254         for armv6kz targets.
18255         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18256         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18257         (FL_FOR_ARCH6ZK): Remove.
18258         (FL_FOR_ARCH6KZ): New.
18259         (arm_arch6zk): New declaration.
18260         * config/arm/arm-tables.opt: Regenerate.
18261         * config/arm/arm.c (arm_arch6kz): New.
18262         (arm_option_override): Set arm_arch6kz.
18263         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18264         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18265         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18267 2015-07-27  Marek Polacek  <polacek@redhat.com>
18269         PR c++/66555
18270         PR c/54979
18271         * doc/invoke.texi: Document -Wtautological-compare.
18273 2015-07-27  Richard Biener  <rguenther@suse.de>
18275         * genmatch.c (decision_tree::gen_gimple): Split out large
18276         subtrees into separate functions.
18277         (decision_tree::gen_generic): Likewise.
18279 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
18281         * config/alpha/alpha.c: Use SUBREG_P predicate.
18282         * config/alpha/predicates.md: Ditto.
18284 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18286         * config.host (s390*-*-*): Include driver-native.c only when
18287         building with s390* as host *and* target.
18289 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
18291         PR target/66930
18292         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18293         T bit register modified_between_p check.
18295 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18297         * config/i386/i386.c: Use SUBREG_P predicate.
18298         * config/i386/i386.md: Ditto.
18299         * config/i386/sse.md: Ditto.
18300         * config/i386/predicates.md: Ditto.
18302 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18304         PR target/67004
18305         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18306         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18308 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18310         * Makefile.in: Remove use of TREEBROWSER.
18311         * config.in: Regenerated.
18312         * configure: Regenerated.
18313         * configure.ac: Remove definition of TREEBROWSER.
18314         * tree-browser.c: Removed.
18315         * tree-browser.def: Removed.
18317 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18319         * graphite-scop-detection.c: Include gimple-pretty-print.h.
18320         (stmt_simple_for_scop_p): Print when a stmt is not handled in
18321         Graphite.
18322         (scopdet_basic_block_info): Print when a loop or bb cannot be
18323         represented in Graphite.
18325 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18327         PR target/66648
18328         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18329         execution guard when min_size is less than size_needed.
18331 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18333         * doc/install.texi: Document supported versions of ISL.
18335 2015-07-25  Jeff Law  <law@redhat.com>
18337         Revert:
18338         PR lto/66752
18339         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18340         unable to find X NE 0 in the tables, return X as the simplified
18341         condition.
18342         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18343         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18344         to VISISTED_BBS.  */
18345         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18346         after removing the control flow statement and unnecessary edges.
18348 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
18350         Revert:
18351         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18353         PR rtl-optimization/64164
18354         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18355         * tree-ssa-copyrename.c: Removed.
18356         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18357         -ftree-coalesce-vars.
18358         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18359         * common.opt (ftree-copyrename): Ignore.
18360         (ftree-coalesce-inlined-vars): Likewise.
18361         * doc/invoke.texi: Remove the ignored options above.
18362         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18363         * tree-ssa-coalesce.h: ... here.
18364         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18365         headers required by it.
18366         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18367         across variables when flag_tree_coalesce_vars.  Check register
18368         use and promoted modes to allow coalescing.  Moved to
18369         tree-ssa-coalesce.c.
18370         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18371         with its member functions to tree-ssa-coalesce.c.
18372         (var_map_base_init): Likewise.  Renamed to
18373         compute_samebase_partition_bases.
18374         (partition_view_normal): Drop want_bases parameter.
18375         (partition_view_bitmap): Likewise.
18376         * tree-ssa-live.h: Adjust declarations.
18377         * tree-ssa-coalesce.c: Include explow.h.
18378         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18379         default defs at the entry point.
18380         (dump_part_var_map): New.
18381         (compute_optimized_partition_bases): New, called by...
18382         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18383         of compute_samebase_partition_bases.  Adjust.
18384         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18385         * cfgexpand.c (leader_merge): New.
18386         (get_rtl_for_parm_ssa_default_def): New.
18387         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18388         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18389         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18390         redundant MEM attr setting.
18391         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18392         from...
18393         (expand_one_stack_var): ... this.  New wrapper to check and
18394         skip already expanded SSA partitions.
18395         (record_alignment_for_reg_var): New, factored out of...
18396         (expand_one_var): ... this.
18397         (expand_one_ssa_partition): New.
18398         (adjust_one_expanded_partition_var): New.
18399         (expand_one_register_var): Check and skip already expanded SSA
18400         partitions.
18401         (expand_used_vars): Don't create DECLs for anonymous SSA
18402         names.  Expand all SSA partitions, then adjust all SSA names.
18403         (pass::execute): Replace the loops that set
18404         SA.partition_to_pseudo from partition leaders and cleared
18405         DECL_RTL for multi-location variables, and that which used to
18406         rename vars and set attrs, with one that clears DECL_RTL and
18407         checks that PARMs and RESULTs default_defs match DECL_RTL.
18408         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18409         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18410         * explow.c (promote_ssa_mode): New.
18411         * explow.h (promote_ssa_mode): Declare.
18412         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18413         * function.c: Include cfgexpand.h.
18414         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18415         (use_register_for_parm_decl): Wrapper for the above to
18416         special-case the result_ptr.
18417         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18418         (split_complex_args): Take assign_parm_data_all argument.
18419         Pass it to rtl_for_parm.  Set up rtl and context for split
18420         args.
18421         (assign_parms_augmented_arg_list): Adjust.
18422         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18423         multiple locations.  Recognize split complex args.
18424         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18425         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18426         (assign_parm_setup_block): Prefer SSA-assigned location.
18427         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18428         if stack_parm is NULL.
18429         (assign_parm_setup_stack): Prefer SSA-assigned location.
18430         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18431         rtl before testing for pointer bounds.  Special-case result_ptr.
18432         (expand_function_start): Maybe reset DECL_RTL of result.
18433         Prefer SSA-assigned location for result and static chain.
18434         Factor out DECL_RESULT and SET_DECL_RTL.
18435         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18436         anonymous SSA names.  Use promote_ssa_mode.
18437         (get_temp_reg): Likewise.
18438         (remove_ssa_form): Adjust.
18439         * stor-layout.c (layout_decl): Don't set mem attributes of
18440         non-MEMs.
18441         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18442         and get its reg_usage for reg invalidation.
18443         (compute_bb_dataflow): Pass it insn.
18444         (emit_notes_in_bb): Likewise.
18446 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18448         * config/i386/i386.c (ix86_va_start): Remove
18449         unneeded !TARGET_64BIT check.
18450         (ix86_gimplify_va_arg): Ditto.
18452 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18454         * graphite-sese-to-poly.c (build_poly_scop): Always call
18455         rewrite_commutative_reductions_out_of_ssa.
18457 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18459         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18460         flag_associative_math to FLOAT_TYPE_P.  Honour
18461         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18463 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18465         PR c++/64079
18466         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18467         and "%qD" in warning_at instead of "%q+D" in warning.
18469 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18471         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18472         (ix86_function_abi): Cleanup.
18474 2015-07-24  Michael Darling  <darlingm@gmail.com>
18476         PR other/66259
18477         * acinclude.m4: Reflects renaming of configure.in to configure.ac
18478         * configure: Likewise
18479         * configure.ac: Likewise
18480         * doc/install.texi: Likewise
18481         * doc/tm.texi: Likewise
18482         * doc/tm.texi.in: Likewise
18484 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18486         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18487         manually swapping values.
18488         * cse.c (fold_rtx): Likewise.
18489         * lra-eliminations.c (form_sum): Likewise.
18491 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
18493         PR target/64003
18494         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18495         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18496         (*jcc_1, *jcc_2, jump, simple_return_internal)
18497         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18498         Set length_nobnd attribute instead of length attribute.
18499         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18500         (length_nobnd): Remove attribute.
18501         (length): Remove length_nobnd processing.
18503 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
18505         * gimplify.c (omp_default_clause): New function.  Reorganize flow
18506         for clarity. Broken out of ...
18507         (omp_notice_variable): ... here.
18509 2015-07-24  Gary Funck  <gary@intrepid.com>
18511         PR middle-end/66984
18512         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18513         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18515 2015-07-24  Tom de Vries  <tom@codesourcery.com>
18517         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18518         exit-first loop transform.
18520 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
18522         PR 66714
18523         * tree-cfg.c (struct replace_decls_d): New struct.
18524         (replace_block_vars_by_duplicates_1): New function.
18525         (replace_block_vars_by_duplicates): Use it to replace the decls
18526         in the value exprs by duplicates.
18528 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18530         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18531         -shared, -symbolic, -rdynamic.
18533 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18535         PR target/65711
18536         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18537         -dynamic-linker within %{!static %{!shared, and -rdynamic within
18538         %{!static.
18540 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
18542         PR ipa/66566
18543         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18544         edge summary is available.
18546 2015-07-24  Richard Biener  <rguenther@suse.de>
18548         * genmatch.c (struct dt_node): Add statistic fields.
18549         (dt_node::analyze): New method.
18550         (decision_tree::gen_gimple): Call analyze on the root node
18551         and print statistics to stderr.
18552         (decision_tree::gen_generic): Likewise.
18554 2015-07-24  Richard Biener  <rguenther@suse.de>
18556         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18557         against the highest or lowest possible integer ...
18558         * match.pd: ... as patterns here.
18560 2015-07-24  Richard Biener  <rguenther@suse.de>
18562         * genmatch.c (struct capture_info): Add same_as field.
18563         (capture_info::capture_info): Initialize same_as.
18564         (capture_info::walk_match): Compute same_as.
18565         (capture_info::walk_result): Compute stuff for the leader.
18566         (capture_info::walk_c_expr): Likewise.
18567         (dt_simplify::gen_1): Only look at leaders when deciding
18568         to force no side-effects or emit side-effects of omitted operands.
18570 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18572         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18573         reg note to the GPR -> FPR save instructions.
18575 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18577         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18578         cheaper.
18579         (s390_expand_insv): Don't generate risbg pattern for constant zero
18580         sources.
18581         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18582         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
18583         splitters.
18585 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18587         * config/s390/s390.c (s390_reorg): Clean up handling of processors
18588         with
18589         -mtune=
18590         (s390_issue_rate): Likewise.
18591         (s390_sched_reorder): Likewise.
18592         (s390_sched_variable_issue): Likewise.
18593         (s390_loop_unroll_adjust): Likewise.
18594         (s390_option_override):  Likewise.
18596 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18598         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18599         processor capabilities with -march=native.
18600         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18601         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
18602         (S390_TARGET_BITS_STRING): Macro to simplify specs.
18604 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18606         * config/s390/s390.c (s390_issue_rate): Handle
18607         PROCESSOR_2094_Z9_EC.
18608         (s390_option_override): Likewise.
18609         (s390_adjust_priority): Likewise.
18611 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18613         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18614         when cross compiling.
18616 2015-07-24  Richard Biener  <rguenther@suse.de>
18618         * fold-const.c (maybe_canonicalize_comparison_1): Move
18619         A code CST canonicalization ...
18620         * match.pd: ... to a pattern here.
18622 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
18624         Revert:
18625         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18626         PR target/63521
18627         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18628         (HONOR_REG_ALLOC_ORDER): Define.
18630 2015-07-24  Richard Biener  <rguenther@suse.de>
18632         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18633         * fold-const.c (fold_comparison): Move parameter does not
18634         alias &local simplification ...
18635         * match.pd: ... as a pattern here.
18637 2015-07-24  Richard Biener  <rguenther@suse.de>
18639         * gimple-fold.c (replace_stmt_with_simplification): Special-case
18640         valueizing call operands.
18641         * gimple-match-head.c (maybe_push_res_to_seq): Take
18642         number of call arguments from ops array.
18643         (do_valueize): New function.
18644         (gimple_simplify): Return true if valueization changed
18645         any operand even if the result didn't simplify further.
18647 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18649         PR middle-end/25530
18650         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18652 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18654         PR middle-end/25529
18655         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18657 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18659         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18660         instruction.
18662 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18664         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18665         clean up.
18667 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
18669         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18670         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
18671         targets here.
18672         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18673         ms_va_list_type_node initialization.
18675 2015-07-23  Jeff Law  <law@redhat.com>
18677         PR lto/66752
18678         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18679         unable to find X NE 0 in the tables, return X as the simplified
18680         condition.
18681         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18682         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18683         to VISISTED_BBS.  */
18684         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18685         after removing the control flow statement and unnecessary edges.
18687 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18689         * tree-pass.h (get_current_pass_name): Removed.
18691 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18693         PR rtl-optimization/64164
18694         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18695         * tree-ssa-copyrename.c: Removed.
18696         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18697         -ftree-coalesce-vars.
18698         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18699         * common.opt (ftree-copyrename): Ignore.
18700         (ftree-coalesce-inlined-vars): Likewise.
18701         * doc/invoke.texi: Remove the ignored options above.
18702         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18703         * tree-ssa-coalesce.h: ... here.
18704         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18705         headers required by it.
18706         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18707         across variables when flag_tree_coalesce_vars.  Check register
18708         use and promoted modes to allow coalescing.  Moved to
18709         tree-ssa-coalesce.c.
18710         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18711         with its member functions to tree-ssa-coalesce.c.
18712         (var_map_base_init): Likewise.  Renamed to
18713         compute_samebase_partition_bases.
18714         (partition_view_normal): Drop want_bases parameter.
18715         (partition_view_bitmap): Likewise.
18716         * tree-ssa-live.h: Adjust declarations.
18717         * tree-ssa-coalesce.c: Include explow.h.
18718         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18719         default defs at the entry point.
18720         (dump_part_var_map): New.
18721         (compute_optimized_partition_bases): New, called by...
18722         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18723         of compute_samebase_partition_bases.  Adjust.
18724         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18725         * cfgexpand.c (leader_merge): New.
18726         (get_rtl_for_parm_ssa_default_def): New.
18727         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18728         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18729         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18730         redundant MEM attr setting.
18731         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18732         from...
18733         (expand_one_stack_var): ... this.  New wrapper to check and
18734         skip already expanded SSA partitions.
18735         (record_alignment_for_reg_var): New, factored out of...
18736         (expand_one_var): ... this.
18737         (expand_one_ssa_partition): New.
18738         (adjust_one_expanded_partition_var): New.
18739         (expand_one_register_var): Check and skip already expanded SSA
18740         partitions.
18741         (expand_used_vars): Don't create DECLs for anonymous SSA
18742         names.  Expand all SSA partitions, then adjust all SSA names.
18743         (pass::execute): Replace the loops that set
18744         SA.partition_to_pseudo from partition leaders and cleared
18745         DECL_RTL for multi-location variables, and that which used to
18746         rename vars and set attrs, with one that clears DECL_RTL and
18747         checks that PARMs and RESULTs default_defs match DECL_RTL.
18748         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18749         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18750         * explow.c (promote_ssa_mode): New.
18751         * explow.h (promote_ssa_mode): Declare.
18752         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18753         * function.c: Include cfgexpand.h.
18754         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18755         (use_register_for_parm_decl): Wrapper for the above to
18756         special-case the result_ptr.
18757         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18758         (split_complex_args): Take assign_parm_data_all argument.
18759         Pass it to rtl_for_parm.  Set up rtl and context for split
18760         args.
18761         (assign_parms_augmented_arg_list): Adjust.
18762         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18763         multiple locations.  Recognize split complex args.
18764         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18765         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18766         (assign_parm_setup_block): Prefer SSA-assigned location.
18767         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18768         if stack_parm is NULL.
18769         (assign_parm_setup_stack): Prefer SSA-assigned location.
18770         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18771         rtl before testing for pointer bounds.  Special-case result_ptr.
18772         (expand_function_start): Maybe reset DECL_RTL of result.
18773         Prefer SSA-assigned location for result and static chain.
18774         Factor out DECL_RESULT and SET_DECL_RTL.
18775         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18776         anonymous SSA names.  Use promote_ssa_mode.
18777         (get_temp_reg): Likewise.
18778         (remove_ssa_form): Adjust.
18779         * stor-layout.c (layout_decl): Don't set mem attributes of
18780         non-MEMs.
18781         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18782         and get its reg_usage for reg invalidation.
18783         (compute_bb_dataflow): Pass it insn.
18784         (emit_notes_in_bb): Likewise.
18786 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18788         PR target/66217
18789         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18790         prototype.
18791         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18792         (rs6000_emit_2insn_and): Handle dot forms.
18793         * config/rs6000/rs6000.md (and<mode>3): Adjust.
18794         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
18795         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18797 2015-07-23  Richard Biener  <rguenther@suse.de>
18799         * generic-match-head.c: Include cgraph.h.
18800         * gimple-match-head.c: Likewise.
18801         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18802         SSA names.
18803         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18804         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
18805         pattern.
18807 2015-07-23  Richard Biener  <rguenther@suse.de>
18809         * gimple-fold.c (fold_gimple_cond): Do not require folding
18810         results to pass valid_gimple_rhs_p.
18811         * tree-cfg.h (fold_cond_expr_cond): Remove.
18812         * tree-cfg.c (fold_cond_expr_cond): Likewise.
18813         (make_edges): Do not call it.
18814         * tree-inline.c (tree_function_versioning): Likewise.
18816 2015-07-23  Tom de Vries  <tom@codesourcery.com>
18818         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18819         vect_force_simple_reduction.
18820         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18821         (vect_is_simple_reduction_1): Add and handle
18822         need_wrapping_integral_overflow parameter.
18823         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18824         need_wrapping_integral_overflow parameter.
18825         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18826         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18827         decl.
18829 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
18831         PR tree-optimization/66926,66951
18832         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18833         INNER_LOOP and fix up condition for renaming virtual operands.
18835 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18837         * combine.c (try_combine): Use std::swap instead of manually
18838         swapping.
18840 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
18842         * config/mips/i6400.md: New file.
18843         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18844         (mips64r6): Likewise.
18845         (i6400): Define.
18846         * config/mips/mips-tables.opt: Regenerate.
18847         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18848         (mips_issue_rate): Add support for i6400.
18849         (mips_multipass_dfa_lookahead): Likewise.
18850         * config/mips/mips.h (TUNE_I6400): Define.
18851         * config/mips/mips.md: Include i6400.md.
18852         (processor): Add i6400.
18853         * doc/invoke.texi (-march=@var{arch}): Add i6400.
18855 2015-07-23  Richard Biener  <rguenther@suse.de>
18857         PR middle-end/66916
18858         * match.pd: Guard widen and sign-change comparison simplification
18859         with single_use.
18861 2015-07-23  Richard Biener  <rguenther@suse.de>
18863         PR tree-optimization/66945
18864         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18865         ::before_dom_children): Force the propagators idea of
18866         non-executable edges to materialize, not what the folder
18867         chooses.
18869 2015-07-23  Richard Biener  <rguenther@suse.de>
18871         * gimple.h (gimple_cond_make_false): Use 0 != 0.
18872         (gimple_cond_make_true): Use 1 != 0.
18874 2015-07-22  DJ Delorie  <dj@redhat.com>
18876         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18877         slashes.
18879         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18880         (ashrhi3): Likewise.
18881         (lshrhi3): Likewise.
18882         (movhi): Take advantage of zero-extend to load small constants.
18883         (movpsi): Likewise.
18884         (and<mode>3): Likewise.
18885         (zero_extendqihi2): Likewise.
18886         (zero_extendqisi2): New.
18887         * config/msp430/constraints.md (N,O): New.
18888         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18890 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
18892         PR target/66954
18893         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18894         to enum feature_priority and feature_list.
18895         (fold_builtin_cpu): Add F_AES to enum processor_features
18896         and isa_names_table.
18898 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18900         PR driver/66737
18901         * config/i386/linux-common.h (MPX_SPEC): Use linker option
18902         for 64bit target only.
18904 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18906         * config/nvptx/nvptx.c: Expand some comments.
18908 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
18910         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18911         (cortex_a53_advsimd): ...This.
18913 2015-07-22  Richard Biener  <rguenther@suse.de>
18915         * genmatch.c (expr::gen_transform): Clarify error message
18916         and display location.
18918 2015-07-22  Richard Biener  <rguenther@suse.de>
18920         * genmatch.c (struct operand): Add location member.
18921         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18922         constructors.
18923         (struct simplify): Remove match_location and result_location
18924         members.
18925         (elsehwere): Adjust.
18927 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
18929         * config/mips/m5100.md: New file.
18930         * config/mips/mips-cpus.def (m5100, m5101): Define.
18931         * config/mips/mips-tables.opt: Regenerate.
18932         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18933         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18934         -march=m5101 to -mips32r5.
18935         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18936         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18937         !-msoft-float.
18938         * config/mips/mips.md: Include m5100.md.
18939         (processor): Add m5100.
18940         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18942 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
18944         * config/mips/mips-cpus.def (interaptiv): Define.
18945         * config/mips/mips-tables.opt: Regenerate.
18946         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18947         -mips32r2.
18948         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18949         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18951 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18953         PR target/63521
18954         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18955         (HONOR_REG_ALLOC_ORDER): Define.
18957 2015-07-22  Richard Biener  <rguenther@suse.de>
18959         PR tree-optimization/66952
18960         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18961         blocks we end up executing unconditionally reset all SSA
18962         info such as range and alignment.
18963         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18964         * tree-ssanames.c (reset_flow_sensitive_info): New function.
18966 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18968         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18969         typo in attribute.
18971 2015-07-22  Richard Biener  <rguenther@suse.de>
18973         * genmatch.c (parser::parse_result): Properly handle
18974         match with result operands and conditions.
18976 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18978         PR target/63870
18979         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18980         Add qualifier_struct_load_store_lane_index.
18981         (aarch64_types_loadstruct_lane_qualifiers): Use
18982         qualifier_struct_load_store_lane_index for lane index argument for
18983         last argument.
18984         (aarch64_types_storestruct_lane_qualifiers): Ditto.
18985         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18986         (aarch64_simd_expand_args): Add new argument describing mode of
18987         builtin. Check lane bounds for arguments with
18988         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18989         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18990         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18991         (aarch64_simd_expand_builtin): Handle arguments with
18992         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18993         aarch64_simd_expand_args.
18994         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18995         vst[234]_lane with BUILTIN_VALLDIF.
18996         * config/aarch64/aarch64-simd.md:
18997         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18998         endianness reversal on lane index.
18999         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19000         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19001         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19002         (vec_store_lanesci_lane<mode>): Ditto.
19003         (vec_store_lanesxi_lane<mode>): Ditto.
19004         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19005         reversal of lane index.
19006         (aarch64_ld3_lane<mode>): Ditto.
19007         (aarch64_ld4_lane<mode>): Ditto.
19008         (aarch64_st2_lane<mode>): Ditto.
19009         (aarch64_st3_lane<mode>): Ditto.
19010         (aarch64_st4_lane<mode>): Ditto.
19011         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19012         to qmode. Add new mode parameter. Update uses.
19013         (__LD3_LANE_FUNC): Ditto.
19014         (__LD4_LANE_FUNC): Ditto.
19015         (__ST2_LANE_FUNC): Ditto.
19016         (__ST3_LANE_FUNC): Ditto.
19017         (__ST4_LANE_FUNC): Ditto.
19019 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
19021         * doc/invoke.texi (Language Independent Options): Rename node to
19022         Diagnostic Message Formatting Options.
19024 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
19026         PR ipa/66424.
19027         * lra-remat.c (operand_to_remat): Prevent using insns with input
19028         subregs processed separately by IRA.
19030 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
19032         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19033         straight loops.
19034         (single_imm_use): Check for iterator node.
19035         (num_imm_uses): Likewise.
19036         * tree-ssa-operands.c (has_zero_uses_1): Delete.
19037         (single_imm_use_1): Check for iterator node.
19039 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
19040             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19042         * configure.ac: Add check for new options in isl-0.15.
19043         * config.in, configure: Rebuilt.
19044         * graphite-blocking.c: Include <isl/constraint.h>
19045         * graphite-interchange.c,  graphite-poly.c: Likewise.
19046         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19047         * graphite.c: Likewise.
19048         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19049         <isl/union_set.h>.
19050         * graphite-dependences.c: Include <isl/constraint.h>.
19051         (max_number_of_out_dimensions): Returns isl_stat.
19052         (extend_schedule_1): Likewise
19053         (extend_schedule): Corresponding changes.
19054         * graphite-optimize-isl.c: Include <isl/constraint.h> and
19055         <isl/union_set.h>.
19056         (getSingleMap): Change return type of isl_stat.
19057         (optimize_isl): Conditionally use
19058         isl_options_set_schedule_serialize_sccs.
19059         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19060         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19062 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
19064         PR target/66956
19065         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19066         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19068 2015-07-21  Richard Biener  <rguenther@suse.de>
19070         PR tree-optimization/66948
19071         * genmatch.c (capture_info::walk_match): Also recurse to
19072         captures.  Properly compute expr state from captures of
19073         captures.
19074         * match.pd: Add single-use guards to
19075         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19077 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
19079         * config/nvptx/mkoffload.c (process): Add static destructor call.
19081 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19083         PR middle-end/66915
19084         * match.pd (A - B -> A + (-B)): Don't allow folding
19085         when type if a fixed-point type.
19087 2015-07-20  DJ Delorie  <dj@redhat.com>
19089         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19090         (iorqi3_real): Likewise for set1.
19092 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
19094         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19095         for !TARGET_64BIT.
19097 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
19099         * graphite-isl-ast-to-gimple.c:
19100         Refactor so that each function can access 'region'. This will help
19101         maintain a parameter rename_map within a region.
19103 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19105         * config/rs6000/rs6000.md (*lt0_disi): New.
19107 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19109         PR target/66217
19110         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
19111         "available letters" comment.
19112         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19113         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19114         and_2rld_operand):  Delete.
19115         (and_operand): Adjust.
19116         (rotate_mask_operator): New.
19117         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19118         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19119         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19120         extract_ME): Delete.
19121         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19122         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19123         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19124         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19125         rs6000_emit_2insn_and): New.
19126         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19127         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19128         includes_rldic_lshift_p, includes_rldicr_lshift_p,
19129         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19130         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19131         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19132         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19133         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19134         rs6000_emit_2insn_and): New.
19135         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19136         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19137         handling.
19138         <NOT>: Don't fall through to next case.
19139         <AND>: Handle the various rotate-and-mask cases directly.
19140         <IOR>: Always cost as one insn.
19141         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19142         (and<mode>3): Adjust expander for the new patterns.
19143         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19144         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19145         (*and<mode>3_imm_dot_shifted): New.
19146         (*and<mode>3_mask): Delete, rewrite as ...
19147         (and<mode>3_mask): ... New.
19148         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19149         (andsi3_internal0_nomc): Delete.
19150         (*andsi3_internal6): Delete.
19151         (*and<mode>3_2insn): New.
19152         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19153         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19154         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19155         *insvdi_internal3): Delete.
19156         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19157         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19158         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19159         *ior<mode>_mask): New.
19160         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19161         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19162         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19163         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19164         Delete.
19165         (ashr<mode>3): Delete expander.
19166         (*ashr<mode>3): Rename to ...
19167         (ashr<mode>3): ... This.
19168         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19169         (*rotldi3_internal4, *rotldi3_internal5 and split,
19170         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19171         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19172         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19173         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19174         (splitter for loading a mask): Adjust.
19175         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19177 2015-07-20  Marek Polacek  <polacek@redhat.com>
19179         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19180         output_add_clobbers, output_added_clobbers_hard_reg_p,
19181         gen_rtx_scratch): Remove declarations.
19183 2015-07-20  Marek Polacek  <polacek@redhat.com>
19185         PR c++/55095
19186         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19188 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19190         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19191         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19193 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19195         * combine.c (combine_simplify_rtx): Move simplification step
19196         before various transformations/substitutions.
19198 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
19200         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19201         (struct int_traits): Likewise.
19203 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19205         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19206         function to vmsdbgout_function_decl.
19208 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19210         PR target/66922
19211         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19212         from misaligned positions.
19213         (ix86_expand_pinsr): Reject insertions to misaligned positions.
19215 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
19217         PR middle-end/46851
19218         PR middle-end/60340
19219         * Makefile.in: Removed omega.o.
19220         * common.opt: Document flag fcheck-data-deps as deprecated.
19221         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19222         its associated params: omega-max-vars, omega-max-geqs,
19223         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19224         omega-max-keys, omega-eliminate-redundant-constraints.
19225         * doc/loop.texi: Remove all the section on Omega.
19226         * graphite-blocking.c: Include missing params.h: it used to be
19227         included through tree-data-ref.h and omega.h.
19228         * graphite-isl-ast-to-gimple.c: Same.
19229         * graphite-optimize-isl.c: Same.
19230         * graphite-sese-to-poly.c: Same.
19231         * graphite.c: Same.
19232         * omega.c: Remove.
19233         * omega.h: Remove.
19234         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19235         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19236         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19237         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19238         * passes.def: Remove pass_check_data_deps.
19239         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19240         (dump_conflict_function): Same.
19241         (dump_subscript): Same.
19242         (print_direction_vector): Same.
19243         (print_dir_vectors): Same.
19244         (print_lambda_vector): Same.
19245         (print_dist_vectors): Same.
19246         (dump_data_dependence_relation): Same.
19247         (dump_data_dependence_relations): Same.
19248         (dump_dist_dir_vectors): Same.
19249         (dump_ddrs): Same.
19250         (init_omega_eq_with_af): Removed.
19251         (omega_extract_distance_vectors): Removed.
19252         (omega_setup_subscript): Removed.
19253         (init_omega_for_ddr_1): Removed.
19254         (init_omega_for_ddr): Removed.
19255         (ddr_consistent_p): Removed.
19256         (compute_affine_dependence): Do not use omega to check data
19257         dependences.
19258         (compute_data_dependences_for_bb): Removed.
19259         (analyze_all_data_dependences): Removed.
19260         (tree_check_data_deps): Removed.
19261         * tree-data-ref.h: Do not include omega.h.
19262         (compute_data_dependences_for_bb): Removed.
19263         (tree_check_data_deps): Removed.
19264         * tree-ssa-loop.c (pass_check_data_deps): Removed.
19265         (make_pass_check_data_deps): Removed.
19266         * tree-ssa-phiopt.c: Include params.h.
19267         * tree-vect-data-refs.c: Same.
19268         * tree-vect-slp.c: Same.
19270 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19272         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19273         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
19274         (mem->fpreg splitters): Ditto.
19275         (general_operand->nonimmediate_operand splitter): Use explicit modes.
19276         Disable DFmode for TARGET_64BIT.
19278 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
19280         PR target/66906
19281         * config/i386/i386.c (ix86_expand_prologue): Replicate static
19282         chain on the stack.
19284 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19286         * config/nvptx/mkoffload.c (process): Constify host data.
19287         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19288         Constify host data.
19289         (generate_host_descr_file): Likewise.
19291 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
19292             Sebastian Pop  <s.pop@samsung.com>
19294         PR middle-end/61929
19295         * graphite-dependences.c (add_pdr_constraints): Renamed
19296         pdr->extent to pdr->subscript_sizes.
19297         * graphite-interchange.c (build_linearized_memory_access): Add
19298         back all gcc_assert's that the "isl_int to isl_val conversion"
19299         patch has removed.  Refactored.
19300         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19301         * graphite-poly.c (new_poly_dr): Same.
19302         (free_poly_dr): Same.
19303         * graphite-poly.h (struct poly_dr): Same.
19304         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19305         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19306         * graphite-scop-detection.h: Fix space.
19307         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19308         back all gcc_assert's removed by a previous patch.
19309         (wrap): Remove the_isl_ctx global variable that the same patch has
19310         added.
19311         (build_loop_iteration_domains): Same.
19312         (add_param_constraints): Same.
19313         (pdr_add_data_dimensions): Same.  Refactored.
19314         (build_poly_dr): Renamed extent to subscript_sizes.
19316 2015-07-17  Marek Polacek  <polacek@redhat.com>
19318         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19319         * match.pd: ... here.
19321 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19323         * config/nvptx/mkoffload.c (process): Constify target data.
19324         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19325         Constify target data.
19326         (generate_target_offloadend_file): Likewise.
19328 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
19330         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19331         to allow renaming of PHI arguments on edges incoming from outer
19332         loop header, add corresponding check before start PHI iterator.
19333         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19334         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19335         with true force_vectorize.  Set-up dominator for outer loop too.
19336         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19337         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19338         was marked with force_vectorize and has restricted cfg.
19339         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19340         inner loop.
19341         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19342         do peeling for outer loops.
19344 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
19345             Matthias Klose  <doko@ubuntu.com>
19347         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19348         build-sysroot, sysroot from the `Miscenalleous configure options' to
19349         the `Directories' section and strip trailing `/' from with_sysroot.
19350         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19351         * configure: Regenerated.
19353 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19355         PR target/66824
19356         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19357         (TARGET_HARD_DF_REGS): Ditto.
19358         (TARGET_HARD_XF_REGS): Ditto.
19359         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19360         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19361         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19362         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19363         (*movsf_internal): Add alternatives 16 and 17. Enable
19364         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19366 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19368         PR rtl-optimization/66891
19369         * calls.c (expand_call): Wrap precompute_register_parameters with
19370         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19372 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
19374         * config/nvptx/mkoffload.c (process): Constify mapping variables.
19375         Define target data struct and initialize it.
19377 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
19379         PR rtl-optimization/66626
19380         * ira.h (emit-rtl.h): Include.
19381         (non_spilled_static_chain_regno_p): New.
19382         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19383         unless it is non spilled static chain pseudo.
19384         (assign_hard_rego): Spill memory profitable allocno unless it is
19385         non spilled static chain pseudo.
19386         (allocno_spill_priority_compare): Put non spilled static chain
19387         pseudo at the end of sorted array.
19388         (improve_allocation): Do nothing if we have static chain and
19389         non-local goto.
19390         (allocno__priority_compare_func): Put non spilled static chain
19391         pseudo at the beginning of sorted array.
19392         (move_spill_restore): Ignore non spilled static chain pseudo.
19393         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19394         to non spilled static chain pseudo.
19395         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19396         pseudo at the beginning of sorted array.
19397         (spill_for): Spill non spilled static chain pseudo last.
19398         * lra-constraints.c (lra_constraints): Remove static chain pseudo
19399         check for equivalence.
19401 2015-07-16  Martin Liska  <mliska@suse.cz>
19403         PR ipa/66896.
19404         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19405         dst_ctx if it does not exist.
19407 2015-07-16  Martin Liska  <mliska@suse.cz>
19409         * hash-set.h (remove): New function.
19410         (iterator): New iteration class for hash_set.
19412 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19414         * genattrtab.c (make_canonical): Add a file_location parameter.
19415         Use fatal_at rather than fatal.
19416         (get_attr_value): Likewise.  Update call to make_canonical.
19417         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19418         (make_internal_attr): Update calls accordingly.
19420 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19422         * read-md.h (message_with_line, error_with_line): Delete.
19423         * read-md.c (message_with_line, error_with_line): Delete.
19424         * gensupport.h: Include read-md.h.
19425         (md_rtx_info): New structure.
19426         (read_md_rtx): Use it.  Return a bool success value.
19427         * gensupport.c (read_md_rtx): Likewise.
19428         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19429         (main): Update after interface changes.
19430         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19431         (main): Update after interface changes.
19432         * genattrtab.c (insn_code_number): Delete.
19433         (optimize_attrs): Add a max_insn_code parameter and use it instead
19434         of insn_code_number.
19435         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19436         Use *_at rather than *_with_line functions.
19437         (gen_insn): Likewise.
19438         (gen_delay): Likewise.
19439         (gen_insn_reserv): Likewise.
19440         (gen_bypass): Take an md_rtx_info rather than an rtx.
19441         (main): Update after interface changes.  Use a local max_insn_code
19442         variable instead of insn_code_number.
19443         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19444         an rtx.  Use fatal_at rather than fatal.
19445         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19446         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19447         (gen_absence_set, gen_final_absence_set, gen_automaton)
19448         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19449         (main): Update after interface changes.
19450         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19451         and code number.
19452         (main): Update after interface changes.
19453         * genconditions.c (main): Use new read_md_rtx interface.
19454         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19455         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19456         (main): Update after interface changes.
19457         * genemit.c (insn_code_number, insn_index_number): Delete.
19458         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19459         Use fatal_at rather than fatal.
19460         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
19461         rather than fatal.
19462         (gen_split): Likewise.
19463         (main): Update after interface changes.
19464         * genextract.c (line_no): Delete.
19465         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19466         Update call to walk_rtx.
19467         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
19468         rather than message_with_line.
19469         (walk_rtx): Add an md_rtx_info argument.  Update call to
19470         VEC_safe_set_locstr.
19471         (main): Update after interface changes.
19472         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19473         and lineno.  Use error_at rather than separate message_with_line
19474         calls and have_error assignments.
19475         (main): Update after interface changes.
19476         * genmddump.c (main): Use new read_md_rtx interface.
19477         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19478         (main): Update after interface changes.
19479         * genoutput.c (next_code_number): Delete.
19480         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19481         (gen_peephole, gen_expand, gen_split): Likewise.
19482         (note_constraint): Likewise.  Use *_at rather than *_with_line
19483         functions.
19484         (main): Update after interface changes.
19485         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19486         rtx and lineno.
19487         (main): Update after interface changes.
19488         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19489         than an rtx and lineno.
19490         (process_define_constraint): Likewise.
19491         (process_define_register_constraint): Likewise.
19492         (main): Update after interface changes.
19493         * genrecog.c (next_insn_code, pattern_lineno): Delete.
19494         (validate_pattern): Replace top-level rtx with an md_rtx_info.
19495         Use *_at rather than *_with_line functions.
19496         (match_pattern_2): Likewise.
19497         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19498         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19499         Use *_at rather than *_with_line functions.
19500         * gentarget-def.c (add_insn): New function.
19501         (main): Use it.  Use new read_md_rtx interface.
19503 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19505         * gensupport.h (compute_test_codes): Take a file_location rather
19506         than a line number.
19507         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
19508         rather than *_with_line functions.
19509         (process_define_predicate): Update call to compute_test_codes.
19510         * genpreds.c (validate_exp): Take a file_location rather than a
19511         line number.  Use *_at functions rather than *_with_line functions.
19512         (process_define_predicate): Update call to validate_exp.
19513         (constraint_data): Replace lineno field with a file_location.
19514         (add_constraint): Take a file_location rather than a line number.
19515         Use *_at functions rather than *_with_line functions.  Fix error
19516         message for address constraints.  Update after changes to
19517         validate_exp, constraint_data and compute_test_codes.
19518         (process_define_constraint): Update accordingly.
19519         (process_define_register_constraint): Likewise.
19521 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19523         * genoutput.c (data): Use a file_location to record the source
19524         position.
19525         (nothing): Delete.
19526         (idata, idata_end): Remove initialization.
19527         (constraint_data): Replace lineno with a file_location.
19528         (output_insn_data): Update after changes to data.
19529         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19530         (scan_operands): Likewise, using *_at rather than *_with_line
19531         functions.
19532         (process_template): Likewise.
19533         (validate_insn_alternatives): Likewise.
19534         (validate_insn_operands): Likewise.
19535         (validate_optab_operands): Likewise.
19536         (init_insn_for_nothing): Initialize idata and idata_end.
19537         (note_constraint): Update after changes to constraint_data,
19538         using at rather than with_line functions.
19539         (mdep_constraint_len): Take a file_location rather than a
19540         line number.  Use at rather than with_line functions.
19542 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19544         * read-md.h (fatal_at): Declare.
19545         * read-md.c (fatal_at): New function.
19546         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19547         to record the source position.
19548         (check_attr_test): Take a file_location instead of a line number.
19549         Use fatal_at instead of fatal.
19550         (check_attr_value): Update after above changes, using "at"
19551         rather than "with_line" reporting functions.
19552         (convert_set_attr_alternative): Likewise.
19553         (gen_attr): Likewise.
19554         (check_defs): Likewise.  Don't assign to read_md_filename.
19555         (gen_insn): Update initialization after above changes.
19556         (gen_delay): Likewise.
19557         (write_insn_cases): Print the filename for a define_peephole.
19558         (gen_insn_reserv): Take a line number as argument and update
19559         the call to check_attr_test.
19560         (main): Pass a line number to gen_insn_reserv.
19562 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19564         * read-md.h (file_location): New structure.
19565         (directive_handler_t): Take a file_location rather than a line number.
19566         (message_at, error_at): Declare.
19567         (read_skip_construct): Delete.
19568         * read-md.c (message_with_line_1): Replace with...
19569         (message_at_1): ...this new function.
19570         (message_at, error_at): New functions.
19571         (message_with_line, error_with_line): Update to use message_at_1.
19572         (handle_enum): Take a file_location rather than a line number
19573         and use error_at for error reporting.
19574         (handle_include): Likewise.
19575         (read_skip_construct): Likewise.  Make static.
19576         (handle_file): Update after above changes.  Pass a file_location
19577         rather than a line number to handle_directive.
19578         * gensupport.c (queue_elem): Replace separate filename and lineno
19579         with a file_location.
19580         (queue_pattern): Replace filename and lineno arguments with a
19581         file_location.  Update after change to queue_elem.
19582         (process_define_predicate): Replace lineno argument with a
19583         file_location and use error_at for error reporting.  Update
19584         after above changes.
19585         (process_rtx): Likewise.
19586         (subst_pattern_match): Likewise.
19587         (get_alternatives_number): Likewise.
19588         (alter_predicate_for_insn): Likewise.
19589         (rtx_handle_directive): Likewise.
19590         (is_predicable): Update after above changes, using error_at rather
19591         than error_with_line.
19592         (has_subst_attribute): Likewise.
19593         (identify_predicable_attribute): Likewise.
19594         (alter_attrs_for_subst_insn): Likewise.
19595         (process_one_cond_exec): Likewise.
19596         (process_substs_on_one_elem): Likewise.
19597         (process_define_subst): Likewise.
19598         (check_define_attr_duplicates): Likewise.
19599         (read_md_rtx): Update after change to queue_elem.
19601 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19603         * genoutput.c (next_index_number): Delete.
19604         (data): Remove index_number.
19605         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19606         (main): Remove manipulation of next_index_number.
19608 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19610         * genattrtab.c (check_attr_value): Remove handling of null attrs.
19611         (make_canonical): Likewise.
19613 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
19615         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19616         instead of adjust_address_nv.
19617         (restore_stack_nonlocal): Likewise.
19618         (nonlocal_goto): Likewise.
19620 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19622         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19623         not have a corresponding loop header phi.
19625 2015-07-16  Tom de Vries  <tom@codesourcery.com>
19627         * tree-parloops.c (create_loads_for_reductions): Handle case that
19628         reduction is unused.
19630 2015-07-16  Richard Biener  <rguenther@suse.de>
19632         PR tree-optimization/66894
19633         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19634         about deriving NE_EXPR from truncated values.
19636 2015-07-16  Martin Liska  <mliska@suse.cz>
19638         * alloc-pool.h
19639         (object_allocator): Add new class.
19640         (pool_allocator::initialize): Use the underlying class.
19641         (pool_allocator::allocate): Likewise.
19642         (pool_allocator::remove): Likewise.
19643         (operator new): A new generic allocator.
19644         * asan.c (struct asan_mem_ref): Remove unused members.
19645         (asan_mem_ref_new): Replace new operator with
19646         object_allocator::allocate.
19647         (free_mem_ref_resources): Change deallocation.
19648         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19649         with object_allocator.
19650         * config/sh/sh.c (add_constant): Replace new operator with
19651         object_allocator::allocate.
19652         (sh_reorg): Change call to a release method.
19653         * cselib.c (struct elt_list): Remove unused members.
19654         (new_elt_list): Replace new operator with
19655         object_allocator::allocate.
19656         (new_elt_loc_list): Likewise.
19657         (new_cselib_val): Likewise.
19658         (unchain_one_elt_list): Change delete operator with remove method.
19659         (unchain_one_elt_loc_list): Likewise.
19660         (unchain_one_value): Likewise.
19661         (cselib_finish): Release newly added static allocators.
19662         * cselib.h (struct cselib_val): Remove unused members.
19663         (struct elt_loc_list): Likewise.
19664         * df-problems.c (df_chain_alloc): Replace pool_allocator with
19665         object_allocator.
19666         * df-scan.c (struct df_scan_problem_data): Likewise.
19667         (df_scan_alloc): Likewise.
19668         * df.h (struct dataflow): Likewise.
19669         * dse.c (struct read_info_type): Likewise.
19670         (struct insn_info_type): Likewise.
19671         (struct dse_bb_info_type): Likewise.
19672         (struct group_info): Likewise.
19673         (struct deferred_change): Likewise.
19674         (get_group_info): Likewise.
19675         (delete_dead_store_insn): Likewise.
19676         (free_read_records): Likewise.
19677         (replace_read): Likewise.
19678         (check_mem_read_rtx): Likewise.
19679         (scan_insn): Likewise.
19680         (dse_step1): Likewise.
19681         (dse_step7): Likewise.
19682         * et-forest.c (struct et_occ): Remove unused members.
19683         (et_new_occ): Use allocate instead of new operator.
19684         (et_new_tree): Likewise.
19685         (et_free_tree): Call release method explicitly.
19686         (et_free_tree_force): Likewise.
19687         (et_free_pools): Likewise.
19688         (et_split): Use remove instead of delete operator.
19689         * et-forest.h (struct et_node): Remove unused members.
19690         * ipa-cp.c: Change pool_allocator to object_allocator.
19691         * ipa-inline-analysis.c: Likewise.
19692         * ipa-profile.c: Likewise.
19693         * ipa-prop.c: Likewise.
19694         * ipa-prop.h: Likewise.
19695         * ira-build.c (initiate_cost_vectors): Cast return value.
19696         (ira_allocate_cost_vector): Likewise.
19697         * ira-color.c (struct update_cost_record): Remove unused members.
19698         * lra-int.h (struct lra_live_range): Likewise.
19699         (struct lra_copy): Likewise.
19700         (struct lra_insn_reg): Likewise.
19701         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19702         * lra.c (new_insn_reg): Replace new operator with allocate method.
19703         (free_insn_regs): Same for operator delete.
19704         (finish_insn_regs): Release new static allocator.
19705         (finish_insn_recog_data): Likewise.
19706         (lra_free_copies): Replace delete operator with remove method.
19707         (lra_create_copy): Replace operator new with allocate method.
19708         (invalidate_insn_data_regno_info): Same for remove method.
19709         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19710         (free_debug_insn_changes): Replace delete operator with remove method.
19711         (replace_oldest_value_reg): Replace operator new with allocate method.
19712         (pass_cprop_hardreg::execute): Release new static variable.
19713         * sched-deps.c (sched_deps_init): Change pool_allocator to
19714         object_allocator.
19715         * sel-sched-ir.c: Likewise.
19716         * sel-sched-ir.h: Likewise.
19717         * stmt.c (expand_case): Likewise.
19718         (expand_sjlj_dispatch_table): Likewise.
19719         * tree-sra.c (struct access): Remove unused members.
19720         (struct assign_link): Likewise.
19721         (sra_deinitialize): Release newly added static pools.
19722         (create_access_1):Replace operator new with allocate method.
19723         (build_accesses_from_assign): Likewise.
19724         (create_artificial_child_access): Likewise.
19725         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19726         pool_allocator to object_allocator.
19727         * tree-ssa-pre.c: Likewise.
19728         * tree-ssa-reassoc.c: Likewise.
19729         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19730         * tree-ssa-strlen.c: Likewise.
19731         * tree-ssa-structalias.c: Likewise.
19732         * var-tracking.c (onepart_pool_allocate): New function.
19733         (unshare_variable): Use the newly added function.
19734         (variable_merge_over_cur): Likewise.
19735         (variable_from_dropped): Likewise.
19736         (variable_was_changed): Likewise.
19737         (set_slot_part): Likewise.
19738         (emit_notes_for_differences_1): Likewise.
19739         (vt_finalize): Release newly added static pools.
19741 2015-07-16  Martin Jambor  <mjambor@suse.cz>
19743         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
19744         all uses.  Fix two typos in its general comment.
19745         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
19747 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
19749         * config/i386/linux-common.h (LINK_MPX): New.
19750         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19751         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19752         indicating '-z bndplt' support by linker.
19753         * configure: Regenerate.
19754         * config.in: Regenerate.
19756 2015-07-16  Richard Biener  <rguenther@suse.de>
19758         * fold-const.c (fold_widened_comparison): Remove.
19759         (fold_sign_changed_comparison): Likewise.
19760         (fold_comparison): Move widened and sign-changed comparison
19761         simplification ...
19762         * match.pd: ... to patterns here.
19763         * generic-match-head.c: Include target.h.
19764         * gimple-match-head.c: Likewise.
19766 2015-07-16  Richard Biener  <rguenther@suse.de>
19768         * tree-ssa-dom.c (dom_valueize): New function.
19769         (record_temporary_equivalences): Also record equivalences
19770         for dominating stmts that have uses of equivalences we are
19771         about to record.
19773 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
19775         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19776         add_autoinc_candidates.
19777         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19778         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19779         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19780         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19781         Call new function.
19782         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19783         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19784         Remove parameter struct iv*.  Call add_autoinc_candidates here.
19785         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19786         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19787         Call new function.
19788         (find_iv_candidates): Call new functions.
19790 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
19792         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19793         uninitialized-variable warning.
19795 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
19797         PR target/65249
19798         * config/sh/sh.md (movdi): Split simple reg move to two movsi
19799         when the destination is R0.
19801 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
19803         PR target/66866
19804         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19805         * config/i386/i386.c (ix86_expand_pextr): New function.
19806         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
19807         for non-lowpart subregs.
19808         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19809         (insv<mode>): Use SWI248 mode iterator.
19810         (insv<mode>_1): Ditto.
19812 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19813             Sebastian Pop  <s.pop@samsung.com>
19815         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19816         iterator to use_stmt.
19818 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19819             Sebastian Pop <s.pop@samsung.com>
19821         * graphite-scop-detection.c (build_scops_1): Discard scops for
19822         which entry==exit.
19824 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19825             Sebastian Pop <s.pop@samsung.com>
19827         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19828         case of a return statement in scop.
19830 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19831             Sebastian Pop <s.pop@samsung.com>
19833         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19834         INTEGER_TYPE parameters.
19835         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19836         VECTOR_CST in scan_tree_for_params.
19837         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19839 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19841         * gimple-pretty-print.h: Don't include pretty-print.h.
19842         * tree-streamer.h: Don't include lto-streamer.h.
19843         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19844         * gimple-streamer-in.c: Remove redundant includes.
19845         * gimple-streamer-out.c: Likewise.
19846         * ipa-devirt.c: Likewise.
19847         * ipa-icf.c: Likewise.
19848         * ipa-inline-analysis.c: Likewise.
19849         * ipa-polymorphic-call.c: Likewise.
19850         * ipa-profile.c: Likewise.
19851         * ipa-prop.c: Likewise.
19852         * ipa-pure-const.c: Likewise.
19853         * lto-cgraph.c: Likewise.
19854         * lto-streamer-in.c: Likewise.
19855         * lto-streamer-out.c: Likewise.
19856         * lto-streamer.c: Likewise.
19857         * tree-streamer-in.c: Likewise.
19858         * tree-streamer-out.c: Likewise.
19859         * tree-streamer.c: Likewise.
19861 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19863         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19864         include input.h.
19865         * opts.c: Remove multiline #include comment.
19867 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
19869         * config/nvptx/mkoffload.c (process): Add C++ protection to
19870         emitted code.
19872 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19874         PR target/66854
19875         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19876         null before IEEE 128-bit floating point support patch.
19878 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19880         * simplify-rtx.c (simplify_ternary_operation): Add simplification
19881         for (!c) != {0,...,0} ? a : b for vector modes.
19883 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
19884             Martin Jambor  <mjambor@suse.cz>
19886         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19887         struct func_body_info* instead of struct ipa_node_params*, expecting
19888         fbi->info to be filled in.  Replace throughout.  Adjust call to
19889         ipa_load_from_parm_agg.
19890         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19891         instead of struct ipa_node_params*.  Adjust calls to other functions
19892         so that they pass either fbi or fbi->info.
19893         (set_switch_stmt_execution_predicate): Likewise.
19894         (will_be_nonconstant_predicate): Likewise.
19895         (compute_bb_predicates): Likewise.
19896         (estimate_function_body_sizes): Move asserts earlier.  Fill in
19897         struct func_body_info, replace parms_info with fbi.info.  Adjust
19898         calls to functions that now accept struct func_body_info.
19899         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19900         (struct func_body_info): Likewise.
19901         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19902         remove static.  Adjust callers.
19903         (ipa_load_from_parm_agg): Remove.
19904         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19905         (func_body_info): Likewise.
19906         (ipa_load_from_parm_agg): Adjust prototype.
19908 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19910         * gensupport.c (rtx_handle_directive): Adjust.
19911         * read-rtl.c (apply_iterators): Take vector to add rtxs to
19912         instead of expr list rtx.
19913         (add_define_attr_for_define_subst): Likewise.
19914         (add_define_subst_attr): Likewise.
19915         (read_subst_mapping): Likewise.
19916         (read_rtx): Likewise.
19917         * rtl.h (read_rtx): Adjust.
19919 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19921         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19923 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19925         PR target/58066
19926         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19927         (*tls_local_dynamic_base_64_<mode>): Ditto.
19928         (*tls_local_dynamic_base_64_largepic): Ditto.
19929         (tls_global_dynamic_64_<mode>): Update expander pattern.
19930         (tls_local_dynamic_base_64_<mode>): Ditto.
19932 2015-07-15  Richard Biener  <rguenther@suse.de>
19934         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19935         and bool_var == 1 -> bool_var simplifications ...
19936         * match.pd: ... to patterns here.  Factor out negate_expr_p
19937         cases from the A - B -> A + (-B) patterns as negate_expr_p
19938         predicate and add a -(A + B) -> (-B) - A pattern.
19940 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19942         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19944 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19945             Robert Suchanek  <robert.suchanek@imgtec.com>
19947         * config/mips/mips.c (mips_int_mask): New enum.
19948         (mips_shadow_set): Likewise.
19949         (int_mask): New variable.
19950         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19951         (machine_function): Add int_mask and use_shadow_register_set.
19952         (mips_attribute_table): Add attribute handlers for interrupt and
19953         use_shadow_register_set.
19954         (mips_interrupt_mask): New static function.
19955         (mips_handle_interrupt_attr): Likewise.
19956         (mips_handle_use_shadow_register_set_attr): Likewise.
19957         (mips_use_shadow_register_set): Change return type to enum
19958         mips_shadow_set.  Add argument handling for use_shadow_register_set
19959         attribute.
19960         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19961         compare with mips_shadow_set enum.
19962         (mips_compute_frame_info): Add interrupt mask and
19963         use_shadow_register_set to per-function information structure.
19964         Add a stack slot for EPC unconditionally.
19965         (mips_expand_prologue): Compare use_shadow_register_set value
19966         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
19967         masked interrupt register but in EIC mode use K0 and save Cause in K0.
19968         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
19969         copying the stack pointer from the shadow register set.
19970         * config/mips/mips.h (SR_IM0): New define.
19971         * config/mips/mips.md (mips_rdpgpr): Rename to...
19972         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
19973         * doc/extend.texi (Declaring Attributes of Functions): Document
19974         optional arguments for interrupt and use_shadow_register_set
19975         attributes.
19977 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19979         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19980         interrupt attribute.
19981         (mips_expand_prologue): Disable the floating point unit in an ISR.
19982         * config/mips/mips.h (SR_COP1): New define.
19984 2015-07-15  Richard Biener  <rguenther@suse.de>
19986         * genmatch.c (parser::peek, parser::peek_ident): Add argument
19987         to tell how many tokens to peek ahead (default 1).
19988         (parser::eat_token, parser::eat_ident): Return token consumed.
19989         (parser::parse_result): Parse new switch statement.
19990         * match.pd: Use case statements where appropriate.
19992 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19994         PR rtl-optimization/58066
19995         * calls.c (expand_call): Precompute register parameters before stack
19996         alignment is performed.
19998 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20000         PR rtl-optimization/66838
20001         * postreload.c (reload_cse_move2add): Also process
20002         CALL_INSN_FUNCTION_USAGE when resetting information of
20003         call-clobbered registers.
20005 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20006             Cesar Philippidis  <cesar@codesourcery.com>
20007             Chung-Lin Tang  <cltang@codesourcery.com>
20009         * config/nios2/constraints.md (U, v): New constraints.
20010         * config/nios2/predicates.md (rdprs_dcache_operand): New.
20011         (ldstex_memory_operand): New.
20012         * config/nios2/sync.md: New file.
20013         * config/nios2/nios2.md (unspecv): Add new builtin function
20014         UNSPECV codes.
20015         (rdprs, flushd, flushda, wrpie, eni): New patterns.
20016         (top-level): Include sync.md.
20017         * config/nios2/nios2.c (N2_FTYPES): Add function types for
20018         new builtins.
20019         (N2_BUILTINS): Add arch field setting, add new builtins.
20020         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20021         for arch field.
20022         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20023         Also handle ldex/stex/ldsex/stsex builtins.
20024         (nios2_expand_rdprs_builtin): New function.
20025         (nios2_expand_cache_builtin): New function.
20026         (nios2_expand_wrpie_builtin): New function.
20027         (nios2_expand_eni_builtin): New function.
20028         (nios2_expand_builtin): Add arch field handling and new builtin
20029         cases.
20030         * doc/extend.texi (Altera Nios II Built-in Functions): Document
20031         new builtins.
20032         * doc/md.texi (Machine Constraints): Document U and v constraints.
20034 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20035             Cesar Philippidis  <cesar@codesourcery.com>
20036             Chung-Lin Tang  <cltang@codesourcery.com>
20038         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20039         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20040         callee_save_reg_size and uses_anonymous_args fields.
20041         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20042         (nios2_create_cfa_notes): New function.
20043         (nios2_adjust_stack): New function for adjusting stack.
20044         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20045         Use nios2_adjust_stack.
20046         (nios2_expand_epilogue): Likewise.
20047         (nios2_expand_return): New function.
20048         (nios2_can_use_return_insn): Update for CDX pop.n usage.
20049         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20050         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20051         * config/nios2/nios2.md (return): Use nios2_expand_return.
20053 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20054             Cesar Philippidis  <cesar@codesourcery.com>
20055             Chung-Lin Tang  <cltang@codesourcery.com>
20057         * config/nios2/predicates.md (pop_operation): New.
20058         (ldwm_operation, stwm_operation): New.
20059         (nios2_hard_register_operand): New.
20060         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20061         (ldstwm_operation_p): Declare.
20062         (gen_ldstwm_peep): Declare.
20063         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20064         (base_reg_adjustment_p): New.
20065         (pop_operation_p): New.
20066         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20067         (nios2_ldstwm_regset_p): New.
20068         (ldstwm_operation_p): New.
20069         (gen_ldst): New.
20070         (nios2_ldst_parallel): New.
20071         (struct ldswm_operand): Declare.
20072         (compare_ldstwm_operands): New.
20073         (can_use_cdx_ldstw): New.
20074         (gen_ldstwm_peep): New.
20075         * config/nios2/nios2-ldstwm.sml: New.
20076         * config/nios2/nios2.md: Include ldstwm.md.
20077         * config/nios2/ldstwm.md: Generated.
20079 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20080             Cesar Philippidis  <cesar@codesourcery.com>
20081             Chung-Lin Tang  <cltang@codesourcery.com>
20083         * config/nios2/nios2.h (LABEL_ALIGN): Define.
20084         (REG_ALLOC_ORDER): Define.
20085         (ADJUST_REG_ALLOC_ORDER): Define.
20086         (HONOR_REG_ALLOC_ORDER): Define.
20087         (CDX_REG_P): Define.
20088         (ANDCLEAR_INT): Define.
20089         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20090         (nios2_label_align): Declare.
20091         (nios2_cdx_narrow_form_p): Declare.
20092         (nios2_adjust_reg_alloc_order): Declare.
20093         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20094         operation.
20095         (nios2_large_unspec_reloc_p): New function, split from...
20096         (nios2_legitimate_pic_operand_p): ...here.
20097         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20098         (nios2_print_operand_punct_valid_p): New.
20099         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
20100         (split_mem_address): New.
20101         (split_alu_insn): New.
20102         (cdxreg): New.
20103         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20104         (enum nios2_add_insn_kind): New.
20105         (nios2_add_insn_names, nios2_add_insn_narrow): New.
20106         (nios2_add_insn_classify): New.
20107         (nios2_add_insn_asm): New.
20108         (nios2_cdx_narrow_form_p): New.
20109         (label_align, min_labelno, max_labelno): New.
20110         (nios2_reorg): New.
20111         (nios2_label_align): New.
20112         (nios2_adjust_reg_alloc_order): New.
20113         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20114         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20115         * config/nios2/constraints.md (P): New constraint.
20116         * config/nios2/predicates.md (const_and_operand): New.
20117         (and_operand): New.
20118         (stack_memory_operand): New.
20119         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20120         (length): Update to use nios2_cdx_narrow_form_p().
20121         (type): Add new insn type values.
20122         (control, alu, st, ld, shift): Update insn reservations with
20123         new insn type values.
20124         (*high, *lo_sum): Define new insn patterns for constant generation.
20125         (movqi_internal, movhi_internal, movsi_internal): Reduce
20126         alternatives, update asm template to handle CDX variants, update
20127         type attributes.
20128         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20129         template, update type attributes.
20130         (extendhisi2, extendqi<mode>2): Likewise.
20131         (addsi3): Change to use function for asm string.
20132         (subsi3): Add CDX notation to asm template, update type attributes.
20133         (negsi3, one_cmplsi3): Likewise.
20134         (andsi3): New pattern, specialized from logical patterns.
20135         (<code>si3): Remove and case, combine alternatives, update asm
20136         template.
20137         (<shift_op>si3): Add CDX notation, update type attributes.
20138         (rotrsi3): Update type attribute.
20139         (*merge, extzv, insv): New insn patterns.
20140         (return): Change to define_expand.
20141         (simple_return): Add CDX notation, update type attributes.
20142         (indirect_jump): Add CDX notation.
20143         (jump): Update asm cases, update length attribute expression.
20144         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20145         (nios2_cbranch): Update asm cases and length attribute expression
20146         to handle CDX variants.
20147         (nios2_cmp<code>): Update asm template.
20148         (nop): Add CDX notation, update type attributes.
20149         (trap): Add CDX notation.
20150         (ctrapsi4): Update asm cases and length attribute expression to
20151         handle CDX variant.
20152         * doc/md.texi (Machine Constraints): Document P constraint.
20154 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20155             Cesar Philippidis  <cesar@codesourcery.com>
20156             Chung-Lin Tang  <cltang@codesourcery.com>
20158         * config/nios2/nios2.h (SMALL_INT12): New macro.
20159         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20160         (nios2_valid_addr_expr_p): Use it.
20161         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20162         with implicit "io" instructions on R2.
20163         * config/nios2/constraints.md (w): New constraint.
20164         * config/nios2/predicates.md (ldstio_memory_operand): New.
20165         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20166         operand predicate and constraint.
20167         (ld<bh>io_signed, st<bhw>io>): Likewise.
20168         * doc/md.texi (Machine Constraints): Document w constraint.
20170 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20171             Cesar Philippidis  <cesar@codesourcery.com>
20172             Chung-Lin Tang  <cltang@codesourcery.com>
20174         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20175         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20176         Nios II architecture level.
20177         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20178         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20179         (OPTION_DEFAULT_SPECS): Define.
20180         (ASM_SPEC): Add -march= spec strings.
20181         * config/nios2/nios2.c (nios2_option_override): Check for
20182         conflicts involving new options.
20183         * config.gcc (nios2*-*-*): Support --with-arch=.
20184         * doc/invoke.texi (Option Summary, Nios II Options): Document
20185         -march=, -mbmx, and -mcdx.
20187 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
20189         PR rtl-optimization/66626
20190         * lra-constraints.c (lra_constraints): Prevent equivalence
20191         substitution for static chain pseudo in functions with nonlocal
20192         goto.
20194 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20196         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20197         (nios2_emit_stack_limit_check): Add size parameter.  Handle
20198         -fstack-limit-symbol as well as -fstack-limit-register.
20199         (nios2_expand_prologue): Emit only a single stack limit check,
20200         even if multiple stack adjustments are required.
20201         (nios2_option_override): Diagnose unsupported combination of -fpic
20202         and -stack-limit-symbol.
20204 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
20206         * Makefile.in (top_srcdir): New.
20207         * configure.ac: Use AM_ZLIB.
20208         * configure: Regeneated.
20210 2015-07-14  Matthias Klose  <doko@ubuntu.com>
20212         PR target/66840
20213         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20215 2015-07-14  Richard Biener  <rguenther@suse.de>
20217         PR tree-optimization/66863
20218         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20219         what we record for conversion use stmt lhs inequalities.
20221 2015-07-14  Richard Biener  <rguenther@suse.de>
20223         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20224         (decision_tree::gen_gimple): Likewise.
20226 2015-07-14  Tom de Vries  <tom@codesourcery.com>
20228         * gcc.c (greater_than_spec_func): Declare forward.
20229         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20230         -ftree-parallelize-loops={0,1}.
20231         (static_spec_functions): Add greater_than_spec_func function with name
20232         "gt".
20233         (greater_than_spec_func): New function.
20235 2015-07-14  Richard Biener  <rguenther@suse.de>
20237         * tree-ssa-dom.c (record_temporary_equivalences): Merge
20238         wideing type conversion case from record_equivalences_from_incoming_edge
20239         and use record_equality to record equivalences.
20240         (record_equivalences_from_incoming_edge): Call
20241         record_temporary_equivalences.
20243 2015-07-14  Richard Biener  <rguenther@suse.de>
20245         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20246         (struct if_expr): New.
20247         (struct with_expr): Likewise.
20248         (is_a_helper): Add helpers for if_expr and with_expr.
20249         (struct simplify): Add simplify_kind enum and member.  Remove
20250         ifexpr_vec member.
20251         (simplify::simplify): Adjust.
20252         (lower_commutative): Adjust.
20253         (lower_opt_convert): Likewise.
20254         (lower_cond): Likewise.
20255         (replace_id): Handle with_expr and if_expr.
20256         (lower_for): Adjust.
20257         (dt_simplify::gen_1): New recursive worker, split out from ...
20258         (dt_simplify::gen): ... here.  Deal with if and with expansion
20259         recursively.
20260         (capture_info::capture_info): Take context argument
20261         (capture_info::walk_result): Only analyze specific result.
20262         (parser::parse_result): New function.
20263         (parser::parse_simplify): Adjust to parse ifs with then end
20264         else case.
20265         (parser::parse_if): Simplify.
20266         (parser::parse_pattern): Pass down simplify kind.
20267         * match.pd: Convert if structure to new syntax.
20269 2015-07-13  Marek Polacek  <polacek@redhat.com>
20271         * rtl.c (rtx_equal_p_cb): Fix typo.
20273 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
20275         * omega.h: Don't include config.h, don't include params.h again if
20276         omega.h has already been included.
20277         * graphite-poly.h: Include sese.h.
20278         * graphite.c: Don't include sese.h, remove needless includes and
20279         minimize includes outside #ifdef HAVE_isl block.
20280         * graphite-blocking.c: Don't include sese.h, remove needless includes,
20281         and wrap entire file in #ifdef HAVE_isl
20282         * graphite-dependences.c: Likewise.
20283         * graphite-interchange.c: Likewise.
20284         * graphite-isl-ast-to-gimple.c: Likewise.
20285         * graphite-optimize-isl.c: Likewise.
20286         * graphite-poly.c: Likewise.
20287         * graphite-scop-detection.c: Likewise.
20288         * graphite-sese-to-poly.c: Likewise.
20290 2015-07-13  Tom de Vries  <tom@codesourcery.com>
20292         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20294 2015-07-13  Renlin Li  <renlin.li@arm.com>
20296         PR rtl/66556
20297         * simplify-rtx.c (simplify_const_relational_operation): Add
20298         side_effects_p checks.
20300 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
20302         * bitmap.h: Fix double word typos.
20303         * builtins.c: Same.
20304         * calls.c: Same.
20305         * cfgloopmanip.c: Same.
20306         * cgraph.c: Same.
20307         * cgraph.h: Same.
20308         * cgraphclones.c: Same.
20309         * combine.c: Same.
20310         * config/aarch64/aarch64-protos.h: Same.
20311         * config/aarch64/aarch64.c: Same.
20312         * config/aarch64/aarch64.md: Same.
20313         * config/arm/arm.md: Same.
20314         * config/arm/arm1020e.md: Same.
20315         * config/arm/arm1026ejs.md: Same.
20316         * config/arm/arm926ejs.md: Same.
20317         * config/arm/fa526.md: Same.
20318         * config/arm/fa606te.md: Same.
20319         * config/arm/fa626te.md: Same.
20320         * config/arm/fa726te.md: Same.
20321         * config/arm/fmp626.md: Same.
20322         * config/darwin.c: Same.
20323         * config/epiphany/epiphany.c: Same.
20324         * config/frv/frv.c: Same.
20325         * config/ft32/ft32.c: Same.
20326         * config/gnu-user.h: Same.
20327         * config/h8300/constraints.md: Same.
20328         * config/i386/i386.c: Same.
20329         * config/i386/i386.md: Same.
20330         * config/iq2000/iq2000.md: Same.
20331         * config/mips/mips.c: Same.
20332         * config/mmix/mmix.md: Same.
20333         * config/moxie/moxie.c: Same.
20334         * config/nds32/nds32.md: Same.
20335         * config/pa/pa.h: Same.
20336         * config/rs6000/aix.h: Same.
20337         * config/rs6000/rs6000.h: Same.
20338         * config/sh/sh.c: Same.
20339         * config/tilegx/tilegx.md: Same.
20340         * config/tilepro/gen-mul-tables.cc: Same.
20341         * cse.c: Same.
20342         * dbxout.c: Same.
20343         * doc/invoke.texi: Same.
20344         * dse.c: Same.
20345         * dwarf2out.c: Same.
20346         * final.c: Same.
20347         * gcc.c: Same.
20348         * genmatch.c: Same.
20349         * gimplify.c: Same.
20350         * hash-table.h: Same.
20351         * internal-fn.c: Same.
20352         * ipa-cp.c: Same.
20353         * ipa-devirt.c: Same.
20354         * ipa-icf.c: Same.
20355         * ipa-icf.h: Same.
20356         * ipa-profile.c: Same.
20357         * ipa-prop.c: Same.
20358         * ipa-prop.h: Same.
20359         * ira.c: Same.
20360         * omp-low.c: Same.
20361         * reg-stack.c: Same.
20362         * regcprop.c: Same.
20363         * reorg.c: Same.
20364         * rtl.h: Same.
20365         * sbitmap.h: Same.
20366         * tree-eh.c: Same.
20367         * tree-inline.c: Same.
20368         * tree-sra.c: Same.
20369         * tree-ssa-dom.c: Same.
20370         * tree-ssa-loop-ivopts.c: Same.
20371         * tree-ssa-structalias.c: Same.
20372         * tree-ssa-tail-merge.c: Same.
20373         * tree-ssa-ter.c: Same.
20374         * tree-ssa-threadupdate.c: Same.
20375         * tree-ssa-uninit.c: Same.
20376         * tree-ssanames.c: Same.
20377         * tree-vect-loop-manip.c: Same.
20378         * tree-vrp.c: Same.
20379         * tree.c: Same.
20380         * valtrack.c: Same.
20381         * vec.h: Same.
20383 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20385         PR middle-end/66726
20386         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20387         tree_ssa_phiopt_worker): Call it.
20389 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20391         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20392         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20393         REG_EQUAL note.
20395 2015-07-11  Marek Polacek  <polacek@redhat.com>
20397         PR middle-end/66353
20398         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20399         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20400         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20401         rather than bb_has_abnormal_call_pred.
20402         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20403         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20404         rather than bb_has_abnormal_call_pred.
20406 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
20408         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20409         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20410         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20411         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20412         v850_legitimate_address_p): New functions.
20413         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20415 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
20417         PR target/66819
20418         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20419         indirect sibcall with register arguments if register available
20420         for argument passing.
20421         (init_cumulative_args): Set cfun->machine->arg_reg_available
20422         to (cum->nregs > 0) or to true if function has a variable
20423         argument list.
20424         (function_arg_advance_32): Set cfun->machine->arg_reg_available
20425         to false if cum->nregs <= 0.
20426         * config/i386/i386.h (machine_function): Add arg_reg_available.
20428 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20430         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20431         and gen_higpart instead of gen_rtx_SUBREG.
20432         * config/i386/i386.md
20433         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20434         (read-modify peephole2): Use gen_lowpart instead of
20435         gen_rtx_SUBREG for operand 5.
20437 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20439         * config/tilepro/gen-mul-tables.cc (main): Change include list for
20440         generated files.
20441         * config/tilepro/mul-tables.c: Regenerate.
20442         * config/tilegx/mul-tables.c: Regenerate.
20444 2015-07-10  Richard Biener  <rguenther@suse.de>
20446         * fold-const.c (distribute_bit_expr): Remove.
20447         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20448         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20449         to A & (B | C) and simplifying A << C1 << C2 to ...
20450         * match.pd: ... patterns here.
20452 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
20454         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20455         Mark mem as READONLY and NOTRAP for PIC symbol.
20457 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20459         * gimple-predict.h: New file.
20460         (gimple_predict_predictor, gimple_predict_set_predictor,
20461         gimple_predict_outcome, gimple_predict_set_outcome,
20462         gimple_build_predict): Relocate here.
20463         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20464         gimple_predict_outcome, gimple_predict_set_outcome): Move to
20465         gimple-predict.h.
20466         * gimple.c (gimple_build_predict): Move to gimple-predict.h
20467         * basic-block.h: Don't include cfghooks.h.
20468         * backend.h: Don't include predict.h.
20469         * cfghooks.h: Include predict.h.
20470         * gimple-pretty-print.c: Include gimple-predict.h.
20471         * gimplify.c: Likwise.
20472         * predict.c: Adjust includes.
20473         * tree-inline.c: Likewise.
20474         * asan.c: Likewise.
20475         * auto-inc-dec.c: Likewise.
20476         * auto-profile.c: Likewise.
20477         * bb-reorder.c: Likewise.
20478         * builtins.c: Likewise.
20479         * caller-save.c: Likewise.
20480         * calls.c: Likewise.
20481         * cfganal.c: Likewise.
20482         * cfgbuild.c: Likewise.
20483         * cfg.c: Likewise.
20484         * cfgcleanup.c: Likewise.
20485         * cfgexpand.c: Likewise.
20486         * cfghooks.c: Likewise.
20487         * cfgloopanal.c: Likewise.
20488         * cfgloop.c: Likewise.
20489         * cfgloopmanip.c: Likewise.
20490         * cfgrtl.c: Likewise.
20491         * cgraph.c: Likewise.
20492         * cgraphunit.c: Likewise.
20493         * combine.c: Likewise.
20494         * cprop.c: Likewise.
20495         * cse.c: Likewise.
20496         * dce.c: Likewise.
20497         * dojump.c: Likewise.
20498         * dse.c: Likewise.
20499         * except.c: Likewise.
20500         * expmed.c: Likewise.
20501         * expr.c: Likewise.
20502         * final.c: Likewise.
20503         * fold-const.c: Likewise.
20504         * function.c: Likewise.
20505         * fwprop.c: Likewise.
20506         * gcc-plugin.h: Likewise.
20507         * gcse.c: Likewise.
20508         * genattrtab.c: Likewise.
20509         * genemit.c: Likewise.
20510         * gengtype.c: Likewise.
20511         * genopinit.c: Likewise.
20512         * genoutput.c: Likewise.
20513         * genpreds.c: Likewise.
20514         * genrecog.c: Likewise.
20515         * gimple-fold.c: Likewise.
20516         * gimple-iterator.c: Likewise.
20517         * gimple-ssa-isolate-paths.c: Likewise.
20518         * gimple-ssa-strength-reduction.c: Likewise.
20519         * graph.c: Likewise.
20520         * graphite-blocking.c: Likewise.
20521         * graphite.c: Likewise.
20522         * graphite-dependences.c: Likewise.
20523         * graphite-interchange.c: Likewise.
20524         * graphite-isl-ast-to-gimple.c: Likewise.
20525         * graphite-optimize-isl.c: Likewise.
20526         * graphite-poly.c: Likewise.
20527         * graphite-scop-detection.c: Likewise.
20528         * graphite-sese-to-poly.c: Likewise.
20529         * haifa-sched.c: Likewise.
20530         * ifcvt.c: Likewise.
20531         * internal-fn.c: Likewise.
20532         * ipa-cp.c: Likewise.
20533         * ipa-profile.c: Likewise.
20534         * ipa-split.c: Likewise.
20535         * ipa-utils.c: Likewise.
20536         * ira-build.c: Likewise.
20537         * ira-color.c: Likewise.
20538         * ira-conflicts.c: Likewise.
20539         * ira-costs.c: Likewise.
20540         * ira-emit.c: Likewise.
20541         * ira-lives.c: Likewise.
20542         * jump.c: Likewise.
20543         * loop-doloop.c: Likewise.
20544         * loop-init.c: Likewise.
20545         * loop-invariant.c: Likewise.
20546         * loop-unroll.c: Likewise.
20547         * lower-subreg.c: Likewise.
20548         * lra-assigns.c: Likewise.
20549         * lra.c: Likewise.
20550         * lra-coalesce.c: Likewise.
20551         * lra-constraints.c: Likewise.
20552         * lra-lives.c: Likewise.
20553         * lto-cgraph.c: Likewise.
20554         * lto-streamer-in.c: Likewise.
20555         * mode-switching.c: Likewise.
20556         * modulo-sched.c: Likewise.
20557         * omp-low.c: Likewise.
20558         * optabs.c: Likewise.
20559         * passes.c: Likewise.
20560         * postreload.c: Likewise.
20561         * postreload-gcse.c: Likewise.
20562         * profile.c: Likewise.
20563         * recog.c: Likewise.
20564         * regstat.c: Likewise.
20565         * reload1.c: Likewise.
20566         * reorg.c: Likewise.
20567         * rtlanal.c: Likewise.
20568         * sched-ebb.c: Likewise.
20569         * sel-sched-ir.c: Likewise.
20570         * sese.c: Likewise.
20571         * shrink-wrap.c: Likewise.
20572         * simplify-rtx.c: Likewise.
20573         * stmt.c: Likewise.
20574         * store-motion.c: Likewise.
20575         * tracer.c: Likewise.
20576         * trans-mem.c: Likewise.
20577         * tree-call-cdce.c: Likewise.
20578         * tree-cfg.c: Likewise.
20579         * tree-cfgcleanup.c: Likewise.
20580         * tree-chkp.c: Likewise.
20581         * tree-complex.c: Likewise.
20582         * tree-eh.c: Likewise.
20583         * tree-if-conv.c: Likewise.
20584         * tree-loop-distribution.c: Likewise.
20585         * tree-outof-ssa.c: Likewise.
20586         * tree-parloops.c: Likewise.
20587         * tree-predcom.c: Likewise.
20588         * tree-pretty-print.c: Likewise.
20589         * tree-profile.c: Likewise.
20590         * tree-sra.c: Likewise.
20591         * tree-ssa.c: Likewise.
20592         * tree-ssa-coalesce.c: Likewise.
20593         * tree-ssa-dce.c: Likewise.
20594         * tree-ssa-dom.c: Likewise.
20595         * tree-ssa-forwprop.c: Likewise.
20596         * tree-ssa-ifcombine.c: Likewise.
20597         * tree-ssa-loop-ch.c: Likewise.
20598         * tree-ssa-loop-im.c: Likewise.
20599         * tree-ssa-loop-ivcanon.c: Likewise.
20600         * tree-ssa-loop-ivopts.c: Likewise.
20601         * tree-ssa-loop-manip.c: Likewise.
20602         * tree-ssa-loop-prefetch.c: Likewise.
20603         * tree-ssa-loop-unswitch.c: Likewise.
20604         * tree-ssa-math-opts.c: Likewise.
20605         * tree-ssa-phiopt.c: Likewise.
20606         * tree-ssa-pre.c: Likewise.
20607         * tree-ssa-reassoc.c: Likewise.
20608         * tree-ssa-sink.c: Likewise.
20609         * tree-ssa-tail-merge.c: Likewise.
20610         * tree-ssa-threadedge.c: Likewise.
20611         * tree-ssa-threadupdate.c: Likewise.
20612         * tree-switch-conversion.c: Likewise.
20613         * tree-tailcall.c: Likewise.
20614         * tree-vect-data-refs.c: Likewise.
20615         * tree-vect-loop.c: Likewise.
20616         * tree-vect-loop-manip.c: Likewise.
20617         * tree-vectorizer.c: Likewise.
20618         * tree-vrp.c: Likewise.
20619         * ubsan.c: Likewise.
20620         * value-prof.c: Likewise.
20621         * varasm.c: Likewise.
20622         * var-tracking.c: Likewise.
20623         * config/aarch64/aarch64-builtins.c: Likewise.
20624         * config/aarch64/aarch64.c: Likewise.
20625         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20626         * config/alpha/alpha.c: Likewise.
20627         * config/arc/arc.c: Likewise.
20628         * config/arm/arm.c: Likewise.
20629         * config/avr/avr.c: Likewise.
20630         * config/bfin/bfin.c: Likewise.
20631         * config/c6x/c6x.c: Likewise.
20632         * config/cr16/cr16.c: Likewise.
20633         * config/cris/cris.c: Likewise.
20634         * config/darwin.c: Likewise.
20635         * config/darwin-c.c: Likewise.
20636         * config/epiphany/epiphany.c: Likewise.
20637         * config/epiphany/mode-switch-use.c: Likewise.
20638         * config/epiphany/resolve-sw-modes.c: Likewise.
20639         * config/fr30/fr30.c: Likewise.
20640         * config/frv/frv.c: Likewise.
20641         * config/ft32/ft32.c: Likewise.
20642         * config/h8300/h8300.c: Likewise.
20643         * config/i386/i386.c: Likewise.
20644         * config/i386/winnt.c: Likewise.
20645         * config/ia64/ia64.c: Likewise.
20646         * config/iq2000/iq2000.c: Likewise.
20647         * config/lm32/lm32.c: Likewise.
20648         * config/m32c/m32c.c: Likewise.
20649         * config/m32r/m32r.c: Likewise.
20650         * config/m68k/m68k.c: Likewise.
20651         * config/mcore/mcore.c: Likewise.
20652         * config/mep/mep.c: Likewise.
20653         * config/microblaze/microblaze.c: Likewise.
20654         * config/mips/mips.c: Likewise.
20655         * config/mmix/mmix.c: Likewise.
20656         * config/mn10300/mn10300.c: Likewise.
20657         * config/moxie/moxie.c: Likewise.
20658         * config/msp430/msp430.c: Likewise.
20659         * config/nds32/nds32.c: Likewise.
20660         * config/nds32/nds32-cost.c: Likewise.
20661         * config/nds32/nds32-fp-as-gp.c: Likewise.
20662         * config/nds32/nds32-intrinsic.c: Likewise.
20663         * config/nds32/nds32-isr.c: Likewise.
20664         * config/nds32/nds32-md-auxiliary.c: Likewise.
20665         * config/nds32/nds32-memory-manipulation.c: Likewise.
20666         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20667         * config/nds32/nds32-predicates.c: Likewise.
20668         * config/nios2/nios2.c: Likewise.
20669         * config/nvptx/nvptx.c: Likewise.
20670         * config/pa/pa.c: Likewise.
20671         * config/pdp11/pdp11.c: Likewise.
20672         * config/rl78/rl78.c: Likewise.
20673         * config/rs6000/rs6000.c: Likewise.
20674         * config/rx/rx.c: Likewise.
20675         * config/s390/s390.c: Likewise.
20676         * config/sh/sh.c: Likewise.
20677         * config/sh/sh-mem.cc: Likewise.
20678         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20679         * config/sh/sh_treg_combine.cc: Likewise.
20680         * config/sparc/sparc.c: Likewise.
20681         * config/spu/spu.c: Likewise.
20682         * config/stormy16/stormy16.c: Likewise.
20683         * config/tilegx/tilegx.c: Likewise.
20684         * config/tilepro/tilepro.c: Likewise.
20685         * config/v850/v850.c: Likewise.
20686         * config/vax/vax.c: Likewise.
20687         * config/visium/visium.c: Likewise.
20688         * config/xtensa/xtensa.c: Likewise.
20690 2015-07-10  Richard Biener  <rguenther@suse.de>
20692         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20693         (decision_tree::gen_gimple): Likewise.
20694         (decision_tree::gen_generic): Likewise.
20696 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20698         PR target/66813
20699         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20700         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20702 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
20704         PR middle-end/66820
20705         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20706         or ORT_TASK contexts.
20707         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20708         is non-zero.
20710 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20712         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20713         above function.
20715 2015-07-10  Tom de Vries  <tom@codesourcery.com>
20717         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20718         insert nit + 1 bound.
20720 2015-07-10  Richard Biener  <rguenther@suse.de>
20722         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20723         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20724         (if_convertible_loop_p_1): For this always compute bb predicates.
20725         (if_convertible_loop_p): And free them.
20727 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20729         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20730         in dump message.
20732 2015-07-10  Richard Biener  <rguenther@suse.de>
20734         PR tree-optimization/66823
20735         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20736         inverted predicate.
20738 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
20740         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20741         to handle mips[32|64]r3 and mips[32|64]r5.
20743 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
20745         PR middle-end/66633
20746         * tree-nested.c (get_static_chain): Or in a flag into
20747         info->static_chain_added.
20748         (get_frame_field, get_nonlocal_debug_decl): Likewise.
20749         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20750         2015-07-01 changes.
20751         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20752         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20753         add it to clauses.
20755         PR tree-optimization/66718
20756         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20757         field.
20758         (vect_simd_lane_linear): New function.
20759         (vectorizable_simd_clone_call): Support using linear arguments for
20760         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20762 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20764         PR target/66821
20765         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20767 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20769         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20770         Use machine mode, not enum machine_mode in the prototype.
20772         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20773         classify 128-bit floating point support.
20774         (FLOAT128_IBM_P): Likewise.
20775         (FLOAT128_VECTOR_P): Likewise.
20776         (FLOAT128_2REG_P): Likewise.
20777         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20778         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20779         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20780         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20782         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20783         tests against TFmode/TDmode, since those modes do not use VSX
20784         addresses.
20785         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20786         support.
20787         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20788         tests against TFmode, etc.
20789         (invalid_e500_subreg): Add tests against IFmode/KFmode.
20790         (reg_offset_addressing_ok_p): Likewise.
20791         (rs6000_legitimate_offset_address_p): Likewise.
20792         (rs6000_legitimize_address): Likewise.
20793         (rs6000_legitimize_reload_address): Likewise.
20794         (rs6000_legitimate_address_p): Clean up tests against TFmode and
20795         TDmode to use the new helper macros, which will include IFmode and
20796         KFmode.
20797         (rs6000_emit_move): Likewise.
20798         (rs6000_darwin64_record_arg_recurse): Likewise.
20799         (print_operand): Likewise.
20800         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20801         that uses a single vector register as a vector and not as a
20802         floating point register in terms of the calling sequence.
20803         (rs6000_discover_homogeneous_aggregate): Likewise.
20804         (rs6000_return_in_memory): Likewise.
20805         (init_cumulative_args): Likewise.
20806         (rs6000_function_arg_boundary): Likewise.
20807         (rs6000_function_arg_advance_1): Likewise.
20808         (rs6000_function_arg): Likewise.
20809         (rs6000_pass_by_reference): Likewise.
20810         (rs6000_gimplify_va_arg): Likewise.
20811         (rs6000_secondary_reload_memory): Use machine_mode not enum
20812         machine mode.
20813         (rs6000_split_multireg_move): Use new helper macros.
20814         (spe_func_has_64bit_regs_p): Likewise.
20815         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20816         (output_toc): Use new helper macros.
20817         (rs6000_register_move_cost): Likewise.
20818         (rs6000_function_value): Add IEEE 128-bit floating point calling
20819         sequence support.
20820         (rs6000_libcall_value): Likewise.
20821         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20822         floating point support.
20823         (rs6000_vector_mode_supported_p): Likewise.
20825 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
20827         PR rtl-optimization/66782
20828         * lra-int.h (struct lra_insn_recog_data): Add comment about
20829         clobbered hard regs for arg_hard_regs.
20830         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20831         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20832         Add condition for processing used hard regs.
20833         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20834         Process clobbered hard regs.
20836 2015-07-09  Michael Matz  <matz@suse.de>
20838         * genmatch.c (fprintf_indent): New function.
20839         (operand::gen_transform): Add indent parameter.
20840         (expr::gen_transform, c_expr::gen_transform,
20841         capture::gen_transform): Ditto and use fprintf_indent.
20842         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20843         (dt_operand::gen, dt_operand::gen_predicate,
20844         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20845         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20846         (decision_tree::gen_gimple): Adjust calls and indent generated
20847         code.
20848         (decision_tree::gen_generic): Ditto.
20849         (write_predicate): Ditto.
20851 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20853         PR target/66814
20854         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20855         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20856         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20857         {GENERAL,SSE,MMX}_REG_P where appropriate.
20859 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20861         * lto-streamer.h: Don't include target.h and alloc-pool.h.
20862         * builtins.c: Adjust includes.
20863         * gimple.c: Likewise.
20864         * ipa-icf.c: Likewise.
20865         * lto-opts.c: Likewise.
20866         * ipa-reference.c: Likewise.
20867         * lto-section-out.c: Likewise.
20868         * lto-streamer-in.c: Likewise.
20869         * lto-streamer-out.c: Likewise.
20870         * opts-global.c: Likewise.
20871         * symtab.c: Likewise.
20872         * tree-chkp.c: Likewise.
20873         * tree-ssa-live.c: Likewise.
20874         * tree-streamer-in.c: Likewise.
20875         * tree-streamer-out.c: Likewise.
20876         * config/darwin.c: Likewise.
20877         * config/i386/winnt.c: Likewise.
20879 2015-07-09  Richard Biener  <rguenther@suse.de>
20881         * genmatch.c (struct expr): Add force_single_use flag.
20882         (expr::expr): Add copy constructor.
20883         (capture_info::walk_match): Gather force_single_use captures.
20884         (expr::gen_transform): Use possibly NULLified sequence.
20885         (dt_simplify::gen): Apply single-use restrictions by NULLifying
20886         seq if any constrained expr is not single-use.
20887         (parser::parse_expr): Refactor to allow multiple flags.  Handle
20888         's' flag to force an expression have a single-use if the pattern
20889         simplifies to more than one statement.
20890         * match.pd: Convert most single_use conditionals to :s flags.
20892 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20894         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20895         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20896         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20898 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20900         * flags.h: Don't include flag-types.h or options.h.
20901         * opts-common.c: Adjust includes.
20902         * opts-global.c: Likewise.
20903         * common/config/epiphany/epiphany-common.c: Likewise.
20905 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20907         PR target/66818
20908         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20909         for IA MCU.
20911 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20913         PR target/66817
20914         * config/i386/i386.c (ix86_return_in_memory): Return true
20915         if int_size_in_bytes returns negative for IA MCU.
20917 2015-07-09  Marek Polacek  <polacek@redhat.com>
20919         PR tree-optimization/66718
20920         * Makefile.in (OBJS): Add gimple-laddress.o.
20921         * passes.def: Schedule pass_laddress.
20922         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20923         * tree-pass.h (make_pass_laddress): Declare.
20924         * gimple-laddress.c: New file.
20926 2015-07-09  Richard Biener  <rguenther@suse.de>
20928         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20930 2015-07-09  Richard Biener  <rguenther@suse.de>
20932         PR tree-optimization/66807
20933         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20935 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
20937         * function.c (stack_protect_epilogue): Use if rather than switch for
20938         check targetm.have_stack_protect_test.
20940 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20942         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20943         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20944         * config/arc/arc.h: Likewise.
20945         * config/arm/arm.h: Likewise.
20946         * config/bfin/bfin.h: Likewise.
20947         * config/epiphany/epiphany.h: Likewise.
20948         * config/frv/frv.h: Likewise.
20949         * config/ia64/ia64.h: Likewise.
20950         * config/iq2000/iq2000.h: Likewise.
20951         * config/lm32/lm32.h: Likewise.
20952         * config/m32r/m32r.h: Likewise.
20953         * config/mcore/mcore.h: Likewise.
20954         * config/mep/mep.h: Likewise.
20955         * config/microblaze/microblaze.h: Likewise.
20956         * config/mips/mips.h: Likewise.
20957         * config/mmix/mmix.h: Likewise.
20958         * config/mn10300/mn10300.h: Likewise.
20959         * config/nds32/nds32.h: Likewise.
20960         * config/nios2/nios2.h: Likewise.
20961         * config/pa/pa.h: Likewise.
20962         * config/rl78/rl78.h: Likewise.
20963         * config/sh/sh.h: Likewise.
20964         * config/sparc/sparc.h: Likewise.
20965         * config/stormy16/stormy16.h: Likewise.
20966         * config/tilegx/tilegx.h: Likewise.
20967         * config/tilepro/tilepro.h: Likewise.
20968         * config/v850/v850.h: Likewise.
20969         * config/xtensa/xtensa.h: Likewise.
20970         * doc/tm.texi: Regenerate.
20971         * doc/tm.texi.in: Adjust.
20972         * combine.c (simplify_set): Likewise.
20973         (simplify_comparison): Likewise.
20974         * expr.c (store_constructor): Likewise.
20975         * internal-fn.c (expand_arith_overflow): Likewise.
20976         * reload.c (push_reload): Likewise.
20977         (find_reloads): Likewise.
20978         (find_reloads_subreg_address): Likewise.
20979         * reload1.c (eliminate_regs_1): Likewise.
20980         * rtlanal.c (nonzero_bits1): Likewise.
20981         (num_sign_bit_copies1): Likewise.
20982         * simplify-rtx.c (simplify_truncation): Likewise.
20984 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20986         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20987         of AUTO_INC_DEC with the preprocessor.
20988         * combine.c (combine_instructions): Likewise.
20989         (can_combine_p): Likewise.
20990         (try_combine): Likewise.
20991         * emit-rtl.c (try_split): Likewise.
20992         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20993         * lower-subreg.c (resolve_simple_move): Likewise.
20994         * lra.c (update_inc_notes): Likewise.
20995         * recog.c (asm_operand_ok): Likewise.
20996         (constrain_operands): Likewise.
20997         * regrename.c (scan_rtx_address): Likewise.
20998         * reload.c (update_auto_inc_notes): Likewise.
20999         (reg_inc_found_and_valid_p): Likewise.
21000         * reload1.c (reload): Likewise.
21001         (emit_input_reload_insns): Likewise.
21002         (delete_output_reload): Likewise.
21003         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21004         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21006 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21008         * rtl.h: Always define AUTO_INC_DEC.
21009         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21010         * combine.c (combine_instructions): Likewise.
21011         (can_combine_p): Likewise.
21012         (try_combine): Likewise.
21013         * emit-rtl.c (try_split): Likewise.
21014         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21015         * lower-subreg.c (resolve_simple_move): Likewise.
21016         * lra.c (update_inc_notes): Likewise.
21017         * recog.c (asm_operand_ok): Likewise.
21018         (constrain_operands): Likewise.
21019         * regrename.c (scan_rtx_address): Likewise.
21020         * reload.c (update_auto_inc_notes): Likewise.
21021         (find_equiv_reg): Likewise.
21022         * reload1.c (reload): Likewise.
21023         (reload_as_needed): Likewise.
21024         (choose_reload_regs): Likewise.
21025         (emit_input_reload_insns): Likewise.
21026         (delete_output_reload): Likewise.
21027         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21028         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21030 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21032         * combine.c (can_combine_def_p): Don't check the value of
21033         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21034         (combinable_i3pat): Likewise.
21035         (mark_used_regs_combine): Likewise.
21036         * regrename.c (rename_chains): Likewise.
21037         * reload.c (find_reloads_address): Likewise.
21038         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21040 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21042         * combine.c (update_rsp_from_reg_equal): Don't check if
21043         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21044         (reg_nonzero_bits_for_combine): Likewise.
21045         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21046         1.
21047         * config/frv/frv.h: Likewise.
21048         * config/lm32/lm32.h: Likewise.
21049         * config/mep/mep.h: Likewise.
21050         * config/mips/mips.h: Likewise.
21051         * config/rs6000/rs6000.h: Likewise.
21052         * config/sh/sh.h: Likewise.
21053         * config/tilegx/tilegx.h (enum reg_class): Likewise.
21054         * config/tilepro/tilepro.h: Likewise.
21055         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21056         * doc/tm.texi: Regenerate.
21057         * doc/tm.texi.in: Adjust.
21058         * rtlanal.c (nonzero_bits1): Likewise.
21060 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21062         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21063         with the preprocessor.
21064         (combine_instructions): Likewise.
21065         (try_combine): Likewise.
21066         (subst): Likewise.
21067         (distribute_notes): Likewise.
21069 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21071         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21072         defined.
21073         (simplify_set): Likewise.
21074         * cse.c (cse_insn): Likewise.
21075         * fold-const.c (fold_single_bit_test): Likewise.
21076         (fold_unary_loc): Likewise.
21077         * postreload.c (reload_cse_simplify_set): Likewise.
21078         (reload_cse_simplify_operands): Likewise.
21080 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
21082         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21083         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21085 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21087         PR target/66746
21088         * config/i386/x86intrin.h: Include <adxintrin.h> even if
21089         __iamcu__ is defined.
21091 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21093         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21095 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
21097         PR target/66523
21098         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21099         names from preservation.
21101 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21103         PR target/66806
21104         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21105         change for IAMCU.
21106         (function_arg_advance_32): Don't pass vectors in registers for
21107         IAMCU.
21108         (function_arg_32): Likewise.
21109         (ix86_return_in_memory): Don't return vectors in registers for
21110         IAMCU.
21112 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
21114         PR middle-end/66334
21115         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21116         hard regno live at the start of BB with incoming abnormal edges.
21117         * lra-lives.c (process_bb_lives): Ditto.
21119 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
21121         PR libgomp/65099
21122         * config/nvptx/mkoffload.c (main): Create an offload image only in
21123         64-bit configurations.
21125 2015-07-08  Martin Liska  <mliska@suse.cz>
21127         PR bootstrap/66744
21128         * tree-sra.c (create_access_1): Call ctor without brackets.
21129         (create_artificial_child_access): Likewise.
21131 2015-07-08  Richard Biener  <rguenther@suse.de>
21133         PR tree-optimization/66793
21134         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21135         Properly split the block after stmts ending it.
21137 2015-07-08  Richard Biener  <rguenther@suse.de>
21139         PR tree-optimization/66794
21140         * passes.c (execute_function_todo): Assert that post-dominators
21141         are not computed.
21142         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21143         Free post-dominators.
21145 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21147         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21148         with early exit.
21150 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21152         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21153         more than or equal 8 and less than 32 when optimizing for size.
21155 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21157         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21158         COSTS_N_INSNS (1) and increment it appropriately throughout the
21159         function.
21161 2015-07-08  Richard Biener  <rguenther@suse.de>
21163         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21165 2015-07-08  Alan Modra  <amodra@gmail.com>
21167         * target.def (rtx_costs): Remove "code" param, add "mode".
21168         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21169         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
21170         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21171         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
21172         call.  Track mode when given in rtx.
21173         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
21174         (default_address_cost): Pass Pmode to rtx_cost.
21175         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21176         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21177         with NULL set.
21178         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
21179         (notreg_cost): Add mode param.  Use it.
21180         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
21181         mode param and pass to set_src_cost.  Update all calls.
21182         (hash_scan_set): Formatting.
21183         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21184         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21185         * hooks.h: Ditto.
21186         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21187         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21188         emit_store_flag): Update set_src_cost and rtx_cost calls.
21189         * auto-inc-dec.c (attempt_change): Likewise.
21190         * calls.c (precompute_register_parameters): Likewise.
21191         * combine.c (expand_compound_operation, make_extraction,
21192         force_to_mode, distribute_and_simplify_rtx): Likewise.
21193         * dojump.c (prefer_and_bit_test): Likewise.
21194         * dse.c (find_shift_sequence): Likewise.
21195         * expr.c (compress_float_constant): Likewise.
21196         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21197         * ifcvt.c (noce_try_sign_mask): Likewise.
21198         * loop-doloop.c (doloop_optimize): Likewise.
21199         * loop-invariant.c (create_new_invariant): Likewise.
21200         * lower-subreg.c (shift_cost, compute_costs): Likewise.
21201         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21202         lshift_cheap_p): Likewise.
21203         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21204         try_replace_in_use, reload_cse_move2add): Likewise.
21205         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21206         Likewise.
21207         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21208         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21209         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21210         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21211         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21212         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
21213         to rtx_cost calls.
21214         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21215         * config/arc/arc.c (arc_rtx_costs): Likewise.
21216         * config/arm/arm.c (arm_rtx_costs): Likewise.
21217         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21218         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21219         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21220         * config/cris/cris.c (cris_rtx_costs): Likewise.
21221         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21222         * config/frv/frv.c (frv_rtx_costs): Likewise.
21223         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21224         * config/i386/i386.c (ix86_rtx_costs): Likewise.
21225         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21226         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21227         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21228         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21229         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21230         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21231         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21232         * config/mep/mep.c (mep_rtx_cost): Likewise.
21233         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21234         * config/mips/mips.c (mips_rtx_costs): Likewise.
21235         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21236         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21237         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21238         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21239         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21240         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21241         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21242         * config/pa/pa.c (hppa_rtx_costs): Likewise.
21243         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21244         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21245         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21246         * config/s390/s390.c (s390_rtx_costs): Likewise.
21247         * config/sh/sh.c (sh_rtx_costs): Likewise.
21248         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21249         * config/spu/spu.c (spu_rtx_costs): Likewise.
21250         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21251         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21252         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21253         * config/v850/v850.c (v850_rtx_costs): Likewise.
21254         * config/vax/vax.c (vax_rtx_costs): Likewise.
21255         * config/visium/visium.c (visium_rtx_costs): Likewise.
21256         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21257         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21258         "code" param, and pass as outer_code to first rtx_cost call.  Pass
21259         mode to rtx_cost calls.
21260         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21261         calls.
21262         (aarch64_rtx_costs_wrapper): Update.
21263         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21264         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21265         rtx_cost calls.
21266         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21267         and rtx_cost calls.
21268         (avr_operand_rtx_cost): Similarly.
21269         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21270         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21271         * config/mips/mips.c (mips_stack_address_p): Comment typo.
21272         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21273         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21274         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21275         rtx_cost.
21276         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21277         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21278         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21279         * doc/tm.texi: Regenerate.
21281 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
21283         * tree-core.h: Include symtab.h.
21284         * rtl.h: Include hard-reg-set.h but not flags.h.
21285         (HARD_CONST): Remove condition compilation involving HARD_CONST since
21286         hard-reg-set.h is always included.
21287         * regs.h: Don't include hard-reg-set.h or rtl.h.
21288         * cfg.h: Include dominance.h.
21289         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21290         * backend.h: New.  Aggregate commonly used backend header files.
21291         * gimple-ssa.h: Don't include tree-hasher.h.
21292         * ssa.h: New.  Aggregate commonly used SSA header files.
21293         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21294         * sel-sched-ir.h: Flatten includes.
21295         * lra-int.h: Flatten completely.
21296         * sel-sched-dump.h: Flatten includes.
21297         * ira-int.h: Flatten includes.
21298         * gimple-streamer.h: Remove all includes.
21299         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21300         * resource.h: Flatten hard-reg-set.h and df.h.
21301         * sched-int.h: Flatten insn-arrt.h and df.h.
21302         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21303         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21304         * genattrtab.c (write_header): Adjust generated includes.
21305         * genautomata.c (main): Likewise.
21306         * genconditions.c (write-header): Likewise.
21307         * genemit.c (main): Likewise.
21308         * gengtype.c (open_base_files): Likewise.
21309         * genopinit.c (main): Likewise.
21310         * genoutput.c (output_prologue): Likewise.
21311         * genpeep.c (main): Likewise.
21312         * genpreds.c (write_insn_preds_c): Likewise.
21313         * genrecog.c (write_header): Likewise.
21314         * alias.c: Adjust includes.
21315         * asan.c: Likewise.
21316         * attribs.c: Likewise.
21317         * auto-inc-dec.c: Likewise.
21318         * auto-profile.c: Likewise.
21319         * bb-reorder.c: Likewise.
21320         * bt-load.c: Likewise.
21321         * builtins.c: Likewise.
21322         * caller-save.c: Likewise.
21323         * calls.c: Likewise.
21324         * ccmp.c: Likewise.
21325         * cfg.c: Likewise.
21326         * cfganal.c: Likewise.
21327         * cfgbuild.c: Likewise.
21328         * cfgcleanup.c: Likewise.
21329         * cfgexpand.c: Likewise.
21330         * cfghooks.c: Likewise.
21331         * cfgloop.c: Likewise.
21332         * cfgloopanal.c: Likewise.
21333         * cfgloopmanip.c: Likewise.
21334         * cfgrtl.c: Likewise.
21335         * cgraph.c: Likewise.
21336         * cgraphbuild.c: Likewise.
21337         * cgraphclones.c: Likewise.
21338         * cgraphunit.c: Likewise.
21339         * cilk-common.c: Likewise.
21340         * combine-stack-adj.c: Likewise.
21341         * combine.c: Likewise.
21342         * compare-elim.c: Likewise.
21343         * convert.c: Likewise.
21344         * coverage.c: Likewise.
21345         * cppbuiltin.c: Likewise.
21346         * cprop.c: Likewise.
21347         * cse.c: Likewise.
21348         * cselib.c: Likewise.
21349         * data-streamer-in.c: Likewise.
21350         * data-streamer-out.c: Likewise.
21351         * data-streamer.c: Likewise.
21352         * dbxout.c: Likewise.
21353         * dce.c: Likewise.
21354         * ddg.c: Likewise.
21355         * debug.c: Likewise.
21356         * df-core.c: Likewise.
21357         * df-problems.c: Likewise.
21358         * df-scan.c: Likewise.
21359         * dfp.c: Likewise.
21360         * dojump.c: Likewise.
21361         * dominance.c: Likewise.
21362         * domwalk.c: Likewise.
21363         * double-int.c: Likewise.
21364         * dse.c: Likewise.
21365         * dumpfile.c: Likewise.
21366         * dwarf2asm.c: Likewise.
21367         * dwarf2cfi.c: Likewise.
21368         * dwarf2out.c: Likewise.
21369         * emit-rtl.c: Likewise.
21370         * et-forest.c: Likewise.
21371         * except.c: Likewise.
21372         * explow.c: Likewise.
21373         * expmed.c: Likewise.
21374         * expr.c: Likewise.
21375         * final.c: Likewise.
21376         * fixed-value.c: Likewise.
21377         * fold-const.c: Likewise.
21378         * function.c: Likewise.
21379         * fwprop.c: Likewise.
21380         * gcc-plugin.h: Likewise.
21381         * gcse-common.c: Likewise.
21382         * gcse.c: Likewise.
21383         * generic-match-head.c: Likewise.
21384         * ggc-page.c: Likewise.
21385         * gimple-builder.c: Likewise.
21386         * gimple-expr.c: Likewise.
21387         * gimple-fold.c: Likewise.
21388         * gimple-iterator.c: Likewise.
21389         * gimple-low.c: Likewise.
21390         * gimple-match-head.c: Likewise.
21391         * gimple-pretty-print.c: Likewise.
21392         * gimple-ssa-isolate-paths.c: Likewise.
21393         * gimple-ssa-strength-reduction.c: Likewise.
21394         * gimple-streamer-in.c: Likewise.
21395         * gimple-streamer-out.c: Likewise.
21396         * gimple-walk.c: Likewise.
21397         * gimple.c: Likewise.
21398         * gimplify-me.c: Likewise.
21399         * gimplify.c: Likewise.
21400         * godump.c: Likewise.
21401         * graph.c: Likewise.
21402         * graphite-blocking.c: Likewise.
21403         * graphite-dependences.c: Likewise.
21404         * graphite-interchange.c: Likewise.
21405         * graphite-isl-ast-to-gimple.c: Likewise.
21406         * graphite-optimize-isl.c: Likewise.
21407         * graphite-poly.c: Likewise.
21408         * graphite-scop-detection.c: Likewise.
21409         * graphite-sese-to-poly.c: Likewise.
21410         * graphite.c: Likewise.
21411         * haifa-sched.c: Likewise.
21412         * hw-doloop.c: Likewise.
21413         * ifcvt.c: Likewise.
21414         * init-regs.c: Likewise.
21415         * internal-fn.c: Likewise.
21416         * ipa-chkp.c: Likewise.
21417         * ipa-comdats.c: Likewise.
21418         * ipa-cp.c: Likewise.
21419         * ipa-devirt.c: Likewise.
21420         * ipa-icf-gimple.c: Likewise.
21421         * ipa-icf.c: Likewise.
21422         * ipa-inline-analysis.c: Likewise.
21423         * ipa-inline-transform.c: Likewise.
21424         * ipa-inline.c: Likewise.
21425         * ipa-polymorphic-call.c: Likewise.
21426         * ipa-profile.c: Likewise.
21427         * ipa-prop.c: Likewise.
21428         * ipa-pure-const.c: Likewise.
21429         * ipa-ref.c: Likewise.
21430         * ipa-reference.c: Likewise.
21431         * ipa-split.c: Likewise.
21432         * ipa-utils.c: Likewise.
21433         * ipa-visibility.c: Likewise.
21434         * ipa.c: Likewise.
21435         * ira-build.c: Likewise.
21436         * ira-color.c: Likewise.
21437         * ira-conflicts.c: Likewise.
21438         * ira-costs.c: Likewise.
21439         * ira-emit.c: Likewise.
21440         * ira-lives.c: Likewise.
21441         * ira.c: Likewise.
21442         * jump.c: Likewise.
21443         * langhooks.c: Likewise.
21444         * lcm.c: Likewise.
21445         * loop-doloop.c: Likewise.
21446         * loop-init.c: Likewise.
21447         * loop-invariant.c: Likewise.
21448         * loop-iv.c: Likewise.
21449         * loop-unroll.c: Likewise.
21450         * lower-subreg.c: Likewise.
21451         * lra-assigns.c: Likewise.
21452         * lra-coalesce.c: Likewise.
21453         * lra-constraints.c: Likewise.
21454         * lra-eliminations.c: Likewise.
21455         * lra-lives.c: Likewise.
21456         * lra-remat.c: Likewise.
21457         * lra-spills.c: Likewise.
21458         * lra.c: Likewise.
21459         * lto-cgraph.c: Likewise.
21460         * lto-compress.c: Likewise.
21461         * lto-opts.c: Likewise.
21462         * lto-section-in.c: Likewise.
21463         * lto-section-out.c: Likewise.
21464         * lto-streamer-in.c: Likewise.
21465         * lto-streamer-out.c: Likewise.
21466         * lto-streamer.c: Likewise.
21467         * mcf.c: Likewise.
21468         * mode-switching.c: Likewise.
21469         * modulo-sched.c: Likewise.
21470         * omega.c: Likewise.
21471         * omp-low.c: Likewise.
21472         * optabs.c: Likewise.
21473         * opts-global.c: Likewise.
21474         * passes.c: Likewise.
21475         * plugin.c: Likewise.
21476         * postreload-gcse.c: Likewise.
21477         * postreload.c: Likewise.
21478         * predict.c: Likewise.
21479         * print-rtl.c: Likewise.
21480         * print-tree.c: Likewise.
21481         * profile.c: Likewise.
21482         * real.c: Likewise.
21483         * realmpfr.c: Likewise.
21484         * recog.c: Likewise.
21485         * ree.c: Likewise.
21486         * reg-stack.c: Likewise.
21487         * regcprop.c: Likewise.
21488         * reginfo.c: Likewise.
21489         * regrename.c: Likewise.
21490         * regstat.c: Likewise.
21491         * reload.c: Likewise.
21492         * reload1.c: Likewise.
21493         * reorg.c: Likewise.
21494         * resource.c: Likewise.
21495         * rtl-chkp.c: Likewise.
21496         * rtlanal.c: Likewise.
21497         * rtlhooks.c: Likewise.
21498         * sanopt.c: Likewise.
21499         * sched-deps.c: Likewise.
21500         * sched-ebb.c: Likewise.
21501         * sched-rgn.c: Likewise.
21502         * sched-vis.c: Likewise.
21503         * sdbout.c: Likewise.
21504         * sel-sched-dump.c: Likewise.
21505         * sel-sched-ir.c: Likewise.
21506         * sel-sched.c: Likewise.
21507         * sese.c: Likewise.
21508         * shrink-wrap.c: Likewise.
21509         * simplify-rtx.c: Likewise.
21510         * stack-ptr-mod.c: Likewise.
21511         * stmt.c: Likewise.
21512         * stor-layout.c: Likewise.
21513         * store-motion.c: Likewise.
21514         * stringpool.c: Likewise.
21515         * symtab.c: Likewise.
21516         * target-globals.c: Likewise.
21517         * targhooks.c: Likewise.
21518         * toplev.c: Likewise.
21519         * tracer.c: Likewise.
21520         * trans-mem.c: Likewise.
21521         * tree-affine.c: Likewise.
21522         * tree-browser.c: Likewise.
21523         * tree-call-cdce.c: Likewise.
21524         * tree-cfg.c: Likewise.
21525         * tree-cfgcleanup.c: Likewise.
21526         * tree-chkp-opt.c: Likewise.
21527         * tree-chkp.c: Likewise.
21528         * tree-chrec.c: Likewise.
21529         * tree-complex.c: Likewise.
21530         * tree-data-ref.c: Likewise.
21531         * tree-dfa.c: Likewise.
21532         * tree-diagnostic.c: Likewise.
21533         * tree-dump.c: Likewise.
21534         * tree-eh.c: Likewise.
21535         * tree-emutls.c: Likewise.
21536         * tree-if-conv.c: Likewise.
21537         * tree-inline.c: Likewise.
21538         * tree-into-ssa.c: Likewise.
21539         * tree-iterator.c: Likewise.
21540         * tree-loop-distribution.c: Likewise.
21541         * tree-nested.c: Likewise.
21542         * tree-nrv.c: Likewise.
21543         * tree-object-size.c: Likewise.
21544         * tree-outof-ssa.c: Likewise.
21545         * tree-parloops.c: Likewise.
21546         * tree-phinodes.c: Likewise.
21547         * tree-predcom.c: Likewise.
21548         * tree-pretty-print.c: Likewise.
21549         * tree-profile.c: Likewise.
21550         * tree-scalar-evolution.c: Likewise.
21551         * tree-sra.c: Likewise.
21552         * tree-ssa-address.c: Likewise.
21553         * tree-ssa-alias.c: Likewise.
21554         * tree-ssa-ccp.c: Likewise.
21555         * tree-ssa-coalesce.c: Likewise.
21556         * tree-ssa-copy.c: Likewise.
21557         * tree-ssa-copyrename.c: Likewise.
21558         * tree-ssa-dce.c: Likewise.
21559         * tree-ssa-dom.c: Likewise.
21560         * tree-ssa-dse.c: Likewise.
21561         * tree-ssa-forwprop.c: Likewise.
21562         * tree-ssa-ifcombine.c: Likewise.
21563         * tree-ssa-live.c: Likewise.
21564         * tree-ssa-loop-ch.c: Likewise.
21565         * tree-ssa-loop-im.c: Likewise.
21566         * tree-ssa-loop-ivcanon.c: Likewise.
21567         * tree-ssa-loop-ivopts.c: Likewise.
21568         * tree-ssa-loop-manip.c: Likewise.
21569         * tree-ssa-loop-niter.c: Likewise.
21570         * tree-ssa-loop-prefetch.c: Likewise.
21571         * tree-ssa-loop-unswitch.c: Likewise.
21572         * tree-ssa-loop.c: Likewise.
21573         * tree-ssa-math-opts.c: Likewise.
21574         * tree-ssa-operands.c: Likewise.
21575         * tree-ssa-phiopt.c: Likewise.
21576         * tree-ssa-phiprop.c: Likewise.
21577         * tree-ssa-pre.c: Likewise.
21578         * tree-ssa-propagate.c: Likewise.
21579         * tree-ssa-reassoc.c: Likewise.
21580         * tree-ssa-sccvn.c: Likewise.
21581         * tree-ssa-scopedtables.c: Likewise.
21582         * tree-ssa-sink.c: Likewise.
21583         * tree-ssa-strlen.c: Likewise.
21584         * tree-ssa-structalias.c: Likewise.
21585         * tree-ssa-tail-merge.c: Likewise.
21586         * tree-ssa-ter.c: Likewise.
21587         * tree-ssa-threadedge.c: Likewise.
21588         * tree-ssa-threadupdate.c: Likewise.
21589         * tree-ssa-uncprop.c: Likewise.
21590         * tree-ssa-uninit.c: Likewise.
21591         * tree-ssa.c: Likewise.
21592         * tree-ssanames.c: Likewise.
21593         * tree-stdarg.c: Likewise.
21594         * tree-streamer-in.c: Likewise.
21595         * tree-streamer-out.c: Likewise.
21596         * tree-streamer.c: Likewise.
21597         * tree-switch-conversion.c: Likewise.
21598         * tree-tailcall.c: Likewise.
21599         * tree-vect-data-refs.c: Likewise.
21600         * tree-vect-generic.c: Likewise.
21601         * tree-vect-loop-manip.c: Likewise.
21602         * tree-vect-loop.c: Likewise.
21603         * tree-vect-patterns.c: Likewise.
21604         * tree-vect-slp.c: Likewise.
21605         * tree-vect-stmts.c: Likewise.
21606         * tree-vectorizer.c: Likewise.
21607         * tree-vrp.c: Likewise.
21608         * tree.c: Likewise.
21609         * tsan.c: Likewise.
21610         * ubsan.c: Likewise.
21611         * valtrack.c: Likewise.
21612         * value-prof.c: Likewise.
21613         * var-tracking.c: Likewise.
21614         * varasm.c: Likewise.
21615         * varpool.c: Likewise.
21616         * vmsdbgout.c: Likewise.
21617         * vtable-verify.c: Likewise.
21618         * web.c: Likewise.
21619         * wide-int.cc: Likewise.
21620         * xcoffout.c: Likewise.
21621         * config/aarch64/aarch64-builtins.c: Likewise.
21622         * config/aarch64/aarch64.c: Likewise.
21623         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21624         * config/alpha/alpha.c: Likewise.
21625         * config/arc/arc.c: Likewise.
21626         * config/arm/aarch-common.c: Likewise.
21627         * config/arm/arm-builtins.c: Likewise.
21628         * config/arm/arm-c.c: Likewise.
21629         * config/arm/arm.c: Likewise.
21630         * config/avr/avr-c.c: Likewise.
21631         * config/avr/avr-log.c: Likewise.
21632         * config/avr/avr.c: Likewise.
21633         * config/bfin/bfin.c: Likewise.
21634         * config/c6x/c6x.c: Likewise.
21635         * config/cr16/cr16.c: Likewise.
21636         * config/cris/cris.c: Likewise.
21637         * config/darwin-c.c: Likewise.
21638         * config/darwin.c: Likewise.
21639         * config/epiphany/epiphany.c: Likewise.
21640         * config/epiphany/mode-switch-use.c: Likewise.
21641         * config/epiphany/resolve-sw-modes.c: Likewise.
21642         * config/fr30/fr30.c: Likewise.
21643         * config/frv/frv.c: Likewise.
21644         * config/ft32/ft32.c: Likewise.
21645         * config/h8300/h8300.c: Likewise.
21646         * config/i386/i386-c.c: Likewise.
21647         * config/i386/i386.c: Likewise.
21648         * config/i386/msformat-c.c: Likewise.
21649         * config/i386/winnt-cxx.c: Likewise.
21650         * config/i386/winnt-stubs.c: Likewise.
21651         * config/i386/winnt.c: Likewise.
21652         * config/ia64/ia64-c.c: Likewise.
21653         * config/ia64/ia64.c: Likewise.
21654         * config/iq2000/iq2000.c: Likewise.
21655         * config/lm32/lm32.c: Likewise.
21656         * config/m32c/m32c-pragma.c: Likewise.
21657         * config/m32c/m32c.c: Likewise.
21658         * config/m32r/m32r.c: Likewise.
21659         * config/m68k/m68k.c: Likewise.
21660         * config/mcore/mcore.c: Likewise.
21661         * config/mep/mep-pragma.c: Likewise.
21662         * config/mep/mep.c: Likewise.
21663         * config/microblaze/microblaze-c.c: Likewise.
21664         * config/microblaze/microblaze.c: Likewise.
21665         * config/mips/mips.c: Likewise.
21666         * config/mmix/mmix.c: Likewise.
21667         * config/mn10300/mn10300.c: Likewise.
21668         * config/moxie/moxie.c: Likewise.
21669         * config/msp430/msp430-c.c: Likewise.
21670         * config/msp430/msp430.c: Likewise.
21671         * config/nds32/nds32-cost.c: Likewise.
21672         * config/nds32/nds32-fp-as-gp.c: Likewise.
21673         * config/nds32/nds32-intrinsic.c: Likewise.
21674         * config/nds32/nds32-isr.c: Likewise.
21675         * config/nds32/nds32-md-auxiliary.c: Likewise.
21676         * config/nds32/nds32-memory-manipulation.c: Likewise.
21677         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21678         * config/nds32/nds32-predicates.c: Likewise.
21679         * config/nds32/nds32.c: Likewise.
21680         * config/nios2/nios2.c: Likewise.
21681         * config/nvptx/nvptx.c: Likewise.
21682         * config/pa/pa.c: Likewise.
21683         * config/pdp11/pdp11.c: Likewise.
21684         * config/rl78/rl78-c.c: Likewise.
21685         * config/rl78/rl78.c: Likewise.
21686         * config/rs6000/rs6000-c.c: Likewise.
21687         * config/rs6000/rs6000.c: Likewise.
21688         * config/rx/rx.c: Likewise.
21689         * config/s390/s390-c.c: Likewise.
21690         * config/s390/s390.c: Likewise.
21691         * config/sh/sh-c.c: Likewise.
21692         * config/sh/sh-mem.cc: Likewise.
21693         * config/sh/sh.c: Likewise.
21694         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21695         * config/sh/sh_treg_combine.cc: Likewise.
21696         * config/sol2-c.c: Likewise.
21697         * config/sol2-cxx.c: Likewise.
21698         * config/sol2-stubs.c: Likewise.
21699         * config/sol2.c: Likewise.
21700         * config/sparc/sparc-c.c: Likewise.
21701         * config/sparc/sparc.c: Likewise.
21702         * config/spu/spu-c.c: Likewise.
21703         * config/spu/spu.c: Likewise.
21704         * config/stormy16/stormy16.c: Likewise.
21705         * config/tilegx/mul-tables.c: Likewise.
21706         * config/tilegx/tilegx-c.c: Likewise.
21707         * config/tilegx/tilegx.c: Likewise.
21708         * config/tilepro/mul-tables.c: Likewise.
21709         * config/tilepro/tilepro-c.c: Likewise.
21710         * config/tilepro/tilepro.c: Likewise.
21711         * config/v850/v850-c.c: Likewise.
21712         * config/v850/v850.c: Likewise.
21713         * config/vax/vax.c: Likewise.
21714         * config/visium/visium.c: Likewise.
21715         * config/vms/vms-c.c: Likewise.
21716         * config/vms/vms.c: Likewise.
21717         * config/vxworks.c: Likewise.
21718         * config/xtensa/xtensa.c: Likewise.
21720 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
21722         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21723         Remove operand constraints.  Change operand 2 predicate to
21724         nonmemory operand.  Limit const_int values to mode bitsize.  Only
21725         allow const_int values less than 32 when optimizing for size.
21726         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21727         Remove operand constraints.
21728         (*bt<mode>): Use SImode for const_int values less than 32.
21729         (regmode): Remove mode attribute.
21731 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
21733         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21734         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21735           moxie_legitimate_address_p): New functions.
21736           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21738 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21740         PR tree-optimization/66642
21741         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21742         header comment.  Rename split_edge variable to edge_at_split.  Split
21743         exit edge to create new loop exit bb.  Insert loop exit phis in new
21744         loop exit bb.
21746 2015-07-07  Tom de Vries  <tom@codesourcery.com>
21748         * tree-cfg.c (get_virtual_phi): New function.
21749         * tree-cfg.h (get_virtual_phi): Declare.
21750         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21751         (rewrite_virtuals_into_loop_closed_ssa): New function.
21752         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21753         Declare.
21754         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21755         (transform_to_exit_first_loop_alt): Use
21756         rewrite_virtuals_into_loop_closed_ssa.
21758 2015-07-07  Richard Biener  <rguenther@suse.de>
21760         * fold-const.c (fold_binary_loc): Move
21761         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21762         * match.pd: ... here.
21763         Add (X * C1) % C2 -> 0 simplification pattern derived from
21764         extract_muldiv_1.
21766 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
21768         PR target/66780
21769         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21770         change for target/65249.
21772 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
21774         * symtab.c (address_matters_1): Fix typo in comment above.
21775         (can_increase_alignment_p): Likewise.
21777 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21779         * function.c (free_after_compilation): Clear PROP_cfg in
21780         f->curr_properties.
21782 2015-07-07  Richard Biener  <rguenther@suse.de>
21784         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21785         add which use to.
21786         (add_control_edge): Remove excessive vertical space in dumping.
21787         (process_ssa_edge_worklist): Simulate at most one statement and
21788         return whether we did.  Do not simulate PHIs if they are in a
21789         BB not yet simulated.
21790         (ssa_propagate): Adjust to always drain the BB worklist whenever
21791         a BB is available there, likewise the VARYING edges list before
21792         the interesting edge list.
21794 2015-07-07  Christian Bruel  <christian.bruel@st.com>
21796         PR target/52144
21797         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21799 2015-07-07  Richard Biener  <rguenther@suse.de>
21801         PR middle-end/66739
21802         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21803         A - B.
21805 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21807         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
21808         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
21809         Copy operand 0 to a temporary if !ext_register_operand.  Remove
21810         ancient extract_bit_field workaround.
21811         (insv<mode>_1): Rename from mov<mode>_insv_1.
21812         (*insvqi): Rename from *movqi_insv_2.
21813         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21814         for renamed insvsi_1.
21815         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21817 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
21819         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
21820         call to nvptx_reorg_subreg.
21822 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
21824         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21825         * graphite-dependencies.c, graphite-interchange.c,
21826         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21827         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21828         Likewise.
21830 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
21832         * match.pd: Remove element_mode inside HONOR_*.
21833         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21834         (~X | X -> -1, ~X ^ X -> -1): Merge.
21835         * tree.c (build_each_one_cst): New function.
21836         * tree.h (build_each_one_cst): Likewise.
21838 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21840         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21841         PROCESSOR_IAMCU.
21843 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
21845         * config.gcc <mips*-*-*>: Add fused-madd.opt.
21846         * config/mips/mips.opt (mfused-madd): Remove.
21847         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21848         * config/mips/mips.h (TARGET_MIPS8000): New.
21849         (ISA_HAS_FP_MADD4_MSUB4): Remove.
21850         (ISA_HAS_FP_MADDF_MSUBF): Remove.
21851         (ISA_HAS_FP_MADD3_MSUB3): Remove.
21852         (ISA_HAS_NMADD4_NMSUB4): Remove.
21853         (ISA_HAS_NMADD3_NMSUB3): Remove.
21854         (ISA_HAS_FUSED_MADD4): New.
21855         (ISA_HAS_UNFUSED_MADD4): New.
21856         (ISA_HAS_FUSED_MADDF): New.
21857         (ISA_HAS_FUSED_MADD3): New.
21858         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21859         (*fma<mode>4_madd3) New.
21860         (*fma<mode>4_madd4) New.
21861         (*fma<mode>4_maddf) New.
21862         (fms<mode>4) New.
21863         (*fms<mode>4_msub3) New.
21864         (*fms<mode>4_msub4) New.
21865         (fnma<mode>4) New.
21866         (*fnma<mode>4_nmadd3) New.
21867         (*fnma<mode>4_nmadd4) New.
21868         (fnms<mode>4) New.
21869         (*fnms<mode>4_nmsub3) New.
21870         (*fnms<mode>4_nmsub4) New.
21871         (*madd4<mode>) Modify to be unfused only.
21872         (*msub4<mode>) Modify to be unfused only.
21873         (*nmadd4<mode>) Modify to be unfused only.
21874         (*nmsub4<mode>) Modify to be unfused only.
21875         (*madd3<mode>) Remove.
21876         (*msub3<mode>) Remove.
21877         (*nmadd3<mode>) Remove.
21878         (*nmsub3<mode>) Remove.
21879         (*nmadd3<mode>_fastmath) Remove.
21880         (*nmsub3<mode>_fastmath) Remove.
21881         (*nmadd4<mode>_fastmath) Update condition.
21882         (*nmsub4<mode>_fastmath) Update condition.
21884 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21886         PR target/65956
21887         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21888         alignment attribute, exploring one level down for records and arrays.
21890 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21892         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
21893         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
21894         Copy operand 1 to a temporary if !ext_register_operand.  Remove
21895         ancient extract_bit_field workaround.
21896         (*extv<mode>): Rename from *mov<mode>_extv_1.
21897         (*extvqi): Rename from *movqi_extv_1.
21898         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
21899         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
21900         to a temporary if !ext_register_operand.  Remove ancient
21901         extract_bit_field workaround.
21902         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21903         (*extzvqi): Rename from *movqi_extzv_2.
21904         (*testqi_ext_3): Remove modes from const_int_operand predicated
21905         operands.  Add "n" constraint.
21906         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21907         operand.  Add "J" constraint.
21908         (*btsq, *btrq, *btcq peephole2s): Remove mode from
21909         const_0_to_63 predicated operand.
21910         (regmode): New insn attribute.
21911         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
21912         to nonmemory_operand.  Use regmode insn attribute.
21913         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21914         (*jcc_bt<mode>_mask): Remove mode from operand 3.
21915         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21916         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21917         operands.  Use "N" constraint instead of "n".
21919 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21921         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21923 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21925         PR target/66749
21926         * config/i386/i386.c (iamcu_cost): New.
21927         (m_IAMCU): Likewise.
21928         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21929         (processor_target_table): Add an entry for "iamcu".
21930         (processor_alias_table): Likewise.
21931         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21932         (ix86_adjust_cost): Likewise.
21933         (ia32_multipass_dfa_lookahead): Likewise.
21934         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21935         * config/i386/x86-tune.def: Updated for m_IAMCU.
21937 2015-07-06  Richard Biener  <rguenther@suse.de>
21939         PR tree-optimization/66772
21940         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21941         values are available in the PHI node BB when there are
21942         still unexecutable edges.
21944 2015-07-06  Richard Biener  <rguenther@suse.de>
21946         PR tree-optimization/66767
21947         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21948         Make sure to build the alignment test on a SSA name without
21949         final alignment info valid only if the alignment test
21950         evaluates to true.
21952 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
21954         PR target/66620
21955         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21956         loop start when inserting LSETUP.
21958 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21960         PR target/53383
21961         * config/i386/i386.c (ix86_option_override_internal): Allow
21962         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21964 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21966         * read-md.c (decimal_string): Rename to ...
21967         (md_decimal_string): ... this.
21968         (handle_enum): Reflect this.
21970 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21972         PR target/66731
21973         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21975 2015-07-06  Richard Biener  <rguenther@suse.de>
21977         PR middle-end/66759
21978         * match.pd: Add missing constraint of y to REAL_CST in
21979         REAL_CST - x CMP y to y - CST CMP x simplification.
21981 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
21983         PR tree-optimization/66757
21984         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21986 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
21987             Sandra Loosemore <sandra@codesourcery.com>
21989         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21990         Delete extern declaration.
21991         (gprel_constant_p): Add extern declaration.
21992         * config/nios2/constraints.md ("S"): Use gprel_constant_p
21993         instead of nios2_symbol_ref_in_small_data_p.
21994         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21995         (nios2_symbol_ref_in_small_data_p): Make static.
21996         (gprel_constant_p): Make non-static.
21998 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
22000         * doc/fragments.texi (Target Fragment): Convert debian.org
22001         link to use https.
22002         * doc/install.texi (Configuration): Ditto.
22004 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
22006         PR tree-optimization/66718
22007         * tree-vect-stmts.c (vectorizable_call): Replace uses of
22008         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22010         PR tree-optimization/66718
22011         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22012         vectorizable_load, vectorizable_condition): Move vectype,
22013         nunits, ncopies computation after checking what kind of statement
22014         stmt is.
22016 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22018         * target-insns.def (extv, extzv, insv): New targetm instruction
22019         patterns.
22020         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22021         interface.
22022         * recog.c (simplify_while_replacing): Likewise.
22024 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22026         * target-insns.def (doloop_begin, doloop_end): New targetm
22027         instruction patterns.
22028         * loop-init.c: Include target.h.
22029         (pass_loop2::gate): Use the new targetm patterns instead of
22030         HAVE_*/gen_* interface.
22031         (pass_rtl_doloop::gate): Likewise.
22032         (pass_rtl_doloop::execute): Remove preprocessor condition.
22033         * hw-doloop.c: Build unconditionally.
22034         * loop-doloop.c: Likewise.
22035         (doloop_optimize): Use the new targetm patterns instead of
22036         HAVE_*/gen_* interface.
22037         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22038         * modulo-sched.c (doloop_register_get): Likewise.
22040 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22042         * target-insns.def (clear_cache): New targetm instruction pattern.
22043         * builtins.c (expand_builtin___clear_cache): Use it instead of
22044         HAVE_*/gen_* interface.
22046 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22048         * target-insns.def (allocate_stack, check_stack, probe_stack)
22049         (probe_stack_address, split_stack_prologue, split_stack_space_check):
22050         New targetm instruction patterns.
22051         * explow.c (allocate_dynamic_stack_space): Use them instead of
22052         HAVE_*/gen_* interface.
22053         (emit_stack_probe): Likewise.
22054         (probe_stack_range): Likewise.
22055         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22057 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22059         * target-insns.def (stack_protect_set, stack_protect_test): New
22060         targetm instruction patterns.
22061         * cfgexpand.c (stack_protect_prologue): Use them instead of
22062         HAVE_*/gen_* interface.
22063         * function.c (stack_protect_epilogue): Likewise.
22065 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22067         * expr.h (gen_move_insn_uncast): Delete.
22068         * expr.c (gen_move_insn_uncast): Delete.
22070 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22072         * target-insns.def (restore_stack_block, restore_stack_function)
22073         (restore_stack_nonlocal, save_stack_block, save_stack_function)
22074         (save_stack_nonlocal): New targetm instruction patterns.
22075         * builtins.c (expand_builtin_apply): Use them instead of
22076         HAVE_*/gen_* interface.
22077         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22079 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22081         * target-insns.def (trap): New targetm instruction pattern.
22082         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22083         interface.
22084         * explow.c (allocate_dynamic_stack_space): Likewise.
22085         * ifcvt.c (find_if_header): Likewise.
22087 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22089         * target-insns.def (prefetch): New targetm instruction pattern.
22090         * tree-ssa-loop-prefetch.c: Include targeth.
22091         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22092         of HAVE_*/gen_* interface.
22093         * builtins.c (expand_builtin_prefetch): Likewise.
22094         * toplev.c (process_options): Likewise.
22096 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22098         * target-insns.def (untyped_call, untyped_return): New targetm
22099         instruction patterns.
22100         * builtins.c (expand_builtin_apply): Use them instead of
22101         HAVE_*/gen_* interface.
22102         (result_vector): Define unconditionally.
22104 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22106         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22107         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22108         (nonlocal_goto_receiver): New targetm instruction patterns.
22109         * builtins.c (expand_builtin_setjmp_setup): Use them instead
22110         of HAVE_*/gen_* interface.
22111         (expand_builtin_setjmp_receiver): Likewise.
22112         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22113         * except.c (expand_dw2_landing_pad_for_region): Likewise.
22115 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22117         * target.def: Add code_for_* hooks.
22118         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22119         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22120         * target-insns.def (casesi, tablejump): New targetm instruction
22121         patterns.
22122         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22123         (do_tablejump): Likewise.
22124         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22125         (expand_sjlj_dispatch_table): Likewise.
22126         * targhooks.c (default_case_values_threshold): Likewise.
22128 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
22130         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22131         Use rtx_insn * instead of rtx.
22132         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22133         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22134         (nios2_call_tls_get_addr): Likewise.
22135         (nios2_emit_expensive_div): Likewise.
22136         (nios2_emit_move_sequence): Change return type to bool.
22137         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22138         Change return type to bool.
22140 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22142         PR target/66747
22143         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22145 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
22147         PR target/66114
22148         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22149         of register_operand.  Remove constraint.
22151 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
22153         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22154         the first argument.
22156 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
22158         * attribs.c (decl_attributes): Guard inform with the return value
22159         of the preceding warning.
22161 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22163         * doc/invoke.texi (moverride): Move to correct section.
22165 2015-07-03  Richard Biener  <rguenther@suse.de>
22167         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22168         Copy from tree.c
22169         (dt_operand::gen_gimple_expr): After valueizing operands
22170         re-canonicalize operand order for commutative tree codes.
22172 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
22174         PR target/66746.
22175         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22176         is defined.
22177         (__crc32w): Likewise.
22178         (__crc32d): Likewise.
22179         (__rdpmc): Likewise.
22180         (__rdtscp): Likewise.
22181         (_rdpmc): Likewise.
22182         (_rdtscp): Likewise.
22183         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22184         is defined.
22186 2015-07-03  Richard Biener  <rguenther@suse.de>
22188         * fold-const.c (fold_mathfn_compare): Remove.
22189         (fold_inf_compare): Likewise.
22190         (fold_comparison): Move floating point comparison simplifications...
22191         * match.pd: ... to patterns here.  Introduce simple_comparisons
22192         operator list and use it for patterns formerly in fold_comparison.
22194 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22196         PR tree-optimization/66119
22197         * toplev.c (process_options): Don't set up default values for
22198         the sra_max_scalarization_size_{speed,size} parameters.
22199         * tree-sra (analyze_all_variable_accesses): If no values
22200         have been set for the sra_max_scalarization_size_{speed,size}
22201         parameters, call get_move_ratio to get target defaults.
22203 2015-07-03  Richard Biener  <rguenther@suse.de>
22205         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22206         * match.pd: ... here.
22208 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
22210         PR target/37072
22211         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22212         is not actually the default on FreeBSD.
22214 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22216         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22217         definition.
22218         (CMPGE_8HI): Likewise.
22219         (CMPGE_4SI): Likewise.
22220         (CMPGE_2DI): Likewise.
22221         (CMPGE_U16QI): Likewise.
22222         (CMPGE_U8HI): Likewise.
22223         (CMPGE_U4SI): Likewise.
22224         (CMPGE_U2DI): Likewise.
22225         (CMPLE_16QI): Likewise.
22226         (CMPLE_8HI): Likewise.
22227         (CMPLE_4SI): Likewise.
22228         (CMPLE_2DI): Likewise.
22229         (CMPLE_U16QI): Likewise.
22230         (CMPLE_U8HI): Likewise.
22231         (CMPLE_U4SI): Likewise.
22232         (CMPLE_U2DI): Likewise.
22233         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22234         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22235         ALTIVEC_BUILTIN_VEC_CMPLE.
22236         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22237         floating-point vector modes.
22238         (vector_nlt<mode>): New define_expand.
22239         (vector_nltu<mode>): Likewise.
22240         (vector_ngt<mode>): Likewise.
22241         (vector_ngtu<mode>): Likewise.
22243 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
22245         PR rtl-optimization/66706
22246         * combine.c (make_compound_operation): If an AND of SUBREG of
22247         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22249 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
22251         * tree-pass.h (make_pass_ch_vect): New.
22252         * passes.def: Add pass_ch_vect just before pass_if_conversion.
22254         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22255         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22256         make_pass_ch_vect): New.
22257         (pass_ch): Extend ch_base.
22259         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22260         (ch_base::copy_headers): ...here.
22262 2015-07-02  Richard Biener  <rguenther@suse.de>
22264         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22265         * fold-const.c (get_pointer_modulus_and_residue): Remove.
22266         (fold_binary_loc): Implement (T)ptr & CST in terms of
22267         get_pointer_alignment_1.
22268         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22269         Make sure to build the alignment test on a SSA name without
22270         final alignment info valid only after the prologue.
22272 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
22274         * config/cris/cris.md ("epilogue"): Remove condition.
22275         ("prologue"): Ditto.
22277 2015-07-02  Richard Biener  <rguenther@suse.de>
22279         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22280         parameter to record a condition that is false.
22281         (record_conditions): When recording an extra NE_EXPR that is
22282         true also record a EQ_EXPR that is false.
22284 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
22286         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22287         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22288         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
22289         (set_iv, find_interesting_uses_address, add_candidate_1): New
22290         argument to alloc_iv.
22291         (find_interesting_uses_op, find_interesting_uses_cond): Don't
22292         duplicate struct iv.
22293         (free_loop_data): Don't free struct iv explicitly.
22294         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22296 2015-07-01  DJ Delorie  <dj@redhat.com>
22298         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22299         (LIB_SPEC): Add.
22300         (SUPPORTS_DISCRIMINATOR): Define.
22302 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22304         PR bootstrap/66685
22305         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22306         there are no CALLs in the same pattern.
22308 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22310         PR rtl-optimization/61047
22311         * rtlanal.c (get_initial_register_offset): New function.
22312         (rtx_addr_can_trap_p_1): Check offsets of stack references.
22314 2015-07-01  Richard Biener  <rguenther@suse.de>
22316         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22317         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22318         ~X CMP C -> X CMP' ~C to ...
22319         * match.pd: ... patterns here.
22321 2015-07-01  Nick Clifton  <nickc@redhat.com>
22323         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22324         a 16-bit value into a 20-bit memory slot.
22326 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22328         * doc/sourcebuild.texi (AArch64-specific attributes): Document
22329         "aarch64_tiny", "aarch64_small", "aarch64_large",
22330         "aarch64_little_endian", "aarch64_big_endian".
22332 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22334         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22335         Document "aarch64_small_fpic".
22337 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22339         * configure.ac: Add check for aarch64 assembler -fpic relocation
22340         modifier support.
22341         * configure: Regenerate.
22342         * config.in: Regenerate.
22343         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22344         to -fPIC if not support of -fpic relocation modifier in assembler.
22346 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22348         PR bootstrap/66685
22349         * rtl.c (classify_insn): Handle returns in PARALLELs.
22351 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
22353         PR middle-end/66633
22354         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22355         to true if the function is nested and if not optimizing.
22356         (convert_local_omp_clauses): Initialize need_frame to true if the
22357         function contains nested functions and if not optimizing.
22359 2015-07-01  Richard Biener  <rguenther@suse.de>
22361         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22362         (X & Y) ^ Y -> ~X & Y transforms to ...
22363         * match.pd: ... here.
22365 2015-07-01  Richard Biener <rguenther@suse.de>
22367         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22368         of converts to avoid uninteresting noise from the conversion
22369         simplifying patterns.
22371 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
22373         * config/c6x/c6x.c (try_rename_operands): Do not depend on
22374         gcc_assert evaluating its argument for side-effect.
22376 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
22378         PR target/64833
22379         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22380         flag_pic is set.
22382 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22384         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22385         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22386         (hash_scc): Add this_ref_p and ref_p parameters and pass them
22387         to the inner DFS walk.
22389 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22391         * target-insns.def (jump): New targetm instruction pattern.
22392         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22393         instead of gen_jump.
22394         (fix_up_crossing_landing_pad): Likewise.
22395         (add_labels_and_missing_jumps): Likewise.
22396         (fix_crossing_conditional_branches): Likewise.
22397         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22398         (force_nonfallthru_and_redirect): Likewise.
22399         * cse.c (cse_insn): Likewise.
22400         * expmed.c (expand_divmod): Likewise.
22401         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22402         * haifa-sched.c (init_before_recovery): Likewise.
22403         (sched_create_recovery_edges): Likewise.
22404         * ifcvt.c (find_cond_trap): Likewise.
22405         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22406         (expand_float, expand_fix): Likewise.
22407         * stmt.c (emit_jump): Likewise.
22409 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22411         * defaults.h (HAVE_load_multiple, gen_load_multiple)
22412         (HAVE_store_multiple, gen_store_multiple): Delete.
22413         * target-insns.def (load_multiple, store_multiple): New targetm
22414         instruction patterns.
22415         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22416         of HAVE_*/gen_* interface.
22418 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22420         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22421         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22422         (gen_mem_signal_fence): Delete.
22423         * target-insns.def (mem_signal_fence, mem_thread_fence)
22424         (memory_barrier): New targetm instruction patterns.
22425         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22426         interface.
22427         (expand_mem_signal_fence): Likewise.
22429 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22431         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22432         * target-insns.def (epilogue, prologue, sibcall_prologue): New
22433         targetm instruction patterns.
22434         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22435         interface.
22436         * calls.c (expand_call): Likewise.
22437         * cfgrtl.c (cfg_layout_finalize): Likewise.
22438         * df-scan.c (df_get_entry_block_def_set): Likewise.
22439         (df_get_exit_block_use_set): Likewise.
22440         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22441         * final.c (final_start_function): Likewise.
22442         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22443         (reposition_prologue_and_epilogue_notes): Likewise.
22444         * reorg.c (find_end_label): Likewise.
22445         * toplev.c (process_options): Likewise.
22447 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
22449         * typed-splay-tree.h: New file.
22451 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
22453         PR debug/66691
22454         * lra-int.h (lra_substitute_pseudo): Add a parameter.
22455         (lra_substitute_pseudo_within_insn): Ditto.
22456         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
22457         of constant.
22458         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
22459         to lra_substitute_pseudo.
22460         * lra-lives.c (process_bb_lives): Add an argument to
22461         lra_substitute_pseudo_within_insn call.
22462         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22463         argument to lra_substitute_pseudo and
22464         lra_substitute_pseudo_within_insn calls.
22465         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22467 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22469         * configure: Regenerated.
22471 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22473         * config.gcc: Support i[34567]86-*-elfiamcu target.
22474         * config/i386/iamcu.h: New.
22475         * config/i386/i386.opt: Add -miamcu.
22476         * doc/invoke.texi: Document -miamcu.
22477         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
22478         off x87/MMX/SSE/AVX codegen for -miamcu.
22479         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22480         __iamcu/__iamcu__ for -miamcu.
22481         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22482         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22483         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22484         * config/i386/i386.c (ix86_option_override_internal): Ignore and
22485         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
22486         MCU by default.  Default long double to 64-bit for Intel MCU.
22487         Turn on -freg-struct-return for Intel MCU.  Issue an error when
22488         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22489         AVX is turned on.
22490         (function_arg_advance_32): Pass value whose size is no larger
22491         than 8 bytes in registers for Intel MCU.
22492         (function_arg_32): Likewise.
22493         (ix86_return_in_memory): Return value whose size is no larger
22494         than 8 bytes in registers for Intel MCU.
22495         (iamcu_alignment): New function.
22496         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22497         true.
22498         (ix86_local_alignment): Don't increase alignment for Intel MCU.
22499         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22500         true.
22502 2015-06-30  Marek Polacek  <polacek@redhat.com>
22504         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
22505         both operands of the resulting expression.
22507         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
22508         the final expression with the operand's type and then convert
22509         it to the type of the expression.
22511 2015-06-30  Richard Biener  <rguenther@suse.de>
22513         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22514         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22515         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22516         * match.pd: ... to patterns here.
22518 2015-06-30  Richard Biener  <rguenther@suse.de>
22520         PR tree-optimization/66704
22521         * tree-vect-data-refs.c (vect_setup_realignment): Use
22522         make_ssa_name for non-SSA name source.
22524 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
22526         PR middle-end/66702
22527         * omp-low.c (simd_clone_adjust): Handle addressable linear
22528         or uniform parameters or non-gimple type uniform parameters.
22530 2015-06-30  Richard Biener  <rguenther@suse.de>
22532         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22533         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22534         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22535         * match.pd: ... here.
22536         Add a few cases of A - B -> A + (-B) when B "easily" negates.
22537         Move (x & y) | x -> x and friends before
22538         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22540 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22542         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22543         -mfix-ut699 is not specified.
22544         (leon3_load): Rename into...
22545         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
22546         is specified.
22548 2015-06-30  Marek Polacek  <polacek@redhat.com>
22550         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22551         * match.pd: ... here.
22553 2015-06-30  Richard Biener  <rguenther@suse.de>
22555         * target-insns.def (canonicalize_funcptr_for_compare): Add.
22556         * fold-const.c (build_range_check): Replace uses of
22557         HAVE_canonicalize_funcptr_for_compare.
22558         (fold_widened_comparison): Likewise.
22559         (fold_sign_changed_comparison): Likewise.
22560         * dojump.c: Include "target.h".
22561         (do_compare_and_jump): Replace uses of
22562         HAVE_canonicalize_funcptr_for_compare and
22563         gen_canonicalize_funcptr_for_compare.
22564         * expr.c (do_store_flag): Likewise.
22566 2015-06-30  Tom de Vries  <tom@codesourcery.com>
22568         PR tree-optimization/66652
22569         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22570         max_loop_iterations to determine if nit + 1 overflows.
22572 2015-06-30  Richard Biener  <rguenther@suse.de>
22574         * tree-vrp.c (register_edge_assert_for_2): Also register
22575         asserts for dominating conversion results.
22577 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
22579         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22580         field in struct iv.
22582 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
22584         PR target/66509
22585         * configure.ac: Fix filds and fildq test for 64-bit.
22586         * configure: Regenerated.
22588 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
22590         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22591         (nvptx_reorg): Here.  Keep the non-subreg pieces.
22593 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
22595         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22596         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22598 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
22600         * config/i386/i386.md (*jcc_1): Use %! in asm template.
22601         Set attribute "length_nobnd" instead of "length".
22602         (*jcc_2): Ditto.
22603         (jump): Ditto.
22604         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22606 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
22608         * config/nios2/nios2.c (nios2_delegitimize_address): Make
22609         assert less restrictive.
22611 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22613         PR fortran/66605
22614         * cgraphunit.c (cgraph_node::finalize_function): Do not call
22615         do_warn_unused_parameter.
22616         * function.c (do_warn_unused_parameter): Move from here.
22617         * function.h (do_warn_unused_parameter): Do not declare.
22619 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22621         PR target/65697
22622         * gcc.target/arm/armv-sync-comp-swap.c: New.
22623         * gcc.target/arm/armv-sync-op-acquire.c: New.
22624         * gcc.target/arm/armv-sync-op-full.c: New.
22625         * gcc.target/arm/armv-sync-op-release.c: New.
22627 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22629         PR target/65697
22630         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22631         initial acquire barrier with final barrier.
22633 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22635         PR target/65697
22636         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22637         initial acquire barrier with final barrier.
22639 2015-06-29  Richard Henderson  <rth@redhat.com>
22641         * config/i386/constraints.md (Bf): New constraint.
22642         * config/i386/i386-c.c (ix86_target_macros): Define
22643         __GCC_ASM_FLAG_OUTPUTS__.
22644         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22645         as flags outputs.
22646         * doc/extend.texi (FlagOutputOperands): Document them.
22648 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
22650         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22651         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22652         unspec name.
22653         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22654         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22655         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22656         (aarch64_symbol_context): Ditto.
22657         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22658         and use new pattern name.
22659         (aarch64_expand_mov_immediate): Ditto.
22660         (aarch64_print_operand): Ditto.
22661         (aarch64_classify_tls_symbol): Ditto.
22663 2015-06-29  Marek Polacek  <polacek@redhat.com>
22664             Marc Glisse  <marc.glisse@inria.fr>
22666         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22667         * match.pd: ... pattern here.
22669 2015-06-29  Tom de Vries  <tom@codesourcery.com>
22671         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22672         function structure.
22674 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
22676         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22677         feature description, split out the native option, add a link to
22678         the feature documentation, rearrange and slightly rewrite text.
22679         (Aarch64 options, -mcpu): Likewise.
22680         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
22681         +rdma implies Adv. SIMD.
22683 2015-06-29  Marek Polacek  <polacek@redhat.com>
22685         PR c/66322
22686         * function.c (stack_protect_epilogue): Remove a cast to int.
22687         * doc/invoke.texi: Update -Wswitch-bool description.
22689 2015-06-29  Richard Biener  <rguenther@suse.de>
22691         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22692         * fold-const.c (fold_binary_loc): Move &A - &B simplification
22693         via ptr_difference_const ...
22694         * match.pd: ... here.
22695         When matching (X ^ Y) == Y also match with swapped operands.
22697 2015-06-29  Richard Biener  <rguenther@suse.de>
22699         * lto-streamer.h (LTO_major_version): Bump to 5.
22701 2015-06-29  Richard Biener  <rguenther@suse.de>
22703         PR tree-optimization/66677
22704         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22705         STMT_VINFO_VEC_STMT clobbering less strict.
22707 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
22709         PR middle-end/64130
22710         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22711         division, compute max and min when value ranges for dividend and
22712         divisor are available.
22714 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
22715             Sandra Loosemore <sandra@codesourcery.com>
22717         * regrename.h (regrename_do_replace): Change to return bool.
22718         * regrename.c (rename_chains): Check return value of
22719         regname_do_replace.
22720         (regrename_do_replace): Re-validate the modified insns and
22721         return bool status.
22722         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22723         Update to match rename_chains changes.
22724         * config/c6x/c6x.c (try_rename_operands): Assert that
22725         regrename_do_replace returns true.
22727 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
22729         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22730         operand 2 here.  Use copy_addr_to_reg to copy non-index
22731         register operand 2 to a temporary.
22732         (<mode>_stx): Ditto for operand 1.
22733         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22734         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22735         (ix86_store_bounds): Ditto.
22737 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
22739         * print-tree.c (print_node) [TREE_VEC]: Print its length.
22741 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
22743         * gimple.c (gimple_call_set_fndecl): Remove.
22744         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22745         build1_loc directly instead of build_fold_addr_expr_loc.
22747 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22749         * hash-map.h (hash_map::traverse): Use the definition of the
22750         Key typedef rather than the typedef itself.
22752 2015-06-26  Martin Jambor  <mjambor@suse.cz>
22754         PR debug/66301
22755         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22756         NULL instead of calling dump_enabled_p.
22758 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22760         * config/aarch64/aarch64.opt: (override): New.
22761         * doc/invoke.texi (override): Document.
22762         * config/aarch64/aarch64.c (aarch64_flag_desc): New
22763         (aarch64_fusible_pairs): Likewise.
22764         (aarch64_tuning_flags): Likewise.
22765         (aarch64_tuning_override_function): Likewise.
22766         (aarch64_tuning_override_functions): Likewise.
22767         (aarch64_parse_one_option_token): Likewise.
22768         (aarch64_parse_boolean_options): Likewise.
22769         (aarch64_parse_fuse_string): Likewise.
22770         (aarch64_parse_tune_string): Likewise.
22771         (aarch64_parse_one_override_token): Likewise.
22772         (aarch64_parse_override_string): Likewise.
22773         (aarch64_override_options): Parse the -override string if it
22774         is present.
22776 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22778         * config/aarch64/aarch64-protos.h (tune_params): Remove
22779         const from members.
22780         (aarch64_tune_params): Remove const, change to no longer be
22781         a pointer.
22782         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22783         change to no longer be a pointer, initialize to generic_tunings.
22784         (aarch64_min_divisions_for_recip_mul): Change dereference of
22785         aarch64_tune_params to member access.
22786         (aarch64_reassociation_width): Likewise.
22787         (aarch64_rtx_mult_cost): Likewise.
22788         (aarch64_address_cost): Likewise.
22789         (aarch64_branch_cost): Likewise.
22790         (aarch64_rtx_costs): Likewise.
22791         (aarch64_register_move_cost): Likewise.
22792         (aarch64_memory_move_cost): Likewise.
22793         (aarch64_sched_issue_rate): Likewise.
22794         (aarch64_builtin_vectorization_cost): Likewise.
22795         (aarch64_override_options): Take a copy of the selected tuning
22796         struct in to aarch64_tune_params, rather than just setting
22797         a pointer, change dereferences of aarch64_tune_params to member
22798         accesses.
22799         (aarch64_override_options_after_change): Change dereferences of
22800         aarch64_tune_params to member access.
22801         (aarch64_macro_fusion_p): Likewise.
22802         (aarch_macro_fusion_pair_p): Likewise.
22803         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22805 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22807         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22808         (aarch64_tune_flags): Likewise.
22809         (AARCH64_TUNE_FMA_STEERING): Likewise.
22810         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22811         to AARCH64_FL_USE_FMA_STEERING_PASS.
22812         (cortex-a57.cortex-a53): Likewise.
22813         (cortex-a72): Use cortexa72_tunings.
22814         (cortex-a72.cortex-a53): Likewise.
22815         (exynos-m1): Likewise.
22816         * config/aarch64/aarch64-protos.h (tune_params): Add
22817         a field: extra_tuning_flags.
22818         * config/aarch64/aarch64-tuning-flags.def: New.
22819         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22820         (aarch64_extra_tuning_flags): Likewise.
22821         (aarch64_tune_params): Declare here.
22822         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22823         (cortexa53_tunings): Likewise.
22824         (cortexa57_tunings): Likewise.
22825         (thunderx_tunings): Likewise.
22826         (xgene1_tunings): Likewise.
22827         (cortexa72_tunings): New.
22828         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22829          (gate): Check against aarch64_tune_params.
22830         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22831         aarch64-protos.h.
22833 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22835         * config/aarch64/aarch64-fusion-pairs.def: New.
22836         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22837         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22838         aarch64_fusion_pairs.
22839         (AARCH64_FUSE_MOV_MOVK): Likewise.
22840         (AARCH64_FUSE_ADRP_ADD): Likewise.
22841         (AARCH64_FUSE_MOVK_MOVK): Likewise.
22842         (AARCH64_FUSE_ADRP_LDR): Likewise.
22843         (AARCH64_FUSE_CMP_BRANCH): Likewise.
22845 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22847         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22848         SYMBOL_SMALL_GOT_28K.
22849         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22850         relocation modifiers.
22851         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22852         (ldr_got_small_28k_<mode>): New.
22853         (ldr_got_small_28k_sidi): New.
22854         * config/aarch64/iterators.md (got_modifier): New mode iterator.
22855         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22856         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22857         SYMBOL_SMALL_GOT_28K.
22858         (aarch64_rtx_costs): Add costs for new instruction sequences.
22859         (initialize_aarch64_code_model): Initialize new model.
22860         (aarch64_classify_symbol): Recognize new model and new symbol classification.
22861         (aarch64_asm_preferred_eh_data_format): Support new model.
22862         (aarch64_load_symref_appropriately): Generate new instruction
22863         sequences for -fpic.
22864         (TARGET_USE_PSEUDO_PIC_REG): New definition.
22865         (aarch64_use_pseudo_pic_reg): New function.
22867 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22869         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22870         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22871         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22872         (aarch64_expand_mov_immediate): Ditto.
22873         (aarch64_print_operand): Ditto.
22874         (aarch64_classify_symbol): Ditto.
22876 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
22878         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22880 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
22882         PR bootstrap/66638
22883         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22884         assertion failed.  Remove assertion itself.
22886 2015-06-26  Richard Biener  <rguenther@suse.de>
22888         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22889         and -A CMP CST -> A CMP -CST which is redundant with a pattern
22890         in match.pd.
22891         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22892         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22893         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22894         * match.pd: ... patterns here.
22896 2015-06-26  Marek Polacek  <polacek@redhat.com>
22898         * match.pd ((x | y) & ~(x & y) -> x ^ y,
22899         (x | y) & (~x ^ y) -> x & y): New patterns.
22901 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22903         * rtl.h (emit): Add an optional boolean parameter to control
22904         whether barriers are emitted.
22905         * emit-rtl.c (emit): Likewise.
22906         * gensupport.c (get_emit_function): Return null rather than "emit".
22907         * genemit.c (gen_emit_seq): Handle the null return value.
22908         Don't emit barriers after the final instruction in the sequence.
22909         * gentarget-def.c (main): Don't emit barriers after the instruction.
22911 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22913         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22914         TARGET_UNIFIED_ASM.
22916 2015-06-26  Richard Biener  <rguenther@suse.de>
22918         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22920 2015-06-26  Richard Biener  <rguenther@suse.de>
22922         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22923         irrespective on whether the inner operation has a single use
22924         of both off are constant.
22926 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
22927             Segher Boessenkool  <segher@kernel.crashing.org>
22929         PR target/66412
22930         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22931         before doing PUT_MODE or PUT_CODE on operands to avoid
22932         in-place RTX modification.
22934 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22936         * gentarget-def.c (def_target_insn): Cast return of strtol to
22937         unsigned int.
22939 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22941         * gimple.h (gimple_call_set_fn): Move inline function.
22942         * gimple.c (gimple_call_set_fn): Relocate here.
22944 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
22946         PR target/65979
22947         PR target/66611
22948         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22949         the replacement insn will work.
22951 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22953         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22954         by default.
22956 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22958         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22959         * cgraph.h: Include ipa-ref.h and plugin-api.h.
22960         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22961         (symtab_node::address_can_be_compared_p): Move function.
22962         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22963         definition here.
22964         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22965         * auto-profile.c: Likewise.
22966         * bb-reorder.c: Likewise.
22967         * builtins.c: Likewise.
22968         * calls.c: Likewise.
22969         * cfgexpand.c: Likewise.
22970         * cgraphbuild.c: Likewise.
22971         * cgraphclones.c: Likewise.
22972         * cgraphunit.c: Likewise.
22973         * combine.c: Likewise.
22974         * coverage.c: Likewise.
22975         * data-streamer-in.c: Likewise.
22976         * data-streamer-out.c: Likewise.
22977         * data-streamer.c: Likewise.
22978         * dbxout.c: Likewise.
22979         * dwarf2out.c: Likewise.
22980         * except.c: Likewise.
22981         * expr.c: Likewise.
22982         * final.c: Likewise.
22983         * fold-const.c: Likewise.
22984         * ggc-page.c: Likewise.
22985         * gimple-fold.c: Likewise.
22986         * gimple-iterator.c: Likewise.
22987         * gimple-pretty-print.c: Likewise.
22988         * gimple-streamer-in.c: Likewise.
22989         * gimple-streamer-out.c: Likewise.
22990         * gimple.c: Likewise.
22991         * gimplify.c: Likewise.
22992         * ipa-chkp.c: Likewise.
22993         * ipa-comdats.c: Likewise.
22994         * ipa-cp.c: Likewise.
22995         * ipa-devirt.c: Likewise.
22996         * ipa-icf-gimple.c: Likewise.
22997         * ipa-icf.c: Likewise.
22998         * ipa-inline-analysis.c: Likewise.
22999         * ipa-inline-transform.c: Likewise.
23000         * ipa-inline.c: Likewise.
23001         * ipa-polymorphic-call.c: Likewise.
23002         * ipa-profile.c: Likewise.
23003         * ipa-prop.c: Likewise.
23004         * ipa-pure-const.c: Likewise.
23005         * ipa-ref.c: Likewise.
23006         * ipa-reference.c: Likewise.
23007         * ipa-split.c: Likewise.
23008         * ipa-utils.c: Likewise.
23009         * ipa-visibility.c: Likewise.
23010         * ipa.c: Likewise.
23011         * langhooks.c: Likewise.
23012         * lto-cgraph.c: Likewise.
23013         * lto-compress.c: Likewise.
23014         * lto-opts.c: Likewise.
23015         * lto-section-in.c: Likewise.
23016         * lto-section-out.c: Likewise.
23017         * lto-streamer-in.c: Likewise.
23018         * lto-streamer-out.c: Likewise.
23019         * lto-streamer.c: Likewise.
23020         * omp-low.c: Likewise.
23021         * opts-global.c: Likewise.
23022         * passes.c: Likewise.
23023         * predict.c: Likewise.
23024         * print-tree.c: Likewise.
23025         * profile.c: Likewise.
23026         * ree.c: Likewise.
23027         * sanopt.c: Likewise.
23028         * stor-layout.c: Likewise.
23029         * symtab.c: Likewise.
23030         * toplev.c: Likewise.
23031         * trans-mem.c: Likewise.
23032         * tree-cfg.c: Likewise.
23033         * tree-chkp.c: Likewise.
23034         * tree-eh.c: Likewise.
23035         * tree-emutls.c: Likewise.
23036         * tree-inline.c: Likewise.
23037         * tree-nested.c: Likewise.
23038         * tree-parloops.c: Likewise.
23039         * tree-pretty-print.c: Likewise.
23040         * tree-profile.c: Likewise.
23041         * tree-sra.c: Likewise.
23042         * tree-ssa-alias.c: Likewise.
23043         * tree-ssa-live.c: Likewise.
23044         * tree-ssa-loop-ivcanon.c: Likewise.
23045         * tree-ssa-loop-ivopts.c: Likewise.
23046         * tree-ssa-pre.c: Likewise.
23047         * tree-ssa-sccvn.c: Likewise.
23048         * tree-ssa-strlen.c: Likewise.
23049         * tree-ssa-structalias.c: Likewise.
23050         * tree-streamer-in.c: Likewise.
23051         * tree-streamer-out.c: Likewise.
23052         * tree-streamer.c: Likewise.
23053         * tree-switch-conversion.c: Likewise.
23054         * tree-tailcall.c: Likewise.
23055         * tree-vect-data-refs.c: Likewise.
23056         * tree-vect-stmts.c: Likewise.
23057         * tree-vectorizer.c: Likewise.
23058         * tree.c: Likewise.
23059         * tsan.c: Likewise.
23060         * ubsan.c: Likewise.
23061         * value-prof.c: Likewise.
23062         * varasm.c: Likewise.
23063         * varpool.c: Likewise.
23064         * config/arm/arm.c: Likewise.
23065         * config/bfin/bfin.c: Likewise.
23066         * config/c6x/c6x.c: Likewise.
23067         * config/cris/cris.c: Likewise.
23068         * config/darwin-c.c: Likewise.
23069         * config/darwin.c: Likewise.
23070         * config/i386/i386.c: Likewise.
23071         * config/i386/winnt.c: Likewise.
23072         * config/microblaze/microblaze.c: Likewise.
23073         * config/mips/mips.c: Likewise.
23074         * config/rs6000/rs6000.c: Likewise.
23075         * config/rx/rx.c: Likewise.
23076         * config/s390/s390.c: Likewise.
23077         * config/tilegx/mul-tables.c: Likewise.
23079 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23081         * config/aarch64/aarch64.c, config/alpha/alpha.c,
23082         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23083         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23084         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23085         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23086         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23087         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23088         config/microblaze/microblaze.c, config/mips/mips.c,
23089         config/mmix/mmix.c, config/mn10300/mn10300.c,
23090         config/moxie/moxie.c, config/msp430/msp430.c,
23091         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23092         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23093         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23094         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23095         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23096         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23097         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23098         target-def.h include.
23099         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
23101 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23103         * Makefile.in (TARGET_DEF): Add target-insns.def.
23104         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23105         (build/gentarget-def.o): New rule.
23106         (genprogrtl): Add target-def.
23107         * target-insns.def, gentarget-def.c: New files.
23108         * target.def: Add targetm.have_* and targetm.gen_* hooks,
23109         based on the contents of target-insns.def.
23110         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23111         (HAVE_return, gen_return): Delete.
23112         * target-def.h: Include insn-target-def.h.
23113         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23114         instead of direct calls.  Rely on them to do the appropriate assertions.
23115         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
23116         (convert_jumps_to_returns): Use targetm interface instead of
23117         direct calls.
23118         (thread_prologue_and_epilogue_insns): Likewise.
23119         * reorg.c (find_end_label, dbr_schedule): Likewise.
23120         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23121         * shrink-wrap.c (convert_to_simple_return): Likewise.
23122         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23124 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23126         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23127         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23128         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23129         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23130         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23131         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23132         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23133         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23134         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23135         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23136         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23137         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23138         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23139         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23140         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23141         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23142         includes to end.
23144 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23146         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23147         (unbounded_int_hashmap_traits::key_type): Likewise.
23148         * hash-map.h (hash_map): Get the key type from the traits.
23149         * hash-traits.h (default_hash_traits): By default, inherit from the
23150         template parameter.
23151         * alias.c (alias_set_traits): Delete.
23152         (alias_set_entry_d::children): Use alias_set_hash as the first
23153         template parameter.
23154         (record_alias_subset): Update accordingly.
23155         * except.c (tree_hash_traits): Delete.
23156         (type_to_runtime_map): Use tree_hash as the first template parameter.
23157         (init_eh): Update accordingly.
23158         * genmatch.c (capture_id_map_hasher): Delete.
23159         (cid_map_t): Use nofree_string_hash as first template parameter.
23160         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23161         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23162         Use symbol_compare_hash as the first template parameter in
23163         subdivide_hash_map.
23164         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23165         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23166         template parameter.
23167         * passes.c (pass_registry_hasher): Delete.
23168         (name_to_pass_map): Use nofree_string_hash as the first template
23169         parameter.
23170         (register_pass_name): Update accordingly.
23171         * sanopt.c (sanopt_tree_map_traits): Delete.
23172         (sanopt_tree_triplet_map_traits): Delete.
23173         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23174         template parameter.
23175         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23176         the first template parameter.
23177         * sese.c (rename_map_hasher): Delete.
23178         (rename_map_type): Use tree_ssa_name_hash as the first template
23179         parameter.
23180         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23181         (function_summary::m_map): Use map_hash as the first template
23182         parameter.
23183         (function_summary::release): Update accordingly.
23184         * tree-if-conv.c (phi_args_hash_traits): Delete.
23185         (predicate_scalar_phi): Use tree_operand_hash as the first template
23186         parameter to phi_arg_map.
23187         * tree-inline.h (dependence_hasher): Delete.
23188         (copy_body_data::dependence_map): Use dependence_hash as the first
23189         template parameter.
23190         * tree-inline.c (remap_dependence_clique): Update accordingly.
23191         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23192         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23193         parameter.
23194         (addr_stridxptr): Update accordingly.
23195         * value-prof.c (profile_id_traits): Delete.
23196         (cgraph_node_map): Use profile_id_hash as the first template
23197         parameter.
23198         (init_node_map): Update accordingly.
23199         * config/alpha/alpha.c (string_traits): Delete.
23200         (machine_function::links): Use nofree_string_hash as the first
23201         template parameter.
23202         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23203         * config/m32c/m32c.c (pragma_traits): Delete.
23204         (pragma_htab): Use nofree_string_hash as the first template parameter.
23205         (m32c_note_pragma_address): Update accordingly.
23206         * config/mep/mep.c (pragma_traits): Delete.
23207         (pragma_htab): Use nofree_string_hash as the first template parameter.
23208         (mep_note_pragma_flag): Update accordingly.
23209         * config/mips/mips.c (mips16_flip_traits): Delete.
23210         (mflip_mips16_htab): Use nofree_string_hash as the first template
23211         parameter.
23212         (mflip_mips16_use_mips16_p): Update accordingly.
23213         (local_alias_traits): Delete.
23214         (mips16_local_aliases): Use nofree_string_hash as the first template
23215         parameter.
23216         (mips16_local_alias): Update accordingly.
23218 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23220         * hash-map-traits.h (default_hashmap_traits): Delete.
23222 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23224         * hash-map-traits.h (unbounded_hashmap_traits): New class.
23225         (unbounded_int_hashmap_traits): Likewise.
23226         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23228 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23230         * ipa-icf.h (symbol_compare_hash): New class.
23231         (symbol_compare_hashmap_traits): Use it.
23232         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23233         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23234         (mem_alloc_description::reverse_mem_map_t): Remove redundant
23235         default_hashmap_traits.
23236         * sanopt.c (sanopt_tree_triplet_hash): New class.
23237         (sanopt_tree_triplet_map_traits): Use it.
23239 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23241         * gengtype-parse.c (require_template_declaration): Allow '+' in
23242         template parameters.  Consolidate cases.
23243         * hash-traits.h (int_hash): New class.
23244         * alias.c (alias_set_hash): New structure.
23245         (alias_set_traits): Use it.
23246         * symbol-summary.h (function_summary::map_hash): New class.
23247         (function_summary::summary_hashmap_traits): Use it.
23248         * tree-inline.h (dependence_hash): New class.
23249         (dependence_hasher): Use it.
23250         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23251         * value-prof.c (profile_id_hash): New class.
23252         (profile_id_traits): Use it.
23254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23256         * config/mips/mips.c (mips16_flip_traits): Use it.
23257         (local_alias_traits, mips16_local_aliases): Convert from a map of
23258         rtxes to a map of symbol names.
23259         (mips16_local_alias): Update accordingly.
23261 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23263         * hash-traits.h (string_hash, nofree_string_hash): New classes.
23264         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23265         * passes.c (pass_registry_hasher): Likewise.
23266         * config/alpha/alpha.c (string_traits): Likewise.
23267         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23268         * config/m32c/m32c.c (pragma_traits): Likewise.
23269         * config/mep/mep.c (pragma_traits): Likewise.
23271 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23273         * tree-hash-traits.h (tree_hash): New class.
23274         * except.c: Include tree-hash-traits.h.
23275         (tree_hash_traits): Use tree_hash.
23277 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23279         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23280         * sese.c: Include tree-hash-traits.h.
23281         (rename_map_hasher): Use tree_ssa_name_hasher.
23283 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23285         * tree-hash-traits.h (tree_decl_hash): New class.
23286         * tree-ssa-strlen.c: Include tree-hash-traits.h.
23287         (stridxlist_hash_traits): Use tree_decl_hash.
23289 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23291         * tree-hash-traits.h: New file.
23292         (tree_operand_hash): New class.
23293         * sanopt.c: Include tree-hash-traits.h.
23294         (sanopt_tree_map_traits): Use tree_operand_hash.
23295         * tree-if-conv.c: Include tree-hash-traits.h.
23296         (phi_args_hash_traits): Use tree_operand_hash.
23297         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23298         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23300 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23302         * hash-map-traits.h: Include hash-traits.h.
23303         (simple_hashmap_traits): New class.
23304         * mem-stats.h (hash_map): Change the default traits to
23305         simple_hashmap_traits<default_hash_traits<Key> >.
23307 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23309         * hash-table.h: Update comments.
23311 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23313         * hash-traits.h (default_hash_traits): New structure.
23314         * hash-set.h (default_hashset_traits): Delete.
23315         (hash_set): Use default_hash_traits<Key> instead of
23316         default_hashset_traits.  Delete hash_entry type and use Key directly.
23317         * ipa-devirt.c (pair_traits): Delete.
23318         (default_hash_traits <type_pair>): Override.
23319         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23320         (odr_types_equivalent_p, add_type_duplicate): Likewise.
23322 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23324         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23326 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23328         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23329         (has_is_empty, is_empty_helper): Delete.
23330         (has_mark_deleted, mark_deleted_helper): Delete.
23331         (has_mark_empty, mark_empty_helper): Delete.
23332         (hash_table::is_deleted): Call the Descriptor unconditionally.
23333         (hash_table::is_empty): Likewise.
23334         (hash_table::mark_deleted): Likewise.
23335         (hash_table::mark_empty): Likewise.
23337 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23339         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
23340         redundant typedefs and members.
23341         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
23342         redundant typedefs.
23343         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23344         * ipa-devirt.c (odr_name_hasher): Likewise.
23345         (polymorphic_call_target_hasher): Likewise.
23346         * ira-costs.c (cost_classes_hasher): Likewise.
23347         * statistics.c (stats_counter_hasher): Likewise.
23348         * trans-mem.c (log_entry_hasher): Likewise.
23349         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23350         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23351         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23352         * var-tracking.c (variable_hasher): Likewise.
23353         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23354         Remove redundant typedefs and members.
23356 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23358         * hash-traits.h (ggc_cache_hasher): Rename to...
23359         (ggc_cache_remove): ...this and remove typedefs.
23360         (ggc_cache_ptr_hash): New class.
23361         * hash-table.h: Update commentary.
23362         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23363         rather than ggc_cache_hasher.
23364         (const_wide_int_hasher, reg_attr_hasher): Likewise.
23365         (const_double_hasher, const_fixed_hasher): Likewise.
23366         * function.c (insn_cache_hasher): Likewise.
23367         * trans-mem.c (tm_wrapper_hasher): Likewise.
23368         * tree.h (tree_decl_map_cache_hasher): Likewise.
23369         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23370         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23371         * ubsan.c (tree_type_map_cache_hasher): Likewise.
23372         * varasm.c (tm_clone_hasher): Likewise.
23373         * config/i386/i386.c (dllimport_hasher): Likewise.
23374         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23375         (tree_hasher): Likewise.
23377 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23379         * hash-traits.h (ggc_hasher): Rename to...
23380         (ggc_remover): ...this and remove typedefs.
23381         (ggc_cache_hasher): Update accordingly.  Add typedefs.
23382         (ggc_ptr_hash): New class.
23383         * hash-table.h: Update comment.
23384         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23385         ggc_hasher.
23386         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23387         (tree_descriptor_hasher): Likewise.
23388         * cgraph.c (function_version_hasher): Likewise.
23389         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23390         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23391         (dw_loc_list_hasher, addr_hasher): Likewise.
23392         * function.h (used_type_hasher): Likewise.
23393         * function.c (temp_address_hasher): Likewise.
23394         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23395         * libfuncs.h (libfunc_hasher): Likewise.
23396         * lto-streamer.h (decl_state_hasher): Likewise.
23397         * optabs.c (libfunc_decl_hasher): Likewise.
23398         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23399         * varasm.c (section_hasher, object_block_hasher): Likewise.
23400         (const_rtx_desc_hasher): Likewise.
23401         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23402         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23404 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23406         * hash-traits.h (free_ptr_hash): New class.
23407         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23408         rather than typed_free_remove.  Remove redudant typedefs.
23409         (external_ref_hasher): Likewise.
23410         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23411         (ehspec_hasher): Likewise.
23412         * ggc-common.c (saving_hasher): Likewise.
23413         * gimplify.c (gimplify_hasher): Likewise.
23414         * haifa-sched.c (delay_i2_hasher): Likewise.
23415         * loop-invariant.c (invariant_expr_hasher): Likewise.
23416         * loop-iv.c (biv_entry_hasher): Likewise.
23417         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23418         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23419         * tree-cfg.c (locus_discrim_hasher): Likewise.
23420         * tree-eh.c (finally_tree_hasher): Likewise.
23421         * tree-into-ssa.c (var_info_hasher): Likewise.
23422         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23423         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23424         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23425         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23426         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23427         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23428         (shared_bitmap_hasher): Likewise.
23429         * tree-ssa-threadupdate.c (redirection_data): Likewise.
23430         * tree-vectorizer.h (peel_info_hasher): Likewise.
23431         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23432         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23434 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23436         * hash-table.h: Update comments.
23437         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23438         (nofree_ptr_hash): New class.
23439         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23440         than typed_noop_remove.  Remove redudant typedefs.
23441         * attribs.c (attribute_hasher): Likewise.
23442         * cfg.c (bb_copy_hasher): Likewise.
23443         * cselib.c (cselib_hasher): Likewise.
23444         * dse.c (invariant_group_base_hasher): Likewise.
23445         * dwarf2cfi.c (trace_info_hasher): Likewise.
23446         * dwarf2out.c (macinfo_entry_hasher): Likewise.
23447         (comdat_type_hasher, loc_list_hasher): Likewise.
23448         * gcse.c (pre_ldst_expr_hasher): Likewise.
23449         * genmatch.c (id_base): Likewise.
23450         * genrecog.c (test_pattern_hasher): Likewise.
23451         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23452         * haifa-sched.c (delay_i1_hasher): Likewise.
23453         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23454         * ipa-icf.h (congruence_class_group_hash): Likewise.
23455         * ipa-profile.c (histogram_hash): Likewise.
23456         * ira-color.c (allocno_hard_regs_hasher): Likewise.
23457         * lto-streamer.h (string_slot_hasher): Likewise.
23458         * lto-streamer.c (tree_entry_hasher): Likewise.
23459         * plugin.c (event_hasher): Likewise.
23460         * postreload-gcse.c (expr_hasher): Likewise.
23461         * store-motion.c (st_expr_hasher): Likewise.
23462         * tree-sra.c (uid_decl_hasher): Likewise.
23463         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23464         (ssa_name_var_hash): Likewise.
23465         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23466         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23467         * tree-ssa-pre.c (pre_expr_d): Likewise.
23468         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23469         * vtable-verify.h (registration_hasher): Likewise.
23470         * vtable-verify.c (vtbl_map_hasher): Likewise.
23471         * config/arm/arm.c (libcall_hasher): Likewise.
23472         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23473         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23474         * config/sol2.c (comdat_entry_hasher): Likewise.
23475         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23476         (print_fold_checksum, fold_checksum_tree): Likewise.
23477         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23478         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23479         (fold_build_call_array_loc): Likewise.
23480         * tree-ssa-ccp.c (gimple_htab): Likewise.
23481         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23482         rather than pointer_type.
23484 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23486         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23487         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23489 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23491         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23492         (ggc_hasher::ggc_mx): Likewise.
23493         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
23494         that duplicate ggc_hasher ones.
23496 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23498         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23499         (gt_cleare_cache): Check here for deleted and empty entries.
23500         Replace handle_cache_entry with a call to keep_cache_entry.
23501         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23502         (ggc_cache_hasher::keep_cache_entry): New function.
23503         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23504         (tm_wrapper_hasher::keep_cache_entry): New function.
23505         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23506         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23507         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23508         (type_cache_hasher::keep_cache_entry): New function.
23509         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23510         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23511         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23512         (tree_type_map_cache_hasher::keep_cache_entry): New function.
23513         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23514         (tm_clone_hasher::keep_cache_entry): New function.
23515         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23516         (dllimport_hasher::keep_cache_entry): New function.
23518 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23520         * hash-table.h: Include hash-traits.h.
23521         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23522         (ggc_cache_hasher): Move to...
23523         * hash-traits.h: ...this new file.
23525 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23527         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23528         struct cl_optimization.
23529         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23530         * tree.c (make_node_stat): Allocate cl_optimization struct.
23531         (copy_node_stat): Allocate and copy cl_optimization struct.
23533 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23535         * function.h (struct incoming_args): Move struct.
23536         (pass_by_reference, reference_callee_copied): Remove prototypes.
23537         * emit-rtl.h (struct incoming_args): Relocate struct here.
23538         * calls.h (pass_by_reference, reference_callee_copied): Relocate
23539         prototypes here.
23540         * function.c (pass_by_reference, reference_callee_copied): Move.
23541         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23542         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23543         * ipa-chkp.c: Include calls.h.
23545 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
23547         * alias.h (alias_set_type): Move typedef.
23548         * coretypes.h (alias_set_type): Relocate typedef here.
23549         * rtl.h: Don't include alias.h.
23551 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23553         * cgraph.h (cgraph_rtl_info): Move to rtl.h
23554         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23555         and instance.
23556         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23557         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23558         doesn't exist.
23559         * calls.c: Include hard-reg-set.h before rtl.h.
23560         * ira.c: Likewise.
23562 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23563             Vladimir Makarov  <vmakarov@redhat.com>
23565         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23566         Add assert.
23568 2015-06-25  Richard Biener  <rguenther@suse.de>
23570         * fold-const.c (fold_binary_loc): Move simplification of
23571         (X <<>> C1) & C2 ...
23572         * match.pd: ... here.
23574 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23576         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23578 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23580         * match.pd: Add patterns for vec_conds between 1 and 0.
23582 2015-06-25  Richard Biener  <rguenther@suse.de>
23584         * tree-vect-stmts.c (vectorizable_conversion): Do not set
23585         STMT_VINFO_VEC_STMT for SLP.
23586         (vectorizable_store): Likewise.
23587         (vectorizable_load): Likewise.
23588         (vect_transform_stmt): Catch SLP vectorization clobbering
23589         STMT_VINFO_VEC_STMT.
23591 2015-06-25  Richard Biener  <rguenther@suse.de>
23593         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23594         dumping.
23595         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23596         cleanup resulting dead code and parameters.
23597         (vect_transform_slp_perm_load): Adjust.
23599 2015-06-25  Nick Clifton  <nickc@redhat.com>
23601         * config/bfin/bfin.c (bfin_expand_prologue): Set
23602         current_function_static_stack_size if flag_stack_usage_info is set.
23603         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23604         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23605         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23606         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23608 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23610         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23611         comment that the generated IV is unsigned.
23613 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23615         PR target/29693
23616         * config/arm/arm.c (arm_dbx_register_number): Return
23617         DWARF_FRAME_REGISTERS by default.
23619 2015-06-25  Tom de Vries  <tom@codesourcery.com>
23621         * dominance.c (calculate_dominance_info): Fix verify_dominators call
23622         argument.  Call verify_dominator when reusing dominator info.
23624 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
23626         PR target/66563
23627         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23628         an additional element of the unspec vector.  Modify indices
23629         of operands.
23630         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23631         * config/sh/sh.c (prepare_move_operands): Pass incremented
23632         const_int to gen_GOTaddr2picreg.
23633         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23635 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23637         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23638         Condition on TARGET_FLOAT.
23640 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23642         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23643         and (no)crypto.
23645 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
23647         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23649         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23650         aarch64_err_no_fpadvsimd.
23652         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23653         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23654         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23655         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23656         Turn error into assert, test TARGET_FLOAT.
23657         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23658         TARGET_FLOAT.
23660 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
23662         PR debug/66482
23663         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23665 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
23667         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23669 2015-06-24  Renlin Li <renlin.li@arm.com>
23671         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23672         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23674 2015-06-24  Richard Biener  <rguenther@suse.de>
23676         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23677         (main): Likewise.
23678         (lower_opt_convert): Support lowering of conditional view_convert.
23679         (parser::parse_operation): Likewise.
23680         (parser::parse_for): Likewise.
23682 2015-06-24  Renlin Li  <renlin.li@arm.com>
23684         * varasm.c (emit_local): Use unsigned int for align variable.
23686 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23688         PR target/63408
23689         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23690         for negative numbers.
23692 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23694         PR rtl-optimization/66306
23695         * reload.c (find_reloads): Swap the match_dup info for
23696         commutative operands.
23698 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23700         * config/s390/vx-builtins.md
23701         ("vec_scatter_element<mode>_<non_vec_int>")
23702         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23703         attribute with bhfgq.
23705 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23707         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23709 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23711         * config/s390/s390-builtin-types.def: Add flag to indicate the
23712         options under which the function type is needed.
23713         * config/s390/s390-builtins.def: Add flag to indicate the options
23714         under which the builtin is enabled.
23715         * config/s390/s390-builtins.h: Add flags parameter to macro
23716         definitions.
23717         (bflags_for_builtin): New function.
23718         (flags_for_builtin): Renamed to ...
23719         (opflags_for_builtin): ... this.
23720         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23721         flags_for_builtin to bflags_for_builtin and
23722         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23723         * config/s390/s390.c: Add initialization of bflags_builtin and
23724         opflags_builtin arrays.
23725         Remove code for flags_builtin.
23726         (s390_init_builtins): Only create builtin function types if one of
23727         their flags is active.
23728         Only create builtins if all of their flags are active.
23729         (s390_expand_builtin): Rename flags_for_builtin to
23730         opflags_for_builtin.
23732 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23734         * config/s390/vecintrin.h: Remove internal builtins.
23736 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23738         * config/s390/s390.c (s390_secondary_reload): Fix check for
23739         GENERAL_REGS register class.
23741 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23743         * config/s390/s390.c (s390_support_vector_misalignment): Call
23744         default implementation for !TARGET_VX.
23746 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23748         * config/s390/s390.c (s390_legitimate_constant_p): Add
23749         TARGET_VX check.
23751 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23753         * config/s390/s390.c (s390_vector_abi): New variable definition.
23754         (s390_check_type_for_vector_abi): New function.
23755         (TARGET_ASM_FILE_END): New macro definition.
23756         (s390_asm_file_end): New function.
23757         (s390_function_arg): Call s390_check_type_for_vector_abi.
23758         (s390_gimplify_va_arg): Likewise.
23759         * configure: Regenerate.
23760         * configure.ac: Check for .gnu_attribute Binutils feature.
23762 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
23764         PR target/65803
23765         * config/bfin/bfin.c (hwloop_optimize): Initialize
23766         JUMP_LABEL for newly created jump.
23768 2015-06-23  Tristan Gingold  <gingold@adacore.com>
23770         * collect-utils.c (collect_wait): Unlink the response file here
23771         instead of...
23772         (do_wait): ...here.
23773         (utils_cleanup): ...and here.
23775 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
23777         * df-scan.c: Don't include target-def.h.
23778         * targhooks.c: Likewise.
23779         * config/arm/arm-c.c: Likewise.
23780         * config/i386/i386-c.c: Likewise.
23781         * config/nds32/nds32-cost.c: Likewise.
23782         * config/nds32/nds32-fp-as-gp.c: Likewise.
23783         * config/nds32/nds32-intrinsic.c: Likewise.
23784         * config/nds32/nds32-isr.c: Likewise.
23785         * config/nds32/nds32-md-auxiliary.c: Likewise.
23786         * config/nds32/nds32-memory-manipulation.c: Likewise.
23787         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23788         * config/nds32/nds32-predicates.c: Likewise.
23790 2015-06-23  Richard Biener  <rguenther@suse.de>
23792         PR tree-optimization/66636
23793         * tree-vect-stmts.c (vectorizable_store): Properly compute the
23794         def type for further defs for strided stores.
23796 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
23798         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23799         conditional selects.
23800         (setcc_int<mode>, setcc_float<mode>): Reformat.
23802 2015-06-23  Marek Polacek  <polacek@redhat.com>
23804         * match.pd ((x + y) - (x | y) -> x & y,
23805         (x + y) - (x & y) -> x | y): New patterns.
23807 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
23809         PR 65711
23810         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23811         '-dynamic-linker' within %{!shared: ...}.
23813 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
23815         PR target/66560
23816         * config/i386/predicates.md (addsub_vm_operator): New predicate.
23817         (addsub_vs_operator): Ditto.
23818         (addsub_vs_parallel): Ditto.
23819         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23820         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23821         Put minus RTX before plus and adjust vec_merge selector.
23822         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23823         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23824         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23825         (addsub vec_merge splitters): New combiner splitters.
23826         (addsub vec_select/vec_concat splitters): Ditto.
23828 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
23830         PR tree-optimization/66449
23831         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23832         POINTER_PLUS_EXPR for pointers.
23834 2015-06-23  Alan Modra  <amodra@gmail.com>
23836         * rtlanal.c (commutative_operand_precedence): Correct comments.
23837         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23838         declaration.  Return an int.  Distinguish REG,REG return from
23839         others.
23840         (struct simplify_plus_minus_op_data): Make local to function.
23841         (simplify_plus_minus): Don't set canonicalized if merely sorting
23842         registers.  Avoid packing ops if nothing changes.  White space fixes.
23844 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
23846         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23847         -fdump-ada-spec is passed but not if -fsyntax-only is.
23849 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
23851         PR bootstrap/63740
23852         * lra-lives.c (process_bb_lives): Check insn copying the same
23853         reload pseudo and don't create a copy for it.
23855 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23857         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23858         for cond_stmt.
23860 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23862         * builtins.def (DEF_GOMP_BUILTIN): Test
23863         'flag_tree_parallelize_loops > 1' instead of
23864         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
23866 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23868         * dominance.c (calculate_dominance_info): Verify dominators if
23869         early-out.
23871 2015-06-22  Marek Polacek  <polacek@redhat.com>
23873         * match.pd ((x ^ y) ^ (x | y) -> x & y,
23874         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23875         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23876         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23878 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
23880         PR target/65871
23881         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23882         cost of embedded comparison.
23884 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23886         PR target/65914
23887         * config/rs6000/predicates.md (altivec_register_operand): Permit
23888         virtual stack registers.
23889         (vsx_register_operand): Likewise.
23890         (vfloat_operand): Likewise.
23891         (vint_operand): Likewise.
23892         (vlogical_operand): Likewise.
23894 2015-06-22  Richard Biener  <rguenther@suse.de>
23896         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23897         and single_scalar_iteration_cost members.
23898         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23899         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23900         (vect_get_single_scalar_iteration_cost): Remove.
23901         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23902         Use LOOP_VINFO_SCALAR_ITERATION_COST.
23903         * tree-vect-loop.c (destroy_loop_vec_info): Free
23904         scalar_cost_vec.
23905         (vect_get_single_scalar_iteration_cost): Compute result into
23906         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23907         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
23908         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23909         (vect_estimate_min_profitable_iters): Use them.
23911 2015-06-22  Christian Bruel  <christian.bruel@st.com>
23913         PR target/52144
23914         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23915         (TARGET_INSERT_ATTRIBUTES): Define.
23916         (thumb_flipper): New var.
23917         * config/arm/arm.opt (-mflip-thumb): New switch.
23919 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23920             Martin Liska  <mliska@suse.cz>
23922         PR ipa/65908
23923         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23924         construction of arg_types.
23925         (sem_function::sem_function): Likewise.
23926         (sem_function::~sem_function): Remove destruction of arg_types.
23927         (sem_function::compatible_parm_types_p): New function.
23928         (sem_function::equals_wpa): Reorg matching of return values
23929         and parameter types.
23930         (sem_function::equals_private): Reorg mathcing of argument types.
23931         (sem_function::parse_tree_args): Remove.
23932         * ipa-icf.h (init_wpa): Do not call it.
23933         (parse_tree_args): Remove.
23934         (compatible_parm_types_p): Declare.
23935         (result_type): Remove.
23936         (arg_types): Remove.
23938 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23940         PR ipa/66351
23941         * ipa-polymorphic-call.c
23942         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23943         initializing alias oracle; fix formating; set base_alias_set if it
23944         is known.
23946 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
23948         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23949         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23950         (find_inc): Likewise.
23951         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23952         swapping.
23953         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23954         * df-scan.c (df_swap_refs): Remove.
23955         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23956         * dominance.c (link_roots): Use std::swap instead of manually swapping.
23957         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23958         * fold-const.c (fold_relational_const): Likewise.
23959         * genattrtab.c (simplify_test_exp): Likewise.
23960         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23961         gimple_simplify): Likewise.
23962         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23963         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23964         * ipa-devirt.c (add_type_duplicate): Likewise.
23965         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23966         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23967         * lra.c (lra_create_copy): Likewise.
23968         * lto-streamer-out.c (DFS::DFS): Likewise.
23969         * modulo-sched.c (get_sched_window): Likewise.
23970         * omega.c (omega_pretty_print_problem): Likewise.
23971         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23972         * reload1.c (reloads_unique_chain_p): Likewise.
23973         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23974         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23975         use std::swap.
23976         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23977         manually swapping.
23978         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23979         predicate_mem_writes): Likewise.
23980         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23981         * tree-predcom.c (combine_chains): Likewise.
23982         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23983         refs_may_alias_p_1): Likewise.
23984         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23985         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23986         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23987         number_of_iterations_cond): Likewise.
23988         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23989         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23990         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23991         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23992         * tree-vrp.c (extract_range_from_binary_expr_1,
23993         extract_range_from_unary_expr_1): Likewise.
23995 2015-06-20  Marek Polacek  <polacek@redhat.com>
23997         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23999 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24001         PR target/66591
24002         * config/sh/sh.c (prepare_move_operands): Replace subreg
24003         index term with R0 for base and index addressing.
24005 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
24007         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24008         op1 is an fp zero.
24009         (movsf_aarch64): Change condition from register_operand to
24010         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
24011         load1.  Change type for alternative 7 to store1.
24012         (movdf_aarch64): Likewise.
24014 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
24016         * config/vax/vax.md: Adjust sign/zero extend patterns to
24017         handle SUBREGs in operands[1].
24019 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24021         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24022         of manually swapping.
24023         (expand_vec_perm_interleave2): Likewise.
24025 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
24027         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24028         reuse bounds created for abnormal ssa names.
24030 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
24032         * config/nvptx/nvptx.md (allocate_stack): Rename to...
24033         (allocate_stack_<mode>): ... this, and add :P on both
24034         match_operand and unspec.
24035         (allocate_stack): New expander.
24037 2015-06-19  Christian Bruel  <christian.bruel@st.com>
24039         PR target/66541
24040         PR target/52144
24041         * config/arm/arm.c (arm_set_current_function): Handle
24042         explicit default options.
24044 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24046         * config/i386/i386.md (*movsicc_noc_zext): New insn.
24047         (zero-extended cmove with mem peephole2): New pattern.
24048         (cmove with mem peephole2): Merge patterns.
24050 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
24052         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24054 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
24056         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24057         * config/mips/mips.md (*madd4<mode>): Ditto.
24058         (*nmadd3<mode>) Ditto.
24059         (*nmadd4<mode>_fastmath): Ditto.
24060         (*nmadd3<mode>_fastmath): Ditto.
24061         (*nmsub4<mode>): Ditto.
24062         (*nmsub3<mode>): Ditto.
24063         (*nmsub4<mode>_fastmath): Ditto.
24064         (*nmsub3<mode>_fastmath): Ditto.
24066 2015-06-18  Michael Matz  <matz@suse.de>
24068         PR middle-end/66253
24069         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24070         grouped strided stores.
24071         (vectorizable_load): Don't use the DR from first_stmt in
24072         the non-SLP grouped strided case.
24074 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24076         PR target/66569
24077         * function.c (assign_bounds): Add arguments assign_regs,
24078         assign_special, assign_bt.
24079         (assign_parms): For vararg functions handle bounds in BT
24080         and special slots after incoming vararg bounds.
24082 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24084         PR middle-end/66568
24085         * cfgexpand.c (expand_return): Handle missing bounds.
24086         (expand_gimple_stmt_1): Likewise.
24087         * tree-chkp.c (chkp_expand_zero_bounds): New.
24088         * tree-chkp.h (chkp_expand_zero_bounds): New.
24090 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24092         PR middle-end/66567
24093         * ipa-chkp.c (chkp_maybe_create_clone): Require
24094         functions to be instrumentable.
24095         * tree-chkp.c (chkp_replace_function_pointer): Use
24096         chkp_instrumentable_p instead of attribute check.
24098 2015-06-18  Richard Biener  <rguenther@suse.de>
24100         PR tree-optimization/66510
24101         * tree-vect-stmts.c (vectorizable_load): Properly compute the
24102         number of vector loads for SLP permuted loads.
24103         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24104         check the stride for loop vectorization.
24105         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24106         vectorization factor.
24107         (vect_analyze_group_access): If the group size is not a power
24108         of two require a epilogue loop.
24109         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24110         compute and optimizing and alias test pruning after final
24111         vectorization factor computation.
24112         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24113         vector alignment.
24114         (vect_transform_slp_perm_load): Properly compute the original
24115         number of vector load stmts.
24117 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24119         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24120         "unlikely character , in @var" warning.
24122 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
24124         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24125         (ix86_function_arg_advance): Ditto.
24126         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
24128 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24130         * function.h (struct rtl_data): Remove struct and accessor macros.
24131         * emit-rtl.h (struct rtl_data): Relocate to here.
24132         * Makefile.in (GTFILES): Add emit-rtl.h.
24133         * df-core.c: Include emit-rtl.h.
24134         * genattrtab.c: Likewise.
24135         * genconditions.c: Likewise.
24136         * genpreds.c: Likewise.
24137         * genrecog.c: Likewise.
24138         * regcprop.c: Likewise.
24139         * resource.c: Likewise.
24140         * sched-rgn.c: Likewise.
24141         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24142         * config/i386/winnt.c: Likewise.
24144 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
24146         PR middle-end/66429
24147         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24148         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
24149         and has_force_vectorize_loops flags from cfun into
24150         child_cfun.
24151         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24152         if simduid is non-NULL.
24153         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24154         * passes.def (pass_simduid_cleanup): Add new pass after loop
24155         passes.
24156         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24157         indirection from htab argument's type.
24158         (shrink_simd_arrays): New function.
24159         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
24160         Don't call adjust_simduid_builtins if there are no loops.
24161         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24162         (pass_simduid_cleanup::execute): New method.
24163         (make_pass_simduid_cleanup): New function.
24165 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
24167         * tree-core.h (tree_target_option): Make opts field a pointer to a
24168         cl_target_option instead of an instance of the struct.
24169         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24170         the structure.
24171         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24172         TARGET_OPTION_NODE.
24173         (copy_node_stat): Allocate and copy struct cl_target_option.
24175 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24177         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24178         Remove conditional exposure of prototypes.
24179         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24180         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
24181         definitions in tree.h with functions.
24182         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24183         anon_aggrname_p.
24184         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24186 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
24188         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24189         (*cmp<mode>_signed): ... this.
24190         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24191         (*cmp<mode>_unsigned): ... this.  Remove %b.
24193 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24195         * coretypes.h: Include input.h and as-a.h.
24196         * rtl.h: Include input.h and as-a.h for generator files.
24197         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24198         * vec.c: Don't include diagnostic-core.h.
24199         * alias.c: Do not include input.h, line-map.h or is-a.h.
24200         * asan.c: Likewise.
24201         * attribs.c: Likewise.
24202         * auto-inc-dec.c: Likewise.
24203         * auto-profile.c: Likewise.
24204         * bb-reorder.c: Likewise.
24205         * bt-load.c: Likewise.
24206         * builtins.c: Likewise.
24207         * caller-save.c: Likewise.
24208         * calls.c: Likewise.
24209         * ccmp.c: Likewise.
24210         * cfg.c: Likewise.
24211         * cfganal.c: Likewise.
24212         * cfgbuild.c: Likewise.
24213         * cfgcleanup.c: Likewise.
24214         * cfgexpand.c: Likewise.
24215         * cfghooks.c: Likewise.
24216         * cfgloop.c: Likewise.
24217         * cfgloop.h: Likewise.
24218         * cfgloopanal.c: Likewise.
24219         * cfgloopmanip.c: Likewise.
24220         * cfgrtl.c: Likewise.
24221         * cgraph.c: Likewise.
24222         * cgraphbuild.c: Likewise.
24223         * cgraphclones.c: Likewise.
24224         * cgraphunit.c: Likewise.
24225         * cilk-common.c: Likewise.
24226         * combine-stack-adj.c: Likewise.
24227         * combine.c: Likewise.
24228         * compare-elim.c: Likewise.
24229         * convert.c: Likewise.
24230         * coverage.c: Likewise.
24231         * cppbuiltin.c: Likewise.
24232         * cprop.c: Likewise.
24233         * cse.c: Likewise.
24234         * cselib.c: Likewise.
24235         * data-streamer-in.c: Likewise.
24236         * data-streamer-out.c: Likewise.
24237         * data-streamer.c: Likewise.
24238         * dbxout.c: Likewise.
24239         * dce.c: Likewise.
24240         * ddg.c: Likewise.
24241         * debug.c: Likewise.
24242         * df-core.c: Likewise.
24243         * df-problems.c: Likewise.
24244         * df-scan.c: Likewise.
24245         * df.h: Likewise.
24246         * dfp.c: Likewise.
24247         * diagnostic-core.h: Likewise.
24248         * diagnostic.c: Likewise.
24249         * dojump.c: Likewise.
24250         * dominance.c: Likewise.
24251         * domwalk.c: Likewise.
24252         * double-int.c: Likewise.
24253         * dse.c: Likewise.
24254         * dumpfile.c: Likewise.
24255         * dumpfile.h: Likewise.
24256         * dwarf2asm.c: Likewise.
24257         * dwarf2cfi.c: Likewise.
24258         * dwarf2out.c: Likewise.
24259         * emit-rtl.c: Likewise.
24260         * et-forest.c: Likewise.
24261         * except.c: Likewise.
24262         * explow.c: Likewise.
24263         * expmed.c: Likewise.
24264         * expr.c: Likewise.
24265         * final.c: Likewise.
24266         * fixed-value.c: Likewise.
24267         * fold-const.c: Likewise.
24268         * function.c: Likewise.
24269         * fwprop.c: Likewise.
24270         * gcc-plugin.h: Likewise.
24271         * gcse.c: Likewise.
24272         * generic-match-head.c: Likewise.
24273         * ggc-page.c: Likewise.
24274         * gimple-builder.c: Likewise.
24275         * gimple-expr.c: Likewise.
24276         * gimple-fold.c: Likewise.
24277         * gimple-iterator.c: Likewise.
24278         * gimple-low.c: Likewise.
24279         * gimple-match-head.c: Likewise.
24280         * gimple-pretty-print.c: Likewise.
24281         * gimple-ssa-isolate-paths.c: Likewise.
24282         * gimple-ssa-strength-reduction.c: Likewise.
24283         * gimple-streamer-in.c: Likewise.
24284         * gimple-streamer-out.c: Likewise.
24285         * gimple-streamer.h: Likewise.
24286         * gimple-walk.c: Likewise.
24287         * gimple.c: Likewise.
24288         * gimplify-me.c: Likewise.
24289         * gimplify.c: Likewise.
24290         * godump.c: Likewise.
24291         * graph.c: Likewise.
24292         * graphite-blocking.c: Likewise.
24293         * graphite-dependences.c: Likewise.
24294         * graphite-interchange.c: Likewise.
24295         * graphite-isl-ast-to-gimple.c: Likewise.
24296         * graphite-optimize-isl.c: Likewise.
24297         * graphite-poly.c: Likewise.
24298         * graphite-scop-detection.c: Likewise.
24299         * graphite-sese-to-poly.c: Likewise.
24300         * graphite.c: Likewise.
24301         * haifa-sched.c: Likewise.
24302         * hw-doloop.c: Likewise.
24303         * ifcvt.c: Likewise.
24304         * init-regs.c: Likewise.
24305         * input.c: Likewise.
24306         * internal-fn.c: Likewise.
24307         * ipa-chkp.c: Likewise.
24308         * ipa-comdats.c: Likewise.
24309         * ipa-cp.c: Likewise.
24310         * ipa-devirt.c: Likewise.
24311         * ipa-icf-gimple.c: Likewise.
24312         * ipa-icf.c: Likewise.
24313         * ipa-inline-analysis.c: Likewise.
24314         * ipa-inline-transform.c: Likewise.
24315         * ipa-inline.c: Likewise.
24316         * ipa-polymorphic-call.c: Likewise.
24317         * ipa-profile.c: Likewise.
24318         * ipa-prop.c: Likewise.
24319         * ipa-pure-const.c: Likewise.
24320         * ipa-ref.c: Likewise.
24321         * ipa-reference.c: Likewise.
24322         * ipa-split.c: Likewise.
24323         * ipa-utils.c: Likewise.
24324         * ipa-visibility.c: Likewise.
24325         * ipa.c: Likewise.
24326         * ira-build.c: Likewise.
24327         * ira-color.c: Likewise.
24328         * ira-conflicts.c: Likewise.
24329         * ira-costs.c: Likewise.
24330         * ira-emit.c: Likewise.
24331         * ira-lives.c: Likewise.
24332         * ira.c: Likewise.
24333         * jump.c: Likewise.
24334         * langhooks.c: Likewise.
24335         * lcm.c: Likewise.
24336         * loop-doloop.c: Likewise.
24337         * loop-init.c: Likewise.
24338         * loop-invariant.c: Likewise.
24339         * loop-iv.c: Likewise.
24340         * loop-unroll.c: Likewise.
24341         * lower-subreg.c: Likewise.
24342         * lra-assigns.c: Likewise.
24343         * lra-coalesce.c: Likewise.
24344         * lra-constraints.c: Likewise.
24345         * lra-eliminations.c: Likewise.
24346         * lra-lives.c: Likewise.
24347         * lra-remat.c: Likewise.
24348         * lra-spills.c: Likewise.
24349         * lra.c: Likewise.
24350         * lto-cgraph.c: Likewise.
24351         * lto-compress.c: Likewise.
24352         * lto-opts.c: Likewise.
24353         * lto-section-in.c: Likewise.
24354         * lto-section-out.c: Likewise.
24355         * lto-streamer-in.c: Likewise.
24356         * lto-streamer-out.c: Likewise.
24357         * lto-streamer.c: Likewise.
24358         * mcf.c: Likewise.
24359         * mode-switching.c: Likewise.
24360         * modulo-sched.c: Likewise.
24361         * omega.c: Likewise.
24362         * omp-low.c: Likewise.
24363         * optabs.c: Likewise.
24364         * opts-global.c: Likewise.
24365         * opts.h: Likewise.
24366         * passes.c: Likewise.
24367         * plugin.c: Likewise.
24368         * postreload-gcse.c: Likewise.
24369         * postreload.c: Likewise.
24370         * predict.c: Likewise.
24371         * pretty-print.h: Likewise.
24372         * print-rtl.c: Likewise.
24373         * print-tree.c: Likewise.
24374         * profile.c: Likewise.
24375         * real.c: Likewise.
24376         * realmpfr.c: Likewise.
24377         * recog.c: Likewise.
24378         * ree.c: Likewise.
24379         * reg-stack.c: Likewise.
24380         * regcprop.c: Likewise.
24381         * reginfo.c: Likewise.
24382         * regrename.c: Likewise.
24383         * regstat.c: Likewise.
24384         * reload.c: Likewise.
24385         * reload1.c: Likewise.
24386         * reorg.c: Likewise.
24387         * resource.c: Likewise.
24388         * rtl-chkp.c: Likewise.
24389         * rtl-error.c: Likewise.
24390         * rtlanal.c: Likewise.
24391         * rtlhooks.c: Likewise.
24392         * sanopt.c: Likewise.
24393         * sched-deps.c: Likewise.
24394         * sched-ebb.c: Likewise.
24395         * sched-rgn.c: Likewise.
24396         * sched-vis.c: Likewise.
24397         * sdbout.c: Likewise.
24398         * sel-sched-dump.c: Likewise.
24399         * sel-sched-ir.c: Likewise.
24400         * sel-sched.c: Likewise.
24401         * sese.c: Likewise.
24402         * shrink-wrap.c: Likewise.
24403         * simplify-rtx.c: Likewise.
24404         * stack-ptr-mod.c: Likewise.
24405         * statistics.c: Likewise.
24406         * stmt.c: Likewise.
24407         * stor-layout.c: Likewise.
24408         * store-motion.c: Likewise.
24409         * streamer-hooks.c: Likewise.
24410         * stringpool.c: Likewise.
24411         * symtab.c: Likewise.
24412         * target-globals.c: Likewise.
24413         * targhooks.c: Likewise.
24414         * toplev.c: Likewise.
24415         * tracer.c: Likewise.
24416         * trans-mem.c: Likewise.
24417         * tree-affine.c: Likewise.
24418         * tree-browser.c: Likewise.
24419         * tree-call-cdce.c: Likewise.
24420         * tree-cfg.c: Likewise.
24421         * tree-cfgcleanup.c: Likewise.
24422         * tree-chkp-opt.c: Likewise.
24423         * tree-chkp.c: Likewise.
24424         * tree-chrec.c: Likewise.
24425         * tree-complex.c: Likewise.
24426         * tree-data-ref.c: Likewise.
24427         * tree-dfa.c: Likewise.
24428         * tree-diagnostic.c: Likewise.
24429         * tree-dump.c: Likewise.
24430         * tree-eh.c: Likewise.
24431         * tree-emutls.c: Likewise.
24432         * tree-if-conv.c: Likewise.
24433         * tree-inline.c: Likewise.
24434         * tree-into-ssa.c: Likewise.
24435         * tree-iterator.c: Likewise.
24436         * tree-loop-distribution.c: Likewise.
24437         * tree-nested.c: Likewise.
24438         * tree-nrv.c: Likewise.
24439         * tree-object-size.c: Likewise.
24440         * tree-outof-ssa.c: Likewise.
24441         * tree-parloops.c: Likewise.
24442         * tree-phinodes.c: Likewise.
24443         * tree-predcom.c: Likewise.
24444         * tree-pretty-print.c: Likewise.
24445         * tree-profile.c: Likewise.
24446         * tree-scalar-evolution.c: Likewise.
24447         * tree-sra.c: Likewise.
24448         * tree-ssa-address.c: Likewise.
24449         * tree-ssa-alias.c: Likewise.
24450         * tree-ssa-ccp.c: Likewise.
24451         * tree-ssa-coalesce.c: Likewise.
24452         * tree-ssa-copy.c: Likewise.
24453         * tree-ssa-copyrename.c: Likewise.
24454         * tree-ssa-dce.c: Likewise.
24455         * tree-ssa-dom.c: Likewise.
24456         * tree-ssa-dse.c: Likewise.
24457         * tree-ssa-forwprop.c: Likewise.
24458         * tree-ssa-ifcombine.c: Likewise.
24459         * tree-ssa-live.c: Likewise.
24460         * tree-ssa-loop-ch.c: Likewise.
24461         * tree-ssa-loop-im.c: Likewise.
24462         * tree-ssa-loop-ivcanon.c: Likewise.
24463         * tree-ssa-loop-ivopts.c: Likewise.
24464         * tree-ssa-loop-manip.c: Likewise.
24465         * tree-ssa-loop-niter.c: Likewise.
24466         * tree-ssa-loop-prefetch.c: Likewise.
24467         * tree-ssa-loop-unswitch.c: Likewise.
24468         * tree-ssa-loop.c: Likewise.
24469         * tree-ssa-math-opts.c: Likewise.
24470         * tree-ssa-operands.c: Likewise.
24471         * tree-ssa-phiopt.c: Likewise.
24472         * tree-ssa-phiprop.c: Likewise.
24473         * tree-ssa-pre.c: Likewise.
24474         * tree-ssa-propagate.c: Likewise.
24475         * tree-ssa-reassoc.c: Likewise.
24476         * tree-ssa-sccvn.c: Likewise.
24477         * tree-ssa-scopedtables.c: Likewise.
24478         * tree-ssa-sink.c: Likewise.
24479         * tree-ssa-strlen.c: Likewise.
24480         * tree-ssa-structalias.c: Likewise.
24481         * tree-ssa-tail-merge.c: Likewise.
24482         * tree-ssa-ter.c: Likewise.
24483         * tree-ssa-threadedge.c: Likewise.
24484         * tree-ssa-threadupdate.c: Likewise.
24485         * tree-ssa-uncprop.c: Likewise.
24486         * tree-ssa-uninit.c: Likewise.
24487         * tree-ssa.c: Likewise.
24488         * tree-ssanames.c: Likewise.
24489         * tree-stdarg.c: Likewise.
24490         * tree-streamer-in.c: Likewise.
24491         * tree-streamer-out.c: Likewise.
24492         * tree-streamer.c: Likewise.
24493         * tree-switch-conversion.c: Likewise.
24494         * tree-tailcall.c: Likewise.
24495         * tree-vect-data-refs.c: Likewise.
24496         * tree-vect-generic.c: Likewise.
24497         * tree-vect-loop-manip.c: Likewise.
24498         * tree-vect-loop.c: Likewise.
24499         * tree-vect-patterns.c: Likewise.
24500         * tree-vect-slp.c: Likewise.
24501         * tree-vect-stmts.c: Likewise.
24502         * tree-vectorizer.c: Likewise.
24503         * tree-vrp.c: Likewise.
24504         * tree.c: Likewise.
24505         * tsan.c: Likewise.
24506         * ubsan.c: Likewise.
24507         * valtrack.c: Likewise.
24508         * value-prof.c: Likewise.
24509         * var-tracking.c: Likewise.
24510         * varasm.c: Likewise.
24511         * varpool.c: Likewise.
24512         * vmsdbgout.c: Likewise.
24513         * vtable-verify.c: Likewise.
24514         * web.c: Likewise.
24515         * wide-int.cc: Likewise.
24516         * xcoffout.c: Likewise.
24517         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24518         * common/common-targhooks.c: Likewise.
24519         * config/aarch64/aarch64-builtins.c: Likewise.
24520         * config/aarch64/aarch64.c: Likewise.
24521         * config/alpha/alpha.c: Likewise.
24522         * config/arc/arc.c: Likewise.
24523         * config/arm/aarch-common.c: Likewise.
24524         * config/arm/arm-builtins.c: Likewise.
24525         * config/arm/arm-c.c: Likewise.
24526         * config/arm/arm.c: Likewise.
24527         * config/avr/avr-c.c: Likewise.
24528         * config/avr/avr-log.c: Likewise.
24529         * config/avr/avr.c: Likewise.
24530         * config/bfin/bfin.c: Likewise.
24531         * config/c6x/c6x.c: Likewise.
24532         * config/cr16/cr16.c: Likewise.
24533         * config/cris/cris.c: Likewise.
24534         * config/darwin-c.c: Likewise.
24535         * config/darwin.c: Likewise.
24536         * config/default-c.c: Likewise.
24537         * config/epiphany/epiphany.c: Likewise.
24538         * config/epiphany/mode-switch-use.c: Likewise.
24539         * config/epiphany/resolve-sw-modes.c: Likewise.
24540         * config/fr30/fr30.c: Likewise.
24541         * config/frv/frv.c: Likewise.
24542         * config/ft32/ft32.c: Likewise.
24543         * config/glibc-c.c: Likewise.
24544         * config/h8300/h8300.c: Likewise.
24545         * config/i386/i386-c.c: Likewise.
24546         * config/i386/i386.c: Likewise.
24547         * config/i386/msformat-c.c: Likewise.
24548         * config/i386/winnt-cxx.c: Likewise.
24549         * config/i386/winnt-stubs.c: Likewise.
24550         * config/i386/winnt.c: Likewise.
24551         * config/ia64/ia64-c.c: Likewise.
24552         * config/ia64/ia64.c: Likewise.
24553         * config/iq2000/iq2000.c: Likewise.
24554         * config/lm32/lm32.c: Likewise.
24555         * config/m32c/m32c-pragma.c: Likewise.
24556         * config/m32c/m32c.c: Likewise.
24557         * config/m32r/m32r.c: Likewise.
24558         * config/m68k/m68k.c: Likewise.
24559         * config/mcore/mcore.c: Likewise.
24560         * config/mep/mep-pragma.c: Likewise.
24561         * config/mep/mep.c: Likewise.
24562         * config/microblaze/microblaze-c.c: Likewise.
24563         * config/microblaze/microblaze.c: Likewise.
24564         * config/mips/mips.c: Likewise.
24565         * config/mmix/mmix.c: Likewise.
24566         * config/mn10300/mn10300.c: Likewise.
24567         * config/moxie/moxie.c: Likewise.
24568         * config/msp430/msp430-c.c: Likewise.
24569         * config/msp430/msp430.c: Likewise.
24570         * config/nds32/nds32-cost.c: Likewise.
24571         * config/nds32/nds32-fp-as-gp.c: Likewise.
24572         * config/nds32/nds32-intrinsic.c: Likewise.
24573         * config/nds32/nds32-isr.c: Likewise.
24574         * config/nds32/nds32-md-auxiliary.c: Likewise.
24575         * config/nds32/nds32-memory-manipulation.c: Likewise.
24576         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24577         * config/nds32/nds32-predicates.c: Likewise.
24578         * config/nds32/nds32.c: Likewise.
24579         * config/nios2/nios2.c: Likewise.
24580         * config/nvptx/nvptx.c: Likewise.
24581         * config/pa/pa.c: Likewise.
24582         * config/pdp11/pdp11.c: Likewise.
24583         * config/rl78/rl78-c.c: Likewise.
24584         * config/rl78/rl78.c: Likewise.
24585         * config/rs6000/rs6000-c.c: Likewise.
24586         * config/rs6000/rs6000.c: Likewise.
24587         * config/rx/rx.c: Likewise.
24588         * config/s390/s390-c.c: Likewise.
24589         * config/s390/s390.c: Likewise.
24590         * config/sh/sh-c.c: Likewise.
24591         * config/sh/sh-mem.cc: Likewise.
24592         * config/sh/sh.c: Likewise.
24593         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24594         * config/sh/sh_treg_combine.cc: Likewise.
24595         * config/sol2-c.c: Likewise.
24596         * config/sol2-cxx.c: Likewise.
24597         * config/sol2-stubs.c: Likewise.
24598         * config/sol2.c: Likewise.
24599         * config/sparc/sparc-c.c: Likewise.
24600         * config/sparc/sparc.c: Likewise.
24601         * config/spu/spu-c.c: Likewise.
24602         * config/spu/spu.c: Likewise.
24603         * config/stormy16/stormy16.c: Likewise.
24604         * config/tilegx/mul-tables.c: Likewise.
24605         * config/tilegx/tilegx-c.c: Likewise.
24606         * config/tilegx/tilegx.c: Likewise.
24607         * config/tilepro/mul-tables.c: Likewise.
24608         * config/tilepro/tilepro-c.c: Likewise.
24609         * config/tilepro/tilepro.c: Likewise.
24610         * config/v850/v850-c.c: Likewise.
24611         * config/v850/v850.c: Likewise.
24612         * config/vax/vax.c: Likewise.
24613         * config/visium/visium.c: Likewise.
24614         * config/vms/vms-c.c: Likewise.
24615         * config/vms/vms.c: Likewise.
24616         * config/vxworks.c: Likewise.
24617         * config/winnt-c.c: Likewise.
24618         * config/xtensa/xtensa.c: Likewise.
24620 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
24622         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24623         function.
24624         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24626 2015-06-17  Richard Biener  <rguenther@suse.de>
24628         PR tree-optimization/66251
24629         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24630         stmts for SLP strided stores.
24632         Revert
24633         2015-05-22  Richard Biener  <rguenther@suse.de>
24635         PR tree-optimization/66251
24636         * tree-vect-stmts.c (vectorizable_conversion): Properly
24637         set STMT_VINFO_VEC_STMT even for the SLP case.
24639         2015-05-26  Michael Matz  <matz@suse.de>
24641         PR middle-end/66251
24642         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24643         STMT_VINFO_VEC_STMT, also with SLP.
24645 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
24647         PR target/56766
24648         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24649         (*avx_addsubv4df3_1s): Ditto.
24650         (*sse3_addsubv2df3_1): Ditto.
24651         (*sse3_addsubv2df3_1s): Ditto.
24652         (*avx_addsubv8sf3_1): Ditto.
24653         (*avx_addsubv8sf3_1s): Ditto.
24654         (*sse3_addsubv4sf3_1): Ditto.
24655         (*sse3_addsubv4sf3_1s): Ditto.
24657 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
24659         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24660         (SYSROOT_SUFFIX_SPEC): Update.
24661         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24662         (STARTFILE_PREFIX_SPEC): Update.
24663         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24664         (MULTILIB_REQUIRED): New.
24665         (MULTILIB_OSDIRNAMES): New.
24666         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24667         (MULTILIB_REQUIRED): New.
24668         (MULTILIB_OSDIRNAMES): New.
24670 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
24672         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24673         * config/aarch64/aarch64-options-extensions.def: Update "fP",
24674         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
24675         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24676         (AARCH64_FL_PAN): New.
24677         (AARCH64_FL_LOR): New.
24678         (AARCH64_FL_RDMA): New.
24679         (AARCH64_FL_FOR_ARCH8_1): New.
24680         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24681         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24683 2015-06-16  Martin Liska  <mliska@suse.cz>
24685         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24686         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24687         guard.
24689 2015-06-16  Richard Biener  <rguenther@suse.de>
24691         * tree-vect-stmts.c (vectorizable_store): Adjust.
24692         (vectorizable_load): Likewise.
24693         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24694         Simplify.
24695         (vect_create_data_ref_ptr): Likewise.
24696         (bump_vector_ptr): Adjust.
24698 2015-06-16  Richard Biener  <rguenther@suse.de>
24700         * tree-vect-stmts.c (vectorizable_load): Properly start loads
24701         with the first element if this is grouped loads.
24703 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
24705         * config/arm/arm-protos.h (struct tune_params): Rename
24706         log_op_non_sc to log_op_non_short_circuit, and rename enum
24707         values to expand SC to SHORT_CIRCUIT.
24708         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24709         to LOG_OP_NON_SHORT_CIRCUIT.
24710         (arm_fastmul_tune):Likewise
24711         (arm_strongarm_tune): Likewise.
24712         (arm_xscale_tune): Likewise.
24713         (arm_9e_tune): Likewise.
24714         (arm_marvell_pj4_tune): Likewise.
24715         (arm_v6t2_tune): Likewise.
24716         (arm_cortex_tune): Likewise.
24717         (arm_cortex_a8_tune): Likewise.
24718         (arm_cortex_a7_tune): Likewise.
24719         (arm_cortex_a15_tune): Likewise.
24720         (arm_cortex_a53_tune): Likewise.
24721         (arm_cortex_a57_tune): Likewise.
24722         (arm_xgene1_tune): Likewise.
24723         (arm_cortex_a5_tune): Likewise.
24724         (arm_cortex_a9_tune): Likewise.
24725         (arm_cortex_a12_tune): Likewise.
24726         (arm_v7m_tune): Likewise.
24727         (arm_cortex_m7_tune): Likewise.
24728         (arm_v6m_tune): Likewise.
24729         (arm_fa726te_tune): Likewise.
24731 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
24733         * altivec.md: Delete UNSPEC_VMLADDUHM.
24734         (mulv4si3_p8): New pattern.
24735         (mulv4si3): Use it for POWER8.
24736         (mulv8hi3): Use vmladduhm with zero addend.
24737         (altivec_vmladduhm): Descriptive RTL.
24739 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
24741         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24742         to use neon_move instead of mov_imm.
24743         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24744         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24746         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24747         aarch64_float_const_zero_rtx_p check before TFmode check.
24748         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24749         an fp zero.
24750         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
24751         code and attributes to match.  Change condition from register_operand
24752         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
24753         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
24754         to store2.
24756 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
24758         PR debug/66535
24759         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24760         there is no parent.
24762 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
24764         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24765         HOST_WIDE_INT parameter.
24767 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
24769         PR ipa/66181
24770         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24771         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24772         TYPE_NO_FORCE_BLK.
24773         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24775 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
24777         * rtl.h (classify_insn): Declare.
24778         * emit-rtl.c (classify_insn): Move to...
24779         * rtl.c: ...here and add generator support.
24780         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24781         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24782         * genemit.c (gen_emit_seq): New function.
24783         (gen_expand, gen_split): Use it.
24785 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
24787         * tree.c (make_vector_stat): Fix comment to state that the
24788         function returns a VECTOR_CST.
24790 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
24792         * gensupport.h (add_implicit_parallel): Declare.
24793         * genrecog.c (add_implicit_parallel): Move to...
24794         * gensupport.c (add_implicit_parallel): ...here.
24795         (process_one_cond_exec): Use it.
24796         * genemit.c (gen_insn): Likewise.
24798 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
24800         PR bootstrap/66448
24801         * passes.c (rest_of_decl_compilation): Do not register globals for
24802         early debug if they are declared in built-ins.
24804 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
24806         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24808 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24810         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24811         manually swapping.
24812         (noce_try_cmove_arith): Likewise.
24813         (noce_get_alt_condition): Likewise.
24815 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24817         * common/config/i386/i386-common.c
24818         (OPTION_MASK_ISA_MWAITX_SET): New.
24819         (ix86_handle_option): Handle mwaitx.
24820         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24821         (x86_64-*-*): Likewise.
24822         * config/i386/mwaitxintrin.h: New header.
24823         * config/i386/cpuid.h (bit_MWAITX):  Define.
24824         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24825         MWAITX support.
24826         * config/i386/i386.opt (mwaitx): New.
24827         * config/i386/i386-builtin-types.def
24828         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24829         * config/i386/i386-c.c: Define __MWAITX__ if needed.
24830         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24831         (PTA_MWAITX): New.
24832         (ix86_option_override_internal): Handle new option.
24833         (processor_alias_table): Added PTA_MWAITX.
24834         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24835         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24836         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24837         IX86_BUILTIN_MONITORX  built-ins.
24838         * config/i386/i386.h (TARGET_MWAITX): New.
24839         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24840         UNSPEC_MONITORX.
24841         (mwaitx):  New pattern.
24842         (monitorx_<mode>): New pattern.
24843         * config/i386/x86intrin.h: Include mwaitxintrin.h.
24844         * doc/extend.texi: Document monitorx and mwaitx builtins.
24845         * doc/invoke.texi: Document -mmwaitx option.
24847 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
24849         * emit-rtl.c (need_atomic_barrier_p): Mask model with
24850         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
24852 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24854         * dbxout.c (xcoff_debug_hooks): Provide a function for
24855         register_main_translation_unit hook.
24857 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24859         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24860         variants cases from switch.
24861         (rs6000_post_atomic_barrier): Same.
24862         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24863         (rs6000_expand_atomic_exchange): Same.
24864         (rs6000_expand_atomic_op): Same.
24865         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24866         SYNC variants cases from switch.
24867         (atomic_load): Same.
24868         (atomic_store): Same.
24870 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
24872         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24873         CONST_INT for goto.
24875 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
24877         PR bootstrap/66448
24878         * dwarf2out.c (check_die): Check for common duplicate attributes.
24879         (add_location_or_const_value_attribute): Do not add duplicate
24880         attributes.
24881         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24882         time around.
24883         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24884         (gen_type_die_with_usage): Call check_die.
24885         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24887 2015-06-11  Jason Merrill  <jason@redhat.com>
24889         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24890         dies.
24892 2015-06-11  Marek Polacek  <polacek@redhat.com>
24894         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24896 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
24898         PR bootstrap/66252
24899         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24900         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24901         (*addx_extend_sp32): Fix pasto.
24902         (*subx_extend): Rename into...
24903         (*subx_extend_sp32): ...this.
24904         (*adddi3_extend_sp32): Add earlyclobber.
24905         (*subdi3_insn_sp32): Likewise.
24906         (*subdi3_extend_sp32): Likewise.
24907         (*and_not_di_sp32): Likewise.
24908         (*or_not_di_sp32): Likewise.
24909         (*xor_not_di_sp32): Likewise.
24910         (*negdi2_sp32): Likewise.
24911         (*one_cmpldi2_sp32): Likewise.
24913 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
24915         * debug.h (struct gcc_debug_hooks): Add a
24916         register_main_translation_unit hook.
24917         * debug.c (do_nothing_debug_hooks): Provide a function for this
24918         new hook.
24919         * dbxout.c (dbx_debug_hooks): Likewise.
24920         * sdbout.c (sdb_debug_hooks): Likewise.
24921         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24922         * dwarf2out.c (main_translation_unit): New global variable.
24923         (dwarf2out_register_main_translation_unit): New function
24924         implementing the new hook.
24925         (dwarf2_debug_hooks): Assign
24926         dwarf2out_register_main_translation_unit to this new hook.
24927         (dwarf2out_init): Associate any main translation unit to
24928         comp_unit_die ().
24930 2015-06-11  Marek Polacek  <polacek@redhat.com>
24932         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24934 2015-06-11  Marek Polacek  <polacek@redhat.com>
24936         * match.pd: Use single_use throughout.
24938 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24940         * config/arm/arm.c (arm_option_params_internal): When optimising
24941         for speed set max_insns_skipped when arm_restrict_it.
24943 2015-06-11  Christian Bruel  <christian.bruel@st.com>
24945         PR target/52144
24946         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24947          macros in ...
24948         (arm_cpu_builtins): New function.
24949         (arm_pragma_target_parse): Call arm_cpu_builtins.
24950         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24951         (arm_register_target_pragmas): Likewise.
24952         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24953          Call arm_register_target_pragmas.
24954         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24955         (arm_pragma_target_parse): Likewise.
24957 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24959         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24960         of the second operand.
24962 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
24964         PR target/66473
24965         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24966         to prepare mask operand for AVX512 modes.
24968 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24970         PR target/66474
24971         * doc/md.texi (Machine Constraints): Document that on the PowerPC
24972         if you use a constraint that targets a VSX register, you must use
24973         %x<n> in the template.
24975 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
24977         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24978         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24979         (define_insn "trap"): New definition.
24981 2015-06-10  Richard Biener  <rguenther@suse.de>
24983         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24984         out from ...
24985         (vect_supported_load_permutation_p): ... here.  Handle
24986         supportable permutations in reductions.
24987         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24988         for vectorizing strided group loads.
24990 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
24992         PR target/66470
24993         * config/i386/i386.c (ix86_split_long_move): For collisions
24994         involving direct tls segment refs, move the UNSPEC_TP possibly
24995         wrapped in ZERO_EXTEND out of the address for lea, to each of
24996         the memory loads.
24998 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25000         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25001         dmb sy. Adjust tabs.
25003 2015-06-10  Tom de Vries  <tom@codesourcery.com>
25005         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25007 2015-06-10  Martin Liska  <mliska@suse.cz>
25009         PR bootstrap/66471
25010         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25011         all enum values in mem_alloc_origin.
25012         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25013         name.
25014         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25015         * bitmap.c (bitmap_register): Likewise.
25016         (dump_bitmap_statistics): Likewise.
25017         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25018         (ggc_record_overhead): Likewise.
25019         * hash-map.h: Likewise.
25020         * hash-set.h: Likewise.
25021         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25022         * hash-table.h: Likewise.
25023         * vec.c (vec_prefix::register_overhead): Likewise.
25024         (vec_prefix::release_overhead): Likewise.
25025         (dump_vec_loc_statistics): Likewise.
25027 2015-06-09  Christian Bruel  <christian.bruel@st.com>
25029         PR target/52144
25030         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25031         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25032         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25033         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25034         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25035         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25036         (arm_valid_target_attribute_p): Likewise.
25037         (arm_set_current_function, arm_can_inline_p): Likewise.
25038         (arm_valid_target_attribute_rec): Likewise.
25039         (arm_previous_fndecl): New variable.
25040         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25041         (TARGET_CAN_INLINE_P): Define.
25042         (arm_asm_trampoline_template): Emit mode.
25043         (arm_file_start): Don't set unified syntax.
25044         (arm_declare_function_name): Set unified syntax and mode.
25045         (arm_option_override): Init target_option_default_node.
25046         and target_option_current_node.
25047         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25048         (*call_symbol): Likewise.
25049         * doc/extend.texi: Document ARM/Thumb target attribute.
25050         * doc/invoke.texi: Likewise.
25052 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25054         Revert:
25055         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25056         PR rtl-optimization/64164
25057         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25058         * tree-ssa-copyrename.c: Removed.
25059         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25060         -ftree-coalesce-vars.
25061         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25062         * common.opt (ftree-copyrename): Ignore.
25063         (ftree-coalesce-inlined-vars): Likewise.
25064         * doc/invoke.texi: Remove the ignored options above.
25065         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25066         * tree-ssa-coalesce.h: ... here.
25067         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25068         headers required by it.
25069         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25070         across variables when flag_tree_coalesce_vars.  Check register
25071         use and promoted modes to allow coalescing.  Moved to
25072         tree-ssa-coalesce.c.
25073         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25074         with its member functions to tree-ssa-coalesce.c.
25075         (var_map_base_init): Likewise.  Renamed to
25076         compute_samebase_partition_bases.
25077         (partition_view_normal): Drop want_bases parameter.
25078         (partition_view_bitmap): Likewise.
25079         * tree-ssa-live.h: Adjust declarations.
25080         * tree-ssa-coalesce.c: Include explow.h.
25081         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25082         default defs at the entry point.
25083         (dump_part_var_map): New.
25084         (compute_optimized_partition_bases): New, called by...
25085         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25086         of compute_samebase_partition_bases.  Adjust.
25087         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25088         * cfgexpand.c (leader_merge): New.
25089         (get_rtl_for_parm_ssa_default_def): New.
25090         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25091         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25092         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25093         redundant MEM attr setting.
25094         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25095         from...
25096         (expand_one_stack_var): ... this.  New wrapper to check and
25097         skip already expanded SSA partitions.
25098         (record_alignment_for_reg_var): New, factored out of...
25099         (expand_one_var): ... this.
25100         (expand_one_ssa_partition): New.
25101         (adjust_one_expanded_partition_var): New.
25102         (expand_one_register_var): Check and skip already expanded SSA
25103         partitions.
25104         (expand_used_vars): Don't create DECLs for anonymous SSA
25105         names.  Expand all SSA partitions, then adjust all SSA names.
25106         (pass::execute): Replace the loops that set
25107         SA.partition_to_pseudo from partition leaders and cleared
25108         DECL_RTL for multi-location variables, and that which used to
25109         rename vars and set attrs, with one that clears DECL_RTL and
25110         checks that PARMs and RESULTs default_defs match DECL_RTL.
25111         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25112         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25113         * explow.c (promote_ssa_mode): New.
25114         * explow.h (promote_ssa_mode): Declare.
25115         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25116         * function.c: Include cfgexpand.h.
25117         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25118         (use_register_for_parm_decl): Wrapper for the above to
25119         special-case the result_ptr.
25120         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25121         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25122         multiple locations.
25123         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25124         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25125         (assign_parm_setup_block): Prefer SSA-assigned location.
25126         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25127         if stack_parm is NULL.
25128         (assign_parm_setup_stack): Prefer SSA-assigned location.
25129         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25130         rtl before testing for pointer bounds.  Special-case result_ptr.
25131         (expand_function_start): Maybe reset DECL_RTL of result.
25132         Prefer SSA-assigned location for result and static chain.
25133         Factor out DECL_RESULT and SET_DECL_RTL.
25134         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25135         anonymous SSA names.  Use promote_ssa_mode.
25136         (get_temp_reg): Likewise.
25137         (remove_ssa_form): Adjust.
25138         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25139         and get its reg_usage for reg invalidation.
25140         (compute_bb_dataflow): Pass it insn.
25141         (emit_notes_in_bb): Likewise.
25142         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25143         fail assert on conversion between unsigned types.
25145 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25147         PR tree-optimization/65460
25148         * omp-low.c (expand_omp_target): Set parallelized_function on
25149         cgraph_node for child_fn.
25151 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25153         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25154         parallelized_function before add_new_function.
25156 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
25158         * gcc-plugin.h: Move decls to plugin.h and include it.
25159         * plugin.h: Relocate decls from gcc-plugin.h
25160         * ggc-page.c: Include required header files.
25161         * passes.c: Likewise.
25162         * cgraphunit.c: Likewise.
25164 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25166         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25168 2015-06-09  Jason Merrill  <jason@redhat.com>
25170         PR bootstrap/66448
25171         * toplev.c (check_global_declaration): Don't warn about a clone.
25173 2015-06-09  Marek Polacek  <polacek@redhat.com>
25175         PR tree-optimization/66299
25176         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25177         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25178         patterns.
25180 2015-06-09  Richard Biener  <rguenther@suse.de>
25182         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25183         (vect_analyze_slp_instance): Instead do not falsely drop
25184         load permutations.
25186 2015-06-09  Richard Biener  <rguenther@suse.de>
25188         PR middle-end/66423
25189         * match.pd: Handle A % (unsigned)(1 << B).
25191 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
25193         * varasm.c (output_object_block_htab): Remove.
25194         (output_object_block_compare): New.
25195         (output_object_blocks): Sort named object_blocks before outputting
25196         them.
25198 2015-06-09  Richard Biener  <rguenther@suse.de>
25200         PR tree-optimization/66419
25201         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25202         consider GROUP_GAP when detecting a perfect subchain.
25204 2015-06-09  Nick Clifton  <nickc@redhat.com>
25206         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25207         place read only data in the .frodata section.
25209 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
25211         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25212         (atomic_store<mode>): Likewise.
25214 2015-06-09  Richard Biener  <rguenther@suse.de>
25216         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25218 2015-06-09  Richard Biener  <rguenther@suse.de>
25220         PR middle-end/66413
25221         * tree-inline.c (insert_init_debug_bind): Unshare value.
25223 2015-06-09  Richard Biener  <rguenther@suse.de>
25225         PR tree-optimization/66396
25226         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25227         Rename virtual operands.
25229 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25231         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25232         always return false.
25234 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25236         PR rtl-optimization/64164
25237         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25238         * tree-ssa-copyrename.c: Removed.
25239         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25240         -ftree-coalesce-vars.
25241         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25242         * common.opt (ftree-copyrename): Ignore.
25243         (ftree-coalesce-inlined-vars): Likewise.
25244         * doc/invoke.texi: Remove the ignored options above.
25245         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25246         * tree-ssa-coalesce.h: ... here.
25247         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25248         headers required by it.
25249         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25250         across variables when flag_tree_coalesce_vars.  Check register
25251         use and promoted modes to allow coalescing.  Moved to
25252         tree-ssa-coalesce.c.
25253         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25254         with its member functions to tree-ssa-coalesce.c.
25255         (var_map_base_init): Likewise.  Renamed to
25256         compute_samebase_partition_bases.
25257         (partition_view_normal): Drop want_bases parameter.
25258         (partition_view_bitmap): Likewise.
25259         * tree-ssa-live.h: Adjust declarations.
25260         * tree-ssa-coalesce.c: Include explow.h.
25261         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25262         default defs at the entry point.
25263         (dump_part_var_map): New.
25264         (compute_optimized_partition_bases): New, called by...
25265         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25266         of compute_samebase_partition_bases.  Adjust.
25267         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25268         * cfgexpand.c (leader_merge): New.
25269         (get_rtl_for_parm_ssa_default_def): New.
25270         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25271         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25272         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25273         redundant MEM attr setting.
25274         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25275         from...
25276         (expand_one_stack_var): ... this.  New wrapper to check and
25277         skip already expanded SSA partitions.
25278         (record_alignment_for_reg_var): New, factored out of...
25279         (expand_one_var): ... this.
25280         (expand_one_ssa_partition): New.
25281         (adjust_one_expanded_partition_var): New.
25282         (expand_one_register_var): Check and skip already expanded SSA
25283         partitions.
25284         (expand_used_vars): Don't create DECLs for anonymous SSA
25285         names.  Expand all SSA partitions, then adjust all SSA names.
25286         (pass::execute): Replace the loops that set
25287         SA.partition_to_pseudo from partition leaders and cleared
25288         DECL_RTL for multi-location variables, and that which used to
25289         rename vars and set attrs, with one that clears DECL_RTL and
25290         checks that PARMs and RESULTs default_defs match DECL_RTL.
25291         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25292         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25293         * explow.c (promote_ssa_mode): New.
25294         * explow.h (promote_ssa_mode): Declare.
25295         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25296         * function.c: Include cfgexpand.h.
25297         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25298         (use_register_for_parm_decl): Wrapper for the above to
25299         special-case the result_ptr.
25300         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25301         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25302         multiple locations.
25303         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25304         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25305         (assign_parm_setup_block): Prefer SSA-assigned location.
25306         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25307         if stack_parm is NULL.
25308         (assign_parm_setup_stack): Prefer SSA-assigned location.
25309         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25310         rtl before testing for pointer bounds.  Special-case result_ptr.
25311         (expand_function_start): Maybe reset DECL_RTL of result.
25312         Prefer SSA-assigned location for result and static chain.
25313         Factor out DECL_RESULT and SET_DECL_RTL.
25314         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25315         anonymous SSA names.  Use promote_ssa_mode.
25316         (get_temp_reg): Likewise.
25317         (remove_ssa_form): Adjust.
25318         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25319         and get its reg_usage for reg invalidation.
25320         (compute_bb_dataflow): Pass it insn.
25321         (emit_notes_in_bb): Likewise.
25322         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25323         fail assert on conversion between unsigned types.
25325 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25327         PR debug/58315
25328         * tree-inline.c (reset_debug_binding): New.
25329         (reset_debug_bindings): Likewise.
25330         (expand_call_inline): Call it.
25332 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25334         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25335         TYPE_STRING_FLAG.
25337 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25339         * lto-streamer-out.c (lto_output_location): Stream
25340         reserved locations correctly.
25341         * lto-streamer-in.c (lto_output_location): Likewise.
25343 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
25345         * coretypes.h: Include hash-table.h and hash-set.h for host files.
25346         * ggc.h: Don't include statistics.h>
25347         * hash-map.h: Remove all includes.
25348         * hash-set.h: Likewise.
25349         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25350         the include list. Remove <new>.
25351         * inchash.h: Remove all includes.
25352         * mem-stats.h: Likewise.
25353         * vec.h: No special processing for generators or ggc.
25354         * alias.c : Adjust include files.
25355         * alloc-pool.c : Likewise.
25356         * alloc-pool.h : Likewise.
25357         * asan.c : Likewise.
25358         * attribs.c : Likewise.
25359         * auto-inc-dec.c : Likewise.
25360         * auto-profile.c : Likewise.
25361         * bb-reorder.c : Likewise.
25362         * bitmap.c : Likewise.
25363         * bitmap.h : Likewise.
25364         * bt-load.c : Likewise.
25365         * builtins.c : Likewise.
25366         * caller-save.c : Likewise.
25367         * calls.c : Likewise.
25368         * ccmp.c : Likewise.
25369         * cfg.c : Likewise.
25370         * cfganal.c : Likewise.
25371         * cfgbuild.c : Likewise.
25372         * cfgcleanup.c : Likewise.
25373         * cfgexpand.c : Likewise.
25374         * cfghooks.c : Likewise.
25375         * cfgloop.c : Likewise.
25376         * cfgloop.h : Likewise.
25377         * cfgloopanal.c : Likewise.
25378         * cfgloopmanip.c : Likewise.
25379         * cfgrtl.c : Likewise.
25380         * cgraph.c : Likewise.
25381         * cgraphbuild.c : Likewise.
25382         * cgraphclones.c : Likewise.
25383         * cgraphunit.c : Likewise.
25384         * cilk-common.c : Likewise.
25385         * combine-stack-adj.c : Likewise.
25386         * combine.c : Likewise.
25387         * compare-elim.c : Likewise.
25388         * context.c : Likewise.
25389         * convert.c : Likewise.
25390         * coverage.c : Likewise.
25391         * cppbuiltin.c : Likewise.
25392         * cprop.c : Likewise.
25393         * cse.c : Likewise.
25394         * cselib.c : Likewise.
25395         * data-streamer-in.c : Likewise.
25396         * data-streamer-out.c : Likewise.
25397         * data-streamer.c : Likewise.
25398         * data-streamer.h : Likewise.
25399         * dbxout.c : Likewise.
25400         * dce.c : Likewise.
25401         * ddg.c : Likewise.
25402         * debug.c : Likewise.
25403         * df-core.c : Likewise.
25404         * df-problems.c : Likewise.
25405         * df-scan.c : Likewise.
25406         * df.h : Likewise.
25407         * dfp.c : Likewise.
25408         * dojump.c : Likewise.
25409         * dominance.c : Likewise.
25410         * domwalk.c : Likewise.
25411         * double-int.c : Likewise.
25412         * dse.c : Likewise.
25413         * dumpfile.c : Likewise.
25414         * dwarf2asm.c : Likewise.
25415         * dwarf2cfi.c : Likewise.
25416         * dwarf2out.c : Likewise.
25417         * emit-rtl.c : Likewise.
25418         * et-forest.c : Likewise.
25419         * except.c : Likewise.
25420         * except.h : Likewise.
25421         * explow.c : Likewise.
25422         * expmed.c : Likewise.
25423         * expr.c : Likewise.
25424         * final.c : Likewise.
25425         * fixed-value.c : Likewise.
25426         * fold-const.c : Likewise.
25427         * function.c : Likewise.
25428         * fwprop.c : Likewise.
25429         * gcc-plugin.h : Likewise.
25430         * gcc.c : Likewise.
25431         * gcse-common.c : Likewise.
25432         * gcse.c : Likewise.
25433         * genattrtab.c : Likewise.
25434         * genautomata.c : Likewise.
25435         * genconditions.c : Likewise.
25436         * genemit.c : Likewise.
25437         * generic-match-head.c : Likewise.
25438         * genextract.c : Likewise.
25439         * gengtype-state.c : Likewise.
25440         * gengtype.c : Likewise.
25441         * genhooks.c : Likewise.
25442         * genmatch.c : Likewise.
25443         * genmodes.c : Likewise.
25444         * genrecog.c : Likewise.
25445         * gensupport.c : Likewise.
25446         * ggc-common.c : Likewise.
25447         * ggc-internal.h : Likewise.
25448         * ggc-none.c : Likewise.
25449         * ggc-page.c : Likewise.
25450         * gimple-builder.c : Likewise.
25451         * gimple-expr.c : Likewise.
25452         * gimple-fold.c : Likewise.
25453         * gimple-iterator.c : Likewise.
25454         * gimple-low.c : Likewise.
25455         * gimple-match-head.c : Likewise.
25456         * gimple-pretty-print.c : Likewise.
25457         * gimple-ssa-isolate-paths.c : Likewise.
25458         * gimple-ssa-strength-reduction.c : Likewise.
25459         * gimple-ssa.h : Likewise.
25460         * gimple-streamer-in.c : Likewise.
25461         * gimple-streamer-out.c : Likewise.
25462         * gimple-streamer.h : Likewise.
25463         * gimple-walk.c : Likewise.
25464         * gimple.c : Likewise.
25465         * gimplify-me.c : Likewise.
25466         * gimplify.c : Likewise.
25467         * godump.c : Likewise.
25468         * graph.c : Likewise.
25469         * graphds.c : Likewise.
25470         * graphite-blocking.c : Likewise.
25471         * graphite-dependences.c : Likewise.
25472         * graphite-interchange.c : Likewise.
25473         * graphite-isl-ast-to-gimple.c : Likewise.
25474         * graphite-optimize-isl.c : Likewise.
25475         * graphite-poly.c : Likewise.
25476         * graphite-scop-detection.c : Likewise.
25477         * graphite-sese-to-poly.c : Likewise.
25478         * graphite.c : Likewise.
25479         * haifa-sched.c : Likewise.
25480         * hard-reg-set.h : Likewise.
25481         * hw-doloop.c : Likewise.
25482         * ifcvt.c : Likewise.
25483         * inchash.c : Likewise.
25484         * incpath.c : Likewise.
25485         * init-regs.c : Likewise.
25486         * input.c : Likewise.
25487         * internal-fn.c : Likewise.
25488         * ipa-chkp.c : Likewise.
25489         * ipa-comdats.c : Likewise.
25490         * ipa-cp.c : Likewise.
25491         * ipa-devirt.c : Likewise.
25492         * ipa-icf-gimple.c : Likewise.
25493         * ipa-icf.c : Likewise.
25494         * ipa-inline-analysis.c : Likewise.
25495         * ipa-inline-transform.c : Likewise.
25496         * ipa-inline.c : Likewise.
25497         * ipa-polymorphic-call.c : Likewise.
25498         * ipa-profile.c : Likewise.
25499         * ipa-prop.c : Likewise.
25500         * ipa-pure-const.c : Likewise.
25501         * ipa-ref.c : Likewise.
25502         * ipa-reference.c : Likewise.
25503         * ipa-split.c : Likewise.
25504         * ipa-utils.c : Likewise.
25505         * ipa-visibility.c : Likewise.
25506         * ipa.c : Likewise.
25507         * ira-build.c : Likewise.
25508         * ira-color.c : Likewise.
25509         * ira-conflicts.c : Likewise.
25510         * ira-costs.c : Likewise.
25511         * ira-emit.c : Likewise.
25512         * ira-lives.c : Likewise.
25513         * ira.c : Likewise.
25514         * jump.c : Likewise.
25515         * langhooks.c : Likewise.
25516         * lcm.c : Likewise.
25517         * libfuncs.h : Likewise.
25518         * lists.c : Likewise.
25519         * loop-doloop.c : Likewise.
25520         * loop-init.c : Likewise.
25521         * loop-invariant.c : Likewise.
25522         * loop-iv.c : Likewise.
25523         * loop-unroll.c : Likewise.
25524         * lower-subreg.c : Likewise.
25525         * lra-assigns.c : Likewise.
25526         * lra-coalesce.c : Likewise.
25527         * lra-constraints.c : Likewise.
25528         * lra-eliminations.c : Likewise.
25529         * lra-lives.c : Likewise.
25530         * lra-remat.c : Likewise.
25531         * lra-spills.c : Likewise.
25532         * lra.c : Likewise.
25533         * lto-cgraph.c : Likewise.
25534         * lto-compress.c : Likewise.
25535         * lto-opts.c : Likewise.
25536         * lto-section-in.c : Likewise.
25537         * lto-section-out.c : Likewise.
25538         * lto-streamer-in.c : Likewise.
25539         * lto-streamer-out.c : Likewise.
25540         * lto-streamer.c : Likewise.
25541         * lto-streamer.h : Likewise.
25542         * mcf.c : Likewise.
25543         * mode-switching.c : Likewise.
25544         * modulo-sched.c : Likewise.
25545         * omega.c : Likewise.
25546         * omp-low.c : Likewise.
25547         * optabs.c : Likewise.
25548         * opts-global.c : Likewise.
25549         * opts.h : Likewise.
25550         * passes.c : Likewise.
25551         * plugin.c : Likewise.
25552         * postreload-gcse.c : Likewise.
25553         * postreload.c : Likewise.
25554         * predict.c : Likewise.
25555         * print-rtl.c : Likewise.
25556         * print-tree.c : Likewise.
25557         * profile.c : Likewise.
25558         * read-md.c : Likewise.
25559         * read-md.h : Likewise.
25560         * read-rtl.c : Likewise.
25561         * real.c : Likewise.
25562         * realmpfr.c : Likewise.
25563         * recog.c : Likewise.
25564         * ree.c : Likewise.
25565         * reg-stack.c : Likewise.
25566         * regcprop.c : Likewise.
25567         * reginfo.c : Likewise.
25568         * regrename.c : Likewise.
25569         * regstat.c : Likewise.
25570         * reload.c : Likewise.
25571         * reload1.c : Likewise.
25572         * reorg.c : Likewise.
25573         * resource.c : Likewise.
25574         * rtl-chkp.c : Likewise.
25575         * rtl.c : Likewise.
25576         * rtl.h : Likewise.
25577         * rtlanal.c : Likewise.
25578         * rtlhash.c : Likewise.
25579         * rtlhash.h : Likewise.
25580         * rtlhooks.c : Likewise.
25581         * sanopt.c : Likewise.
25582         * sched-deps.c : Likewise.
25583         * sched-ebb.c : Likewise.
25584         * sched-rgn.c : Likewise.
25585         * sched-vis.c : Likewise.
25586         * sdbout.c : Likewise.
25587         * sel-sched-dump.c : Likewise.
25588         * sel-sched-ir.c : Likewise.
25589         * sel-sched-ir.h : Likewise.
25590         * sel-sched.c : Likewise.
25591         * sese.c : Likewise.
25592         * shrink-wrap.c : Likewise.
25593         * shrink-wrap.h : Likewise.
25594         * simplify-rtx.c : Likewise.
25595         * stack-ptr-mod.c : Likewise.
25596         * statistics.c : Likewise.
25597         * stmt.c : Likewise.
25598         * stor-layout.c : Likewise.
25599         * store-motion.c : Likewise.
25600         * stringpool.c : Likewise.
25601         * symtab.c : Likewise.
25602         * target-globals.c : Likewise.
25603         * targhooks.c : Likewise.
25604         * tlink.c : Likewise.
25605         * toplev.c : Likewise.
25606         * tracer.c : Likewise.
25607         * trans-mem.c : Likewise.
25608         * tree-affine.c : Likewise.
25609         * tree-affine.h : Likewise.
25610         * tree-browser.c : Likewise.
25611         * tree-call-cdce.c : Likewise.
25612         * tree-cfg.c : Likewise.
25613         * tree-cfgcleanup.c : Likewise.
25614         * tree-chkp-opt.c : Likewise.
25615         * tree-chkp.c : Likewise.
25616         * tree-chrec.c : Likewise.
25617         * tree-complex.c : Likewise.
25618         * tree-data-ref.c : Likewise.
25619         * tree-dfa.c : Likewise.
25620         * tree-diagnostic.c : Likewise.
25621         * tree-dump.c : Likewise.
25622         * tree-eh.c : Likewise.
25623         * tree-eh.h : Likewise.
25624         * tree-emutls.c : Likewise.
25625         * tree-hasher.h : Likewise.
25626         * tree-if-conv.c : Likewise.
25627         * tree-inline.c : Likewise.
25628         * tree-inline.h : Likewise.
25629         * tree-into-ssa.c : Likewise.
25630         * tree-iterator.c : Likewise.
25631         * tree-loop-distribution.c : Likewise.
25632         * tree-nested.c : Likewise.
25633         * tree-nrv.c : Likewise.
25634         * tree-object-size.c : Likewise.
25635         * tree-outof-ssa.c : Likewise.
25636         * tree-parloops.c : Likewise.
25637         * tree-phinodes.c : Likewise.
25638         * tree-predcom.c : Likewise.
25639         * tree-pretty-print.c : Likewise.
25640         * tree-profile.c : Likewise.
25641         * tree-scalar-evolution.c : Likewise.
25642         * tree-sra.c : Likewise.
25643         * tree-ssa-address.c : Likewise.
25644         * tree-ssa-alias.c : Likewise.
25645         * tree-ssa-ccp.c : Likewise.
25646         * tree-ssa-coalesce.c : Likewise.
25647         * tree-ssa-copy.c : Likewise.
25648         * tree-ssa-copyrename.c : Likewise.
25649         * tree-ssa-dce.c : Likewise.
25650         * tree-ssa-dom.c : Likewise.
25651         * tree-ssa-dse.c : Likewise.
25652         * tree-ssa-forwprop.c : Likewise.
25653         * tree-ssa-ifcombine.c : Likewise.
25654         * tree-ssa-live.c : Likewise.
25655         * tree-ssa-loop-ch.c : Likewise.
25656         * tree-ssa-loop-im.c : Likewise.
25657         * tree-ssa-loop-ivcanon.c : Likewise.
25658         * tree-ssa-loop-ivopts.c : Likewise.
25659         * tree-ssa-loop-manip.c : Likewise.
25660         * tree-ssa-loop-niter.c : Likewise.
25661         * tree-ssa-loop-prefetch.c : Likewise.
25662         * tree-ssa-loop-unswitch.c : Likewise.
25663         * tree-ssa-loop.c : Likewise.
25664         * tree-ssa-math-opts.c : Likewise.
25665         * tree-ssa-operands.c : Likewise.
25666         * tree-ssa-phiopt.c : Likewise.
25667         * tree-ssa-phiprop.c : Likewise.
25668         * tree-ssa-pre.c : Likewise.
25669         * tree-ssa-propagate.c : Likewise.
25670         * tree-ssa-reassoc.c : Likewise.
25671         * tree-ssa-sccvn.c : Likewise.
25672         * tree-ssa-scopedtables.c : Likewise.
25673         * tree-ssa-sink.c : Likewise.
25674         * tree-ssa-strlen.c : Likewise.
25675         * tree-ssa-structalias.c : Likewise.
25676         * tree-ssa-tail-merge.c : Likewise.
25677         * tree-ssa-ter.c : Likewise.
25678         * tree-ssa-threadedge.c : Likewise.
25679         * tree-ssa-threadupdate.c : Likewise.
25680         * tree-ssa-uncprop.c : Likewise.
25681         * tree-ssa-uninit.c : Likewise.
25682         * tree-ssa.c : Likewise.
25683         * tree-ssanames.c : Likewise.
25684         * tree-stdarg.c : Likewise.
25685         * tree-streamer-in.c : Likewise.
25686         * tree-streamer-out.c : Likewise.
25687         * tree-streamer.c : Likewise.
25688         * tree-streamer.h : Likewise.
25689         * tree-switch-conversion.c : Likewise.
25690         * tree-tailcall.c : Likewise.
25691         * tree-vect-data-refs.c : Likewise.
25692         * tree-vect-generic.c : Likewise.
25693         * tree-vect-loop-manip.c : Likewise.
25694         * tree-vect-loop.c : Likewise.
25695         * tree-vect-patterns.c : Likewise.
25696         * tree-vect-slp.c : Likewise.
25697         * tree-vect-stmts.c : Likewise.
25698         * tree-vectorizer.c : Likewise.
25699         * tree-vectorizer.h : Likewise.
25700         * tree-vrp.c : Likewise.
25701         * tree.c : Likewise.
25702         * tsan.c : Likewise.
25703         * ubsan.c : Likewise.
25704         * valtrack.c : Likewise.
25705         * valtrack.h : Likewise.
25706         * value-prof.c : Likewise.
25707         * var-tracking.c : Likewise.
25708         * varasm.c : Likewise.
25709         * varpool.c : Likewise.
25710         * vec.c: Likewise.
25711         * vmsdbgout.c : Likewise.
25712         * vtable-verify.c : Likewise.
25713         * vtable-verify.h : Likewise.
25714         * web.c : Likewise.
25715         * wide-int.cc : Likewise.
25716         * xcoffout.c : Likewise.
25717         * config/aarch64/aarch64-builtins.c : Likewise.
25718         * config/aarch64/aarch64.c : Likewise.
25719         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25720         * config/alpha/alpha.c : Likewise.
25721         * config/arc/arc.c : Likewise.
25722         * config/arm/aarch-common.c : Likewise.
25723         * config/arm/arm-builtins.c : Likewise.
25724         * config/arm/arm-c.c : Likewise.
25725         * config/arm/arm.c : Likewise.
25726         * config/avr/avr-c.c : Likewise.
25727         * config/avr/avr-log.c : Likewise.
25728         * config/avr/avr.c : Likewise.
25729         * config/bfin/bfin.c : Likewise.
25730         * config/c6x/c6x.c : Likewise.
25731         * config/cr16/cr16.c : Likewise.
25732         * config/cris/cris.c : Likewise.
25733         * config/darwin-c.c : Likewise.
25734         * config/darwin.c : Likewise.
25735         * config/default-c.c : Likewise.
25736         * config/epiphany/epiphany.c : Likewise.
25737         * config/epiphany/mode-switch-use.c : Likewise.
25738         * config/epiphany/resolve-sw-modes.c : Likewise.
25739         * config/fr30/fr30.c : Likewise.
25740         * config/frv/frv.c : Likewise.
25741         * config/ft32/ft32.c : Likewise.
25742         * config/glibc-c.c : Likewise.
25743         * config/h8300/h8300.c : Likewise.
25744         * config/i386/i386-c.c : Likewise.
25745         * config/i386/i386.c : Likewise.
25746         * config/i386/msformat-c.c : Likewise.
25747         * config/i386/winnt-cxx.c : Likewise.
25748         * config/i386/winnt-stubs.c : Likewise.
25749         * config/i386/winnt.c : Likewise.
25750         * config/ia64/ia64-c.c : Likewise.
25751         * config/ia64/ia64.c : Likewise.
25752         * config/iq2000/iq2000.c : Likewise.
25753         * config/lm32/lm32.c : Likewise.
25754         * config/m32c/m32c-pragma.c : Likewise.
25755         * config/m32c/m32c.c : Likewise.
25756         * config/m32r/m32r.c : Likewise.
25757         * config/m68k/m68k.c : Likewise.
25758         * config/mcore/mcore.c : Likewise.
25759         * config/mep/mep-pragma.c : Likewise.
25760         * config/mep/mep.c : Likewise.
25761         * config/microblaze/microblaze-c.c : Likewise.
25762         * config/microblaze/microblaze.c : Likewise.
25763         * config/mips/mips.c : Likewise.
25764         * config/mmix/mmix.c : Likewise.
25765         * config/mn10300/mn10300.c : Likewise.
25766         * config/moxie/moxie.c : Likewise.
25767         * config/msp430/msp430-c.c : Likewise.
25768         * config/msp430/msp430.c : Likewise.
25769         * config/nds32/nds32-cost.c : Likewise.
25770         * config/nds32/nds32-fp-as-gp.c : Likewise.
25771         * config/nds32/nds32-intrinsic.c : Likewise.
25772         * config/nds32/nds32-isr.c : Likewise.
25773         * config/nds32/nds32-md-auxiliary.c : Likewise.
25774         * config/nds32/nds32-memory-manipulation.c : Likewise.
25775         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25776         * config/nds32/nds32-predicates.c : Likewise.
25777         * config/nds32/nds32.c : Likewise.
25778         * config/nios2/nios2.c : Likewise.
25779         * config/nvptx/nvptx.c : Likewise.
25780         * config/pa/pa.c : Likewise.
25781         * config/pdp11/pdp11.c : Likewise.
25782         * config/rl78/rl78-c.c : Likewise.
25783         * config/rl78/rl78.c : Likewise.
25784         * config/rs6000/rs6000-c.c : Likewise.
25785         * config/rs6000/rs6000.c : Likewise.
25786         * config/rx/rx.c : Likewise.
25787         * config/s390/s390-c.c : Likewise.
25788         * config/s390/s390.c : Likewise.
25789         * config/sh/sh-c.c : Likewise.
25790         * config/sh/sh-mem.cc : Likewise.
25791         * config/sh/sh.c : Likewise.
25792         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25793         * config/sh/sh_treg_combine.cc : Likewise.
25794         * config/sol2-c.c : Likewise.
25795         * config/sol2-cxx.c : Likewise.
25796         * config/sol2-stubs.c : Likewise.
25797         * config/sol2.c : Likewise.
25798         * config/sparc/sparc-c.c : Likewise.
25799         * config/sparc/sparc.c : Likewise.
25800         * config/spu/spu-c.c : Likewise.
25801         * config/spu/spu.c : Likewise.
25802         * config/stormy16/stormy16.c : Likewise.
25803         * config/tilegx/mul-tables.c : Likewise.
25804         * config/tilegx/tilegx-c.c : Likewise.
25805         * config/tilegx/tilegx.c : Likewise.
25806         * config/tilepro/mul-tables.c : Likewise.
25807         * config/tilepro/tilepro-c.c : Likewise.
25808         * config/tilepro/tilepro.c : Likewise.
25809         * config/v850/v850-c.c : Likewise.
25810         * config/v850/v850.c : Likewise.
25811         * config/vax/vax.c : Likewise.
25812         * config/visium/visium.c : Likewise.
25813         * config/vms/vms-c.c : Likewise.
25814         * config/vms/vms.c : Likewise.
25815         * config/vxworks.c : Likewise.
25816         * config/winnt-c.c : Likewise.
25817         * config/xtensa/xtensa.c : Likewise.
25819 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25821         PR lto/65378
25822         * ipa-utils.h (warn_types_mismatch): Update prototype.
25823         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25824         parameters.
25825         (type_mismatch_p): New function.
25826         (warn_types_mismatch): Reorg to work better on non-C++ types.
25827         (odr_types_equivalent_p): Add loc1/loc2 parameters.
25828         (add_type_duplicate): Update.
25830 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25832         PR rtl-optimization/66444
25833         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25834         call_used_regs.
25836 2015-06-08  Richard Biener  <rguenther@suse.de>
25838         PR tree-optimization/66422
25839         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25840         block after inserted gcc_unreachable.
25842 2015-06-08  Nick Clifton  <nickc@redhat.com>
25844         * config/rx/rx.c (rx_function_value): Do not promote vector types.
25845         (rx_promote_function_mode): Likewise.
25846         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25848 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
25850         * genattrtab.c (insn_alternatives): Change type from int *
25851         to uint64_t *.
25852         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25853         (get_attr_value): Change type of num_alt to uint64_t.
25854         (compute_alternative_mask): Change return type from
25855         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25856         (make_alternative_compare, mk_attr_alt): Change argument type
25857         from int to uint64_t.
25858         (simplify_test_exp): Change type of i from int to uint64_t.
25859         Shift ((uint64_t) 1) instead of 1 up.
25860         (main): Adjust oballocvec first argument from int to uint64_t.
25861         Shift ((uint64_t) 1) instead of 1 up.
25863 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
25865         PR other/65366
25866         * gdbhooks.py: Import sys.
25867         (intptr): New function.  Replace int(...) by intptr(...).
25869 2015-06-08  Richard Biener  <rguenther@suse.de>
25871         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25872         adjustment for gaps at the end of a SLP load group properly.
25873         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25874         all permutations we can generate.
25875         (vect_transform_slp_perm_load): Use the correct group-size.
25877 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
25879         * genmatch.c (expr::gen_transform): For conditions, guess the type
25880         from the second operand.
25882 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25884         PR tree-optimization/66442
25885         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25886         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25887         if the loop latch is not a singleton.  Use
25888         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25890 2015-06-08  Marek Polacek  <polacek@redhat.com>
25892         PR sanitizer/66452
25893         * toplev.c (check_global_declaration): Don't warn about artificial
25894         decls.
25896 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25898         PR tree-optimization/66436
25899         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25900         dump file.
25901         * gimplify.c: Add tree-dump.h include.
25902         (gimplify_function_tree): Dump function to gimple dump file.
25903         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25904         dump file.
25906 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25908         PR tree-optimization/66435
25909         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25910         function.
25912 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
25914         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25915         of ptr_type_node to not be ptr_to_node.
25916         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25917         TREE_TYPE of pointers.
25918         * gimple-expr.c (useless_type_conversion): Reorder the check for
25919         function pointers and TYPE_CANONICAL.
25921 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
25923         PR bootstrap/66319
25924         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25925         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25926         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25927         later.
25928         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25929         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25930         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25931         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25932         and non iso if unix2003.
25934 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
25936         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25938 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
25940         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25941         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25942         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25943         except.c, final.c, function.c, gcse-common.c, genemit.c,
25944         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25945         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25946         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25947         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25948         more derived ones.
25950 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
25952         * combine.c (combine_split_insns): Remove cast.
25953         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25954         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25955         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25956         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25957         * genemit.c (gen_split): Change return type of generated functions to
25958         rtx_insn.
25959         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25960         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25961         gen_peephole2_* functions.
25962         (print_subroutine, main): Likewise.
25963         * recog.c (peephole2_optimize): Remove cast.
25964         (peep2_next_insn): Promote return type to rtx_insn.
25965         * recog.h (peep2_next_insn): Fix prototype.
25966         * rtl.h (try_split, split_insns): Likewise.
25968 2015-06-06  DJ Delorie  <dj@redhat.com>
25970         * config/msp430/msp430.c (msp430_asm_integer): Support addition
25971         and subtraction too.
25973 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25975         PR target/66410
25976         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25977         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25978         instead of Snd.  Disparage Sid/z alternative with '^'.
25980 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
25982         * dwarf2out.c: Remove deferred_locations*.
25983         (dwarf2_debug_hooks): Add early_finish hook.
25984         Remove global_decl hook.
25985         Add early_global_decl and late_global_decl hook.
25986         New global early_dwarf.
25987         New structure set_early_dwarf.
25988         (output_die): Indicate whether a DIE was generated early
25989         when generating assembly with -dA.
25990         (struct limbo_die_struct): Document created_for field.
25991         Remove file_table_last_lookup.
25992         (remove_AT): Return TRUE if successful.
25993         (remove_child_TAG): Clear die_parent.
25994         (reparent_child): New function abstracted from...
25995         (splice_child_die): ...here.
25996         (new_die): ICE if a DIE ends up in limbo too late.
25997         (check_die): New.
25998         (defer_location): Remove.
25999         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26000         (fill_variable_array_bounds): New.
26001         (decl_start_label): Call fill_variable_array_bounds.
26002         (gen_formal_parameter_die): Rewrite to reuse previously generated
26003         DIEs.
26004         (gen_subprogram_die): Same.
26005         (gen_variable_die): Same.
26006         (gen_const_die): Same.
26007         (gen_label_die): Same.
26008         (gen_lexical_block_die): Same.
26009         (decl_will_get_specification_p): New.
26010         (local_function_static): New.
26011         (gen_struct_or_union_type_die): Fill in variable-length fields.
26012         (gen_typedef_die): Fill in variable-length typedefs.
26013         (gen_tagged_type_die): Gracefully return on error_mark_node.
26014         Handle re-entrancy.
26015         (gen_type_die_with_usage): Handle variable-length types.
26016         Remove duplicate code for ARRAY_TYPE case.
26017         (process_scope_var): Only process imported modules during early
26018         dwarf.
26019         (dwarf2out_early_global_decl): New.
26020         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26021         (dwarf2out_type_decl): Set early_dwarf while calling
26022         dwarf2out_decl.
26023         (dwarf2out_decl): Verify that we did not recreate a previously
26024         generated DIE.
26025         Do not return on DECL_EXTERNALs in VAR_DECLs.
26026         Abstract some code to local_function_static.
26027         (lookup_filename): Remove use of file_table_last_lookup.
26028         Gracefully exit on missing file_name.
26029         (dwarf2out_finish): Verify limbo list.
26030         Remove deferred_locations_list use.
26031         Move deferred_asm_name and limbo flushing to...
26032         (dwarf2out_early_finish): ...here.  New.
26033         (dwarf2out_c_finalize): Remove set of deferred_location_list,
26034         deferred_asm_name, and file_table_last_lookup.
26035         * cgraph.h (referred_to_p): Add default argument.
26036         * cgraphunit.c (referred_to_p): Add and handle include_self
26037         argument.
26038         (analyze_functions): Add first_time argument.
26039         Call check_global_declaration for all symbols.
26040         Call late_global_decl for nodes for moribund nodes.
26041         (finalize_compilation_unit): Add new argument to
26042         analyze_functions.
26043         Call early_global_decl for functions.
26044         Call early_finish debug hook.
26045         * dbxout.c (dbxout_early_global_decl): New.
26046         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
26047         (dbx_debug_hooks): Add new hooks.
26048         (xcoff_debug_hooks): Same.
26049         * debug.c (do_nothing_debug_hooks): Add early_finish field.
26050         Add early and late debug hooks.
26051         Remove global_decl hook.
26052         * debug.h (struct gcc_debug_hooks): Add early_finish,
26053         early_global_decl, and late_global_decl fields.
26054         Remove global_decl field.
26055         Document gcc_debug_hooks.
26056         * gengtype.c (output_typename): Remove.
26057         * godump.c (go_early_global_decl): New.
26058         (go_late_global_decl): New.
26059         (go_global_decl): Remove.
26060         (dump_go_spec_init): Remove global_decl.  Add
26061         {early,late}_global_decl.
26062         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26063         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26064         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26065         (write_global_declarations): Remove.
26066         (global_decl_processing): New.
26067         * langhooks.h (struct lang_hooks_for_decls): Remove
26068         final_write_globals field.
26069         Add post_compilation_parsing_cleanups field.
26070         * passes.c (rest_of_decl_compilation): Call early_global_decl.
26071         * sdbout.c: Add early and late_global_decl hooks.  Remove
26072         sdbout_global_decl hook.
26073         Add early_finish field for sdb_debug_hooks.
26074         (sdbout_global_decl): Remove.
26075         (sdbout_early_global_decl): New.
26076         (sdbout_late_global_decl): New.
26077         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26078         * toplev.c (check_global_declaration): Rename from
26079         check_global_declaration_1.
26080         Adapt to use symtab infrastructure.
26081         (check_global_declarations): Remove.
26082         (emit_debug_global_declarations): Remove.
26083         (compile_file): Remove call to final_write_globals langhook.
26084         Run the actual compilation process.
26085         Perform any post compilation parser cleanups.
26086         Generate late debug info.
26087         * toplev.h (check_global_declaration): New.
26088         (check_global_declaration_1): Remove.
26089         (check_global_declarations): Remove.
26090         (write_global_declarations): Remove.
26091         (emit_debug_global_declarations): Remove.
26092         (global_decl_processing): New.
26093         * tree-core.h (struct tree_block): Add DIE field.
26094         * tree.h (BLOCK_DIE): New.
26095         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26096         throughout.
26097         (vmsdbgout_early_global_decl): New.
26098         (vmsdbgout_late_global_decl): New.
26099         Add early_finish debug hook field to vmsdbg_debug_hooks.
26100         Remove vmsdbgout_decl to vmsdbgout_function_decl.
26101         Add early and late_global_decl debug hooks.
26103 2015-06-05  Julian Brown  <julian@codesourcery.com>
26104             Sandra Loosemore  <sandra@codesourcery.com>
26106         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26107         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26108         to print-sysroot-suffix.sh script.
26110 2015-06-05  Tom de Vries  <tom@codesourcery.com>
26112         merge from gomp4 branch:
26113         2015-05-28  Tom de Vries  <tom@codesourcery.com>
26115         PR tree-optimization/65443
26116         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26117         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26118         (try_transform_to_exit_first_loop_alt): New function.
26119         (transform_to_exit_first_loop): Use
26120         try_transform_to_exit_first_loop_alt.
26122 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
26124         * builtins.c (expand_builtin_atomic_compare_exchange): Call
26125         emit_cmp_and_jump_insns with the mode of target.
26127 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26129         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26131 2015-06-04  DJ Delorie  <dj@redhat.com>
26133         * config/msp430/msp430.md (movsi_s): New.  Special case for
26134         storing a 20-bit symbol into a 32-bit register.
26135         * config/msp430/msp430.c (msp430_subreg): Add support for it.
26136         * config/msp430/predicates.md (msp430_symbol_operand): New.
26138 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
26140         * c-family/c-common.c (noplt): New attribute.
26141         (handle_noplt_attribute): New handler.
26142         * calls.c (prepare_call_address): Check for noplt
26143         attribute.
26144         * config/i386/i386.c (ix86_expand_call): Check
26145         for noplt attribute.
26146         (ix86_nopic_noplt_attribute_p): New function.
26147         (ix86_output_call_insn): Output indirect call for non-pic
26148         no plt calls.
26149         * doc/extend.texi (noplt): Document new attribute.
26150         * doc/invoke.texi: Document new attribute.
26152 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
26154         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26155         real.h, and fixed-value.h when included in host source files.
26156         * double-int.h: Remove redundant #includes listed above.
26157         * fixed-value.h: Likewise.
26158         * real.h: Likewise.
26159         * wide-int.h: Likewise.
26160         * inchash.h: Likewise.
26161         * rtl.h: Add some include files When included from a generator file.
26162         * target.h: Remove wide-int.h and insn-modes.h from the include list.
26163         * internal-fn.h: Don't include coretypes.h.
26164         * alias.c: Adjust includes for restructured coretypes.h.
26165         * asan.c: Likewise.
26166         * attribs.c: Likewise.
26167         * auto-inc-dec.c: Likewise.
26168         * auto-profile.c: Likewise.
26169         * bb-reorder.c: Likewise.
26170         * bt-load.c: Likewise.
26171         * builtins.c: Likewise.
26172         * caller-save.c: Likewise.
26173         * calls.c: Likewise.
26174         * ccmp.c: Likewise.
26175         * cfg.c: Likewise.
26176         * cfganal.c: Likewise.
26177         * cfgbuild.c: Likewise.
26178         * cfgcleanup.c: Likewise.
26179         * cfgexpand.c: Likewise.
26180         * cfghooks.c: Likewise.
26181         * cfgloop.c: Likewise.
26182         * cfgloop.h: Likewise.
26183         * cfgloopanal.c: Likewise.
26184         * cfgloopmanip.c: Likewise.
26185         * cfgrtl.c: Likewise.
26186         * cgraph.c: Likewise.
26187         * cgraphbuild.c: Likewise.
26188         * cgraphclones.c: Likewise.
26189         * cgraphunit.c: Likewise.
26190         * cilk-common.c: Likewise.
26191         * combine-stack-adj.c: Likewise.
26192         * combine.c: Likewise.
26193         * compare-elim.c: Likewise.
26194         * convert.c: Likewise.
26195         * coverage.c: Likewise.
26196         * cppbuiltin.c: Likewise.
26197         * cprop.c: Likewise.
26198         * cse.c: Likewise.
26199         * cselib.c: Likewise.
26200         * data-streamer-in.c: Likewise.
26201         * data-streamer-out.c: Likewise.
26202         * data-streamer.c: Likewise.
26203         * dbxout.c: Likewise.
26204         * dce.c: Likewise.
26205         * ddg.c: Likewise.
26206         * debug.c: Likewise.
26207         * df-core.c: Likewise.
26208         * df-problems.c: Likewise.
26209         * df-scan.c: Likewise.
26210         * df.h: Likewise.
26211         * dfp.c: Likewise.
26212         * dojump.c: Likewise.
26213         * dominance.c: Likewise.
26214         * domwalk.c: Likewise.
26215         * double-int.c: Likewise.
26216         * dse.c: Likewise.
26217         * dumpfile.c: Likewise.
26218         * dwarf2asm.c: Likewise.
26219         * dwarf2cfi.c: Likewise.
26220         * dwarf2out.c: Likewise.
26221         * dwarf2out.h: Likewise.
26222         * emit-rtl.c: Likewise.
26223         * et-forest.c: Likewise.
26224         * except.c: Likewise.
26225         * explow.c: Likewise.
26226         * expmed.c: Likewise.
26227         * expr.c: Likewise.
26228         * final.c: Likewise.
26229         * fixed-value.c: Likewise.
26230         * fold-const.c: Likewise.
26231         * function.c: Likewise.
26232         * fwprop.c: Likewise.
26233         * gcc-plugin.h: Likewise.
26234         * gcse.c: Likewise.
26235         * generic-match-head.c: Likewise.
26236         * ggc-page.c: Likewise.
26237         * gimple-builder.c: Likewise.
26238         * gimple-expr.c: Likewise.
26239         * gimple-fold.c: Likewise.
26240         * gimple-iterator.c: Likewise.
26241         * gimple-low.c: Likewise.
26242         * gimple-match-head.c: Likewise.
26243         * gimple-pretty-print.c: Likewise.
26244         * gimple-ssa-isolate-paths.c: Likewise.
26245         * gimple-ssa-strength-reduction.c: Likewise.
26246         * gimple-streamer-in.c: Likewise.
26247         * gimple-streamer-out.c: Likewise.
26248         * gimple-streamer.h: Likewise.
26249         * gimple-walk.c: Likewise.
26250         * gimple.c: Likewise.
26251         * gimplify-me.c: Likewise.
26252         * gimplify.c: Likewise.
26253         * godump.c: Likewise.
26254         * graph.c: Likewise.
26255         * graphite-blocking.c: Likewise.
26256         * graphite-dependences.c: Likewise.
26257         * graphite-interchange.c: Likewise.
26258         * graphite-isl-ast-to-gimple.c: Likewise.
26259         * graphite-optimize-isl.c: Likewise.
26260         * graphite-poly.c: Likewise.
26261         * graphite-scop-detection.c: Likewise.
26262         * graphite-sese-to-poly.c: Likewise.
26263         * graphite.c: Likewise.
26264         * haifa-sched.c: Likewise.
26265         * hooks.h: Likewise.
26266         * hw-doloop.c: Likewise.
26267         * ifcvt.c: Likewise.
26268         * incpath.c: Likewise.
26269         * init-regs.c: Likewise.
26270         * internal-fn.c: Likewise.
26271         * ipa-chkp.c: Likewise.
26272         * ipa-comdats.c: Likewise.
26273         * ipa-cp.c: Likewise.
26274         * ipa-devirt.c: Likewise.
26275         * ipa-icf-gimple.c: Likewise.
26276         * ipa-icf.c: Likewise.
26277         * ipa-inline-analysis.c: Likewise.
26278         * ipa-inline-transform.c: Likewise.
26279         * ipa-inline.c: Likewise.
26280         * ipa-polymorphic-call.c: Likewise.
26281         * ipa-profile.c: Likewise.
26282         * ipa-prop.c: Likewise.
26283         * ipa-pure-const.c: Likewise.
26284         * ipa-ref.c: Likewise.
26285         * ipa-reference.c: Likewise.
26286         * ipa-split.c: Likewise.
26287         * ipa-utils.c: Likewise.
26288         * ipa-visibility.c: Likewise.
26289         * ipa.c: Likewise.
26290         * ira-build.c: Likewise.
26291         * ira-color.c: Likewise.
26292         * ira-conflicts.c: Likewise.
26293         * ira-costs.c: Likewise.
26294         * ira-emit.c: Likewise.
26295         * ira-lives.c: Likewise.
26296         * ira.c: Likewise.
26297         * jump.c: Likewise.
26298         * langhooks.c: Likewise.
26299         * lcm.c: Likewise.
26300         * loop-doloop.c: Likewise.
26301         * loop-init.c: Likewise.
26302         * loop-invariant.c: Likewise.
26303         * loop-iv.c: Likewise.
26304         * loop-unroll.c: Likewise.
26305         * lower-subreg.c: Likewise.
26306         * lra-assigns.c: Likewise.
26307         * lra-coalesce.c: Likewise.
26308         * lra-constraints.c: Likewise.
26309         * lra-eliminations.c: Likewise.
26310         * lra-lives.c: Likewise.
26311         * lra-remat.c: Likewise.
26312         * lra-spills.c: Likewise.
26313         * lra.c: Likewise.
26314         * lto-cgraph.c: Likewise.
26315         * lto-compress.c: Likewise.
26316         * lto-opts.c: Likewise.
26317         * lto-section-in.c: Likewise.
26318         * lto-section-out.c: Likewise.
26319         * lto-streamer-in.c: Likewise.
26320         * lto-streamer-out.c: Likewise.
26321         * lto-streamer.c: Likewise.
26322         * mcf.c: Likewise.
26323         * mode-switching.c: Likewise.
26324         * modulo-sched.c: Likewise.
26325         * omega.c: Likewise.
26326         * omp-low.c: Likewise.
26327         * optabs.c: Likewise.
26328         * opts-global.c: Likewise.
26329         * passes.c: Likewise.
26330         * plugin.c: Likewise.
26331         * postreload-gcse.c: Likewise.
26332         * postreload.c: Likewise.
26333         * predict.c: Likewise.
26334         * print-rtl.c: Likewise.
26335         * print-tree.c: Likewise.
26336         * profile.c: Likewise.
26337         * real.c: Likewise.
26338         * realmpfr.c: Likewise.
26339         * realmpfr.h: Likewise.
26340         * recog.c: Likewise.
26341         * ree.c: Likewise.
26342         * reg-stack.c: Likewise.
26343         * regcprop.c: Likewise.
26344         * reginfo.c: Likewise.
26345         * regrename.c: Likewise.
26346         * regs.h: Likewise.
26347         * regstat.c: Likewise.
26348         * reload.c: Likewise.
26349         * reload1.c: Likewise.
26350         * reorg.c: Likewise.
26351         * resource.c: Likewise.
26352         * rtl-chkp.c: Likewise.
26353         * rtlanal.c: Likewise.
26354         * rtlhooks.c: Likewise.
26355         * sanopt.c: Likewise.
26356         * sched-deps.c: Likewise.
26357         * sched-ebb.c: Likewise.
26358         * sched-rgn.c: Likewise.
26359         * sched-vis.c: Likewise.
26360         * sdbout.c: Likewise.
26361         * sel-sched-dump.c: Likewise.
26362         * sel-sched-ir.c: Likewise.
26363         * sel-sched.c: Likewise.
26364         * sese.c: Likewise.
26365         * shrink-wrap.c: Likewise.
26366         * shrink-wrap.h: Likewise.
26367         * simplify-rtx.c: Likewise.
26368         * stack-ptr-mod.c: Likewise.
26369         * statistics.c: Likewise.
26370         * stmt.c: Likewise.
26371         * stor-layout.c: Likewise.
26372         * store-motion.c: Likewise.
26373         * stringpool.c: Likewise.
26374         * symtab.c: Likewise.
26375         * target-globals.c: Likewise.
26376         * targhooks.c: Likewise.
26377         * toplev.c: Likewise.
26378         * tracer.c: Likewise.
26379         * trans-mem.c: Likewise.
26380         * tree-affine.c: Likewise.
26381         * tree-affine.h: Likewise.
26382         * tree-browser.c: Likewise.
26383         * tree-call-cdce.c: Likewise.
26384         * tree-cfg.c: Likewise.
26385         * tree-cfgcleanup.c: Likewise.
26386         * tree-chkp-opt.c: Likewise.
26387         * tree-chkp.c: Likewise.
26388         * tree-chrec.c: Likewise.
26389         * tree-complex.c: Likewise.
26390         * tree-data-ref.c: Likewise.
26391         * tree-dfa.c: Likewise.
26392         * tree-diagnostic.c: Likewise.
26393         * tree-dump.c: Likewise.
26394         * tree-eh.c: Likewise.
26395         * tree-emutls.c: Likewise.
26396         * tree-if-conv.c: Likewise.
26397         * tree-inline.c: Likewise.
26398         * tree-into-ssa.c: Likewise.
26399         * tree-iterator.c: Likewise.
26400         * tree-loop-distribution.c: Likewise.
26401         * tree-nested.c: Likewise.
26402         * tree-nrv.c: Likewise.
26403         * tree-object-size.c: Likewise.
26404         * tree-outof-ssa.c: Likewise.
26405         * tree-parloops.c: Likewise.
26406         * tree-phinodes.c: Likewise.
26407         * tree-predcom.c: Likewise.
26408         * tree-pretty-print.c: Likewise.
26409         * tree-pretty-print.h: Likewise.
26410         * tree-profile.c: Likewise.
26411         * tree-scalar-evolution.c: Likewise.
26412         * tree-sra.c: Likewise.
26413         * tree-ssa-address.c: Likewise.
26414         * tree-ssa-alias.c: Likewise.
26415         * tree-ssa-ccp.c: Likewise.
26416         * tree-ssa-coalesce.c: Likewise.
26417         * tree-ssa-copy.c: Likewise.
26418         * tree-ssa-copyrename.c: Likewise.
26419         * tree-ssa-dce.c: Likewise.
26420         * tree-ssa-dom.c: Likewise.
26421         * tree-ssa-dse.c: Likewise.
26422         * tree-ssa-forwprop.c: Likewise.
26423         * tree-ssa-ifcombine.c: Likewise.
26424         * tree-ssa-live.c: Likewise.
26425         * tree-ssa-loop-ch.c: Likewise.
26426         * tree-ssa-loop-im.c: Likewise.
26427         * tree-ssa-loop-ivcanon.c: Likewise.
26428         * tree-ssa-loop-ivopts.c: Likewise.
26429         * tree-ssa-loop-manip.c: Likewise.
26430         * tree-ssa-loop-niter.c: Likewise.
26431         * tree-ssa-loop-prefetch.c: Likewise.
26432         * tree-ssa-loop-unswitch.c: Likewise.
26433         * tree-ssa-loop.c: Likewise.
26434         * tree-ssa-loop.h: Likewise.
26435         * tree-ssa-math-opts.c: Likewise.
26436         * tree-ssa-operands.c: Likewise.
26437         * tree-ssa-phiopt.c: Likewise.
26438         * tree-ssa-phiprop.c: Likewise.
26439         * tree-ssa-pre.c: Likewise.
26440         * tree-ssa-propagate.c: Likewise.
26441         * tree-ssa-reassoc.c: Likewise.
26442         * tree-ssa-sccvn.c: Likewise.
26443         * tree-ssa-scopedtables.c: Likewise.
26444         * tree-ssa-sink.c: Likewise.
26445         * tree-ssa-strlen.c: Likewise.
26446         * tree-ssa-structalias.c: Likewise.
26447         * tree-ssa-tail-merge.c: Likewise.
26448         * tree-ssa-ter.c: Likewise.
26449         * tree-ssa-threadedge.c: Likewise.
26450         * tree-ssa-threadupdate.c: Likewise.
26451         * tree-ssa-uncprop.c: Likewise.
26452         * tree-ssa-uninit.c: Likewise.
26453         * tree-ssa.c: Likewise.
26454         * tree-ssanames.c: Likewise.
26455         * tree-stdarg.c: Likewise.
26456         * tree-streamer-in.c: Likewise.
26457         * tree-streamer-out.c: Likewise.
26458         * tree-streamer.c: Likewise.
26459         * tree-switch-conversion.c: Likewise.
26460         * tree-tailcall.c: Likewise.
26461         * tree-vect-data-refs.c: Likewise.
26462         * tree-vect-generic.c: Likewise.
26463         * tree-vect-loop-manip.c: Likewise.
26464         * tree-vect-loop.c: Likewise.
26465         * tree-vect-patterns.c: Likewise.
26466         * tree-vect-slp.c: Likewise.
26467         * tree-vect-stmts.c: Likewise.
26468         * tree-vectorizer.c: Likewise.
26469         * tree-vrp.c: Likewise.
26470         * tree.c: Likewise.
26471         * tsan.c: Likewise.
26472         * ubsan.c: Likewise.
26473         * valtrack.c: Likewise.
26474         * value-prof.c: Likewise.
26475         * var-tracking.c: Likewise.
26476         * varasm.c: Likewise.
26477         * varpool.c: Likewise.
26478         * vmsdbgout.c: Likewise.
26479         * vtable-verify.c: Likewise.
26480         * web.c: Likewise.
26481         * wide-int-print.cc: Likewise.
26482         * wide-int-print.h: Likewise.
26483         * wide-int.cc: Likewise.
26484         * xcoffout.c: Likewise.
26485         * config/aarch64/aarch64-builtins.c: Likewise.
26486         * config/aarch64/aarch64.c: Likewise.
26487         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26488         * config/alpha/alpha.c: Likewise.
26489         * config/arc/arc.c: Likewise.
26490         * config/arm/aarch-common.c: Likewise.
26491         * config/arm/arm-builtins.c: Likewise.
26492         * config/arm/arm-c.c: Likewise.
26493         * config/arm/arm.c: Likewise.
26494         * config/avr/avr-c.c: Likewise.
26495         * config/avr/avr-log.c: Likewise.
26496         * config/avr/avr.c: Likewise.
26497         * config/bfin/bfin.c: Likewise.
26498         * config/c6x/c6x.c: Likewise.
26499         * config/cr16/cr16.c: Likewise.
26500         * config/cris/cris.c: Likewise.
26501         * config/darwin-c.c: Likewise.
26502         * config/darwin.c: Likewise.
26503         * config/default-c.c: Likewise.
26504         * config/epiphany/epiphany.c: Likewise.
26505         * config/epiphany/mode-switch-use.c: Likewise.
26506         * config/epiphany/resolve-sw-modes.c: Likewise.
26507         * config/fr30/fr30.c: Likewise.
26508         * config/frv/frv.c: Likewise.
26509         * config/ft32/ft32.c: Likewise.
26510         * config/glibc-c.c: Likewise.
26511         * config/h8300/h8300.c: Likewise.
26512         * config/i386/i386-c.c: Likewise.
26513         * config/i386/i386.c: Likewise.
26514         * config/i386/msformat-c.c: Likewise.
26515         * config/i386/winnt-cxx.c: Likewise.
26516         * config/i386/winnt-stubs.c: Likewise.
26517         * config/i386/winnt.c: Likewise.
26518         * config/ia64/ia64-c.c: Likewise.
26519         * config/ia64/ia64.c: Likewise.
26520         * config/iq2000/iq2000.c: Likewise.
26521         * config/lm32/lm32.c: Likewise.
26522         * config/m32c/m32c-pragma.c: Likewise.
26523         * config/m32c/m32c.c: Likewise.
26524         * config/m32r/m32r.c: Likewise.
26525         * config/m68k/m68k.c: Likewise.
26526         * config/mcore/mcore.c: Likewise.
26527         * config/mep/mep-pragma.c: Likewise.
26528         * config/mep/mep.c: Likewise.
26529         * config/microblaze/microblaze-c.c: Likewise.
26530         * config/microblaze/microblaze.c: Likewise.
26531         * config/mips/mips.c: Likewise.
26532         * config/mmix/mmix.c: Likewise.
26533         * config/mn10300/mn10300.c: Likewise.
26534         * config/moxie/moxie.c: Likewise.
26535         * config/msp430/msp430-c.c: Likewise.
26536         * config/msp430/msp430.c: Likewise.
26537         * config/nds32/nds32-cost.c: Likewise.
26538         * config/nds32/nds32-fp-as-gp.c: Likewise.
26539         * config/nds32/nds32-intrinsic.c: Likewise.
26540         * config/nds32/nds32-isr.c: Likewise.
26541         * config/nds32/nds32-md-auxiliary.c: Likewise.
26542         * config/nds32/nds32-memory-manipulation.c: Likewise.
26543         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26544         * config/nds32/nds32-predicates.c: Likewise.
26545         * config/nds32/nds32.c: Likewise.
26546         * config/nios2/nios2.c: Likewise.
26547         * config/nvptx/nvptx.c: Likewise.
26548         * config/pa/pa.c: Likewise.
26549         * config/pdp11/pdp11.c: Likewise.
26550         * config/rl78/rl78-c.c: Likewise.
26551         * config/rl78/rl78.c: Likewise.
26552         * config/rs6000/rs6000-c.c: Likewise.
26553         * config/rs6000/rs6000.c: Likewise.
26554         * config/rx/rx.c: Likewise.
26555         * config/s390/s390-c.c: Likewise.
26556         * config/s390/s390.c: Likewise.
26557         * config/sh/sh-c.c: Likewise.
26558         * config/sh/sh-mem.cc: Likewise.
26559         * config/sh/sh.c: Likewise.
26560         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26561         * config/sh/sh_treg_combine.cc: Likewise.
26562         * config/sol2-c.c: Likewise.
26563         * config/sol2-cxx.c: Likewise.
26564         * config/sol2-stubs.c: Likewise.
26565         * config/sol2.c: Likewise.
26566         * config/sparc/sparc-c.c: Likewise.
26567         * config/sparc/sparc.c: Likewise.
26568         * config/spu/spu-c.c: Likewise.
26569         * config/spu/spu.c: Likewise.
26570         * config/stormy16/stormy16.c: Likewise.
26571         * config/tilegx/mul-tables.c: Likewise.
26572         * config/tilegx/tilegx-c.c: Likewise.
26573         * config/tilegx/tilegx.c: Likewise.
26574         * config/tilepro/mul-tables.c: Likewise.
26575         * config/tilepro/tilepro-c.c: Likewise.
26576         * config/tilepro/tilepro.c: Likewise.
26577         * config/v850/v850-c.c: Likewise.
26578         * config/v850/v850.c: Likewise.
26579         * config/vax/vax.c: Likewise.
26580         * config/visium/visium.c: Likewise.
26581         * config/vms/vms-c.c: Likewise.
26582         * config/vms/vms.c: Likewise.
26583         * config/vxworks.c: Likewise.
26584         * config/winnt-c.c: Likewise.
26585         * config/xtensa/xtensa.c: Likewise.
26586         * common/config/bfin/bfin-common.c: Likewise.
26588 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
26590         * tree.h (tree_code_for_canonical_type_merging): New function.
26591         * tree.c (gimple_canonical_types_compatible_p): Use
26592         tree_code_for_canonical_type_merging..
26594 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26596         PR c++/66192
26597         PR target/66200
26598         * doc/tm.texi: Regenerate.
26599         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26600         * target.def (TARGET_RELAXED_ORDERING): Likewise.
26601         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26602         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26603         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26604         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26605         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26606         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26607         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26609 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26611         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26612         register fma steering pass.
26613         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26614         AARCH64_TUNE_FMA_STEERING.
26616 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
26618         * tree.c (verify_type_variant): Verify that type and variant is
26619         compatible.
26620         (gimple_canonical_types_compatible_p): Look for main variants.
26622 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26624         * config.gcc (powerpc*-*-*): Add support for a new configure
26625         option --with-advance-toolchain=<xxx> which overrides using the
26626         default header files, libraries and dynamic linker.
26628         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26629         specs to support the configure --with-advance-toolchain=<xxx>
26630         option.
26631         (INCLUDE_EXTRA_SPEC): Likewise.
26632         (LINK_OS_EXTRA_SPEC32): Likewise.
26633         (LINK_OK_EXTRA_SPEC64): Likewise.
26634         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26635         (DYNAMIC_LINKER_PREFIX): Likewise.
26636         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26637         toolchain support.
26638         (GLIBC_DYNAMIC_LINKER32): Likewise.
26639         (GLIBC_DYNAMIC_LINKER64): Likewise.
26640         (LINK_OS_LINUX_SPEC32): Likewise.
26641         (LINK_OS_LINUX_SPEC64): Likewise.
26643         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26644         configuration option.
26646 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
26648         PR target/66275
26649         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26650         to determine current function ABI.
26651         (ix86_function_value_regno_p): Ditto.
26653 2015-06-03  Martin Liska  <mliska@suse.cz>
26655         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26656         * bitmap.h (struct bitmap_usage): Likewise.
26657         * ggc-common.c (struct ggc_usage): Likewise.
26658         * mem-stats.h (struct mem_location): Likewise.
26659         (struct mem_usage): Likewise.
26660         * vec.c (struct vec_usage): Likewise.
26662 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
26664         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26665         -Bsymbolic.
26667 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
26669         * doc/plugins.texi (enum plugin_event): New event.
26670         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26671         and PLUGIN_FINISH_FUNCTION.
26672         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26673         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26675 2015-06-03  Richard Biener  <rguenther@suse.de>
26677         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26678         compute GROUP_GAP for the first element.
26679         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26680         on in-group gaps.
26682 2015-06-03  Nick Clifton  <nickc@redhat.com>
26684         * config/rl78/rl78-real.md: Add peepholes to avoid a register
26685         copy when calling a function.
26686         * config/rl78/rl78.c (need_to_save): Do not push the frame
26687         pointer in an interrupt handler prologue if it is never used.
26689 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26691         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26693 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26695         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26696         reference when cloning alias node.
26698 2015-06-03  Martin Liska  <mliska@suse.cz>
26700         * alloc-pool.h (struct pool_usage): Correct space padding.
26701         * ggc-page.c (ggc_print_statistics): Align columns in a report.
26702         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26703         * tree.c (dump_tree_statistics): Align columns in a report.
26705 2015-06-03  Martin Liska  <mliska@suse.cz>
26707         * alloc-pool.c (allocate_pool_descriptor): Remove.
26708         (struct pool_output_info): Likewise.
26709         (print_alloc_pool_statistics): Likewise.
26710         (dump_alloc_pool_statistics): Likewise.
26711         * alloc-pool.h (struct pool_usage): New struct.
26712         (pool_allocator::initialize): Change usage of memory statistics
26713         to a new interface.
26714         (pool_allocator::release): Likewise.
26715         (pool_allocator::allocate): Likewise.
26716         (pool_allocator::remove): Likewise.
26717         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26718         for a pool allocator.
26719         * mem-stats.h (struct mem_location): Add new ctor.
26720         (struct mem_usage): Add counter for number of
26721         instances.
26722         (mem_alloc_description::register_descriptor): New overload of
26723         * mem-stats.h (mem_location::to_string): New function.
26724         * bitmap.h (struct bitmap_usage): Use this new function.
26725         * ggc-common.c (struct ggc_usage): Likewise.
26726         the function.
26728 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26730         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26731         of GCC_INSN_FLAGS_H block.
26733 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
26735         * explow.c (plus_constant): Update check after force_const_mem call
26736         to see if the value returned is not a NULL_RTX.
26738 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
26740         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26741         remove instumentation thunks calling reachable functions.
26742         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26743         * lto/lto-partition.c (privatize_symbol_name_1): New.
26744         (privatize_symbol_name): Privatize both decl and orig_decl
26745         names for instrumented functions.
26746         * cgraph.c (cgraph_node::verify_node): Add transparent
26747         alias chain check for instrumented node.
26749 2015-06-03  Marek Polacek  <polacek@redhat.com>
26751         PR c/64223
26752         PR c/29358
26753         * tree.c (attribute_value_equal): Handle attribute format.
26754         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26756 2015-06-03  Richard Biener  <rguenther@suse.de>
26758         PR tree-optimization/63916
26759         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26760         Forward-propagate non-invariant addresses by splicing their
26761         reference ops if the result isn't going to be used by PRE.
26762         (vn_reference_lookup_3): Remove pointless assert.
26764 2015-06-03  Richard Biener  <rguenther@suse.de>
26766         PR tree-optimization/66375
26767         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26768         add to the evolution before following SSA edges.
26770 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
26772         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26773         (dump_use, dump_cand, find_induction_variables): Pass new argument
26774         to dump_iv.
26775         (record_use): Preserve the ssa name information in IV.
26777 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
26779         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26780         NO_MODE_TEST.
26781         (add_mode_tests): Don't add mode tests if the predicate only
26782         accepts scalar constant integers.  Otherwise, allow the mode
26783         of "op" to be VOIDmode if the predicate does accept such integers.
26785 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
26787         PR target/66258
26788         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26789         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26790         (aarch64_secondary_reload): Likewise
26791         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26792         to !TARGET_FLOAT.
26793         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26794         Likewise.
26796 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
26797             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26799         PR target/65768
26800         * cprop.c (try_replace_reg): Check cost of constants before propagating.
26802 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26804         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26805         provide access to the IBM extended double floating point mode if
26806         long double is IEEE 128-bit floating point.
26807         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26808         point if long double is the IBM extended double type.
26810         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26811         enable adding IEEE 128-bit floating point support.
26812         (-mfloat128-software): Likewise.
26813         (-mfloat128-sw): Likewise.
26815         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26816         128-bit floating point types to occupy any register if
26817         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
26818         -mfloat128-software is enabled.
26819         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26820         support.
26821         (rs6000_option_override_internal): Add -mfloat128-* support.
26822         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26824         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26825         and float128 type nodes.
26826         (ieee128_float_type_node): Likewise.
26827         (ibm128_float_type_node): Likewise.
26829 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26831         PR target/66136
26832         * config/aarch64/geniterators.sh: Rewrite in awk.
26834 2015-06-02  Martin Liska  <mliska@suse.cz>
26836         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26837         values to avoid -Wmaybe-uninitialized errors.
26839 2015-06-02  Richard Biener  <rguenther@suse.de>
26841         PR debug/65549
26842         * dwarf2out.c (lookup_context_die): New function.
26843         (resolve_addr): Avoid forcing a full DIE for the
26844         target of a DW_TAG_GNU_call_site during late compilation.
26845         Instead create a stub DIE without a type if we have a
26846         context DIE present.
26848 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
26850         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26852 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26854         PR tree-optimization/48052
26855         * cfgloop.h (struct control_iv): New.
26856         (struct loop): New field control_ivs.
26857         * tree-ssa-loop-niter.c : Include "stor-layout.h".
26858         (number_of_iterations_lt): Set no_overflow information.
26859         (number_of_iterations_exit): Init control iv in niter struct.
26860         (record_control_iv): New.
26861         (estimate_numbers_of_iterations_loop): Call record_control_iv.
26862         (loop_exits_before_overflow): New.  Interface factored out of
26863         scev_probably_wraps_p.
26864         (scev_probably_wraps_p): Factor loop niter related code into
26865         loop_exits_before_overflow.
26866         (free_numbers_of_iterations_estimates_loop): Free control ivs.
26867         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26869 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
26871         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26872         the target doesn't belong to the current function.
26874 2015-06-02  Marek Polacek  <polacek@redhat.com>
26876         PR middle-end/66345
26877         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26878         get_maxval_strlen does not produce an INTEGER_CST.
26880 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
26882         * config/arc/constraints.md: Use lower-case names in match_code.
26883         * config/mmix/constraints.md: Likewise.
26885 2015-06-02  Richard Biener  <rguenther@suse.de>
26887         PR tree-optimization/65961
26888         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26889         check and clarify dump message.
26890         (vect_build_slp_tree): If all children are built up from scalars
26891         build up the parent from scalars instead.
26892         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26894 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
26896         PR other/65366
26897         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
26898         instead of print ... .
26900 2015-06-02  Alan Modra  <amodra@gmail.com>
26902         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26903         2014-08-11 change.
26905 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26907         PR tree-optimization/52563
26908         PR tree-optimization/62173
26909         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
26910         (alloc_iv, set_iv): New parameter.
26911         (determine_biv_step): Delete.
26912         (find_bivs): Inline original determine_biv_step.  Pass new
26913         argument to set_iv.
26914         (idx_find_step): Use no_overflow information for conversion.
26915         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26916         resolve_mixers handle folded_casts.
26917         (instantiate_scev_name): Change bool parameter to bool pointer.
26918         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26919         (instantiate_array_ref, instantiate_scev_not): Ditto.
26920         (instantiate_scev_3, instantiate_scev_2): Ditto.
26921         (instantiate_scev_1, instantiate_scev_r): Ditto.
26922         (instantiate_scev_convert, ): Change parameter.  Pass argument
26923         to chrec_convert_aggressive.
26924         (instantiate_scev): Change argument.
26925         (resolve_mixers): New parameter and set it.
26926         (scev_const_prop): New argument.
26927         * tree-scalar-evolution.h (resolve_mixers): New parameter.
26928         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26929         of chrec_conert_1.
26930         (chrec_convert): New parameter.  Move definition below.
26931         (chrec_convert_aggressive): New parameter and set it.  Call
26932         convert_affine_scev.
26933         * tree-chrec.h (chrec_convert): New parameter.
26934         (chrec_convert_aggressive): Ditto.
26936 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26938         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26939         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26940         the LHS of a no-return call if its type has variable size.
26941         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26942         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26944 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
26946         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26947         * config.in: Regenerate.
26949 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26951         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26952         consecutive accesses within outer-loop with force_vectorize
26953         for references with zero step in inner-loop.
26955 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26957         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26958         rather than from gcc/build directory.
26960 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26962         PR target/65697
26963         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26964         for __sync memory models, emit initial loads and final barriers as
26965         appropriate.
26967 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26969         PR target/65697
26970         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26971         (aarch64_split_atomic_op): Check for __sync memory models, emit
26972         appropriate initial loads and final barriers.
26974 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26976         * Makefile.in: Fix gcov dependencies that should
26977         not point to a build folder.
26979 2015-06-01  Richard Biener  <rguenther@suse.de>
26981         Revert
26982         2015-05-29  Richard Biener  <rguenther@suse.de>
26984         PR tree-optimization/66314
26985         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26986         parameter that says which loop the new block belongs to.
26987         (ssa_create_duplicates): Blocks duplicated for the threaded
26988         path belong to the loop of the thread destination.
26990 2015-06-01  Martin Liska  <mliska@suse.cz>
26992         * sched-deps.c: Include pool-alloc.h before
26993         cselib.h header file is included.
26995 2015-06-01  Richard Biener  <rguenther@suse.de>
26997         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26998         functions.
27000 2015-06-01  Martin Liska  <mliska@suse.cz>
27002         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27003         a function local variable.
27005 2015-06-01  Martin Liska  <mliska@suse.cz>
27007         * alloc-pool.c (create_alloc_pool): Remove.
27008         (empty_alloc_pool): Likewise.
27009         (free_alloc_pool): Likewise.
27010         (free_alloc_pool_if_empty): Likewise.
27011         (pool_alloc): Likewise.
27012         (pool_free): Likewise.
27013         * alloc-pool.h: Remove old declarations.
27015 2015-06-01  Martin Liska  <mliska@suse.cz>
27017         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27018         (ira_create_object): Likewise.
27019         (ira_create_allocno): Likewise.
27020         (ira_create_live_range): Likewise.
27021         (copy_live_range): Likewise.
27022         (ira_finish_live_range): Likewise.
27023         (ira_free_allocno_costs): Likewise.
27024         (finish_allocno): Likewise.
27025         (finish_allocnos): Likewise.
27026         (initiate_prefs): Likewise.
27027         (ira_create_pref): Likewise.
27028         (finish_pref): Likewise.
27029         (finish_prefs): Likewise.
27030         (initiate_copies): Likewise.
27031         (ira_create_copy): Likewise.
27032         (finish_copy): Likewise.
27033         (finish_copies): Likewise.
27034         (finish_prefs): Likewise.
27036 2015-06-01  Martin Liska  <mliska@suse.cz>
27038         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27039         (allocate_and_init_ipcp_value): Likewise.
27040         (ipcp_lattice::add_value): Likewise.
27041         (merge_agg_lats_step): Likewise.
27042         (ipcp_driver): Likewise.
27043         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27044         (ipa_free_all_structures_after_iinln): Likewise.
27045         * ipa-prop.h: Likewise.
27047 2015-06-01  Martin Liska  <mliska@suse.cz>
27049         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27050         pool allocator.
27051         (set_hint_predicate): Likewise.
27052         (inline_summary_alloc): Likewise.
27053         (reset_inline_edge_summary): Likewise.
27054         (reset_inline_summary): Likewise.
27055         (set_cond_stmt_execution_predicate): Likewise.
27056         (set_switch_stmt_execution_predicate): Likewise.
27057         (compute_bb_predicates): Likewise.
27058         (estimate_function_body_sizes): Likewise.
27059         (inline_free_summary): Likewise.
27061 2015-06-01  Martin Liska  <mliska@suse.cz>
27063         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27064         (ipa_edge_duplication_hook): Likewise.
27065         (ipa_free_all_structures_after_ipa_cp): Likewise.
27066         (ipa_free_all_structures_after_iinln): Likewise.
27068 2015-06-01  Martin Liska  <mliska@suse.cz>
27070         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27071         (ipa_profile_generate_summary): Likewise.
27072         (ipa_profile_read_summary): Likewise.
27073         (ipa_profile): Likewise.
27075 2015-06-01  Martin Liska  <mliska@suse.cz>
27077         * tree-ssa-structalias.c (new_var_info): Use new type-based
27078         pool allocator.
27079         (new_constraint): Likewise.
27080         (init_alias_vars): Likewise.
27081         (delete_points_to_sets): Likewise.
27083 2015-06-01  Martin Liska  <mliska@suse.cz>
27085         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27086         (free_strinfo): Likewise.
27087         (pass_strlen::execute): Likewise.
27089 2015-06-01  Martin Liska  <mliska@suse.cz>
27091         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27092         pool allocator.
27093         (vn_reference_insert_pieces): Likewise.
27094         (vn_phi_insert): Likewise.
27095         (visit_reference_op_call): Likewise.
27096         (copy_phi): Likewise.
27097         (copy_reference): Likewise.
27098         (process_scc): Likewise.
27099         (allocate_vn_table): Likewise.
27100         (free_vn_table): Likewise.
27102 2015-06-01  Martin Liska  <mliska@suse.cz>
27104         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27105         pool allocator.
27106         (add_repeat_to_ops_vec): Likewise.
27107         (get_ops): Likewise.
27108         (maybe_optimize_range_tests): Likewise.
27109         (init_reassoc): Likewise.
27110         (fini_reassoc): Likewise.
27112 2015-06-01  Martin Liska  <mliska@suse.cz>
27114         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27115         pool allocator.
27116         (bitmap_set_new): Likewise.
27117         (get_or_alloc_expr_for_constant): Likewise.
27118         (get_or_alloc_expr_for): Likewise.
27119         (phi_translate_1): Likewise.
27120         (compute_avail): Likewise.
27121         (init_pre): Likewise.
27122         (fini_pre): Likewise.
27124 2015-06-01  Martin Liska  <mliska@suse.cz>
27126         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27127         (delete_dep_node): Likewise.
27128         (create_deps_list): Likewise.
27129         (free_deps_list): Likewise.
27130         (sched_deps_init): Likewise.
27131         (sched_deps_finish): Likewise.
27133 2015-06-01  Martin Liska  <mliska@suse.cz>
27135         * regcprop.c (free_debug_insn_changes): Use new type-based
27136         pool allocator.
27137         (replace_oldest_value_reg): Likewise.
27138         (pass_cprop_hardreg::execute): Likewise.
27140 2015-06-01  Martin Liska  <mliska@suse.cz>
27142         * ira-build.c (initiate_cost_vectors): Use new type-based
27143         pool allocator.
27144         (ira_allocate_cost_vector): Likewise.
27145         (ira_free_cost_vector): Likewise.
27146         (finish_cost_vectors): Likewise.
27148 2015-06-01  Martin Liska  <mliska@suse.cz>
27150         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27151         pool allocator.
27152         (free_sched_pools): Likewise.
27153         * sel-sched-ir.h (_list_alloc): Likewise.
27154         (_list_remove): Likewise.
27156 2015-06-01  Martin Liska  <mliska@suse.cz>
27158         * stmt.c (add_case_node): Use new type-based pool allocator.
27159         (expand_case): Likewise.
27160         (expand_sjlj_dispatch_table): Likewise.
27162 2015-06-01  Martin Liska  <mliska@suse.cz>
27164         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27165         (free_bb): Likewise.
27166         (pass_cse_reciprocals::execute): Likewise.
27168 2015-06-01  Martin Liska  <mliska@suse.cz>
27170         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27171         (sra_deinitialize) Likewise.
27172         (create_access_1) Likewise.
27173         (build_accesses_from_assign) Likewise.
27174         (create_artificial_child_access) Likewise.
27176 2015-06-01  Martin Liska  <mliska@suse.cz>
27178         * dse.c (get_group_info):Use new type-based pool allocator.
27179         (dse_step0) Likewise.
27180         (free_store_info) Likewise.
27181         (delete_dead_store_insn) Likewise.
27182         (free_read_records) Likewise.
27183         (record_store) Likewise.
27184         (replace_read) Likewise.
27185         (check_mem_read_rtx) Likewise.
27186         (scan_insn) Likewise.
27187         (dse_step1) Likewise.
27188         (dse_step7) Likewise.
27190 2015-06-01  Martin Liska  <mliska@suse.cz>
27192         * df-scan.c (struct df_scan_problem_data):Use new type-based
27193         pool allocator.
27194         (df_scan_free_internal) Likewise.
27195         (df_scan_alloc) Likewise.
27196         (df_grow_reg_info) Likewise.
27197         (df_free_ref) Likewise.
27198         (df_insn_create_insn_record) Likewise.
27199         (df_mw_hardreg_chain_delete) Likewise.
27200         (df_insn_info_delete) Likewise.
27201         (df_free_collection_rec) Likewise.
27202         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27203         (df_sort_and_compress_mws) Likewise.
27204         (df_ref_create_structure) Likewise.
27205         (df_ref_record) Likewise.
27207 2015-06-01  Martin Liska  <mliska@suse.cz>
27209         * df-problems.c (df_chain_create):Use new type-based pool allocator.
27210         (df_chain_unlink_1) Likewise.
27211         (df_chain_unlink) Likewise.
27212         (df_chain_remove_problem) Likewise.
27213         (df_chain_alloc) Likewise.
27214         (df_chain_free) Likewise.
27215         * df.h (struct dataflow) Likewise.
27217 2015-06-01  Martin Liska  <mliska@suse.cz>
27219         * cselib.c (new_elt_list):Use new type-based pool allocator.
27220         (new_elt_loc_list) Likewise.
27221         (unchain_one_elt_list) Likewise.
27222         (unchain_one_elt_loc_list) Likewise.
27223         (unchain_one_value) Likewise.
27224         (new_cselib_val) Likewise.
27225         (cselib_init) Likewise.
27226         (cselib_finish) Likewise.
27228 2015-06-01  Martin Liska  <mliska@suse.cz>
27230         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27231         (sh_reorg) Likewise.
27233 2015-06-01  Martin Liska  <mliska@suse.cz>
27235         * cfg.c (initialize_original_copy_tables):Use new type-based
27236         pool allocator.
27237         (free_original_copy_tables) Likewise.
27238         (copy_original_table_clear) Likewise.
27239         (copy_original_table_set) Likewise.
27241 2015-06-01  Martin Liska  <mliska@suse.cz>
27243         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27244         pool allocator.
27245         (asan_mem_ref_new) Likewise.
27246         (free_mem_ref_resources) Likewise.
27248 2015-06-01  Martin Liska  <mliska@suse.cz>
27250         * var-tracking.c (variable_htab_free):Use new type-based
27251         pool allocator.
27252         (attrs_list_clear) Likewise.
27253         (attrs_list_insert) Likewise.
27254         (attrs_list_copy) Likewise.
27255         (shared_hash_unshare) Likewise.
27256         (shared_hash_destroy) Likewise.
27257         (unshare_variable) Likewise.
27258         (var_reg_delete_and_set) Likewise.
27259         (var_reg_delete) Likewise.
27260         (var_regno_delete) Likewise.
27261         (drop_overlapping_mem_locs) Likewise.
27262         (variable_union) Likewise.
27263         (insert_into_intersection) Likewise.
27264         (canonicalize_values_star) Likewise.
27265         (variable_merge_over_cur) Likewise.
27266         (dataflow_set_merge) Likewise.
27267         (remove_duplicate_values) Likewise.
27268         (variable_post_merge_new_vals) Likewise.
27269         (dataflow_set_preserve_mem_locs) Likewise.
27270         (dataflow_set_remove_mem_locs) Likewise.
27271         (variable_from_dropped) Likewise.
27272         (variable_was_changed) Likewise.
27273         (set_slot_part) Likewise.
27274         (clobber_slot_part) Likewise.
27275         (delete_slot_part) Likewise.
27276         (loc_exp_insert_dep) Likewise.
27277         (notify_dependents_of_changed_value) Likewise.
27278         (emit_notes_for_differences_1) Likewise.
27279         (vt_emit_notes) Likewise.
27280         (vt_initialize) Likewise.
27281         (vt_finalize) Likewise.
27283 2015-06-01  Martin Liska  <mliska@suse.cz>
27285         * ira-color.c (init_update_cost_records):Use new type-based
27286         pool allocator.
27287         (get_update_cost_record) Likewise.
27288         (free_update_cost_record_list) Likewise.
27289         (finish_update_cost_records) Likewise.
27290         (initiate_cost_update) Likewise.
27292 2015-06-01  Martin Liska  <mliska@suse.cz>
27294         * lra.c (init_insn_regs): Use new type-based pool allocator.
27295         (new_insn_reg) Likewise.
27296         (free_insn_reg) Likewise.
27297         (free_insn_regs) Likewise.
27298         (finish_insn_regs) Likewise.
27299         (init_insn_recog_data) Likewise.
27300         (init_reg_info) Likewise.
27301         (finish_reg_info) Likewise.
27302         (lra_free_copies) Likewise.
27303         (lra_create_copy) Likewise.
27304         (invalidate_insn_data_regno_info) Likewise.
27306 2015-06-01  Martin Liska  <mliska@suse.cz>
27308         * lra-lives.c (free_live_range): Use new type-based pool allocator.
27309         (free_live_range_list) Likewise.
27310         (create_live_range) Likewise.
27311         (copy_live_range) Likewise.
27312         (lra_merge_live_ranges) Likewise.
27313         (remove_some_program_points_and_update_live_ranges) Likewise.
27314         (lra_live_ranges_init) Likewise.
27315         (lra_live_ranges_finish) Likewise.
27317 2015-06-01  Martin Liska  <mliska@suse.cz>
27319         * et-forest.c (et_new_occ): Use new type-based pool allocator.
27320         (et_new_tree): Likewise.
27321         (et_free_tree): Likewise.
27322         (et_free_tree_force): Likewise.
27323         (et_free_pools): Likewise.
27324         (et_split): Likewise.
27326 2015-06-01  Martin Liska  <mliska@suse.cz>
27328         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27329         to header file.
27330         * alloc-pool.h (pool_allocator::pool_allocator): New function.
27331         (pool_allocator::release): Likewise.
27332         (inline pool_allocator::release_if_empty): Likewise.
27333         (inline pool_allocator::~pool_allocator): Likewise.
27334         (pool_allocator::allocate): Likewise.
27335         (pool_allocator::remove): Likewise.
27337 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27339         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27340         in comment.
27342 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27344         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27345         to fusible_ops.
27346         * config/arm/arm.c (arm_print_tune_info): Likewise.
27347         (arm_macro_fusion_p): Likewise.
27348         (arm_macro_fusion_pair_p): Likewise.
27350 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27352         * config/aarch64/aarch64-protos.h (tune_params): Rename
27353         fuseable_ops to fusible_ops.
27354         * config/aarch64/aarch64.c (generic_tunings): Rename
27355         fuseable_ops to fusible_ops.
27356         (cortexa53_tunings): Likewise.
27357         (cortexa57_tunings): Likewise.
27358         (thunderx_tunings): Likewise.
27359         (xgene1_tunings): Likewise.
27360         (aarch64_macro_fusion_p): Likewise.
27361         (aarch64_macro_fusion_pair_p): Likewise.
27363 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27365         * config/s390/driver-native.c: New file.
27366         * config/s390/x-native: New file.
27367         * config.host: Add new files for s390.
27368         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27369         and -march=native
27370         * config.gcc: Likewise.
27371         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27372         * config/s390/s390-opts.h (enum processor_type): Ditto.
27373         * config/s390/s390.c (s390_option_override): Catch unhandled
27374         PROCESSOR_NATIVE
27376 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
27378         PR target/65527
27379         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27380         redirection for instrumented calls.
27381         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27382         (append_compiler_options): Append -fcheck-pointer-bounds.
27383         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27384         (chkp_redirect_edge): New.
27385         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27386         (chkp_redirect_edge): New.
27388 2015-06-01  Richard Biener  <rguenther@suse.de>
27390         PR tree-optimization/66280
27391         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27392         def-use walking.
27394 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27396         * config/aarch64/aarch64.md
27397         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27398         logic_shift_imm.
27400 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27402         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27403         Remove obsolete kludge.
27405 2015-06-01  Richard Biener  <rguenther@suse.de>
27407         * tree-ssa-reassoc.c (get_rank): Simplify.
27409 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
27411         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27412         * configure: Regenerated.
27414 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
27416         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27417         issue (add space between string literal and macro).
27418         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27420 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
27422         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27423         implict or explicit -fPIE or -fpie.
27425 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
27427         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27429 2015-05-28  DJ Delorie  <dj@redhat.com>
27431         * expmed.c (extract_bit_field_1): Avoid clobbering a
27432         yet-to-be-used base/index register.
27434 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
27436         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27437         (alias_stats): Add num_universal.
27438         (alias_set_subset_of): Special case pointers; be ready for NULL
27439         children.
27440         (alias_sets_conflict_p): Special case pointers; be ready for NULL
27441         children.
27442         (init_alias_set_entry): Break out from ...
27443         (record_alias_subset): ... here; propagate new fields;
27444         allocate children only when really needed.
27445         (get_alias_set): Do less generous pointer globbing.
27446         (dump_alias_stats_in_alias_c): Update statistics.
27448 2015-05-30  Alan Modra  <amodra@gmail.com>
27450         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27451         correct block for use of r12.
27452         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27454 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27456         PR target/66215
27457         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27458         with -mhotpatch=.
27460 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
27462         PR tree-optimization/66142
27463         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27464         virtual phis that feed themselves.
27466 2015-05-29  Richard Biener  <rguenther@suse.de>
27468         PR tree-optimization/66314
27469         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27470         parameter that says which loop the new block belongs to.
27471         (ssa_create_duplicates): Blocks duplicated for the threaded
27472         path belong to the loop of the thread destination.
27474 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27476         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27477         to cleanup-saved-temps.
27478         * doc/sourcebuild.texi (Clean up generated test files): Expand
27479         introduction.
27480         (dg-keep-saved-temps): Document new proc.
27481         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27482         cleanup-saved-temps): Remove.
27484 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
27486         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27487         gcc_AC_CHECK_DECLS.
27488         * configure: Regenerate.
27490 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27492         * config/nios2/linux.h (CPP_SPEC): Define.
27494 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27496         * config/microblaze/linux.h (CPP_SPEC): Define.
27498 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
27500         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27501         -pthread is specified.
27503 2015-05-28  Richard Biener  <rguenther@suse.de>
27505         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27506         (vect_fixup_scalar_cycles_with_patterns): Likewise.
27507         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27508         after pattern recog.
27509         (vect_create_epilog_for_reduction): Properly handle reductions
27510         with patterns.
27511         (vectorizable_reduction): Likewise.
27512         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27513         reduction chains.
27514         (vect_get_constant_vectors): Create the correct number of
27515         initial values for reductions.
27516         (vect_schedule_slp_instance): Handle reduction chains that are
27517         type changing properly.
27518         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27520 2015-05-28  Richard Biener  <rguenther@suse.de>
27522         PR tree-optimization/66142
27523         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27524         values better in memcpy destination handling.  Handle non-aliasing
27525         we discover here.
27527 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
27529         PR target/63810
27530         * config/darwin-c.c (version_components): New global enum.
27531         (parse_version, version_as_legacy_macro)
27532         (version_as_modern_macro, macosx_version_as_macro): New functions.
27533         (version_as_macro): Remove.
27534         (darwin_cpp_builtins): Use new function.
27536 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
27538         * builtins.c (expand_builtin_acc_on_device): Mark parameters
27539         with ATTRIBUTE_UNUSED.
27541 2015-05-28  Julian Brown  <julian@codesourcery.com>
27543         PR libgomp/65742
27545         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27546         sequence for !ACCEL_COMPILER.
27548 2015-05-28  Nick Clifton  <nickc@redhat.com>
27550         * config/rx/rx.c (push_regs): New function.  Extracts code from...
27551         (rx_expand_prologue): ... here.  Use push_regs to push even small
27552         spans of registers.
27553         (pop_regs): New function.
27554         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
27555         registers.
27557 2015-05-28  Richard Biener  <rguenther@suse.de>
27559         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27560         member.
27561         (SLP_INSTANCE_BODY_COST_VEC): Remove.
27562         (vect_update_slp_costs_according_to_vf): Likewise.
27563         (vect_slp_analyze_operations): Update prototype.
27564         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27565         vect_update_slp_costs_according_to_vf, adjust.
27566         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27567         (vect_analyze_slp_cost_1): Likewise.
27568         (vect_analyze_slp_cost): Likewise.  Properly deal with
27569         widening reduction ops.  Commit body costs.
27570         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
27571         cost for loops from here.
27572         (vect_slp_analyze_operations): But do it from here when
27573         the vectorization factor is known and stmts are analyzed.
27574         (vect_bb_vectorization_profitable_p): Simplify.
27575         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27576         (vect_update_slp_costs_according_to_vf): Remove.
27578 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
27579             H.J. Lu  <hongjiu.lu@intel.com>
27581         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27582         (BUILD_CFLAGS): Likewise.
27583         (BUILD_CXXFLAGS): Likewise.
27584         (LINKER): Add @NO_PIE_FLAG@.
27585         (BUILD_LDFLAGS): Likewise.
27586         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27587         --enable-default-pie.
27588         * common.opt (fPIE): Initialize to -1.
27589         (fpie): Likewise.
27590         (no-pie): New option.
27591         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27592         * configure.ac: Add --enable-default-pie.
27593         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
27594         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
27595         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
27596         * gcc.c (NO_PIE_SPEC): New.
27597         (PIE_SPEC): Likewise.
27598         (NO_FPIE1_SPEC): Likewise.
27599         (FPIE1_SPEC): Likewise.
27600         (NO_FPIE2_SPEC): Likewise.
27601         (FPIE2_SPEC): Likewise.
27602         (NO_FPIE2_SPEC): Likewise.
27603         (FPIE_SPEC): Likewise.
27604         (NO_FPIE_SPEC): Likewise.
27605         (NO_FPIC1_SPEC): Likewise.
27606         (FPIC1_SPEC): Likewise.
27607         (NO_FPIC2_SPEC): Likewise.
27608         (FPIC2_SPEC): Likewise.
27609         (NO_FPIC2_SPEC): Likewise.
27610         (FPIC_SPEC): Likewise.
27611         (NO_FPIC_SPEC): Likewise.
27612         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27613         (FPIE1_OR_FPIC1_SPEC): Likewise.
27614         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27615         (FPIE2_OR_FPIC2_SPEC): Likewise.
27616         (NO_FPIE_AND_FPIC_SPEC): Likewise.
27617         (FPIE_OR_FPIC_SPEC): Likewise.
27618         (LD_PIE_SPEC): Likewise.
27619         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
27620         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27621         * config/darwin.h (PIE_SPEC): Renamed to ...
27622         (DARWIN_PIE_SPEC): This.
27623         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27624         * config/darwin9.h (PIE_SPEC): Renamed to ...
27625         (DARWIN_PIE_SPEC): This.
27626         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27627         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27628         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27629         FPIE2_OR_FPIC2_SPEC.
27630         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27631         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27632         * config/sol2.h (ASM_PIC_SPEC): Likewise.
27633         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27634         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27635         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27636         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27637         * config/m32r/m32r.h (ASM_SPEC): Likewise.
27638         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27639         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27640         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27641         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27642         * config/sparc/linux.h (ASM_SPEC): Likewise.
27643         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27644         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27645         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27646         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27647         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27648         * config/sparc/sparc.h (ASM_SPEC): Likewise.
27649         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27650         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27651         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27652         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27653         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27654         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27655         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27656         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27657         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27658         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27659         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27660         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27661         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27662         * config/vax/linux.h (ASM_SPEC): Likewise.
27663         * doc/install.texi: Document --enable-default-pie.
27664         * doc/invoke.texi: Document -no-pie.
27665         * config.in: Regenerated.
27666         * configure: Likewise.
27668 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27670         PR rtl-optimization/66168
27671         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27672         can_move_invariant_reg.
27674 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
27676         PR target/66148
27677         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27678         REG_EQUAL note when doing insert.
27680         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27681         instead of "%d" for 'o' operand.
27683 2015-05-27  Nathan Sidwell  <nathan@acm.org>
27685         PR c++/66270
27686         * tree.c (build_pointer_type_for_mode): Canonical type does not
27687         inherit can_alias_all.
27688         (build_reference_type_for_mode): Likewise.
27690 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27692         * expr.h (array_at_struct_end_p): Move to...
27693         (array_ref_element_size): Likewise.
27694         (component_ref_field_offset): Likewise.
27695         * tree.h (array_ref_element_size): ...here.
27696         (array_at_struct_end_p): Likewise.
27697         (component_ref_field_offset): Likewise.
27698         * expr.c (array_ref_element_size): Move to...
27699         (array_ref_low_bound): Likewise.
27700         (array_at_struct_end_p): Likewise.
27701         (array_ref_up_bound): Likewise.
27702         (component_ref_field_offset): Likewise.
27703         * tree.c (array_ref_element_size): ...here.
27704         (array_ref_low_bound): Likewise.
27705         (array_ref_up_bound): Likewise.
27706         (array_at_struct_end_p): Likewise.
27707         (component_ref_field_offset): Likewise.
27709 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27710             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27712         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27714 2015-05-27  Jason Merrill  <jason@redhat.com>
27716         PR bootstrap/66304
27717         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27718         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27719         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27721 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
27723         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27724         is true.
27726         * statistics.c (statistics_fini_pass): Print pass name.
27728 2015-05-27  Richard Biener  <rguenther@suse.de>
27730         PR tree-optimization/66272
27731         Revert parts of
27732         2014-08-15  Richard Biener  <rguenther@suse.de>
27734         PR tree-optimization/62031
27735         * tree-data-ref.c (dr_analyze_indices): Do not set
27736         DR_UNCONSTRAINED_BASE.
27737         (dr_may_alias_p): All indirect accesses have to go the
27738         formerly DR_UNCONSTRAINED_BASE path.
27739         * tree-data-ref.h (struct indices): Remove
27740         unconstrained_base member.
27741         (DR_UNCONSTRAINED_BASE): Remove.
27743 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
27745         * dwarf2out.c: Remove block_map.
27746         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27747         (gen_lexical_block_die): Same.
27748         (dwarf2out_function_decl): Remove block_map use.
27749         (dwarf2out_c_finalize): Same.
27750         * tree-core.h (struct tree_block): Add die field.
27751         * tree.h (BLOCK_DIE): New.
27753 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27755         PR target/65358
27756         * expr.c (memory_load_overlap): New function.
27757         (emit_push_insn): When pushing partial args to the stack would
27758         clobber the register part load the overlapping part into a pseudo
27759         and put it into the hard reg after pushing.  Change return type
27760         to bool.  Add bool argument.
27761         * expr.h (emit_push_insn): Change return type to bool.
27762         Add bool argument.
27763         * calls.c (expand_call): Cancel sibcall optimization when encountering
27764         partial argument on targets with ARGS_GROW_DOWNWARD and
27765         !STACK_GROWS_DOWNWARD.
27766         (emit_library_call_value_1): Update callsite of emit_push_insn.
27767         (store_one_arg): Likewise.
27769 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
27771         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27773 2015-05-27  Martin Liska  <mliska@suse.cz>
27775         * Makefile.in: Add additional dependencies related to memory report
27776         enhancement.
27777         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27778         * bitmap.c (struct bitmap_descriptor_d): Remove.
27779         (struct loc): Likewise.
27780         (struct bitmap_desc_hasher): Likewise.
27781         (bitmap_desc_hasher::hash): Likewise.
27782         (bitmap_desc_hasher::equal): Likewise.
27783         (get_bitmap_descriptor): Likewise.
27784         (bitmap_register): User new memory descriptor API.
27785         (register_overhead): Likewise.
27786         (bitmap_find_bit): Register nsearches and search_iter statistics.
27787         (struct bitmap_output_info): Remove.
27788         (print_statistics): Likewise.
27789         (dump_bitmap_statistics): Use new memory descriptor.
27790         * bitmap.h (struct bitmap_usage): New class.
27791         * genmatch.c: Extend header file inclusion.
27792         * genpreds.c: Likewise.
27793         * ggc-common.c (struct ggc_usage): New class.
27794         (struct ggc_loc_desc_hasher): Remove.
27795         (ggc_loc_desc_hasher::hash): Likewise.
27796         (ggc_loc_desc_hasher::equal): Likewise.
27797         (struct ggc_ptr_hash_entry): Likewise.
27798         (struct ptr_hash_hasher): Likewise.
27799         (ptr_hash_hasher::hash): Likewise.
27800         (ptr_hash_hasher::equal): Likewise.
27801         (make_loc_descriptor): Likewise.
27802         (ggc_prune_ptr): Likewise.
27803         (dump_ggc_loc_statistics): Use new memory descriptor.
27804         (ggc_record_overhead): Likewise.
27805         (ggc_free_overhead): Likewise.
27806         (final_cmp_statistic): Remove.
27807         (cmp_statistic): Likewise.
27808         (ggc_add_statistics): Liekwise.
27809         (ggc_prune_overhead_list): Likewise.
27810         * hash-map-traits.h: New file.
27811         * hash-map.h (struct default_hashmap_traits): Move the traits to a
27812         separate header file.
27813         * hash-set.h: Pass memory statistics info to ctor.
27814         * hash-table.c (void dump_hash_table_loc_statistics): New function.
27815         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27816         (hash_table::~hash_table): Register memory release operation.
27817         (hash_table::alloc_entries): Handle memory allocation operation.
27818         (hash_table::expand): Likewise.
27819         * inchash.c (iterative_hash_hashval_t): Move implementation to header
27820         file.
27821         (iterative_hash_host_wide_int): Likewise.
27822         * inchash.h (class hash): Likewise.
27823         * mem-stats-traits.h: New file.
27824         * mem-stats.h: New file.
27825         (mem_location): Add new class.
27826         (mem_usage): Likewise.
27827         (mem_alloc_description): Likewise.
27828         * sese.c: Add new header file inclusision.
27829         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27830         and hash_set.
27831         * tree-sra.c: Add new header file inclusision.
27832         * vec.c (struct vec_descriptor): Remove.
27833         (hash_descriptor): Likewise.
27834         (struct vec_usage): Likewise.
27835         (struct ptr_hash_entry): Likewise.
27836         (hash_ptr): Likewise.
27837         (eq_ptr): Likewise.
27838         (vec_prefix::register_overhead): Use new memory descriptor API.
27839         (vec_prefix::release_overhead): Likewise.
27840         (add_statistics): Remove.
27841         (dump_vec_loc_statistics): Use new memory descriptor API.
27842         * vec.h (struct vec_prefix): Likewise.
27843         (va_heap::reserve): Likewise.
27844         (va_heap::release): Likewise.
27845         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27847 2015-05-27  Richard Biener  <rguenther@suse.de>
27849         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27850         earlier and remove ??? comment.
27851         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27852         and got called from loop analysis bail out.  Always pass the SLP
27853         node to the vectorizable_* functions.
27854         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27855         the premature SLP check here.
27856         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27857         detected SLP stmts.
27858         (vect_detect_hybrid_slp_1): Likewise.
27860 2015-05-26  Jeff Law  <law@redhat.com>
27862         * combine.c (find_split_point): Verify that the shift count is a
27863         constant when choosing (plus (ashift ...)) as a split point.
27865         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27866         No functional changes.
27868 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
27870         * ipa-polymorphic-call.c
27871         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27872         case when call target is already known.
27874 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
27876         PR target/65979
27877         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27878         take into account the case that operands[1] and operands[2]
27879         are the same register.
27881 2015-05-26  Michael Matz  <matz@suse.de>
27883         PR middle-end/66251
27885         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27886         stores.
27887         (vect_create_vectorized_demotion_stmts): Always set
27888         STMT_VINFO_VEC_STMT, also with SLP.
27889         (vectorizable_store): Handle strided group stores.
27891 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27893         PR target/66049
27894         * config/aarch64/aarch64.md
27895         (*adds_shift_imm_<mode>):  New pattern.
27896         (*subs_shift_imm_<mode>):  Likewise.
27897         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
27898         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27899         (*add_uxt<mode>_shift2): Likewise.
27900         (*add_uxtsi_shift2_uxtw): Likewise.
27901         (*sub_uxt<mode>_shift2): Likewise.
27902         (*sub_uxtsi_shift2_uxtw): Likewise.
27904 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
27906         * config/rs6000/constraints.md (Y, U): Use match_test.
27908 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27910         PR target/52144
27911         * config/arm/arm.c (arm_option_check_internal)
27912         (arm_option_params_internal): Check opts->target_flags to set macros.
27913         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27914         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27915         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27916         (builtin_define): Replaced with def_or_undef_macro.
27917         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27918         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27919         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27920         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27921         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27922         (TARGET_ARM_FEATURE_LDREX_P)
27923         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27924         * config/arm/arm-c.c (def_or_undef_macro): New function.
27925         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27927 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27929         * c-common.h (builtin_define_with_int_value)
27930         (builtin_define_type_sizeof): Declare.
27931         * c-cppbuiltin.c (builtin_define_with_int_value)
27932         (builtin_define_type_sizeof): Externalize.
27933         (builtin_define_std): Cleanup declaration.
27934         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27935         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27936         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27937         (builtin_define, builtin_assert): New macros.
27939 2015-05-26  Richard Biener  <rguenther@suse.de>
27941         PR tree-optimization/66142
27942         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27943         MEM_REFs for the same base address.
27945 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27947         PR ipa/66181
27948         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27950 2015-05-26  Jason Merrill  <jason@redhat.com>
27952         * configure.ac: Set CXXFLAGS for ISL test.
27953         * configure: Regenerate.
27955         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
27956         strstr and basename.
27957         * configure: Regenerate.
27959 2015-05-26  Richard Biener  <rguenther@suse.de>
27961         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27962         X % C -> X & (C - 1) for C being a power-of two to ...
27963         * match.pd: ... patterns.
27965 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
27967         * match.pd (swapped_tcc_comparison): New operator list.
27968         (-A CMP -B): New simplification.
27969         * fold-const.c (fold_comparison): Remove corresponding code.
27971 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27973         * caller-save.c (init_caller_save): Base temporary register numbers
27974         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27975         * cfgloopanal.c (init_set_costs): Likewise.
27976         * dojump.c (prefer_and_bit_test): Likewise.
27977         * expr.c (init_expr_target): Likewise.
27978         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27979         * lower-subreg.c (init_lower_subreg): Likewise.
27980         * postreload.c (reload_cse_regs_1): Likewise.
27982 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27984         * gensupport.h (compute_test_codes): Declare.
27985         * gensupport.c (compute_predicate_codes): Rename to...
27986         (compute_test_codes): ...this.  Generalize error message.
27987         (process_define_predicate): Update accordingly.
27988         * genpreds.c (compute_maybe_allows): Delete.
27989         (add_constraint): Use compute_test_codes to determine whether
27990         something can accept a SUBREG, REG or MEM.
27992 2015-05-26  Torvald Riegel  <triegel@redhat.com>
27994         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27995         'memory model' to align with C++11; fix description of memory orders;
27996         fix a few typos.
27998 2015-05-26  Richard Biener  <rguenther@suse.de>
28000         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28001         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
28002         detect whether we apply SLP.  Remove call to
28003         vect_update_slp_costs_according_to_vf.
28004         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28005         vect_update_slp_costs_according_to_vf from here.  Dispatch
28006         to vect_slp_analyze_operations to analyze SLP stmts.
28007         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28008         unused bb_vec_info parameter, adjust assert.
28009         (vect_slp_analyze_operations): Pass in the slp instance tree
28010         instead of bb_vec_info.
28011         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28012         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28014 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28016         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28017         Q_REGS.  Expand comment.
28018         (REG_CLASS_NAMES): Ditto.
28019         (REG_CLASS_CONTENTS): Ditto.
28021 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
28023         PR target/66274
28024         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28025         when LEGACY_INT_REGNO_P is processed.
28027 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28029         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28031 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28033         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28034         register if not marked dead/unused, before return.
28036 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28038         PR lto/66180
28039         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28040         is set; check for assembler name at LTO time.
28041         (type_in_anonymous_namespace): Remove hacks, check that all
28042         anonymous types are called "<anon>"
28043         (odr_type_p): Simplify; add check for "<anon>"
28044         (odr_subtypes_equivalent): Add odr_type_p check.
28045         * tree.c (need_assembler_name_p): Even anonymous namespace needs
28046         assembler name.
28048 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28050         * ipa-utils.h (method_class_type): Remove.
28051         * cgraphunit.c (walk_polymorphic_call_targets): Use
28052         TYPE_METHOD_BASETYPE.
28053         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28054         on main variants only.
28055         (method_class_type): Remove.
28056         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28057         (build_type_inheritance_graph): Likewise.
28058         * ipa-icf.c (sem_function::equals_wpa): Likewise.
28059         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28060         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28062 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28064         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28065         is_typedef_decl, typedef_variant_p): Constify.
28066         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28067         is_typedef_decl, typedef_variant_p): Constify.
28069 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28071         * defaults.h (gen_tablejump): New function.
28072         (HAVE_tablejump): Add default value.
28073         * expr.c: Adjust.
28074         * stmt.c: Likewise.
28076 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28078         * defaults.h (gen_store_multiple): New function.
28079         (HAVE_store_multiple): Add default value.
28080         * expr.c (move_block_from_reg): Adjust.
28082 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28084         * defaults.h (gen_load_multiple): New function.
28085         (HAVE_load_multiple): Add default value.
28086         * expr.c (move_block_to_reg): Adjust.
28088 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28090         * defaults.h (gen_mem_signal_fence): New function.
28091         (HAVE_mem_signal_fence): Add default value.
28092         * optabs.c: Adjust.
28094 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28096         * defaults.h (gen_memory_barrier): New function.
28097         (HAVE_memory_barrier): Add default value.
28098         * optabs.c: Adjust.
28100 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28102         * defaults.h (gen_mem_thread_fence): New function.
28103         (HAVE_mem_thread_fence): Add default definition.
28104         * optabs.c: Adjust.
28106 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28108         * combine.c (find_split_point): Check the value of HAVE_lo_sum
28109         instead of if it is defined.
28110         (combine_simplify_rtx): Likewise.
28111         * lra-constraints.c (process_address_1): Likewise.
28112         * config/darwin.c: Adjust.
28113         * genconfig.c (main): Always define HAVE_lo_sum.
28115 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28117         * genmatch.c (parser::parse_operation): Reject expanding
28118         operator-list inside 'for'.
28120 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28122         * genmatch.c (parser::parse_for): Reject iterator if used as
28123         operator-list.
28125 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28127         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28128         after end of id-list.
28130 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28132         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28133         we do not try to compute canonical type for type that does not need
28134         alias set.
28135         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28136         FUNCITON_TYPE.
28137         * tree.h (type_with_alias_set_p): New.
28139 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28141         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
28142         function attributes.
28143         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28145 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
28147         * Makefile.in (check_gcc_parallelize): Delete.
28148         (lang_checks_parallelized): Update comment.
28150 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
28152         PR rtl-optimization/66237
28153         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28154         location of an "as_a" cast.
28156 2015-05-22  Jeff Law  <law@redhat.com>
28158         * config/pa/pa.md (non-canonical shift-add insns): Remove.
28159         (peepholes with non-canonical RTL sources): Remove.
28160         (peepholes for indexed stores of FP regs in integer modes): Match and
28161         generate canonical RTL.
28163 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28165         PR tree-optimization/63387
28166         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28167         ((x ord x) & (y ord y) -> (x ord y),
28168         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28169         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28170         vectors like scalars.
28172 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28174         * convert.c (convert_to_integer, convert_to_vector): Include the
28175         types in the error message.
28177 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28179         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28180         simplifications.
28182 2015-05-22  Jeff Law  <law@redhat.com>
28184         * config/pa/pa.md (integer_indexed_store splitters): Use
28185         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
28186         insns -- adjusting the constant 2nd operand accordingly.
28188         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28189         (plus (ashift X log2) Y) if it is a split point.
28191         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28192         out of hppa_legitimize_address to handle both forms of a multiply
28193         by 2, 4 or 8.
28194         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28195         Always generate the ASHIFT variant as the result is not directly
28196         used in a MEM.  Update comments and refactor slightly to improve
28197         readability.
28199 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28201         PR target/65491
28202         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28203         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
28204         (aarch64_composite_type_p): Return false if given type and mode are
28205         for a short vector.
28207 2015-05-22  Richard Biener  <rguenther@suse.de>
28209         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28210         member.
28211         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28212         patterns when determining whether SLP is pure.
28213         (vect_is_slp_reduction): Remove check for pattern stmts.
28214         (vect_is_simple_reduction_1): Remove dead code.
28215         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28216         (vect_get_and_check_slp_defs): Pass in the stmt number.
28217         Allow the first def in a reduction to be not a pattern stmt when
28218         the rest of the stmts def are patterns.
28219         (vect_build_slp_tree_1): Allow tcc_expression codes like
28220         SAD_EXPR and DOT_PROD_EXPR.
28221         (vect_build_slp_tree): Adjust.
28222         (vect_analyze_slp): Refactor and move BB vect error message ...
28223         (vect_slp_analyze_bb_1): ... here.
28225 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
28227         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28228         for CSWTCH temporary.
28230 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28232         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28233         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
28234         unknown unspecs.
28236 2015-05-22  Richard Biener  <rguenther@suse.de>
28238         PR tree-optimization/66251
28239         * tree-vect-stmts.c (vectorizable_conversion): Properly
28240         set STMT_VINFO_VEC_STMT even for the SLP case.
28242 2015-05-22  Marek Polacek  <polacek@redhat.com>
28244         * doc/extend.texi: Use @pxref instead of @xref.
28246 2015-05-22  hiraditya  <hiraditya@msn.com>
28248         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28249         redundant if.
28251 2015-05-22  Richard Biener  <rguenther@suse.de>
28253         PR tree-optimization/65701
28254         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28255         Move peeling cost models into one place.  Peel for alignment
28256         for single loads only if an aligned load is cheaper than
28257         an unaligned load.
28259 2015-05-22  Marek Polacek  <polacek@redhat.com>
28261         PR c/47043
28262         * doc/extend.texi (Enumerator Attributes): New section.
28263         Document syntax of enumerator attributes.
28265 2015-05-22  Richard Biener  <rguenther@suse.de>
28267         * tree-vect-loop.c (get_reduction_op): New function.
28268         (vect_model_reduction_cost): Use it, add reduc_index parameter.
28269         Make ready for BB reductions.
28270         (vect_create_epilog_for_reduction): Use get_reduction_op.
28271         (vectorizable_reduction): Init reduc_index to a valid value.
28272         Adjust vect_model_reduction_cost call.
28273         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28274         operand for reduction defaults.  Add SAD_EXPR support.
28275         Assert we have a neutral op for SLP reductions.
28276         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28277         walking pattern stmt ops only recurse to SSA names.
28279 2015-05-22  Richard Biener  <rguenther@suse.de>
28281         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28282         assert with guard, remove check on detected reduction.
28283         (vect_recog_sad_pattern): Likewise.
28284         (vect_recog_widen_sum_pattern): Likewise.
28286 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28288         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28289         __always_inline__ attribute.
28290         (vaesdq_u8): Likewise.
28291         (vaesmcq_u8): Likewise.
28292         (vaesimcq_u8): Likewise.
28293         (vsha1cq_u32): Likewise.
28294         (vsha1mq_u32): Likewise.
28295         (vsha1pq_u32): Likewise.
28296         (vsha1h_u32): Likewise.
28297         (vsha1su0q_u32): Likewise.
28298         (vsha1su1q_u32): Likewise.
28299         (vsha256hq_u32): Likewise.
28300         (vsha256h2q_u32): Likewise.
28301         (vsha256su0q_u32): Likewise.
28302         (vsha256su1q_u32): Likewise.
28303         (vmull_p64): Likewise.
28304         (vmull_high_p64): Likewise.
28306 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28308         * final.c (final_scan_insn): Don't check HAVE_peephole with the
28309         preprocessor.
28310         * output.h: Likewise.
28311         * genconfig.c (main): Alwways define HAVE_peephole.
28312         * genpeep.c: Don't emit checks of HAVE_peephole.
28314 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28316         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28317         check HAVE_conditional_move with the preprocessor.
28319 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28321         * genconfig.c (main): Always define HAVE_conditional_move.
28322         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28323         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28324         is defined.
28326 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28328         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28329         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28330         and FRAME_POINTER_REGNUM with the preprocessor.
28332 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28334         * defaults.h: Add default for STACK_PUSH_CODE.
28335         * expr.c: Don't redefine STACK_PUSH_CODE.
28336         * recog.c: Likewise.
28338 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28340         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28341         sched-deps.c: Use if instead of preprocessor checks with
28342         STACK_GROWS_DOWNWARD.
28344 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28346         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28347         is defined.
28348         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28349         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28350         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28351         * doc/tm.texi: Regenerate.
28353 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
28355         PR target/66232
28356         * config/i386/constraints.md (Bg): New constraint for GOT memory
28357         operand.
28358         * config/i386/i386.md (*call_got_x32): New pattern.
28359         (*call_value_got_x32): Likewise.
28360         * config/i386/predicates.md (GOT_memory_operand): New predicate.
28362 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
28364         PR tree-optimization/66233
28365         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28366         Simplify.
28368 2015-05-21  Jeff Law  <law@redhat.com>
28370         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28371         than MULT for shadd sequences.
28373 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
28375         * alias.c (alias_stats): New static var.
28376         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28377         (dump_alias_stats_in_alias_c): New function.
28378         * alias.h (dump_alias_stats_in_alias_c): Declare.
28379         * tree-ssa-alias.c (dump_alias_stats): Call it.
28381 2015-05-08  Michael Matz  <matz@suse.de>
28383         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28384         to strided_p.
28385         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28386         (STMT_VINFO_STRIDED_P): ... this.
28387         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28388         (vect_verify_datarefs_alignment): Likewise.
28389         (vect_enhance_data_refs_alignment): Likewise.
28390         (vect_analyze_data_ref_access): Likewise.
28391         (vect_analyze_data_refs): Accept strided stores.
28392         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28393         (vect_model_load_cost): Adjust for macro rename.
28394         (vectorizable_mask_load_store): Likewise.
28395         (vectorizable_load): Likewise.
28396         (vectorizable_store): Open code strided stores.
28398 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28400         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28401         Document sqrt_insn.
28403 2015-05-21  Richard Biener  <rguenther@suse.de>
28405         PR c++/66211
28406         * match.pd: Guard pattern optimzing (int)(float)int
28407         conversions to apply only on GIMPLE.
28409 2015-05-21  Jeff Law  <law@redhat.com>
28411         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28412         multiply-accumulate/shift-add insn generation.
28414 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
28416         PR target/54236
28417         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28418         operands[1] are the same.
28420 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
28422         PR middle-end/66221
28423         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28424         build_distinct_type_copy to copy bounds.
28426 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
28428         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28429         Change to unsigned int.
28431 2015-05-20  Jeff Law  <law@redhat.com>
28433         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28434         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28435         (pa_shadd_constant_p): Allow constants for shadd insns rather
28436         than valid scaling constants for memory addresses.
28437         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28438         * config/pa/predicates.md (mem_shadd_operand): New predicate.
28439         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28440         (shift-add insns using ASHIFT): New patterns.
28442 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
28444         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28445         feasible.
28446         (fix_up_fall_thru_edges): Likewise.
28447         (fix_crossing_conditional_branches): Likewise. Promote jump targets
28448         from to rtx_insn to rtx_code_label where feasible.
28449         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28450         gen_move_insn (returned type changed to rtx_insn).
28451         * builtins.c (expand_errno_check): Fix arguments of
28452         do_compare_rtx_and_jump (now expects rtx_code_label).
28453         (expand_builtin_acc_on_device): Likewise.
28454         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28455         invert_jump (now exprects rtx_jump_insn).
28456         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28457         (construct_init_block): Use rtx_code_label.
28458         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28459         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28460         calling redirect_jump.
28461         (patch_jump_insn): Likewise.
28462         (redirect_branch_edge): Likewise.
28463         (force_nonfallthru_and_redirect): Likewise.
28464         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28465         when suitable.
28466         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28467         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28468         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28469         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28470         to store the value retured by gen_label_rtx.
28471         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28472         rtx_jump_insn.
28473         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28474         (split_branches): Fix calls of redirect_jump.
28475         * dojump.c (jumpifnot): Promote argument type from rtx to
28476         rtx_code_label.
28477         (jumpifnot_1): Likewise.
28478         (jumpif): Likewise.
28479         (jumpif_1): Likewise.
28480         (do_jump_1): Likewise.
28481         (do_jump): Likewise. Use rtx_code_label when feasible.
28482         (do_jump_by_parts_greater_rtx): Likewise.
28483         (do_jump_by_parts_zero_rtx): Likewise.
28484         (do_jump_by_parts_equality_rtx): Likewise.
28485         (do_compare_rtx_and_jump): Likewise.
28486         * dojump.h: Update function prototypes.
28487         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28488         returns rtx_insn).
28489         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28490         rtx_jump_insn.
28491         (emit_label_before): Likewise.
28492         (emit_jump_insn_after_noloc): Likewise.
28493         (emit_jump_insn_after_setloc): Likewise.
28494         (emit_jump_insn_after): Likewise
28495         (emit_jump_insn_before_setloc): Likewise.
28496         (emit_jump_insn_before): Likewise.
28497         (emit_label_before): Promote return type to rtx_code_label.
28498         (emit_label): Likewise.
28499         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28500         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28501         gen_move_insn.
28502         (emit_stack_restore): Likewise.
28503         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28504         (do_cmp_and_jump): Likewise.
28505         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28506         from rtx to rtx_code_label.
28507         (gen_move_insn_uncast): New function.
28508         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28509         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28510         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28511         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28512         invert_jump_1 and redirect_jump_1.
28513         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28514         do_compare_rtx_and_jump.
28515         (expand_addsub_overflow): Likewise.
28516         (expand_neg_overflow): Likewise.
28517         (expand_mul_overflow): Likewise.
28518         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28519         return value of gen_move_insn.
28520         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28521         * loop-doloop.c (add_test): Use rtx_code_label.
28522         (doloop_modify): Likewise.
28523         (doloop_optimize): Likewise.
28524         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28525         * lra-constraints.c (emit_spill_move): Remove cast of value returned
28526         by gen_move_insn.
28527         (inherit_reload_reg): Add cast when calling dump_insn_slim.
28528         (split_reg): Likewise.
28529         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28530         gen_move_insn.
28531         * optabs.c (expand_binop_directly): Remove casts of values returned by
28532         maybe_gen_insn.
28533         (expand_unop_direct): Likewise.
28534         (expand_abs): Likewise.
28535         (maybe_emit_unop_insn): Likewise.
28536         (maybe_gen_insn): Promote return type to rtx_insn.
28537         * optabs.h: Update prototype of maybe_gen_insn.
28538         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28539         redundant cast.
28540         * recog.c (struct peep2_insn_data): Promote type of insn field to
28541         rtx_insn.
28542         (peep2_reinit_state): Use NULL instead of NULL_RTX.
28543         (peep2_attempt): Remove casts of insn in peep2_insn_data.
28544         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28545         * recog.h (struct insn_gen_fn): Promote return types of function
28546         pointers and operator ().from rtx to rtx_insn.
28547         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28548         (fill_eager_delay_slots): Likewise.
28549         (relax_delay_slots): Likewise.
28550         (make_return_insns): Likewise.
28551         (dbr_schedule): Likewise.
28552         (optimize_skips): Likewise.
28553         (reorg_redirect_jump): Likewise.
28554         (fill_slots_from_thread): Likewise.
28555         * reorg.h: Update prototypes.
28556         * resource.c (find_dead_or_set_registers): Use dyn_cast to
28557         rtx_jump_insn instead of check.  Use it's jump_target method.
28558         * rtl.h (rtx_jump_insn::jump_label): Define new method.
28559         (rtx_jump_insn::jump_target): Define new method.
28560         (rtx_jump_insn::set_jump_target): Define new method.
28561         * rtlanal.c (tablejump_p): Promote type of one local variable.
28562         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28563         (sched_analyze_insn): Likewise.
28564         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28565         (print_insn): Likewise.
28566         * stmt.c (label_rtx): Promote return type to rtx_insn.
28567         (force_label_rtx): Likewise.
28568         (jump_target_rtx): Define new function.
28569         (expand_label): Use it, get rid of one cast.
28570         (expand_naked_return): Promote rtx to rtx_code_label.
28571         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28572         (expand_case): Use rtx_code_label instread of rtx where feasible.
28573         (expand_sjlj_dispatch_table): Likewise.
28574         (emit_case_nodes): Likewise.
28575         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
28576         * store-motion.c (insert_store): Make use of new return type of
28577         gen_move_insn and remove a cast.
28578         (replace_store_insn): Likewise.
28580 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
28582         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28583         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28585 2015-05-20  Jeff Law  <law@redhat.com>
28587         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28588         dispose of the jump thread path when the jump threading
28589         opportunity is cancelled.
28591 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28593         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28594         when printing the caret character.
28596 2015-05-20  Marek Polacek  <polacek@redhat.com>
28598         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28600 2015-05-20  Marek Polacek  <polacek@redhat.com>
28602         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28603         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28604         * gimple-fold.c (canonicalize_bool): Likewise.
28605         (same_bool_result_p): Likewise.
28606         * tree-if-conv.c (parse_predicate): Likewise.
28608 2015-05-20  Marek Polacek  <polacek@redhat.com>
28610         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28611         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28613 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28615         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28616         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28617         values.
28619 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
28621         * config/mips/mips.h (micromips_globals): Declare.
28623 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
28625         * timevar.def (TV_INITIALIZE_RTL): New.
28626         * toplev.c (initialize_rtl): Use an auto_timevar to account this
28627         function's time to TV_INITIALIZE_RTL.
28629 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
28631         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28632         gimple_build_nop calls.
28633         (chkp_find_bounds_for_elem): Likewise.
28634         (chkp_get_zero_bounds): Likewise.
28635         (chkp_get_none_bounds): Likewise.
28636         (chkp_get_bounds_by_definition): Likewise.
28637         (chkp_generate_extern_var_bounds): Likewise.
28638         (chkp_get_bounds_for_decl_addr): Likewise.
28639         (chkp_get_bounds_for_string_cst): Likewise.
28641 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
28643         PR tree-optimization/65447
28644         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28645         (dump_use, dump_uses): Support to dump sub use.
28646         (record_use): New parameters to support sub use.  Remove call to
28647         dump_use.
28648         (record_sub_use, record_group_use): New functions.
28649         (compute_max_addr_offset, split_all_small_groups): New functions.
28650         (group_address_uses, rewrite_use_address): New functions.
28651         (strip_offset): New declaration.
28652         (find_interesting_uses_address): Call record_group_use.
28653         (add_candidate): New assertion.
28654         (infinite_cost_p): Move definition forward.
28655         (add_costs): Check INFTY cost and return immediately.
28656         (get_computation_cost_at): Clear setup cost and dependent bitmap
28657         for sub uses.
28658         (determine_use_iv_cost_address): Compute cost for sub uses.
28659         (rewrite_use_address_1): Rename from old rewrite_use_address.
28660         (free_loop_data): Free sub uses.
28661         (tree_ssa_iv_optimize_loop): Call group_address_uses.
28663 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28664             Jim Wilson  <jim.wilson@linaro.org>
28666         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28667         new  fields loadv and storev.
28668         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28669         Initialize loadv and storev.
28670         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28671         (cortexa53_extra_costs): Likewise.
28672         (cortexa57_extra_costs): Likewise.
28673         (xgene1_extra_costs): Likewise.
28674         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28675         rtx_costs.
28677 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
28679         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28680          storev.
28681         (cortexa8_extra_costs): Likewise.
28682         (cortexa5_extra_costs): Likewise.
28683         (cortexa7_extra_costs): Likewise.
28684         (cortexa12_extra_costs): Likewise.
28685         (cortexa15_extra_costs): Likewise.
28686         (v7m_extra_costs): Likewise.
28688 2015-05-20  Jeff Law  <law@redhat.com>
28690         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28691         instead of open-coded version.  Also delete the jump thread created
28692         within this function.
28694 2015-05-20  Alan Modra  <amodra@gmail.com>
28696         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28697         stack adjusting insn.  Formatting.
28698         (rs6000_emit_prologue): Track stack adjusting insn, and use of
28699         r12.  If possible, emit first -fsplit-stack arg pointer insn
28700         before stack adjust.  Don't use r12 to save cr if split-stack.
28702 2015-05-20  Alan Modra  <amodra@gmail.com>
28704         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28705         Define.
28706         (rs6000_supports_split_stack): New function.
28707         * config/rs6000/rs6000.c (machine_function): Add
28708         split_stack_arg_pointer.
28709         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28710         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28711         rather than virtual_incoming_args_rtx.
28712         (rs6000_va_start): Likewise.
28713         (split_stack_arg_pointer_used_p): New function.
28714         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28715         (morestack_ref): New var.
28716         (gen_add3_const, rs6000_expand_split_stack_prologue,
28717         rs6000_internal_arg_pointer, rs6000_live_on_entry,
28718         rs6000_split_stack_space_check): New functions.
28719         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28720         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28721         (UNSPECV_SPLIT_STACK_RETURN): Define.
28722         (split_stack_prologue, load_split_stack_limit,
28723         load_split_stack_limit_di, load_split_stack_limit_si,
28724         split_stack_return, split_stack_space_check): New expands and insns.
28725         * config/rs6000/rs6000-protos.h
28726         (rs6000_expand_split_stack_prologue): Declare.
28727         (rs6000_split_stack_space_check): Declare.
28729 2015-05-20  Alan Modra  <amodra@gmail.com>
28731         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28732         (direct_return): Test vrsave_size rather than vrsave_mask.
28733         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
28734         (rs6000_emit_epilogue): Likewise.
28736 2015-05-20  Alan Modra  <amodra@gmail.com>
28738         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28739         when not saving registers.
28740         (debug_stack_info): Adjust to omit printing unused offsets,
28741         as before.
28742         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28743         expression.
28745 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28747         PR c++/65835
28748         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28749         value_type to const char *.
28751 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
28753         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28754         to build a biarch toolchain again.
28756 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28758         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28759         or implicit declarations.
28760         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28761         into it.
28762         (get_odr_type): Check type has linkage before adding bases.
28763         (register_odr_type): Check that type has linkage before adding it.
28764         (type_known_to_have_no_deriavations_p): Rename to ..
28765         (type_known_to_have_no_derivations_p): This one.
28766         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28767         (type_known_to_have_no_derivations_p): This one.
28768         * ipa-polymorphic-call.c
28769         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28770         type has linkage.
28772 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28774         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28775         (layout_type): Use RECORD_OR_UNION_TYPE_P.
28777 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28779         * config/s390/s390.c (s390_vector_bool_type_p): New function.
28780         (s390_invalid_binary_op): New function.
28781         (TARGET_INVALID_BINARY_OP): Define macro.
28783 2015-05-19  David Sherwood  <david.sherwood@arm.com>
28785         * loop-invariant.c (create_new_invariant): Don't calculate address cost
28786         if mode is not a scalar integer.
28787         (get_inv_cost): Increase computational cost for unused invariants.
28789 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28791         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
28792         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
28793         * config/s390/s390-builtin-types.def: New file.
28794         * config/s390/s390-builtins.def: New file.
28795         * config/s390/s390-builtins.h: New file.
28796         * config/s390/s390-c.c: New file.
28797         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28798         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28799         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28800         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28801         prototypes.
28802         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28803         Include.
28804         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28805         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28806         variable definitions.
28807         (s390_const_operand_ok): New function.
28808         (s390_expand_builtin): Rewrite.
28809         (s390_init_builtins): New function.
28810         (s390_handle_vectorbool_attribute): New function.
28811         (s390_attribute_table): Add s390_vector_bool attribute.
28812         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28813         (s390_branch_condition_mask): Generate masks for new modes.
28814         (s390_expand_vec_compare_cc): New function.
28815         (s390_mangle_type): Add mangling for vector bool types.
28816         (enum s390_builtin): Remove.
28817         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28818         efpc builtins.
28819         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28820         s390_cpu_cpp_builtins.
28821         (REGISTER_TARGET_PRAGMAS): New macro.
28822         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28823         (insn_cmp mode attribute): Add new CC modes.
28824         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28825         (lcbb): New pattern definition.
28826         * config/s390/s390intrin.h: Include vecintrin.h.
28827         * config/s390/t-s390: New file.
28828         * config/s390/vecintrin.h: New file.
28829         * config/s390/vector.md: Include vx-builtins.md.
28830         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28831         support.
28833 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28835         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28836         CCVFHE.
28837         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28838         (s390_select_ccmode): Likewise.
28839         (s390_canonicalize_comparison): Swap operands if necessary.
28840         (s390_expand_vec_compare_scalar): Expand DFmode compare using
28841         single element vector instructions.
28842         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28843         (s390_branch_condition_mask): Generate CC masks for the new modes.
28844         * config/s390/s390.md (v0, vf, vd): New mode attributes.
28845         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28846         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28847         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28848         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28849         (*extend<DSF:mode><BFP:mode>2): New insn definition.
28850         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28851         (extend<DSF:mode><BFP:mode>2): Turn into expander.
28852         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28853         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28854         (sqrt<mode>2): Add vector instruction.
28856 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28858         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28859         constraints.
28860         * config/s390/predicates.md (const0_operand, constm1_operand)
28861         (constable_operand): Accept vector operands.
28862         * config/s390/s390-modes.def: Add supported vector modes.
28863         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28864         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28865         (s390_bytemask_vector_p, s390_expand_vec_strlen)
28866         (s390_expand_vec_compare, s390_expand_vcond)
28867         (s390_expand_vec_init): Add prototypes.
28868         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28869         (s390_vector_mode_supported_p): New function.
28870         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28871         (s390_contiguous_bitmask_vector_p): New function.
28872         (s390_bytemask_vector_p): New function.
28873         (s390_split_ok_p): Vector regs don't work either.
28874         (regclass_map): Add VEC_REGS.
28875         (s390_legitimate_constant_p): Handle vector constants.
28876         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28877         (legitimate_reload_vector_constant_p): New function.
28878         (s390_preferred_reload_class): Handle CONST_VECTOR.
28879         (s390_reload_symref_address):  Likewise.
28880         (s390_secondary_reload): Vector memory instructions only support
28881         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
28882         (s390_emit_ccraw_jump): New function.
28883         (s390_expand_vec_strlen): New function.
28884         (s390_expand_vec_compare): New function.
28885         (s390_expand_vcond): New function.
28886         (s390_expand_vec_init): New function.
28887         (s390_dwarf_frame_reg_mode): New function.
28888         (print_operand): Handle addresses with 'O' and 'R' constraints.
28889         (NR_C_MODES, constant_modes): Add vector modes.
28890         (s390_output_pool_entry): Handle vector constants.
28891         (s390_hard_regno_mode_ok): Handle vector registers.
28892         (s390_class_max_nregs): Likewise.
28893         (s390_cannot_change_mode_class): New function.
28894         (s390_invalid_arg_for_unprototyped_fn): New function.
28895         (s390_function_arg_vector): New function.
28896         (s390_function_arg_float): Remove size variable.
28897         (s390_pass_by_reference): Handle vector arguments.
28898         (s390_function_arg_advance): Likewise.
28899         (s390_function_arg): Likewise.
28900         (s390_return_in_memory): Vector values are returned in a VR if
28901         possible.
28902         (s390_function_and_libcall_value): Handle vector arguments.
28903         (s390_gimplify_va_arg): Likewise.
28904         (s390_call_saved_register_used): Consider the arguments named.
28905         (s390_conditional_register_usage): Disable v16-v31 for non-vec
28906         targets.
28907         (s390_preferred_simd_mode): New function.
28908         (s390_support_vector_misalignment): New function.
28909         (s390_vector_alignment): New function.
28910         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28911         (TARGET_VECTOR_MODE_SUPPORTED_P)
28912         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28913         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28914         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28915         (TARGET_VECTOR_ALIGNMENT): Define target macro.
28916         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28917         (FIRST_PSEUDO_REGISTER): Increase value.
28918         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28919         (VECTOR_REG_P): Define macros.
28920         (FIXED_REGISTERS, CALL_USED_REGISTERS)
28921         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28922         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28923         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28924         Add vector registers.
28925         (CANNOT_CHANGE_MODE_CLASS): Call C function.
28926         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28927         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28928         memory.
28929         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28930         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28931         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28932         (VR*_REGNUM): New constants.
28933         (ALL): New mode iterator.
28934         (INTALL): Remove mode iterator.
28935         Include vector.md.
28936         (movti): Implement TImode moves for VRs.
28937         Disable TImode splitter for VR targets.
28938         Implement splitting TImode GPR<->VR moves.
28939         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28940         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28941         reload<mode>_la_in, reload<mode>_la_out.
28942         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28943         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28944         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28945         (mov<mode> SF SD): Prefer lder, lde for loading.
28946         Add lrl and strl instructions.
28947         Add vector instructions.
28948         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28949         Call s390_expand_vec_strlen on z13.
28950         (*cc_to_int): Change predicate to nonimmediate_operand.
28951         (addti3): Rename to *addti3.  New expander.
28952         (subti3): Rename to *subti3.  New expander.
28953         * config/s390/vector.md: New file.
28955 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28957         * common/config/s390/s390-common.c (processor_flags_table): Add
28958         z13.
28959         * config.gcc: Add z13.
28960         * config/s390/s390-opts.h (enum processor_type): Add
28961         PROCESSOR_2964_Z13.
28962         * config/s390/s390.c (s390_adjust_priority): Check for
28963         PROCESSOR_2964_Z13.
28964         (s390_reorg): Likewise.
28965         (s390_sched_reorder): Likewise.
28966         (s390_sched_variable_issue): Likewise.
28967         (s390_loop_unroll_adjust): Likewise.
28968         (s390_option_override): Likewise. Default to -mvx when available.
28969         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28970         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28971         (TARGET_VX_ABI): Define macros.
28972         macros.
28973         (TARGET_DEFAULT): Add MASK_OPT_VX.
28974         * config/s390/s390.md ("cpu" attribute): Add z13.
28975         ("cpu_facility" attribute): Add vec.
28976         * config/s390/s390.opt (processor_type): Add z13.
28977         (mvx): New options.
28978         * doc/invoke.texi: Add z13 option for -march.
28980 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28982         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28983         mode check to make sure that only scalar integer values are
28984         accepted.
28986 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28988         * tree.c (verify_type_variant): Fix #undef.
28989         (gimple_canonical_types_compatible_p): Move here from lto.c
28990         (verify_type): Verify TYPE_CANONICAL compatibility.
28991         * tree.h (gimple_canonical_types_compatible_p): Declare.
28993 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28995         PR middle-end/66199
28996         * tree.h (OMP_TEAMS_COMBINED): Define.
28997         * gimplify.c (enum gimplify_omp_var_data): Add
28998         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28999         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29000         (omp_notice_variable): Accept both ORT_TEAMS
29001         and ORT_COMBINED_TEAMS.  Don't recurse if
29002         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29003         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29004         GOVD_FIRSTPRIVATE.
29005         (omp_no_lastprivate): New function.
29006         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29007         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29008         notice_outer and set appropriate bits, otherwise make
29009         sure default(none) combined constructs won't complain.
29010         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29011         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29012         omp_no_lastprivate either remove the clause or turn it
29013         into OMP_CLAUSE_PRIVATE.
29014         (gimplify_omp_for): Fix up handling of implicit
29015         lastprivate or linear iterators.
29016         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29017         ORT_COMBINED_TEAMS.
29018         * omp-low.c (lower_omp_for_lastprivate): For combined
29019         for simd use fd.loop.n2 from the for rather than simd.
29021 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29023         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29024         instead of gen_rtx_raw_REG.
29025         (cris_expand_epilogue): Likewise.
29026         * config/microblaze/microblaze.c (microblaze_classify_address):
29027         Likewise.
29028         * config/sparc/sparc.md: Likewise.
29030 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
29032         * config/alpha/alpha.c (alpha_legitimize_reload_address)
29033         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29034         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29035         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29036         Use CASE_CONST_SCALAR_INT.
29037         (print_operand) <case 'M'>: Use mode_width_operand to check the
29038         value of the constant.
29039         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29040         * config/alpha/predicates.md (input_operand): Use general_operand
29041         instead of match_code as operand check.
29042         (symbolic_operand): Use match_code with subexpression digits.
29043         * config/alpha/constraints.md (Q): Ditto.
29045 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29047         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29049 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29051         * config/s390/s390.c (s390_secondary_reload): Fix check for
29052         load/store relative.
29054 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29056         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
29057         alternative_mask to uint64_t.
29059 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29061         PR tree-optimization/66187
29062         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29063         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
29064         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29066 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
29068         * diagnostic.c (diagnostic_report_current_module): Strengthen
29069         local "new_map" from const line_map * to
29070         const line_map_ordinary *.
29071         * genmatch.c (error_cb): Likewise for local "map".
29072         (output_line_directive): Likewise for local "map".
29073         * input.c (expand_location_1): Likewise for local "map".
29074         Pass NULL rather than &map to
29075         linemap_unwind_to_first_non_reserved_loc, since the value is never
29076         read from there, and the value written back not read from here.
29077         (is_location_from_builtin_token): Strengthen local "map" from
29078         const line_map * to const line_map_ordinary *.
29079         (dump_location_info): Strengthen locals "map" from
29080         line_map *, one to const line_map_ordinary *, the other
29081         to const line_map_macro *.
29082         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29083         const line_map * to const line_map_macro *.
29084         (maybe_unwind_expanded_macro_loc): Add a call to
29085         linemap_check_macro when writing to the "map" field of the
29086         loc_map_pair.
29087         Introduce local const line_map_ordinary * "ord_map", using it in
29088         place of "map" in the part of the function where we know we have
29089         an ordinary map.  Strengthen local "m" from const line_map * to
29090         const line_map_ordinary *.
29092 2015-05-19  Nick Clifton  <nickc@redhat.com>
29094         PR target/66156
29095         * config/msp430/msp430.md (zero_extendhisi2): Add support for
29096         separate source and destination registers.
29098 2015-05-19  Richard Biener  <rguenther@suse.de>
29100         PR tree-optimization/66165
29101         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29102         for no load permutation.
29104         PR tree-optimization/66185
29105         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29106         when building the SLP node from scalars.
29108 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29109             Tristan Gingold  <gingold@adacore.com>
29111         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29112         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29113         (expand_stack_restore): Call record_new_stack_level.
29114         (expand_stack_save): Do not call do_pending_stack_adjust.
29115         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29116         * calls.c (expand_call): Call record_new_stack_level for alloca.
29117         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29118         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29119         (update_sjlj_context): New global function.
29120         * except.h (update_sjlj_context): Declare.
29121         * explow.c (record_new_stack_level): New global function.
29122         (allocate_dynamic_stack_space): Call record_new_stack_level.
29123         * explow.h (record_new_stack_level): Declare.
29124         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29125         * cfgrtl.c (duplicate_insn_chain): Likewise.
29127 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29129         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29130         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29131         STACK_GROWS_DOWNWARD as normal if.
29132         (expand_call): Likewise.
29134 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
29136         PR target/54236
29137         * config/sh/sh.md (*round_int_even): New insn_and_split and
29138         accompanying new unnamed split.
29140 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29142         * bitmap.c (bitmap_set_range): Handle count==1 specially.
29143         (bitmap_clear_range): Likewise.
29144         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29145         bitmap_set_range unconditionally.
29146         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29147         * df-scan.c (df_mark_reg): Likewise.
29148         * haifa-sched.c (setup_ref_regs): Likewise.
29149         * sched-rgn.c (update_live_1): Likewise.
29151 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29153         * regs.h (END_HARD_REGNO): Delete.
29154         (END_REGNO): Move to...
29155         * rtl.h: ...here.
29156         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29157         * caller-save.c (mark_set_regs): Likewise.
29158         * combine.c (move_deaths, distribute_notes): Likewise.
29159         * cse.c (invalidate, invalidate_for_call): Likewise.
29160         * df-scan.c (df_ref_record): Likewise.
29161         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29162         (record_last_reg_set_info): Likewise.
29163         * reg-stack.c (convert_regs_exit): Likewise.
29164         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29165         * resource.c (update_live_status): Likewise.
29166         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29168 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29170         * rtl.h (reg_info): Add an nregs field.
29171         (REG_NREGS): Use it.
29172         (SET_REGNO_RAW): Delete.
29173         (set_regno_raw): New function.
29174         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29175         (END_REGNO): Redefine in terms of REG_NREGS.
29176         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29177         SET_REGNO_RAW.
29178         * emit-rtl.c (set_mode_and_regno): Likewise.
29179         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29180         instead of SET_REGNO_RAW.
29182 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29184         * rtl.h (PUT_MODE_RAW): New macro.
29185         (PUT_REG_NOTE_KIND): Use it.
29186         (set_mode_and_regno): Declare.
29187         (gen_raw_REG): Change regno to "unsigned int".
29188         (gen_rtx_REG): Change "unsigned" to "unsigned int".
29189         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29190         use set_mode_and_regno to change the mode of registers.
29191         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29192         * emit-rtl.c (set_mode_and_regno): New function.
29193         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
29194         * caller-save.c (reg_save_code): Use set_mode_and_regno.
29195         * expr.c (init_expr_target): Likewise.
29196         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29197         * postreload.c (reload_cse_simplify_operands): Likewise.
29199 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29201         * caller-save.c (init_caller_save): Use word_mode and
29202         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29203         * expr.c (init_expr_target): Likewise.
29204         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29205         * postreload.c (reload_cse_regs_1): Likewise.
29207 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29209         * rtl.def (REG): Change format to "r".
29210         * rtl.h (rtunion): Remove rt_reg.
29211         (reg_info): New structure.
29212         (rtx_def): Add reg field to main union.
29213         (X0REGATTR): Delete.
29214         (REG_CHECK): New macro.
29215         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29216         * rtl.c (rtx_format): Document "r".
29217         (rtx_code_size): Handle REG specially.
29218         * gengenrtl.c (special_format): Return true for formats
29219         that include 'r'.
29220         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29221         Deal with REG_ATTRS after the field loop.
29222         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29223         * expmed.c (init_expmed): Call gen_raw_REG instead of
29224         gen_rtx_raw_REG.
29225         * expr.c (init_expr_target): Likewise.
29226         * regcprop.c (maybe_mode_change): Likewise.
29227         * varasm.c (make_decl_rtl): Likewise.
29228         * final.c (leaf_renumber_regs_insn): Return early after
29229         handling REGs.
29230         * genemit.c (gen_exp): Handle 'r' fields.
29231         * genpeep.c (match_rtx): Likewise.
29232         * gensupport.c (subst_pattern_match): Likewise.
29233         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29234         (alter_constraints, subst_dup): Likewise.
29235         * read-rtl.c (read_rtx_code): Likewise.
29236         * print-rtl.c (print_rtx): Likewise.
29237         * genrecog.c (find_operand, find_matching_operand): Likewise.
29238         (validate_pattern, match_pattern_2): Likewise.
29239         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29240         (rtx_test::regno_field): New function.
29241         (operator ==, safe_to_hoist_p, transition_parameter_type)
29242         (parameter_type_string, print_parameter_value)
29243         (print_nonbool_test, print_test): Handle new enum values.
29244         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29245         * lra-constraints.c (operands_match_p): Likewise.
29247 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29249         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29250         Change type of new_regno to unsigned int.
29251         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29252         new_regno to unsigned int.
29253         (df_ref_change_reg_with_loc): Remove old_regno parameter.
29254         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
29255         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29256         (SET_REGNO_RAW): Add space after ",".
29258 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29260         * rtl.h (REG_NREGS): New macro
29261         * alias.c (record_set): Use it.
29262         * cfgcleanup.c (mark_effect): Likewise.
29263         * combine.c (likely_spilled_retval_1): Likewise.
29264         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29265         (move_deaths, distribute_notes): Likewise.
29266         * cselib.c (cselib_record_set): Likewise.
29267         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29268         * df-scan.c (df_mark_reg): Likewise.
29269         * dse.c (look_for_hardregs): Likewise.
29270         * dwarf2out.c (reg_loc_descriptor): Likewise.
29271         (multiple_reg_loc_descriptor): Likewise.
29272         * expr.c (write_complex_part, read_complex_part): Likewise.
29273         (emit_move_complex): Likewise.
29274         * haifa-sched.c (setup_ref_regs): Likewise.
29275         * ira-lives.c (mark_hard_reg_live): Likewise.
29276         * lra.c (lra_set_insn_recog_data): Likewise.
29277         * mode-switching.c (create_pre_exit): Likewise.
29278         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29279         (reload_combine_recognize_pattern): Likewise.
29280         (reload_combine_note_use, move2add_record_mode): Likewise.
29281         (reload_cse_move2add): Likewise.
29282         * reg-stack.c (subst_stack_regs_pat): Likewise.
29283         * regcprop.c (kill_value, copy_value): Likewise.
29284         (copyprop_hardreg_forward_1): Likewise.
29285         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29286         (build_def_use): Likewise.
29287         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29288         (deps_analyze_insn): Likewise.
29289         * sched-rgn.c (check_live_1, update_live_1): Likewise.
29290         * sel-sched.c (count_occurrences_equiv): Likewise.
29291         * valtrack.c (dead_debug_insert_temp): Likewise.
29293 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29295         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29296         * dse.c (note_add_store): Likewise.
29297         * ira-lives.c (mark_hard_reg_dead): Likewise.
29298         * loop-invariant.c (mark_reg_store): Likewise.
29299         (mark_reg_death): Likewise.
29300         * postreload.c (reload_combine): Likewise.
29301         (reload_combine_note_store): Likewise.
29302         (reload_combine_note_use): Likewise.
29303         * recog.c (peep2_reg_dead_p): Likewise.
29305 2015-05-19  Alan Modra  <amodra@gmail.com>
29307         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29308         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29309         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29310         unused predicates.
29311         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29312         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
29313         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29314         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29316 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
29318         * config/mips/mips.md (JOIN_MODE): New mode iterator.
29319         (join2_load_Store<JOIN_MODE:mode>): New pattern.
29320         (join2_loadhi): Likewise.
29321         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29322         load-load and store-stores.
29323         * config/mips/mips.opt (mload-store-pairs): New option.
29324         (TARGET_LOAD_STORE_PAIRS): New macro.
29325         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29326         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29327         * config/mips/mips.c (mips_load_store_bonding_p): New function.
29329 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
29331         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29332         explicit swaps.
29333         * dojump.c (do_compare_rtx_and_jump): Likewise.
29334         * expmed.c (emit_store_flag_1): Likewise.
29335         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29336         * final.c (sprint_ul): Use std::reverse for reversing a string.
29337         * fold-const.c (extract_muldiv_1): Use std::swap.
29338         * genmodes.c (emit_mode_int_n): Likewise.
29339         * ifcvt.c (dead_or_predicable): Likewise.
29340         * ira-build.c (ira_merge_live_ranges): Likewise.
29341         (swap_allocno_copy_ends_if_necessary): Likewise.
29342         * ira.c (ira_setup_alts): Likewise.
29343         * loop-iv.c (iv_analyze_expr): Likewise.
29344         (implies_p): Likewise.
29345         (canon_condition): Likewise.
29346         * lra-constraints.c (swap_operands): Likewise.
29347         * lra-lives.c (lra_merge_live_ranges): Likewise.
29348         * omega.c (swap): Remove.
29349         (bswap): Remove.
29350         (omega_unprotect_1): Use std::swap.
29351         (omega_solve_geq): Likewise.
29352         * optabs.c (expand_binop_directly): Likewise.
29353         (expand_binop): Likewise.
29354         (emit_conditional_move): Likewise.
29355         (emit_conditional_add): Likewise.
29356         * postreload.c (reload_cse_simplify_operands): Likewise.
29357         * reg-stack.c (emit_swap_insn): Likewise.
29358         (swap_to_top): Likewise.
29359         (compare_for_stack_reg): Likewise.
29360         (subst_asm_stack_regs): Likewise.
29361         * reload.c (find_reloads): Likewise.
29362         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29363         * sel-sched.c (invoke_reorder_hooks): Likewise.
29364         (create_block_for_bookkeeping): Likewise.
29365         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29366         (lambda_matrix_right_hermite): Use std::swap.
29367         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29368         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29369         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29370         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29371         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29372         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29373         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29374         * tree-vrp.c (compare_ranges): Likewise.
29375         * var-tracking.c (add_with_sets): Likewise.
29376         (vt_find_locations): Likewise.
29378 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
29380         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29381         pie executables.
29382         (FBSD_ENDFILE_SPEC): Likewise.
29383         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29384         config/freebsd-spec.h.
29385         (ENDFILE_SPEC): Likewise.
29387 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
29388             Richard Henderson  <rth@redhat.com>
29390         PR target/57032
29391         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29392         Check for a memory location that is not a reference (using an AND)
29393         to an unaligned location here.
29394         * config/alpha/predicates.md (normal_memory_operand): Remove.
29396 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
29398         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29399         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29401 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
29403         * config/mips/mips.c (micromips_globals): New variable.
29404         (mips_set_compression_mode): Save and reinitialize target-dependent
29405         state for microMIPS.
29407 2015-05-18  Martin Liska  <mliska@suse.cz>
29409         * dbgcnt.def: Add new counter.
29410         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29412 2015-05-18  Martin Liska  <mliska@suse.cz>
29414         * dbgcnt.def: Sort counters.
29415         * opts.c (common_handle_option): Do not compile if
29416         -fdbg-cnt-list is enabled.
29418 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29420         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29421         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
29422         address operator to va_list operand.
29423         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29424         unconditionally.
29425         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29426         operand.
29427         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29428         * config/s390/s390.c (s390_gimplify_va_arg): Same.
29429         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29431 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29433         * tree-ssa-tail-merge.c: Fix whitespace.
29435 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
29437         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29438         cortex-a17, and cortex-a17.cortex-a7.
29440 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
29442         PR target/54236
29443         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29445 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
29447         PR target/66174
29448         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29449         QImode inner modes for TARGET_AVX512BW.  Force mask operand
29450         to a register for AVX512F modes.
29452 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29454         * toplev.c (emit_debug_global_declarations): Do not output debug info
29455         when doing slim LTO objects.
29457 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29459         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29460         odr_types_equivalent_p): Declare.
29461         (odr_type_p): Use gcc_checking_assert.
29462         (type_in_anonymous_namespace_p) Declare.
29463         (type_with_linkage_p): Declare.
29464         * common.opt (Wlto-type-mismatch): New warning.
29465         * ipa-devirt.c (compound_type_base): New function.
29466         (odr_or_derived_type_p): New function.
29467         (odr_types_equivalent_p): New function.
29468         (add_type_duplicate): Simplify.
29469         (type_with_linkage_p): Add hack to prevent false positives on C types
29470         (type_in_anonymous_namespace_p): Likewise.
29471         * tree.c (need_assembler_name_p): Use type_with_linkage.
29472         * tree.h (type_in_anonymous_namespace_p): Remove.
29473         * doc/invoke.texi (-Wlto-type-mismatch): Document
29475 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
29477         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29478         (verify_type): Verify STRING_FLAG.
29480 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29482         PR fortran/44054
29483         * tree-pretty-print.c (percent_K_format): Replace locus pointer
29484         with accessor function.
29485         * tree-diagnostic.c (diagnostic_report_current_function): Use
29486         diagnostic_location function.
29487         (maybe_unwind_expanded_macro_loc): Likewise.
29488         (virt_loc_aware_diagnostic_finalizer): Likewise.
29489         (default_tree_printer): Replace locus pointer with accessor function.
29490         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29491         (diagnostic_set_info_translated): Initialize second location.
29492         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29493         (diagnostic_show_locus): Handle two locations. Call
29494         diagnostic_print_caret_line.
29495         (diagnostic_print_caret_line): New.
29496         (default_diagnostic_starter): Use diagnostic_location function.
29497         (diagnostic_report_diagnostic): Use diagnostic_location function.
29498         (verbatim): Do not set text.locus.
29499         * diagnostic.h (struct diagnostic_info): Remove location field.
29500         (struct diagnostic_context): Make caret_chars an array of two.
29501         (diagnostic_location): New inline.
29502         (diagnostic_expand_location): Handle two locations.
29503         (diagnostic_same_line): New inline.
29504         (diagnostic_print_caret_line): Declare.
29505         (CARET_LINE_MARGIN): New constant.
29506         * pretty-print.c (pp_printf): Do not set text.locus.
29507         (pp_verbatim): Do not set text.locus.
29508         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29509         (struct text_info): Replace locus pointer with locations
29510         array. Add accessor functions.
29512 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
29513             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29515         PR target/65768
29516         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29517         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29518          large constants in register instead of splitting them.
29520 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
29522         PR target/66140
29523         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29524         replacements in memory addresses.
29525         (get_unaligned_address): Ditto.
29527 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
29529         * config/ft32/*: New files for FT32 port.
29530         * doc/install.texi: Add FT32 information.
29531         * doc/invoke.texi: Add FT32 information.
29532         * doc/md.texi: Add FT32 information.
29533         * doc/contrib.texi: Self added.
29535 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
29537         PR tree-optimization/64454
29538         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29539         (-1 - A -> ~A): Remove unnecessary condition.
29541 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
29543         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29544         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29545         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29547 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
29549         * ipa-chkp.h (chkp_wrap_function): New.
29550         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29551         (chkp_wrap_function_name): New.
29552         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29553         to get wrapper name.
29554         * lto-cgraph.c: Include ipa-chkp.h.
29555         (input_cgraph_1): Avoid alias chain for wrappers.
29557 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
29559         PR middle-end/66134
29560         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29561         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29563 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29565         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29566         (AARCH64_FL_SLOWMUL): Delete.
29567         (AARCH64_FL_CRC): Redefine to 1<<3.
29568         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29570 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29572         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29573         casting.
29575 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29577         * config/alpha/alpha.md (extendqidi2): Use general_operand
29578         instead of some_operand for operand[1] predicate.
29579         (extendhidi2): Ditto.
29580         (cbranchdi4): Use general_operand instead of some_operand
29581         for operand[1] and operands[2] predicates.
29582         (cstoredi4): Ditto.
29583         * config/alpha/predicates.md (some_operand): Remove unused predicate.
29584         (some_ni_operand): Ditto.
29586 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
29588         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29589         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
29590         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29591         low part of the constant using alpha_emit_set_const_1.
29592         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29594 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
29596         * varasm.c (output_constant_pool_1): Pass down alignment from
29597         constant pool entry's descriptor to output_constant_pool_2.
29598         (output_object_block): Add comment prior to call to
29599         output_constant_pool_1.
29601 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
29603         PR rtl-optimization/65862
29604         * target.def (ira_change_pseudo_allocno_class): New hook.
29605         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29606         value of the hook.
29607         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29608         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29609         hook.
29610         * ira-costs.c (find_costs_and_classes): Call the hook and change
29611         classes when it is necessary.
29612         * doc/tm.texi: Update.
29614 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
29616         * config/i386/i386.md (sibcall_memory): Check that register with
29617         callee address is not also used as one of the arguments, instead
29618         of checking that it is not live after the sibcall.
29619         (sibcall_pop_memory): Ditto.
29620         (sibcall_value_memory): Ditto.
29621         (sibcall_value_pop_memory): Ditto.
29623 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
29625         * generic-match-head.c (types_match): Handle non-types.
29626         * gimple-match-head.c (types_match): Likewise.
29627         * match.pd: Remove unnecessary TREE_TYPE for types_match.
29629 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
29631         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29632         (csneg3<mode>_insn): Enable expansion of pattern.
29634 2015-05-14  Nick Clifton  <nickc@redhat.com>
29636         * config/rl78/rl78.c (rl78_select_section): Select the correct
29637         default section based upon the category of the decl.
29639 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29641         PR rtl-optimization/30967
29642         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29643         destination mode for the cost of scc patterns.
29645 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29647         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29648         using SWIM248 mode iterator.
29649         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29650         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
29651         for operand[2] constraint.
29652         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29654 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29656         PR middle-end/66133
29657         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29658         make sure it is never noreturn, even when the task body does not
29659         return.
29660         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29661         right before GIMPLE_OMP_RETURN.
29662         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29663         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
29664         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29666 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29668         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29669         * tree-ssa-math-opts.c: Include params.h
29670         (pow_synth_sqrt_info): New struct.
29671         (representable_as_half_series_p): New function.
29672         (get_fn_chain): Likewise.
29673         (print_nested_fn): Likewise.
29674         (dump_fractional_sqrt_sequence): Likewise.
29675         (dump_integer_part): Likewise.
29676         (expand_pow_as_sqrts): Likewise.
29677         (gimple_expand_builtin_pow): Use above to attempt to expand
29678         pow as series of square roots.  Removed now unused variables.
29680 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
29682         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29683         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29684         Remove *p0 and *p1 arguments.  Rewrite function.
29685         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29686         (alpha_split_const_mov): Update calls to alpha_extract_integer and
29687         alpha_emit_set_long_const.
29688         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29689         (alpha_output_mi_thunk_osf): Ditto.
29690         * config/alpha/alpha.md (movti): Do not check operands[1]
29691         for CONST_DOUBLE.
29693 2015-05-13  Richard Biener  <rguenther@suse.de>
29695         PR tree-optimization/66129
29696         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29697         commutative.
29698         (vect_schedule_slp_instance): Fix typo.
29700 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
29702         * common.opt (fdump-internal-locations): New option.
29703         * input.c: Include diagnostic-core.h.
29704         (get_end_location): New function.
29705         (write_digit): New function.
29706         (write_digit_row): New function.
29707         (dump_location_range): New function.
29708         (dump_labelled_location_range): New function.
29709         (dump_location_info): New function.
29710         * input.h (dump_location_info): New prototype.
29711         * toplev.c (compile_file): Handle flag_dump_locations.
29713 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
29715         * gimple-expr.h (is_gimple_constant): Reorder.
29716         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29718 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
29720         * combine.c (simplify_set): When generating a CC set, if the
29721         source already is in the correct mode, do not wrap it in a
29722         compare.  Simplify the rest of that code.
29724 2015-05-13  Richard Biener  <rguenther@suse.de>
29726         PR tree-optimization/66123
29727         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29728         a taken edge.
29730 2015-05-13  Richard Biener  <rguenther@suse.de>
29732         PR middle-end/66110
29733         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29734         specially.
29735         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29737 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
29739         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29740         * aclocal.m4: Regenerated with automake-1.11.6.
29742 2015-05-13  Tom de Vries  <tom@codesourcery.com>
29744         PR tree-optimization/66010
29745         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29746         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29747         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
29748         and rval based on do_deref.
29750 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29752         PR target/65103
29753         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29754         link time constants into adress expressions and therefore set
29755         their cost to 0.
29757 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
29759         PR target/66112
29760         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29761         Use SWI248 iterator instead of SWI.
29762         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
29763         Use eq_attr "alternative" "0" instead of match_test in
29764         length_immediate attribute computation.
29765         (*mulvhi4, *mulvhi4_1): New define_insns.
29767         PR target/66112
29768         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29769         SIGNED to get precision of non-negative value.
29771 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29773         PR target/66048
29774         * function.c (diddle_return_value_1): Process bounds first.
29775         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29776         register.
29778 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29780         PR rtl-optimization/64616
29781         * loop-invariant.c (can_move_invariant_reg): New.
29782         (move_invariant_reg): Call above new function to decide whether
29783         instruction can just be moved, skipping creation of temporary
29784         register.
29786 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29788         PR target/pr66047.c
29789         * i386.c (ix86_function_sseregparm): Only return -1 if local function
29790         with implied regparm is called from -mno-sse function.
29791         (init_cumulative_args): Output error if ix86_function_sseregparm
29792         return -1 and SSE register would be needed.
29793         (function_arg_advance_32): Likewise.
29794         (function_arg_32): Likewise.
29795         * i386.h (ix86_args): Add decl field.
29797 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29799         PR ipa/65873
29800         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29801         inlines across optimization boundary.
29803 2015-05-12  Jason Merrill  <jason@redhat.com>
29805         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29806         string literal and macro name.
29808 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
29810         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29811         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29812         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29814 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29816         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29817         (-Wmisleading-indentation): New option.
29818         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29820 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
29822         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29823         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29824         (alpha_extract_integer): Ditto.
29825         (alpha_legitimate_constant_p): Ditto.
29826         (alpha_split_tmode_pair): Ditto.
29827         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29828         (alpha_expand_mov): Ditto.
29829         (print_operand): Remove handling of 'H' modifier.
29830         <case 'm'>: Remove CONST_DOUBLE handling.
29831         (summarize_insn): Handle CONST_WIDE_INT.
29832         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29833         (anddi3): Ditto.
29834         (movti): Handle CONST_WIDE_INT.
29835         * config/alpha/constraints.md ('H'): Remove constraint definition.
29836         ('G'): Do not match MODE_FLOAT class.
29837         * config/alpha/predicates.md (const0_operand): Also match
29838         const_wide_int.
29839         (non_add_const_operand): Ditto.
29840         (non_zero_const_operand): Ditto.
29841         (some_operand): Ditto.
29842         (input_operand): Ditto.  Handle CONST_WIDE_INT.
29843         (and_operand): Do not match const_double.
29844         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29846 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
29848         PR target/65697
29849         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29850         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29851         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29852         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29853         is_mm_seq_cst, is_mm_sync): New accessor functions.
29854         * builtins.c (expand_builtin_sync_operation,
29855         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29856         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29857         (get_memmodel,  expand_builtin_atomic_compare_exchange,
29858         expand_builtin_atomic_load, expand_builtin_atomic_store,
29859         expand_builtin_atomic_clear): Use new accessor routines.
29860         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29861         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29862         (maybe_emit_sync_lock_test_and_set): Use new accessors and
29863         MEMMODEL_SYNC_ACQUIRE.
29864         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29865         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29866         expand_atomic_store): Use new accessors.
29867         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29868         * tsan.c (instrument_builtin_call): Update check for memory model beyond
29869         final enum to use MEMMODEL_LAST.
29870         * c-family/c-common.c: Use new accessor for memmodel_base.
29871         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29872         accessors.
29873         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29874         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29875         mem_thread_fence, *dmb): Likewise.
29876         * config/alpha/alpha.c (alpha_split_compare_and_swap,
29877         alpha_split_compare_and_swap_12): Likewise.
29878         * config/arm/arm.c (arm_expand_compare_and_swap,
29879         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29880         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29881         atomic_loaddi): Likewise.
29882         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29883         Likewise.
29884         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29885         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29886         use new accessors.
29887         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29888         atomic_store<mode>, atomic_compare_and_swap<mode>,
29889         atomic_exchange<mode>): Use new accessors.
29890         * config/mips/mips.c (mips_process_sync_loop): Likewise.
29891         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29892         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29893         rs6000_post_atomic_barrier): Add new cases.
29894         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29895         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29896         (atomic_load<mode>): Add new cases and use new accessors.
29897         (store_quadpti): Add new cases.
29898         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29899         accessors.
29900         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29901         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29902         model, not 8.
29904 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29906         * ipa-devirt.c (type_with_linkage_p): New function.
29907         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29908         type has linkage.
29909         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29910         (can_be_name_hashed_p): Simplify.
29911         (hash_odr_name): Check that type has linkage before checking if it is
29912         anonymous.
29913         (types_same_for_odr): Likewise.
29914         (odr_name_hasher::equal): Likewise.
29915         (odr_subtypes_equivalent_p): Likewise.
29916         (warn_types_mismatch): Likewise.
29917         (get_odr_type): Likewise.
29918         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29919         * ipa-utils.h (odr_type_p): Move offline.
29920         * tree.c (need_assembler_name_p): Fix handling of types
29921         without linkages.
29922         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29924 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29926         * timevar.c (timevar_enable): Delete in favor of...
29927         (g_timer): New global.
29928         (struct timevar_def): Move to timevar.h inside class timer.
29929         (struct timevar_stack_def): Likewise.
29930         (timevars): Delete global in favor of field "m_timevars" within
29931         class timer in timevar.h
29932         (stack): Likewise, in favor of field "m_stack".
29933         (unused_stack_instances): Likewise, in favor of field
29934         "m_unused_stack_instances".
29935         (start_time): Likewise, in favor of field "m_start_time".
29936         (get_time): Eliminate check for timevar_enable.
29937         (timer::timer): New function, built from part of timevar_init.
29938         (timevar_init): Rewrite idempotency test from using
29939         "timevar_enable" bool to using dynamic allocation of "g_timer".
29940         Move rest of implementation into timer's constructor.
29941         (timevar_push_1): Rename to...
29942         (timer::push): ...this, adding "m_" prefixes to variables that
29943         are now fields of timer.
29944         (timevar_pop_1): Likewise, rename to...
29945         (timer::pop): ...this, and add "m_" prefixes.
29946         (timevar_start): Replace test for "timevar_enable" with one for
29947         "g_timer", and move bulk of implementation to...
29948         (timer::start): ...here, adding "m_" prefixes.
29949         (timevar_stop): Likewise, from here...
29950         (timer::stop): ...to here.
29951         (timevar_cond_start): Likewise, from here...
29952         (timer::cond_start): ...to here.
29953         (timevar_cond_stop): Likewise, from here...
29954         (timer::cond_stop): ...to here.
29955         (validate_phases): Rename to...
29956         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
29957         locals "total" and "tv" const.
29958         (timevar_print): Rename to...
29959         (timer::print): ...this, and add "m_" prefixes.  Make locals
29960         "total" and "tv" const.  Eliminate test for timevar_enable.
29961         * timevar.h (timevar_enable): Eliminate.
29962         (g_timer): New declaration.
29963         (timevar_push_1): Eliminate.
29964         (timevar_pop_1): Eliminate.
29965         (timevar_print): Eliminate.
29966         (class timer): New class.
29967         (timevar_push): Rewrite to use g_timer.
29968         (timevar_pop): Likewise.
29969         * toplev.c (toplev::~toplev): Likewise.
29971 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
29973         * arm-protos.h (arm_sched_autopref): Delete.
29974         (tune_params): Re-organize, use enums for flag values.
29975         (FUSE_OPS): New macro.
29976         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29977         (ARM_PREFETCH_BENEFICIAL): Likewise.
29978         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29979         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29980         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29981         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29982         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29983         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
29984         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29985         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29986         format.
29987         (arm_option_override, thumb2_reorg, arm_print_tune_info)
29988         (aarch_macro_fusion_pair_p): Update uses of current_tune.
29989         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29991 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
29993         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29994         "break".
29996 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
29997             Sandra Loosemore <sandra@codesourcery.com>
29999         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30000         value.
30001         (REG_CLASS_NAMES): Add "IJMP_REGS".
30002         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30003         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30004         use new "c" register constraint.
30005         * config/nios2/constraint.md (c): New register constraint
30006         corresponding to IJMP_REGS.
30008 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30010         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30011         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30012         define_splits): Delete, revamp, transmogrify into ...
30013         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30014         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30015         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30016         New.
30018 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30020         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30021         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30023 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30025         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30026         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30027         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30028         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30029         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30030         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30031         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30032         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30033         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30034         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30035         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30036         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30037         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30038         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30039         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30040         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30041         and 30 corresponding splitters): Delete.
30043 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30045         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30046         zero_extract.
30048 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30050         * combine.c (recog_for_combine_1): New function, factored out
30051         from recog_for_combine.
30052         (change_zero_ext): New function.
30053         (recog_for_combine): If recog fails, try again with the pattern
30054         modified by change_zero_ext; if that still fails, restore the
30055         pattern.
30057 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30059         * combine.c (get_undo_marker): New function.
30060         (undo_to_marker): New function, largely factored out from ...
30061         (undo_all): ... this.  Adjust.
30063 2015-05-12  Richard Biener  <rguenther@suse.de>
30065         PR tree-optimization/66101
30066         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30067         fixup if we turn a loop exit edge to a fallthru edge.
30069 2015-05-12  Richard Biener  <rguenther@suse.de>
30071         PR tree-optimization/37021
30072         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30073         (SLP_TREE_TWO_OPERATORS): New define.
30074         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30075         SLP_TREE_TWO_OPERATORS.
30076         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30077         SLP node.
30078         (vect_build_slp_tree): Adjust.
30079         (vect_analyze_slp_cost_1): Likewise.
30080         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30081         emitting two vector stmts and mixing the results.
30083 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30085         * call.c (print_z_candidates): Remove dead code.
30087 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30089         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30090         and zEC12_simple_fp.
30091         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30092         to 1.
30094 2015-05-12  Tom de Vries  <tom@codesourcery.com>
30096         PR tree-optimization/66010
30097         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30098         ifn_va_arg.
30099         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30100         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
30101         va_lists are passed, and remove corresponding handling.
30102         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
30103         do_deref argument to ifn_va_arg.
30104         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30105         ifn_va_arg.
30107 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30109         PR target/65955
30110         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30111         REG before taking its REGNO.
30113 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30115         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30116         rsp->sign_bit_copies and rsp->nonzero_bits into ...
30117         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
30118         present to get more accurate information about the number of sign bit
30119         copies and non zero bits.
30121 2015-05-12  Richard Biener  <rguenther@suse.de>
30123         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30124         do not allow unrolling.
30126 2015-05-11  Richard Henderson  <rth@redhat.com>
30128         * config/i386/i386-modes.def (CCP): New.
30129         * config/i386/i386.c (put_condition_code): Handle it.
30130         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30132 2015-05-11  Richard Henderson  <rth@redhat.com>
30134         * target.def (md_asm_clobbers): Replace with...
30135         (md_asm_adjust): this.
30136         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30137         (TARGET_MD_ASM_ADJUST): New.
30138         * tm.texi: Rebuild.
30139         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30140         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30141         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30143         * cfgexpand.c (check_operand_nalternatives): Accept vector of
30144         constraints instead of lists of outputs and inputs.
30145         (expand_asm_stmt): Save and restore input_location around the
30146         body of the function.  Move asm data into vectors instead of
30147         building tree lists.  Generate cleanup sequences as needed,
30148         rather than waiting til the end.  Use new md_asm_adjust hook.
30150         * config/vxworks.c: Include vec.h before target.h.
30151         * gimple.c: Likewise.
30152         * incpath.c: Likewise.
30153         * mode-switching.c: Likewise.
30155         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30156         (cris_md_asm_adjust): this.
30157         (TARGET_MD_ASM_CLOBBERS): Remove.
30158         (TARGET_MD_ASM_ADJUST): New.
30159         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30160         (ix86_md_asm_adjust): this.
30161         (TARGET_MD_ASM_CLOBBERS): Remove.
30162         (TARGET_MD_ASM_ADJUST): New.
30163         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30164         (mn10300_md_asm_adjust): this.
30165         (TARGET_MD_ASM_CLOBBERS): Remove.
30166         (TARGET_MD_ASM_ADJUST): New.
30167         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30168         (rs6000_md_asm_adjust): this.
30169         (TARGET_MD_ASM_CLOBBERS): Remove.
30170         (TARGET_MD_ASM_ADJUST): New.
30171         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30172         (visium_md_asm_adjust): this.
30173         (TARGET_MD_ASM_CLOBBERS): Remove.
30174         (TARGET_MD_ASM_ADJUST): New.
30176 2015-05-11  Richard Henderson  <rth@redhat.com>
30178         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30179         if noutputs is zero.
30180         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30182         * cfgexpand.c (expand_asm_operands): Merge into...
30183         (expand_asm_stmt): ... here.
30185         * cfgexpand.c (expand_asm_operands): Don't call
30186         resolve_asm_operand_names.
30187         * stmt.c (resolve_asm_operand_names): Clarify block comment.
30189 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
30191         * dwarf2out.c (gen_member_die): Sanity check that we access
30192         TYPE_MAIN_VARIANT for TYPE_METHODS.
30193         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30194         checking TYPE_METHODS.
30195         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30196         if non-null.
30197         (build_distinct_type_copy): Clear TYPE_METHODS.
30198         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30199         (verify_type): Allow TYPE_METHODS to be error_mark_node.
30200         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30202 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
30204         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30205         (emit_pattern_before_setloc): Likewise.
30207 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30209         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30210         for define_peephole2s.
30211         (get_peephole2_pattern): New function.
30212         (main): Use it.  Call validate_pattern.
30214 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30216         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30217         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30218         (Last callee saved reg is different for AVR_TINY architecture)
30220 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30222         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30223         when looking for memory references.
30225 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30227         PR target/65753
30228         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30229         via function pointers.
30231 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30233         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30234         indirect call by forcing address into a pseudo with -fno-plt.
30235         * common.opt (flag_plt): New option.
30236         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30237         ([-fno-plt]): Document.
30239 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
30241         PR bootstrap/66105
30242         * config/rs6000/option-defaults.h: Add space between string literal
30243         and macro name.
30245 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30247         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30248         accross ARM targets.
30250 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30252         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30253         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30255 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30257         PR rtl-optimization/66076
30258         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30259         Don't grow the heap array if it is already big enough from a
30260         previous iteration.
30262 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30264         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30265         (is_called_in_ARM_mode): Remove.
30266         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30267         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30268         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30269          arm_declare_function_name.
30271 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30273         * config/arm/arm.c (arm_option_override): Reoganized and split into :
30274         (arm_option_params_internal); New function.
30275         (arm_option_check_internal): New function.
30276         (arm_option_override_internal): New function.
30277         (thumb_code, thumb1_code): Remove.
30278         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30279         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30280         (thumb_code, thumb1_code): Remove.
30281         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30283 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30285         * config/alpha/alpha.c (alpha_emit_set_const_1)
30286         (alpha_emit_set_long_const, alpha_extract_integer)
30287         (alpha_legitimate_constant_p, alpha_split_const_mov)
30288         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30289         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30290         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30291         HOST_WIDE_INT_1U.
30292         * config/alpha/predicates.md (mode_mask_operand): Do not match
30293         const_double RTX.
30294         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30295         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30296         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30297         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30298         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30300 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
30302         PR target/65780
30303         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30304         default_binds_local_p_2.
30305         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30306         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30308 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30310         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30312 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30314         Patch by Richard Biener
30315         * coverage.c (coverage_obj_init): Delay building of type variant
30316         until the type is finished.
30318 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30320         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30321         mismatch between C and C++ type; compoare correctly ARG_TYPES
30322         for non-prototypes and output correctly parameter index for METHOD_TYPE.
30323         (odr_types_equivalent_p): Fix wording of warning about attributes;
30324         it is OK to match prototype and non-prototype.
30326 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30328         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30329         TYPE_ARG_TYPES list.
30330         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30331         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30333 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30335         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30336         * tree.h (is_lang_specific): Constify.
30338 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
30340         PR tree-optimization/64454
30341         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30342         Rewrite.
30344 2015-05-08  Jason Merrill  <jason@redhat.com>
30346         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30347         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30348         config/darwin.h, config/darwin9.h, config/elfos.h,
30349         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30350         config/microblaze/microblaze.h, config/mips/mips.h,
30351         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30352         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30353         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30354         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30355         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30356         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30357         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30358         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30359         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30360         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30361         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30362         between string literal and macro name.
30364 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30366         * jump.c: Change argument types to rtx_insn *.
30367         * rtl.h: Adjust.
30369 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30371         * lra-constraints.c: Change argument type to rtx_insn *.
30373 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30375         * df-problems.c: Change argument type to rtx_insn *.
30377 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30379         * combine.c: Change argument type to rtx_insn *.
30381 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30383         * rtl.h: Adjust.
30384         * rtlanal.c: Change argument type to rtx_insn *.
30386 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30388         * sched-deps.c: Change argument types to rtx_insn *.
30389         * sched-int.h: Adjust.
30391 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30393         * dwarf2cfi.c: Change argument type to rtx_insn *.
30395 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30397         * ira.c (decrease_live_ranges_number): Changetype of local
30398         variable to rtx_insn *.
30399         * recog.c: Change argument types to rtx_insn *.
30400         * recog.h: Adjust.
30402 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30404         * reorg.c: Change argument types to rtx_insn *.
30406 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30408         * ira-color.c: Change argument types to rtx_insn *.
30409         * lra-eliminations.c: Likewise.
30410         * ira.h: Adjust.
30412 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30414         * gcse.c: Change argument types to rtx_insn *.
30416 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30418         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30420 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30422         * emit-rtl.c (emit_debug_insn_before): Change argument type to
30423         rtx_insn *.
30424         * rtl.h: Adjust.
30426 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30428         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30429         * rtl.h: Adjust.
30431 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30433         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30434         * rtl.h: Adjust.
30436 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30438         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30439         * rtl.h: Adjust.
30441 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30443         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30444         * rtl.h: Adjust.
30446 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30448         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30449         to rtx_insn *.
30450         * rtl.h: Adjust.
30452 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30454         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30455         to rtx_insn *.
30456         * rtl.h: Likewise.
30458 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30460         * except.c (can_nonlocal_goto): Change type of argument to
30461         rtx_insn *.
30462         * rtl.h: Adjust.
30464 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30466         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30467         * rtl.h: Adjust.
30469 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30471         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30472         * cfgrtl.c (can_delete_label_p): Adjust.
30473         * rtl.h: likewise.
30475 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30477         * reorg.c (stop_search_p): Change argument to rtx_insn *.
30479 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30481         * except.c (make_reg_eh_region_note): Change argument to
30482         rtx_insn *.
30483         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30484         * except.h: Adjust.
30486 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30488         * mode-switching.c (commit_mode_sets): Change type of local
30489         variable from rtx to rtx_insn *.
30491 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
30493         * doc/install.texi (--enable-languages): Add missing jit and lto info.
30494         Add ^ to grep command.
30495         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30496         arg to last gimple_simplify declaration.  Add missing gimple_build
30497         declaration for built-in function case with four tree args.
30499 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30500             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30502         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30503         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30504         (GNU_USER_DYNAMIC_LINKERN32): Update.
30506 2015-05-08  Richard Biener  <rguenther@suse.de>
30508         PR tree-optimization/66036
30509         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30510         Handle strided group loads.
30511         (vect_verify_datarefs_alignment): Likewise.
30512         (vect_enhance_data_refs_alignment): Likewise.
30513         (vect_analyze_group_access): Likewise.
30514         (vect_analyze_data_ref_access): Likewise.
30515         (vect_analyze_data_ref_accesses): Likewise.
30516         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30517         (vectorizable_load): Likewise.
30519 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
30521         * config/rs6000/rs6000.md: Require operand inequality in one
30522         of the peepholes.
30524 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
30525             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
30527         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30528         from (set ...).
30529         * config/rx/rx.md (movdi, movdf): Likewise.
30530         Likewise for define_peephole2s.
30532 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30534         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30535         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30536         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30537         vtst_u64): Rewrite using gcc vector extensions.
30539 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30541         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30542         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30544 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
30546         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30548 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30550         * config/glibc-stdint.h (OPTION_MUSL): Define.
30551         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30552         Change the definition based on OPTION_MUSL for 64 bit targets.
30553         * config/linux.h (OPTION_MUSL): Redefine.
30554         * config/alpha/linux.h (OPTION_MUSL): Redefine.
30555         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30556         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30558 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
30559             Szabolcs Nagy  <szabolcs.nagy@arm.com>
30561         * config.gcc (LIBC_MUSL): New tm_defines macro.
30562         * config/linux.h (OPTION_MUSL): Define.
30563         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30564         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30565         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30566         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30567         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30568         * config/linux.opt (mmusl): New option.
30569         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30570         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30571         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30572         * configure: Regenerate.
30574 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
30575             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30577         PR target/48904
30578         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30579         * config/i386/knetbsd-gnu64.h: New file.
30581 2015-05-08  Marek Polacek  <polacek@redhat.com>
30583         PR c/64918
30584         * doc/invoke.texi: Document -Woverride-init-side-effects.
30586 2015-05-07  Marek Polacek  <polacek@redhat.com>
30588         PR c/65179
30589         * doc/invoke.texi: Document -Wshift-negative-value.
30591 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
30593         * gcov-tool.c (do_merge): Refactore to remove int ret.
30594         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30595         !type == FUNC to type != FUNC.
30596         * reload.h (struct target_reload): Changee to type of
30597         x_spill_indirect_levels from bool to unsigned char.
30599 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
30601         * rtl.h (always_void_p): New function.
30602         * gengenrtl.c (always_void_p): Likewise.
30603         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30604         with code foo are always VOIDmode.
30605         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30606         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30607         compare-elim.c, config/aarch64/aarch64.c,
30608         config/aarch64/aarch64.md, config/alpha/alpha.c,
30609         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30610         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30611         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30612         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30613         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30614         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30615         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30616         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30617         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30618         config/ia64/vect.md, config/iq2000/iq2000.c,
30619         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30620         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30621         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30622         config/mep/mep.c, config/microblaze/microblaze.c,
30623         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30624         config/mn10300/mn10300.c, config/msp430/msp430.c,
30625         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30626         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30627         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30628         config/rs6000/altivec.md, config/rs6000/rs6000.c,
30629         config/rs6000/rs6000.md, config/rs6000/vector.md,
30630         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30631         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30632         config/sh/sh.md, config/sh/sh_treg_combine.cc,
30633         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30634         config/spu/spu.md, config/stormy16/stormy16.c,
30635         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30636         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30637         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30638         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30639         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30640         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30641         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30642         var-tracking.c: Update calls accordingly.
30644 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
30646         PR middle-end/192
30647         PR middle-end/54303
30648         * varasm.c (function_mergeable_rodata_prefix): New function.
30649         (mergeable_string_section): Use it.
30650         (mergeable_constant_section): Use it.
30652 2015-05-07  Jeff Law  <law@redhat.com>
30654         PR target/39726
30655         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30656         simplifier to narrow arithmetic.
30657         * generic-match-head.c: (types_match, single_use): New functions.
30658         * gimple-match-head.c: (types_match, single_use): New functions.
30660 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30662         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30663         rtx type.
30665 2015-05-07  Richard Biener  <rguenther@suse.de>
30667         PR tree-optimization/66002
30668         * passes.def: Schedule another pass_merge_phi after ifcombine, right
30669         before phiopt.
30671 2015-05-07  Marek Polacek  <polacek@redhat.com>
30672             Martin Uecker  <uecker@eecs.berkeley.edu>
30674         * doc/invoke.texi: Document -fsanitize=bounds-strict.
30675         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30676         into SANITIZE_NONDEFAULT.
30677         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30679 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
30681         PR target/66015
30682         * config/alpha/alpha.c (alpha_override_options_after_change): New.
30683         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30684         (alpha_override_options): Move align_loops, align_jumps and
30685         align_functions handling into alpha_override_options_after_change.
30687 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
30688             Chris Jones  <chrisj@nvidia.com>
30689             Joshua Conner  <jconner@nvidia.com>
30691         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30692         linking of crtfastmath.o.
30693         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30695 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
30697         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30698         (cstore<mode>4_unsigned_imm): New expander.
30699         (cstore<mode>4): Remove empty constraint strings.  Use the new
30700         expanders.
30702 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
30704         PR target/64208
30705         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30706         alternatives.
30708 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30710         * config/aarch64/geniterators.sh: Use standard BRE in sed.
30712 2015-05-06  Alan Modra  <amodra@gmail.com>
30714         PR target/66033
30715         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30716         (UNSPEC_NOP): Define.
30717         (reload_vsx_from_gpr<mode>): Add missing DONE.
30718         (reload_gpr_from_vsx<mode>): Likewise.
30719         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30720         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30722 2015-05-06  Christian Bruel  <christian.bruel@st.com>
30724         PR target/66015
30725         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30726         align_jumps, align_functions into aarch64_override_options_after_change.
30728 2015-05-06  Richard Biener  <rguenther@suse.de>
30730         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30731         vect_transform_slp_perm_load to check if we support a permutation
30732         for basic-block vectorization.
30734 2015-05-06  Nick Clifton  <nickc@redhat.com>
30736         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30737         used, even if it is not being used as a frame pointer.
30739 2015-05-05  Jason Merrill  <jason@redhat.com>
30741         * dwarf2out.c (gen_member_die): Don't emit anything for an
30742         anonymous class constructor.
30744 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
30746         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30747         that it reflects the block structure.
30748         (afdo_propagate_edge): Likewise.
30749         (afdo_calculate_branch_prob): Likewise.
30750         (afdo_annotate_cfg): Likewise.
30751         * cfgcleanup.c (equal_different_set_p): Likewise.
30752         (try_crossjump_to_edge): Likewise.
30753         * cgraph.c (cgraph_node::verify_node): Likewise.
30754         * cgraphunit.c (expand_all_functions): Likewise.
30755         * config/i386/i386.c (ix86_expand_copysign): Likewise.
30756         (exact_dependency_1): Likewise.
30757         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30758         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30759         * gensupport.c (process_define_subst): Likewise.
30760         * lto-wrapper.c (merge_and_complain): Likewise.
30761         * tree-if-conv.c (if_convertible_bb_p): Likewise.
30762         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30763         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30764         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30765         * tree-vect-loop.c (vectorizable_reduction): Likewise.
30766         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30767         * tree-vect-stmts.c (vectorizable_shift): Likewise.
30768         * tree-vrp.c (vrp_finalize): Likewise.
30769         * tree.c (variably_modified_type_p): Likewise.
30771 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
30773         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30774         on darwin12 and later.
30775         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30776         file to pass -rdynamic on darwin12 and later.
30777         * config/darwin.opt (rdynamic): Add.
30779 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30781         * doc/extend.texi (C Extensions): Update menu for moved Variable
30782         Attributes and Type Attributes sections.
30784 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30786         PR target/65990
30787         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30788         if rep_8byte stringop strategy was specified for 32-bit target.
30790 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
30792         PR target/65915
30793         * config/i386/i386.md (vector convert to float spltiter): Check for
30794         xmm16+, when splitting scalar float conversion.
30795         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30797 2015-05-05  Nick Clifton  <nickc@redhat.com>
30799         * config/msp430/msp430-opts.h (enum msp430_regions): New.
30800         * config/msp430/msp430.c (msp430_override_options): Complain if
30801         -mcode-region or -mdata-region is used on a non MSP430X.
30802         (msp430_section_attr): New function.  Checks lower, upper and
30803         either attributes.
30804         (msp430_attribute_table): Add lower, upper and either.
30805         (gen_prefix): New function.  Generates a prefix for a section
30806         name.
30807         (msp430_select_section): New function - handles the choice of
30808         section for an object.  Takes into account memory region
30809         attributes and options.
30810         (msp430_function_section): Use gen_prefix.
30811         (TARGET_SECTION_TYPE_FLAGS): Define.
30812         (msp430_section_type_flags): New function.
30813         (TARGET_ASM_UNIQUE_SECTION): Define.
30814         (msp430_unique_section): New function.
30815         (msp430_output_aligned_decl_common): New function.
30816         (msp430_do_not_relax_short_jumps): New function.
30817         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30818         Define.
30819         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30820         * config/msp430/msp430-protos.h
30821         (msp430_do_not_relax_short_jumps): New prototype.
30822         (msp430_output_aligned_decl_common): New prototype.
30823         * config/msp430/msp430.md (length): New attribute.
30824         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30825         then use a long code sequence for short jumps.
30826         * config/msp430/msp430.opt (mcode-region): New.
30827         (mdata-region): New.
30828         * doc/invoke.texi: Document new options.
30829         * doc/extend.texi: Document new attributes.
30831 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30833         * config/aarch64-protos.h (struct cpu_branch_cost): New.
30834         (tune_params): Add field branch_costs.
30835         (aarch64_branch_cost): Declare.
30836         * config/aarch64.c (generic_branch_cost): New.
30837         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30838         (cortexa53_tunings): Likewise.
30839         (cortexa57_tunings): Likewise.
30840         (thunderx_tunings): Likewise.
30841         (xgene1_tunings): Likewise.
30842         (aarch64_branch_cost): Define.
30843         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30845 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30847         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30848         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30849         * config/i386/i386.md: Ditto.
30850         * config/i386/winnt.c: Ditto.
30852 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30854         * doc/extend.texi (__atomic Builtins): Move implementation details
30855         to the end of the description, rewrite opening paragraphs, state
30856         difference with __sync builtins, state C11/C++11 assumptions,
30857         weaken itemized descriptions, add explanation of memory model
30858         behaviour, expand description of compare-exchange, simplify text.
30860 2015-05-05  Renlin Li  <renlin.li@arm.com>
30862         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30864 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
30866         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30867         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30868         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30869         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30870         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30871         * configure: Regenerate.
30872         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30873         * doc/install.texi (aarch64*-*-*): Document new
30874         --enable-fix-cortex-a53-843419 option.
30875         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30876         and -mno-fix-cortex-a53-843419 options.
30878 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30880         PR target/65871
30881         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30883 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
30885         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30886         fix overactive TYPE_MIN_VALUE check and add FIXME for type
30887         compatibility problems.
30889 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30891         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30892         constraints.
30893         (cbranchsi4_reg): New.
30894         * config/microblaze/microblaze.c
30895         (microblaze_expand_conditional_branch_reg): New.
30896         * config/microblaze/microblaze-protos.h
30897         (microblaze_expand_conditional_branch_reg): New prototype.
30899 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30901         * config/microblaze/microblaze.md (peephole2): New.
30903 2015-05-04  Jeff Law  <law@redhat.com>
30905         Revert:
30906         2015-05-04  Jeff Law  <law@redhat.com>
30908         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30909         simplifier to narrow arithmetic.
30910         * generic-match-head.c: (types_match, single_use): New functions.
30911         * gimple-match-head.c: (types_match, single_use): New functions.
30913 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30915         PR target/65987
30916         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30917         (split_branches): Likewise.
30919 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
30921         * common.opt (fdelete-null-pointer-checks): Init to -1.
30922         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30923         override flag_delete_null_pointer_checks default.
30924         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30925         behavior re address zero.  Better document target-specific behavior.
30926         (-fisolate-errneous-paths-dereference): Mention relationship to
30927         -fdelete-null-pointer-checks.
30929 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30931         PR tree-optimization/65984
30932         * ubsan.c: Include tree-cfg.h.
30933         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30934         stmt_could_throw_p test, rename can_throw variable to ends_bb.
30936 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30938         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30939         to CONST_DOUBLE_P predicate.
30940         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30941         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30942         allow only operands that satisfy standard_sse_constant_p predicate.
30943         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30944         to CONST_DOUBLE_P predicate.
30946 2015-05-04  Jeff Law  <law@redhat.com>
30948         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30949         simplifier to narrow arithmetic.
30950         * generic-match-head.c: (types_match, single_use): New functions.
30951         * gimple-match-head.c: (types_match, single_use): New functions.
30953 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
30955         * config/arm/arm.c: Restore bootstrap.
30957 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30959         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30960         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30961         as CONST_WIDE_INT, not CONST_DOUBLE.
30962         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30963         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30964         (ix86_find_base_term): Do not check for CONST_DOUBLE.
30965         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30966         (ix86_build_signbit_mask): Rewrite using wide ints.
30967         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30968         (ix86_rtx_costs): Handle CONST_WIDE_INT.
30969         (find_constant): Ditto.
30970         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30971         using gen_int_mode.
30972         * config/i386/predicates.md (x86_64_immediate_operand)
30973         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30974         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30975         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30976         (const0_operand): Also match const_wide_int.
30977         (constm1_operand): Ditto.
30978         (const1_operand): Ditto.
30980 2015-05-04  Richard Biener  <rguenther@suse.de>
30982         PR tree-optimization/65965
30983         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30984         store groups at gaps.
30986 2015-05-04  Richard Biener  <rguenther@suse.de>
30988         PR tree-optimization/65935
30989         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30990         then make sure to apply that swapping to the IL.
30992 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30994         * Makefile.in (PATCHLEVEL_c): New variable.
30995         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30996         expand the same way as if DEVPHASE_c was non-empty.
30998 2015-05-04  Kai Tietz  <ktietz@redhat.com>
31000         PR target/65559
31001         * lto-wrapper.c (run_gcc): Open filename
31002         in binary-mode.
31004 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
31006         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
31007         sections up in file, to immediately after the Function Attributes
31008         section.
31010 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
31012         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31014 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31016         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31017         (insert_partition_copy_on_edge): Adjust.
31018         (insert_rtx_to_part_on_edge): Likewise.
31019         (insert_part_to_rtx_on_edge): Likewise.
31021 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31023         * function.c (set_return_jump_label): Change type of argument to
31024         rtx_insn *.
31025         * function.h (set_return_jump_label): Adjust.
31027 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31029         * reload.h (struct reg_equivs_t): Change type of init to
31030         rtx_insn *.
31031         * ira.c (fix_reg_equiv_init): Adjust.
31032         * reload1.c (eliminate_regs_1): Likewise.
31033         (init_eliminable_invariants): Likewise.
31035 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31037         * cselib.c (fp_setter_insn): Take a rtx_insn *.
31038         * cselib.h (fp_setter_insn): Adjust.
31040 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31042         * recog.c (struct validate_replace_src_data): Change type of
31043         insn field to rtx_insn *.
31044         (validate_replace_src_group): Change type of argument to rtx_insn *.
31045         * recog.h (validate_replace_src_group): Adjust.
31047 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31049         * haifa-sched.c: Change the type of some variables to rtx_insn *.
31050         * sched-deps.c: Likewise.
31051         * sched-int.h: Likewise.
31052         * sched-rgn.c: Likewise.
31053         * sel-sched.c: Likewise.
31055 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31057         to rtx_insn *.
31058         * config/i386/i386.c: Change the type of some arguments to
31059         rtx_insn *.
31060         * config/arm/arm.c: Likewise.
31062 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31064         * lra-constraints.c: Change type of some arguments to rtx_insn *.
31066 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31068         * regcprop.c (kill_autoinc_value): Change type of argument to
31069         rtx_insn *.
31071 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31073         * genrecog.c (print_subroutine): Adjust.
31074         * recog.c (get_bool_attr_mask_uncached): Likewise.
31075         * recog.h (struct recog_data_d): Change the type of insn to
31076         rtx_insn *.
31078 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31080         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31082 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31084         * df-problems.c (df_set_note): Change type of argument to
31085         rtx_insn *.
31087 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31089         * builtins.c (expand_builtin_trap): Change type of local
31090         variable to rtx_insn *.
31091         (add_sched_insns_for_speculation): Likewise.
31092         (ix86_emit_save_regs): Likewise.
31093         (get_scratch_register_on_entry): Likewise.
31094         (ix86_emit_restore_reg_using_pop): Likewise.
31095         (ix86_emit_leave): Likewise.
31096         (ix86_emit_restore_regs_using_mov): Likewise.
31097         (ix86_expand_epilogue): Likewise.
31098         Likewise.
31099         (rl78_alloc_physical_registers_umul): Likewise.
31100         * cselib.c (discard_useless_locs): Likewise.
31101         (cselib_invalidate_regno): Likewise.
31102         (cselib_invalidate_mem): Likewise.
31103         * function.c (expand_function_start): Likewise.
31104         (emit_use_return_register_into_block): Likewise.
31105         * gcse.c: Likewise.
31106         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31107         * ifcvt.c (noce_get_alt_condition): Likewise.
31108         * loop-doloop.c (doloop_condition_get): Likewise.
31109         * lra-constraints.c (inherit_in_ebb): Likewise.
31110         * modulo-sched.c (sms_schedule_by_order): Likewise.
31111         * recog.c (next_insn_tests_no_inequality): Likewise.
31112         * reorg.c (emit_delay_sequence): Likewise.
31113         (update_reg_dead_notes): Likewise.
31114         (fix_reg_dead_note): Likewise.
31115         (fill_slots_from_thread): Likewise.
31116         (delete_computation): Likewise.
31118 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
31120         * doc/extend.texi (Variable Attributes): Add menu and proper
31121         @nodes to subsections.  Move Microsoft Windows attributes to
31122         their own subsection.
31123         (Type Attributes): Reorganize introduction to remove duplicate
31124         list of attributes.  Add menu and proper @nodes to subsections.
31125         Alphabetize the main table of common attributes.
31127 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31129         * match.pd: New simplification patterns.
31130         (x + (x & 1))  -> ((x + 1) & ~1)
31131         (x & ~(x & y)) -> ((x & ~y))
31132         (x | ~(x | y)) -> ((x | ~y))
31134 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31136         * target.def (attribute_table): Mention that struct attribute_spec
31137         is defined in tree-core.h rather than tree.h
31138         * doc/tm.texi: Regenerate.
31140 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
31142         * genrecog.c (test): Rename to rtx_test.  Update rest of file
31143         accordingly.
31145 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
31147         PR translation/65959
31148         * params.h (DEFPARAM): Rename msgid to nocmsgid.
31150 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31152         * config/aarch64/aarch64-protos.h (tune_params):
31153         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31154         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31155         Return value depending on target.
31156         (generic_tunings): Initialize new target settings.
31157         (cortexa53_tunings): Likewise.
31158         (cortexa57_tunings): Likewise.
31159         (thunderx_tunings): Likewise.
31160         (xgene1_tunings): Likewise.
31162 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31164         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31165         Make Cortex-A53 shift costs more accurate.
31167 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31169         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31170         UNSIGNED_FLOAT.
31172 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31174         * config/aarch64/aarch64.c (aarch64_rtx_costs):
31175         Calculate cost of op0 and op1 in PLUS and MINUS cases.
31177 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31179         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31180         Add cost of op0 in the compare-with-fpzero case.
31182 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
31184         * builtins.c (fold_builtin_1): Remove spurious second
31185         semicolon.
31186         * cgraph.h (symtab_node::get_availability): Likewise.
31187         * opts.c (common_handle_option): Remove spurious second semicolon.
31188         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31189         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31191 2015-04-30  Caroline Tice  <cmtice@google.com>
31193         PR gcov-profile/65929
31194         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31195         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31196         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31197         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31198         * doc/tm.texi: Regenerate.
31199         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
31200         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31201         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
31202         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31204 2015-04-30  Marek Polacek  <polacek@redhat.com>
31206         * varasm.c (handle_cache_entry): Fix logic.
31208 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31210         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31211         (*extrsi5_insn_uxtw_alt): Likewise.
31212         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31213         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31214         operations.
31216 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31218         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31219         fabd in ABS case.
31221 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31223         * config/aarch64/aarch64.md
31224         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31225         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31226         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31227         appropriately.  Handle alternative EON form.
31229 2015-04-30  Renlin Li  <renlin.li@arm.com>
31231         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31232         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31234 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31236         PR ipa/65873
31237         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31238         -fstrict-aliasing boundaries.
31240 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31242         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31243         and [SU]MNEGL patterns.
31245 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31247         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31248         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31249         combined arithmetic-shift ops.  Properly handle all shift and extend
31250         operations that can occur in combination with PLUS/MINUS.
31251         Rename maybe_fma to compound_p.
31252         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31253         arithmetic and shift operations.
31255 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31257         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31258         rather than arith_shift cost when costing ADD/MINUS of an
31259         extended value.
31261 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31263         PR lto/65948
31264         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31265         to itself.
31267 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
31269         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31270         are for the same position.
31272 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
31274         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
31275         vectorize_loops.
31276         (vectorize_loops): Use it.
31278 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31280         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31281         for aggregate types.
31282         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31283         type to be non_ODR.
31284         * tree.c (need_assembler_name_p): Compute mangled name for
31285         non-fundamental types and integer types.
31287 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
31289         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31290         manual swaps.
31291         * expr.c (expand_expr_real_2): Likewise.
31293 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31295         * tree.c (build_common_builtin_nodes): Do not build
31296         __builtin_alloca_with_align as equivalent of library alloca.
31298 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31300         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31301         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31302         bugus variants.
31303         * tree.c: Include print-tree.h and ipa-utils.h
31304         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31305         (free_lang_data_in_cgraph): Call verify_type.
31306         (verify_type_variant): New function.
31307         (verify_type): New function.
31308         * tree.h (verify_type): Declare.
31310 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
31312         * config/mips/mips-cpus.def: (mips4): Change default processor
31313         from PROCESSOR_R8000 to PROCESSOR_R10000.
31315 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
31317         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31318         la/jalr instead of jal.
31320 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
31322         PR target/65871
31323         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31324         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31325         (setcc+movzbl peephole2): Check also clobbered reg.
31326         (setcc+andl peephole2): Ditto.
31328 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31330         PR libgomp/65099
31331         * config/nvptx/mkoffload.c (target_ilp32): New variable.
31332         (main): Set it depending on "-foffload-abi=[...]".
31333         (compile_native, main): Use it to pass "-m32" or "-m64" to the
31334         compiler.
31336 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31338         PR target/65770
31339         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31340         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31341         Flip lane index back at assembly time for bigendian.
31343 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31345         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31346         * gimplify.c (gimplify_omp_workshare): Use it.
31348 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31350         * Makefile.in (build/genrecog.o): Depend on inchash.h.
31351         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31352         build/inchash.o
31353         * genrecog.c: Rewrite most of the code except for the third page.
31355 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31357         * inchash.h, inchash.c: Include bconfig.h for build objects.
31358         * Makefile.in (build/inchash.o): New rule.
31360 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
31362         PR target/65924
31363         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31364         number in type attribute expression.
31366 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31368         * loop-iv.c (canon_condition): Generalize to all types of integer
31369         constant.
31371 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
31373         * gimple-walk.c: Prune duplicate or unneeded includes.
31374         (walk_gimple_asm): Only call parse_input_constraint or
31375         parse_output_constraint if their findings are used.
31376         Honour parse_input_constraint and parse_output_constraint
31377         result.
31379 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31381         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31383 2015-04-29  Tom de Vries  <tom@codesourcery.com>
31385         PR tree-optimization/65893
31386         * passes.def (pass_all_optimizations): Move pass_stdarg to after
31387         pass_dce.
31389 2015-04-29  Richard Biener  <rguenther@suse.de>
31391         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31392         compute GROUP_SIZE for basic-block SLP.
31393         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31394         take into account gaps.
31395         (vect_get_mask_element): Properly reject references to previous
31396         vectors.
31397         (vect_transform_slp_perm_load): Likewise.
31399 2015-04-29  Christian Bruel  <christian.bruel@st.com>
31401         PR target/64835
31402         * config/i386/i386.c (ix86_default_align): New function.
31403         (ix86_override_options_after_change): Call ix86_default_align.
31404         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31405         (ix86_override_options_after_change): New function.
31407 2015-04-28  Jeff Law  <law@redhat.com>
31409         * tree-ssa-dom.c (record_equality); Fix comment typos.
31411 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31413         PR tree-optimization/65887
31414         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31416 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
31418         * doc/extend.texi (Declaring Attributes of Functions): Split into
31419         subsections by target.  Alphabetize the table of common attributes.
31420         Rewrite some of the introductory text to reflect the new structure.
31421         Update some cross-references to point to the new subsections.
31422         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
31423         duplicate copies in the discussion of function, label, and type
31424         attributes.
31426 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
31428         PR bootstrap/65910
31429         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31431 2015-04-28  Jason Merrill  <jason@redhat.com>
31433         PR c++/65734
31434         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31435         (finalize_type_size): Respect TYPE_USER_ALIGN.
31436         (layout_type) [ARRAY_TYPE]: Likewise.
31438 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
31440         * config/arm/arm.md (*arm_movt): Fix type attribute.
31441         (*cmpsi_shiftsi): Likewise.
31442         (*cmpsi_shiftsi_swp): Likewise.
31443         (*movsicc_insn): Likewise.
31444         (*cond_move): Likewise.
31445         (*if_plus_move): Likewise.
31446         (*if_move_plus): Likewise.
31447         (*if_arith_move): Likewise.
31448         (*if_move_arith): Likewise.
31449         (*if_shift_move): Likewise.
31450         (*if_move_shift): Likewise.
31451         (*arm_movtas_ze): Likewise.
31452         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31453         redundancy and type attribute.
31454         (*thumb2_movsi_insn): Fix type attribute.
31455         (*thumb2_addsi_short): Likewise.
31456         (thumb2_addsi3_compare0): Likewise.
31457         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31458         attributes accordingly.
31460 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
31462         PR other/65911
31463         * function.c (pad_to_arg_alignment): Add parentheses.
31465 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
31467         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31468         libgcc/config/frv/elf-lib.h.
31470 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31472         * tree-call-cdce.c: Fix example in header comment.
31474 2015-04-28  Richard Biener  <rguenther@suse.de>
31476         PR tree-optimization/62283
31477         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31478         fails fatally and we are vectorizing a basic-block simply
31479         cause the child to be constructed piecewise.
31480         (vect_analyze_slp_cost_1): Adjust.
31481         (vect_detect_hybrid_slp_stmts): Likewise.
31482         (vect_bb_slp_scalar_cost): Likewise.
31483         (vect_get_constant_vectors): For piecewise constructed
31484         constants place them after the last def.
31485         (vect_get_slp_defs): Adjust.
31486         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31487         externals for basic-block vectorization.
31489 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31491         PR target/63503
31492         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31493         aarch64-*-*.
31494         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31495         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31496         (AARCH64_TUNE_FMA_STEERING): Likewise.
31497         * config/aarch64/aarch64-cores.def: Set
31498         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31499         FMUL/FMADD instructions.
31500         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31501         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
31502         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31503         * config/aarch64/cortex-a57-fma-steering.h: New file.
31504         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31506 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
31508         * gensupport.c (std_preds): Add missing codes to address_operand entry.
31510 2015-04-28  Richard Biener  <rguenther@suse.de>
31512         PR tree-optimization/65851
31513         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31514         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
31515         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
31516         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31517         (ccp_visit_phi_node): Adjust.
31518         (evaluate_stmt): For simplifications to SSA names return its
31519         lattice value if that isn't VARYING.  Return immediately when
31520         simplified to a constant.
31521         (visit_assignment): Adjust.
31522         (ccp_visit_stmt): Likewise.
31524 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31526         PR tree-optimization/65818
31527         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31528         evaluated.
31530 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31532         * calls.c (save_fixed_argument_area): Don't check
31533         ARGS_GROW_DOWNWARD with the preprocessor.
31534         (restore_fixed_argument_area): Likewise.
31535         (mem_overlaps_already_clobbered_arg_p): Likewise.
31536         (check_sibcall_argument_overlap): Likewise.
31537         (expand_call): Likewise.
31538         (emit_library_call_value_1): Likewise.
31539         (store_one_arg): Likewise.
31540         * function.c (assign_parms): Likewise.
31541         (locate_and_pad_parm): Likewise.
31542         (pad_to_arg_alignment): Likewise.
31543         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31545 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31547         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31548         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31549         * calls.c (save_fixed_argument_area): Don't chekc if
31550         ARGS_GROW_DOWNWARD is defined.
31551         (restore_fixed_argument_area): Likewise.
31552         (mem_overlaps_already_clobbered_arg_p): Likewise.
31553         (check_sibcall_argument_overlap): Likewise.
31554         (expand_call): Likewise.
31555         (emit_library_call_value_1): Likewise.
31556         (store_one_arg): Likewise.
31557         * function.c (assign_parms): Likewise.
31558         (locate_and_pad_parm): Likewise.
31559         (pad_to_arg_alignment): Likewise.
31560         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31562 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31564         * defaults.h (gen_epilogue): New function.
31565         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31566         defined.
31567         * cfgrtl.c (cfg_layout_finalize): Likewise.
31568         * df-scan.c: Likewise.
31569         * function.c (thread_prologue_and_epilogue_insns): Likewise.
31570         (reposition_prologue_and_epilogue_notes): Likewise.
31571         * reorg.c (find_end_label): Likewise.
31572         * toplev.c: Likewise.
31574 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31576         * bb-reorder.c (HAVE_return): Don't check if its undefined.
31577         * defaults.h (gen_simple_return): New function.
31578         (gen_simple_return): Likewise.
31579         (HAVE_return): Add default definition to false.
31580         (HAVE_simple_return): Likewise.
31581         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31582         HAVE_return and HAVE_simple_return are defined.
31583         * function.c (gen_return_pattern): Likewise.
31584         (convert_jumps_to_returns): Likewise.
31585         (thread_prologue_and_epilogue_insns): Likewise.
31586         * reorg.c (find_end_label): Likewise.
31587         (dbr_schedule): Likewise.
31588         * shrink-wrap.c: Likewise.
31589         * shrink-wrap.h: Likewise.
31591 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31593         * defaults.h (EPILOGUE_USES): Add default definition of false.
31594         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31595         * resource.c (init_resource_info): Likewise.
31597 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31599         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31600         to false.
31601         * dwarf2out.c (field_byte_offset): REmove check if
31602         PCC_BITFIELD_TYPE_MATTERS is defined.
31603         * stor-layout.c (layout_decl): Likewise.
31604         (update_alignment_for_field): Likewise.
31605         (place_field): Likewise.
31607 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31609         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31610         true.
31611         * regrename.c (check_new_reg_p): Remove check if
31612         HARD_REGNO_RENAME_OK is defined.
31613         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31615 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31617         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31618         * cse.c (fold_rtx): Likewise.
31619         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31620         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31621         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31622         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31623         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31624         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31625         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31626         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31627         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31628         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31629         * Likewise.
31630         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31631         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31632         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31633         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31634         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31635         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31636         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31637         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31638         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31639         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31640         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31641         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31642         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31643         * doc/tm.texi: Regenerate.
31644         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31645         either true or false.
31647 2015-04-27  Jeff Law  <law@redhat.com>
31649         PR tree-optimization/65217
31650         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31651         of them has a single use, make sure it is the LHS of the implied
31652         copy.
31654 2015-04-28  Alan Modra  <amodra@gmail.com>
31656         PR target/65810
31657         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31658         (offsettable_ok_by_alignment): Use minimum of decl and toc
31659         pointer alignment.  Replace dead code with assertion.
31660         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
31661         case if size exceeds toc pointer alignment.
31662         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31663         (rs6000_emit_move): Likewise.
31664         * configure.ac: Add linker toc pointer alignment check.
31665         * configure: Regenerate.
31666         * config.in: Regenerate.
31668 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
31670         * config.gcc: Add h8300-*-linux.
31671         * config/h8300/linux.h: New.
31672         * config/h8300/t-linux: New.
31673         * config/h8300/h8300.c (h8300_option_override): Normal mode
31674         is not supported for h8300-*-linux.
31675         (h8300_file_start): Target priority change.
31676         (get_shift_alg): Likewise.
31677         (h8300_shift_need_scratch_p): Likewise.
31678         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31679         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31681 2015-04-27  Caroline Tice  <cmtice@google.com>
31683         * final.c (final_scan_insn):  Output cold_function_name as function
31684         type.
31685         * varasm.c (cold_function_name):  Make global.
31686         (assemble_start_function):  Re-set cold_function_name.
31687         (assemble_end_function): Output cold partition size.
31688         * varasm.h (cold_function_name):  Declare global.
31690 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
31692         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31693         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31694         constraint.
31695         (*movxi_internal_avx512f): Ditto.
31696         (define_split): Check for xmm16+, when splitting scalar float_extend.
31697         (*extendsfdf2_mixed): Use "v" constraint.
31698         (define_split): Check for xmm16+, when splitting scalar float_truncate.
31699         (*truncdfsf_fast_sse): Use "v" constraint.
31700         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31701         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31702         (define_peephole2): Check for xmm16+, when converting scalar
31703         float_truncate.
31704         (define_peephole2): Check for xmm16+, when converting scalar
31705         float_extend.
31706         (*fop_<mode>_comm_mixed): Use "v" constraint.
31707         (*fop_<mode>_comm_sse): Ditto.
31708         (*fop_<mode>_1_mixed): Ditto.
31709         (*sqrt<mode>2_sse): Ditto.
31710         (*ieee_s<ieee_maxmin><mode>3): Ditto.
31712 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31714         * combine.c (simplify_if_then_else): Use std::swap instead
31715         of manually swapping.
31716         (known_cond): Likewise.
31717         (simplify_comparison): Likewise.
31719 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
31721         PR target/64579
31722         * config/rs6000/htm.md: Remove all define_expands.
31723         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31724         UNSPECV_HTM_TABORTWCI): Remove.
31725         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31726         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31727         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31728         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31729         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31730         tabortwci_internal): Remove define_insns.
31731         (tabort<wd>c, tabort<wd>ci): New define_insns.
31732         (tabort): Use gpc_reg_operand.
31733         (tcheck): Remove operand.
31734         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31735         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31736         expected value.
31737         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31738         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
31739         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31740         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31741         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31742         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31743         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31744         (tcheck): Remove builtin argument.
31745         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31746         not TARGET_64BIT.
31747         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
31748         tabortdc and tabortdci builtins when not in 64-bit mode.
31749         Modify code to handle the loss of the HTM define_expands.
31750         Emit code to copy the CR register to TARGET.
31751         (htm_init_builtins): Modify code to handle the loss of the HTM
31752         define_expands.
31753         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31754         (RS6000_BTC_64BIT): Likewise.
31755         (RS6000_BTC_CR): New macro.
31756         * doc/extend.texi: Update documentation for htm builtins.
31758 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31760         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31761         of manually swapping.
31762         (simplify_associative_operation): Likewise.
31763         (simplify_binary_operation): Likewise.
31764         (simplify_plus_minus): Likewise.
31765         (simplify_relational_operation): Likewise.
31766         (simplify_ternary_operation): Likewise.
31768 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31770         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31771         (xs_hi_nonmemory_operand): Remove error.
31772         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31773         general_operand rather than xs_hi_general_operand.
31775 2015-04-27  Richard Biener  <rguenther@suse.de>
31777         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31778         (record_equivalences_from_stmt): Valueize rhs.
31779         (record_equality): Canonicalize x and y order via
31780         tree_swap_operands_p.  Do not swap operands for same loop depth.
31782 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
31784         PR target/65296
31785         PR target/65895
31786         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31787         Add hint how to use own spec file.
31789 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
31791         PR tree-optimization/65875
31792         * tree-vrp.c (update_value_range): If in is_new case setting
31793         old_vr to VR_VARYING, also set new_vr to it.  Remove
31794         old_vr->type == VR_VARYING test.
31795         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31796         SSA_PROP_INTERESTING if update_value_range returned true,
31797         but new range is VR_VARYING.
31799 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31801         * combine.c (sign_extend_short_imm): New.
31802         (set_nonzero_bits_and_sign_copies): Use above new function for sign
31803         extension of src short immediate.
31804         (reg_nonzero_bits_for_combine): Likewise for tem.
31806 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31808         * stor-layout.c (self_referential_component_ref_p): New predicate.
31809         (copy_self_referential_tree_r): Use it.
31810         (self_referential_size): Punt for simple operations directly involving
31811         self-referential component references.
31812         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31814 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31816         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31818 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31820         * vec.h (vec): Make splice arguments const.  Update definitions
31821         accordingly.
31823 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
31825         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31826         alternatives.
31828 2015-04-26  Tom de Vries  <tom@codesourcery.com>
31830         PR tree-optimization/65826
31831         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31833 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
31835         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31836         (*madd3<mode>): Ditto.
31837         (*msub4<mode>): Ditto.
31838         (*msub3<mode>): Ditto.
31839         (*nmadd4<mode>): Ditto.
31840         (*nmadd3<mode>): Ditto.
31841         (*nmadd4<mode>_fastmath): Ditto.
31842         (*nmadd3<mode>_fastmath): Ditto.
31843         (*nmsub4<mode>): Ditto.
31844         (*nmsub3<mode>): Ditto.
31845         (*nmsub4<mode>_fastmath): Ditto.
31846         (*nmsub3<mode>_fastmath): Ditto.
31848 2015-04-24  Jason Merrill  <jason@redhat.com>
31850         PR c++/50800
31851         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31852         down when building TYPE_CANONICAL.
31853         (build_pointer_type_for_mode): Likewise.
31855 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
31857         * genrecog.c (validate_pattern): Check matching constraint refers
31858         to a lower numbered operand.
31860 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31862         PR target/65849
31863         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31864         save to independent variables use the Save attribute.  This will
31865         allow these options to be modified with the #pragma/attribute
31866         target support.
31867         (-mallow-movmisalign): Likewise.
31868         (-mallow-df-permute): Likewise.
31869         (-msched-groups): Likewise.
31870         (-malways-hint): Likewise.
31871         (-malign-branch-targets): Likewise.
31872         (-mvectorize-builtins): Likewise.
31873         (-msave-toc-indirect): Likewise.
31875         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31876         can be set via the #pragma/attribute target support.
31877         (rs6000_opt_vars): Likewise.
31878         (rs6000_inner_target_options): If VSX was set, also set
31879         -mno-avoid-indexed-addresses.
31881 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31883         * config/arm/iterators.md (shiftable_ops): Rename to...
31884         (SHIFTABLE_OPS): ... This.  Update use in comments.
31885         (ior_xor): Rename to...
31886         (IOR_XOR): ... This.
31887         (vqh_ops): Rename to...
31888         (VQH_OPS): ... This.
31889         (vqhs_ops): Rename to...
31890         (VQHS_OPS): ... This.
31891         (rshifts): Rename to...
31892         (RSHIFTS): ... This.
31893         (returns): Rename to...
31894         (RETURNS): ... This.
31895         * config/arm/arm.md: Update uses of the above.
31896         * config/arm/neon.md: Likewise.
31898 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31900         * config.host (case ${host}): Add aarch64*-*-linux case.
31901         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31902         fields to all the cores.
31903         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31904         Add MCPU_MTUNE_NATIVE_SPECS.
31905         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31906         field to all extensions.
31907         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31908         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31909         Adjust definition of AARCH64_OPT_EXTENSION.
31910         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31911         (MCPU_MTUNE_NATIVE_SPECS): Define.
31912         * config/aarch64/driver-aarch64.c: New file.
31913         * config/aarch64/x-arch64: New file.
31914         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31915         -mtune and -march.
31917 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31918             Wei Mi  <wmi@google.com>
31920         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31921         * config/i386/i386.c (extract_base_offset_in_addr): New function.
31922         (ix86_operands_ok_for_move_multiple): Ditto.
31923         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31924         (movlpd/movhpd to movupd peephole2): Ditto.
31926 2015-04-24  Marek Polacek  <polacek@redhat.com>
31928         PR c/61534
31929         * input.h (from_macro_expansion_at): Define.
31931         PR c/63357
31932         * doc/invoke.texi: Update description of -Wlogical-op.
31934 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31936         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31937         ternary operator in fprintf and harmonize spacing.
31939 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31941         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31942         Mark operand1 commutative.
31944 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31946         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31947         input operands in memory.
31948         (*vec_concatv2si_sse4_1): Ditto.
31949         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31950         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31951         register_operand.
31952         (vec_extract_hi_v32hi): Ditto.
31953         (vec_extract_hi_v64hi): Ditto.
31954         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31956 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31957             Steven Bosscher <steven@gcc.gnu.org>
31959         PR rtl-optimization/34503
31960         * cprop.c (cprop_reg_p): New.
31961         (hash_scan_set): Use above function to check if register can be
31962         propagated.
31963         (find_avail_set): Return up to two sets, one whose source is a
31964         register and one whose source is a constant.  Sets are returned in an
31965         array passed as parameter rather than as a return value.
31966         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
31967         sets returned by find_avail_set, starting with the one whose source is
31968         a constant. Use cprop_reg_p to check if register can be propagated.
31969         (do_local_cprop): Use cprop_reg_p to check if register can be
31970         propagated.
31971         (implicit_set_cond_p): Likewise.
31973 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31975         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31976         (sem_function::equals): IGNORED_NODES parameter is now unused;
31977         update call of equals_private.
31978         (sem_function::equals_private): Do not call equals_wpa; skip
31979         gimple body matching if there is no body.
31980         (sem_function::init): Add logic to hash tthunk info.
31981         (sem_function::parse): Also parse thunks.
31982         * ipa-icf.h (equals_private): Update declaration.
31984 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31986         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31987         asterisk from name so this can be generated directly.
31988         (*altivec_stvx_<mode>_internal): Likewise.
31989         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31990         that this is never called during or after reload/lra.
31991         (rs6000_frame_related): Remove split_reg
31992         argument and logic that references it.
31993         (emit_frame_save): Remove last parameter from call to
31994         rs6000_frame_related.
31995         (rs6000_emit_prologue): Remove last parameter from eight calls to
31996         rs6000_frame_related.  Force generation of stvx instruction for
31997         Altivec register saves.  Remove split_reg handling, which is no
31998         longer needed.
31999         (rs6000_emit_epilogue):  Force generation of lvx instruction for
32000         Altivec register restores.
32002 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32004         * config/rs6000/rs6000.opt (mcrypto): Change option description to
32005         match category changes in ISA 2.07B.
32007 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32009         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32010         iterators.
32011         (cmp_op, cmp_type): New code attributes.
32012         (NEON_VCMP, NEON_VACMP): New int iterators.
32013         (cmp_op_unsp): New int attribute.
32014         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32015         (neon_vceq<mode>): Delete.
32016         (neon_vc<cmp_op><mode>_insn): New pattern.
32017         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32018         (neon_vcgeu<mode>): Delete.
32019         (neon_vcle<mode>): Likewise.
32020         (neon_vclt<mode>: Likewise.
32021         (neon_vcage<mode>): Likewise.
32022         (neon_vcagt<mode>): Likewise.
32023         (neon_vca<cmp_op><mode>): New define_expand.
32024         (neon_vca<cmp_op><mode>_insn): New pattern.
32025         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32027 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32029         * tree.h (attribute_value_equal): Declare.
32030         * tree.c (attribute_value_equal): Export.
32032 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32034         * ipa-icf.c (sem_item::compare_attributes): New function.
32035         (sem_item::compare_referenced_symbol_properties): Compare variable
32036         attributes.
32037         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32038         (sem_function::param_used_p): New function.
32039         (sem_function::equals_wpa): Fix attribute comparsion; match
32040         parameter type codes; do not compare paremter flags when
32041         they are not used; compare edge flags; compare indirect calls.
32042         (sem_item::update_hash_by_addr_refs): Hash reference type.
32043         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32044         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32045         reference use type.
32046         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32047         * ipa-icf.h (compare_attributes, param_used_p): Declare.
32049 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32051         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32052         cleanup.
32053         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32054         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32055         (sem_item::compare_referenced_symbol_properties): New.
32056         (sem_item::hash_referenced_symbol_properties): New.
32057         (sem_item::compare_cgraph_references): Rename to ...
32058         (sem_item::compare_symbol_references): ... this one; use
32059         compare_referenced_symbol_properties.
32060         (sem_function::equals_wpa): Do not compare
32061         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32062         DECL_IS_OPERATOR_NEW; compare pointer sizes.
32063         (sem_item::update_hash_by_addr_refs): Call
32064         hash_referenced_symbol_properties.
32065         (sem_item::update_hash_by_local_refs): Cleanup.
32066         (sem_function::merge): Do not mix up symbol properties.
32067         (sem_variable::equals_wpa): Use compare_symbol_references.
32068         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32069         (sem_item::hash_referenced_symbol_properties): New.
32070         (sem_item::compare_symbol_references): New.
32071         (sem_item::compare_cgraph_references): Remove.
32073 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
32075         PR target/26702
32076         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32077         Emit size of local.
32079 2015-04-23  Nick Clifton  <nickc@redhat.com>
32081         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32082         ATTRIBUTE_UNUSED to x parameter.
32083         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32085 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32087         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32088         TARGET_CRYPTO to TARGET_P8_VECTOR>
32089         (crypto_vpermxor_<mode>): Likewise.
32090         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32091         (BU_CRYPTO_3A): Likewise.
32092         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32093         (BU_CRYPTO_OVERLOAD_3A): New #define.
32094         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32095         (VPMSUMH): Likewise.
32096         (VPMSUMW): Likewise.
32097         (VPMSUMD): Likewise.
32098         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32099         (VPERMXOR_V4SI): Likewise.
32100         (VPERMXOR_V8HI): Likewise.
32101         (VPERMXOR_V16QI): Likewise.
32102         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32103         BU_CRYPTO_OVERLOAD_2A.
32104         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32105         BU_CRYPTO_OVERLOAD_3A.
32106         * config/rs6000/rs6000.opt (mcrypto): Change description of
32107         option.
32109 2015-04-23  Richard Biener  <rguenther@suse.de>
32111         * passes.def: Remove copy propagation passes run directly after CCP.
32112         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32113         SSA names.
32114         (ccp_visit_phi_node): Rework to handle first executable edge
32115         specially.
32117 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
32119         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32120         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32121         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32122         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32123         (thumb_legimitimize_reload_address): Remove.
32124         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32125         Remove.
32126         (thumb_legimitimize_reload_address): Remove.
32128 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32130         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32132 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32134         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32135         MAX_LDM_STM_OPS.
32136         (store_multiple): Likewise.
32138 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32140         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32141         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32142         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32143         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32144         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32145         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32146         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32147         Specify issue_rate value.
32148         (arm_issue_rate): Look up issue rate from tuning structs. Remove
32149         large switch statement.
32150         (arm_marvell_pj4_tune): New struct.
32151         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32152         struct.
32154 2015-04-23  Richard Biener  <rguenther@suse.de>
32156         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32157         (vect_find_last_store_in_slp_instance): Rename to ...
32158         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32159         (vect_analyze_slp_cost_1): Use vector_load for constant defs
32160         and vec_construct for external defs when estimating prologue cost.
32161         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32162         Compute costs here only when vectorizing loops.
32163         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32164         have been determined.
32165         (vect_schedule_slp_instance): Simplify vectorized code placement
32166         and prepare for in-BB external defs.
32167         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32168         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32169         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32170         guard.
32171         (vect_model_load_cost): Likewise.
32172         (vectorizable_store): Instead add it here.
32173         (vectorizable_load): Likewise.
32174         (vect_is_simple_use): Dump def type textually.
32176 2015-04-23  Richard Biener  <rguenther@suse.de>
32178         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32179         * cfgloop.c (verify_loop_structure): Verify the root loop node.
32180         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32181         instead of get_eh_region_from_lp_number.
32182         * loop-init.c (fix_loop_structure): If we removed a loop, reset
32183         the SCEV cache.
32185 2015-04-23  Anton Blanchard  <anton@samba.org>
32187         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32188         need for -mprofile-kernel to save LR to stack.
32190 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32192         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32193         adjustments.
32194         (insn_is_swappable_p): Return 1 for a convert from double to
32195         single precision when all of its uses are splats of BE element
32196         zero.
32198 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
32200         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32202 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32204         PR target/65456
32205         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
32206         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32207         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32208         option.
32209         (rs6000_builtin_mask_for_load): Return 0 for targets with
32210         efficient unaligned VSX accesses so that the vectorizer will use
32211         direct unaligned loads.
32212         (rs6000_builtin_support_vector_misalignment): Always return true
32213         for targets with efficient unaligned VSX accesses.
32214         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32215         stores on targets with efficient unaligned VSX accesses is almost
32216         always the same as the cost of an aligned load or store, so model
32217         it that way.
32218         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32219         unaligned vectors if we have efficient unaligned VSX accesses.
32220         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32221         undocumented option.
32223 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32225         Revert:
32226         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32228         * config.gcc (LIBC_MUSL): New tm_defines macro.
32229         * config/linux.h (OPTION_MUSL): Define.
32230         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32231         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32232         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32234         * config/linux.opt (mmusl): New option.
32235         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32236         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32238         * configure: Regenerate.
32240 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32242         * config.gcc (LIBC_MUSL): New tm_defines macro.
32243         * config/linux.h (OPTION_MUSL): Define.
32244         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32245         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32246         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32248         * config/linux.opt (mmusl): New option.
32249         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32250         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32252         * configure: Regenerate.
32254 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
32256         * doc/invoke.texi (-fsanitize-sections): Update description.
32257         * asan.c (set_sanitized_sections): Parse incoming arg.
32258         (section_sanitized_p): Support wildcards.
32260 2015-04-22  Tom de Vries  <tom@codesourcery.com>
32262         PR tree-optimization/65823
32263         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32264         equality between ap_copy and ap.
32266 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32268         PR target/47098
32269         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32271 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32273         PR target/47122
32274         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32276 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32278         PR target/55144
32279         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32280         remove already contained t-files.
32282 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32284         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32285         Remove unneeded forward declarations.
32286         (suitable_for_tail_call_opt_p): Commentary typo fix.
32288 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32290         * varasm.c (emit_bss): Remove redundant guard.
32292 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32294         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32296 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32298         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32300 2015-04-22  Hale Wang  <hale.wang@arm.com>
32301             Terry Guo  <terry.guo@arm.com>
32303         PR rtl-optimization/64818
32304         * combine.c (can_combine_p): Don't combine user-specified
32305         register if it is in an asm input.
32307 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
32309         PR ipa/65076
32310         * passes.def (early_optimizations): Add pass_dse.
32312 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32314         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32315         * reorg.c (redundant_insn): Remove ifdef
32316         INSN_REFERENCES_ARE_DELAYED.
32317         * resource.c (mark_referenced_resources): Likewise.
32319 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32321         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32322         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32323         * resource.c (mark_set_resources): Likewise.
32325 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32327         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32328         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32329         (flow_find_head_matching_sequence): Likewise.
32330         (try_head_merge_bb): Likewise.
32331         * combine.c (can_combine_p): Likewise.
32332         (try_combine): Likewise.
32333         (distribute_notes): Likewise.
32334         * df-problems.c (can_move_insns_across): Likewise.
32335         * final.c (final): Likewise.
32336         * gcse.c (insert_insn_end_basic_block): Likewise.
32337         * ira.c (find_moveable_pseudos): Likewise.
32338         * reorg.c (try_merge_delay_insns): Likewise.
32339         (fill_simple_delay_slots): Likewise.
32340         (fill_slots_from_thread): Likewise.
32341         * sched-deps.c (sched_analyze_2): Likewise.
32343 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32345         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32346         PIC_OFFSET_TABLE_REGNUM.
32348 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32350         * alias.c (init_alias_target): Remove ifdef
32351         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32352         * df-scan.c (df_insn_refs_collect): Likewise.
32353         (df_get_regular_block_artificial_uses): Likewise.
32354         (df_get_eh_block_artificial_uses): Likewise.
32355         (df_get_entry_block_def_set): Likewise.
32356         (df_get_exit_block_use_set): Likewise.
32357         * emit-rtl.c (gen_rtx_REG): Likewise.
32358         * ira.c (ira_setup_eliminable_regset): Likewise.
32359         * reginfo.c (init_reg_sets_1): Likewise.
32360         * regrename.c (rename_chains): Likewise.
32361         * reload1.c (reload): Likewise.
32362         (eliminate_regs_in_insn): Likewise.
32363         * resource.c (mark_referenced_resources): Likewise.
32364         (init_resource_info): Likewise.
32366 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32368         * defaults.h (MASK_RETURN_ADDR): New definition.
32369         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32370         MASK_RETURN_ADDR.
32372 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32374         * defaults.h (RETURN_ADDR_OFFSET): New definition.
32375         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32376         RETURN_ADDR_OFFSET.
32377         (expand_builtin_frob_return_addr): Likewise.
32379 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32381         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32382         (try_redirect_by_replacing_jump): Likewise.
32383         (rtl_tidy_fallthru_edge): Likewise.
32384         * combine.c (insn_a_feeds_b): Likewise.
32385         (find_split_point): Likewise.
32386         (simplify_set): Likewise.
32387         * cprop.c (cprop_jump): Likewise.
32388         * cse.c (cse_extended_basic_block): Likewise.
32389         * df-problems.c (can_move_insns_across): Likewise.
32390         * function.c (emit_use_return_register_into_block): Likewise.
32391         * haifa-sched.c (sched_init): Likewise.
32392         * ira.c (find_moveable_pseudos): Likewise.
32393         * loop-invariant.c (find_invariant_insn): Likewise.
32394         * lra-constraints.c (curr_insn_transform): Likewise.
32395         * postreload.c (reload_combine_recognize_const_pattern):
32396         * Likewise.
32397         * reload.c (find_reloads): Likewise.
32398         * reorg.c (delete_scheduled_jump): Likewise.
32399         (steal_delay_list_from_target): Likewise.
32400         (steal_delay_list_from_fallthrough): Likewise.
32401         (redundant_insn): Likewise.
32402         (fill_simple_delay_slots): Likewise.
32403         (fill_slots_from_thread): Likewise.
32404         (delete_computation): Likewise.
32405         * sched-rgn.c (add_branch_dependences): Likewise.
32407 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32409         * genconfig.c (main): Always define HAVE_cc0.
32410         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32411         HAVE_cc0.
32412         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32413         (flow_find_head_matching_sequence): Likewise.
32414         (try_head_merge_bb): Likewise.
32415         * cfgrtl.c (rtl_merge_blocks): Likewise.
32416         (try_redirect_by_replacing_jump): Likewise.
32417         (rtl_tidy_fallthru_edge): Likewise.
32418         * combine.c (do_SUBST_MODE): Likewise.
32419         (insn_a_feeds_b): Likewise.
32420         (combine_instructions): Likewise.
32421         (can_combine_p): Likewise.
32422         (try_combine): Likewise.
32423         (find_split_point): Likewise.
32424         (subst): Likewise.
32425         (simplify_set): Likewise.
32426         (distribute_notes): Likewise.
32427         * cprop.c (cprop_jump): Likewise.
32428         * cse.c (cse_extended_basic_block): Likewise.
32429         * df-problems.c (can_move_insns_across): Likewise.
32430         * final.c (final): Likewise.
32431         (final_scan_insn): Likewise.
32432         * function.c (emit_use_return_register_into_block): Likewise.
32433         * gcse.c (insert_insn_end_basic_block): Likewise.
32434         * haifa-sched.c (sched_init): Likewise.
32435         * ira.c (find_moveable_pseudos): Likewise.
32436         * loop-invariant.c (find_invariant_insn): Likewise.
32437         * lra-constraints.c (curr_insn_transform): Likewise.
32438         * optabs.c (prepare_cmp_insn): Likewise.
32439         * postreload.c (reload_combine_recognize_const_pattern):
32440         * Likewise.
32441         * reload.c (find_reloads): Likewise.
32442         (find_reloads_address_1): Likewise.
32443         * reorg.c (delete_scheduled_jump): Likewise.
32444         (steal_delay_list_from_target): Likewise.
32445         (steal_delay_list_from_fallthrough): Likewise.
32446         (try_merge_delay_insns): Likewise.
32447         (redundant_insn): Likewise.
32448         (fill_simple_delay_slots): Likewise.
32449         (fill_slots_from_thread): Likewise.
32450         (delete_computation): Likewise.
32451         (relax_delay_slots): Likewise.
32452         * sched-deps.c (sched_analyze_2): Likewise.
32453         * sched-rgn.c (add_branch_dependences): Likewise.
32455 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32457         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32458         that is trivially ded on non cc0 targets.
32459         (simplify_set): Likewise.
32460         (mark_used_regs_combine): Likewise.
32461         * cse.c (new_basic_block): Likewise.
32462         (fold_rtx): Likewise.
32463         (cse_insn): Likewise.
32464         (cse_extended_basic_block): Likewise.
32465         (set_live_p): Likewise.
32466         * rtlanal.c (canonicalize_condition): Likewise.
32467         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32469 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32471         * conditions.h: Define macros even if HAVE_cc0 is undefined.
32472         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32473         * final.c: Likewise.
32474         * jump.c: Likewise.
32475         * recog.c: Likewise.
32476         * recog.h: Declare functions even when HAVE_cc0 is undefined.
32477         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32479 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32481         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32482         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32483         * builtins.c (expand_builtin): Remove check if
32484         EH_RETURN_DATA_REGNO is defined.
32485         * df-scan.c (df_bb_refs_collect): Likewise.
32486         (df_get_exit_block_use_set): Likewise.
32487         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32488         * ira-lives.c (process_bb_node_lives): Likewise.
32489         * lra-lives.c (process_bb_lives): Likewise.
32491 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32493         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32494         FIRST_PSEUDO_REG): New.
32495         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32496         (ARG_POINTER_REGNUM): Define to ARGP_REG.
32497         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32498         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32499         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32500         (FIRST_INT_REG): New.
32501         (LAST_INT_REG): New.
32502         (FIRST_*_REG): Define using *_REG.
32503         (LAST_*_REG): Ditto.
32504         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32505         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32506         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32508 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32510         * expmed.c: (synth_mult): Only assume overlapping
32511         shift with previous steps in alg_sub_t_m2 case.
32513 2015-04-21  Richard Biener  <rguenther@suse.de>
32515         PR tree-optimization/65650
32516         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32517         transitions involving copies.
32518         (set_lattice_value): Adjust for copy lattice state.
32519         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32520         if that doesn't dominate the merge point.
32521         (bit_value_unop): Adjust what we treat as varying mask.
32522         (bit_value_binop): Likewise.
32523         (bit_value_assume_aligned): Likewise.
32524         (evaluate_stmt): When we simplified to a SSA name record a copy
32525         instead of dropping to varying.
32526         (visit_assignment): Simplify.
32528         * gimple-match.h (gimple_simplify): Add another callback.
32529         * gimple-fold.c (fold_stmt_1): Adjust caller.
32530         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32531         for the 2nd callback.
32532         * gimple-match-head.c (gimple_simplify): Add a callback that is
32533         used to valueize the stmt operands and use it that way.
32535 2015-04-21  Richard Biener  <rguenther@suse.de>
32537         PR tree-optimization/65788
32538         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32540 2015-04-21  Richard Biener  <rguenther@suse.de>
32542         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32543         vec_construct cost by vec_stmt_cost.
32545 2015-04-21  Richard Biener  <rguenther@suse.de>
32547         * cfghooks.h (create_basic_block): Replace with two overloads
32548         for RTL and GIMPLE.
32549         (split_block): Likewise.
32550         * cfghooks.c (split_block): Rename to ...
32551         (split_block_1): ... this.
32552         (split_block): Add two type-safe overloads for RTL and GIMPLE.
32553         (split_block_after_labels): Call split_block_1.
32554         (create_basic_block): Rename to ...
32555         (create_basic_block_1): ... this.
32556         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32557         (create_empty_bb): Call create_basic_block_1.
32558         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32559         split_block_after_labels.
32560         * omp-low.c (expand_parallel_call): Likewise.
32561         (expand_omp_target): Likewise.
32562         (simd_clone_adjust): Likewise.
32563         * tree-chkp.c (chkp_get_entry_block): Likewise.
32564         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32565         create_basic_block overload.
32566         (cgraph_node::expand_thunk): Likewise.
32567         * tree-cfg.c (make_blocks): Likewise.
32568         (handle_abnormal_edges): Likewise.
32569         * tree-inline.c (copy_bb): Likewise.
32571 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32573         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32574         New pattern.
32575         (*xor_one_cmplsidi3_ze): Likewise.
32577 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32579         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32580         use df_remove_problem rather than manually removing problems, leaving
32581         holes in df->problems_in_order[].
32583 2015-04-21  Tom de Vries  <tom@codesourcery.com>
32585         PR tree-optimization/65802
32586         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32588 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32590         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32591         Increase to 128.
32592         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32593         at '.'.  Assert that there's enough space for everything.
32595 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
32597         PR tree-optimization/64950
32598         Revert:
32599         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
32601         PR target/41089
32602         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32603         as volatile.
32605 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
32607         PR rtl-optimization/64916
32608         * cfgcleanup.c (values_equal_p): New function.
32609         (can_replace_by): Use it.
32611 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
32613         PR c++/65801
32614         * doc/invoke.texi ([-Wnarrowing]): Update.
32616 2015-04-20  Jeff Law  <law@redhat.com>
32618         PR tree-optimization/65658
32619         * tree-ssa-threadupdate.c (redirection_block_p): Remove
32620         redundant test for GIMPLE_ASSIGN in last change.
32622 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
32624         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32625         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32626         (legitimize_tls_address): Ditto.
32627         (ix86_expand_move): Ditto.
32628         (ix86_expand_binary_operator): Remove reload_in_progress checks.
32629         (ix86_expand_unary_operator): Ditto.
32630         * config/i386/predicates.md (index_register_operand): Ditto.
32632 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
32634         * reorg.c (try_merge_delay_insns): Improve correctness checking
32635         for targets with multiple delay slots.
32637 2015-04-20  Jeff Law  <law@redhat.com>
32639         PR tree-optimization/65658
32640         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32641         statements too.
32643 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32645         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32646         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32647         Delete.
32649 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
32651         PR debug/65807
32652         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32654 2015-04-20  Richard Biener  <rguenther@suse.de>
32656         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32657         * gimple-fold.c (gimple_build_valueize): New function.
32658         (gimple_build): Always use gimple_build_valueize as valueize hook.
32660 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
32662         PR target/64134
32663         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32664         and overwrite variable parts if <= 1/2 the elements are variable.
32666 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32668         PR rtl-optimization/65805
32669         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32670         Don't use difference of offset and previous offset if
32671         update_sp_offset is non-zero.
32672         (eliminate_regs_in_insn): Ditto.
32673         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32674         lra_eliminate_regs_1 call.
32675         * lra-constraints.c (get_equiv_with_elimination): Ditto.
32677 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
32679         * hash-table.h: Remove version of hash_table that stored value_type *.
32680         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32681         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32682         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32683         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32684         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32685         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32686         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32687         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32688         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32689         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32690         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32691         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32692         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32693         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32694         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32695         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32697 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32698             Jakub Jelinek  <jakub@redhat.com>
32700         PR target/65787
32701         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32702         subsequent SH_NONE operand does not overwrite an existing *special
32703         value.
32704         (adjust_extract): Handle case where a vec_extract operation is
32705         wrapped in a PARALLEL.
32707 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32709         PR target/65780
32710         * config/i386/i386.c (ix86_binds_local_p): Define only if
32711         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32713 2015-04-17  Jeff Law  <law@redhat.com>
32715         PR tree-optimization/47679
32716         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32717         * tree-ssa-scopedtables.c: New file.
32718         * tree-ssa-scopedtables.h: New file.
32719         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32720         (const_and_copies): Change name/type.
32721         (record_const_or_copy): Move into tree-ssa-scopedtables.c
32722         (record_const_or_copy_1): Similarly.
32723         (restore_vars_to_original_value): Similarly.
32724         (pass_dominator::execute): Create and destroy const_and_copies table.
32725         (thread_across_edge): Update passing of const_and_copies.
32726         (record_temporary_equivalence): Use method calls rather than
32727         manipulating const_and_copies directly.
32728         (record_equality, cprop_into_successor_phis): Similarly.
32729         (dom_opt_dom_walker::before_dom_children): Similarly.
32730         (dom_opt_dom_walker::after_dom_children): Similarly.
32731         (eliminate_redundant_computations): Similarly.
32732         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32733         (record_temporary_equivalence): Likewise.
32734         (invalidate_equivalences): Likewise.
32735         (record_temporary_equivalences_from_phis): Update due to type
32736         change of const_and_copies.  Use method calls rather than
32737         manipulating the stack directly.
32738         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32739         (thread_through_normal_block, thread_across_edge): Likewise.
32740         (thread_across_edge): Likewise.
32741         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32742         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
32743         of equiv_stack.
32744         (identify_jump_threads): Update due to type change of equiv_stack.
32745         (finalize_jump_threads): Delete the equiv_stack when complete.
32747 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
32749         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32750         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32751         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32753 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
32755         PR target/65535
32756         * config.gcc: Exit with a comment when we do not have a major version
32757         number for the FreeBSD target.
32759 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32761         PR target/65689
32762         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32763         maybe_allows_mem bitfields.
32764         (maybe_allows_none_start, maybe_allows_none_end,
32765         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32766         maybe_allows_mem_end): New variables.
32767         (compute_maybe_allows): New function.
32768         (add_constraint): Use it to initialize maybe_allows_reg and
32769         maybe_allows_mem fields.
32770         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32771         is_address constraints such that those that allow neither mem nor
32772         reg come first, then those that only allow reg but not mem, then
32773         those that only allow mem but not reg, then the rest.
32774         (write_allows_reg_mem_function): New function.
32775         (write_tm_preds_h): Call it.
32776         * stmt.c (parse_output_constraint, parse_input_constraint): Use
32777         the generated insn_extra_constraint_allows_reg_mem function
32778         instead of always setting *allows_reg = true; *allows_mem = true;
32779         for unknown extra constraints.
32781 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32783         PR target/65780
32784         * output.h (default_binds_local_p_3): New.
32785         * varasm.c (default_binds_local_p_3): Make it public.  Take an
32786         argument to indicate if common symbol may be local.  If common
32787         symbol may be local, treat non-external variable as defined
32788         locally.
32789         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32790         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32791         * config/i386/i386.c (ix86_binds_local_p): New.
32792         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32793         ix86_binds_local_p.
32795 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32797         PR debug/65771
32798         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32799         trying mem_loc_descriptor on XEXP (rtl, 0).
32801 2015-04-17  Martin Liska  <mliska@suse.cz>
32803         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32804         Release symbol_compare_collection.
32805         * ipa-reference.c: Add TODO that a vector should be released.
32807 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32809         PR target/65296
32810         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32811         to new AVR-LibC file layout (bug #44574).
32812         (*avrlibc_devicelib): Same.
32813         * config/avr/avr-mcus.def: Adjust comments.
32814         * config/avr/avr.opt (nodevicelib): Adjust help.
32816 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
32818         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32820 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
32822         PR c++/64527
32823         * gimplify.c (gimplify_init_constructor): Always emit a
32824         side-effecting constructor.
32826 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32828         PR tree-optimization/64950
32829         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32830         in cfun->curr_properties.
32831         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32832         if we generate an IFN_VA_ARG.
32833         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32834         function if PROP_gimple_lva is not set in src function.
32836 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32837             Michael Matz  <matz@suse.de>
32839         PR tree-optimization/64950
32840         * gimple-iterator.c (update_modified_stmts): Remove static.
32841         * gimple-iterator.h (update_modified_stmts): Declare.
32842         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32843         (gimplify_va_arg_internal): New function.
32844         (gimplify_va_arg_expr): Use IFN_VA_ARG.
32845         * gimplify.h (gimplify_va_arg_internal): Declare.
32846         * internal-fn.c (expand_VA_ARG): New unreachable function.
32847         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32848         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32849         (expand_ifn_va_arg): New function.
32850         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32851         (pass_stdarg::execute): Call expand_ifn_va_arg.
32852         (pass_data_lower_vaarg): New pass_data.
32853         (pass_lower_vaarg): New gimple_opt_pass.
32854         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32855         (make_pass_lower_vaarg): New function.
32856         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32857         properties_required field.
32858         * passes.def (all_passes): Add pass_lower_vaarg.
32859         * tree-pass.h (PROP_gimple_lva): Add define.
32860         (make_pass_lower_vaarg): Declare.
32862 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32864         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32865         * calls.c (call_expr_flags): Same.
32867 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32869         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32870         (pass_stdarg::execute): ... here.
32872 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32873             Michael Matz  <matz@suse.de>
32875         * tree-cfg.c (make_blocks_1): Factor out of ...
32876         (make_blocks): ... here.
32877         (make_edges_bb): Factor out of ...
32878         (make_edges): ... here.
32879         (gimple_find_sub_bbs): New function.
32880         * tree-cfg.h (gimple_find_sub_bbs): Declare.
32882 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32884         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32886 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
32888         * asan.c (set_sanitized_sections): New function.
32889         (section_sanitized_p): Ditto.
32890         (asan_protect_global): Optionally sanitize user-defined
32891         sections.
32892         * asan.h (set_sanitized_sections): Declare new function.
32893         * common.opt (fsanitize-sections): New option.
32894         * doc/invoke.texi (-fsanitize-sections): Document new option.
32895         * opts-global.c (handle_common_deferred_options): Handle new
32896         option.
32898 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32900         PR debug/65771
32901         * dwarf2out.c (loc_list_from_tree): Return NULL
32902         for DEBUG_EXPR_DECL.
32904 2015-04-17  Christian Bruel  <christian.bruel@st.com>
32906         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32907         same attributes.
32909 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32911         * ira-color.c (setup_left_conflict_sizes_p): Do not process
32912         node itself when computing left conflict subnode size.
32914 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32916         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32917         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32918         *fop_<mode>_1_sse using enabled attribute.  Use
32919         register_mixssei387nonimm_operand operand 1 predicate. Change
32920         alternative 3 constraints from "x" to "v".
32922 2015-04-16  Richard Biener  <rguenther@suse.de>
32924         PR tree-optimization/65774
32925         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32926         bit-value tracking on.
32928 2015-04-16  Richard Biener  <rguenther@suse.de>
32930         PR tree-optimization/64277
32931         * tree-vrp.c (check_array_ref): Fix anti-range handling,
32932         simplify upper bound handling.
32933         (search_for_addr_array): Simplify.
32934         (check_array_bounds): Handle ADDR_EXPRs here.
32935         (check_all_array_refs): Simplify.
32937 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32939         * config/i386/i386.c (print_reg): Rewrite function.
32941 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32943         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32944         Invert the condition.
32946 2015-04-16  Renlin Li  <renlin.li@arm.com>
32948         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32949         simplifications for UNSIGNED_FLOAT.
32951 2015-04-16  Nick Clifton  <nickc@redhat.com>
32953         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32954         MUL_UNINIT.
32955         (enum rl78_cpu_type): New.
32956         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32957         (umulhi3_shift_virt): Remove m constraint from operand 1.
32958         (umulqihi3_virt): Likewise.
32959         * config/rl78/rl78.c (rl78_option_override): Add code to process
32960         -mcpu and -mmul options.
32961         (rl78_alloc_physical_registers): Add code to handle divhi and
32962         divsi valloc attributes.
32963         (set_origin): Likewise.
32964         * config/rl78/rl78.h (RL78_MUL_G14): Define.
32965         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32966         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32967         __RL78_Gxx__.
32968         (ASM_SPEC): Pass -mcpu on to assembler.
32969         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32970         (mulqi3_rl78): Likewise.
32971         (mulhi3_g13): Likewise.
32972         (mulhi3): Generate the G13 or G14 versions of the insn directly.
32973         (mulsi3): Likewise.
32974         (mulhi3_g14): Add clobbers of AX and BC.
32975         (mulsi3_g14): Likewise.
32976         (mulsi3_g13): Likewise.
32977         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32978         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32979         * config/rl78/rl78.opt (mmul): Initialise value to
32980         RL78_MUL_UNINIT.
32981         (mcpu): New option.
32982         (m13, m14, mrl78): New option aliases.
32983         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32984         (MULTILIB_DIRNAMES): Add g13 and g14.
32985         * doc/invoke.texi: Document -mcpu and -mmul options.
32987 2015-04-16  Richard Biener  <rguenther@suse.de>
32989         * tree-ssa-ccp.c (likely_value): See if we have operands that
32990         are marked as never simulate again and return CONSTANT in this
32991         case.
32992         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32993         not have any operands that will be simulated again as
32994         not being simulated again.
32996 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
32998         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32999         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33000         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33001         attribute.
33002         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33003         enabled attribute.
33004         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33005         *float<SWI48:mode><MODEF:mode>2_sse.
33006         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33007         enabled attribute.
33008         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33009         enabled attribute.
33011 2015-04-15  Tom de Vries  <tom@codesourcery.com>
33013         PR other/65487
33014         * function.c (push_dummy_function): New function.
33015         (init_dummy_function_start): Use push_dummy_function.
33016         (pop_dummy_function): New function.  Factored out of ...
33017         (expand_dummy_function_end): ... here.
33018         * function.h (push_dummy_function, pop_dummy_function): Declare.
33019         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33020         pop_dummy_function.
33021         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33023 2015-04-15  Jeff Law  <law@redhat.com>
33025         PR tree-optimization/47679
33026         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33027         need for forward declaration in upcoming changes.
33028         (record_conditions, record_edge_info): Likewise.
33030         PR rtl-optimization/42522
33031         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33032         SIGN_EXTRACT as a whole object rather than simplifying
33033         its operand.
33035 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
33037         PR ipa/65765
33038         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33039         and GIMPLE_PREDICT use break instead of return true. For
33040         GIMPLE_EH_DISPATCH, compare dispatch region.
33042 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
33044         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
33045         details about the implementation.  Make clear preference for
33046         __atomic builtins.  Reduce possibility of future change.
33048 2015-04-15  Nick Clifton  <nickc@redhat.com>
33050         * config/rx/rx.opt (mallow-string-insns): New option.
33051         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33052         builtin if string instructions are denied.
33053         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33054         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33055         appropriate.
33056         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33057         * config/rx/rx.md (movstr): Enable pattern only if string
33058         instructions are allowed.
33059         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33060         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33061         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33062         (MULTILIB_DIRNAMES): Add no-strings.
33063         * doc/invoke.texi: Document -mno-allow-string-insns.
33065 2015-04-15  Alan Modra  <amodra@gmail.com>
33067         PR target/65408
33068         PR target/58744
33069         PR middle-end/36043
33070         * calls.c (load_register_parameters): Don't load past end of
33071         mem unless suitably aligned.
33073 2015-04-15  Nick Clifton  <nickc@redhat.com>
33075         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33076         decrement instruction as being frame related.
33077         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33078         based addresses.
33079         If zero extending a function address enclose the operation in
33080         %code(...).
33081         (rl78_preferred_reload_class): New function.
33082         (TARGET_PREFERRED_RELOAD_CLASS): Define.
33083         * config/rl78/rl78.md: Remove useless constraints in expanders.
33084         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33085         (mulhi3_rl78): Likewise.
33086         (mulhi3_g13): Likewise.
33087         (mulsi3_rl78): Likewise.
33088         (es_addr): Move to before the multiply patterns.
33090 2015-04-15  Alan Modra  <amodra@gmail.com>
33092         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33093         and sequence_stack.  Add seq.
33094         (seq_stack): Delete.
33095         * function.c (prepare_function_start): Don't access x_last_insn.
33096         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33097         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33098         * emit_rtl.c (start_sequence, push_topmost_sequence,
33099         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33100         sequence accessors.
33101         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33102         remove_insn): Likewise.  Simplify.
33103         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33104         and pop_topmost_sequence.
33105         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
33106         debug insns.
33107         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33109 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
33111         PR target/65729
33112         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33113         the assertiion.
33115 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33117         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33118         (LEGACY_INT_REGNO_P): Ditto.
33119         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33120         (ANY_MASK_REG_P): Remove.
33121         (BND_REG_P): Rename from ANY_BND_REG_P.
33122         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33123         legacy integer registers.  Do not handle MMX_REG_P in a special way.
33124         Merge 64byte and 32byte SSE handling.
33126 2015-04-14  Nick Clifton  <nickc@redhat.com>
33128         * expr.c (expand_assignment): Force an address offset computation
33129         into a register before changing its mode.
33130         (expand_expr_real_1): Likewise.
33132 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
33134         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33135         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33136         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33137         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33138         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33139         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33140         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33141         and __aarch64_vget_lane_any.
33143 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
33145         PR rtl-optimization/65761
33146         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33147         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33149 2015-04-14  Richard Biener  <rguenther@suse.de>
33151         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33152         (graphite_can_represent_scev): Use POINTER_TYPE_P.
33154 2015-04-14  Richard Biener  <rguenther@suse.de>
33156         PR tree-optimization/65758
33157         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33158         against -1.
33159         (ccp_lattice_meet): Likewise.
33160         (bit_value_unop): Likewise.
33161         (bit_value_binop): Likewise.
33162         (bit_value_assume_aligned): Likewise.
33164 2015-04-14  Christian Bruel  <christian.bruel@st.com>
33166         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33167         function.
33169 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
33171         PR tree-optimization/63387
33172         * match.pd ((x unord x) | (y unord y) -> (x unord y),
33173         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33175 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33177         * config/i386/predicates.md (any_QIreg_operand): Rename from
33178         q_regs_operand.  Do not process subregs.
33179         (QIreg_operand): Use QI_REGNO_P predicate.
33180         (ext_QIreg_operand): Ditto.
33181         (ext_register_operand): Ditto.
33182         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33183         (AND splitters): Ditto.
33184         (AND with -65536 splitter): Add SWI48 mode for operand 0.
33185         (AND with -256 splitter): Use any_QIreg_operand predicate and
33186         SWI248 mode for operand 0.
33187         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33188         mode for operand 0.
33189         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33191 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
33193         * doc/plugins.texi: Rewrite first introductory paragraph.
33195 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33197         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33198         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33200 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33202         * ipa-profie.c (ipa_profile): Check number of parameters
33203         and possible polymorphic call targets before
33204         devirtualizing.
33206 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
33208         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33209         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33211 2015-04-13  Richard Biener  <rguenther@suse.de>
33213         PR tree-optimization/65204
33214         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33215         takens for bit-CCP.
33217 2015-04-13  Richard Biener  <rguenther@suse.de>
33219         PR target/65660
33220         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33221         and cond_not_taken_branch_cost to 4 and 2.
33222         (bdver2_cost): Likewise.
33223         (bdver3_cost): Likewise.
33224         (bdver4_cost): Likewise.
33226 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33228         * hash-table.h (hash_table constructor): Add mem stats.
33229         (alloc_entries): Likewise.
33231 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33233         * ipa-cp.c (ipcp_driver): Relase prev_edge.
33234         * passes.c (execute_one_pass): Only add transform if pass has one.
33236 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
33238         * config/i386/i386.c (ix86_option_override_internal): Don't set
33239         -fprefetch-loop-arrays if optimizing for size.
33241 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33242             Gerald Pfeifer  <gerald@pfeifer.com>
33244         * doc/contrib.texi (Contributors): Add Martin Jambor and
33245         Michael Matz.
33247 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
33249         * BASE-VER: Set to 6.0.0.
33251         PR tree-optimization/65747
33252         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33253         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33255 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33257         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33258         sentence.  Improve grammar.
33260 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33262         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33264 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33266         PR ipa/65743
33267         * ipa-inline-transform.c (speculation_removed): Remove static var.
33268         (check_speculations): New function.
33269         (clone_inlined_nodes): Do not check spculations.
33270         (inline_call): Call check_speculations.
33271         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33272         consider non-invariants.
33274 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33275             Martin Liska  <mliska@suse.cz>
33277         PR ipa/65722
33278         * ipa-icf.c (sem_item::compare_cgraph_references): function and
33279         variable can not match.
33280         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33281         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33283 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
33285         PR tree-optimization/65735
33286         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33287         Remove visited_phis argument, add visited_bbs, avoid recursing into the
33288         same bb rather than just into the same phi node.
33289         (thread_through_normal_block): Adjust caller.
33291 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33293         * doc/contrib.texi (Contributors): Add Ira Rosen.
33295 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
33297         * gcov.c (find_source): Fix miswording in error message.
33298         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33299         (ix86_expand_sse_comi_round): Fix typo in error message.
33301 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33303         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33305 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
33307         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33309 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33311         PR target/65710
33312         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33313         Print bad_spills_num and insn_pseudos_num.
33315 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33317         PR target/65694
33318         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33319         when creating +1 values for SImode.
33321 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33323         PR target/65729
33324         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33325         assert.
33327 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
33328             Iain Sandoe  <iain@codesourcery.com>
33330         PR target/65351
33331         * configure: Regenerate.
33333 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33335         PR target/65671
33336         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33338 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
33340         * doc/contrib.texi (Contributors): Add John Marino.
33342 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33344         PR tree-optimization/65709
33345         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33346         TREE_TYPE (TREE_TYPE (t)).
33348 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
33350         PR target/65710
33351         * lra-int.h (lra_bad_spill_regno_start): New.
33352         * lra.c (lra_bad_spill_regno_start): New.
33353         (lra): Set up lra_bad_spill_regno_start.  Set up
33354         lra_constraint_new_regno_start unconditionally.
33355         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33356         spill preferences.
33358 2015-04-09  Marek Polacek  <polacek@redhat.com>
33359             Jakub Jelinek  <jakub@redhat.com>
33361         PR middle-end/65554
33362         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33363         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33364         of STRIP_NOPS.
33366 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
33368         PR rtl-optimization/65693
33369         * combine.c (is_parallel_of_n_reg_sets): Move outside of
33370         #ifndef HAVE_cc0.
33372 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
33374         PR target/65296
33375         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33376         device specs file if "device-specs%s" didn't resolve to a path.
33378 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33380         PR target/65676
33381         * config/i386/i386.c (fixup_modeless_constant): New.
33382         (ix86_expand_args_builtin): Fixup modeless constant operand.
33383         (ix86_expand_round_builtin): Ditto.
33384         (ix86_expand_special_args_builtin): Ditto.
33385         (ix86_expand_builtin): Ditto.
33387 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33389         PR target/65693
33390         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33391         any pow2 integer in between 2 and 0x80000000U inclusive.
33393 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
33395         PR rtl-optimization/65693
33396         * combine.c (is_parallel_of_n_reg_sets): Change first argument
33397         from an rtx_insn * to an rtx.
33398         (try_combine): Adjust both callers.  Use it once more.
33400 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33402         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33403         (chkp_make_static_const_bounds): Search existing
33404         symbol by assembler name.  Use make_decl_one_only.
33405         (chkp_get_zero_bounds_var): Remove node search which
33406         is now performed in chkp_make_static_const_bounds.
33407         (chkp_get_none_bounds_var): Likewise.
33409 2015-04-08  Michael Witten  <mfwitten@gmail.com>
33411         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33412         to an example.
33414 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33416         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33418 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33420         * doc/extend.texi (__sync Builtins): Fix grammar.
33422 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33424         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33426 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33428         * varasm.c (emit_local): Move definition of align.
33430 2015-04-08  Julian Brown  <julian@codesourcery.com>
33432         * config/nvptx/mkoffload.c (process): Support variable mapping.
33434 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
33436         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33437         alpha_links **.
33438         (alpha_write_one_linkage): Correct typo.
33440 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33442         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33444 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33446         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33448 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33450         * tree-chkp.h (chkp_insert_retbnd_call): New.
33451         * tree-chkp.c (chkp_insert_retbnd_call): New.
33452         * ipa-split.c (insert_bndret_call_after): Remove.
33453         (split_function): Use chkp_insert_retbnd_call.
33454         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33455         bounds for instrumented functions.
33457 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
33459         PR ipa/65540
33460         * calls.c (initialize_argument_information): When producing tail
33461         call also turn SSA_NAMES passed by references to original PARM_DECLs
33463 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
33465         PR target/65648
33466         * lra-remat.c (do_remat): Process input and non-input insn
33467         registers separately.
33469 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33471         PR debug/65678
33472         * valtrack.c (debug_lowpart_subreg): New function.
33473         (dead_debug_insert_temp): Use it.
33475         PR middle-end/65680
33476         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33477         into signed HOST_WIDE_INT the same as negative bit_offset.
33479 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
33481         * ipa-comdats.c (ipa_comdats): Visit all thunks
33482         to set proper comdat group.
33484 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33486         PR target/65489
33487         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33488         on constants for NEON VSTRUCT modes.
33490 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
33491             Iain Sandoe  <iain@codesourcery.com>
33493         PR target/65351
33494         * configure: Regenerate.
33496 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33498         PR target/65614
33499         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33500         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33501         that LFD is used to load double constants instead of LFS.  Add
33502         defaults for all costs structures.  Add comments for missing
33503         initialization fields.
33504         (size32_cost): Likewise.
33505         (size64_cost): Likewise.
33506         (rs64a_cost): Likewise.
33507         (mpccore_cost): Likewise.
33508         (ppc403_cost): Likewise.
33509         (ppc405_cost): Likewise.
33510         (ppc440_cost): Likewise.
33511         (ppc476_cost): Likewise.
33512         (ppc601_cost): Likewise.
33513         (ppc603_cost): Likewise.
33514         (ppc604_cost): Likewise.
33515         (ppc604e_cost): Likewise.
33516         (ppc620_cost): Likewise.
33517         (ppc630_cost): Likewise.
33518         (ppccell_cost): Likewise.
33519         (ppc750_cost): Likewise.
33520         (ppc7450_cost): Likewise.
33521         (ppc8540_cost): Likewise.
33522         (ppce300c2c3_cost): Likewise.
33523         (ppce500mc_cost): Likewise.
33524         (ppce500mc64_cost): Likewise.
33525         (ppce5500_cost): Likewise.
33526         (ppce6500_cost): Likewise.
33527         (titan_cost): Likewise.
33528         (power4_cost): Likewise.
33529         (power6_cost): Likewise.
33530         (power7_cost): Likewise.
33531         (power8_cost): Likewise.
33532         (ppca2_cost): Likewise.
33533         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33535         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33536         instead of XXLOR to copy SFmode to clear out dirty bits created
33537         when SFmode denormals are generated.
33538         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33539         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33541 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33543         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33544         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33545         * config/aarch64/aarch64-tune.md: Regenerate.
33547 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
33549         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33550         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33551         * config/arm/arm-cores.def (exynos-m1): New core.
33552         * config/arm/arm-tune.md: Regenerate.
33553         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33554         * config/arm/bpabi.h: Likewise.
33556 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33558         * ipa-cp (set_single_call_flag): Remove too
33559         restrictive assert.
33561 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
33563         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33564         GOMP_offload_unregister from the destructor.
33566 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
33568         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33569         flags for instrumentation thunk.
33570         (chkp_produce_thunks): Likewise.
33572 2015-04-05  Martin Liska  <mliska@suse.cz>
33574         PR ipa/65665
33575         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33576         has computed data structure.
33577         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33579 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
33581         * invoke.texi (inline-unit-growth): Increase growth to 20%
33582         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33584 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
33586         PR target/65647
33587         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
33588         value checking.
33589         (lra_rematerialization_iter): New.
33590         * lra.c (lra): Initialize lra_rematerialization_iter.
33591         Stop updating lra_constraint_new_regno_start after switching of
33592         inheritance and rematerialization.
33593         * lra-remat.c (lra_rematerialization_iter): New.
33594         (lra_remat): Add printing pass iteration.  Do rematerialization
33595         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33597 2015-04-04  Richard Biener  <rguenther@suse.de>
33599         PR tree-optimization/64909
33600         PR tree-optimization/65660
33601         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33602         to take a cost vector for scalar iteration cost.
33603         (vect_get_single_scalar_iteration_cost): Likewise.
33604         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33605         Compute the scalar iteration cost into a cost vector.
33606         (vect_get_known_peeling_cost): Use the scalar cost vector to
33607         account for the cost of the peeled iterations.
33608         (vect_estimate_min_profitable_iters): Likewise.
33609         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33610         Likewise.
33612 2015-04-04  Alan Modra  <amodra@gmail.com>
33614         PR target/65576
33615         PR target/65240
33616         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33617         0.0 constant unless TARGET_VSX.
33618         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33619         alternative.
33621 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33623         PR ipa/65654
33624         * ipa-inline-transform.c (inline_call): Skip sanity check to work
33625         around the ICE
33627 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33629         PR ipa/65655
33630         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33631         speculative indirect edges to avoid ordering issue.
33633 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
33635         PR ipa/65076
33636         * ipa-inline.c (edge_badness): Add combined size to the denominator.
33638 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
33640         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33641         TYPE_ARTIFICIAL on the .omp_data* types.
33643 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33645         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33646         instrumentation thunks.
33648 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33650         * config/i386/i386.c (ix86_expand_call): Avoid nested
33651         PARALLEL in returned call value.
33653 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33655         * lto-cgraph.c (input_cgraph_1): Always link instrumented
33656         assembler name with original one.
33658 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33660         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33662 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33664         Revert parts of r216820.
33665         * config/i386/i386.md (movqi_internal): Correct type calculation
33666         for alternatives 3 and 5.
33668 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
33670         PR preprocessor/61977
33671         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33672         predefine __vector/__bool/__pixel macros nor context sensitive
33673         macros for CLK_ASM.
33674         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33676 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
33678         * config/pa/pa.c (pa_output_move_double): Directly handle register
33679         indexed memory operand.  Simplify handling of scaled register indexed
33680         memory operands.
33682 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33684         PR driver/65444
33685         * config/i386/linux-common.h (MPX_SPEC): New.
33686         (CHKP_SPEC): Add MPX_SPEC.
33687         * doc/invoke.texi (-fcheck-pointer-boudns): Document
33688         possible issues with '-z bndplt' support in linker.
33690 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
33692         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33693         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33694         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33695         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33696         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33698 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
33700         * config/i386/sync.md (UNSPEC_MOVA): Remove.
33701         (atomic_load<mode>): Change operand 0 predicate to
33702         nonimmediate_operand and fix up the destination when needed.
33703         Use UNSPEC_LDA.
33704         (atomic_loaddi_fpu): Use UNSPEC_LDA.
33705         (atomic_store<mode>): Change operand 1 predicate to
33706         nonimmendate_operand and move the source to register when needed.
33707         Use UNSPEC_STA.
33708         (atomic_store<mode>_1): Use UNSPEC_STA.
33709         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33710         Fix moves from memory operand.  Use UNSPEC_STA.
33712 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33714         * expmed.c (strict_volatile_bitfield_p): Check that the access will
33715         not cross a MODESIZE boundary.
33716         (store_bit_field, extract_bit_field): Added assertions in the
33717         strict volatile bitfields code path.
33719 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33721         PR target/65624
33722         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33723         Increase args array size by one to avoid buffer overflow.
33725 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33727         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33728         split_part.
33729         * ipa-inline.c (edge_badness): Add wrapper penalty.
33730         (sum_callers): Move up.
33731         (inline_small_functions): Set single_caller.
33732         * ipa-inline.h (inline_summary): Add single_caller.
33733         * ipa-split.c (split_function): Set split_part.
33734         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33735         * cgraph.h (cgraph_node): Add split_part.
33737 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
33739         PR target/58945
33740         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33741         Do not split operands 0 and operands 2 to halfmode.
33742         (atomic_compare_and_swap<mode>): Update for
33743         atomic_compare_and_swap<dwi>_doubleword changes.
33745 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
33747         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33748         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33749         no caching is done.
33751 2015-03-31  Martin Liska  <mliska@suse.cz>
33753         PR ipa/65557
33754         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33755         has already filled up function summary.
33756         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33758 2015-03-31  Richard Biener  <rguenther@suse.de>
33760         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33761         of types.
33763 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33765         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33766         nested functions.
33767         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33768         (s390_asm_output_function_label): Adapt to new signature of
33769         s390_function_num_hotpatch_hw
33770         Optimise the code generating assembler output.
33771         Add comments to assembler file.
33773 2015-03-31  Richard Biener  <rguenther@suse.de>
33775         PR middle-end/65626
33776         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33777         of the noreturn call so it is last and cleanup_control_flow_bb
33778         can do the CFG part.
33780 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
33782         PR target/65531
33783         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33784         same_comdat_group for external symbols.
33785         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33786         infinite same_comdat_group traversal loop.
33788 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
33790         PR plugins/61176
33791         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33792         automatically to $headers.
33794 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
33796         PR ipa/65610
33797         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33798         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33799         function.
33800         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33801         Use it.
33802         * ipa-prop.c (param_type_may_change_p): Likewise.
33803         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33804         (remove_unused_scope_block_p): Add in_ctor_dtor_block
33805         argument.  Before inlining, preserve
33806         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33807         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
33808         recursive calls.
33809         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33811 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33813         PR ipa/65076
33814         * ipa-inline.c (edge_badness): Base denominator on callee's
33815         grwoth squared.
33817 2015-03-27  Martin Jambor  <mjambor@suse.cz>
33819         PR ipa/65478
33820         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33821         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33822         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33823         node_calling_single_call.
33824         * ipa-cp.c (count_callers): New function.
33825         (set_single_call_flag): Likewise.
33826         (initialize_node_lattices): Count callers and set single_flag_call if
33827         necessary.
33828         (incorporate_penalties): New function.
33829         (good_cloning_opportunity_p): Use it, dump new flags.
33830         (propagate_constants_topo): Set node_within_scc flag if appropriate.
33831         * doc/invoke.texi (ipa-cp-recursion-penalty,
33832         ipa-cp-single-call-pentalty): Document.
33834 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33836         PR ipa/65588
33837         * symtab.c (symtab_node::get_partitioning_class): Register vars
33838         are duplicated.
33839         * varpool.c (symbol_table::output_variables) Do not assemble unefined
33840         decls for non-symbols.
33842 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
33844         PR target/65248
33845         * output.h (default_binds_local_p_2): New.
33846         * varasm.c (default_binds_local_p_2): Renamed to ...
33847         (default_binds_local_p_3): This.  Don't return true on protected
33848         data symbol if protected data may be external.
33849         (default_binds_local_p): Use default_binds_local_p_3.
33850         (default_binds_local_p_1): Likewise.
33851         (default_binds_local_p_2): New.
33852         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33853         default_binds_local_p_2 if TARGET_MACHO is undefined.
33855 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
33857         PR target/65593
33858         * config/i386/i386.c (legitimize_pic_address): If base
33859         is SYMBOL_REF or LABEL_REF using %rip addressing, force
33860         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33862 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33864         PR target/65531
33865         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33866         comdat groups.
33868 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33870         PR ipa/65600
33871         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33872         of optimized out indirect call.
33873         (redirect_to_unreachable): Always build symbol table node for
33874         BUILT_IN_UNREACHABLE
33876 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
33878         PR target/65407
33879         * ira-costs.c (record_reg_classes): Process all constraint string
33880         containing 0-9.
33882 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
33884         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33885         memory_operand.
33887         PR target/65052
33888         * config/c6x/constraints.md (S3): New constraint.
33889         * config/c6x/c6x.md (real_jump): Use it.
33891 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33893         PR middle-end/65595
33894         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33895         do redirection if the call is not optimized out.
33897 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
33899         PR target/65495
33900         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33901         (fchkp-check-incomplete-type): Add LTO.
33902         (fchkp-zero-input-bounds-for-main): Likewise.
33903         (fchkp-first-field-has-own-bounds): Likewise.
33904         (fchkp-narrow-bounds): Likewise.
33905         (fchkp-narrow-to-innermost-array): Likewise.
33906         (fchkp-use-static-bounds): Likewise.
33907         (fchkp-use-static-const-bounds): Likewise.
33908         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33910 2015-03-27  Marek Polacek  <polacek@redhat.com>
33912         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33914 2015-03-27  Marek Polacek  <polacek@redhat.com>
33916         PR sanitizer/65583
33917         * ubsan.c (ubsan_create_edge): New function.
33918         (instrument_bool_enum_load): Call it.
33919         (instrument_nonnull_arg): Likewise.
33920         (instrument_nonnull_return): Likewise.
33921         (instrument_object_size): Likewise.
33923 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33925         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33926         auto_vec.
33928 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33930         PR lto/65536
33931         * lto-streamer.h (class lto_location_cache): New.
33932         (struct data_in): Add location_cache.
33933         (lto_input_location): Update prototype.
33934         (stream_input_location_now): New.
33935         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33936         pointer to location.
33937         (stream_input_location): Update.
33938         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33939         (warn_odr): Apply location cache before warning.
33940         (lto_input_location): Update prototype.
33941         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33942         Use stream_input_location_now.
33943         * lto-streamer-in.c (lto_location_cache::current_cache): New static
33944         variable.
33945         (lto_location_cache::cmp_loc): New function.
33946         (lto_location_cache::apply_location_cache): New function.
33947         (lto_location_cache::accept_location_cache): New function.
33948         (lto_location_cache::revert_location_cache): New function.
33949         (lto_location_cache::input_location): New function.
33950         (lto_input_location): Do location caching.
33951         (stream_input_location_now): New function.
33952         (input_eh_region, input_struct_function_base): Use
33953         stream_input_location_now.
33954         (lto_data_in_create): use new.
33955         (lto_data_in_delete): Use delete.
33956         * tree-streamer-in.c (unpack_ts_block_value_fields,
33957         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33958         lto_input_ts_exp_tree_pointers): Update for cached location api.
33960 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33962         PR ipa/65076
33963         * passes.def: Add pass_nothrow.
33964         * ipa-pure-const.c: (pass_data_nothrow): New.
33965         (pass_nothrow): New.
33966         (pass_nothrow::execute): New.
33967         (make_pass_nothrow): New.
33968         * tree-pass.h (make_pass_nothrow): Declare.
33970 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33972         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33973         edge to change by speculation resolution or redirection.
33974         (edge_set_predicate): Likewise.
33975         (inline_summary_t::duplicate): Likewise.
33976         (remap_edge_summaries): Likewise.
33978 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33980         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33981         New macros.
33982         (can_inline_edge_p): Relax option matching for always inline functions.
33984 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
33986         PR target/65561
33987         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33988         Check operand 4 and operand 0 for equality.
33989         (avx512f_vextract<shuffletype>32x4_1_maskm):
33990         Check operand 6 and operand 0 for equality.
33991         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33992         for equality.
33993         (vec_extract_hi_<mode>_maskm): Ditto.
33995 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33997         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33998         dead calls back to live.
33999         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34000         cross check to ...
34001         (cgraph_node::verify_node): ... here; verify only callee edges,
34002         not caller.
34003         * cif-code.def (CILK_SPAWN): New code.
34005 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34007         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34008         (edge_set_predicate): Use it to mark unreachable edges.
34009         (inline_summary_t::duplicate): Remove unnecesary code.
34010         (remap_edge_summaries): Likewise.
34011         (dump_inline_summary): Report contains_cilk_spawn.
34012         (compute_inline_parameters): Compute contains_cilk_spawn.
34013         (inline_read_section, inline_write_summary): Stream
34014         contains_cilk_spawn.
34015         * ipa-inline.c (can_inline_edge_p): Do not touch
34016         DECL_STRUCT_FUNCTION that may not be available;
34017         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34018         remove check for callee_fun->can_throw_non_call_exceptions and
34019         replace it by optimization attribute check; check for flag_exceptions.
34020         * ipa-inline-transform.c (inline_call): Maintain
34021         DECL_FUNCTION_PERSONALITY
34022         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34024 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34026         PR tree-optimization/65551
34027         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34028         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34030 2015-03-26  Richard Biener  <rguenther@suse.de>
34032         PR middle-end/65555
34033         * tree-cfg.c (verify_gimple_call): Do not require a call to
34034         have no LHS if it wasn't recognized as control altering yet.
34036 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34038         PR tree-optimization/64715
34039         * passes.def: Add another instance of pass_object_sizes before ccp1.
34040         * tree-object-size.c (pass_object_sizes::execute): In
34041         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34042         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34043         __bos result and the computed constant.  Remove redundant
34044         checks, obsoleted by gimple_call_builtin_p test.
34046         * var-tracking.c (variable_tracking_main_1): Don't track
34047         variables for targetm.no_register_allocation targets.
34049 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
34051         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34052         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34054 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
34056         PR target/65569
34057         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34058         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
34059         0.0 is correctly setup.
34060         (extenddftf2_internal): Likewise.
34062 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
34064         PR tree-optimization/65177
34065         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34066         (bb_in_bbs): New.
34067         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
34068         edges not adjacent on the path to the original code.
34070 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
34072         PR bootstrap/65537
34073         * doc/install.texi (Building a native compiler): Document new
34074         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
34075         configuration assumes that the host supports the linker plugin.
34077 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34079         PR target/65508
34080         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34081         chain for generated call.
34083 2015-03-25  Richard Biener  <rguenther@suse.de>
34085         * passes.c (pass_manager::execute_early_local_passes): Guard
34086         execution of pass_chkp_instrumentation_passes with
34087         flag_check_pointer_bounds.
34088         (pass_chkp_instrumentation_passes::gate): Likewise.
34090 2015-03-25  Martin Liska  <mliska@suse.cz>
34092         PR tree-optimization/65538
34093         * symbol-summary.h (function_summary::~function_summary):
34094         Relese memory for allocated summaries.
34095         (function_summary::release): New function.
34097 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
34099         PR lto/65515
34100         * lto-streamer-out.c (DFS::worklist): New struct.
34101         (DFS::worklist_vec): New data member.
34102         (DFS::next_dfs_num): Remove.
34103         (DFS::DFS): Rewritten using worklist instead of recursion,
34104         using most of code from DFS::DFS_write_tree.
34105         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34106         pass it to DFS_write_tree calls.
34107         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34108         quick initial checks push it into worklist_vec and return.
34110 2015-03-25  Richard Biener  <rguenther@suse.de>
34112         PR middle-end/65519
34113         * genmatch.c (expr::gen_transform): Re-write to avoid
34114         using gimple_build.
34116 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34118         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34120 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34122         * config/arm/arm.opt (print_tune_info): New option.
34123         * config/arm/arm.c (arm_print_tune_info): New function.
34124         (arm_file_start): Call arm_print_tune_info.
34125         * config/arm/arm-protos.h (struct tune_params): Add comment.
34126         * doc/invoke.texi (@item -mprint-tune-info): New item.
34127         (-mtune): mention it in ARM Option Summary.
34129 2015-03-25  DJ Delorie  <dj@redhat.com>
34131         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34132         correct clause.
34134 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
34135             Martin Liska  <mliska@suse.cz>
34137         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34138         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34139         (sem_item::add_type): New function.
34140         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34141         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34142         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34143         (sem_function::equals_wpa): Fix typo.
34144         * ipa-icf.h (sem_item::add_type): New function.
34145         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34146         order.
34148 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
34150         PR tree-optimization/65533
34151         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34152         with swapped operands, call vect_free_slp_tree on
34153         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34154         vector.
34156 2015-03-24  Richard Biener  <rguenther@suse.de>
34158         PR middle-end/65517
34159         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34160         for fixup if necessary.
34162 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
34164         * doc/extend.texi (Function Attributes): Add @cindex entries
34165         for all attributes and regularize their format.  Delete text
34166         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
34167         information about "eightbit_data", "tiny_data", and "model"
34168         variable attributes to the Variable Attributes section.  Fix
34169         some obvious typos and copy-editing issues.
34170         (Variable Attributes, Type Attributes): Likewise add/fix
34171         @cindex entries for all attributes.
34173 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34175         PR target/65523
34176         * tree-chkp.c (chkp_build_returned_bound): Ignore
34177         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34179 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
34181         PR target/65505
34182         * config/sh/predicates.md (simple_mem_operand,
34183         displacement_mem_operand): Add test for reg.
34184         (short_displacement_mem_operand): Test for displacement_mem_operand
34185         before invoking sh_disp_addr_displacement.
34186         * config/sh/constraints.md (Sdd, Sra): Simplify.
34187         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34188         Remove redundant displacement_mem_operand tests.
34190 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
34192         PR target/65296
34193         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34194         the same -mmcu=MCU more than once.
34196 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34198         PR bootstrap/65522
34199         * ipa-devirt.c: Remove duplicate demangle.h include.
34201         PR target/65504
34202         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34203         on the pseudo.
34204         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34205         REG_POINTER on *destptr after adjusting it for prologue size.
34207         PR ipa/65521
34208         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34209         ultimate_alias_target ()->order ints instead of
34210         ultimate_alias_target () pointers.
34212 2015-03-23  Richard Biener  <rguenther@suse.de>
34214         PR tree-optimization/65518
34215         * tree-vect-stmts.c (vectorizable_load): Reject single-element
34216         interleaving cases we generate absymal code for.
34218 2015-03-23  Richard Biener  <rguenther@suse.de>
34220         PR tree-optimization/65494
34221         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34222         matches here.
34223         (vect_analyze_slp_instance): But do that here, always and once.
34225 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34227         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34228         adding T or multiplying by T+1 and subracting T.
34230 2015-03-22  Jeff Law  <law@redhat.com>
34232         PR rtl-optimization/64317
34233         * Makefile.in (OBJS): Add gcse-common.c
34234         * gcse.c: Include gcse-common.h
34235         (struct modify_pair_s): Move structure definition to gcse-common.h
34236         (compute_transp): Move function to gcse-common.c.
34237         (canon_list_insert): Similarly.
34238         (record_last_mem_set_info): Break out some code and put it into
34239         gcse-common.c.  Call into the new common code.
34240         (compute_local_properties): Pass additional arguments to compute_transp.
34241         * postreload-gcse.c: Include gcse-common.h and df.h
34242         (modify_mem_list_set, blocks_with_calls): New variables.
34243         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34244         (get_bb_avail_insn): Pass in the expression index too.
34245         (alloc_mem): Allocate memory for the new bitmaps and lists.
34246         (free_mem): Free memory for the new bitmaps and lists.
34247         (insert_expr_in_table): Record a bitmap index for each entry we
34248         add to the table.
34249         (record_last_mem_set_info): Call into common code in gcse-common.c.
34250         (get_bb_avail_insn): If no available insn was found in the requested
34251         BB.  If BB has a single predecessor, see if the expression is
34252         transparent in BB and available in that single predecessor.
34253         (compute_expr_transp): New wrapper for compute_transp.
34254         (eliminate_partially_redundant_load): Pass expression's bitmap_index
34255         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
34256         (gcse_after_reload_main): If there are elements in the hash table,
34257         then compute transparency for all the elements in the hash table.
34258         * gcse-common.h: New file.
34259         * gcse-common.c: New file.
34261 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
34263         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34264         as an adjective.
34265         (System Headers): Likewise.
34266         (Ifdef): Likewise.
34267         (Traditional macros): Likewise.
34268         (Invocation): Likewise.
34269         (Option Index): Likewise.
34270         * doc/cppopts.texi (-M): Likewise.
34271         (-finput-charset): Likewise.
34272         (--help): Likewise.
34273         * doc.invoke.texi (AVR Options): Likewise.
34274         (V850 Options): Likewise.
34276 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
34278         PR ipa/65475
34279         * ipa-devirt.c: Include demangle.h
34280         (odr_type_d): Add field rtti_broken.
34281         (odr_subtypes_equivalent_p): Do not require name to match.
34282         (compare_virtual_tables): Fix typo; if type already has ODR violation,
34283         bypass the tests; be ready for function referneces in vtables that are
34284         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34285         (warn_odr): Give up for nameless types.
34286         (warn_types_mismatch): Report mismatch in mangled names;
34287         report mismatch in anonymous namespaces; look into component types to
34288         give useful error; report when mismatch is dragged in from other ODR
34289         type.
34290         (odr_types_equivalent_p): Match types for being polymorphic; avoid
34291         duplicated diagnostics.
34292         (add_type_duplicate): Reorder checks so more informative ones come
34293         first; fix typo; do not output "the extra base is defined here" when
34294         we did not warn.
34295         (BINFO_N_BASE_BINFOS): Relax sanity check.
34297 2015-03-22  Martin Liska  <mliska@suse.cz>
34298             Jakub Jelinek  <jakub@redhat.com>
34300         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34301         masks that can potentially include a builtin.
34302         (ix86_add_new_builtins): Introduce fast filter for isa values
34303         that cannot trigger builtin inclusion.
34305 2015-03-22  Martin Liska  <mliska@suse.cz>
34307         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34308         (sem_item::update_hash_by_local_refs): Likewise.
34309         (sem_variable::get_hash): Empty line is fixed.
34310         (sem_item_optimizer::execute): Include adding of hash references.
34311         (sem_item_optimizer::update_hash_by_addr_refs): New function.
34312         (sem_item_optimizer::build_hash_based_classes): Use local hash.
34313         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34314         (sem_item::update_hash_by_local_refs): Likewise.
34316 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34318         PR ipa/65502
34319         * ipa-comdats.c (enqueue_references): Walk through thunks.
34320         (ipa_comdats): Likewise.
34321         (set_comdat_group_1): New function.
34323 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34325         PR ipa/65475
34326         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34327         non-polymorphic
34329 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
34330             Gerald Pfeifer  <gerald@pfeifer.com>
34332         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34334 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
34335             Sandra Loosemore  <sandra@codesourcery.com>
34337         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34338         function parameter declaration.
34339         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34340         Update arguments to nios2_adjust_call_address().
34341         (sibcall_internal): Rename from *sibcall.
34342         (sibcall_value_internal): Rename from *sibcall_value.
34343         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34344         (nios2_large_got_address): Add target temp reg parameter.
34345         (nios2_got_address): Adjust call to nios2_large_got_address, add
34346         force_reg around it.
34347         (nios2_load_pic_address): Add target temp reg parameter, replace call
34348         to nios2_got_address with corresponding code.
34349         (nios2_legitimize_constant_address): Update call to
34350         nios2_load_pic_address.
34351         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34352         to use temp reg for PIC loading purposes.
34353         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34354         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34355         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34357 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34359         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34360         usage of "the @option{...}".
34361         (-Wopenmp-simd): Likewise.
34362         (-fsanitize-recover): Likewise.
34363         (-fsanitize-undefined-trap-on-error): Likewise.
34364         (-flto): Likewise.
34365         (tracer-dynamic-coverage-feedback): Likewise.
34366         (reorder-block-duplicate-feedback): Likewise.
34367         (loop-unroll-jam-size): Likewise.
34368         (-B): Likewise.
34369         (-I-): Likewise.
34370         (-mabs=legacy): Likewise.
34371         (-mupper-regs-df): Likewise.
34372         (-mupper-regs-sf): Likewise.
34373         (-mpointers-to-nested-functions): Likewise.
34375 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34377         * doc/extend.texi (Cilk Plus Builtins): Add markup.
34379 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34381         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34382         additional index entries and cross-references.
34383         (-fchkp-check-incomplete-type): Likewise.
34384         (-fchkp-first-field-has-own-bounds): Likewise.
34385         (-fchkp-narrow-to-innermost-array): Likewise.
34386         (-fchkp-use-fast-string-functions): Likewise.
34387         (-fchkp-use-nochk-string-functions): Likewise.
34388         (-fchkp-use-static-const-bounds): Likewise.
34389         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34390         (-fchkp-instrument-marked-only): Likewise.
34391         (-fchkp-use-wrappers): Likewise.
34392         (-static-libmpx): Likewise.
34393         (-static-libmpxwrappers): Likewise.
34394         * doc/extend.texi (bnd_legacy): Likewise.
34395         (bnd_instrument): Likewise.
34396         (bnd_variable_size): Likewise.
34397         (Pointer Bounds Checker builtins): Likewise.
34399 2015-03-21  Tom de Vries  <tom@codesourcery.com>
34401         PR tree-optimization/65458
34402         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34403         * cgraph.h (cgraph_node): Add parallelized_function field.
34404         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34405         (input_overwrite_node): Read parallelized_function field.
34406         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34407         parallelized_function on cgraph_node for child_fn.
34408         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34409         Remove include of gt-tree-parloops.h.
34410         (parallelized_functions): Remove static variable.
34411         (parallelized_function_p): Rewrite using parallelized_function field of
34412         cgraph_node.
34413         (create_loop_fn): Remove adding to parallelized_functions.
34414         * Makefile.in (GTFILES): Remove tree-parloops.c
34416 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
34418         PR rtl-optimization/64366
34419         * lra.c (lra_update_insn_regno_info): Consider regs in
34420         CALL_INSN_FUNCTION_USAGE memory.
34422 2015-03-20  Richard Biener  <rguenther@suse.de>
34424         PR middle-end/64715
34425         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34426         for type comparison and gcc_checking_assert.
34427         (chrec_fold_plus_poly_poly): Likewise.
34428         (chrec_fold_multiply_poly_poly): Likewise.
34429         (chrec_convert_1): Likewise.
34430         * gimplify.c (gimplify_expr): Remove premature folding of
34431         &X + CST to &MEM[&X, CST].
34433 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34435         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34436         already is final.
34437         (ipa_inline): Recompute inline_failed codes.
34438         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34439         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34440         CIF_FINAL_ERROR.
34442 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
34444         PR rtl-optimization/60851
34445         * recog.c (constrain_operands): Accept a pseudo register before reload
34446         for LRA enabled targets.
34448 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
34450         PR target/65240
34451         * config/rs6000/predicates.md (easy_fp_constant): Remove special
34452         -ffast-math handling that kept non-0 constants live in the RTL
34453         until reload.  Remove logic testing the number of instructions it
34454         took to create a constant in a GPR that was never used, due to a
34455         test for soft-float earlier.
34456         (memory_fp_constant): Delete, no longer used.
34458         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34459         alternatives for loading non-0 constants into GPRs for hard
34460         floating point that is no longer needed due to changes in
34461         easy_fp_constant.  Add support for loading 0.0 into GPRs.
34462         (mov<mode>_hardfloat32): Likewise.
34463         (mov<mode>_hardfloat64): Likewise.
34464         (mov<mode>_64bit_dm): Likewise.
34465         (movtd_64bit_nodm): Likewise.
34466         (pre-reload move FP constant define_split): Delete define_split,
34467         since it is no longer used.
34468         (extenddftf2_internal): Remove GHF constraints that are not valid
34469         for extenddftf2.
34471 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
34473         PR rtl-optimization/63491
34474         * lra-constraints.c (check_and_process_move): Use src instead of
34475         sreg.  Remove some dead code.
34477 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
34479         PR ipa/65380
34480         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34481         (sem_variable::merge): Likewise.
34483 2015-03-19  Martin Liska  <mliska@suse.cz>
34485         PR ipa/65465
34486         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34487         all fields of cgraph_thunk_info.
34489 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34491         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34492         clone instrumented thunks.
34494 2015-03-19  Richard Biener  <rguenther@suse.de>
34496         Revert
34497         2015-03-10  Richard Biener  <rguenther@suse.de>
34499         PR middle-end/63155
34500         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34501         * tree-ssa-coalesce.c: Include timevar.h.
34502         (attempt_coalesce): Handle graph being NULL.
34503         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34504         Split out abnormal coalescing to ...
34505         (perform_abnormal_coalescing): ... this function.
34506         (coalesce_ssa_name): Perform abnormal coalescing without computing
34507         live/conflict.
34508         (verify_ssa_coalescing_worker): New function.
34509         (verify_ssa_coalescing): Likewise.
34511 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34512             Jakub Jelinek  <jakub@redhat.com>
34514         PR sanitizer/65400
34515         * tsan.c (instrument_gimple): Clear tail call flag on
34516         calls.
34518 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
34520         PR sanitizer/65400
34521         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34522         call in the return bb.
34523         (find_split_points): Add RETURN_BB argument, don't call
34524         find_return_bb.
34525         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
34526         if true append TSAN_FUNC_EXIT internal call after the call to
34527         the split off function.
34528         (execute_split_functions): Call find_return_bb here.
34529         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34530         Adjust find_split_points and split_function calls.
34532 2015-03-18  DJ Delorie  <dj@redhat.com>
34534         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34535         (iorqi3_virt): Likewise.
34537 2015-03-18  Tom de Vries  <tom@codesourcery.com>
34539         * tree-parloops.c (parallelize_loops): Make static.
34540         * tree-parloops.h (parallelize_loops): Remove extern declaration.
34542 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
34544         PR middle-end/64491
34545         Revert:
34546         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
34548         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34549         condition would be removed due to undefined behaviour.
34551 2015-03-18  Martin Liska  <mliska@suse.cz>
34553         PR ipa/65432
34554         * cgraph.c (cgraph_node::get_create): Remove unnecessary
34555         xstrdup_for_dump wrapper.
34556         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34557         sem_item::name.
34558         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34559         with xstrdup_for_dump.
34560         (sem_variable::equals): Likewise.
34561         (sem_item_optimizer::read_section): Use symtab_node::name instead of
34562         sem_item::name.
34563         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34564         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34565         symtab_node::asm_name with xstrdup_for_dump.
34566         (congruence_class::dump): Use symtab_node::name instead of
34567         sem_item::name.
34568         * ipa-icf.h (symtab_node::name): Remove.
34569         (symtab_node::asm_name): Likewise.
34571 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34573         PR tree-optimization/65450
34574         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34575         function.
34576         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34577         it instead of duplicate_ssa_name_ptr_info.
34579         PR target/65222
34580         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34582 2015-03-18  Richard Biener  <rguenther@suse.de>
34584         * tree-data-ref.h (struct access_matrix): Remove.
34585         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34586         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34587         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34588         (am_vector_index_for_loop): Likewise.
34589         (struct data_reference): Remove access_matrix member.
34590         (DR_ACCESS_MATRIX): Remove.
34591         (lambda_vector_new): Add comment.
34592         (lambda_matrix_new): Use XOBNEWVEC.
34594 2015-03-18  Richard Biener  <rguenther@suse.de>
34596         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34597         (pass_ch::execute): Cleanup the CFG only if we did sth.
34598         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34600 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34602         * expmed.c (synth_mult): Use std::swap instead of manually
34603         swapping algorithms.
34605 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
34607         PR target/65078
34608         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34610 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
34612         PR target/65296
34613         * config/avr/avr.opt (-nodevicelib): New option.
34614         * doc/invoke.texi (AVR Options): Document it.
34615         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34616         libgcc.a, libc.a, libm.a.
34617         * config/avr/specs.h: Same.
34618         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34619         which don't (directly) depend on the device.  Print more help.
34620         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34621         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34622         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34623         case of an error.
34624         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34625         for specs file name.
34626         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34627         * config/avr/avr-mcus.def: Adjust initializers and comments.
34629 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
34631         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34632         DECL_ONE_ONLY to check if decl is one only.
34633         * ipa-split.c (consider_split): Limit splitt of one only functions.
34635 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34637         PR tree-optimization/65427
34638         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34639         functions.
34640         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34642 2015-03-16  Marek Polacek  <polacek@redhat.com>
34644         * cgraph.h (add_new_static_var): Remove declaration.
34645         * varpool.c (add_new_static_var): Remove function.
34647 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
34649         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34650         instead of vec<tree> * with vec_alloc and release for args.
34651         Adjust all users.
34653         PR middle-end/65431
34654         * omp-low.c (delete_omp_context): Only splay_tree_delete
34655         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34656         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
34658 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34660         PR sanitizer/64820
34661         * cfgexpand.c (align_base): New function.
34662         (alloc_stack_frame_space): Call it.
34663         (expand_stack_vars): Align prev_frame to be sure
34664         data->asan_vec elements aligned properly.
34666 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
34668         PR middle-end/65409
34669         * expr.c (store_field): Do not do a direct block copy if the source is
34670         a PARALLEL with BLKmode.
34672 2015-03-16  Tom de Vries  <tom@codesourcery.com>
34674         PR middle-end/65414
34675         Revert:
34676         2015-03-12  Tom de Vries  <tom@codesourcery.com>
34678         PR rtl-optimization/64895
34679         * lra-lives.c (check_pseudos_live_through_calls): Use
34680         actual_call_used_reg_set instead of call_used_reg_set, if available.
34682 2015-03-16  Alan Modra  <amodra@gmail.com>
34684         PR target/63150
34685         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34686         Modify Z->r bswapdi splitter to use dest in place of scratch.
34687         In r->Z and Z->r bswapdi splitter rename word_high, word_low
34688         to word1, word2 and rearrange logic to suit.
34689         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34690         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
34691         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34692         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
34693         early clobber.
34695 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
34697         PR tree-optimization/65369
34698         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34699         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34700         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34702         PR tree-optimization/65418
34703         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34704         are casts in the first PLUS_EXPR operand, ensure tbias and
34705         *totallowp are in the inner type.
34707         PR rtl-optimization/65401
34708         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34709         argument.  If true, adjust_address_nv of x with big-endian
34710         correction for the mode widening to GET_MODE (y).
34711         (make_field_assignment): Don't do MEM mode widening here.
34712         Use MEM_P instead of GET_CODE == MEM.
34714 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
34716         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34717         the external decls.
34719 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34721         PR target/64600
34722         * config/arm/arm.c (arm_gen_constant, AND case): Use
34723         ARM_SIGN_EXTEND when constructing AND mask.
34725 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34727         * graph.c (print_graph_cfg): Make function names visible and append
34728         parenthesis to it.  Also make groups of basic blocks belonging to the
34729         same function visible.
34731 2015-03-12  Richard Biener  <rguenther@suse.de>
34733         PR middle-end/44563
34734         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34735         to avoid quadratic behavior with inline expansion splitting blocks.
34736         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34737         with the successor if the predecessor will be merged with it.
34738         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34739         entry block with its successor.
34741 2015-03-13  Richard Biener  <rguenther@suse.de>
34743         PR middle-end/44563
34744         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34745         (cleanup_tree_cfg_1): Do not call it.
34746         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34747         (fixup_noreturn_call): Mark the stmt as control altering.
34748         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34749         here.
34750         (pass_data_fixup_cfg): Produce a dump file.
34751         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34752         (need_noreturn_fixup): New global.
34753         (pass_dominator::execute): Fixup queued noreturn calls.
34754         (optimize_stmt): Queue calls that became noreturn for fixup.
34755         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34756         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34757         (el_to_fixup): New global.
34758         (eliminate_dom_walker::before_dom_childre): Queue calls that
34759         became noreturn for fixup.
34760         (eliminate): Fixup queued noreturn calls.
34761         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34762         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34763         (substitute_and_fold_dom_walker::before_dom_children): Queue
34764         alls that became noreturn for fixup.
34765         (substitute_and_fold): Fixup queued noreturn calls.
34767 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
34769         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34770         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34771         are building; for methods check ODR type of class they belong to if
34772         they may lead to a polymorphic call.
34773         (sem_function::compare_polymorphic_p): Be bit smarter about testing
34774         when function may lead to a polymorphic call.
34775         (sem_function::compare_type_list): Remove.
34776         (sem_variable::equals): Update use of compatible_types_p.
34777         (sem_variable::parse_tree_refs): Remove.
34778         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34779         cdtor.
34780         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34781         matching here.
34782         (func_checker::compatible_polymorphic_types_p): Break out from ...
34783         (unc_checker::compatible_types_p): ... here.
34784         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34785         Declare.
34786         (unc_checker::compatible_types_p): Update.
34787         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34788         Remove.
34790 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34792         PR rtl-optimization/65235
34793         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34794         When first element of vec_concat is const_int, calculate its size
34795         using second element.
34797 2015-03-12  Richard Biener  <rguenther@suse.de>
34799         PR middle-end/65270
34800         * fold-const.c (operand_equal_p): Fix ordering of resetting
34801         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34803 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34805         * config/s390/s390.c (s390_reorg): Move code to output nops after label
34806         to s390_reorg ().
34807         (s390_asm_output_function_label): Likewise.
34808         * config/s390/s390.c (s390_asm_output_function_label):
34809         Fix function label alignment with -mhtopatch.
34810         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34811         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34812         ("nop_2_byte"): New define_insn.
34813         ("nop_4_byte"): Likewise.
34814         ("nop_6_byte"): Likewise.
34815         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34816         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34818 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34820         PR target/65103
34821         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34822         register.
34824 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34826         PR target/65044
34827         * toplev.c (process_options): Restrict Pointer Bounds Checker
34828         usage with Address Sanitizer.
34830 2015-03-12  Richard Biener  <rguenther@suse.de>
34832         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34833         to split on.
34834         * omp-low.c (expand_omp_taskreg): Split block before removing
34835         the stmt.
34836         (expand_omp_target): Likewise.
34837         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34838         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34839         stmt to split_block.
34841 2015-03-12  Tom de Vries  <tom@codesourcery.com>
34843         PR rtl-optimization/64895
34844         * lra-lives.c (check_pseudos_live_through_calls): Use
34845         actual_call_used_reg_set instead of call_used_reg_set, if available.
34847 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34849         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34850         (cgraph_node::remove): Likewise.
34851         (cgraph_node::get_untransformed_body): Likewise.
34852         * varpool.c (varpool_node::remove): Likewise.
34853         (varpool_node::get_constructor): Add sanity check.
34855 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
34857         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34858         old GCC versions.
34859         (-fabi-compat-version): Likewise.
34860         (-ffriend-injection): Likewise.
34861         (-Wdeclaration-after-statement): Likewise.
34862         (-fomit-frame-pointer): Likewise.
34863         (-ftree-coalesce-inlined-vars): Likewise.
34864         (-fvisibility=): Likewise.
34865         * doc/extend.texi (Typeof): Likewise.
34866         (Zero Length): Likewise.
34867         (Escaped Newlines): Likewise.
34868         (Compound Literals): Likewise.
34869         (Function Attributes): Likewise.
34870         (Label Attributes): Likewise.
34871         (Type Attributes): Likewise.
34872         (Function Names): Likewise.
34873         (Other Builtins): Likewise.
34874         (Function Specific Option Pragmas): Likewise.
34875         (C++ Interface): Likewise.
34877 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
34879         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34881 2015-03-11  Marek Polacek  <polacek@redhat.com>
34883         PR tree-optimization/65388
34884         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34886 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34888         PR target/65296
34889         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34890         * configure: Regenerate.
34891         * config.in: Regenerate.
34892         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34893         [-mn-flash]: Document it.
34894         [__AVR_ARCH__]: Document avrtiny.
34896         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34897         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34898         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34900 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34902         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34904 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34906         PR target/65242
34907         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34908         allow reloads of PLUS in floating point/VSX registers.
34910 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
34912         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34913         crypto_sha256_fast.
34914         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34916 2015-03-11  Richard Biener  <rguenther@suse.de>
34918         PR tree-optimization/65310
34919         * tree-sra.c (build_ref_for_offset): Also preserve larger
34920         alignment.
34922 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
34924         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34926 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34928         PR target/65368
34929         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34930         new define_expand.
34931         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34933 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34935         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34936         (sem_function::equals_wpa): ... here.
34938 2015-03-10  Marek Polacek  <polacek@redhat.com>
34939             Jakub Jelinek  <jakub@redhat.com>
34941         PR sanitizer/65367
34942         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34943         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
34944         separately.
34946 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34948         PR target/65286
34949         * config/rs6000/t-linux: For powerpc64* target set
34950         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34952 2015-03-10  Richard Biener  <rguenther@suse.de>
34954         PR middle-end/44563
34955         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34956         for redirect_all_calls.
34958 2015-03-10  Marek Polacek  <polacek@redhat.com>
34960         * gdbinit.in (pcfun): Define and document.
34962 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
34964         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34965         of libgomp-plugin.h.
34966         (find_target_compiler): Support a case when the path to gcc is
34967         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34968         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34969         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34970         libgomp-plugin.h.
34971         (main): Use GCC_INSTALL_NAME as target_driver_name.
34972         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34973         define.
34974         (mkoffload.o): Remove obsolete include path and defines.
34975         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34977 2015-03-10  Richard Biener  <rguenther@suse.de>
34979         PR middle-end/63155
34980         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34981         * tree-ssa-coalesce.c: Include timevar.h.
34982         (attempt_coalesce): Handle graph being NULL.
34983         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34984         Split out abnormal coalescing to ...
34985         (perform_abnormal_coalescing): ... this function.
34986         (coalesce_ssa_name): Perform abnormal coalescing without computing
34987         live/conflict.
34988         (verify_ssa_coalescing_worker): New function.
34989         (verify_ssa_coalescing): Likewise.
34991 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34993         PR target/65296
34994         * config.gcc (extra_options) [avr]: Remove.
34995         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34996         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34997         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34999         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35000         (-mmcu=): Add Var and MissingArgError properties.
35001         (-march=): Remove.
35002         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35003         * config/avr/t-multilib: Regenerate.
35004         * config/avr/specs.h: New file.
35005         * config/avr/driver-avr.c: New file.
35006         * config/avr/genopt.sh: Remove file.
35007         * config/avr/avr-tables.opt: Remove file.
35008         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35009         * config/avr/avr-c.c: Same.
35010         * avr-arch.h: Same.
35011         (avr_current_device): Remove proto.
35012         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35013         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35014         (EXTRA_SPEC_FUNCTIONS): Define.
35015         (avr_devicespecs_file): New specs function proto.
35016         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35017         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35018         (avr_current_device): Remove definition and usage.
35019         (avr_set_core_architecture): New static function.
35020         (avr_option_override): Use it.
35021         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35022         (mcu_name): New static array.
35023         (comparator, avr_archs_str, avr_mcus_str): New static functions.
35024         (avr_inform_devices, avr_inform_core_architectures): New functions.
35025         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35026         (avrlibc.h) [WITH_AVRLIBC]: Include.
35027         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35028         (print_mcu): Rewrite from scratch.
35029         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35030         Forward to avr-specific specs defined in device-specs file.
35031         * config/avr/t-avr (driver-avr.o): New rule.
35032         (avr-devices.o): Depend on avr-arch.h.
35033         (avr-mcus): No more depend on avr-tables.opt.
35034         (avr-tables.opt): Remove rule.
35035         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35037 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35039         * c-family/c.opt (fchkp-use-wrappers): New.
35040         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35041         (chkp_wrap_function): New.
35042         (chkp_build_instrumented_fndecl): Support wrapped
35043         functions.
35044         * doc/invoke.texi (-fcheck-pointer-bounds): New.
35045         (-fchkp-check-incomplete-type): New.
35046         (-fchkp-first-field-has-own-bounds): New.
35047         (-fchkp-narrow-bounds): New.
35048         (-fchkp-narrow-to-innermost-array): New.
35049         (-fchkp-optimize): New.
35050         (-fchkp-use-fast-string-functions): New.
35051         (-fchkp-use-nochk-string-functions): New.
35052         (-fchkp-use-static-bounds): New.
35053         (-fchkp-use-static-const-bounds): New.
35054         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35055         (-fchkp-check-read): New.
35056         (-fchkp-check-write): New.
35057         (-fchkp-store-bounds): New.
35058         (-fchkp-instrument-calls): New.
35059         (-fchkp-instrument-marked-only): New.
35060         (-fchkp-use-wrappers): New.
35061         (-static-libmpx): New.
35062         (-static-libmpxwrappers): New.
35064 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35066         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35067         (CHKP_SPEC): Add wrappers library.
35068         * c-family/c.opt (static-libmpxwrappers): New.
35070 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35072         * config/i386/linux-common.h (LIBMPX_LIBS): New.
35073         (LIBMPX_SPEC): New.
35074         (CHKP_SPEC): New.
35075         * gcc.c (CHKP_SPEC): New.
35076         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35077         * c-family/c.opt (static-libmpx): New.
35079 2015-03-10  Richard Biener  <rguenther@suse.de>
35081         PR middle-end/44563
35082         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35083         for compare_type.
35084         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35085         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35086         (cgraph_add_edge_to_call_site_hash): Likewise.
35087         (cgraph_node::get_edge): Likewise.
35088         (cgraph_edge::set_call_stmt): Likewise.
35089         (cgraph_edge::remove_caller): Likewise.
35091 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
35093         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35094         (callee_saved_gpr_regs_size): ... this.
35095         (callee_saved_regs_first_regno): Rename to ...
35096         (callee_saved_first_gpr_regno): ... this.
35097         (callee_saved_regs_last_regno) Rename to ...
35098         (callee_saved_last_gpr_regno): ... this.
35099         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35100         variables.
35101         (nds32_initial_elimination_offset): Likewise.
35102         (nds32_expand_prologue): Likewise.
35103         (nds32_expand_epilogue): Likewise.
35104         (nds32_expand_prologue_v3push): Likewise.
35105         (nds32_expand_epilogue_v3pop): Likewise.
35106         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35107         Adjust renamed variables.
35108         (nds32_output_stack_pop): Likewise.
35110 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35112         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35113         code in comment.
35115 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35117         PR rtl-optimization/65321
35118         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35119         than shift mode.
35120         * var-tracking.c (use_narrower_mode): Likewise.
35122 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35124         PR tree-optimization/65355
35125         * varasm.c (notice_global_symbol): Do not produce RTL.
35126         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35127         anchor.
35128         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35129         check for section anchors.
35131 2015-03-10  Alan Modra  <amodra@gmail.com>
35133         PR target/65286
35134         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35135         to be single-arch by default.  Set cpu_is_64bit for powerpc64
35136         given --with-cpu=native.
35137         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35138         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35139         and powerpc64le.
35140         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35141         rs6000_isa_flags rather than TARGET_64BIT.
35143 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
35144             Kaz Kojima  <kkojima@gcc.gnu.org>
35146         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35148 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
35150         PR lto/65361
35151         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35152         on a TREE_BINFO, instead use BINFO_TYPE.
35154 2015-03-09  Richard Biener  <rguenther@suse.de>
35156         PR middle-end/65270
35157         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35158         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35159         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
35160         of that.  When comparing dereferences compare alignment.
35161         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35163 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35165         * ipa-inline-analysis.c (check_callers): Check
35166         node->can_remove_if_no_direct_calls_and_refs_p.
35167         (growth_likely_positive): Reorganize to call
35168         can_remove_if_no_direct_calls_p later.
35169         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35170         will_be_removed_from_program_if_no_direct_calls_p): Add
35171         will_inline parameter.
35172         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35173         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35174         Handle inliner case correctly.
35176 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35178         PR tree-optimization/63743
35179         * cfgexpand.c (reorder_operands): Also reorder if only second operand
35180         had its definition forwarded by TER.
35182 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35184         PR lto/65316
35185         * ipa-utils.h (types_odr_comparable): Add strict argument.
35186         * ipa-devirt.c: Fix whitespace;
35187         (odr_hasher): Remove.
35188         (odr_name_hasher, odr_vtable_hasher): New hashers.
35189         (can_be_name_hashed_p): New predicate.
35190         (hash_type_name): remove.
35191         (hash_odr_name): New.
35192         (odr_name_hasher::hash): new.
35193         (can_be_vtable_hashed_p): New.
35194         (hash_odr_vtable): New.
35195         (odr_vtable_hasher::hash): New.
35196         (types_same_for_odr): Add strict parameter.
35197         (types_odr_comparable): Likewise.
35198         (odr_name_hasher::equal): New.
35199         (odr_vtable_hasher::equal): New.
35200         (odr_name_hasher::remove): New.
35201         (odr_hash_type): Change to hash_table<odr_name_hasher>.
35202         (odr_vtable_hash_type): New.
35203         (odr_vtable_hash): New.
35204         (odr_subtypes_equivalent_p): Do strict comparsion.
35205         (add_type_duplicate): Merge type names; cleanup; avoid type
35206         duplicates.
35207         (register_odr_type): Initialize vtable hash.
35208         (build_type_inheritance_graph): Likewise
35209         (get_odr_type): Reorg to use two hashes.
35210         (dump_possible_polymorphic_call_targets): Move sanity check after debug
35211         output.
35212         (ipa_devirt): Dump type_inheritance_graph.
35213         (types_same_for_odr): Add strict mode.
35215 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35217         PR ipa/65334
35218         * cgraph.h (symtab_node): Add definition_alignment,
35219         can_increase_alignment_p and increase_alignment.
35220         * symtab.c (symtab_node::can_increase_alignment_p,
35221         increase_alignment_1, symtab_node::increase_alignment,
35222         symtab_node::definition_alignment): New.
35223         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35224         can_increase_alignment_p.
35225         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35226         * tree-vect-stmts.c (ensure_base_align): Likewise.
35227         * varasm.c (function_section_1): Use definition_alignment.
35228         (assemble_start_function): Likewise.
35229         (emit_local): likewise.
35230         (build_constant_desc): Likewsie.
35231         (output_constant_def_contents): Likewise.
35232         (place_block_symbol): Likewise.
35233         (output_object_block): Likewise.
35235 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35237         PR ipa/65316
35238         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35239         when outputting debug.
35241 2015-03-07  Marek Polacek  <polacek@redhat.com>
35242             Martin Uecker  <uecker@eecs.berkeley.edu>
35244         PR sanitizer/65280
35245         * doc/invoke.texi: Update description of -fsanitize=bounds.
35247 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
35249         * tree-ssa-phiopt.c (neg_replacement): Remove.
35250         (tree_ssa_phiopt_worker): Remove negate optimization.
35252 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35254         PR ipa/65302
35255         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35257 2015-03-06  Richard Biener  <rguenther@suse.de>
35259         PR middle-end/64928
35260         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35261         and liveout_obstack members.
35262         (calculate_live_on_exit): Remove.
35263         (calculate_live_ranges): Change declaration.
35264         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35265         (new_tree_live_info): Adjust.
35266         (calculate_live_ranges): Delete livein when not wanted.
35267         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35268         Deal with partly deleted live info.
35269         (loe_visit_block): Remove temporary bitmap by using
35270         bitmap_ior_and_compl_into.
35271         (live_worklist): Adjust accordingly.
35272         (calculate_live_on_exit): Make static.
35273         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35274         we do not need livein.
35276 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
35278         * real.c (real_from_string): Fix typo in assertion.
35280 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
35282         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35283         the patch.
35285 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35287         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35289 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
35291         PR target/64342
35292         * lra-assigns.c (find_hard_regno_for): Rename to
35293         find_hard_regno_for_1.  Add a new parameter.
35294         (find_hard_regno_for): New function using find_hard_regno_for_1.
35296 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35298         PR rtl-optimization/65067
35299         * expmed.c (store_bit_field, extract_bit_field): Reworked the
35300         strict volatile bitfield handling.
35302 2015-03-05  Martin Liska  <mliska@suse.cz>
35304         PR ipa/65318
35305         * ipa-icf.c (sem_variable::equals): Compare variables types.
35307 2015-03-05  Richard Henderson  <rth@redhat.com>
35309         PR target/65121
35310         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35311         correctly check weak symbol binding.
35313 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
35315         PR middle-end/65315
35316         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35317         needed alignment.
35319 2015-03-05  Martin Liska  <mliska@suse.cz>
35321         * ipa-inline.c (inline_small_functions): Set default value to
35322         prevent warning during bootstrap.
35323         * tree.h: Add pragma guard that ignores false positives during
35324         bootstrap.
35326 2015-03-05  Richard Biener  <rguenther@suse.de>
35328         PR tree-optimization/65310
35329         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35330         Properly preserve alignment of the base of the access.
35332 2015-03-05  Richard Biener  <rguenther@suse.de>
35334         PR ipa/65270
35335         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35336         Compare dependence info.
35338 2015-03-05  Richard Biener  <rguenther@suse.de>
35340         PR middle-end/65233
35341         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35342         tree-into-ssa.h.
35343         (walk_ssa_copies): Revert last chage.  Instead do not walk
35344         SSA names registered for SSA update.
35346 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35348         PR ipa/65270
35349         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35350         vtable references for their containing type.
35351         (sem_function::equals_wpa): Compare TYPE_RESTRICT
35352         and type attributes.
35354 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
35356         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35357         before negating it.
35358         * stor-layout.c (finalize_record_size): Revert latest change.
35360 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
35362         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35364 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35366         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35367         for correct comdat handling.
35368         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35369         Likewise.
35370         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35371         (used_from_object_file_p_worker): Remove.
35372         (cgraph_node::only_called_directly_or_alised): Add
35373         used_from_object_file_p.
35374         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35375         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35376         can_remove_if_no_direct_calls_and_refs_p.
35378 2015-03-04  Nick Clifton  <nickc@redhat.com>
35380         * config/rl78/rl78.h (enum reg_class): Remove real registers from
35381         General register class.
35382         * config/rl78/rl78-real.md: Replace general register constraints
35383         with real+virtual register constraints.
35385 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35387         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35388         from checking for -mhtm option.
35390 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35392         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35393         (struct ipa_sra_check_caller_data): Add has_thunk field.
35394         (ipa_sra_check_caller): Check for thunk.
35395         (ipa_sra_preliminary_function_checks): Give up on function with
35396         thunks.
35397         (ipa_early_sra): Use call_for_symbol_and_aliases.
35399 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
35401         PR target/65249
35402         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35403         called for __stack_chk_guard symbol.
35405 2015-03-03  DJ Delorie  <dj@redhat.com>
35407         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35408         inc/dec.
35409         (*addhi3_real): Likewise.
35410         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35411         pattern to match incrementing memory.
35412         * config/rl78/predicates.md (rl78_1_2_operand): New.
35413         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35414         it's the same and only mem.
35415         (rl78_alloc_physical_registers_op2): If there's effectively only
35416         one MEM, transcode it into HL.
35417         (rl78_far_p): Reject addresses that aren't legitimate.
35419 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35421         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35422         negating it.
35424         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35426 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35428         Implement call0 ABI for xtensa
35429         * config/xtensa/constraints.md ("a" constraint): Include stack
35430         pointer in case of call0 ABI.
35431         ("q" constraint): Make empty in case of call0 ABI.
35432         ("D" constraint): Include stack pointer in case of call0 ABI.
35433         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35434         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35435         prototypes.
35436         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35437         variable.
35438         (xtensa_regno_to_class): Make it a local variable in the
35439         function xtensa_regno_to_class.
35440         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35441         macro, function prototype and implementation.
35442         (reg_nonleaf_alloc_order): Make it a local variable in the
35443         function order_regs_for_local_alloc.
35444         (xtensa_conditional_register_usage): New function.
35445         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35446         (xtensa_valid_move): Allow direct moves to stack pointer
35447         register in call0 ABI.
35448         (xtensa_setup_frame_addresses): Only spill register windows in
35449         windowed ABI.
35450         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35451         call0 ABI respectively.
35452         (xtensa_function_arg_1): Only mark a7 register for copying in
35453         windowed ABI.
35454         (xtensa_call_save_reg): New function.
35455         (compute_frame_size): Add space for callee saved register
35456         storage to the frame size in call0 ABI.
35457         (xtensa_expand_prologue): Generate code to set up stack frame
35458         and save callee-saved registers in call0 ABI.
35459         (xtensa_expand_epilogue): New function.
35460         (xtensa_set_return_address): New function.
35461         (xtensa_return_addr): Calculate return address in call0 ABI.
35462         (xtensa_builtin_saveregs): Only mark a7 register for copying and
35463         emit copying code in windowed ABI.
35464         (order_regs_for_local_alloc): Add preferred register allocation
35465         order for non-leaf function in call0 ABI.
35466         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35467         (xtensa_asm_trampoline_template): Add trampoline generation for
35468         call0 ABI.
35469         (xtensa_trampoline_init): Add trampoline initialization for
35470         call0 ABI.
35471         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35472         functions.
35473         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35474         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35475         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35476         ABI call-used registers.
35477         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35478         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35479         call0 ABI.
35480         (REG_CLASS_CONTENTS): Include all registers into the preferred
35481         reload registers set, adjust the set in the
35482         xtensa_conditional_register_usage.
35483         (xtensa_regno_to_class): Drop variable declaration.
35484         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35485         function.
35486         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35487         respectively.
35488         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35489         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35490         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35491         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35492         location in call0 ABI.
35493         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35494         stack adjustment size when handling exception.
35495         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35496         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35497         definitions.
35498         ("return" pattern): Generate ret.n/ret in call0 ABI.
35499         ("epilogue" pattern): Expand epilogue.
35500         ("nonlocal_goto" pattern): Use default in call0 ABI.
35501         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35502         emit eh_set_a0_* depending on ABI.
35503         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35504         ("eh_set_a0_call0", "blockage"): New patterns.
35506 2015-03-03  Martin Liska  <mliska@suse.cz>
35508         PR ipa/65287
35509         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35511 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
35513         PR 65138/target
35514         * config/rs6000/rs6000-tables.opt: Regenerate table.
35516 2015-03-03  Renlin Li  <renlin.li@arm.com>
35518         * doc/md.texi (@item ^): Change ? into ^.
35520 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
35522         * doc/tm.texi: Regenerated.
35524 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35526         * builtins.c (expand_builtin_return_addr): Add
35527         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35528         surrounding #ifdef.
35529         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35530         definition to 1.
35531         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35532         Likewise.
35533         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35534         undefined.
35535         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35536         paragraph.
35538 2015-03-03  Martin Jambor  <mjambor@suse.cz>
35539             Eric Botcazou  <ebotcazou@adacore.com>
35541         * tree-sra.c (ipa_sra_check_caller_data): New type.
35542         (has_caller_p): Removed.
35543         (ipa_sra_check_caller): New function.
35544         (ipa_sra_preliminary_function_checks): Use it.
35546 2015-03-03  Martin Liska  <mliska@suse.cz>
35548         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35549         instead of if branch.
35551 2015-03-03  Martin Liska  <mliska@suse.cz>
35553         PR ipa/65282
35554         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35556 2015-03-23  Jeff Law  <law@redhat.com>
35558         PR tree-optimization/65241
35559         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35560         hash table if INSERT is true.
35562 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35564         PR target/65296
35565         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35567 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35569         PR target/64331
35570         * config/avr/avr.c (context.h, tree-pass.h): Include them.
35571         (avr_pass_data_recompute_notes): New static variable.
35572         (avr_pass_recompute_notes): New class.
35573         (avr_register_passes): New static function.
35574         (avr_option_override): Call it.
35576 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
35578         Fix various problems with specs file generation.
35580         PR target/65296
35581         * config.gcc (extra_gcc_objs) [avr]: Remove.
35582         * config/avr/driver-avr.c: Remove file.
35583         * config/avr/t-avr (driver-avr.o): Remove rule.
35584         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35585         INCLUDES to build.  Depend on TM_H.
35586         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
35587         build warnings.  Fix non-matching types and non-existing %-codes.
35588         (tm.h): Include.
35589         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35590         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35591         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35592         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35593         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35594         (LIBGCC_SPEC): Remove definitions.
35596 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35598         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35599         to create a register in testing mode.
35601 2015-03-03  Martin Liska  <mliska@suse.cz>
35602             Jan Hubicka  <hubicka@ucw.cz>
35604         PR ipa/65263
35605         * cgraph.c (cgraph_node::has_thunk_p): New function.
35606         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35607         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35608         (sem_function::merge): Assert is changed.
35610 2015-03-03  Martin Liska  <mliska@suse.cz>
35611             Martin Jambor  <mjambor@suse.cz>
35613         PR ipa/65087
35614         * ipa-icf.c (sem_item_optimizer::execute): Change function
35615         return value to boolean.
35616         (sem_item_optimizer::merge_classes): Likewise.
35617         (ipa_icf_driver): Return TODO_remove_functions in case there's
35618         a merge operation processed.
35619         * ipa-icf.h: Change function return value to boolean.
35621 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
35623         PR 65138/target
35624         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35625         processor type for 64-bit little endian PowerPC.
35627         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35628         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
35629         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
35630         printing built-in mask so it does not pass NULL pointers.
35632         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35633         -mcpu=powerpc64le.
35635 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
35637         PR target/58158
35638         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35639         !ISA_HAS_FP_CONDMOVE.
35641 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
35643         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35644         reload_completed.
35646 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
35648         * doc/invoke.texi (Options for Code Generation Conventions):
35649         Fix URL of DSO paper.
35651 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35653         PR ipa/65130
35654         * ipa-inline.c (check_callers): Looks for recursion.
35655         (inline_to_all_callers): Give up on uninlinable or recursive edges.
35656         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35657         summary of inline clones.
35658         (do_estimate_growth_1): Fix recursion check.
35660 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35662         PR ipa/64988
35663         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35664         comdat groups.
35666 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
35667             Aldy Hernandez  <aldyh@redhat.com>
35669         PR lto/65276
35670         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35671         when checking TYPE_BINFO.
35673 2015-03-02  Richard Biener  <rguenther@suse.de>
35675         PR ipa/65270
35676         * ipa-icf-gimple.c: Include builtins.h.
35677         (func_checker::compare_memory_operand): Compare base alignment.
35679 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35681         PR target/65184
35682         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35683         passed by reference.
35685 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35687         PR target/65183
35688         * tree-chkp.c (chkp_check_lower): Don't check against
35689         zero bounds for already instrumented functions.
35690         (chkp_check_upper): Likewise.
35691         (chkp_fini): Clean pass local data to avoid wrong reusage.
35693 2015-02-28  Martin Liska  <mliska@suse.cz>
35694             Jan Hubicka  <hubicka@ucw.cz>
35696         * ipa-icf.c (sem_variable::equals): Improve debug output;
35697         get variable constructor.
35698         (sem_variable::parse): Do not filter out too early; give up on
35699         volatile and register vars.
35700         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35701         variables.
35702         * ipa-icf.h (sem_variable::init): Do not set ctor.
35703         (sem_variable::ctor): Remove.
35705 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
35707         PR middle-end/65233
35708         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35710 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35712         * ipa-icf.c: Include stor-layout.h
35713         (sem_function::compare_cgraph_references): Rename to ...
35714         (sem_item::compare_cgraph_references): ... this one.
35715         (sem_variable::equals_wpa): New function
35716         (sem_variable::equals): Do not check stuff already verified by
35717         equals_wpa.
35718         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35719         * ipa-icf.h (sem_item): Add compare_cgraph_references.
35720         (sem_function): Remove compare_cgraph_references.
35721         (sem_variable): Turns equals_wpa into non-inline.
35723 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35725         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35726         (sem_item::add_expr): New function.
35727         (sem_function::hash_stmt): Handle operands of most statements.
35728         (sem_variable::get_hash): Hash the actual constructor.
35729         * ipa-icf.h (sem_item): Add add_expr.
35730         (sem_function): Update prototype of hash_stmt
35732 2015-02-28  Martin Liska  <mliska@suse.cz>
35733             Jan Hubicka  <hubicka@ucw.cz>
35735         PR ipa/65245
35736         * ipa-icf-gimple.c (func_checker::compare_function_decl):
35737         Remove.
35738         (func_checker::compare_variable_decl): Skip symtab vars.
35739         (func_checker::compare_cst_or_decl): Update.
35740         * ipa-icf.c (sem_function::parse): Do not consider aliases.
35741         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35742         use correct symtab predicates.
35743         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35744         (sem_variable::parse):  Update comment.
35745         (sem_item_optimizer::build_graph): Consider ultimate aliases
35746         for references.
35748 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35750         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35751         of OBJ_TYPE_REF.
35753 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35755         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35756         (sem_variable::merge) Likewise.
35758 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35760         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35761         target; also match flag_ipa_devirt.
35763 2015-03-01  Martin Liska  <mliska@suse.cz>
35764             Jan Hubicka  <hubicka@ucw.cz>
35766         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35767         Validate variable alignment.
35768         * ipa-icf.c (sem_function::equals_private): Be more precise
35769         about non-common function attributes.
35770         (sem_variable::equals): Likewise.
35772 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35774         PR ipa/65237
35775         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35776         across COMDAT group boundary.
35778 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35780         PR ipa/65232
35781         * ipa-icf.c (clear_decl_rtl): New function.
35782         (sem_function::merge): Clear RTL before forming alias.
35783         (sem_variable::merge): Clear RTL before forming alias.
35785 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
35787         PR ipa/65236
35788         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35790 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
35792         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35793         to neon_to_gp<q>.
35795 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35797         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35798         a typo in the description.
35800 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35802         PR target/64317
35803         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35804         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35805         * lra-constraints.c: Include "params.h".
35806         (EBB_PROBABILITY_CUTOFF): Use
35807         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35808         (lra_inheritance): Use '<' instead of '<=' for
35809         EBB_PROBABILITY_CUTOFF.
35810         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35811         Document change.
35813 2015-02-27  Martin Liska  <mliska@suse.cz>
35815         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35816         vector length condition.
35818 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
35820         * doc/extend.texi (x86 transactional memory intrinsics):
35821         Reorganize discussion of _xbegin.  Clarify that the return
35822         value is a bit mask.  Expand example and move to end of section.
35824 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35825             Aldy Hernandez  <aldyh@redhat.com>
35827         PR rtl-optimization/65220
35828         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35830 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35832         PR target/65032
35833         * lra-remat.c (update_scratch_ops): New.
35834         (do_remat): Call it.
35835         * lra.c (lra_register_new_scratch_op): New. Take code from ...
35836         (remove_scratches): ... here.
35837         * lra-int.h (lra_register_new_scratch_op): New prototype.
35839 2015-02-27  Marek Polacek  <polacek@redhat.com>
35841         PR c/65040
35842         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35843         -Wformat-signedness anymore.
35845 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35847         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35848         function.
35849         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35851 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35853         * config/s390/s390.c (enum s390_builtin):
35854         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35855         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35856         (s390_init_builtins): Generate new builtin functions.
35857         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35858         (s390_sfpc, s390_efpc): New pattern definitions.
35860 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35862         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35863         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35864         (s390_builtin_decls): New array.
35865         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35866         (s390_builtin_decl): New function.
35867         (TARGET_BUILTIN_DECL): Define macro.
35869 2015-02-27  Richard Biener  <rguenther@suse.de>
35871         PR middle-end/63175
35872         * builtins.c (get_object_alignment_2): Make sure to re-apply
35873         the ANDed mask after recursing to its operand gets us a new
35874         misalignment bit position.
35876 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
35877             Martin Liska  <mliska@suse.cz>
35879         PR bootstrap/65150
35880         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35881         Use address_matters_p.
35882         (redirect_all_callers, set_addressable): New functions.
35883         (sem_function::merge): Reorganize and fix merging issues.
35884         (sem_variable::merge): Likewise.
35885         (sem_variable::compare_sections): Remove.
35886         * common.opt (fmerge-all-constants, fmerge-constants): Remove
35887         Optimization flag.
35888         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35889         redirect them.
35890         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35891         decl is used.
35892         (address_matters_1): New function.
35893         (symtab_node::address_matters_p): New function.
35894         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35895         check for merged flag.
35896         * cgraph.h (address_matters_p): Declare.
35897         (symtab_node::address_taken_from_non_vtable_p): Remove.
35898         (symtab_node::address_can_be_compared_p): New method.
35899         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35900         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35901         Remove.
35902         (comdat_can_be_unshared_p_1) Use address_matters_p.
35903         (update_vtable_references): Fix formating.
35904         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35905         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35906         * cgraphclones.c: Preserve merged and icf_merged flags.
35908 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
35910         * doc/extend.texi (Function Attributes): Fix spelling and typos.
35911         (Label Attributes): Likewise.
35912         (Cilk Plus Builtins): Likewise.
35913         (ARC SIMD Built-in Functions): Likewise.
35914         (ARM C Language Extensions (ACLE)): Likewise.
35915         (PowerPC Built-in Functions): Likewise.
35916         (PowerPC Hardware Transactional Memory Built-in Functions):
35917         Likewise.
35919 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35921         PR tree-optimization/65216
35922         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35923         new stmt and new SSA_NAME for lhs whenever the arguments have
35924         changed and weren't just swapped.  Fix comment typo.
35926         PR tree-optimization/65215
35927         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35928         for PDP endian targets.
35929         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35930         Fix up formatting issues.
35931         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
35932         size is smaller than the original, adjust MEM_REF offset by the
35933         difference of sizes.  Use is_gimple_mem_ref_addr instead of
35934         is_gimple_min_invariant test to avoid adding address temporaries.
35936 2015-02-26  Martin Liska  <mliska@suse.cz>
35937             Jan Hubicka  <hubicka@ucw.cz>
35939         PR ipa/64693
35940         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35941         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35942         (sem_item_optimizer::process_cong_reduction): Include division by
35943         sensitive references.
35944         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35945         * ipa-ref.c (ipa_ref::address_matters_p): New function.
35946         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35948 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
35950         PR target/65192
35951         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35952         Remove.
35953         * config/avr/avr.c: Same.
35954         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35955         Refuse any constant address not in 0..0xbf.
35956         * config/avr/avr.md (*mov<mode>, *movsf): Remove
35957         tiny_valid_direct_memory_access_range from insn conditions.
35958         (mov<mode>): Don't special-case expansion of avrtiny addresses.
35960 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
35962         PR target/61142
35963         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35964         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35965         * config/sh/predicates.md (const_logical_operand): New predicate.
35966         * config/sh/sh.md: Add new peephole2 patterns.
35968 2015-02-26  Marek Polacek  <polacek@redhat.com>
35970         PR ipa/65008
35971         * ipa-inline.c (early_inliner): Recompute inline parameters.
35973 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35975         PR target/65171
35976         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35977         instructions with TImode operands are included in the analysis.
35979 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35981         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35982         of an EDGE_FSM_THREAD.
35984 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35986         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35988 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
35990         PR debug/46102
35991         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35993 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35995         PR tree-optimization/65048
35996         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35997         (thread_through_all_blocks): Call valid_jump_thread_path.
35998         Remove invalid FSM jump-thread paths.
36000 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36002         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36003         (ipa_write_optimization_summaries): Likewise.
36004         * tree-streamer.h: Include data-streamer.h.
36005         (streamer_mode_table): Declare extern variable.
36006         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36007         * lto-streamer-out.c (lto_output_init_mode_table,
36008         lto_write_mode_table): New functions.
36009         (produce_asm_for_decls): Call lto_write_mode_table when streaming
36010         offloading LTO.
36011         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36012         (lto_create_simple_input_block): Add mode_table argument to the
36013         lto_input_block constructors.
36014         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36015         Likewise.
36016         * data-streamer-in.c (string_for_index): Likewise.
36017         * ipa-inline-analysis.c (inline_read_section): Likewise.
36018         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36019         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36020         * lto-streamer-in.c (lto_read_body_or_constructor,
36021         lto_input_toplevel_asms): Likewise.
36022         (lto_input_mode_table): New function.
36023         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36024         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36025         Use bp_pack_machine_mode.
36026         * real.h (struct real_format): Add name field.
36027         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36028         (class lto_input_block): Add mode_table member.
36029         (lto_input_block::lto_input_block): Add mode_table_ argument,
36030         initialize mode_table.
36031         (struct lto_file_decl_data): Add mode_table field.
36032         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36033         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36034         unpack_ts_decl_common_value_fields,
36035         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36036         * tree-streamer.c (streamer_mode_table): New variable.
36037         * real.c (ieee_single_format, mips_single_format,
36038         motorola_single_format, spu_single_format, ieee_double_format,
36039         mips_double_format, motorola_double_format,
36040         ieee_extended_motorola_format, ieee_extended_intel_96_format,
36041         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36042         ibm_extended_format, mips_extended_format, ieee_quad_format,
36043         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36044         decimal_single_format, decimal_double_format, decimal_quad_format,
36045         ieee_half_format, arm_half_format, real_internal_format): Add name
36046         field.
36047         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36049 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
36051         PR target/65161
36052         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36053         reordering for selective scheduling.
36055 2015-02-26  Terry Guo  <terry.guo@arm.com>
36057         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36058         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36059         (arm_arch_no_volatile_ce): Declare new global variable.
36060         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36061         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36062         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36063         (TARGET_NO_VOLATILE_CE): New macro.
36064         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36065         volatile memory access in IT block
36067 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36069         PR tree-optimization/61917
36070         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36071         that reduc_def_stmt is null.
36073 2015-02-25  Martin Liska  <mliska@suse.cz>
36075         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36076         hard register variables.
36078 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36080         PR target/64212
36081         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36082         (symtab::noninterposable_alias): Likewise.
36084 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36086         PR target/65167
36087         * config/i386/i386.c (ix86_function_arg_regno_p): Support
36088         bounds registers.
36089         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36091 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
36093         PR target/64997
36094         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36095         as split condition; force split via '#' in output pattern.
36097 2015-02-25  Richard Biener  <rguenther@suse.de>
36098             Kai Tietz  <ktietz@redhat.com>
36100         PR tree-optimization/61917
36101         * tree-vect-loop.c (vectorizable_reduction): Allow
36102         vect_internal_def without reduction to exit graceful.
36104 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36106         PR target/65196
36107         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36108         only with NONDEBUG_INSN_P.
36110 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36112         Use variadic macros with avr-log.c.
36114         * config/avr/avr-protos.h (avr_vdump): New prototype.
36115         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36116         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36117         * config/avr/avr-log.c: Adjust comments.
36118         (avr_vdump): New function.
36119         (avr_vadump): Pass caller as 2nd argument instead of format string.
36120         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36121         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36123 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
36125         PR lto/64374
36126         * target.def (target_option_stream_in): New target hook.
36127         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36128         targetm.target_option.post_stream_in if non-NULL.
36129         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36130         * doc/tm.texi: Updated.
36131         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36132         function.
36133         (TARGET_OPTION_POST_STREAM_IN): Redefine.
36135 2015-02-24  Jeff Law  <law@redhat.com>
36137         PR target/65117
36138         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36139         of operand 0 and operand 2.
36140         (zero_cost_loop_end, loop_end): Similarly.
36142 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
36144         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36145         CXX_MEM_STAT_INFO.
36147 2015-02-24  DJ Delorie  <dj@redhat.com>
36149         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36150         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36151         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36152         instead of hardcoding SImode.
36154 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
36156         * omp-low.c (create_omp_child_function): Tag entrypoint
36157         functions with a special attribute.
36159 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36161         PR target/65058
36162         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36164 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
36166         PR rtl-optimization/65123
36167         * lra-remat.c (operand_to_remat): Check hard regs in insn
36168         definition too.
36170 2015-02-24  Nick Clifton  <nickc@redhat.com>
36172         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36173         to the assembler.
36175 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
36177         PR libgomp/64625
36178         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36179         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36180         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36181         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36182         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36183         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36184         (BUILT_IN_GOACC_PARALLEL): Specify as
36185         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36186         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36187         * builtin-types.def
36188         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36189         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36190         Remove function types.
36191         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36192         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36193         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36194         New function types.
36196 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
36198         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36200 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
36202         PR tree-optimization/65170
36203         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36204         if val[1] < 0, clear also val[2] and return 3.
36206 2015-02-24  Alan Modra  <amodra@gmail.com>
36208         PR target/65172
36209         * config/rs6000/rs6000.c (get_memref_parts): Only return true
36210         when *base is a reg.  Handle nested plus addresses.  Simplify
36211         pre_modify test.
36213 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
36215         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36216         use natural alignment when optimizing for size.
36218 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
36220         PR target/65153
36221         * config/sh/sh.md (movsicc_true+3): Remove peephole.
36222         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36223         * config/sh/sh.c (replace_n_hard_rtx): Remove.
36225 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
36227         PR fortran/63427
36228         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36229         too big for a wide_int.  Implement missing wrapping operation.
36231 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
36233         PR target/65163
36234         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36235         instead of const_int 4294901760.
36237 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
36239         * config/avr/t-avr: Fix typo in comment.
36241 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
36243         * doc/rtl.texi (fma): Clarify documentation.
36245 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
36247         PR debug/58123
36248         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36249         over input_location.
36251 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36253         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36254         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36255         restrict alignments to absolute_biggest_alignment.
36256         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36257         Define.
36258         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36259         * doc/tm.texi: Regenerate.
36260         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36262 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
36264         PR target/64172
36265         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36267 2015-02-20  Richard Biener  <rguenther@suse.de>
36269         PR tree-optimization/65136
36270         * tree-ssa-propagate.c: Include cfgloop.h.
36271         (replace_phi_args_in): Avoid replacing loop latch edge PHI
36272         arguments with constants.
36274 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
36275             Martin Liska  <mliska@suse.cz>
36277         PR target/63892
36278         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36279         don't try to create_thunk if stdarg_p.  If
36280         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36281         redirect_callers if possible.
36282         (sem_item_optimizer::execute): Call unregister_hooks here...
36283         (ipa_icf_driver): ... instead of here.
36285 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36287         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36288         Mark operand 0 as earlyclobber in 2nd alternative.
36289         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36290         Write negated shift amount into QI lowpart operand 0 and use it
36291         in the shift step.
36292         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36294 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36296         * cgraph.h (clone_function_name_1): Declare.
36297         * cgraphclones.c (clone_function_name_1): New function.
36298         (clone_function_name): Use it.
36299         * lto-partition.c: Include "stringpool.h".
36300         (must_not_rename, maybe_rewrite_identifier)
36301         (validize_symbol_for_target): New static functions.
36302         (privatize_symbol_name): Use must_not_rename.
36303         (promote_symbol): Call validize_symbol_for_target.
36304         (lto_promote_cross_file_statics): Likewise.
36305         (lto_promote_statics_nonwpa): Likewise.
36307 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
36309         PR target/64452
36310         * config/avr/avr.md (pushhi_insn): New insn.
36311         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36313 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36314             Jakub Jelinek  <jakub@redhat.com>
36316         * tree-streamer.c (preload_common_nodes): Don't preload
36317         TI_VA_LIST* for offloading.
36318         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36319         in_lto_p.
36321 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
36323         * config/pa/pa.c (pa_emit_move_sequence): Always force
36324         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
36325         note on insn.
36327         * config/pa/pa.c (pa_reloc_rw_mask): New function.
36328         (TARGET_ASM_RELOC_RW_MASK): Define.
36329         (pa_cannot_force_const_mem): Revert previous change.
36331 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
36332             Jan Hubicka  <hubicka@ucw.cz>
36334         PR ipa/65028
36335         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36336         across jump functions.
36338 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
36340         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36342 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
36344         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36346 2015-02-19  Richard Henderson  <rth@redhat.com>
36348         PR middle-end/65074
36349         * varasm.c (default_binds_local_p_2): Don't test node->definition;
36350         test DECL_EXTERNAL independent of symtab_node.
36352 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
36354         PR lto/65012
36355         * varpool.c (varpool_node::get_constructor): Return early
36356         if this->lto_file_data is NULL.
36358 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36360         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36361         (rank_for_schedule_debug): Update.
36362         (ready_sort): Make static.  Move sorting logic to ...
36363         (ready_sort_debug, ready_sort_real): New static functions.
36364         (schedule_block): Sort both debug insns and real insns in preparation
36365         for ready list trimming.  Improve debug output.
36366         * sched-int.h (ready_sort): Remove global declaration.
36368 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
36370         * ipa-icf.c (sem_function::equals_private): Adjust.
36371         (sem_function::bb_dict_test): Take a vec<int> * instead of
36372         auto_vec<int>.
36373         * ipa-icf.h (bb_dict_test): Likewise.
36375 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36377         PR gcov-profile/64634
36378         * tree-eh.c (frob_into_branch_around): Fix up typos
36379         in function comment.
36380         (lower_catch): Put eh_seq resulting from EH lowering of
36381         the cleanup sequence after the cleanup rather than before it.
36383 2015-02-18  Tom de Vries  <tom@codesourcery.com>
36385         * common.opt (fstdarg-opt): New option.
36386         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36387         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36388         (@item -fstdarg-opt): New item.
36390 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
36392         PR target/65064
36393         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36394         for common symbols.
36396 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36398         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36399         insn-modes.h.
36400         (ALL_HOST_OBJS): Add mkoffload.o.
36401         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36403 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
36405         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36406         (compare_virtual_tables): Be smarter about skipping typeinfos;
36407         do sane output on virtual table table mismatch.
36408         (warn_odr): Be ready for forward declarations of enums;
36409         output sane info on base mismatch and virtual table mismatch.
36410         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36411         when only one type is polymorphic.
36412         (get_odr_type): Fix hashtable corruption.
36413         (dump_odr_type): Dump mangled names.
36415 2015-02-18  Richard Biener  <rguenther@suse.de>
36417         PR tree-optimization/65063
36418         * tree-predcom.c (determine_unroll_factor): Return 1 if we
36419         have replaced looparound PHIs.
36421 2015-02-18  Martin Liska  <mliska@suse.cz>
36423         * lto-streamer.c (lto_streamer_init): Encapsulate
36424         streamer_check_handled_ts_structures with checking macro.
36426 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36428         PR ipa/65087
36429         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36430         section if !implicit_section.
36431         (cgraph_node::create_version_clone_with_body): Likewise.
36432         * trans-mem.c (ipa_tm_create_version): Likewise.
36434 2015-02-18  Richard Biener  <rguenther@suse.de>
36436         PR tree-optimization/62217
36437         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36438         into BIVs.
36440 2015-02-18  Marek Polacek  <polacek@redhat.com>
36442         PR sanitizer/65081
36443         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36444         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36445         is in range [-16K, -1].  Don't issue run-time error if
36446         (ptr > ptr + offset).
36448 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
36450         * doc/install.texi (nvptx-*-none): New section.
36451         * doc/invoke.texi (Nvidia PTX Options): Likewise.
36452         * config/nvptx/nvptx.opt: Update.
36454         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36455         (access_check): New functions, copied from
36456         config/i386/intelmic-mkoffload.c.
36457         (main): For non-installed testing, look in all COMPILER_PATHs for
36458         GCC_INSTALL_NAME.
36460         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36462 2015-02-18  Andrew Pinski  <apinski@cavium.com>
36463             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36465         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36466         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36468 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36470         * ipa-visibility.c (function_and_variable_visibility): Only
36471         check locality if node is not already local.
36472         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36473         call_for_symbol_and_aliases instead of
36474         call_for_symbol_thunks_and_aliases.
36475         (ipa_inline): Likewise.
36476         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36477         first walk aliases.
36478         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36479         call_for_symbol_and_aliases.
36480         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36481         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36482         (ipa_propagate_frequency): Update.
36483         (ipa_profile): Add opt_for_fn gueards.
36485 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36487         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36488         * doc/invoke.texi (SH options): Document it.
36489         * config/sh/sh.c (sh_insn_length_adjustment): Check
36490         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36492 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
36494         * common.opt (fipa-cp-alignment): New.
36495         * ipa-cp.c (ipcp_store_alignment_results): Check
36496         flag_ipa_cp_alignment.
36497         * opts.c (default_options_table): Enable -fipa-cp-alignment for
36498         -O2.
36499         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36500         * doc/invoke.texi: Document -fipa-cp-alignment.
36502 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
36504         PR target/64793
36505         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36506         to nil.  Adjust comments.
36508 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
36510         * ipa-visibility.c (function_and_variable_visibility): Only
36511         check locality if node is not already local.
36512         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36513         call_for_symbol_and_aliases instead of
36514         call_for_symbol_thunks_and_aliases.
36515         (ipa_inline): Likewise.
36516         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36517         first walk aliases.
36518         * ipa.c (symbol_table::remove_unreachable_nodes): Use
36519         call_for_symbol_and_aliases.
36520         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36521         (ipa_propagate_frequency_1): Use it; use opt_for_fn
36522         (ipa_propagate_frequency): Update.
36523         (ipa_profile): Add opt_for_fn guards.
36525 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
36527         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36528         skipping of "strange" tokens.
36530 2015-02-17  Jeff Law  <law@redhat.com>
36532         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
36533         obsolete comment.
36535 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
36537         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36538         as forcing a HARD_DEP between instructions, thereby
36539         disallowing rewriting to break dependencies.
36541 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36543         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36544         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36545         variables in boundary that have no inlitalizer encoded and are
36546         not aliases.
36547         * varasm.c (default_binds_local_p_2): External definitions do not
36548         count as definitions here.
36550 2015-02-16  Jeff Law  <law@redhat.com>
36552         PR tree-optimization/64823
36553         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36554         statements.
36555         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36556         threading through blocks with PHIs, but no statements.
36557         (thread_through_normal_block): Distinguish between blocks where
36558         we did not process all the statements and blocks with no statements.
36560 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
36561             James Greenhalgh  <james.greenhalgh@arm.com>
36563         PR ipa/64963
36564         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36565         section if not linkonce.  Fix up formatting.
36566         (cgraph_node::create_version_clone_with_body): Copy section.
36567         * trans-mem.c (ipa_tm_create_version): Likewise.
36569 2015-02-16  Richard Biener  <rguenther@suse.de>
36571         PR tree-optimization/65077
36572         * tree-ssa-structalias.c (get_constraint_for_1): Handle
36573         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36574         (find_func_aliases): Allow float values to carry pointers again.
36576 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
36578         * doc/install.texi (Specific): Reorder targets list to put
36579         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
36580         from the top menu.
36582 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
36583             David Edelsohn  <dje.gcc@gmail.com>
36585         PR target/65058
36586         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36587         mapping class to external variable or function reference.
36588         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36589         mapping class.
36591 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
36593         PR target/53348
36594         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36595         ASM_WEAKEN_DECL if defined.
36597 2015-02-16  Richard Biener  <rguenther@suse.de>
36599         PR lto/65015
36600         * varasm.c (default_file_start): For LTO produced units
36601         emit <artificial> as file directive.
36603 2015-02-16  Richard Biener  <rguenther@suse.de>
36605         PR tree-optimization/63593
36606         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36607         stmts and releasing SSA names until...
36608         (execute_pred_commoning): ... after processing all chains.
36610 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
36612         PR ipa/65059
36613         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36614         external functions.
36616 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
36618         * doc/bugreport.texi: Adjust section titles throughout the file
36619         to use "Title Case".
36620         * doc/extend.texi: Likewise.
36621         * doc/gcov.texi: Likewise.
36622         * doc/implement-c.texi: Likewise.
36623         * doc/implement-cxx.texi: Likewise.
36624         * doc/invoke.texi: Likewise.
36625         * doc/objc.texi: Likewise.
36626         * doc/standards.texi: Likewise.
36627         * doc/trouble.texi: Likewise.
36629 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
36631         * cgraph.h (symtab_node::has_aliases_p): Simplify.
36632         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36633         * tree.c (lookup_binfo_at_offset): Make static.
36634         (get_binfo_at_offset): Do not shadow offset; add explanatory
36635         comment.
36637 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
36639         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36640         for all floading point loads and stores except those using a register
36641         index address.
36642         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36643         to a register.
36645 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36647         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36648         (do_estimate_growth_1): Record if any uninlinable edge was seen.
36649         (estimate_growth): Handle uninlinable edges correctly.
36650         (check_callers): New.
36651         (growth_likely_positive): Handle aliases correctly.
36653 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
36655         * ipa-chkp.c: Use iterate_direct_aliases.
36656         * symtab.c (resolution_used_from_other_file_p): Move inline.
36657         (symtab_node::create_reference): Fix formating.
36658         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36659         (symtab_node::iterate_reference): Move inline.
36660         (symtab_node::iterate_referring): Move inline.
36661         (symtab_node::iterate_direct_aliases): Move inline.
36662         (symtab_node::used_from_object_file_p_worker): Inline into ...
36663         (symtab_node::used_from_object_file_p): ... this one; move inline.
36664         (symtab_node::call_for_symbol_and_aliases): Move inline;
36665         use iterate_direct_aliases.
36666         (symtab_node::call_for_symbol_and_aliases_1): New method.
36667         (cgraph_node::call_for_symbol_and_aliases): Move inline;
36668         use iterate_direct_aliases.
36669         (cgraph_node::call_for_symbol_and_aliases_1): New method.
36670         (varpool_node::call_for_node_and_aliases): Rename to ...
36671         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36672         use iterate_direct_aliases.
36673         (varpool_node::call_for_symbol_and_aliases_1): New method.
36674         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36675         (ipa_discover_readonly_nonaddressable_var): Update.
36676         * ipa-devirt.c: Fix formating.
36677         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36678         Move inline.
36679         (cgraph_node::call_for_symbol_and_aliases): Move inline.
36680         (cgraph_node::call_for_symbol_and_aliases_1): New function..
36681         * cgraph.h (used_from_object_file_p_worker): Remove.
36682         (resolution_used_from_other_file_p): Move inline.
36683         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36684         (symtab_node::iterate_reference): Move inline.
36685         (symtab_node::iterate_referring): Move inline.
36686         (symtab_node::iterate_direct_aliases): Move inline.
36687         (symtab_node::used_from_object_file_p_worker): Inline into ...
36688         (symtab_node::used_from_object_file_p): Move inline.
36689         * tree-emutls.c (ipa_lower_emutls): Update.
36690         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36691         (varpool_node::call_for_node_and_aliases): Remove.
36693 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
36695         PR tree-optimization/62209
36696         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36697         op == range->exp, insert seq and gimplified code after labels
36698         instead of after the phi.
36700 2015-02-13  Jeff Law  <law@redhat.com>
36702         PR bootstrap/65060
36703         Revert my change for tree-optimization/64823.
36705 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36707         PR tree-optimization/65053
36708         * tree-ssa-phiopt.c (value_replacement): When moving assign before
36709         cond, either reset VR on lhs or set it to phi result VR.
36711 2015-02-13  Jeff Law  <law@redhat.com>
36713         PR tree-optimization/64823
36714         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36715         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36716         threading through blocks with PHIs, but no statements.
36717         (thread_through_normal_block): Distinguish between blocks where
36718         we did not process all the statements and blocks with no statements.
36720         PR rtl-optimization/47477
36721         * match.pd (convert (plus/minus (convert @0) (convert @1): New
36722         simplifier to narrow arithmetic.
36724 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
36726         PR ipa/65028
36727         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36728         polymorphic call info when type is not known to be preserved.
36730 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
36732         PR ipa/65028
36733         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36734         (inline_call): Use it.
36736 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
36738         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36739         GOMP_DEVICE_NVIDIA_PTX.
36741 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
36743         PR ipa/65034
36744         * stmt.c (emit_case_nodes): Use void_type_node instead of
36745         NULL_TREE as LABEL_DECL type.
36747 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
36749         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36750         constraints.
36751         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36752         symbolic references to data to be forced to constant memory on the
36753         SOM target.
36755 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
36757         PR tree-optimization/65002
36758         * tree-cfg.c (pass_data_fixup_cfg): Don't update
36759         SSA on start.
36760         * tree-sra.c (some_callers_have_no_vuse_p): New.
36761         (ipa_early_sra): Reject functions whose callers
36762         assume function is read only.
36764 2015-02-13  Richard Biener  <rguenther@suse.de>
36766         PR lto/65015
36767         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36768         for LTO produced CUs.
36770 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
36772         PR tree-optimization/64705
36773         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36774         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36775         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36776         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36777         expand_simple_operations.
36779 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
36780             Richard Henderson  <rth@redhat.com>
36782         PR rtl/32219
36783         * cgraphunit.c (cgraph_node::finalize_function): Set definition
36784         before notice_global_symbol.
36785         (varpool_node::finalize_decl): Likewise.
36786         * varasm.c (default_binds_local_p_2): Rename from
36787         default_binds_local_p_1, add weak_dominate argument.  Use direct
36788         returns instead of assigning to local variable.  Unify varpool and
36789         cgraph paths via symtab_node.  Reject undef weak variables before
36790         testing visibility.  Reorder tests for simplicity.
36791         (default_binds_local_p): Use default_binds_local_p_2.
36792         (default_binds_local_p_1): Likewise.
36793         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36794         via symtab_node.
36795         (default_elf_asm_output_external): Emit visibility when specified.
36797 2015-02-13  Alan Modra  <amodra@gmail.com>
36799         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36800         code setting up r11 for out-of-line fp restore.
36802 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
36804         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36805         (muser-mode): Likewise.
36807 2015-02-13  Alan Modra  <amodra@gmail.com>
36809         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36810         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36812 2015-02-12  David Howells  <dhowells@redhat.com>
36814         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36815         warning.
36816         * tree-ssa-uninit.c (dump_predicates): Likewise.
36817         * opts.c (print_filtered_help): Likewise.
36819 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36821         * dwarf2out.c (output_die): Use "%s", name instead of name to
36822         avoid -Wformat-security warning.
36824         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36825         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36826         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36827         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36829 2015-02-12  Jason Merrill  <jason@redhat.com>
36831         * common.opt (-flifetime-dse): New.
36833 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36835         PR sanitizer/65019
36836         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36838         PR tree-optimization/65014
36839         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36840         use original second operand of arg0 or arg1 instead of
36841         that adjusted by STRIP_NOPS.
36843 2015-02-11  Jeff Law  <law@redhat.com>
36845         PR target/63347
36846         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36847         that needs to be queued, just queue it for a single cycle.
36849 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
36851         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36852         bodies of thunks; comment on why.
36853         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36854         symbols are extern.
36856 2015-02-11  Richard Henderson  <rth@redhat.com>
36858         PR sanitize/65000
36859         * tree-eh.c (mark_reachable_handlers): Mark source and destination
36860         regions of __builtin_eh_copy_values.
36862 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36864         PR middle-end/65003
36865         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36866         ultimate alias is MEM with SYMBOL_REF satisfying
36867         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
36868         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36870 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
36872         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36873         "diagnostic-core.h".
36874         (main): Initialize progname, and call diagnostic_initialize.
36876         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36877         instead of __OPENMP_TARGET__.
36879         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36880         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36881         hard-coding PTX_ID.
36883 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
36885         * doc/sourcebuild.texi (pie_enabled): Document.
36887 2015-02-11  Martin Liska  <mliska@suse.cz>
36889         PR ipa/64813
36890         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36891         a return value for call to a function that is noreturn.
36893 2015-02-11  Richard Biener  <rguenther@suse.de>
36895         PR lto/65015
36896         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36897         and -fresolution.
36899 2015-02-11  Andrew Pinski  <apinski@cavium.com>
36901         PR target/64893
36902         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36903         Change the first argument type to size_type_node and add another
36904         size_type_node.
36905         (aarch64_simd_expand_builtin): Handle the new argument to
36906         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36907         print an out when the first two arguments are not
36908         nonzero integer constants.
36909         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36910         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36912 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36914         PR target/61925
36915         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36916         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36917         (ix86_set_current_function): Rewritten.
36918         (ix86_add_new_builtins): Temporarily clear current_target_pragma
36919         when creating builtin fndecls.
36921 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36923         PR ipa/65005
36924         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36925         function.
36926         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36927         have no comdat group.
36928         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36929         (lto_output_varpool_node): Always output alias info.
36930         (output_refs): Output refs of boundary aliases, too.
36931         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36932         (output_symtab): Output call eges in thunks in boundary.
36933         (get_alias_symbol): Remove.
36934         (input_node, input_varpool_node): Do not special case weakrefs.
36935         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36936         alias and thunks targets in the boundary; do not take removed symbols
36937         from their comdat groups.
36938         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36939         (cgraph_node::global_info): Remove.
36940         (cgraph_node::rtl_info): Look through aliases and thunks.
36941         * cgrpah.h (global_info): Remove.
36942         (non_local_p): Remove.
36944 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36945             Sandra Loosemore  <sandra@codesourcery.com>
36947         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36948         to inline asm.  List dialects in proper order.
36950 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36951             Sandra Loosemore  <sandra@codesourcery.com>
36953         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36955 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36957         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36958         modified) reference to Solaris.
36960 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
36962         * doc/extend.texi (Extended Asm): Fix typos.
36964 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
36966         PR sanitizer/65004
36967         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36969 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
36971         PR target/64661
36972         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36973         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36974         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36975         * config/sh/constraints.md (Ara, Add): New constraints.
36976         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36977         predicates.
36978         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36979         atomic_mem_operand_0.  Don't use force_reg on the memory address.
36980         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36981         Sra constraint.  Convert to insn_and_split.  Add workaround for
36982         PR 64974.
36983         (atomic_compare_and_swap<mode>_hard): Copy to
36984         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
36985         Use atomic_mem_operand_0 predicate.
36986         (atomic_compare_and_swap<mode>_soft_gusa,
36987         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36988         AraAdd constraints.
36989         (atomic_compare_and_swap<mode>_soft_tcb,
36990         atomic_compare_and_swap<mode>_soft_imask,
36991         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36992         atomic_mem_operand_0 predicate and SraSdd constraints.
36993         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36994         constraint.
36995         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36996         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
36997         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36998         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
36999         force_reg on the memory address.
37000         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37001         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37002         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37003         atomic_mem_operand_1 predicate and Sra constraint.
37004         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37005         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37006         Use atomic_mem_operand_1 predicate.
37007         (atomic_<fetchop_name><mode>_hard): Copy to
37008         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37009         Use atomic_mem_operand_1 predicate.
37010         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37011         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37012         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
37013         insn_and_split.  Use atomic_mem_operand_1 predicate.
37014         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37015         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
37016         Use atomic_mem_operand_1 predicate.
37017         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37018         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37019         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37020         in generated insn with original mem operand before emitting the insn.
37021         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37022         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37023         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37024         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37025         Use atomic_mem_operand_1 predicate and AraAdd constraints.
37026         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37027         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37028         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37029         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37030         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37031         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37032         atomic_not_fetch<mode>_soft_tcb,
37033         atomic_<fetchop_name>_fetch<mode>_soft_imask,
37034         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37035         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37036         Use atomic_mem_operand_1 predicate and SraSdd constraints.
37038 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
37040         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37041         and 3 earlyclobber operands.
37043 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37045         * common.opt (fstack-reuse): Mark as optimization.
37047 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37049         PR ipa/64982
37050         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37052 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
37054         PR tree-optimization/64326
37055         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37057 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
37059         PR gcov-profile/61889
37060         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37062 2015-02-10  Richard Biener  <rguenther@suse.de>
37064         PR tree-optimization/64995
37065         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37066         value we use is final.
37067         (visit_reference_op_store): Always valueize op.
37068         (visit_use): Properly valueize vuses.
37070 2015-02-10  Richard Biener  <rguenther@suse.de>
37072         PR tree-optimization/64909
37073         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37074         pass a scalar-stmt count estimate to the cost model.
37075         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37077 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
37079         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37080         enabled by default together with var-tracking.
37082 2015-02-10  Nick Clifton  <nickc@redhat.com>
37084         * config/rl78/rl78.c: Remove DIV attribute code accidentally
37085         included in previous rl78 commit.
37087 2015-02-10  Richard Biener  <rguenther@suse.de>
37089         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37090         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37091         return the bitpack.
37093 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37095         PR gcov-profile/61889
37096         * config.in: regenerate.
37097         * configure.in: Likewise.
37098         * configure.ac: Check for ftw.h.
37099         * gcov-tool.c: Check for ftw.h before using nftw.
37101 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37103         PR lto/64076
37104         * ipa-visibility.c (update_visibility_by_resolution_info): Only
37105         assert when not in lto mode.
37107 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
37109         * ira-color.c (setup_left_conflict_sizes_p): Simplify
37110         initialization/assignment of conflict_size.
37112 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
37114         PR ipa/64978
37115         * ipa-cp.c (gather_caller_stats): Skip thunks.
37116         (propagate_constants_topo): Skip aliases.
37118 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
37120         PR target/64761
37121         * config/sh/sh.c (sh_option_override): Don't change
37122         -freorder-blocks-and-partition to -freorder-blocks even when
37123         unwinding is enabled.
37124         (sh_can_follow_jump): Return false if the followee jump is
37125         a crossing jump when -freorder-blocks-and-partition is specified.
37126         * config/sh/sh.md (*jump_compact_crossing): New insn.
37128 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
37129             Kaz Kojima  <kkojima@gcc.gnu.org>
37131         PR target/64761
37132         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37133         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37134         (sh_can_redirect_branch): Rename to ...
37135         (sh_can_follow_jump): ... this.  Constify argument types.
37136         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37137         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37138         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37139         * doc/tm.texi: Regenerate.
37141 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37143         PR sanitizer/64981
37144         * builtins.c (expand_builtin): Call targetm.expand_builtin
37145         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37147 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37149         PR ipa/61548
37150         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37152 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37154         PR ipa/63566
37155         * ipa-icf.c (set_local): New function.
37156         (sem_function::merge): Use it.
37158 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37160         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37161         (add_type_duplicate): Fix comparison of BINFOs.
37163 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37165         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37166         on getting VOID pointer.
37168 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37170         PR target/64979
37171         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37172         va_list escapes.
37174 2015-02-09  Richard Biener  <rguenther@suse.de>
37176         * genmatch.c (replace_id): Copy expr_type.
37178 2015-02-09  Richard Biener  <rguenther@suse.de>
37180         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37181         (streamer_write_tree_bitfields): Declare.
37182         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37183         properly unpack padding.
37184         (unpack_value_fields): Inline ...
37185         (streamer_read_tree_bitfields): ... here.
37186         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37187         and properly add padding bits.
37188         (streamer_pack_tree_bitfields): Fold into ...
37189         (streamer_write_tree_bitfields): ... this new function,
37190         exposing the bitpack object.
37191         * lto-streamer-out.c (lto_write_tree_1): Call
37192         streamer_write_tree_bitfields.
37194 2015-02-09  Richard Biener  <rguenther@suse.de>
37196         PR tree-optimization/54000
37197         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37198         (struct ivopts_data): Add loop_loc member.
37199         (tree_ssa_iv_optimize_loop): Dump loop location.
37200         (create_new_ivs): Likewise, also dump number of IVs generated.
37202 2015-02-09  Martin Liska  <mliska@suse.cz>
37204         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37205         just if not yet registered.
37206         (ipa_icf_generate_summary): Register callgraph hooks.
37208 2015-02-08  Andrew Pinski  <apinski@cavium.com>
37210         * config/aarch64/aarch64.c (gty_dummy): Delete.
37212 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37214         PR ipa/63566
37215         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37216         (cgraph_node::local_p): Remove thunk related FIXME.
37218 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37220         PR ipa/63566
37221         * i386.c (ix86_function_regparm): Look through aliases to see if callee
37222         is local and optimized.
37223         (ix86_function_sseregparm): Likewise; also use target's SSE math
37224         settings; error out instead of silently generating wrong code
37225         on mismatches.
37226         (init_cumulative_args): Look through aliases.
37228 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37230         PR ipa/63566
37231         * ipa-split.c (execute_split_functions): Split if function has aliases.
37233 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37235         PR ipa/63566
37236         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37237         aliases before trying to expand it.
37238         (cgraph_node::expand_thunk): Fix formating.
37240 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
37242         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37243         (Using Assembly Language with C): Expand introduction.
37244         (Basic Asm): Copy-edit.  Add more information about uses of
37245         basic asm.
37246         (Extended Asm): Copy-edit.  Document new escape syntax and
37247         %l[label] syntax.
37248         (Global Reg Vars): Copy-edit.
37249         (Local Reg Vars): Likewise.
37251 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
37253         PR debug/2714
37254         PR bootstrap/64256
37255         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37256         (DBX_CONTIN_CHAR): Define.
37258 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
37259             Brian Rzycki  <b.rzycki@samsung.com>
37261         PR tree-optimization/64878
37262         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37263         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37264         Stop recursion at loop phi nodes after having visited a loop phi node.
37266 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37268         * toplev.c (process_options): Change flag_ipa_ra before creating
37269         optimization_{default,current}_node.
37271         PR ipa/64896
37272         * cgraphunit.c (cgraph_node::expand_thunk): If
37273         restype is not is_gimple_reg_type nor the thunk_fndecl
37274         returns aggregate_value_p, set restmp to a temporary variable
37275         instead of resdecl.
37277 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
37279         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37281 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37283         PR target/64205
37284         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37285         add a general secondary reload handler for SDmode, unless we have
37286         both read/write support for SDmode.
37288 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37290         PR middle-end/64937
37291         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37292         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37293         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37294         1 before, push it to abstract_vec.
37295         (dwarf2out_abstract_function): Adjust caller.  Don't call
37296         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37297         DECL_ABSTRACT_P flags for all abstract_vec elts.
37299 2015-02-06  Renlin Li  <renlin.li@arm.com>
37301         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37302         complex gimple.
37303         * tree-ssa.c (execute_update_addresses_taken): Likewise.
37305 2015-02-06  Jeff Law  <law@redhat.com>
37307         PR target/64889
37308         * config/h8300/h8300.c (push): New argument "in_prologue".
37309         Pass "in_prologue" along to "F".
37310         (h8300_push_pop): Corresponding changes.
37311         (h8300_expand_prologue): Likewise.
37312         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
37314 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37316         PR rtl-optimization/64957
37317         PR debug/64817
37318         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37319         IOR rather than for AND.
37321 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
37323         PR target/62631
37324         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37325         of shift-add and (add + shift) operations.  Rename local variable.
37327 2015-02-05  Jeff Law  <law@redhat.com>
37329         PR target/17306
37330         * config/h8300/constraints.md (U): Correctly dectect
37331         "eightbit_data" memory addresses.
37332         * config/h8300/h8300.c (eightbit_constant_address_p): Also
37333         handle (const (plus (symbol_ref (x)))) where x is declared
37334         as an 8-bit data memory address.
37335         * config/h8300/h8300.md (call, call_value): Correctly detect
37336         "funcvec" functions.
37338         PR target/43264
37339         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37340         24 to 28 bits for the H8/300.
37342 2015-02-06  Alan Modra  <amodra@gmail.com>
37344         PR target/64876
37345         * config/rs6000/rs6000.c (chain_already_loaded): New function.
37346         (rs6000_call_aix): Use it.
37348 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
37350         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37351         check.
37353 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
37355         * config/h8300/constraints.md ("U" constraint): Use strict
37356         variant of REG_OK_FOR_BASE_P after reload has started.
37358 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
37360         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37361         define to zero if !TARGET_NEON.
37362         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37364 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37365             Trevor Saunders  <tsaunders@mozilla.com>
37367         PR ipa/61548
37368         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37370 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37372         PR ipa/61548
37373         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37374         when removing varpool nodes.
37376 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37378         PR ipa/61548
37379         * varpool.c (varpool_node::remove): Fix order of variables.
37381 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37383         PR ipa/64686
37384         * ipa-inline.c (inline_small_functions): Fix ordering issue between
37385         speculation resolution and key updates.
37387 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37389         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37390         about not letting any speculative edges unupdated.
37392 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37394         PR gcov/64123
37395         * gcov-io.c (gcov_var): Export.
37397 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37399         PR middle-end/64922
37400         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37401         edges that become speculative.
37403 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37405         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37406         or DW_LANG_Fortran08.
37407         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37408         DW_LANG_Fortran08.
37409         (gen_compile_unit_die): Handle "GNU Fortran2003" and
37410         "GNU Fortran2008" language strings.
37411         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37412         * langhooks.h (lang_GNU_Fortran): New prototype.
37413         * langhooks.c (lang_GNU_Fortran): New function.
37414         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37415         lang_GNU_Fortran.
37417 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37419         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37420         (RTX_OK_FOR_OLO10_P): Likewise.
37422 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37424         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37426 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37428         PR middle-end/64922
37429         * gimple.c: Include gimple-ssa.h.
37430         (maybe_remove_unused_call_args): New function.
37431         * gimple.h (maybe_remove_unused_call_args): Declare.
37432         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37433         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37434         * gimple-fold.c (gimple_fold_call): Likewise.
37436 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
37438         PR rtl-optimization/64905
37439         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37440         pointer alignment if it isn't needed.
37442 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37444         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37445         cortex-a72.cortex-a53.
37446         * config/aarch64/aarch64-tune.md: Regenerate.
37447         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37449 2015-02-04  Nick Clifton  <nickc@redhat.com>
37451         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37452         inside a MEM.
37454 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37456         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37457         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37458         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37459         of DEF_BUILTIN.
37460         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37461         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37462         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37463         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37464         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37465         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37466         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37467         * tree-core.h (enum built_in_function): In between
37468         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37469         for builtins that use DEF_BUILTIN_CHKP macro.
37471 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
37473         PR debug/64817
37474         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37475         operands for tcc_comparison exprs.  Fix typos.
37477         PR debug/64817
37478         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37479         of two XORs that have an intervening AND or IOR.
37481         PR debug/64817
37482         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37483         simplification of XOR of AND to not allocate new rtx before
37484         committing to a simplification.
37486 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37488         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37489         manual swaps in all peepholes.
37491 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37493         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37494         of manual swapping implementation.
37495         (aarch64_expand_vec_perm_const_1): Likewise.
37497 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
37499         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37500         (generic_addrcost_table): Remove NAMED_PARAM.
37501         (cortexa57_addrcost_table): Likewise.
37502         (xgene1_addrcost_table): Likewise.
37503         (generic_regmove_table): Likewise.
37504         (cortexa53_regmove_table): Likewise.
37505         (xgene1_regmove_table): Likewise.
37506         (generic_vector_table): Likewise.
37507         (cortexa57_vector_table): Likewise.
37508         (xgene1_vector_table): Likewise.
37509         (generic_tunings): Likewise.
37510         (cortexa53_tunings): Likewise.
37511         (cortexa57_tunings): Likewise.
37512         (xgene1_tunings): Likewise.
37514 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37516         * config/arm/arm-cores.def: Add cortex-a72 and
37517         cortex-a72.cortex-a53.
37518         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37519         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37520         * config/arm/arm-tune.md: Regenerate.
37521         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37522         "cortex-a72.cortex-a53".
37523         * doc/invoke.texi (ARM Options/-mtune): Likewise.
37525 2015-02-04  Nick Clifton  <nickc@redhat.com>
37527         PR target/64408
37528         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37529         of accepted codes.
37530         (nonimmediate_di_operand): Likewise.
37532         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37533         prefixes of known F5 using MSP430 MCUs.
37535 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37537         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37538         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37539         instead of __builtin_sqrt.
37541 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
37543         * varasm.c (do_assemble_alias): Follow transparent alias
37544         chain for target.
37545         (default_assemble_visibility): Follow transparent alias
37546         chain for decl name.
37548 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37550         PR middle-end/62103
37551         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37552         to compute size of referenced value in the constant case.
37554 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37556         PR rtl-optimization/64756
37557         * cse.c (invalidate_dest): New function.
37558         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
37559         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37560         invalidate and do not record it.
37562 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
37564         PR target/64660
37565         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37566         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37567         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37568         atomic_nand<mode>_soft_tcb): New insns.
37569         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37570         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37571         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37572         Split into atomic_not_fetchsi_hard if operands[0] is unused.
37573         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37574         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37575         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
37576         atomic_not<mode>_hard if operands[0] is unused.
37577         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37578         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37579         if operands[0] is unused.
37580         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
37581         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37582         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37583         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37584         unused.
37585         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
37586         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37587         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37588         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37589         if operands[0] is unused.
37590         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
37591         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37592         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
37593         atomic_nand_fetchsi_hard if operands[0] is unused.
37594         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
37595         atomic_nand<mode>_hard if operands[0] is unused.
37596         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
37597         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37598         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
37599         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37600         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
37601         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37602         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37603         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37604         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
37605         atomic_not<mode>_hard if operands[0] is unused.
37606         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37607         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37608         unused.
37609         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37610         into atomic_not<mode>_soft_tcb if operands[0] is unused.
37611         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
37612         atomic_nand<mode>_hard if operands[0] is unused.
37613         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
37614         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37616 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
37618         PR jit/64810
37619         * Makefile.in (GCC_OBJS): Add gcc-main.o.
37620         * gcc-main.c: New file, containing "main" taken from gcc.c.
37621         * gcc.c (do_self_spec): Free decoded_options.
37622         (class driver): Move declaration to gcc.h.
37623         (main): Move declaration and implementation to new file
37624         gcc-main.c.
37625         (driver_get_configure_time_options): New function.
37626         * gcc.h (class driver): Move this declaration here, from
37627         gcc.c.
37628         (driver_get_configure_time_options): New declaration.
37630 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
37632         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37633         cross-module inlining.
37634         * cgraph.h (cgraph_node): Add flag merged.
37635         * ipa-icf.c (sem_function::merge): Maintain it.
37637 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
37639         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37640         instead of OBJECT_P.
37642 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
37644         PR target/62631
37645         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37646         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37647         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37648         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37650 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
37652         PR other/63504
37653         * combine.c (reg_n_sets_max): New variable.
37654         (can_change_dest_mode, reg_nonzero_bits_for_combine,
37655         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37656         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37657         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37658         (rest_of_handle_combine): Initialize reg_n_sets_max.
37660 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
37662         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37663         if some always_inline was inlined, apply changes before inlining
37664         heuristically.
37666 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
37668         PR jit/64810
37669         * config/arm/arm.c (arm_option_override): Set
37670         arm_selected_arch/cpu/tune to NULL on entry.
37672 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
37673             Andrew Pinski  <pinskia@gcc.gnu.org>
37674             Jakub Jelinek  <jakub@gcc.gnu.org>
37676         PR target/64231
37677         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37678         integer typing for small model. Use IN_RANGE.
37680 2015-02-02  Richard Biener  <rguenther@suse.de>
37682         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37683         * tree-vrp.c (vrp_valueize_1): Likewise.
37685 2015-02-02  Alan Modra  <amodra@gmail.com>
37687         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37688         than mem for toc_restore.
37689         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37690         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37691         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37693 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
37695         PR target/64047
37696         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37697         explicit default options.
37699 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
37701         PR ipa/64872
37702         * ipa-utils.c (ipa_merge_profiles): Add release argument.
37703         * ipa-icf.c (sem_function::merge): Do not release body when merging.
37704         * ipa-utils.h (ipa_merge_profiles): Update prototype.
37706 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
37708         PR debug/64817
37709         * cfgexpand.c (deep_ter_debug_map): New variable.
37710         (avoid_deep_ter_for_debug): New function.
37711         (expand_debug_expr): If TERed SSA_NAME is in
37712         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37713         instead of trying to expand SSA_NAME's def stmt.
37714         (expand_debug_locations): When expanding debug bind
37715         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37716         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37717         value.
37718         (pass_expand::execute): Call avoid_deep_ter_for_debug on
37719         all debug bind stmts.  Delete deep_ter_debug_map after
37720         expand_debug_location if non-NULL and clear it.
37722 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
37724         PR target/64851
37725         * config/sh/sync.md (atomic_fetch_notsi_hard,
37726         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37727         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37728         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37729         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37730         atomic_not_fetch<mode>_soft_imask): New insns.
37732 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37734         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37735         (rank_for_schedule_debug): Split from ...
37736         (rank_for_schedule): ... this.
37737         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37738         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37740 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37742         * doc/md.texi (Machine Constraints): Alphabetize table by target.
37743         * doc/extend.texi (x86 Variable Attributes): Move section to
37744         correct alphabetization after renaming.
37745         (x86 Type Attributes): Likewise.
37746         (Target Builtins): Re-alphabetize menu.
37747         (x86 Built-in Functions): Move section to correct alphabetization
37748         after renaming.
37749         (x86 transactional memory intrinsics): Likewise.
37750         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37751         and x86 Windows Options in table and menu.
37752         (x86 Options): Move section to correct alphabetization after
37753         renaming.
37754         (x86 Windows Options): Likewise.
37756 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
37758         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37759         preferred names of the architecture and its 32- and 64-bit
37760         variants.
37761         * doc/invoke.texi: Likewise.
37762         * doc/md.texi: Likewise.
37764 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37766         PR target/64882
37767         * config/i386/predicates.md (address_no_seg_operand): Reject
37768         non-CONST_INT_P operands in invalid mode.
37770 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
37772         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37773         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
37774         * config/i386/predicates.md (address_no_seg_operand): Call
37775         address_operand with VOIDmode.
37776         (vsib_address_operand): Ditto.
37777         (address_mpx_no_base_operand): Ditto.
37778         (address_mpx_no_index_operand): Ditto.
37780 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37782         PR target/64688
37783         * lra-constraints.c (original_subreg_reg_mode): New.
37784         (simplify_operand_subreg): Try to simplify subreg of const.  Use
37785         original_subreg_reg_mode for it.
37786         (swap_operands): Update original_subreg_reg_mode.
37787         (curr_insn_transform): Set up original_subreg_reg_mode.
37789 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37791         PR target/64617
37792         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37793         function.
37794         (process_alt_operands): Use it.
37795         (curr_insn_transform): Check the optional reload pseudo class is
37796         ok for the mode.
37798 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
37800         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37801         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37802         prototype.
37803         * toplev.h (init_asm_output): Update comment on use of
37804         UNKNOWN_LOCATION with fatal_error.
37805         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37806         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37807         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37808         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37809         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37810         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37811         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37812         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37813         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37814         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37815         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37816         fatal_error changed to pass input_location as first argument.
37818 2015-01-30  Martin Liska  <mliska@suse.cz>
37820         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37821         in #pragma GCC diagnostic guards.
37823 2015-01-30  Richard Biener  <rguenther@suse.de>
37825         PR tree-optimization/64829
37826         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37827         not add a widening conversion pattern but hand off extra
37828         widenings to callers.
37829         (vect_recog_widen_mult_pattern): Handle extra widening produced
37830         by vect_handle_widen_op_by_const.
37831         (vect_recog_widen_shift_pattern): Likewise.
37832         (vect_pattern_recog_1): Remove excess vertical space in dumping.
37833         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37834         (vect_init_vector_1): Likewise.
37835         (vect_get_vec_def_for_operand): Likewise.
37836         (vect_finish_stmt_generation): Likewise.
37837         (vectorizable_load): Likewise.
37838         (vect_analyze_stmt): Likewise.
37839         (vect_is_simple_use): Likewise.
37841 2015-01-29  Jeff Law  <law@redhat.com>
37843         * combine.c (try_combine): Fix typo in comment.
37845 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
37847         PR target/64580
37848         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37849         (rs6000_stack_info): Add assert.
37850         (rs6000_output_savres_externs): New function, split off from...
37851         (rs6000_output_function_prologue): ... here.  Do not call it for
37852         thunks.
37854 2015-01-29  Jeff Law  <law@redhat.com>
37856         PR target/15184
37857         * combine.c (try_combine): If I0 is a memory load and I3 a store
37858         to a related address, increase the "goodness" of doing a 4-insn
37859         combination with I0-I3.
37860         (make_field_assignment): Handle SUBREGs in the ior+and case.
37862 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
37864         PR tree-optimization/64746
37865         * tree-if-conv.c (mask_exists): New function.
37866         (predicate_mem_writes): Save created mask with given size for further
37867         use.
37868         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37869         (ifcvt_repair_bool_pattern): Collect all statements that are root
37870         of bool pattern and use iterative algorithm to remove multiple uses
37871         of predicates, display number of required iterations.
37873 2015-01-29  Richard Biener  <rguenther@suse.de>
37875         PR tree-optimization/64853
37876         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37877         stmt will get simulated again.
37878         * tree-ssa-ccp.c (valueize_op_1): Likewise.
37880 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37882         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37883         return_in_pc.  Remove redundant assignments.
37884         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37885         (arm_expand_epilogue): Don't compare boolean with true in if condition.
37887 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
37889         * config/i386/i386.c (ix86_mode_after): Make static.
37891 2015-01-29  Richard Biener  <rguenther@suse.de>
37893         PR tree-optimization/64844
37894         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37895         dump cost model analysis.
37896         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37897         Do not register adjusted load/store costs here.
37899 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37900             Uros Bizjak  <ubizjak@gmail.com>
37902         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37903         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37904         using x86_use_pseudo_pic_reg.
37905         * config/i386/i386.c (ix86_conditional_register_usage): Remove
37906         support for fixed PIC register.
37907         (ix86_use_pseudo_pic_reg): Not static any more.
37909 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37911         PR middle-end/64805
37912         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37913         to avoid error in cgraph node verification.
37915 2015-01-29  Marek Polacek  <polacek@redhat.com>
37917         * doc/standards.texi: Reflect that the default for C is gnu11.
37919 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
37921         PR target/64761
37922         * reorg.c (switch_text_sections_between_p): New function.
37923         (relax_delay_slots): Call it when testing if the jump insn
37924         is removable.  Use targetm.can_follow_jump when testing if
37925         the conditional branch can follow an unconditional jump.
37927 2015-01-27  Caroline Tice  <cmtice@google.com>
37929         Committing VTV Cywin/Ming patch for Patrick Wollgast
37930         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37931         if -fvtable-verify=preinit/std is used.
37932         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37933         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37934         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37935         if -fvtable-verify=preinit/std is used.
37936         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37937         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37938         if -fvtable-verify=preinit/std is used.
37939         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37940         * config/i386/mingw32.h (LIB_SPEC): Likewise.
37941         * varasm.c (assemble_variable): Add code to properly set the comdat
37942         section and name for the .vtable_map_vars section in case the
37943         target is PE or COFF.
37945 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37947         PR ipa/64801
37948         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37949         make sane BB profile.
37950         (cgraph_node::expand_thunk): Make sane BB profile.
37951         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37952         * cgraph.h (init_lowered_empty_function): Update prototype.
37953         * config/i386/i386.c (make_resolver_func): Update call.
37954         * predict.c (gate): Disable branch prediction pass if
37955         profile is already there.
37957 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37959         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37960         * opth-gen.awk: Likewise.
37961         * common.opt: Mark flag_fp_contract_mode as Optimization.
37963 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37965         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37966         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37968 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
37970         PR target/64659
37971         * config/sh/predicates.md (atomic_arith_operand,
37972         atomic_logical_operand): Remove.
37973         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37974         (atomic_arith_operand_0): New predicate.
37975         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37976         Use atomic_arith_operand_0 for input values.
37977         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37978         atomic_compare_and_swap<mode>_soft_gusa,
37979         atomic_compare_and_swap<mode>_soft_tcb,
37980         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37981         arith_reg_operand instead of register_operand.
37982         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
37983         atomic_arith_operand_0 for newval input.
37984         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37985         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37986         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37987         arith_reg_operand instead of register_operand.
37988         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37989         fetchop_predicate_1, fetchop_constraint_1_llcs,
37990         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37991         fetchop_constraint_1_imask): New code iterator attributes.
37992         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37993         register_operand.  Use fetchop_predicate_1.
37994         (atomic_fetch_<fetchop_name>si_hard,
37995         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37996         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37997         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37998         and arith_reg_operand instead of register_operand.  Use
37999         fetchop_predicate_1, fetchop_constraint_1_gusa.
38000         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38001         and arith_reg_operand instead of register_operand.  Use
38002         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
38003         to allow R0 usage.
38004         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38005         and arith_reg_operand instead of register_operand.  Use
38006         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
38007         to allow R0 usage.
38008         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38009         register_operand.  Use atomic_logical_operand_1.
38010         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38011         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38012         arith_reg_operand instead of register_operand.
38013         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38014         Use arith_reg_dest and arith_reg_operand instead of register_operand.
38015         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
38016         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38017         register_operand.  Use fetchop_predicate_1.
38018         (atomic_<fetchop_name>_fetchsi_hard,
38019         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38020         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38021         fetchop_constraint_1_llcs.
38022         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38023         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38024         fetchop_constraint_1_gusa.
38025         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38026         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38027         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
38028         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38029         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38030         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
38031         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38032         register_operand.  Use atomic_logical_operand_1.
38033         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38034         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38035         arith_reg_operand instead of register_operand.
38036         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38037         arith_reg_operand instead of register_operand.  Use logical_operand
38038         and K08.  Adjust asm sequence to allow R0 usage.
38039         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38040         arith_reg_operand instead of register_operand.  Use logical_operand
38041         and K08.
38043 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38045         PR other/63504
38046         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38047         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38048         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38049         only get_full_len HOST_WIDE_INTs from get_val () array rather than
38050         all bits in *val_wide.
38052 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
38054         * varpool.c (tls_model_names): Fix names.
38055         (varpool_node::dump): Dump tls- prefix for tls models.
38057 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
38058             Bernd Schmidt  <bernds@codesourcery.com>
38059             Nathan Sidwell  <nathan@codesourcery.com>
38061         * config/nvptx/mkoffload.c: New file.
38062         * config/nvptx/t-nvptx: Add build rules for it.
38063         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38064         (extra_programs): Add mkoffload.
38065         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38066         function.
38067         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38069 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
38071         PR middle-end/64809
38072         * cfgexpand.c (reorder_operands): Skip debug gimples.
38074 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
38076         PR tree-optimization/64277
38077         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38078         range info when possible to refine estimation.
38080 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38082         PR tree-optimization/64718
38083         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38084         be a 16bit unsigned integer when n->range is 16.
38085         (bswap_replace): Convert src to that type if necessary for all bswap
38086         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
38087         set in pass_optimize_bswap::execute ().
38089 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
38091         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38092         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38093         integer and floating point variants.
38094         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38096 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
38098         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38099         for all vector modes.
38101 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38103         PR bootstrap/64612
38104         * doc/sourcebuild.texi (comdat_group): Document.
38106 2015-01-28  Terry Guo  <terry.guo@arm.com>
38108         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38110 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
38112         * toplev.c (print_version): Add param "show_global_state", and
38113         only print GGC and plugin information if it is true.
38114         (init_asm_output): Pass in "true" for the new param when calling
38115         print_version.
38116         (process_options): Likewise.
38117         (toplev::main): Likewise.
38118         * toplev.h (print_version): Add new param to decl.
38120 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38122         PR ipa/60871
38123         PR ipa/64139
38124         * tree.c (lookup_binfo_at_offset): New function.
38125         (get_binfo_at_offset): Use it.
38127 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38129         PR ipa/64282
38130         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38131         on vtable being vtable.
38133 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
38135         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38136         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38137         -mhotpatch= option.
38138         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38139         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
38140         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38141         Renamed.
38142         (s390_hotpatch_trampoline_halfwords_max): Renamed.
38143         (s390_hotpatch_hw_max): New name.
38144         (s390_hotpatch_trampoline_halfwords): Renamed.
38145         (s390_hotpatch_hw_before_label): New name.
38146         (get_hotpatch_attribute): Removed.
38147         (s390_hotpatch_hw_after_label): New name.
38148         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38149         attribute.
38150         (s390_attribute_table): Ditto.
38151         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38152         (s390_function_num_hotpatch_hw): New name.
38153         Remove special handling of inline functions and hotpatching.
38154         Return number of nops before and after the function label.
38155         (s390_can_inline_p): Removed.
38156         (s390_asm_output_function_label): Emit a configurable number of nops
38157         after the function label.
38158         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38159         (TARGET_CAN_INLINE_P) Removed.
38160         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38162 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38163             Jiong Wang  <jiong.wang@arm.com>
38165         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38166         of scratch reg.
38167         (cb<optab><mode>1): Likewise.
38168         * config/aarch64/iterators.md (bcond): New define_code_attr.
38170 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38172         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38173         memory accesses.
38175 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38177         * config/s390/s390.c (s390_register_move_cost): Increase costs for
38178         FPR->GPR moves.
38180 2015-01-27  Richard Biener  <rguenther@suse.de>
38182         * tree-vrp.c (update_value_range): Intersect the range with
38183         old recorded SSA name range information.
38185 2015-01-27  Nick Clifton  <nickc@redhat.com>
38187         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38188         BC, DE and HL registers directly, not via AX.
38189         When decrementing the stack pointer by a large amount, transfer SP
38190         into AX and perform the subtraction there.
38191         (rl78_expand_epilogue): Perform the inverse of the above
38192         enhancements.
38194 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38196         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38198 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38199             Yury Gribov  <y.gribov@samsung.com>
38201         PR ubsan/64741
38202         * ubsan.c (ubsan_source_location): Refactor code.
38203         (ubsan_type_descriptor): Update type size. Refactor code.
38205 2015-01-27  Richard Biener  <rguenther@suse.de>
38207         PR tree-optimization/56273
38208         PR tree-optimization/59124
38209         PR tree-optimization/64277
38210         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38211         from the first VRP pass.
38213 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38215         PR ipa/64776
38216         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38217         handle the first argument in the same loop as all the other arguments.
38219         PR rtl-optimization/61058
38220         * jump.c (cleanup_barriers): Update basic block boundaries
38221         if BLOCK_FOR_INSN is non-NULL on PREV.
38223 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
38225         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38226         bounds narrowing, already instrumented calls and calls to
38227         not instrumentable functions.
38229 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38231         PR tree-optimization/64807
38232         * wide-int.cc (wi::divmod_internal): Clear
38233         b_dividend[dividend_blocks_needed].
38235 2015-01-26  DJ Delorie  <dj@redhat.com>
38237         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38238         volatile memory references.
38240 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
38242         PR target/49263
38243         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38244         remove_insn.
38245         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38246         shifts if it already fits into K08.
38248 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38250         PR ipa/64730
38251         * ipa-inline.c (inline_small_functions): Print "unknown" even
38252         if edge->call_stmt is non-NULL, but has builtins or unknown
38253         location.
38255         PR middle-end/64421
38256         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38257         with asterisk, skip the first character.
38259 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38261         PR target/64806
38262         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38263         order change.
38265 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
38267         PR target/64795
38268         * config/i386/i386.md (*movdi_internal): Also check operand 0
38269         to determine TYPE_LEA operand.
38270         (*movsi_internal): Ditto.
38272 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38274         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38275         OPTION_MASK_QUAD_MEMORY_ATOMIC.
38277 2015-01-26  Renlin Li  <renlin.li@arm.com>
38279         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38280         the comment.
38281         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38282         for higher part.
38284 2015-01-26  Richard Biener  <rguenther@suse.de>
38286         PR middle-end/64764
38287         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38288         combining two BIT_AND_EXPR predicates.
38290 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38292         PR bootstrap/64754
38293         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38295 2015-01-26  Terry Guo  <terry.guo@arm.com>
38297         * config/arm/arm.c (arm_file_start): Update the assignment of
38298         Tag_ABI_HardFP_use.
38300 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
38302         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38303         pipeline model.
38304         config/arm/arm.md: Include the new Cortex-A57 model.
38305         (generic_sched): Don't use generic_sched when tuning for
38306         Cortex-A57.
38308 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
38309             Uros Bizjak  <ubizjak@gmail.com>
38311         * config/i386/i386.c (get_builtin_code_for_version): Add
38312         support for BMI and BMI2 multiversion functions.
38314 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38316         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38317         (extract_bit_field): Likewise.
38318         (extract_low_bits): Likewise.
38319         (expand_mult): Likewise.
38320         (expand_mult_highpart_adjust): Likewise.
38322 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
38324         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38325         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38326         * config/i386/i386.c (processor_model): Add
38327         M_INTEL_COREI7_BROADWELL.
38328         (arch_names_table): Add "broadwell".
38330 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
38332         PR target/49263
38333         PR target/53987
38334         PR target/64345
38335         PR target/59533
38336         PR target/52933
38337         PR target/54236
38338         PR target/51244
38339         * config/sh/sh-protos.h
38340         (sh_extending_set_of_reg::can_use_as_unextended_reg,
38341         sh_extending_set_of_reg::use_as_unextended_reg,
38342         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38343         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38344         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38345         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38346         (sh_treg_insns): New class.
38347         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38348         (scope_counter): New class.
38349         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38350         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38351         sh_extending_set_of_reg::can_use_as_unextended_reg,
38352         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38353         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38354         sh_split_treg_set_expr): New functions.
38355         (addsubcosts): Handle treg_set_expr.
38356         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38357         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38358         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38359         (sh_insn_operands_modified_between_p): Make non-static.
38360         * config/sh/predicates.md (zero_extend_movu_operand): Allow
38361         simple_mem_operand in addition to displacement_mem_operand.
38362         (zero_extend_operand): Don't allow zero_extend_movu_operand.
38363         (treg_set_expr, treg_set_expr_not_const01,
38364         arith_reg_or_treg_set_expr): New predicates.
38365         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38366         arith_or_int_operand instead of logical_operand.  Convert to
38367         insn_and_split.  Try to optimize constant operand in splitter.
38368         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
38369         (*tstqi_t_zero): Delete.
38370         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38371         (tstsi_t_and_not): Delete.
38372         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38373         Convert to insn_and_split.
38374         (unnamed split, tstsi_t_zero_extract_xor,
38375         tstsi_t_zero_extract_subreg_xor_little,
38376         tstsi_t_zero_extract_subreg_xor_big): Delete.
38377         (*tstsi_t_shift_mask): New insn_and_split.
38378         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38379         to recombine with surrounding insns when splitting.
38380         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38381         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38382         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38383         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38384         (*cbranch_div0s: Delete.
38385         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38386         Try to recombine with surrounding insns when splitting.  Add operand
38387         order variants.
38388         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38389         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38390         *addc_r_r_msb, *addc_2r_msb): Delete.
38391         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
38392         order variant.
38393         (*addc_negreg_t): New insn_and_split.
38394         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38395         Try to recombine with surrounding insns when splitting.
38396         Add operand order variants.
38397         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38398         insn_and_split patterns.
38399         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
38400         surrounding insns when splitting.
38401         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38402         (*rotcl): Likewise.  Add zero_extract variant.
38403         (*ashrsi2_31): New insn_and_split.
38404         (*negc): Convert to insn_and_split.  Use treg_set_expr.
38405         (*zero_extend<mode>si2_disp_mem): Update comment.
38406         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38407         condition.
38408         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
38409         with surrounding insns when splitting.
38410         (any_treg_expr_to_reg): New insn_and_split.
38411         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38412         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38413         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38414         *zero_extract_2): New single bit zero extract patterns.
38415         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38416         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38417         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38418         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38419         set destination.
38420         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38421         register_operand for set source.
38423 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
38425         * i386.opt (prefetch_sse): New targetsave.
38426         * i386.c (ix86_function_specific_save): Save prefetch_sse.
38427         (ix86_function_specific_restore): Restore prefetch_sse and initialize
38428         ix86_cost/ix86_tune_cost.
38430 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38432         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38433         Support the JIT by using 0 as the language type.
38435 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
38437         PR target/64317
38438         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
38439         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38440         (mark_regno_live, process_bb_lives): Pass new parameter value to
38441         make_hard_regno_born.
38443 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38445         PR rtl-optimization/63637
38446         PR rtl-optimization/60663
38447         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38448         if elt->cost is MAX_COST for ASM_OPERANDS.
38449         (find_sets_in_insn): Fix up comment typo.
38450         (cse_insn): Don't set src_volatile for all non-volatile
38451         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38452         or with "memory" clobber.  Set elt->cost to MAX_COST
38453         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
38454         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38456 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38458         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38459         alternative 1.
38461 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
38463         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38464         libgcc/config/i386/elf-lib.h.
38466 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38468         PR driver/64737
38469         * gcc.c (print_configuration): Don't print a blank line at the end
38470         here...
38471         (run_attempt): ... but here unstead.
38473         PR middle-end/64734
38474         * omp-low.c (scan_sharing_clauses): Don't ignore
38475         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38476         on target data/update constructs.
38478 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38480         PR target/50928
38481         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38482         (DEBUG_RELOAD): Removed define.
38483         (m32c_limit_reload_class): Enable traces with if DEBUG0.
38484         (m32c_function_arg): Added a type cast.
38485         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38486         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38487         * config/m32c/bitops.md (andqi3_16): Likewise.
38488         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38489         (push_a01_l): Likewise.
38491 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38493         PR jit/64721
38494         * main.c (main): Construct toplev instances with init_signals=true.
38495         * toplev.c (general_init): Add param "init_signals", and use it to
38496         conditionalize the calls to signal and host_hooks.extra_signals.
38497         (toplev::toplev): Add param "init_signals".
38498         (toplev::main): When invoking general_init, pass m_init_signals
38499         to control whether signal-handlers are installed.
38500         * toplev.h (toplev::toplev): Add param "init_signals".
38501         (toplev::m_init_signals): New field.
38503 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38505         PR jit/64722
38506         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38507         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38508         latter may be affected by the former (e.g. on i686).
38510 2015-01-23  Martin Liska  <mliska@suse.cz>
38512         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38513         false positive during profiledbootstrap.
38515 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38517         PR libgomp/64672
38518         * lto-opts.c (lto_write_options): Output non-explicit conservative
38519         -fno-openacc.
38520         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38521         (append_compiler_options): Pass -fopenacc through.
38523 2015-01-23  Tom de Vries  <tom@codesourcery.com>
38525         PR libgomp/64707
38526         * lto-opts.c (lto_write_options): Output non-explicit conservative
38527         -fno-openmp.
38528         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38529         (append_compiler_options): Pass -fopenmp through.
38531 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38533         PR debug/64511
38534         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38535         GTY markup.
38537         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38538         * diagnostic.def (DK_ICE_NOBT): New kind.
38539         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38540         like DK_ICE, but never print backtrace.
38541         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38542         (internal_error_no_backtrace): New function.
38543         * gcc.c (execute): Use internal_error_no_backtrace instead of
38544         internal_error.
38546 2015-01-22  Jeff Law  <law@redhat.com>
38548         PR target/52076
38549         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38550         improve code density for small immediate to memory case.
38551         (insv): Better handle bitfield assignments when the field is
38552         being set to all ones.
38553         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38554         operand predicate.
38556 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38557             Jakub Jelinek  <jakub@redhat.com>
38559         PR middle-end/64729
38560         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38561         for !TARGET_LIBC_PROVIDES_SSP version and
38562         -fstack-protector-{all,strong,explicit} otherwise.
38563         * config/freebsd.h (LINK_SSP_SPEC): Handle
38564         -fstack-protector-{strong,explicit}.
38566 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
38567             H.J. Lu  <hongjiu.lu@intel.com>
38569         PR ipa/64694
38570         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38571         heap.
38573 2015-01-22  Wei Mi  <wmi@google.com>
38575         PR rtl-optimization/64557
38576         * dse.c (record_store): Call get_addr for mem_addr.
38577         (check_mem_read_rtx): Likewise.
38579 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
38581         * fold-const.c (const_binop): Add early return for non-tcc_binary.
38583 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
38585         * toplev.c (init_local_tick): Process the failure when read
38586         fails for random_seed.
38588         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38589         'pretty_name' to avoid memory overflow.
38591 2015-01-22  Richard Biener  <rguenther@suse.de>
38593         PR middle-end/64728
38594         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38595         abnormal coalescing on undefined SSA names.
38597 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
38599         PR target/64688
38600         PR target/64477
38601         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38602         for alternative 3.
38603         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38605 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
38607         PR middle-end/63325
38608         * fold-const.c (fold_checksum_tree): Don't include value of
38609         expr->decl_with_vis.symtab_node in the checksum.
38611 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38613         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38615 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
38617         PR driver/64690
38618         * gcc.c (insert_comments): New function.
38619         (try_generate_repro): Call it.
38620         (append_text): Removed.
38622 2015-01-22  Richard Biener  <rguenther@suse.de>
38624         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38625         with IL incompatible options.  Properly honor user optimize
38626         attributes.
38628 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
38630         PR rtl-optimization/64682
38631         * combine.c (distribute_notes): When moving a death note for
38632         a register that is set in the new I2, make sure to put it
38633         before that new I2.
38635 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
38637         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38638         not TARGET_DEFAULT.
38640 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
38642         PR debug/64511
38643         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38644         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38645         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38647         PR sanitizer/64706
38648         * doc/invoke.texi (-fsanitize=vptr): Document.
38650         PR rtl-optimization/62078
38651         * dse.c: Include cfgcleanup.h.
38652         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38653         anything call purge_all_dead_edges and cleanup_cfg at the end
38654         of the pass.
38656 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
38658         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38659         edges.
38661 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38663         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38664         decl attribute.
38666 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38667             Tejas Belagod <Tejas.Belagod@arm.com>
38669         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38670         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38671         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38672         Removed.
38674 2015-01-21  David Sherwood  <david.sherwood@arm.com>
38675             Tejas Belagod <Tejas.Belagod@arm.com>
38677         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38678         (aarch64_reverse_mask): New decls.
38679         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38680         (insn_count): New mode_attr.
38681         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38682         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38683         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38684         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38685         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38686         (aarch64_simd_st4): New patterns.
38687         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38688         (aarch64_reverse_mask): New functions.
38690 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38692         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38693         Declare.
38694         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38695         addressing modes for BE.
38696         (aarch64_print_operand): Add 'R' specifier.
38697         (aarch64_simd_disambiguate_copy): Delete.
38698         (aarch64_simd_emit_reg_reg_move): New function.
38699         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38700         in define_splits for structural moves.
38701         (mov<mode>): Use less restrictive predicates.
38702         (*aarch64_mov<mode>): Simplify and only allow for LE.
38703         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38705 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
38707         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38709 2015-01-21  Richard Henderson  <rth@redhat.com>
38711         PR target/64669
38712         * ccmp.c (used_in_cond_stmt_p): Remove.
38713         (expand_ccmp_expr): Don't use it.
38715 2015-01-21  Nick Clifton  <nickc@redhat.com>
38717         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38718         PARALLELs.
38720 2015-01-21  Richard Biener  <rguenther@suse.de>
38722         PR middle-end/64313
38723         * tree-core.h (builtin_info, builtin_info_type): Turn from
38724         an object with two arrays into an array of an object with
38725         decl and two flags, implicit_p and declared_p.
38726         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38727         set_builtin_decl, set_builtin_decl_implicit_p,
38728         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38729         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38730         * builtins.c (builtin_info): Adjust.
38731         * gimplify.c (gimplify_addr_expr): References to builtins
38732         that have been declared by the user makes them eligible for
38733         use by the compiler.  Call set_builtin_decl_implicit_p on them.
38735 2015-01-20  Jeff Law  <law@redhat.com>
38737         PR target/59946
38738         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38739         allow pc-relative addresses in operand predicates or constraints.
38741 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
38743         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38744         neon on aarch32 processors for stringops.
38746 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38748         PR ipa/63576
38749         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38751 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38753         PR lto/45375
38754         * ipa-inline.c: Include lto-streamer.h
38755         (report_inline_failed_reason): Output source file differences and
38756         flags on optimization/target node mismatch.
38757         (can_inline_edge_p): Consider caller to be the outer inline function;
38758         be less restrictive about matching opimize and optimize_size attributes.
38759         (inline_account_function_p): Break out from ...
38760         (inline_small_functions): ... here.
38761         * ipa-inline-transform.c (clone_inlined_nodes): Use
38762         inline_account_function_p.
38763         (inline_call): Use optimize attribution; use inline_account_function_p.
38764         (inline_transform): Use opt_for_fn.
38765         * ipa-inline.h (inline_account_function_p): Declare.
38767 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
38769         PR debug/64663
38770         * dwarf2out.c (decl_piece_node): Don't put bitsize into
38771         mode if bitsize <= 0.
38772         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38773         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38774         sizes and positions.
38776 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
38778         * config/nios2/nios2.c (nios2_asm_file_end): Implement
38779         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38780         needed.
38781         (TARGET_ASM_FILE_END): Define.
38783 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38785         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38786         (struct tune_params): Use the enum.
38787         * arm.c (arm_*_tune): Update.
38788         (arm_option_override): Update.
38790 2015-01-20  Richard Biener  <rguenther@suse.de>
38792         PR ipa/64684
38793         * ipa-reference.c (add_static_var): Inline ...
38794         (analyze_function): ... here after splitting out from ...
38795         (is_proper_for_analysis): ... this.
38797 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
38799         PR target/64149
38800         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38801         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38802         replace the conditional with it's true branch.
38803         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38804         (arm_lra_p): Remove.
38806 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
38808         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38810 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38812         * config/tilegx/mul-tables.c: Move symtab.h include after
38813         coretypes.h include.
38814         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38815         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38816         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38817         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38818         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38820 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
38822         PR bootstrap/64676
38823         Revert:
38824         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38826         PR rtl-optimization/64081
38827         * loop-iv.c (def_pred_latch_p): New function.
38828         (latch_dominating_def): Allow specific cases with non-single
38829         definitions.
38830         (iv_get_reaching_def): Likewise.
38831         (check_complex_exit_p): New function.
38832         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38833         with exits not executing on any iteration.
38835 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38837         PR lto/45375
38838         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38839         to set branch cost.
38841 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38843         PR lto/45375
38844         * i386.c (gate): Check flag_expensive_optimizations and
38845         optimize_size.
38846         (ix86_option_override_internal): Drop optimize_size condition
38847         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38848         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38849         MASK_PREFER_AVX128.
38850         (ix86_avx256_split_vector_move_misalign,
38851         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38852         * sse.md (all uses of TARGET_PREFER_AVX128): Add
38853         optimize_insn_for_speed_p check.
38855 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
38857         * config/mips/mips.h (FP_ASM_SPEC): New define.
38858         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38859         instead.
38861 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
38863         PR target/53988
38864         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38865         nullptr for insn when reaching the first insn.
38866         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38867         (sh_insn_operands_modified_between_p): Add nullptr check.
38868         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
38869         sign extending mem load if the insn contains any UNSPEC or
38870         UNSPEC_VOLATILE.
38872 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38874         * params.def (inline-unit-growth): Drop to 15%.
38875         * invoke.texi (inline-unit-growth): Document change.
38877 2015-01-19  Martin Liska  <mliska@suse.cz>
38879         PR ipa/64668
38880         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38881         function for second argument of OBJ_TYPE_REF.
38883 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38885         PR ipa/64218
38886         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38887         whether function is an alias.
38889 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38891         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38892         cases.
38894 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
38896         PR rtl-optimization/64671
38897         * lra-remat.c (operand_to_remat): Don't consider jump and call
38898         insns.
38900 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
38902         PR target/59828
38903         * config/rs6000/default64.h: Include rs6000-cpus.def.
38904         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38905         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38906         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38907         and POWER8.
38908         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38909         POWER8.
38910         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38911         pseudo-op to specify assembler dialect.
38913 2015-01-19  Martin Liska  <mliska@suse.cz>
38915         PR ipa/64664
38916         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38917         Handle safe potentially removed nodes during filtering.
38919 2015-01-19  Martin Liska  <mliska@suse.cz>
38921         * doc/extend.texi (no_icf): Add new attribute description.
38922         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38923         where the pass attempts to merge a function with no_icf attribute.
38925 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38927         PR target/64532
38928         * doc/md.texi (ARM Options): Document register constraints.
38930 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
38931             Andrew Pinski  <apinski@cavium.com>
38933         PR target/64304
38934         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38935         (ashl<mode>3): Don't expand if operands[2] is not constant.
38937 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38939         PR target/64448
38940         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38941         Match xor-and-xor RTL pattern.
38943 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38945         PR rtl-optimization/64081
38946         * loop-iv.c (def_pred_latch_p): New function.
38947         (latch_dominating_def): Allow specific cases with non-single
38948         definitions.
38949         (iv_get_reaching_def): Likewise.
38950         (check_complex_exit_p): New function.
38951         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38952         with exits not executing on any iteration.
38954 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
38956         * common.opt (fgraphite): Fix a typo.
38958 2015-01-19  Felix Yang  <felix.yang@huawei.com>
38960         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38961         pattern.
38962         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38963         uminp, smax_nanp, smin_nanp): New builtins.
38964         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38965         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38966         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38967         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38968         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38969         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38970         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38971         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38972         vpminnms_f32): Rewrite using builtin functions.
38974 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
38976         PR libgomp/64625
38977         * omp-low.c (offload_symbol_decl): Remove variable.
38978         (get_offload_symbol_decl): Remove function.
38979         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38980         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38981         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38982         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38983         BUILT_IN_GOACC_UPDATE don't pass it at all.
38985 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38987         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38988         callers.
38990 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38992         * ipa-chkp.c (chkp_produce_thunks): Add early param
38993         to split thunks production into two passes.  Keep
38994         'always_inline' function bodies after the first pass.
38995         (pass_data_ipa_chkp_early_produce_thunks): New.
38996         (pass_ipa_chkp_early_produce_thunks): New.
38997         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38998         chkp_produce_thunks signature.
38999         (make_pass_ipa_chkp_early_produce_thunks): New.
39000         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39001         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39002         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39004 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39006         * cgraph.c (cgraph_node::dump): Dump profile flags.
39008 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
39010         PR target/64652
39011         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39012         reg appear first in the parallel.
39014 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39016         * ipa-reference.c (set_reference_optimization_summary,
39017         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39018         disabled.
39019         (ignore_module_statics): New static var.
39020         (propagate_bits): If ipa-reference is disabled, do not look into local
39021         properties.
39022         (analyze_function): Disable analysis when ipa_reference is disabled.
39023         (generate_summary): Do not dump when reference is disabled;
39024         collect vars accessed from functions with ipa-reference disabled.
39025         (get_read_write_all_from_node): When ipa-reference is disabled, use the
39026         node flags.
39027         (gate): Enable for LTO.
39028         (ignore_edge_p): New function.
39029         (propagate): Skip functions w/o ipa-reference analysis.
39030         * optc-save-gen.awk: Handle optimize_debug correctly.
39031         * opth-gen.awk: Likewise.
39032         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39033         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39034         fira-share-save-slots, fira-share-spill-slots,
39035         fmodulo-sched-allow-regmoves, fpartial-inlining,
39036         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39037         ftracer, ftree-parallelize-loops, fassociative-math,
39038         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39039         Optimization
39040         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39041         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39042         Optimization.
39043         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39044         Fix for IPA.
39046 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39048         PR ipa/64378
39049         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39050         flag correctly.
39051         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39053 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
39055         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39056         Remove duplicate option listings.
39058 2015-01-18  Felix Yang  <felix.yang@huawei.com>
39060         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39061         (autofdo_source_profile::get_callsite_total_count,
39062         function_instance::get_function_instance_by_decl,
39063         string_table::get_index, string_table::get_index_by_decl,
39064         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39065         Fix comment typos. Reformatting and minor code rearrangement.
39067 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39069         * config/rs6000/rs6000.md (probe_stack): Delete.
39070         (probe_stack_address): New.
39072 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39074         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39075         to test for 32-bit ABIs, not !TARGET_POWERPC64.
39077 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39079         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39080         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
39081         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
39082         snafu.
39083         (rs6000_libcall_value): Use the new function.
39085 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
39087         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39089 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
39091         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39092         implement a more precise life analysis for it during backward scan.
39094 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
39096         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39098 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
39100         PR rtl-optimization/52773
39101         * calls.c (emit_library_call_value): When pushing arguments use
39102         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39103         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
39104         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39106 2015-01-17  Jeff Law  <law@redhat.com>
39108         PR rtl-optimization/32790
39109         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39110         not ZERO_EXTEND in SET_DESTs.
39112 2015-01-17  Alan Modra  <amodra@gmail.com>
39114         * cprop.c (do_local_cprop): Revert last change.
39116 2015-01-16  DJ Delorie  <dj@redhat.com>
39117             Nick Clifton  <nickc@redhat.com>
39119         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39120         (addhi3_real): Likewise.  Fix [HL+0] syntax.
39121         (subqi3_real): Likewise.
39122         (subhi3_real): Likewise.
39123         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
39124         (cbranchhi4_real): Likewise.
39125         (cbranchhi4_real_inverted): Likewise.
39126         (cbranchsi4_real_lt): Likewise.
39127         (cbranchsi4_real_ge): Likewise.
39128         (cbranchsi4_real_ge): Likewise.
39129         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39130         (sub<mode>3_virt): Likewise.
39131         (cbranchqi4_virt): Likewise.
39132         (cbranchhi4_virt): Likewise.
39133         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39134         always use '[reg+imm]' even when imm is zero.
39135         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39136         (rl78_general_operand): New.
39137         (rl78_nonimmediate_operand): New.
39138         (rl78_nonfar_operand): Use them.
39139         (rl78_nonfar_nonimm_operand): Likewise.
39140         (rl78_stack_based_mem): Fix.
39141         * config/rl78/constraints.md (Ibqi): New.
39142         (IBqi): New.
39143         (Wsa): New.
39144         (Wsf): New.
39145         (Cs1): Fix.
39146         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39147         (iorqi3): Likewise.
39148         (xorqi3): Likewise.
39149         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39151         * config/rl78/constrains (Qs8): New constraint.
39152         * config/rl78/rl78.c (rl78_flags_already_set): New function.
39153         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39154         * config/rl78/rl78-real.md (update_Z): New attribute.
39155         Update patterns to set it.
39156         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39157         shorter compare and branch sequence can be used.
39158         (cbranchhi4_real): Likewise.
39159         (cbranchhi4_real_inverted): Likewise.
39161         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39162         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39163         address space.
39164         * config/rl78/rl78.c (rl78_get_name_encoding): New.
39165         (rl78_option_override): Allow -mes0 only if C.
39166         (characterize_address): Support subregs of symbol_refs.
39167         (rl78_addr_space_address_mode): Move.  Add __near.
39168         (rl78_far_p): Likewise.
39169         (rl78_addr_space_pointer_mode): Likewise.
39170         (rl78_as_legitimate_address): Likewise.
39171         (rl78_addr_space_subset_p): Likewise.
39172         (rl78_addr_space_convert): Likewise.
39173         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39174         symbols with -mes0.
39175         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
39176         addressing.
39177         (rl78_alloc_physical_registers_op1): Change logic to prefer
39178         symbol[BC] addressing.
39179         (frodata_section): New.
39180         (rl78_asm_init_sections): Initialize it.
39181         (rl78_select_section): Put __far readonly symbols in .frodata.
39182         (rl78_make_type_far): New.
39183         (rl78_insert_attributes): Force all readonly symbols to be
39184         __far when -mes0.
39185         (rl78_asm_out_integer): New.
39186         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39187         * config/rl78/rl78.opt (-mes0): New.
39189         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39190         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39191         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39192         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39193         (rl78_saddr_p): New.
39194         (rl78_output_aligned_common): New.
39195         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39196         (rl78_handle_saddr_attribute): New.
39197         (rl78_handle_naked_attribute): New.
39198         (rl78_attribute_table): Add saddr.
39199         (rl78_print_operand_1): Don't print '!' on saddr operands.
39200         (rl78_print_operand_1): Strip encodings.
39201         (rl78_sfr_p): New.
39202         (rl78_strip_name_encoding): New.
39203         (rl78_attrlist_to_encoding): New.
39204         (rl78_encode_section_info): New.
39205         (rl78_asm_init_sections): New.
39206         (rl78_select_section): New.
39207         (rl78_output_labelref): New.
39208         (rl78_output_aligned_common): New.
39209         (rl78_asm_out_integer): New.
39210         (rl78_asm_ctor_dtor): New.
39211         (rl78_asm_constructor): New.
39212         (rl78_asm_destructor): New.
39214         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39215         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39216         (transcode_memory_rtx): Update.
39217         (rl78_expand_epilogue): Use A_REG instead of 0.
39219 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39221         * config/arm/arm-protos.h (struct tune_params): New field
39222         sched_autopref_queue_depth.
39223         * config/arm/arm.c (sched-int.h): Include header.
39224         (arm_first_cycle_multipass_dfa_lookahead_guard,)
39225         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39226         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39227         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39228         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39229         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39230         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39231         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39232         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
39233         * config/arm/t-arm (arm.o): Update.
39234         * haifa-sched.c (update_insn_after_change): Update.
39235         (rank_for_schedule): Use auto-prefetcher model, if requested.
39236         (autopref_multipass_init): New static function.
39237         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39238         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39239         variable for debug dumps.
39240         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39241         (autopref_multipass_dfa_lookahead_guard): New global function that
39242         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39243         (init_h_i_d): Update.
39244         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39245         * sched-int.h (enum autopref_multipass_data_status): New const enum.
39246         (autopref_multipass_data_): Structure for auto-prefetcher data.
39247         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39248         (struct _haifa_insn_data:autopref_multipass_data): New field.
39249         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39250         (autopref_multipass_dfa_lookahead_guard): Declare.
39252 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39254         * rtlanal.c (get_base_term): Handle SCRATCH.
39256 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39258         * config/aarch64/aarch64.c
39259         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39260         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39261         * config/arm/arm.c
39262         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39263         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39265 2015-01-17  Alan Modra  <amodra@gmail.com>
39267         * cprop.c (do_local_cprop): Disallow replacement of fixed
39268         hard registers.
39270 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39272         PR target/62066
39273         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39274         early return 0.
39276 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39278         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39279         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39281 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39283         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39284         * config/arm/thumb1.md: ... Here.
39286 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39288         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39289         TImode for TARGET_32BIT.
39291 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39293         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39294         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39295         as ...
39296         (rs6000_abi_word_mode): New function.
39298 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39300         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39301         instead of UNITS_PER_WORD to describe the size of stack slots.
39303 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39305         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39306         as rs6000_promote_function_mode.  Move comment to there.
39307         (rs6000_promote_function_mode): New function.
39309 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39311         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39312         -mpowerpc64 is active.
39314 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39316         PR middle-end/64353
39317         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39318         virtuals on start.
39320 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39322         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39323         introduced in revision 219724.
39325 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39326             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39328         PR target/64263
39329         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39330         destination is not a GP reg.
39331         (*movdi_aarch64): Likewise.
39333 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
39335         PR target/64623
39336         * config/rs6000/default64.h: Revert ISA change.
39338 2015-01-16  Richard Biener  <rguenther@suse.de>
39340         PR middle-end/64614
39341         * tree-ssa-uninit.c: Include tree-cfg.h.
39342         (MAX_SWITCH_CASES): New define.
39343         (convert_control_dep_chain_into_preds): Handle switch statements.
39344         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39345         (normalize_one_pred_1): Do not split bit-manipulations.
39346         Record (x & CST).
39348 2015-01-16  Richard Biener  <rguenther@suse.de>
39350         PR tree-optimization/64568
39351         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39352         complex load rewriting for TARGET_MEM_REFs.
39354 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
39356         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39358 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
39360         PR target/64149
39361         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39362         variable.
39363         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39364         (aarch64_lra_p): Remove.
39366 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39368         PR target/64363
39369         * ipa-chkp.h (chkp_instrumentable_p): New.
39370         * ipa-chkp.c: Include tree-inline.h.
39371         (chkp_instrumentable_p): New.
39372         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39373         Fix processing of not instrumentable functions.
39374         (chkp_versioning): Use chkp_instrumentable_p. Warn about
39375         not instrumentable functions.
39376         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39377         chkp_instrumentable_p.
39378         * tree-inline.h (copy_forbidden): New.
39379         * tree-inline.c (copy_forbidden): Not static anymore.
39381 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39383         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39384         ptr1, ptr2 unused.
39386 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39388         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39389         type OP_OUT to OP_INOUT.
39391 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39393         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39394         (high x) y) to y if x and y have the same base.
39396 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39398         * config/arm/cortex-a57.md: New.
39399         * config/aarch64/aarch64.md: Include it.
39400         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39401         * config/aarch64/aarch64-tune.md: Regenerate.
39403 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
39405         PR target/64015
39406         * ccmp.c (expand_ccmp_next): New function.
39407         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39408         and compare insn sequence.
39409         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39410         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39411         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39412         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39413         (*ccmp_ior): Changed to ccmp_ior<mode>.
39414         (cmp<mode>): New pattern.
39415         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39416         parameters.
39417         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39419 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
39421         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39422         _mm256_bsrli_epi128): New.
39423         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39425 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39427         * expmed.c (store_bit_field_using_insv): Improve warning message.
39428         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39430 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39432         PR rtl-optimization/64011
39433         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39434         there is partial overflow.
39436 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39438         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39439         prototype.
39440         (nds32_expand_epilogue_v3pop): Likewise.
39441         * config/nds32/nds32.md (sibcall): Define this for sibling call
39442         optimization.
39443         (sibcall_register): Likewise.
39444         (sibcall_immediate): Likewise.
39445         (sibcall_value): Likewise.
39446         (sibcall_value_register): Likewise.
39447         (sibcall_value_immediate): Likewise.
39448         (sibcall_epilogue): Likewise.
39449         (epilogue): Pass false to indicate this is not a sibcall epilogue.
39450         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39451         (nds32_expand_epilogue_v3pop): Likewise.
39453 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39455         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39456         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39457         (return_internal): New.
39458         (return): Define this named pattern.
39459         (simple_return): Define this named pattern.
39460         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39461         pattern instead of unspec_volatile_func_return.
39462         (nds32_expand_epilogue_v3pop): Likewise.
39463         (nds32_can_use_return_insn): New function.
39465 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39467         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39468         * config/nds32/nds32.md (pop25return): New.
39469         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39470         pop25return pattern.
39472 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39474         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39475         -mforbid-fp-as-gp, and -mex9 options.
39477 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39479         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39480         remove -mgp-direct option.
39482 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39484         * doc/invoke.texi (--param early-inlining-insns): Update default value.
39485         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39487 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39489         * ipa-inline.c (inline_small_functions): Work around hints
39490         cache issue.
39492 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
39494         PR target/59710
39495         * doc/invoke.texi (Option Summary): Document new Nios II
39496         -mgpopt= syntax.
39497         (Nios II Options): Likewise.
39498         * config/nios2/nios2.opt: Add -mgpopt= option support.
39499         Modify existing -mgpopt and -mno-gpopt options to be aliases.
39500         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39501         * config/nios2/nios2.c (nios2_option_override): Adjust
39502         -mgpopt defaulting.
39503         (nios2_in_small_data_p): Return true for explicit small data
39504         sections even with -G0.
39505         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39506         option choices.
39508 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39510         PR ipa/64612
39511         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39512         of comdat locals.
39513         (inline_call): Fix removal of aliases.
39515 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39517         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39518         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39519         * opts.c (common_handle_option): Add -fsanitize=vptr.
39520         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39521         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39522         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39523         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39524         (ubsan_expand_vptr_ifn): New prototype.
39525         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39526         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39527         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39528         expand_LOOP_VECTORIZED): Make argument nameless, remove
39529         ATTRIBUTE_UNUSED.
39530         (expand_UBSAN_VPTR): New function.
39531         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39532         in fn spec.
39533         (UBSAN_VPTR): New internal function.
39534         * sanopt.c (tree_map_traits): Renamed to ...
39535         (sanopt_tree_map_traits): ... this.
39536         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39537         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39538         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
39539         (maybe_optimize_ubsan_vptr_ifn): New function.
39540         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39541         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
39542         -fsanitize=vptr.
39543         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39544         internal calls like pure functions for aliasing, even when they
39545         have other side-effects that prevent making them ECF_PURE.
39546         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39547         (ubsan_expand_vptr_ifn): New function.
39549 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
39551         PR rtl-optimization/64110
39552         * stmt.c (parse_output_constraint): Process '^' and '$'.
39553         (parse_input_constraint): Ditto.
39554         * lra-constraints.c (process_alt_operands): Process the new
39555         constraints.
39556         * ira-costs.c (record_reg_classes): Process the new constraint
39557         '^'.
39558         * genoutput.c (indep_constraints): Add '^' and '$'.
39559         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39560         * doc/md.texi: Add description of the new constraints.
39562 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
39563             Bernd Schmidt  <bernds@codesourcery.com>
39564             Cesar Philippidis  <cesar@codesourcery.com>
39565             James Norris  <jnorris@codesourcery.com>
39566             Tom de Vries  <tom@codesourcery.com>
39567             Ilmir Usmanov  <i.usmanov@samsung.com>
39568             Dmitry Bocharnikov  <dmitry.b@samsung.com>
39569             Evgeny Gavrin  <e.gavrin@samsung.com>
39570             Jakub Jelinek  <jakub@redhat.com>
39572         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39573         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39574         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39575         New function types.
39576         * builtins.c: Include "gomp-constants.h".
39577         (expand_builtin_acc_on_device): New function.
39578         (expand_builtin, is_inexpensive_builtin): Handle
39579         BUILT_IN_ACC_ON_DEVICE.
39580         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39581         New macros.
39582         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39583         flag_openmp.
39584         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39585         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39586         i386/intelmic-offload.h.
39587         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39588         to libgomp and its dependencies.
39589         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39590         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39591         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39592         * config/ia64/hpux.h (LIB_SPEC): Likewise.
39593         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39594         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39595         * doc/generic.texi: Update for OpenACC changes.
39596         * doc/gimple.texi: Likewise.
39597         * doc/invoke.texi: Likewise.
39598         * doc/sourcebuild.texi: Likewise.
39599         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39600         GF_OMP_FOR_KIND_OACC_LOOP.
39601         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39602         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39603         GF_OMP_TARGET_KIND_OACC_UPDATE,
39604         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39605         Dump more data.
39606         * gimple.c: Update comments for OpenACC changes.
39607         * gimple.def: Likewise.
39608         * gimple.h: Likewise.
39609         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39610         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39611         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39612         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39613         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39614         appropriate place.
39615         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39616         * gimplify.c: Include "gomp-constants.h".
39617         Update comments for OpenACC changes.
39618         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39619         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39620         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39621         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39622         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39623         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39624         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39625         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39626         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39627         OMP_CLAUSE_SEQ.
39628         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39629         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39630         OMP_CLAUSE_SET_MAP_KIND.
39631         (gimplify_oacc_cache): New function.
39632         (gimplify_omp_for): Handle OACC_LOOP.
39633         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39634         OACC_DATA.
39635         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39636         OACC_EXIT_DATA, OACC_UPDATE.
39637         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39638         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39639         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39640         (gimplify_body): Consider flag_openacc next to flag_openmp.
39641         * lto-streamer-out.c: Include "gomp-constants.h".
39642         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39643         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39644         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39645         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39646         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39647         (BUILT_IN_ACC_ON_DEVICE): New builtins.
39648         * omp-low.c: Include "gomp-constants.h".
39649         Update comments for OpenACC changes.
39650         (struct omp_context): Add reduction_map, gwv_below, gwv_this
39651         members.
39652         (extract_omp_for_data, use_pointer_for_field, install_var_field)
39653         (new_omp_context, delete_omp_context, scan_sharing_clauses)
39654         (create_omp_child_function, scan_omp_for, scan_omp_target)
39655         (check_omp_nesting_restrictions, lower_reduction_clauses)
39656         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39657         Update for OpenACC changes.
39658         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39659         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39660         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39661         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39662         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39663         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
39664         OMP_CLAUSE_MAP_*.
39665         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39666         Handle GF_OMP_FOR_KIND_OACC_LOOP.
39667         (expand_omp_target, lower_omp_target): Handle
39668         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39669         GF_OMP_TARGET_KIND_OACC_UPDATE,
39670         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39671         GF_OMP_TARGET_KIND_OACC_DATA.
39672         (pass_expand_omp::execute, execute_lower_omp)
39673         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39674         flag_openmp.
39675         (offload_symbol_decl): New variable.
39676         (oacc_get_reduction_array_id, oacc_max_threads)
39677         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39678         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39679         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39680         (oacc_gimple_assign, oacc_initialize_reduction_data)
39681         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39682         functions.
39683         (is_targetreg_ctx): Remove function.
39684         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39685         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39686         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39687         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39688         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39689         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39690         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39691         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39692         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39693         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39694         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39695         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39696         * tree-core.h: Update comments for OpenACC changes.
39697         (enum omp_clause_map_kind): Remove.
39698         (struct tree_omp_clause): Change type of map_kind member from enum
39699         omp_clause_map_kind to unsigned char.
39700         * tree-inline.c: Update comments for OpenACC changes.
39701         * tree-nested.c: Likewise.  Include "gomp-constants.h".
39702         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39703         (convert_tramp_reference_stmt, convert_gimple_call): Update for
39704         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
39705         OMP_CLAUSE_SET_MAP_KIND.
39706         * tree-pretty-print.c: Include "gomp-constants.h".
39707         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39708         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39709         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39710         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39711         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39712         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
39713         instead of OMP_CLAUSE_MAP_*.
39714         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39715         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39716         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39717         * tree-streamer-in.c: Include "gomp-constants.h".
39718         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39719         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
39720         * tree-streamer-out.c: Include "gomp-constants.h".
39721         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39722         OMP_CLAUSE_MAP_*.
39723         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39724         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39725         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39726         * tree.c (omp_clause_num_ops): Update accordingly.
39727         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39728         Likewise.
39729         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39730         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39731         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39732         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39733         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39734         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39735         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39736         (OMP_CLAUSE_SET_MAP_KIND): New macro.
39737         * varpool.c (varpool_node::get_create): Consider flag_openacc next
39738         to flag_openmp.
39739         * config/i386/intelmic-offload.h: New file.
39740         * config/nvptx/offload.h: Likewise.
39742 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39744         * explow.h: Remove duplicate contents.
39745         * dojump.h: Likewise.
39747 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
39749         * arm.c (arm_xgene_tune): Add default initializer for instruction
39750         fusion.
39752 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
39754         PR ipa/64068
39755         PR ipa/64559
39756         * ipa.c (symbol_table::remove_unreachable_nodes):
39757         Do not put abstract origins into boundary.
39759 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
39761         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39762         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39764 2015-01-15  Steve Ellcey  <sellcey@mips.com>
39766         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39767         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39768         builtins.def, and chkp-builtins.def.
39770 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
39772         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39773         ISA 2.7 (POWER8).
39775 2015-01-15  Richard Biener  <rguenther@suse.de>
39777         PR tree-optimization/61743
39778         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39779         information on PHIs for some simple cases.
39781 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39783         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39784         Include xgene1.md.
39785         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39786         * config/arm/arm-cores.def (xgene1): New entry.
39787         * config/arm/arm-tables.opt: Regenerate.
39788         * config/arm/arm-tune.md: Regenerate.
39789         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39791 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39793         * tree-if-conv.c: Include hash-map.h.
39794         (aggressive_if_conv): New variable.
39795         (fold_build_cond_expr): Add simplification of non-zero condition.
39796         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39797         destination block is not always executed.
39798         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39799         than two predecessors if AGGRESSIVE_IF_CONV is true.
39800         (if_convertible_stmt_p): Fix commentary.
39801         (all_preds_critical_p): New function.
39802         (has_pred_critical_p): New function.
39803         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39804         BB can have more than two predecessors and all incoming edges can be
39805         critical.
39806         (predicate_bbs): Skip predication for loop exit block, use build2_loc
39807         to compute predicate for true edge.
39808         (find_phi_replacement_condition): Delete this function.
39809         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39810         Allow interchange PHI arguments if EXTENDED is false.
39811         Change check that block containing reduction statement candidate
39812         is predecessor of phi-block since phi may have more than two arguments.
39813         (phi_args_hash_traits): New helper structure.
39814         (struct phi_args_hash_traits): New type.
39815         (phi_args_hash_traits::hash): New function.
39816         (phi_args_hash_traits::equal_keys): New function.
39817         (gen_phi_arg_condition): New function.
39818         (predicate_scalar_phi): Add handling of phi nodes with more than two
39819         arguments, delete COND and TRUE_BB arguments, insert body of
39820         find_phi_replacement_condition to predicate ordinary phi nodes.
39821         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39822         delete call of find_phi_replacement_condition and invoke
39823         predicate_scalar_phi with two arguments.
39824         (insert_gimplified_predicates): Add assert that non-predicated block
39825         don't have statements to insert.
39826         (ifcvt_split_critical_edges): New function.
39827         (ifcvt_split_def_stmt): Likewise.
39828         (ifcvt_walk_pattern_tree): Likewise.
39829         (stmt_is_root_of_bool_pattern): Likewise.
39830         (ifcvt_repair_bool_pattern): Likewise.
39831         (ifcvt_local_dce): Likewise.
39832         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39833         is copy of inner or outer loop force_vectorize field, invoke
39834         ifcvt_split_critical_edges, ifcvt_local_dce and
39835         ifcvt_repair_bool_pattern for aggressive if-conversion.
39837 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
39839         * config/aarch64/aarch64.md: Include xgene1.md.
39840         * config/aarch64/xgene1.md: New file.
39842 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39844         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39845         xgene1 (APM XGene-1) core definition.
39846         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39847         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39848         * doc/invoke.texi: Document -mcpu=xgene1.
39850 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39852         * dojump.h: New header file.
39853         * explow.h: Likewise.
39854         * expr.h: Remove includes.
39855         Move expmed.c prototypes to expmed.h.
39856         Move dojump.c prototypes to dojump.h.
39857         Move alias.c prototypes to alias.h.
39858         Move explow.c prototypes to explow.h.
39859         Move calls.c prototypes to calls.h.
39860         Move emit-rtl.c prototypes to emit-rtl.h.
39861         Move varasm.c prototypes to varasm.h.
39862         Move stmt.c prototypes to stmt.h.
39863         (saved_pending_stack_adjust): Move to dojump.h.
39864         (adjust_address): Move to explow.h.
39865         (adjust_address_nv): Move to emit-rtl.h.
39866         (adjust_bitfield_address): Likewise.
39867         (adjust_bitfield_address_size): Likewise.
39868         (adjust_bitfield_address_nv): Likewise.
39869         (adjust_automodify_address_nv): Likewise.
39870         * explow.c (expr_size): Move to expr.c.
39871         (int_expr_size): Likewise.
39872         (tree_expr_size): Likewise.
39873         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39874         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39875         * genemit.c (main): Generate includes statistics.h, real.h,
39876         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39877         stmt.h.
39878         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39879         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39880         explow.h, emit-rtl.h, stmt.h.
39881         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39882         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39883         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39884         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39885         emit-rtl.h, varasm.h, stmt.h.
39886         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39887         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39888         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39889         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39890         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39891         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39892         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39893         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39894         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39895         tm.h tree.h varasm.h vec.h wide-int.h.
39896         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39897         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39898         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39899         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39900         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39901         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39902         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39903         * loop-iv.c: Likewise.
39904         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39905         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39906         statistics.h stmt.h tree.h varasm.h wide-int.h.
39907         * lra-constraints.c: Likewise.
39908         * lra-eliminations.c: Likewise.
39909         * lra-lives.c: Likewise.
39910         * lra-remat.c: Likewise.
39911         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39912         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39913         statistics.h stmt.h tree.h varasm.h wide-int.h.
39914         * hw-doloop.c: Likewise.
39915         * ira-color.c: Likewise.
39916         * ira-emit.c: Likewise.
39917         * loop-doloop.c: Likewise.
39918         * loop-invariant.c: Likewise.
39919         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39920         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39921         statistics.h stmt.h tree.h varasm.h wide-int.h.
39922         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39923         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39924         statistics.h stmt.h tree.h varasm.h wide-int.h.
39925         * combine-stack-adj.c: Likewise.
39926         * cse.c: Likewise.
39927         * ddg.c: Likewise.
39928         * ifcvt.c: Likewise.
39929         * ira-costs.c: Likewise.
39930         * jump.c: Likewise.
39931         * lra-coalesce.c: Likewise.
39932         * lra-spills.c: Likewise.
39933         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39934         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39935         stmt.h varasm.h wide-int.h.
39936         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39937         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39938         varasm.h.
39939         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39940         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39941         statistics.h stmt.h varasm.h wide-int.h.
39942         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39943         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39944         varasm.h wide-int.h.
39945         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39946         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39947         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39948         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39949         statistics.h stmt.h.
39950         * config/tilepro/tilepro.c: Likewise.
39951         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39952         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39953         * config/pdp11/pdp11.c: Likewise.
39954         * config/xtensa/xtensa.c: Likewise.
39955         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39956         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39957         varasm.h.
39958         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39959         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39960         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39961         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39962         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39963         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39964         * rtl-chkp.c: Likewise.
39965         * tree-chkp-opt.c: Likewise.
39966         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39967         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39968         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39969         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39970         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39971         statistics.h stmt.h.
39972         * tree-vect-data-refs.c: Likewise.
39973         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39974         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39975         rtl.h statistics.h stmt.h varasm.h.
39976         * internal-fn.c: Likewise.
39977         * ipa-icf-gimple.c: Likewise.
39978         * lto-section-out.c: Likewise.
39979         * tree-data-ref.c: Likewise.
39980         * tree-nested.c: Likewise.
39981         * tree-outof-ssa.c: Likewise.
39982         * tree-predcom.c: Likewise.
39983         * tree-pretty-print.c: Likewise.
39984         * tree-scalar-evolution.c: Likewise.
39985         * tree-ssa-strlen.c: Likewise.
39986         * tree-vect-loop.c: Likewise.
39987         * tree-vect-patterns.c: Likewise.
39988         * tree-vect-slp.c: Likewise.
39989         * tree-vect-stmts.c: Likewise.
39990         * tsan.c: Likewise.
39991         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39992         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39993         stmt.h.
39994         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39995         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39996         statistics.h stmt.h varasm.h.
39997         * loop-unroll.c: Likewise.
39998         * ubsan.c: Likewise.
39999         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40000         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40001         stmt.h varasm.h.
40002         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40003         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40004         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40005         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40006         statistics.h stmt.h.
40007         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40008         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40009         statistics.h stmt.h varasm.h.
40010         * gimple-match-head.c: Likewise.
40011         * lto-cgraph.c: Likewise.
40012         * lto-section-in.c: Likewise.
40013         * lto-streamer-in.c: Likewise.
40014         * lto-streamer-out.c: Likewise.
40015         * tree-affine.c: Likewise.
40016         * tree-cfg.c: Likewise.
40017         * tree-cfgcleanup.c: Likewise.
40018         * tree-if-conv.c: Likewise.
40019         * tree-into-ssa.c: Likewise.
40020         * tree-ssa-alias.c: Likewise.
40021         * tree-ssa-copyrename.c: Likewise.
40022         * tree-ssa-dse.c: Likewise.
40023         * tree-ssa-forwprop.c: Likewise.
40024         * tree-ssa-live.c: Likewise.
40025         * tree-ssa-math-opts.c: Likewise.
40026         * tree-ssa-pre.c: Likewise.
40027         * tree-ssa-sccvn.c: Likewise.
40028         * tree-tailcall.c: Likewise.
40029         * tree-vect-generic.c: Likewise.
40030         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40031         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40032         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40033         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40034         * varasm.c: Likewise.
40035         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40036         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40037         varasm.h.
40038         * init-regs.c: Likewise.
40039         * ira.c: Likewise.
40040         * omp-low.c: Likewise.
40041         * stack-ptr-mod.c: Likewise.
40042         * tree-ssa-reassoc.c: Likewise.
40043         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40044         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40045         varasm.h.
40046         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40047         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40048         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40049         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40050         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40051         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40052         * tree-ssa-phiopt.c: Likewise.
40053         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40054         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40055         * config/fr30/fr30.c: Likewise.
40056         * config/frv/frv.c: Likewise.
40057         * expr.c: Likewise.
40058         * final.c: Likewise.
40059         * optabs.c: Likewise.
40060         * passes.c: Likewise.
40061         * simplify-rtx.c: Likewise.
40062         * stmt.c: Likewise.
40063         * toplev.c: Likewise.
40064         * var-tracking.c: Likewise.
40065         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40066         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40067         * lower-subreg.c: Likewise.
40068         * postreload-gcse.c: Likewise.
40069         * ree.c: Likewise.
40070         * reginfo.c: Likewise.
40071         * store-motion.c: Likewise.
40072         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40073         fixed-value.h hashtab.h real.h stmt.h varasm.h.
40074         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40075         fixed-value.h hashtab.h statistics.h stmt.h.
40076         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40077         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40078         * except.c: Likewise.
40079         * explow.c: Likewise.
40080         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40081         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40082         varasm.h.
40083         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40084         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40085         * tree-ssa-structalias.c: Likewise.
40086         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40087         fixed-value.h insn-config.h real.h statistics.h.
40088         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40089         fixed-value.h insn-config.h real.h statistics.h stmt.h.
40090         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40091         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40092         * cfgbuild.c: Likewise.
40093         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40094         fixed-value.h real.h rtl.h statistics.h stmt.h.
40095         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40096         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40097         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40098         fixed-value.h real.h statistics.h stmt.h.
40099         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40100         fixed-value.h real.h statistics.h stmt.h varasm.h.
40101         * cprop.c: Likewise.
40102         * modulo-sched.c: Likewise.
40103         * postreload.c: Likewise.
40104         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40105         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40106         statistics.h stmt.h varasm.h.
40107         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40108         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40109         rtl.h statistics.h stmt.h varasm.h.
40110         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40111         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40112         varasm.h.
40113         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40114         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40115         varasm.h.
40116         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40117         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40118         varasm.h.
40119         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40120         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40121         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40122         function.h real.h statistics.h stmt.h varasm.h.
40123         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40124         insn-config.h real.h statistics.h stmt.h.
40125         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40126         statistics.h stmt.h.
40127         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40128         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40129         statistics.h stmt.h varasm.h.
40130         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40131         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40132         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40133         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40134         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40135         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40136         statistics.h stmt.h varasm.h.
40137         * ipa-polymorphic-call.c: Likewise.
40138         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40139         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40140         statistics.h stmt.h.
40141         * config/c6x/c6x.c: Likewise.
40142         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40143         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40144         statistics.h stmt.h varasm.h.
40145         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40146         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40147         stmt.h varasm.h.
40148         * ipa-split.c: Likewise.
40149         * tree-eh.c: Likewise.
40150         * tree-ssa-dce.c: Likewise.
40151         * tree-ssa-loop-niter.c: Likewise.
40152         * tree-vrp.c: Likewise.
40153         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40154         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40155         stmt.h.
40156         * config/nds32/nds32-fp-as-gp.c: Likewise.
40157         * config/nds32/nds32-intrinsic.c: Likewise.
40158         * config/nds32/nds32-isr.c: Likewise.
40159         * config/nds32/nds32-md-auxiliary.c: Likewise.
40160         * config/nds32/nds32-memory-manipulation.c: Likewise.
40161         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40162         * config/nds32/nds32-predicates.c: Likewise.
40163         * config/nds32/nds32.c: Likewise.
40164         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40165         fixed-value.h hashtab.h real.h statistics.h.
40166         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40167         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40168         * config/arm/arm.c: Likewise.
40169         * config/avr/avr.c: Likewise.
40170         * config/bfin/bfin.c: Likewise.
40171         * config/h8300/h8300.c: Likewise.
40172         * config/i386/i386.c: Likewise.
40173         * config/ia64/ia64.c: Likewise.
40174         * config/iq2000/iq2000.c: Likewise.
40175         * config/m32c/m32c.c: Likewise.
40176         * config/m32r/m32r.c: Likewise.
40177         * config/m68k/m68k.c: Likewise.
40178         * config/mcore/mcore.c: Likewise.
40179         * config/mep/mep.c: Likewise.
40180         * config/mips/mips.c: Likewise.
40181         * config/mn10300/mn10300.c: Likewise.
40182         * config/moxie/moxie.c: Likewise.
40183         * config/pa/pa.c: Likewise.
40184         * config/rl78/rl78.c: Likewise.
40185         * config/rx/rx.c: Likewise.
40186         * config/s390/s390.c: Likewise.
40187         * config/sh/sh.c: Likewise.
40188         * config/sparc/sparc.c: Likewise.
40189         * config/spu/spu.c: Likewise.
40190         * config/stormy16/stormy16.c: Likewise.
40191         * config/v850/v850.c: Likewise.
40192         * config/vax/vax.c: Likewise.
40193         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40194         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40195         * config/msp430/msp430.c: Likewise.
40196         * predict.c: Likewise.
40197         * value-prof.c: Likewise.
40198         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40199         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40200         * config/microblaze/microblaze.c: Likewise.
40201         * config/nios2/nios2.c: Likewise.
40202         * config/rs6000/rs6000.c: Likewise.
40203         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40204         insn-config.h real.h rtl.h statistics.h stmt.h.
40205         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40206         insn-config.h real.h statistics.h stmt.h.
40207         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40208         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40209         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40210         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40211         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40212         fixed-value.h real.h statistics.h stmt.h.
40213         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40214         fixed-value.h statistics.h stmt.h.
40215         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40216         stmt.h.
40218 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40220         * gengtype.c (create_user_defined_type): Workaround
40221         -Wmaybe-uninitialized false positives.
40222         * cse.c (fold_rtx): Likewise.
40223         * loop-invariant.c (gain_for_invariant): Likewise.
40225 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
40227         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40228         set the memory attributes in all cases but clear MEM_EXPR if need be.
40230 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40232         PR tree-optimization/64434
40233         * cfgexpand.c (reorder_operands): New function.
40234         (expand_gimple_basic_block): Insert call of reorder_operands if
40235         optimized is true.
40237 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
40239         * config/mips/micromips.md (*swp): Remove explicit parallel.
40240         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40241         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40242         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40243         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40244         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40245         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40246         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40247         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40248         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40249         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40250         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40251         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40252         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40253         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40254         (mips_wrdsp): Likewise.
40255         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40256         parallel.
40257         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40258         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40259         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40260         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40261         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40262         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40263         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40264         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40265         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40267 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40269         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40270         (mips_print_operand): Support 'y' to print exact log2 in decimal
40271         of a const_int.
40272         * config/mips/mips.h (ISA_HAS_LSA): New define.
40273         (ISA_HAS_DLSA): Likewise.
40274         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40275         * config/mips/predicates.md (const_immlsa_operand): New predicate.
40277 2015-01-15  Martin Liska  <mliska@suse.cz>
40279         PR target/64377
40280         * optc-save-gen.awk: Add support for array types.
40282 2015-01-15  Richard Biener  <rguenther@suse.de>
40284         PR middle-end/64365
40285         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40286         for MEM_REF access functions with the same base can never partially
40287         overlap.
40289 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
40291         * common.opt: New option -fstack-protector-explicit.
40292         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40293         (stack_protect_decl_phase): Handle stack_protect attribute for
40294         explicit stack protection requests.
40295         (expand_used_vars): Similarly.
40296         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40297         * doc/extend.texi: Add documentation for "stack_protect" attribute.
40298         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40300 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
40302         PR target/53988
40303         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40304         reg-reg copies.
40305         (sh_extending_set_of_reg): New struct.
40306         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40307         sh_remove_reg_dead_or_unused_notes): New Declarations.
40308         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40309         sh_find_extending_set_of_reg, sh_split_tst_subregs,
40310         sh_extending_set_of_reg::use_as_extended_reg): New functions.
40311         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40312         convert to insn_and_split and use new function sh_split_tst_subregs.
40314 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
40316         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40317         option.
40318         (Optimization Options): Move -fuse-ld documentation to...
40319         (Link Options): ...here.
40321 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40323         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40324         offsets.
40325         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40326         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40327         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40328         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40329         instead of ZR for the memory operand of LL/SC.
40330         (compare_and_swap_12, sync_add<mode>): Likewise.
40331         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40332         (sync_new_<optab>_12, sync_nand_12): Likewise.
40333         (sync_old_nand_12, sync_new_nand_12): Likewise.
40334         (sync_sub<mode>, sync_old_add<mode>): Likewise.
40335         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40336         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40337         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40338         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40339         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40340         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40341         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40342         * doc/md.texi (ZC): Update description.
40344 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40346         * builtins.c (expand_builtin_atomic_exchange): Remove error when
40347         memory model is CONSUME.
40348         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40349         expand_builtin_atomic_store): Change invalid memory model errors to
40350         warnings.
40351         (expand_builtin_atomic_clear): Change invalid model errors to warnings
40352         and issue warning for CONSUME.
40354 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
40356         * lto-cgraph: Update function comments for
40357         lto_symtab_encoder_encode_*.
40359 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40361         * Makefile.in (site.exp): Do not set ENABLE_LTO.
40363 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40365         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40366         * lto-cgraph.c (select_what_to_stream): Remove argument, use
40367         lto_stream_offload_p instead.
40368         * lto-streamer.h (select_what_to_stream): Remove argument.
40369         * passes.c (ipa_write_summaries): Likewise.
40370         * tree-pass.h (ipa_write_summaries): Likewise.
40372 2015-01-14  Richard Biener  <rguenther@suse.de>
40374         PR tree-optimization/59354
40375         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40376         groups larger than the slp group size as having gaps.
40378 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40380         PR middle-end/59448
40381         * builtins.c (get_memmodel): Promote consume to acquire always.
40383 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40385         PR target/64386
40386         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40387         V32HImode.
40389 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40391         PR target/64393
40392         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40393         Enable AVX512BW.
40394         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40395         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40396         AVX512VBMI, as it implies AVX512BW.
40398 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40400         PR target/64387
40401         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40402         (vec_unpacks_hi_v16sf): Ditto.
40404 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40406         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40407         is not available.
40409 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40411         * doc/invoke.texi (mapcs): Mention deprecation.
40412         (mapcs-frame): Likewise.
40414 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40416         PR target/64453
40417         * config/arm/arm.c (callee_saved_reg_p): Define.
40418         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40419         register is callee saved instead of !call_used_regs[reg].
40420         (thumb1_compute_save_reg_mask): Likewise.
40422 2015-01-14  Hale Wang  <hale.wang@arm.com>
40424         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40425         Cortex-M7.
40427 2015-01-14  Richard Biener  <rguenther@suse.de>
40429         PR lto/64415
40430         * tree-inline.c (insert_debug_decl_map): Check destination
40431         function MAY_HAVE_DEBUG_STMTS.
40432         (insert_init_debug_bind): Likewise.
40433         (insert_init_stmt): Remove redundant check.
40434         (remap_gimple_stmt): Drop debug stmts if the destination
40435         function has var-tracking assignments disabled.
40437 2015-01-14  Martin Liska  <mliska@suse.cz>
40439         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40440         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40442 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40444         PR target/64460
40445         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40446         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40448 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40450         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40451         level from an ARCH; do not inject the default.
40452         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40453         MIPS_ISA_LEVEL_SPEC.
40454         (MIPS_ISA_NAN2008_SPEC): Update comment.
40455         (BASE_DRIVER_SELF_SPECS): Likewise.
40456         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40457         MIPS_DEFAULT_ISA_LEVEL_SPEC.
40458         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40459         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40460         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40462 2015-01-14  Richard Biener  <rguenther@suse.de>
40464         PR tree-optimization/64493
40465         PR tree-optimization/64495
40466         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40467         assign the proper vectorized PHI to the inner loop exit PHIs.
40469 2015-01-14  Joey Ye  <joey.ye@arm.com>
40471         * config/arm/arm.c (arm_compute_save_reg_mask):
40472         Do not save lr in case of tail call.
40473         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40475 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
40477         * tree-vrp.c (check_array_ref): Emit more warnings
40478         for warn_array_bounds >= 2.
40479         * common.opt: New option -Warray-bounds=.
40480         * doc/invoke.texi: Document -Warray-bounds=.
40482 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
40484         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40485         (mforbid-fp-as-gp): Remove.
40486         (mex9): Remove.
40487         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40488         (nds32_symbol_load_store_p): Remove.
40489         (nds32_fp_as_gp_check_available): Clean up implementation.
40490         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40491         cases.
40492         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40493         fp-as-gp and ex9 cases.
40495 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40497         * tree-profile.c (init_ic_make_global_vars): Drop workaround
40498         for bintuils bug 14342.
40499         (init_ic_make_global_vars): Likewise.
40500         (gimple_init_edge_profiler): Likewise.
40501         (gimple_gen_ic_func_profiler): Likewise.
40503 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
40505         * ipa-inline.c (inline_small_functions): Swap the operands in
40506         enum.
40508 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40510         PR ipa/64481
40511         * ipa-inline-analysis.c (node_growth_cache): Remove.
40512         (initialize_growth_caches): Do not initialize it.
40513         (free_growth_caches): Do not free it.
40514         (do_estimate_growth): Rename to ...
40515         (estimate_growth): ... this one; drop growth cache code.
40516         (growth_likely_positive): Always go the heuristics way.
40517         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40518         (reset_edge_caches): Do not reset node growth.
40519         (heap_edge_removal_hook): Do not maintain cache.
40520         (inline_small_functions): Likewise; strenghten sanity check.
40521         (ipa_inline): Do not maintain caches.
40522         * ipa-inline.h (node_growth_cache): Remove.
40523         (do_estimate_growth): Remove to ...
40524         (estimate_growth): this one; remove inline version.
40525         (reset_node_growth_cache): Remove.
40527 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
40529         PR ipa/64565
40530         * ipa-inline.c (inline_small_functions): Update callee keys after
40531         resolving speculation
40532         (inline_small_functions): Always check monotonicity of the queue.
40534 2015-01-13  Marek Polacek  <polacek@redhat.com>
40536         PR middle-end/64391
40537         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40539 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40541         PR rtl-optimization/64286
40542         * ree.c (combine_reaching_defs): Move part of comment earlier,
40543         remove !SCALAR_INT_MODE_P check.
40544         (add_removable_extension): Don't add vector mode
40545         extensions if all uses of the source register aren't the same
40546         vector extensions.
40548 2015-01-13  Renlin Li  <renlin.li@arm.com>
40550         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40551         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40553 2015-01-13  Martin Liska  <mliska@suse.cz>
40555         * ipa-icf.c (sem_function::equals_private): Call new functions
40556         cl_target_option_print_diff and cl_optimization_print_diff.
40557         * optc-save-gen.awk (cl_target_option_print_diff): New function.
40558         (cl_optimization_print_diff): Likewise.
40559         * opth-gen.awk: Likewise.
40561 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
40563         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40564         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40565         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40566         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40567         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40568         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40570 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40572         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40573         instead of src mode.
40575 2015-01-13  Richard Biener  <rguenther@suse.de>
40577         PR lto/64373
40578         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40579         DECL_CONTEXT.
40581 2015-01-13  Andrew Pinski  <apinski@cavium.com>
40583         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40584         volatile mems.
40585         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40587 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
40589         PR middle-end/63974
40590         * cfgexpand.c (expand_computed_goto): Don't call
40591         convert_memory_address here.
40593 2015-01-13  Richard Biener  <rguenther@suse.de>
40595         PR tree-optimization/64406
40596         * tree-loop-distibution.c (pass_loop_distribution::execute):
40597         Reset the SCEV hashtable if we distributed anything.
40599 2015-01-13  Richard Biener  <rguenther@suse.de>
40601         PR tree-optimization/64404
40602         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40603         SLP types for CSEd loads.
40605 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40607         PR tree-optimization/64436
40608         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40609         merge of two symbolic numbers for a bitwise OR to ...
40610         (perform_symbolic_merge): This. Also fix computation of the range and
40611         end of the symbolic number corresponding to the result of a bitwise OR.
40613 2015-01-13  Richard Biener  <rguenther@suse.de>
40615         PR tree-optimization/64568
40616         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40617         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40619 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40621         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40622         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40624 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40626         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40627         target-specific symbol_ref flag.
40628         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40629         resides in rodata section.
40630         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40631         (nds32_encode_section_info): New function.
40633 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40635         * config/nds32/nds32.md (call): Use pseudo instruction bal which
40636         clobbers TA_REGNUM if large code model is specified.
40637         (call_register): Likewise.
40638         (call_immediate): Likewise.
40639         (call_value): Likewise.
40640         (call_value_register): Likewise.
40641         (call_value_immediate): Likewise.
40643 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40645         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40646         (TARGET_CMODEL_MEDIUM): New macro.
40647         (TARGET_CMODEL_LARGE): New macro.
40648         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40649         code model setting in assembly code.
40651 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40653         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40654         Remove MASK_GP_DIRECT flag.
40655         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40656         one of the multilib default options.
40657         * config/nds32/nds32.opt (mgp-direct): Remove.
40658         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40659         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
40661 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
40663         * config/nds32/nds32.opt (mcmodel): Add new option.
40664         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40665         to describe code model.
40667 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
40669         PR target/64479
40670         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40672 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
40674         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40675         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40676         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40677         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40678         __builtin_sh_set_fpscr.
40680 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40682         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40683         after a funtion name just to indicate it is a function.
40684         ([-fsanitize-undefined-trap-on-error]): Likewise.
40685         ([-fdbg-cnt=]): Likewise.
40686         ([-mmemcpy]): Likewise.
40687         ([-mflush-func]): Likewise.
40688         ([-msynci]): Likewise.
40690 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
40692         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40693         example.
40695 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
40697         PR tree-optimization/64563
40698         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40699         instead of != VR_VARYING.
40701         PR target/64513
40702         * config/i386/i386.c (ix86_expand_prologue): Add
40703         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40705         PR tree-optimization/64454
40706         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40707         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40708         for signed or [0, op1 - 1] for unsigned modulo.
40709         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40710         even if op1 does not satisfy integer_pow2p.
40712         PR other/64370
40713         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40715 2015-01-12  Jeff Law  <law@redhat.com>
40717         PR target/64461
40718         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40719         (trunchiqi2, truncsihi2): Similarly.
40721         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40722         rather than calling F.
40724 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40726         * tsan.c (instrument_expr): Use force_gimple_operand.
40727         Use may_be_nonaddressable_p instead of is_gimple_addressable.
40729 2015-01-12  Richard Biener  <rguenther@suse.de>
40731         PR tree-optimization/64530
40732         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40733         back dr1.
40735 2015-01-12  Richard Biener  <rguenther@suse.de>
40737         PR middle-end/64357
40738         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40739         latches properly.
40741 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40743         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40744         Cortex-A17 tuning parameters.
40745         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40747 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40749         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40750         * config/arm/arm.c (arm_macro_fusion_p): New function.
40751         (arm_macro_fusion_pair_p): Likewise.
40752         (TARGET_SCHED_MACRO_FUSION_P): Define.
40753         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40754         (ARM_FUSE_NOTHING): Likewise.
40755         (ARM_FUSE_MOVW_MOVT): Likewise.
40756         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40757         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40758         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40759         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40760         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40761         arm_cortex_a5_tune): Specify fuseable_ops value.
40763 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
40765         PR bootstrap/64561
40766         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40767         test for PIE with copy reloc.
40768         * configure: Regenerated.
40770 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40772         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40773         in gen_rtx_REG.
40774         (arm_tls_descseq_addr): Likewise.
40775         (arm_gen_movmemqi): Likewise.
40776         (arm_expand_epilogue_apcs_frame): Likewise.
40777         (arm_expand_epilogue): Likewise.
40778         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
40779         in gen_rtx_REG.
40781 2015-01-12  Martin Liska  <mliska@suse.cz>
40783         PR ipa/64550
40784         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40785         volatility for correct operands.
40787 2015-01-12  Martin Liska  <mliska@suse.cz>
40789         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40790         indication that a function is not leaf.
40791         (sem_function::compare_polymorphic_p): Likewise.
40793 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40795         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40796         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40797         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40798         fold-const.h, tree-check.h.
40800 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40802         PR ipa/63967
40803         PR ipa/64425
40804         * ipa-inline.c (compute_uninlined_call_time,
40805         compute_inlined_call_time): Use counts for extra precision when
40806         needed possible.
40807         (big_speedup_p): Fix formating.
40808         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40809         (relative_time_benefit): Remove.
40810         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40811         merge guessed and read profile paths.
40812         (inline_small_functions): Count only !optimize_size functions into
40813         initial size; be more lax about sanity check when profile is used;
40814         be sure to update inlined function profile when profile is read.
40816 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40818         PR ipa/63470
40819         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40820         cost when edge becomes direct.
40821         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40822         is resolved or when introducing new speculation.
40824 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
40826         PR ipa/64551
40827         PR ipa/64552
40828         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40829         '||' to fix typo issue.
40831         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40832         accept and return NULL.
40834 2015-01-12  Martin Liska  <mliska@suse.cz>
40836         * cgraph.c (cgraph_edge::remove_callee): Move function to header
40837         file for being inlined.
40838         (cgraph_set_edge_callee): Delete.
40839         (cgraph_edge::redirect_callee): Move function to header file
40840         for being inlined.
40841         (cgraph_edge::make_direct): Use new function.
40842         (cgraph_edge::dump_edge_flags): New function created from
40843         static dump_edge_flags function.
40844         (cgraph_node::dump): Use new function.
40845         (cgraph_edge::verify_count_and_frequency): New function created
40846         from verify_edge_count_and_frequency.
40847         (cgraph_edge::verify_corresponds_to_fndecl): New function created
40848         from verify_edge_corresponds_to_fndecl.
40849         (verify_edge_corresponds_to_fndecl): Delete.
40850         (cgraph_node::verify_node): Use new function.
40851         * cgraph.h (cgraph_edge::set_callee): New function.
40852         (cgraph_edge::dump_edge_flags): Likewise.
40853         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40855 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
40857         * ipa-utils.c (estimate_function_body_sizes): Do not
40858         free node params when called late with early=true.
40860 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
40862         * doc/md.texi (Instruction Patterns): Rewrite text for
40863         clarity.
40864         (Example): Likewise.
40866 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
40868         * doc/invoke.texi (Option Summary): Break long lines.
40869         [(-fdiagnostics-color)]: Put long literal in @smallexample
40870         instead of inline.
40871         [(-fsanitize-recover)]: Likewise.
40872         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40873         [(-ffast-math)]: Likewise.
40874         [(--param max-inline-insns-recursive)]: Likewise.
40875         [(--param max-inline-recursive-depth)]: Likewise.
40876         [(-mno-text-section-literals)]: Likewise.
40878 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
40880         * doc/install.texi: Update for libgomp being renamed from "GNU
40881         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40882         Runtime Library".
40883         * doc/sourcebuild.texi: Likewise.
40885 2015-01-10  Anthony Green  <green@moxielogic.com>
40887         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40888         mul.x availability for moxiebox configuration.
40890 2015-01-09  Anthony Green  <green@moxielogic.com>
40892         * config/moxie/moxie.md: Tabify assembly output.
40894 2015-01-09  Anthony Green  <green@moxielogic.com>
40896         * config/moxie/moxie.md (CC_REG): Correct register definition.
40898 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
40900         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40901         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
40902         of log files.
40904 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40906         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40908 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
40909             Jakub Jelinek  <jakub@redhat.com>
40911         PR middle-end/64412
40912         * lto-streamer.h (lto_stream_offload_p): New declaration.
40913         * lto-streamer.c (lto_stream_offload_p): New variable.
40914         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40915         at the same time as section_name_prefix.
40916         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40917         if lto_stream_offload_p.
40918         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40919         stream TREE_TARGET_OPTION if lto_stream_offload_p.
40920         (write_ts_function_decl_tree_pointers): Don't
40921         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40922         * tree-streamer-in.c (unpack_value_fields): Don't stream
40923         TREE_TARGET_OPTION in if ACCEL_COMPILER.
40924         (lto_input_ts_function_decl_tree_pointers): Don't stream
40925         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40926         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40927         instead of section_name_prefix string comparisons.
40929 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
40931         PR rtl-optimization/64536
40932         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40933         tablejumps.
40935 2015-01-09  Michael Collison  <michael.collison@linaro.org>
40937         PR tree-optimization/64322
40938         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40939         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40941 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40943         PR rtl-optimization/64539
40944         * regcprop.c (kill_clobbered_values): Factor out of ...
40945         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
40946         instead of note_stores with kill_clobbered_value.
40948 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40950          * ginclude/unwind-arm-common.h: Revert previous commit.
40952 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40954         * config.gcc (arm*-*-freebsd*): New configuration.
40955         * config/arm/freebsd.h: New file.
40956         * config.host: Add extra components for arm*-*-freebsd*.
40957         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40958         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40960 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40962         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40963         for -mcpu=e6500.
40964         * config/rs6000/t-rtems: Add e6500 multilibs.
40966 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40968         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40969         MPC8540.
40971 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40973         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40974         MULTILIB_EXCEPTIONS.
40976 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40978         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40979         MULTILIB_EXCEPTIONS.
40981 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40983         * config/arm/t-rtems-eabi: Rename to...
40984         * config/arm/t-rtems: ...this.
40985         * config/arm/rtems-eabi.h: Rename to...
40986         * config/arm/rtems.h: ...this.
40987         * config.gcc (arm*-*-rtems*): Reflect changes above.
40989 2015-01-09  Richard Biener  <rguenther@suse.de>
40991         PR tree-optimization/64410
40992         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40993         on the LHS.
40994         (execute_update_addresses_taken): Deal with that.
40995         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40996         loads/stores for complex variables.
40998 2015-01-09  Martin Liska  <mliska@suse.cz>
41000         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41001         name comparison.
41002         (func_checker::compare_memory_operand): New function.
41003         (func_checker::compare_operand): Split case to newly
41004         added functions.
41005         (func_checker::compare_cst_or_decl): New function.
41006         (func_checker::compare_gimple_call): Identify
41007         memory operands.
41008         (func_checker::compare_gimple_assign): Likewise.
41009         * ipa-icf-gimple.h: New function.
41011 2015-01-09  Martin Liska  <mliska@suse.cz>
41013         PR ipa/64503
41014         * sreal.c (sreal::dump): Change unsigned format to signed for
41015         m_exp value.
41016         (sreal::to_double): Replace exp2 with scalbln.
41018 2015-01-09  Martin Liska  <mliska@suse.cz>
41020         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41021         * ipa-icf.c (sem_function::equals_private): Add support for target and
41022         (sem_item_optimizer::merge_classes): Remove redundant function
41023         optimization flags comparison.
41024         * tree.h (target_opts_for_fn): New function.
41026 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41028         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41030 2015-01-09  Kito Cheng  <kito@0xlab.org>
41032         PR rtl-optimization/64348
41033         * lra-constraints.c (split_reg): Fix caller-save store/restore
41034         instruction generation.
41036 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
41038         PR gcov-profile/61790
41039         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41040         long long.  Fallback to int64_t if host doesn't have long long and
41041         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
41043 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41045         PR tree-optimization/63989
41046         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41047         from 1000 to 10000.
41048         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41049         (get_stridx): If we don't have a record for certain SSA_NAME,
41050         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41051         constant offset, call get_stridx_plus_constant.
41052         (get_stridx_plus_constant): New function.
41053         (zero_length_string): Don't use get_stridx here.
41055         PR target/55023
41056         PR middle-end/64388
41057         * dse.c (struct insn_info): Mention frame_read set also
41058         before reload for tail calls on some targets.
41059         (scan_insn): Revert 2014-12-22 change.  Set frame_read
41060         also before reload for tail calls if
41061         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
41062         instead of add_non_frame_wild_read for non-const/memset
41063         tail calls after reload.
41065 2015-01-08  Jason Merrill  <jason@redhat.com>
41067         * ubsan.c (do_ubsan_in_current_function): New.
41068         (pass_ubsan::gate): Use it.
41069         * ubsan.h: Declare it.
41070         * convert.c (convert_to_integer): Use it.
41072 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41074         PR target/64338
41075         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41076         compare_code when it is unconditionally overwritten afterwards.
41077         Use ix86_reverse_condition instead of reverse_condition.  Don't
41078         change code if *reverse_condition* returned UNKNOWN and don't
41079         swap ct/cf and negate diff in that case.
41081 2015-01-08  Mike Stump  <mikestump@comcast.net>
41083         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41084         (pass_tsan_O0::gate): Likewise.
41085         * extend.texi (Function Attributes): Add no_sanitize_thread
41086         documentation.
41088 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
41090         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41091         for registering builtins.
41092         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41093         add -fopenmp to the argv_obstack used when invoking
41094         compile_for_target.
41096         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41097         add "-m32" or "-m64" to argv_obstack.
41098         (generate_host_descr_file): Likewise, when invoking host_compiler.
41099         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41100         ld.
41102 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41104         * config/sh/sh-mem.cc: Use constant as second operand when emitting
41105         tstsi_t insns.
41107 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41109         PR target/55212
41110         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41111         constant load if constant operand fits into I08.
41113 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41115         PR sanitizer/64336
41116         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41117         and TREE_THIS_VOLATILE for MEM_REFs.
41118         (build5_stat): Fix up initialization of TREE_READONLY and
41119         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41121 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
41123         PR target/64533
41124         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41125         of r for the second alternative of the destination operand.
41127 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
41129         PR target/36557
41130         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41132 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41134         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41135         keywords.
41136         ([-fivar-visibility], [-fvisibility]): Likewise.
41138 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41140         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41141         the file where @code, @command, etc is more appropriate.
41143 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
41145         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41146         of -mrecip= documentation.
41148 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
41150         PR target/64505
41151         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41152         correct reload handler if -m32 -mpowerpc64 is used.
41154 2015-01-06  Tom de Vries  <tom@codesourcery.com>
41156         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41158 2015-01-08  Christian Bruel  <christian.bruel@st.com>
41160         PR target/64507
41161         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41163 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41165         PR tree-optimization/63259
41166         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41167         if optab exists for 16bit byteswap.
41169 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
41171         * opts.c (common_handle_option): Add support for
41172         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41173         * doc/invoke.texi: Document -fno-sanitize=all,
41174         -f{,no-}sanitize-recover=all.  Document that
41175         -fsanitize=float-cast-overflow is not enabled
41176         by -fsanitize=undefined.  Fix up documentation
41177         of -f{,no-}sanitize-recover.
41179 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
41181         * config.gcc: Add Visium support.
41182         * configure.ac: Likewise.
41183         * configure: Regenerate.
41184         * doc/extend.texi (interrupt attribute): Add Visium.
41185         * doc/invoke.texi: Document Visium options.
41186         * doc/install.texi: Document Visium target.
41187         * doc/md.texi: Document Visium constraints.
41188         * common/config/visium: New directory.
41189         * config/visium: Likewise.
41191 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41193         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41194         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41196 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41198         * combine.c (combine_validate_cost): Do not count the cost of a
41199         split I2 twice.  Do not display it twice in the dump, either.
41201 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41203         Revert parts of r219199.
41204         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41205         <inttypes.h>.
41206         ([-Wtraditional]): Restore markup on <limits.h>.
41208 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
41210         PR c++/31397
41211         * doc/invoke.texi: Document -Wsuggest-override.
41213 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
41215         PR rtl-optimization/64287
41216         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41217         (process_options): Disable flag_ipa_ra if profiling.
41219 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
41221         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41223 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
41225         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41226         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41227         put under #if TARGET_LOOPS guard.
41229 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
41231         * config/i386/i386.c (output_387_binary_op): Use std::swap.
41233 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
41235         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41236         * rtl.h (refers_to_regno_p): Add overload.
41237         * cse.c: Use it.
41238         * bt-load.c: Likewise.
41239         * combine.c: Likewise.
41240         * df-scan.c: Likewise.
41241         * sched-deps.c: Likewise.
41242         * config/s390/s390.c: Likewise.
41243         * config/m32r/m32r.c: Likewise.
41244         * config/rs6000/spe.md: Likewise.
41245         * config/rs6000/rs6000.c: Likewise.
41246         * config/pa/pa.c: Likewise.
41247         * config/stormy16/stormy16.c: Likewise.
41248         * config/cris/cris.c: Likewise.
41249         * config/arc/arc.md: Likewise.
41250         * config/arc/arc.c: Likewise.
41251         * config/sh/sh.md: Likewise.
41252         * config/sh/sh.c: Likewise.
41253         * config/frv/frv.c: Likewise.
41255 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41257         PR sanitizer/64265
41258         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41259         call as cleanup of the whole body.
41260         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41261         * tsan.c (replace_func_exit): New function.
41262         (instrument_func_exit): Moved earlier.
41263         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41264         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41265         been found.
41266         (tsan_pass): Don't call instrument_func_exit.
41267         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41268         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41269         inlining.
41271         PR sanitizer/64344
41272         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41273         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41274         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
41275         if the result is integer_zerop, return NULL_TREE.
41276         * convert.c (convert_to_integer): Pass expr as ARG.
41278         PR tree-optimization/64465
41279         * tree-inline.c (redirect_all_calls): During inlining
41280         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41281         changed the stmt to a non-throwing call.
41283 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41285         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41286         etc markup throughout the file.
41288 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41290         Enable experimental TSAN support for Ada.
41291         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41293 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41295         PR tree-optimization/64494
41296         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41297         clear SSA_NAME_ANTI_RANGE_P flag.
41299 2015-01-05  Marek Polacek  <polacek@redhat.com>
41301         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41303 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41305         Update copyright years.
41307         * gcc.c (process_command): Update copyright notice dates.
41308         * gcov-dump.c: Ditto.
41309         * gcov.c: Ditto.
41310         * doc/cpp.texi: Bump @copying's copyright year.
41311         * doc/cppinternals.texi: Ditto.
41312         * doc/gcc.texi: Ditto.
41313         * doc/gccint.texi: Ditto.
41314         * doc/gcov.texi: Ditto.
41315         * doc/install.texi: Ditto.
41316         * doc/invoke.texi: Ditto.
41318         * auto-profile.c, auto-profile.h: Fix up Copyright line.
41320 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
41322         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41323         verb tense, etc.
41324         ([-fvtable-verify], [-fvtv-debug]): Likewise.
41325         ([-Wabi]): Likewise.
41326         ([-fmessage-length]): Likewise.
41327         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41328         ([-Wno-discarded-qualifiers]): Likewise.
41329         ([-Wnodiscarded-array-qualifiers]): Likewise.
41330         ([-Wno-virtual-move-assign]): Likewise.
41331         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41332         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41333         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41334         ([-fsanitize-undefined-trap-on-error]): Likewise.
41335         ([-floop-interchange]): Likewise.
41336         ([-ftree-coalesce-inlined-vars]): Likewise.
41337         ([-fvect-cost-model]): Likewise.
41338         ([-flto]): Likewise.
41339         ([--param]): Likewise.
41340         (Spec Files): Likewise.
41341         ([-mstrict-align]): Likewise.
41342         ([-mfix-cortex-a53-835769]): Likewise.
41343         ([-march], [-mtune]): Likewise.
41344         ([-mpic-register]): Likewise.
41345         ([-munaligned-access]): Likewise.
41346         ([-msp8]): Likewise.
41347         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41348         (AVR Built-in Macros): Likewise.
41349         ([-mpreferred-stack-boundary]): Likewise.
41350         ([-mtune-crtl]): Likewise.
41351         ([-mashf]): Likewise.
41352         ([-mmcu=]): Likewise.
41353         ([-minrt]): Likewise.
41354         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41355         ([-mupper-regs]): Likewise.
41356         ([-matomic-model]): Likewise.
41357         ([-mdiv]): Likewise.
41358         ([-mzdcbranch]): Likewise.
41359         ([-mdisable-callt]): Likewise.
41360         ([-msoft-float]): Likewise.
41361         ([-m8byte-align]): Likewise.
41362         ([-fstack-reuse]): Likewise.
41364 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41366         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41367         Fix markup, light copy-editing.
41368         ([-fauto-profile]): Rewrite to fix formatting and content
41369         problems.
41371 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41373         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41374         Copy-edit description.
41375         ([-fisolate-erroneous-paths-attribute]): Likewise.
41376         * common.opt (fisolate-erroneous-paths-dereference):
41377         Copy-edit description.
41378         (fisolate-erroneous-paths-attribute): Likewise.
41380 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41382         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41383         tidy grammar.
41385 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41387         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41388         ([-fvtv-debug]): Likewise.
41389         ([-Wc++-compat]): Likewise.
41390         ([-Wc++11-compat]): Likewise.
41391         ([-Wc++14-compat]): Likewise.
41392         ([-Wno-sized-deallocation]): Likewise.
41393         ([-femit-class-debug-always]): Likewise.
41394         ([-femit-struct-debug-detailed]): Likewise.
41395         ([-fno-keep-inline-dllexport]): Likewise.
41396         ([-fira-algorithm]): Likewise.
41397         ([-fira-region]): Likewise.
41398         ([-flra-remat]): Likewise.
41399         ([-fipa-ra]): Likewise.
41400         ([-fhoist-adjacent-loads]): Likewise.
41401         ([-fisolate-erroneous-paths-dereference]): Likewise.
41402         ([-fisolate-erroneous-paths-attribute]): Likewise.
41403         ([-ftree-switch-conversion]): Likewise.
41404         ([-ftree-tail-merge]): Likewise.
41405         ([-ftree-loop-if-convert]): Likewise.
41406         ([-ftree-loop-if-convert-stores]): Likewise.
41407         ([-ftree-loop-distribution]): Likewise.
41408         ([-ftree-loop-distribute-patterns]): Likewise.
41409         ([-flto-compression-level]): Likewise.
41410         ([-flto-report]): Likewise.
41411         ([-flto-report-wpa]): Likewise.
41412         ([-fuse-linker-plugin]): Likewise.
41413         ([-mfix-cortex-a53-835769]): Likewise.
41414         ([-mno-fix-cortex-a53-835769]): Likewise.
41415         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41416         explicit listing; add a note to the discussion indicating they
41417         exist.  Reorder table to group similar options.  Add missing
41418         @opindex entries.  Add @need commands throughout the table to
41419         allow it to be split across multiple pages.
41420         ([-m8bit-idiv]): Fix @opindex.
41421         ([-mavx256-split-unaligned-load]): Likewise.
41422         ([-mavx256-split-unaligned-store]): Likewise.
41423         ([-mstack-protector-guard]): Likewise.
41424         ([-mcpu=]): Likewise.
41425         ([-mcpu]): Likewise.
41426         ([-mpointer-size=]): Likewise.
41428 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
41430         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41431         instead of `m' constraint.  Likewise for unnamed movb comparison
41432         patterns using reg_before_reload_operand predicate.
41433         * config/pa/predicates.md (reg_before_reload_operand): Tighten
41434         predicate to reject register index and LO_SUM DLT memory forms
41435         after reload.
41437 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41439         * doc/invoke.texi (Option Summary): Fix spelling of
41440         -fdevirtualize-at-ltrans.
41441         ([-fdevirtualize]): Fix markup.
41442         ([-fdevirtualize-speculatively]): Fix typo.
41443         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
41444         implementor-speaky.
41445         * common.opt (fdevirtualize-at-ltrans): Likewise.
41446         * ipa-devirt.c: Fix typos in comments throughout the file.
41447         (ipa_devirt): Fix typos in format strings for dump output.
41449 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41451         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41452         discussion of defaults, light copy-editing.
41454 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41456         * tsan.c (instrument_expr): corrected previous checkin.
41458 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41460         Instrument bit field and unaligned accesses for TSAN.
41461         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41462         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41463         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41464         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41465         unaligned memory regions.
41467 2015-01-01  Anthony Green  <green@moxielogic.com>
41469         * config/moxie/predicates.md (moxie_general_movsrc_operand):
41470         Restrict move source register offsets to 16 bits.
41472 Copyright (C) 2015 Free Software Foundation, Inc.
41474 Copying and distribution of this file, with or without modification,
41475 are permitted in any medium without royalty provided the copyright
41476 notice and this notice are preserved.