New obstack_next_free is not an lvalue
[official-gcc.git] / gcc / ChangeLog
blobdfb83509b1a66aee8aea340df858f8e886eb5dff
1 2015-11-09  Alan Modra  <amodra@gmail.com>
3         * gensupport.c (add_mnemonic_string): Make len param a size_t.
4         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
5         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
6         return value.
8 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
10         PR rtl-optimization/68182
11         * gcc/bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
12         branch with only one successor just like unconditional branches.
14 2015-11-08  Jeff Law  <jeff@redhat.com>
16         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
17         non-FSM path has no edges marked with EDGE_DFS_BACK.
18         (ssa_redirect_edges): No longer call mark_loop_for_removal.
19         (thread_single_edge, def_split_header_continue_p): Remove.
20         (bb_ends_with_multiway_branch): Likewise.
21         (thread_through_loop_header): Remove cases of threading from
22         latch through the header.  Simplify knowing we won't thread
23         the latch.
24         (thread_through_all_blocks): Simplify knowing that only the FSM
25         threader needs to handle backedges.
27 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
29         * doc/extend.texi (type attributes): Document scalar_storage_order.
30         (Structure-Packing Pragmas): Rename into...
31         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
32         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
33         (Warnings): Document -Wno-scalar-storage-order.
34         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
35         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
36         extract_bit_field and store_bit_field.
37         (initialize_argument_information): Adjust call to store_expr.
38         (load_register_parameters): Adjust call to extract_bit_field.
39         * expmed.c (check_reverse_storage_order_support): New function.
40         (check_reverse_float_storage_order_support): Likewise.
41         (flip_storage_order): Likewise.
42         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
43         of the value if it is true.  Pass REVERSE to recursive call after
44         adjusting the target offset.
45         Do not use extraction or movstrict instruction if REVERSE is true.
46         Pass REVERSE to store_fixed_bit_field.
47         (store_bit_field): Add REVERSE parameter and pass to it to above.
48         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
49         store_split_bit_field and store_fixed_bit_field_1.
50         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
51         order of the value if it is true and adjust the target offset.
52         (store_split_bit_field): Add REVERSE parameter and pass it to
53         store_fixed_bit_field.  Adjust the target offset if it is true.
54         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
55         of the value if it is true.  Pass REVERSE to recursive call after
56         adjusting the target offset.
57         Do not use extraction or subreg instruction if REVERSE is true.
58         Pass REVERSE to extract_fixed_bit_field.
59         (extract_bit_field): Add REVERSE parameter and pass to it to above.
60         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
61         extract_split_bit_field and extract_fixed_bit_field_1.
62         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
63         order of the value if it is true and adjust the target offset.
64         (extract_split_bit_field): Add REVERSE parameter and pass it to
65         extract_fixed_bit_field.  Adjust the target offset if it is true.
66         * expmed.h (flip_storage_order): Declare.
67         (store_bit_field): Adjust prototype.
68         (extract_bit_field): Likewise.
69         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
70         (emit_group_store): Adjust call to store_bit_field.
71         (copy_blkmode_from_reg): Likewise.
72         (copy_blkmode_to_reg): Likewise.
73         (write_complex_part): Likewise.
74         (read_complex_part): Likewise.
75         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
76         that it isn't true if the target is a register.
77         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
78         and flip the storage order of the value.
79         <BIT_IOR_EXPR>: Flip the storage order of the value.
80         (get_bit_range): Adjust call to get_inner_reference.
81         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
82         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
83         with reverse storage order.
84         (store_expr_with_bounds): Add REVERSE parameter and pass it to
85         recursive calls and call to store_bit_field.  Force the value into a
86         register if it is true and then flip the storage order of the value.
87         (store_expr): Add REVERSE parameter and pass it to above.
88         (categorize_ctor_elements_1): Adjust call to
89         initializer_constant_valid_p.
90         (store_constructor_field): Add REVERSE parameter and pass it to
91         recursive calls and call to store_field.
92         (store_constructor): Add REVERSE parameter and pass it to calls to
93         store_constructor_field and store_expr.  Set it to true for an
94         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
95         (store_field): Add REVERSE parameter and pass it to recursive calls
96         and calls to store_expr and store_bit_field.  Temporarily flip the
97         storage order of the value with record type and integral mode and
98         adjust the shift if it is true.
99         (get_inner_reference): Add PREVERSEP parameter and set it to true
100         upon encoutering a reference with reverse storage order.
101         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
102         (expand_constructor): Adjust call to store_constructor.
103         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
104         of the union type to store_expr in the MEM case and assert that it
105         isn't set in the REG case.  Adjust call to store_field.
106         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
107         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
108         get_inner_reference and extract_bit_field. Temporarily flip the
109         storage order of the value with record type and integral mode and
110         adjust the shift if it is true.  Flip the storage order of the value
111         at the end if it is true.
112         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
113         get_inner_reference.  Do not fetch an inner reference if it is true.
114         * expr.h (store_expr_with_bounds): Ajust prototype.
115         (store_expr): Likewise.
116         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
117         REF_REVERSE_STORAGE_ORDER on the reference according to it.
118         (optimize_bit_field_compare): Deal with reverse storage order.
119         Adjust calls to get_inner_reference and make_bit_field_ref.
120         (decode_field_reference): Add PREVERSEP parameter and adjust call to
121         get_inner_reference.
122         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
123         to decode_field_reference and make_bit_field_ref.
124         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
125         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
126         (fold_comparison): Adjust call to get_inner_reference.
127         (split_address_to_core_and_offset): Adjust call to
128         get_inner_reference.
129         * gimple-expr.c (useless_type_conversion_p): Return false for array
130         types with different TYPE_REVERSE_STORAGE_ORDER flag.
131         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
132         REF_REVERSE_STORAGE_ORDER flag.
133         * lto-streamer-out.c (hash_tree): Deal with
134         TYPE_REVERSE_STORAGE_ORDER.
135         * output.h (assemble_real): Adjust prototype.
136         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
137         * stor-layout.c (finish_record_layout): Propagate the
138         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
139         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
140         (TYPE_SATURATING): Adjust.
141         (REF_REVERSE_STORAGE_ORDER): Document.
142         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
143         set it to true upon encoutering a reference with reverse storage
144         order.
145         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
146         * tree-inline.c (remap_gimple_op_r): Propagate the
147         REF_REVERSE_STORAGE_ORDER flag.
148         (copy_tree_body_r): Likewise.
149         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
150         store_expr.
151         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
152         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
153         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
154         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
155         REF_REVERSE_STORAGE_ORDER flag.
156         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
157         (gimple_canonical_types_compatible_p): Likewise.
158         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
159         (TYPE_SATURATING): Adjust.
160         (REF_REVERSE_STORAGE_ORDER): New flag.
161         (reverse_storage_order_for_component_p): New inline predicate.
162         (storage_order_barrier_p): Likewise.
163         (get_inner_reference): Adjust prototype.
164         * varasm.c: Include expmed.h.
165         (assemble_variable_contents): Adjust call to output_constant.
166         (assemble_real): Add REVERSE parameter.  Flip the storage
167         order of the value if REVERSE is true.
168         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
169         (assemble_constant_contents): Adjust call to output_constant.
170         (output_constant_pool_2): Adjust call to assemble_real.
171         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
172         TYPE_REVERSE_STORAGE_ORDER.
173         (initializer_constant_valid_p): Add REVERSE parameter.
174         (output_constant): Add REVERSE parameter.
175         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
176         <REAL_TYPE>: Adjust call to assemble_real.
177         <COMPLEX_TYPE>: Pass it to recursive calls.
178         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
179         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
180         (struct oc_local_state): Add REVERSE field.
181         (output_constructor_array_range): Adjust calls to output_constant.
182         (output_constructor_regular_field): Likewise.
183         (output_constructor_bitfield): Adjust call to output_constructor.
184         Flip the storage order of the value if REVERSE is true.
185         (output_constructor): Add REVERSE parameter.  Set it to true for an
186         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
187         output_constructor_bitfield.
188         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
189         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
190         * builtins.c (get_object_alignment_2): Likewise.
191         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
192         and get_ref_base_and_extent.
193         * dbxout.c (dbxout_expand_expr): Likewise.
194         * dwarf2out.c (add_var_loc_to_decl): Likewise.
195         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
196         (loc_list_from_tree): Likewise.
197         (fortran_common): Likewise.
198         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
199         get_ref_base_and_extent.
200         (get_base_constructor): Likewise.
201         (fold_const_aggregate_ref_1): Likewise.
202         * gimple-laddress.c (pass_laddress::execute): Adjust call to
203         get_inner_reference.
204         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
205         get_inner_reference and bail out on reverse storage order.
206         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
207         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
208         build_ref_for_offset.
209         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
210         get_ref_base_and_extent.
211         (ipa_polymorphic_call_context): Likewise.
212         (extr_type_from_vtbl_ptr_store): Likewise.
213         (check_stmt_for_type_change): Likewise.
214         (get_dynamic_type): Likewise.
215         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
216         get_ref_base_and_extent.
217         (compute_complex_assign_jump_func): Likewise.
218         (get_ancestor_addr_info): Likewise.
219         (compute_known_type_jump_func): Likewise.
220         (determine_known_aggregate_parts): Likewise.
221         (ipa_get_adjustment_candidate): Likewise.
222         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
223         MEM_REF.
224         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
225         (build_ref_for_offset): Adjust prototype.
226         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
227         get_inner_reference.
228         * tree-affine.c (tree_to_aff_combination): Adjust call to
229         get_inner_reference.
230         (get_inner_reference_aff): Likewise.
231         * tree-data-ref.c (split_constant_offset_1): Likewise.
232         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
233         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
234         get_inner_reference.
235         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
236         (dump_access): Print new fields.
237         (create_access): Adjust call to get_ref_base_and_extent and set the
238         REVERSE flag according to the result.
239         (completely_scalarize_record): Set the REVERSE flag.
240         (scalarize_elem): Add REVERSE parameter.
241         (build_access_from_expr_1): Preserve storage order barriers.
242         (build_accesses_from_assign): Likewise.
243         (build_ref_for_offset): Add REVERSE parameter and set the
244         REF_REVERSE_STORAGE_ORDER flag accordingly.
245         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
246         the REF_REVERSE_STORAGE_ORDER flag if there are components.
247         (analyze_access_subtree): Likewise.
248         (create_artificial_child_access): Set the REVERSE flag.
249         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
250         (turn_representatives_into_adjustments): Propagate REVERSE flag.
251         (ipa_sra_check_caller): Adjust call to get_inner_reference.
252         * tree-ssa-alias.c (ao_ref_base): Adjust call to
253         get_ref_base_and_extent.
254         (aliasing_component_refs_p): Likewise.
255         (stmt_kills_ref_p_1): Likewise.
256         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
257         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
258         Return true if reverse storage order.
259         <BIT_FIELD_REF>: Likewise.
260         <COMPONENT_REF>: Likewise.
261         <ARRAY_REF>: Likewise.
262         <ARRAY_RANGE_REF>: Likewise.
263         (split_address_cost): Likewise.  Bail out if reverse storage order.
264         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
265         get_inner_reference.  Bail out if reverse storage order.
266         (bswap_replace): Adjust call to get_inner_reference.
267         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
268         the REF_REVERSE_STORAGE_ORDER flag.
269         <BIT_FIELD_REF>: Likewise.
270         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
271         barriers.
272         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
273         to the REF_REVERSE_STORAGE_ORDER flag.
274         <BIT_FIELD_REF>: Likewise.
275         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
276         (contains_storage_order_barrier_p): New predicate.
277         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
278         Punt on storage order barriers if necessary.
279         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
280         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
281         call to get_ref_base_and_extent.
282         (do_structure_copy): Likewise.
283         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
284         get_inner_reference.
285         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
286         order.
287         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
288         * ubsan.c (instrument_bool_enum_load): Likewise.
289         (instrument_object_size): Likewise.
290         * var-tracking.c (track_expr_p): Adjust call to
291         get_ref_base_and_extent
292         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
293         get_inner_reference.
294         * config/s390/s390.c (s390_expand_atomic): Adjust call to
295         store_bit_field.
296         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
297         extract_bit_field.
298         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
300 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
302         * config/sparc/sparc.opt (mfix-at697f): Add final period.
304 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
306         PR rtl-optimization/67864
307         * common/config/i386/i386-common.c (ix86_option_optimization_table)
308         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
309         at -Os and up.
311 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
313         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
314         internal functions.
316 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
318         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
319         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
321 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
323         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
324         * internal-fn.c: Don't undef it here.
325         * tree-core.h: Likewise.
327 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
329         * builtins.c (fold_builtin_nan): Delete.
330         (fold_builtin_memcmp): Remove case where both arguments are constant.
331         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
332         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
333         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
334         * fold-const-call.c: Include fold-const.h.
335         (host_size_t_cst_p): New function.
336         (build_cmp_result, fold_const_builtin_nan): Likewise.
337         (fold_const_call_1): New function, split out from...
338         (fold_const_call): ...here (for all three interfaces).  Handle
339         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
341 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
343         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
344         (fold_builtin_1): Don't call them.
345         * fold-const-call.c: Include tm.h.
346         (fold_const_call_ss): New variant for integer-to-integer folds.
347         (fold_const_call): Call it.
349 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
351         * builtins.c (fold_builtin_classify): Move constant cases to...
352         * fold-const-call.c (fold_const_call_ss): ...here.
354 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
356         * builtins.h (c_getstr): Move to...
357         * fold-const.h (c_getstr): ...here.
358         * builtins.c (c_getstr): Move to...
359         * fold-const.c (c_getstr): ...here.
361 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
363         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
364         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
366 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
368         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
369         the dominance info; free it if we can't.
370         (pass_call_cdce::execute): Don't free the dominance info here.
372 2015-11-06  Jeff Law <jeff@redhat.com>
374         * tree-ssa-threadedge.c (dummy_simplify): Remove.
375         (thread_around_empty_blocks): Remove backedge_seen_p argument.
376         If we thread to a backedge, then return false.  Update recursive
377         call to eliminate backedge_seen_p argument.
378         (thread_through_normal_block): Remove backedge_seen_p argument.
379         Remove backedge_seen_p argument from calls to
380         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
381         If we thread to a backedge, then return 0.
382         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
383         pass it to thread_through_normal_block or thread_through_empty_blocks.
384         For joiner handling, if we see a backedge, do not try normal
385         threading.
387 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
389         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
390         * graphite-poly.c (new_scop): Initialize original_schedule.
391         (free_scop): Free original_schedule.
392         * graphite-poly.h (struct scop): Add field original_schedule.
393         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
394         (build_poly_scop): Call build_scop_original_schedule.
396 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
398         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
399         (build_pbb_minimal_scattering_polyhedrons): New.
400         (build_scop_scattering): Remove.
401         (build_scop_minimal_scattering): New.
402         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
403         (build_poly_scop): Call build_scop_minimal_scattering.
405 2015-11-06  Jeff Law <jeff@redhat.com>
407         * cfg-flags.def (IGNORE): New edge flag.
408         * tree-vrp.c (identify_jump_threads): Mark and clear edges
409         scheduled for removal with EDGE_IGNORE around call into
410         jump threader.  Do no thread across edges with EDGE_IGNORE,
411         but do allow threading across those with EDGE_DFS_BACK.
413 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
415         * doc/md.texi (multi-alternative constraints): Don't document
416         alternatives inherently tied to reload for the user documentation.
418 2015-11-06  Michael Collison  <michael.collison@linaro.org
419             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
421         Revert:
422         2015-08-01  Michael Collison  <michael.collison@linaro.org
423                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
425         * config/arm/arm.md (*arm_smin_cmp): New pattern.
426         (*arm_umin_cmp): Likewise.
428 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
430         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
431         wording.
432         * omp-low.c (check_omp_nesting_restrictions): Update for the
433         various new OpenMP 4.5 nesting restrictions, clarified
434         nesting glossary, closely nested region relationship clarified
435         to mean explicit or implicit parallel regions (target/teams),
436         use %</%> or %qs where appropriate.
438 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
439             Sebastian Pop  <s.pop@samsung.com>
441         * graphite-scop-detection.c (loop_is_valid_scop): Call
442         optimize_loop_nest_for_speed_p.
444 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
445             Sebastian Pop  <s.pop@samsung.com>
447         * graphite-optimize-isl.c (optimize_isl): Call
448         isl_options_set_schedule_maximize_band_depth.
450 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
451             Sebastian Pop  <s.pop@samsung.com>
453         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
454         and exit edges should not be a part of irreducible loop.
455         (scop_detection::can_represent_loop_1): Loops should not be
456         irreducible.
457         (scop_detection::harmful_stmt_in_region): All the basic block
458         should belong to reducible loops.
460 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
462         * config/aarch64/aarch64-simd-builtins.def: Update builtins
463         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
464         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
465         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
466         (aarch64_tbx4v8qi): Rename to...
467         aarch64_tbx4<mode>): ... this.
468         (aarch64_qtbl3<mode>): New pattern.
469         (aarch64_qtbx3<mode>): New pattern.
470         (aarch64_qtbl4<mode>): New pattern.
471         (aarch64_qtbx4<mode>): New pattern.
472         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
473         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
474         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
475         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
476         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
477         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
478         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
479         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
480         functions.
482 2015-11-06  Mike Stump  <mikestump@comcast.net>
484         PR debug/66728
485         * dwarf2out.c (get_full_len): Return a value based upon the actual
486         precision needed for the value.
487         (add_const_value_attribute): Use a maximal wide-int for
488         CONST_WIDE_INTs, not VOIDmode.
489         (output_die): Don't ever output NULL with printf.
491         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
492         BLKmode nor VOIDmode values.
494 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
496         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
497         and "range2".
498         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
499         * diagnostic-core.h (warning_at_rich_loc): New declaration.
500         (error_at_rich_loc): New declaration.
501         (permerror_at_rich_loc): New declaration.
502         (inform_at_rich_loc): New declaration.
503         * diagnostic-show-locus.c (adjust_line): Delete.
504         (struct point_state): New struct.
505         (class colorizer): New class.
506         (class layout_point): New class.
507         (class layout_range): New class.
508         (struct line_bounds): New.
509         (class layout): New class.
510         (colorizer::colorizer): New ctor.
511         (colorizer::~colorizer): New dtor.
512         (layout::layout): New ctor.
513         (layout::print_source_line): New method.
514         (layout::print_annotation_line): New method.
515         (layout::get_state_at_point): New method.
516         (layout::get_x_bound_for_row): New method.
517         (diagnostic_show_locus): Reimplement in terms of class layout.
518         (diagnostic_print_caret_line): Delete.
519         * diagnostic.c (diagnostic_initialize): Replace
520         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
521         (diagnostic_set_info_translated): Convert param from location_t
522         to rich_location *.  Eliminate calls to set_location on the
523         message in favor of storing the rich_location ptr there.
524         (diagnostic_set_info): Convert param from location_t to
525         rich_location *.
526         (diagnostic_build_prefix): Break out array into...
527         (diagnostic_kind_color): New variable.
528         (diagnostic_get_color_for_kind): New function.
529         (diagnostic_report_diagnostic): Colorize the option_text
530         using the color for the severity.
531         (diagnostic_append_note): Update for change in signature of
532         diagnostic_set_info.
533         (diagnostic_append_note_at_rich_loc): New function.
534         (emit_diagnostic): Update for change in signature of
535         diagnostic_set_info.
536         (inform): Likewise.
537         (inform_at_rich_loc): New function.
538         (inform_n): Update for change in signature of diagnostic_set_info.
539         (warning): Likewise.
540         (warning_at): Likewise.
541         (warning_at_rich_loc): New function.
542         (warning_n): Update for change in signature of diagnostic_set_info.
543         (pedwarn): Likewise.
544         (permerror): Likewise.
545         (permerror_at_rich_loc): New function.
546         (error): Update for change in signature of diagnostic_set_info.
547         (error_n): Likewise.
548         (error_at): Likewise.
549         (error_at_rich_loc): New function.
550         (sorry): Update for change in signature of diagnostic_set_info.
551         (fatal_error): Likewise.
552         (internal_error): Likewise.
553         (internal_error_no_backtrace): Likewise.
554         (source_range::debug): New function.
555         * diagnostic.h (struct diagnostic_info): Eliminate field
556         "override_column".  Add field "richloc".
557         (struct diagnostic_context): Add field "colorize_source_p".
558         (diagnostic_override_column): Delete.
559         (diagnostic_set_info): Convert param from location_t to
560         rich_location *.
561         (diagnostic_set_info_translated): Likewise.
562         (diagnostic_append_note_at_rich_loc): New function.
563         (diagnostic_num_locations): New function.
564         (diagnostic_expand_location): Get the location from the
565         rich_location.
566         (diagnostic_print_caret_line): Delete.
567         (diagnostic_get_color_for_kind): New declaration.
568         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
569         (error_cb): Update for change in signature of "error" callback.
570         (fatal_at): Likewise.
571         (warning_at): Likewise.
572         * input.c (linemap_client_expand_location_to_spelling_point): New.
573         * pretty-print.c (text_info::set_range): New method.
574         (text_info::get_location): New method.
575         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
576         (struct text_info): Eliminate "locations" array in favor of
577         "m_richloc", a rich_location *.
578         (textinfo::set_location): Add a "caret_p" param, and reimplement
579         in terms of a call to set_range.
580         (textinfo::get_location): Eliminate inline implementation in favor of
581         an out-of-line reimplementation.
582         (textinfo::set_range): New method.
583         * rtl-error.c (diagnostic_for_asm): Update for change in signature
584         of diagnostic_set_info.
585         * tree-diagnostic.c (default_tree_printer): Update for new
586         "caret_p" param for textinfo::set_location.
587         * tree-pretty-print.c (percent_K_format): Likewise.
589 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
591         Properly apply.
592         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
593         * config/aarch64/aarch64.c
594         (aarch64_can_use_per_function_literal_pools_p): New.
595         (aarch64_use_blocks_for_constant_p): Adjust declaration
596         and use aarch64_can_use_function_literal_pools_p.
597         (aarch64_select_rtx_section): Update.
599 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
601         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
602         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
603         (arm_output_multireg_pop): Likewise.
604         (output_move_double):  Likewise.
605         (output_move_quad):  Likewise.
606         (output_return_instruction): Likewise.
607         (arm_print_operand): Remove support for %( and %. print modifiers.
608         (arm_output_shift): Make unified asm.
609         (arm_declare_function_name): Likewise.
610         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
611         (ASM_APP_OFF): Adjust.
612         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
613         (ASM_OUTPUT_REG_POP): Likewise.
614         * config/arm/arm.md: Adjust uses of %., %(, %)
615         * config/arm/sync.md: Likewise.
616         * config/arm/thumb2.md: Likewise.
617         * config/arm/ldmstm.md: Regenerate.
618         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
619         * doc/invoke.texi (masm-unified-syntax): Update documentation.
621 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
623         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
625 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
627         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
628         add OEP_MATCH_SIDE_EFFECTS.
629         * fold-const.c (operand_equal_p): Update documentation; handle
630         OEP_MATCH_SIDE_EFFECTS.
631         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
632         OEP_MATCH_SIDE_EFFECTS.
634 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
635             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
637         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
638         * config/aarch64/aarch64-protos.h: Declare.
639         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
640         frsqrts.
641         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
642         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation code when
643         applicable.
644         * config/aarch64/aarch64.md: Added enum entries.
645         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
646         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common macros for
647         assembly checks.
648         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
649         frsqrts and frsqrte are not emitted.
650         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure frsqrts and
651         frsqrte are emitted.
652         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
654 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
656         PR ipa/68057
657         PR ipa/68220
658         * ipa-polymorphic-call.c
659         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
660         issue when offset is out of range.
661         (contains_type_p): Fix out of range check, clear dynamic flag.
663 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
665         * config.gcc (e6500): Fix cpu_is_64bit typo.
667 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
669         * tree-sra.c (completely_scalarize): Properly handle negative array
670         indices using offset_int.
672 2015-11-06  Richard Biener  <rguenther@suse.de>
674         * alloc-pool.h (object_allocator::allocate): Default-initialize
675         object.
677 2015-11-06  Richard Biener  <rguenther@suse.de>
679         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
680         * lra.c (init_reg_info): Truncate copy_vec instead of
681         re-allocating a new one and leaking the old.
682         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
683         bb_infos vec.
684         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
685         * postreload-gcse.c (free_mem): Free modify_mem_list and
686         canon_modify_mem_list.
688 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
690         PR tree-optimization/68145
691         * tree-vect-stmts.c (vectorizable_operation): Fix
692         determination for booleans.
694 2015-11-06  Tom de Vries  <tom@codesourcery.com>
696         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
697         cond_jump, instead of split after last nondebug insn before cond_jump.
698         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
699         returning.
701 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
703         PR target/68088
704         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
705         subregs from accumulator and make sure it's a register.
707 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
709         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
710         low part to scalar.
711         (reduc_uplus_<mode>): Remove.
712         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
713         loongson_extract_lo_<mode>.
714         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
715         reduc_smax_<mode>, reduc_smax_<mode>, use vec
716         loongson_extract_lo_<mode>.
717         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
719 2015-11-06  Richard Biener  <rguenther@suse.de>
721         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
722         members.
723         (vect_stmt_in_region_p): Declare.
724         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
725         (destroy_bb_vec_info): Likewise.
726         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
727         (vect_get_and_check_slp_defs): Likewise.
728         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
729         (vect_slp_bb): Likewise.
730         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
731         in terms of vect_stmt_in_region_p.
732         (vect_pattern_recog): Iterate over the BB region.
733         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
734         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
735         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
736         * config/i386/i386.c: Include gimple-iterator.h.
737         * config/aarch64/aarch64.c: Likewise.
739 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
741         PR rtl-optimization/67753
742         PR rtl-optimization/64164
743         * function.c (assign_parm_setup_block): Avoid allocating a
744         stack slot if we don't have an ABI-reserved one.  Emit the
745         copy to target_reg in the conversion seq if the copy from
746         entry_parm is in it too.  Don't use the conversion seq to copy
747         a PARALLEL to a REG or a CONCAT.
749 2015-11-06  Richard Biener  <rguenther@suse.de>
751         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
752         equal_keys.
754 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
755             Thomas Schwinge  <thomas@codesourcery.com>
756             James Norris  <jnorris@codesourcery.com>
759         * gimplify.c (gimplify_scan_omp_clauses): Add support for
760         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
761         (gimplify_adjust_omp_clauses): Likewise.
762         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
763         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
764         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
765         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
766         (omp_clause_code_name): Likewise.
767         (walk_tree_1): Handle OMP_CLAUSE_TILE.
768         * tree.h (OMP_TILE_LIST): New macro.
770 2015-11-05  Martin Sebor  <msebor@redhat.com>
772         PR c++/67942
773         * doc/invoke.texi (-Wplacement-new): Document new option.
775 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
777         PR tree-optimization/65963
778         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
779         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
781 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
783         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
784         (noce_convert_multiple_sets): Likewise.
785         (noce_process_if_block): Call them.
787 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
789         * gimple-fold.c: Include omp-low.h.
790         (fold_internal_goacc_dim): New.
791         (gimple_fold_call): Call it.
793 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
794             Ilya Verbin  <ilya.verbin@intel.com>
796         * builtin-types.def
797         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
798         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
799         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
800         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
801         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
802         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
803         (struct cgraph_simd_clone_arg): Adjust comment.
804         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
805         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
806         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
807         to GOMP_target_data_ext.
808         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
809         to GOMP_target_update_ext.
810         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
811         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
812         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
813         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
814         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
815         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
816         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
817         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
818         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
819         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
820         * tree-core.h (enum omp_clause_schedule_kind): Add
821         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
822         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
823         OMP_CLAUSE_SCHEDULE_LAST value.
824         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
825         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
826         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
827         OMP_FOR_CHECK.  Remove comment.
828         * tree-pretty-print.c (dump_omp_clause): Handle
829         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
830         Simplify.  Print schedule clause modifiers.
831         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
832         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
833         cases.
834         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
835         (omp_default_clause): Tweak for
836         private/firstprivate/is_device_ptr variables on target
837         construct and use_device_ptr on target data.
838         (omp_check_private): Likewise.
839         (omp_notice_variable): For references check whether what it refers
840         to has mappable type, rather than the reference itself.
841         (omp_is_private): Diagnose linear iteration variables on non-simd
842         constructs.
843         (omp_no_lastprivate): Return true only for Fortran.
844         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
845         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
846         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
847         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
848         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
849         lastprivate and linear when combined with distribute.  Gimplify
850         variable low-bound for array reduction.  Look through
851         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
852         reductions.
853         (gimplify_adjust_omp_clauses_1): For implicit references to
854         variables with reference type and when not ref to scalar or
855         ref to pointer, map what they refer to using tofrom and
856         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
857         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
858         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
859         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
860         Diagnose the same var on both firstprivate and lastprivate on
861         distribute construct.
862         (gimplify_omp_for): Fix up handling of predetermined
863         lastprivate or linear iter vars when combined with distribute.
864         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
865         functions.
866         (gimplify_omp_workshare): Call optimize_target_teams.
867         * omp-low.c (struct omp_region): Add sched_modifiers field.
868         (struct omp_for_data): Likewise.
869         (omp_any_child_fn_dumped): New variable.
870         (extract_omp_for_data): Fill in sched_modifiers, and mask out
871         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
872         from sched_kind.
873         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
874         bits of OMP_CLAUSE_SCHED_KIND.
875         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
876         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
877         for array section reductions.
878         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
879         for distribute parallel for, if there are lastprivate clauses on the
880         for.
881         (lower_rec_input_clauses): Handle non-zero low-bound on array
882         section reductions.
883         (lower_reduction_clauses): Likewise.
884         (lower_send_clauses): Look through POINTER_PLUS_EXPR
885         for array section reductions.
886         (expand_parallel_call): Use nonmonotonic entrypoints for
887         nonmonotonic: dynamic/guided.
888         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
889         child_fn if current_function_decl has assembler name set, but child_fn
890         does not.  Dump the header and IL of the child function when not in SSA
891         form.
892         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
893         arguments to BUILT_IN_GOMP_TARGET.
894         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
895         Initialize the extra _looptemp_ clause to fd->loop.n2.
896         (expand_omp_for): Use nonmonotonic entrypoints for
897         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
898         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
899         again if we have dumped any child functions.
900         (lower_omp_for_lastprivate): Determine the right count variable
901         for distribute simd, or distribute parallel for{, simd}.
902         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
903         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
904         support.
905         (simd_clone_clauses_extract): Handle variable step
906         for references and arguments passed by reference.
907         (simd_clone_mangle): Mangle ref/uval/val variable steps.
908         (simd_clone_adjust_argument_types): Handle
909         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
910         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
911         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
912         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
913         (simd_clone_linear_addend): New function.
914         (simd_clone_adjust): Handle variable step like similarly
915         to constant step, use simd_clone_linear_addend to determine
916         the actual step at runtime.
918 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
920         * target.def (goacc.dim_limit): New hook.
921         * targhooks.h (default_goacc_dim_limit): Declare.
922         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
923         * doc/tm.texi: Rebuilt.
924         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
925         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
926         (default_goacc_dim_limit): New.
927         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
928         (nvptx_goacc_dim_limit) New.
929         (TARGET_GOACC_DIM_LIMIT): Override.
930         * tree-vrp.c: Include omp-low.h, target.h.
931         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
932         IFN_GOACC_DIM_POS.
934 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
936         * tree-vect-generic.c (do_compare): Use -1 for true
937         result instead of 1.
939 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
941         * config/aarch64/aarch64.c
942         (aarch64_can_use_per_function_literal_pools_p): New.
943         (aarch64_use_blocks_for_constant_p): Adjust declaration
944         and use aarch64_can_use_function_literal_pools_p.
945         (aarch64_select_rtx_section): Update.
947 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
949         * targhooks.c (default_get_mask_mode): Use BLKmode in
950         case target doesn't support required vector mode.
951         * stor-layout.c (layout_type); Check for BLKmode.
953 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
954             Sebastian Pop  <s.pop@samsung.com>
956         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
957         Remove use of parameter_rename_map.
958         (copy_def): Remove.
959         (copy_internal_parameters): Remove.
960         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
961         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
962         (free_sese_info): Do not free parameter_rename_map.
963         (set_rename): Do not use parameter_rename_map.
964         (rename_uses): Update call to set_rename.
965         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
966         * sese.h (parameter_rename_map_t): Remove.
967         (struct sese_info_t): Remove field parameter_rename_map.
969 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
970             Sebastian Pop  <s.pop@samsung.com>
972         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
973         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
974         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
975         anonymous namespace.
976         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
977         (isl_id_for_pbb): Use a buffer of size 10.
978         (isl_id_for_ssa_name): Same.
979         * sese.c (set_rename): Add more dumps.
981 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
983         * omp-low.c (struct omp_context): Remove reduction_map field.
984         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
985         (new_omp_context, delete_omp_context, scan_omp_target): Remove
986         reduction_map handling.
987         (lower_omp_target): Remove obsolete openacc reduction handling.
989 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
991         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
993 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
994             Cesar Philippidis  <cesar@codesourcery.com>
996         * config/nvptx/nvptx.c: Include gimple headers.
997         (worker_red_size, worker_red_align, worker_red_name,
998         worker_red_sym): New.
999         (nvptx_option_override): Initialize worker reduction buffer.
1000         (nvptx_file_end): Write out worker reduction buffer var.
1001         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1002         nvptx_expand_cmp_swap): New builtin expanders.
1003         (enum nvptx_builtins): New.
1004         (nvptx_builtin_decls): New.
1005         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1006         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1007         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1008         nvptx_lockless_update): New helpers.
1009         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1010         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1011         (nvptx_goacc_reduction): New.
1012         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1013         TARGET_BUILTIN_DECL): Override.
1014         (TARGET_GOACC_REDUCTION): Override.
1016 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1017             Cesar Philippidis  <cesar@codesourcery.com>
1019         * internal-fn.def (GOACC_REDUCTION): New.
1020         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1021         * internal-fn.c (expand_GOACC_REDUCTION): New.
1022         * target.def (goacc.reduction): New OpenACC hook.
1023         * targhooks.h (default_goacc_reduction): Declare.
1024         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1025         * doc/tm.texi: Rebuilt.
1026         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1027         scan_sharing_clauses): Remove oacc reduction handling here.
1028         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1029         (oacc_lower_reduction_var_helper): Delete.
1030         (lower_oacc_reductions): New.
1031         (lower_reduction_clauses): Don't handle OpenACC reductions here.
1032         (lower_oacc_head_tail): Call lower_oacc_reductions.
1033         (oacc_gimple_assign, oacc_init_reduction_array,
1034         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1035         oacc_process_reduction_data): Delete.
1036         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
1037         dummy OpenACC gang reduction for reductions at outer level.
1038         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1039         (default_goacc_reduction): New.
1040         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1042 2015-11-04  Martin Liska  <mliska@suse.cz>
1044         * cgraphunit.c (cgraph_node::expand_thunk): Call
1045         allocate_struct_function before init_function_start.
1046         (cgraph_node::expand): Use push_cfun and pop_cfun.
1047         * config/i386/i386.c (ix86_code_end): Call
1048         allocate_struct_function before init_function_start.
1049         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1050         * function.c (init_function_start): Move preamble to all
1051         callers.
1052         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1053         (execute_one_pass): Handle newly added TODO_discard_function.
1054         (execute_pass_list_1): Terminate if cfun equals to NULL.
1055         (execute_pass_list): Do not push and pop cfun, expect that
1056         cfun is set.
1057         * tree-pass.h (TODO_discard_function): Define.
1059 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
1061         * cfganal.c (inverted_post_order_compute): Remove conditional
1062         compilation, use flag_checking.
1063         * config.in: Regenerate.
1064         * configure: Regenerate.
1065         * configure.ac: Remove ENABLE_CHECKING.
1066         * genconditions.c: Do not #undef ENABLE_CHECKING.
1067         * sese.h (bb_in_region): Comment out broken check.
1068         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1069         conditional compilation, use flag_checking.
1071 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1073         PR tree-optimization/67742
1074         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1075         field.
1076         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1077         (create_variable_info_for_1): Add and handle handle_param parameter.
1078         Add restrict handling.
1079         (create_variable_info_for): Call create_variable_info_for_1 with extra
1080         arg.
1081         (make_param_constraints): Drop restrict_name parameter.  Ignore
1082         vi->only_restrict_pointers.
1083         (intra_create_variable_infos): Call create_variable_info_for_1 with
1084         extra arg.  Remove restrict handling.  Call make_param_constraints with
1085         one fewer arg.
1087 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1089         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1090         variable.
1092 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1094         * config/arm/coff.h: Remove.
1096 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1098         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1099         check for aggregate types and beef up comment for mode check.
1101 2015-11-03  Richard Biener  <rguenther@suse.de>
1103         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1104         data references here.
1105         * tree-vect-loop.c: Include cgraph.h.
1106         (vect_analyze_loop_2): Collect data references here.
1107         * tree-vect-slp.c (find_bb_location): Inline ...
1108         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
1109         Factor in vect_slp_transform_bb.
1110         (vect_slp_transform_bb): Removed.
1111         (vect_slp_analyze_bb_1): Collect data references here.
1112         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1113         vect_slp_bb.
1114         * tree-vectorizer.h (vect_slp_bb): Declare.
1115         (vect_slp_analyze_bb): Remove.
1116         (vect_slp_transform_bb): Remove.
1117         (find_bb_location): Remove.
1118         (vect_analyze_data_refs): Remove stmt count reference parameter.
1120 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
1122         * multiple_target.c (create_dispatcher_calls): Add target check
1123         on ifunc.
1124         (create_target_clone): Change assembler name for versioned declarations.
1126 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
1127             Chung-Lin Tang  <cltang@codesourcery.com>
1129         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1130         * omp-low.c (check_omp_nesting_restrictions): Allow
1131         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1132         contexts.
1134 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
1136         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1137         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1138         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1139         builtin.
1140         (vmulxq_f32): Likewise.
1141         (vmulx_f64): New.
1142         (vmulxq_f64): Rewrite to call fmulx builtin.
1143         (vmulxs_f32): Likewise.
1144         (vmulxd_f64): Likewise.
1145         (vmulx_lane_f32): Remove.
1146         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1148 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
1150         * config/aarch64/aarch64.md (*movhf_aarch64): Use
1151         aarch64_reg_or_fp_zero for second operand.
1153 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
1155         * gimple-expr.c: Include hash-set.h and rtl.h.
1156         (mark_addressable_queue): New var.
1157         (mark_addressable): Factor actual marking into...
1158         (mark_addressable_1): ... this.  Queue it up during expand.
1159         (mark_addressable_2): New.
1160         (flush_mark_addressable_queue): New.
1161         * gimple-expr.h (flush_mark_addressable_queue): Declare.
1162         * cfgexpand.c: Include gimple-expr.h.
1163         (pass_expand::execute): Flush mark_addressable queue.
1165 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
1167         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1168         bb_no_side_effects_p tests...
1169         (tree_ssa_ifcombine_bb): ... here.
1171         PR tree-optimization/68083
1172         * tree-ssa-ifcombine.c: Include tree-ssa.h.
1173         (bb_no_side_effects_p): Test for undefined uses too.
1174         * tree-ssa.c (gimple_uses_undefined_value_p): New.
1175         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1177 2015-11-02  Jeff Law <jeff@redhat.com>
1179         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1180         cases where the loop latch edge is in the middle of an FSM path.
1182 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1184         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1185         (make_param_constraints): ... this.  Add and handle restrict_name
1186         parameter.  Handle is_full_var case.
1187         (intra_create_variable_infos): Use make_param_constraints.
1189 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1191         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1192         make_copy_constraint call with make_constraint_from call.
1194 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
1196         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1197         PIE executables.
1199 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
1201         * builtins.h (fold_fma): Move to fold-const-call.h.
1202         * builtins.c: Include fold-const-call.h.
1203         (mathfn_built_in_2): New function, split out from...
1204         (mathfn_built_in_1): ...here.
1205         (do_real_to_int_conversion, fold_const_builtin_pow)
1206         (fold_const_builtin_logb, fold_const_builtin_significand)
1207         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1208         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1209         (fold_builtin_sincos): Use fold_const_call to handle constants.
1210         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1211         checks for ERROR_MARK.  Use fold_const_call to handle constant
1212         folds for math functions.
1213         (fold_fma): Move to fold-const-call.c.
1214         * fold-const.c: Include fold-const-call.h.
1215         * Makefile.in (OBJS): Add fold-const-call.o.
1216         (PLUGIN_HEADERS): Add fold-const-call.h.
1217         * realmpfr.h (real_from_mpfr): Allow the format to be specified
1218         directly.
1219         * realmpfr.c (real_from_mpfr): Likewise.
1220         * fold-const-call.h, fold-const-call.c: New files.
1222 2015-11-02  Julian Brown  <julian@codesourcery.com>
1224         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1225         brackets and semicolon.
1227 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
1229         Revert:
1230         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1232         PR tree-optimization/65963
1233         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1234         LSHIFT_EXPRs as equivalent MULT_EXPRs.
1236 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1238         PR middle-end/68166
1239         * fold-const.c: Include "md5.h".
1241 2015-11-01  Jeff Law <jeff@redhat.com>
1243         * vmsdbgout.c: Revert unused header file reduction patch.
1245         * config/mcore/mcore.c: Include regs.h.
1247 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
1249         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1251 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
1253         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1254         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1255         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1257 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1259         * ggc-common.c: Restore needed header for checking=release.
1261 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1263         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1265 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1267         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1268         existing varinfo for arguments.
1270 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1272         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1273         create_function_info_for.  Dump constraints generated during
1274         create_function_info_for. Move intra_create_variable_infos call and
1275         function-return-values-escape bit to ...
1276         (create_function_info_for): ... here, and merge
1277         intra_create_variable_infos call with argument loop.  Add and handle
1278         nonlocal_p parameter.
1280 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1282         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1283         updating is alap, and seperated from preceding code.  Make sure
1284         insert_vi_for_tree is seperated from surrounding code.
1286 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1288         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1290 2015-10-30  Jeff Law <jeff@redhat.com>
1291             Nathan Sidwell  <nathan@acm.org>
1293         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1294         args.
1295         (MOVE_MAX): Set to 8.
1297 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
1299         * cgraph.c: Include context.h for offloading.
1300         * varpool.c: Include context.h and omp-low.h.
1302 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
1304         * rtl.h (contains_symbol_ref_p): Declare.
1305         (SYMBOL_REF_P): Define.
1306         * rtlanal.c (contains_symbol_ref_p: New function.
1307         * lra-constraints.c (contains_symbol_ref_p): Remove.
1308         * var-tracking.c (contains_symbol_ref): Remove.
1309         (track_expr_p): Use contains_symbol_ref_p instead of
1310         contains_symbol_ref.
1312 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
1314         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1315         * fold-const.c (get_array_ctor_element_at_index): New.
1316         (fold): Remove binary-search through CONSTRUCTOR, call previous.
1318         * fold-const.h (get_array_ctor_element_at_index): New.
1320 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
1322         * Makefile.in (OBJS): Add multiple_target.o.
1323         * attrib.c (make_attribute): Moved from config/i386/i386.c
1324         * config/i386/i386.c (make_attribute): Deleted.
1325         * multiple_target.c (create_dispatcher_calls): New.
1326         (get_attr_len): Ditto.
1327         (get_attr_str): Ditto.
1328         (separate_attrs): Ditto.
1329         (is_valid_asm_symbol): Ditto.
1330         (create_new_asm_name): Ditto.
1331         (create_target_clone): Ditto.
1332         (expand_target_clones): Ditto.
1333         (ipa_target_clone): Ditto.
1334         (ipa_dispatcher_calls): Ditto.
1335         * passes.def (pass_target_clone): Two new ipa passes.
1336         * tree-pass.h (make_pass_target_clone): Ditto.
1337         * doc/extend.texi (target_clones): New attribute description.
1339 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
1341         PR rtl-optimization/68106
1342         * lra-remat.c (input_regno_present_p): Process hard regs
1343         explicitly present in machine description insns.
1344         (call_used_input_regno_present_p): Ditto.
1345         (calculate_gen_cands): Ditto.
1346         (do_remat): Ditto.
1348 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
1350         * config/arm/neon-testgen.ml: Fix comment typo.
1352 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1354         * rtlanal.c (reg_set_p): Expand function comment.
1356 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
1358         * alias.c: Remove unused headers.
1359         * asan.c: Likewise.
1360         * attribs.c: Likewise.
1361         * auto-inc-dec.c: Likewise.
1362         * auto-profile.c: Likewise.
1363         * bb-reorder.c: Likewise.
1364         * bitmap.c: Likewise.
1365         * bt-load.c: Likewise.
1366         * builtins.c: Likewise.
1367         * caller-save.c: Likewise.
1368         * calls.c: Likewise.
1369         * ccmp.c: Likewise.
1370         * cfg.c: Likewise.
1371         * cfganal.c: Likewise.
1372         * cfgbuild.c: Likewise.
1373         * cfgcleanup.c: Likewise.
1374         * cfgexpand.c: Likewise.
1375         * cfghooks.c: Likewise.
1376         * cfgloop.c: Likewise.
1377         * cfgloopanal.c: Likewise.
1378         * cfgloopmanip.c: Likewise.
1379         * cfgrtl.c: Likewise.
1380         * cgraph.c: Likewise.
1381         * cgraphbuild.c: Likewise.
1382         * cgraphclones.c: Likewise.
1383         * cgraphunit.c: Likewise.
1384         * cilk-common.c: Likewise.
1385         * combine-stack-adj.c: Likewise.
1386         * combine.c: Likewise.
1387         * compare-elim.c: Likewise.
1388         * convert.c: Likewise.
1389         * coverage.c: Likewise.
1390         * cppbuiltin.c: Likewise.
1391         * cprop.c: Likewise.
1392         * cse.c: Likewise.
1393         * cselib.c: Likewise.
1394         * data-streamer-in.c: Likewise.
1395         * data-streamer-out.c: Likewise.
1396         * data-streamer.c: Likewise.
1397         * dbxout.c: Likewise.
1398         * dce.c: Likewise.
1399         * ddg.c: Likewise.
1400         * debug.c: Likewise.
1401         * df-core.c: Likewise.
1402         * df-problems.c: Likewise.
1403         * df-scan.c: Likewise.
1404         * dfp.c: Likewise.
1405         * dojump.c: Likewise.
1406         * dominance.c: Likewise.
1407         * domwalk.c: Likewise.
1408         * double-int.c: Likewise.
1409         * dse.c: Likewise.
1410         * dumpfile.c: Likewise.
1411         * dwarf2asm.c: Likewise.
1412         * dwarf2cfi.c: Likewise.
1413         * dwarf2out.c: Likewise.
1414         * emit-rtl.c: Likewise.
1415         * except.c: Likewise.
1416         * explow.c: Likewise.
1417         * expmed.c: Likewise.
1418         * expr.c: Likewise.
1419         * final.c: Likewise.
1420         * fixed-value.c: Likewise.
1421         * fold-const.c: Likewise.
1422         * function.c: Likewise.
1423         * fwprop.c: Likewise.
1424         * gcse.c: Likewise.
1425         * generic-match-head.c: Likewise.
1426         * ggc-common.c: Likewise.
1427         * gimple-builder.c: Likewise.
1428         * gimple-expr.c: Likewise.
1429         * gimple-fold.c: Likewise.
1430         * gimple-iterator.c: Likewise.
1431         * gimple-low.c: Likewise.
1432         * gimple-match-head.c: Likewise.
1433         * gimple-pretty-print.c: Likewise.
1434         * gimple-ssa-isolate-paths.c: Likewise.
1435         * gimple-ssa-strength-reduction.c: Likewise.
1436         * gimple-streamer-in.c: Likewise.
1437         * gimple-streamer-out.c: Likewise.
1438         * gimple-walk.c: Likewise.
1439         * gimple.c: Likewise.
1440         * gimplify-me.c: Likewise.
1441         * gimplify.c: Likewise.
1442         * godump.c: Likewise.
1443         * graph.c: Likewise.
1444         * graphds.c: Likewise.
1445         * haifa-sched.c: Likewise.
1446         * hw-doloop.c: Likewise.
1447         * ifcvt.c: Likewise.
1448         * init-regs.c: Likewise.
1449         * internal-fn.c: Likewise.
1450         * ipa-chkp.c: Likewise.
1451         * ipa-comdats.c: Likewise.
1452         * ipa-cp.c: Likewise.
1453         * ipa-devirt.c: Likewise.
1454         * ipa-icf-gimple.c: Likewise.
1455         * ipa-icf.c: Likewise.
1456         * ipa-inline-analysis.c: Likewise.
1457         * ipa-inline-transform.c: Likewise.
1458         * ipa-inline.c: Likewise.
1459         * ipa-polymorphic-call.c: Likewise.
1460         * ipa-profile.c: Likewise.
1461         * ipa-prop.c: Likewise.
1462         * ipa-pure-const.c: Likewise.
1463         * ipa-ref.c: Likewise.
1464         * ipa-reference.c: Likewise.
1465         * ipa-split.c: Likewise.
1466         * ipa-utils.c: Likewise.
1467         * ipa-visibility.c: Likewise.
1468         * ipa.c: Likewise.
1469         * ira-build.c: Likewise.
1470         * ira-color.c: Likewise.
1471         * ira-conflicts.c: Likewise.
1472         * ira-costs.c: Likewise.
1473         * ira-emit.c: Likewise.
1474         * ira-lives.c: Likewise.
1475         * ira.c: Likewise.
1476         * jump.c: Likewise.
1477         * langhooks.c: Likewise.
1478         * lcm.c: Likewise.
1479         * lists.c: Likewise.
1480         * loop-doloop.c: Likewise.
1481         * loop-init.c: Likewise.
1482         * loop-invariant.c: Likewise.
1483         * loop-iv.c: Likewise.
1484         * loop-unroll.c: Likewise.
1485         * lower-subreg.c: Likewise.
1486         * lra-assigns.c: Likewise.
1487         * lra-coalesce.c: Likewise.
1488         * lra-constraints.c: Likewise.
1489         * lra-eliminations.c: Likewise.
1490         * lra-lives.c: Likewise.
1491         * lra-remat.c: Likewise.
1492         * lra-spills.c: Likewise.
1493         * lra.c: Likewise.
1494         * lto-cgraph.c: Likewise.
1495         * lto-compress.c: Likewise.
1496         * lto-opts.c: Likewise.
1497         * lto-section-in.c: Likewise.
1498         * lto-section-out.c: Likewise.
1499         * lto-streamer-in.c: Likewise.
1500         * lto-streamer-out.c: Likewise.
1501         * lto-streamer.c: Likewise.
1502         * mcf.c: Likewise.
1503         * mode-switching.c: Likewise.
1504         * modulo-sched.c: Likewise.
1505         * optabs.c: Likewise.
1506         * opts-global.c: Likewise.
1507         * passes.c: Likewise.
1508         * plugin.c: Likewise.
1509         * postreload-gcse.c: Likewise.
1510         * postreload.c: Likewise.
1511         * predict.c: Likewise.
1512         * print-tree.c: Likewise.
1513         * profile.c: Likewise.
1514         * real.c: Likewise.
1515         * realmpfr.c: Likewise.
1516         * recog.c: Likewise.
1517         * ree.c: Likewise.
1518         * reg-stack.c: Likewise.
1519         * regcprop.c: Likewise.
1520         * reginfo.c: Likewise.
1521         * regrename.c: Likewise.
1522         * regstat.c: Likewise.
1523         * reload.c: Likewise.
1524         * reload1.c: Likewise.
1525         * reorg.c: Likewise.
1526         * resource.c: Likewise.
1527         * rtl-chkp.c: Likewise.
1528         * rtl-error.c: Likewise.
1529         * rtlanal.c: Likewise.
1530         * rtlhooks.c: Likewise.
1531         * sanopt.c: Likewise.
1532         * sched-deps.c: Likewise.
1533         * sched-ebb.c: Likewise.
1534         * sched-rgn.c: Likewise.
1535         * sdbout.c: Likewise.
1536         * sel-sched-dump.c: Likewise.
1537         * sel-sched-ir.c: Likewise.
1538         * sel-sched.c: Likewise.
1539         * sese.c: Likewise.
1540         * shrink-wrap.c: Likewise.
1541         * simplify-rtx.c: Likewise.
1542         * stack-ptr-mod.c: Likewise.
1543         * statistics.c: Likewise.
1544         * stmt.c: Likewise.
1545         * stor-layout.c: Likewise.
1546         * store-motion.c: Likewise.
1547         * stringpool.c: Likewise.
1548         * symtab.c: Likewise.
1549         * target-globals.c: Likewise.
1550         * targhooks.c: Likewise.
1551         * toplev.c: Likewise.
1552         * tracer.c: Likewise.
1553         * trans-mem.c: Likewise.
1554         * tree-affine.c: Likewise.
1555         * tree-call-cdce.c: Likewise.
1556         * tree-cfg.c: Likewise.
1557         * tree-cfgcleanup.c: Likewise.
1558         * tree-chkp-opt.c: Likewise.
1559         * tree-chkp.c: Likewise.
1560         * tree-chrec.c: Likewise.
1561         * tree-complex.c: Likewise.
1562         * tree-data-ref.c: Likewise.
1563         * tree-dfa.c: Likewise.
1564         * tree-diagnostic.c: Likewise.
1565         * tree-dump.c: Likewise.
1566         * tree-eh.c: Likewise.
1567         * tree-emutls.c: Likewise.
1568         * tree-if-conv.c: Likewise.
1569         * tree-inline.c: Likewise.
1570         * tree-into-ssa.c: Likewise.
1571         * tree-iterator.c: Likewise.
1572         * tree-loop-distribution.c: Likewise.
1573         * tree-nested.c: Likewise.
1574         * tree-nrv.c: Likewise.
1575         * tree-object-size.c: Likewise.
1576         * tree-outof-ssa.c: Likewise.
1577         * tree-parloops.c: Likewise.
1578         * tree-phinodes.c: Likewise.
1579         * tree-predcom.c: Likewise.
1580         * tree-pretty-print.c: Likewise.
1581         * tree-profile.c: Likewise.
1582         * tree-scalar-evolution.c: Likewise.
1583         * tree-sra.c: Likewise.
1584         * tree-ssa-address.c: Likewise.
1585         * tree-ssa-alias.c: Likewise.
1586         * tree-ssa-ccp.c: Likewise.
1587         * tree-ssa-coalesce.c: Likewise.
1588         * tree-ssa-copy.c: Likewise.
1589         * tree-ssa-dce.c: Likewise.
1590         * tree-ssa-dse.c: Likewise.
1591         * tree-ssa-forwprop.c: Likewise.
1592         * tree-ssa-ifcombine.c: Likewise.
1593         * tree-ssa-live.c: Likewise.
1594         * tree-ssa-loop-ch.c: Likewise.
1595         * tree-ssa-loop-im.c: Likewise.
1596         * tree-ssa-loop-ivcanon.c: Likewise.
1597         * tree-ssa-loop-ivopts.c: Likewise.
1598         * tree-ssa-loop-manip.c: Likewise.
1599         * tree-ssa-loop-niter.c: Likewise.
1600         * tree-ssa-loop-prefetch.c: Likewise.
1601         * tree-ssa-loop-unswitch.c: Likewise.
1602         * tree-ssa-loop.c: Likewise.
1603         * tree-ssa-math-opts.c: Likewise.
1604         * tree-ssa-operands.c: Likewise.
1605         * tree-ssa-phiopt.c: Likewise.
1606         * tree-ssa-phiprop.c: Likewise.
1607         * tree-ssa-pre.c: Likewise.
1608         * tree-ssa-propagate.c: Likewise.
1609         * tree-ssa-reassoc.c: Likewise.
1610         * tree-ssa-scopedtables.c: Likewise.
1611         * tree-ssa-sink.c: Likewise.
1612         * tree-ssa-strlen.c: Likewise.
1613         * tree-ssa-structalias.c: Likewise.
1614         * tree-ssa-tail-merge.c: Likewise.
1615         * tree-ssa-ter.c: Likewise.
1616         * tree-ssa-threadupdate.c: Likewise.
1617         * tree-ssa-uncprop.c: Likewise.
1618         * tree-ssa-uninit.c: Likewise.
1619         * tree-ssa.c: Likewise.
1620         * tree-ssanames.c: Likewise.
1621         * tree-stdarg.c: Likewise.
1622         * tree-streamer-in.c: Likewise.
1623         * tree-streamer-out.c: Likewise.
1624         * tree-streamer.c: Likewise.
1625         * tree-switch-conversion.c: Likewise.
1626         * tree-tailcall.c: Likewise.
1627         * tree-vect-data-refs.c: Likewise.
1628         * tree-vect-generic.c: Likewise.
1629         * tree-vect-loop-manip.c: Likewise.
1630         * tree-vect-loop.c: Likewise.
1631         * tree-vect-patterns.c: Likewise.
1632         * tree-vect-slp.c: Likewise.
1633         * tree-vect-stmts.c: Likewise.
1634         * tree-vectorizer.c: Likewise.
1635         * tree-vrp.c: Likewise.
1636         * tree.c: Likewise.
1637         * tsan.c: Likewise.
1638         * ubsan.c: Likewise.
1639         * value-prof.c: Likewise.
1640         * var-tracking.c: Likewise.
1641         * varasm.c: Likewise.
1642         * varpool.c: Likewise.
1643         * vmsdbgout.c: Likewise.
1644         * vtable-verify.c: Likewise.
1645         * web.c: Likewise.
1646         * wide-int-print.cc: Likewise.
1647         * wide-int.cc: Likewise.
1648         * xcoffout.c: Likewise.
1650 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
1652         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
1653         between pass numbering and execution order.
1655 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1657         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
1658         check for dependencies.
1660 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1662         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
1663         CDI_DOMINATORS.
1665 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1667         * real.h (format_helper): New.
1668         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
1669         (real_from_target, real_nan, real_2expN, real_value_truncate)
1670         (significand_size, real_from_string2, exact_real_inverse)
1671         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
1672         (real_round, real_isinteger, real_from_integer): Replace
1673         machine_mode arguments with format_helper arguments.
1674         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
1675         (real_from_integer, real_nan, real_2expN, real_convert)
1676         (real_value_truncate, exact_real_truncate, real_to_target)
1677         (real_from_target, significand_size, real_powi, real_trunc)
1678         (real_floor, real_ceil, real_round, real_isinteger): Replace
1679         machine_mode arguments with format_helper arguments.
1680         (real_to_target_fmt, real_from_target_fmt): Delete.
1681         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
1682         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
1683         argument with real_format.
1684         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
1686 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1688         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
1689         (fixed_to_decimal, fixed_convert_from_real)
1690         (real_convert_from_fixed): Fix mode arguments to real_2expN.
1692 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1694         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
1695         SCALAR_FLOAT_MODE_P.
1697 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
1699         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
1700         (completely_scalarize): Comment zero-length arrays.
1701         (get_access_replacement): Correct comment re. precondition.
1703 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1705         * config/i386/i386.c (get_builtin_code_for_version): Set priority
1706         for PROCESSOR_ZNVER1.
1707         (enum processor_model): Add M_AMDFAM17H_znver1.
1708         (struct arch_names_table): Likewise.
1709         * doc/extend.texi: ADD znver1.
1711 2015-10-30  Richard Biener  <rguenther@suse.de>
1713         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
1714         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
1715         zeros to be folded to VECTOR_CSTs.
1716         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
1717         * fold-const.c (fold): Use build_vector_from_ctor.
1719 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
1721         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
1722         "mov %0.h[0], %1.h[0] to "neon_move".
1723         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
1724         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
1725         "mov_imm".
1726         (*cmovsi_insn_uxtw): Likewise.
1728 2015-10-30  Tom de Vries  <tom@codesourcery.com>
1730         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
1731         unsigned, and initialize, and use initial value instead of hardcoded
1732         constant.  Add generic constraints dumping section.  Don't dump global
1733         initializers constraints dumping section if empty.  Don't update
1734         variable from if unused.
1736 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
1738         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
1739         flag_checking and/or CHECKING_P to eliminate conditional compilation
1740         on ENABLE_CHECKING.
1741         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
1742         * config/bfin/bfin.c (hwloop_optimize): Likewise.
1743         * config/i386/i386.c (ix86_print_operand_address): Likewise.
1744         (output_387_binary_op): Likewise.
1745         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
1746         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
1747         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
1748         Likewise.
1749         * config/rs6000/rs6000.h: Likewise.
1750         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1752 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1754         * config/sh/sh.opt (mfdpic): Add missing period.
1756 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
1758         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1759         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
1760         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1761         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
1762         mcore_base_register_rtx_p, mcore_legitimate_index_p,
1763         mcore_legitimate_address_p): New functions.
1764         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1766 2015-10-29  Jeff Law  <law@redhat.com>
1768         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
1769         method.
1770         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
1771         * tree-ssa-threadedge.c
1772         (record_temporary_equivalences_from_stmts_at_dest): Remove
1773         backedge_seen argument and associated code which invalidated
1774         equivalences based on the value of that argument.
1775         (thread_through_normal_block): Corresponding changes.
1777 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
1779         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
1780         function earlier in the file.
1781         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
1782         df_regs_ever_live_p.
1784 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
1786         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
1787         by ignoring it.
1789 2015-10-29  Richard Henderson  <rth@redhat.com>
1791         PR target/68124
1792         PR rtl-opt/67609
1793         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1794         sse check to the exact conditions of PR 67609.
1796 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1798         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
1799         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
1800         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
1801         of the traditional names that TFmode uses for handling IEEE
1802         extended double. If -mfloat128, add KFmode functions for all of
1803         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
1804         make TFmode use the same emulation functions as KFmode.
1805         (init_float128_ibm): Likewise.
1806         (init_float128_ieee): Likewise.
1807         (rs6000_generate_compare): For IEEE 128-bit floating point
1808         comparisons, call the unordered comparison function instead of the
1809         ordered comparison function.
1810         (rs6000_expand_float128_convert): Deal with operands that are
1811         memory operands. Restructure the code to use a switch statement on
1812         the mode. Add support for TFmode defaulting to either IBM extended
1813         double or IEEE 128-bit floating point. If the underlying types are
1814         the same, use a move instead of a conversion function.
1815         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
1816         use for IEEE 128-bit floating point constants with -mfloat128.
1817         (rs6000_c_mode_for_suffix): Likewise.
1818         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
1819         128-bit floating point with IBM extended double floating point.
1820         (rs6000_invalid_binary_op): Likewise.
1821         (rs6000_gen_le_vsx_permute): On little endian systems generate a
1822         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
1823         types that can go in vector registers.
1824         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
1825         point types that can go in vector registers on little endian
1826         PowerPC systems.
1827         (mark_swaps_for_removal): Likewise.
1828         (rs6000_analyze_swaps): Likewise.
1829         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
1831         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
1832         rework IEEE 128-bit floating point insns to deal with TFmode being
1833         either IBM extended double or IEEE 128-bit floating point.
1834         (IFKF): Likewise.
1835         (IBM128): Update iterator to add condition that the mode is IBM
1836         extended double.
1837         (IEEE128): New iterator for IEEE 128-bit floating point.
1838         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
1839         (FLOAT128): Likewise.
1840         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
1841         iterator.
1842         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
1843         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
1844         instead of hard coding TFmode or KFmode.
1845         (negtf2_internal): Likewise.
1846         (neg<mode>2_internal): Likewise.
1847         (abs<mode>2): Likewise.
1848         (abstf2_internal): Likewise.
1849         (abs<mode>2_internal): Likewise.
1850         (ieee_128bit_neg<mode>2): Likewise.
1851         (ieee_128bit_neg<mode>2_internal): Likewise.
1852         (ieee_128bit_abs<mode>2): Likewise.
1853         (ieee_128bit_abs<mode>2_internal): Likewise.
1854         (ieee_128bit_nabs<mode>2): Likewise.
1855         (ieee_128bit_nabs<mode>2_internal): Likewise.
1856         (extendiftf2): Add explicit conversions between 128-bit floating
1857         point types. Drop the old conversions that had become unwieldy.
1858         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
1859         (extendifkf2): Likewise.
1860         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
1861         (extendtfkf2): Likewise.
1862         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
1863         (trunciftf2): Likewise.
1864         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
1865         (truncifkf2): Likewise.
1866         (float<SDI:mode><IFKF:mode>2): Likewise.
1867         (trunckftf2): Likewise.
1868         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
1869         (trunctfif2): Likewise.
1870         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
1871         (extenddftf2): Rework 128-bit floating point conversions to
1872         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
1873         KFmode expanders into one function.
1874         (extenddf<mode>2): Likewise.
1875         (extenddftf2_fprs): Likewise.
1876         (extenddf<mode>2_fprs): Likewise.
1877         (extenddftf2_vsx): Likewise.
1878         (extenddf<mode>2_vsx): Likewise.
1879         (extendsftf2): Likewise.
1880         (extendsf<mode>2): Likewise.
1881         (trunctfdf2): Likewise.
1882         (trunc<mode>df2): Likewise.
1883         (trunctfdf2_internal1): Likewise.
1884         (trunc<mode>df2_internal1): Likewise.
1885         (trunctfdf2_internal2): Likewise.
1886         (trunc<mode>df2_internal2): Likewise.
1887         (trunctfsf2): Likewise.
1888         (trunc<mode>sf2): Likewise.
1889         (trunctfsf2_fprs): Likewise.
1890         (trunc<mode>sf2_fprs): Likewise.
1891         (floatsit2f): Likewise.
1892         (floatsi<mode>2): Likewise.
1893         (fix_trunc_helper): Likewise.
1894         (fix_trunc_helper<mode>): Likewise.
1895         (fix_trunctfsi2): Likewise.
1896         (fix_trunc<mode>si2): Likewise.
1897         (fix_trunctfsi2_fprs): Likewise.
1898         (fix_trunc<mode>si2_fprs): Likewise.
1899         (fix_trunctfsi2_internal): Likewise.
1900         (fix_trunc<mode>si2_internal): Likewise.
1901         (fix_trunctfdi2): Likewise.
1902         (fix_trunc<mode>di2): Likewise.
1903         (fixuns_trunctf<mode>2): Likewise.
1904         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1905         (floatditf2): Likewise.
1906         (floatdi<mode>2): Likewise.
1907         (floatuns<mode>tf2): Likewise.
1908         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
1909         (cmptf_internal1): Use a mode iterator to add support for both
1910         types (IFmode, TFmode) that support IBM extended double.
1911         (cmp<mode>_internal1): Likewise.
1912         (cmptf_internal2): Likewise.
1913         (cmp<mode>_internal2): Likewise.
1915         * doc/extend.texi (Floating Types): Document __ibm128 and
1916         __float128 on PowerPC.
1918         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1919         -mfloat128 and -mno-float128.
1921 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1923         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
1924         floating point modes that can go in vector registers.
1925         (MODES_TIEABLE_P): Move tests for vector modes before tests for
1926         scalar floating point, so that IEEE 128-bit floating point that
1927         can go in vector registers bind with vectors and not FP.
1928         (struct rs6000_args): Add libcall field.
1930         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
1931         and -mfloat128-software switches.  Replace them with a binary
1932         -mfloat128 switch.
1933         (-mfloat128): Likewise.
1935         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
1936         128-bit floating point types in GPRs, even if the appropriate
1937         option enabling the type was not used.
1938         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
1939         debugging.
1940         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
1941         pre-decrement on IEEE 128-bit floating point values.
1942         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
1943         is IEEE 128-bit floating point.
1944         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
1945         128-bit floating point types that can go in vector registers.
1946         (rs6000_option_override_internal): Change -mfloat128-none and
1947         -mfloat128-software to -mfloat128, and move code to be near other
1948         VSX option handling.
1949         (rs6000_option_override_internal): Disable -mfloat128 if we don't
1950         have the Altivec ABI.
1951         (rs6000_init_builtins): Don't make TFmode use either IFmode or
1952         KFmode floating point nodes. Instead, have three separate nodes.
1953         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
1954         eventually moving the long double default to IEEE 128-bit floating
1955         point.
1956         (rs6000_opt_masks): Add -mfloat128.
1957         (struct rs6000_opt_var): Fix typo in comment.
1958         (init_cumulative_args): Initialize libcall field in
1959         CUMULATIVE_ARGS.
1960         (rs6000_function_arg): Treat library functions as if they had
1961         prototypes to prevent IEEE 128-bit support functions from passing
1962         arguments in both GPRs and vector registers.
1963         (rs6000_arg_partial_bytes): Likewise.
1965         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
1966         an option that can be turned on via -mcpu=<xxx>.
1968         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
1969         longer used.
1971         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1972         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
1973         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
1974         double is IBM extended double.
1976         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
1977         SUBREGs.
1979 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
1981         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
1982         * genconditions.c: Define CHECKING_P in the generated code.
1983         * genextract.c: Use flag_checking in insn_extract.
1984         * gengtype.c (main): Remove conditional compilation.
1985         * gengtype.h: Likewise.
1987 2015-10-29  Jeff Law  <law@redhat.com>
1989         PR tree-optimization/67892
1990         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
1991         in comment.
1992         (thread_through_normal_block): If we have seen a backedge, then
1993         do nothing.  No longer call find_jump_threads_backwards here.
1994         (thread_across_edge): Use find_jump_threads_backwards to find
1995         jump threads if the old style threader was not successful.
1996         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
1997         gsi_last_nondebug_bb.  Return NULL if the block does not end
1998         with a control statement.
1999         (find_jump_threads_backwards): Setup code moved here from
2000         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
2001         single edge argument instead of name & block.
2002         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2003         prototype.
2005 2015-10-29  Tom de Vries  <tom@codesourcery.com>
2007         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2008         types.
2010 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
2012         * omp-low.c (lower_omp_target): Remove unreachable code & merge
2013         ifs.
2015 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
2017         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2019 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2021         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2022         guard_bb0 and use guard_bb throughout.
2024 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2026         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2027         unnecessary label.
2029 2015-10-29  Richard Biener  <rguenther@suse.de>
2031         PR middle-end/68142
2032         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2033         overflow.
2035 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2037         * alias.c: Reorder #include statements and remove duplicates.
2038         * asan.c: Likewise.
2039         * attribs.c: Likewise.
2040         * auto-inc-dec.c: Likewise.
2041         * auto-profile.c: Likewise.
2042         * bb-reorder.c: Likewise.
2043         * bt-load.c: Likewise.
2044         * builtins.c: Likewise.
2045         * caller-save.c: Likewise.
2046         * calls.c: Likewise.
2047         * ccmp.c: Likewise.
2048         * cfg.c: Likewise.
2049         * cfganal.c: Likewise.
2050         * cfgbuild.c: Likewise.
2051         * cfgcleanup.c: Likewise.
2052         * cfgexpand.c: Likewise.
2053         * cfghooks.c: Likewise.
2054         * cfgloop.c: Likewise.
2055         * cfgloopanal.c: Likewise.
2056         * cfgloopmanip.c: Likewise.
2057         * cfgrtl.c: Likewise.
2058         * cgraph.c: Likewise.
2059         * cgraphbuild.c: Likewise.
2060         * cgraphclones.c: Likewise.
2061         * cgraphunit.c: Likewise.
2062         * cilk-common.c: Likewise.
2063         * combine-stack-adj.c: Likewise.
2064         * combine.c: Likewise.
2065         * compare-elim.c: Likewise.
2066         * convert.c: Likewise.
2067         * coverage.c: Likewise.
2068         * cppbuiltin.c: Likewise.
2069         * cprop.c: Likewise.
2070         * cse.c: Likewise.
2071         * cselib.c: Likewise.
2072         * data-streamer-in.c: Likewise.
2073         * data-streamer-out.c: Likewise.
2074         * data-streamer.c: Likewise.
2075         * dbxout.c: Likewise.
2076         * dce.c: Likewise.
2077         * ddg.c: Likewise.
2078         * debug.c: Likewise.
2079         * df-core.c: Likewise.
2080         * df-problems.c: Likewise.
2081         * df-scan.c: Likewise.
2082         * dfp.c: Likewise.
2083         * dojump.c: Likewise.
2084         * dominance.c: Likewise.
2085         * double-int.c: Likewise.
2086         * dse.c: Likewise.
2087         * dumpfile.c: Likewise.
2088         * dwarf2asm.c: Likewise.
2089         * dwarf2cfi.c: Likewise.
2090         * dwarf2out.c: Likewise.
2091         * emit-rtl.c: Likewise.
2092         * except.c: Likewise.
2093         * explow.c: Likewise.
2094         * expmed.c: Likewise.
2095         * expr.c: Likewise.
2096         * final.c: Likewise.
2097         * fixed-value.c: Likewise.
2098         * fold-const.c: Likewise.
2099         * function.c: Likewise.
2100         * fwprop.c: Likewise.
2101         * gcse.c: Likewise.
2102         * generic-match-head.c: Likewise.
2103         * ggc-common.c: Likewise.
2104         * gimple-builder.c: Likewise.
2105         * gimple-expr.c: Likewise.
2106         * gimple-fold.c: Likewise.
2107         * gimple-iterator.c: Likewise.
2108         * gimple-low.c: Likewise.
2109         * gimple-match-head.c: Likewise.
2110         * gimple-pretty-print.c: Likewise.
2111         * gimple-ssa-isolate-paths.c: Likewise.
2112         * gimple-ssa-strength-reduction.c: Likewise.
2113         * gimple-streamer-in.c: Likewise.
2114         * gimple-streamer-out.c: Likewise.
2115         * gimple-walk.c: Likewise.
2116         * gimple.c: Likewise.
2117         * gimplify-me.c: Likewise.
2118         * gimplify.c: Likewise.
2119         * godump.c: Likewise.
2120         * graph.c: Likewise.
2121         * graphite-poly.c: Likewise.
2122         * haifa-sched.c: Likewise.
2123         * hw-doloop.c: Likewise.
2124         * ifcvt.c: Likewise.
2125         * incpath.c: Likewise.
2126         * init-regs.c: Likewise.
2127         * internal-fn.c: Likewise.
2128         * ipa-chkp.c: Likewise.
2129         * ipa-comdats.c: Likewise.
2130         * ipa-cp.c: Likewise.
2131         * ipa-devirt.c: Likewise.
2132         * ipa-icf-gimple.c: Likewise.
2133         * ipa-icf.c: Likewise.
2134         * ipa-inline-analysis.c: Likewise.
2135         * ipa-inline-transform.c: Likewise.
2136         * ipa-inline.c: Likewise.
2137         * ipa-polymorphic-call.c: Likewise.
2138         * ipa-profile.c: Likewise.
2139         * ipa-prop.c: Likewise.
2140         * ipa-pure-const.c: Likewise.
2141         * ipa-ref.c: Likewise.
2142         * ipa-reference.c: Likewise.
2143         * ipa-split.c: Likewise.
2144         * ipa-utils.c: Likewise.
2145         * ipa-visibility.c: Likewise.
2146         * ipa.c: Likewise.
2147         * ira-build.c: Likewise.
2148         * ira-color.c: Likewise.
2149         * ira-conflicts.c: Likewise.
2150         * ira-costs.c: Likewise.
2151         * ira-emit.c: Likewise.
2152         * ira-lives.c: Likewise.
2153         * ira.c: Likewise.
2154         * jump.c: Likewise.
2155         * langhooks.c: Likewise.
2156         * lcm.c: Likewise.
2157         * lists.c: Likewise.
2158         * loop-doloop.c: Likewise.
2159         * loop-init.c: Likewise.
2160         * loop-invariant.c: Likewise.
2161         * loop-iv.c: Likewise.
2162         * loop-unroll.c: Likewise.
2163         * lower-subreg.c: Likewise.
2164         * lra-assigns.c: Likewise.
2165         * lra-coalesce.c: Likewise.
2166         * lra-constraints.c: Likewise.
2167         * lra-eliminations.c: Likewise.
2168         * lra-lives.c: Likewise.
2169         * lra-remat.c: Likewise.
2170         * lra-spills.c: Likewise.
2171         * lra.c: Likewise.
2172         * lto-cgraph.c: Likewise.
2173         * lto-compress.c: Likewise.
2174         * lto-opts.c: Likewise.
2175         * lto-section-in.c: Likewise.
2176         * lto-section-out.c: Likewise.
2177         * lto-streamer-in.c: Likewise.
2178         * lto-streamer-out.c: Likewise.
2179         * lto-streamer.c: Likewise.
2180         * mode-switching.c: Likewise.
2181         * modulo-sched.c: Likewise.
2182         * omp-low.c: Likewise.
2183         * optabs.c: Likewise.
2184         * opts-global.c: Likewise.
2185         * passes.c: Likewise.
2186         * plugin.c: Likewise.
2187         * postreload-gcse.c: Likewise.
2188         * postreload.c: Likewise.
2189         * predict.c: Likewise.
2190         * print-tree.c: Likewise.
2191         * profile.c: Likewise.
2192         * real.c: Likewise.
2193         * realmpfr.c: Likewise.
2194         * recog.c: Likewise.
2195         * ree.c: Likewise.
2196         * reg-stack.c: Likewise.
2197         * regcprop.c: Likewise.
2198         * reginfo.c: Likewise.
2199         * regrename.c: Likewise.
2200         * regstat.c: Likewise.
2201         * reload.c: Likewise.
2202         * reload1.c: Likewise.
2203         * reorg.c: Likewise.
2204         * resource.c: Likewise.
2205         * rtl-chkp.c: Likewise.
2206         * rtl-error.c: Likewise.
2207         * rtlanal.c: Likewise.
2208         * rtlhooks.c: Likewise.
2209         * sanopt.c: Likewise.
2210         * sched-deps.c: Likewise.
2211         * sched-ebb.c: Likewise.
2212         * sched-rgn.c: Likewise.
2213         * sese.c: Likewise.
2214         * shrink-wrap.c: Likewise.
2215         * simplify-rtx.c: Likewise.
2216         * stack-ptr-mod.c: Likewise.
2217         * statistics.c: Likewise.
2218         * stmt.c: Likewise.
2219         * stor-layout.c: Likewise.
2220         * store-motion.c: Likewise.
2221         * stringpool.c: Likewise.
2222         * symtab.c: Likewise.
2223         * target-globals.c: Likewise.
2224         * targhooks.c: Likewise.
2225         * toplev.c: Likewise.
2226         * tracer.c: Likewise.
2227         * trans-mem.c: Likewise.
2228         * tree-affine.c: Likewise.
2229         * tree-call-cdce.c: Likewise.
2230         * tree-cfg.c: Likewise.
2231         * tree-cfgcleanup.c: Likewise.
2232         * tree-chkp-opt.c: Likewise.
2233         * tree-chkp.c: Likewise.
2234         * tree-chrec.c: Likewise.
2235         * tree-complex.c: Likewise.
2236         * tree-data-ref.c: Likewise.
2237         * tree-dfa.c: Likewise.
2238         * tree-diagnostic.c: Likewise.
2239         * tree-dump.c: Likewise.
2240         * tree-eh.c: Likewise.
2241         * tree-emutls.c: Likewise.
2242         * tree-if-conv.c: Likewise.
2243         * tree-inline.c: Likewise.
2244         * tree-into-ssa.c: Likewise.
2245         * tree-iterator.c: Likewise.
2246         * tree-loop-distribution.c: Likewise.
2247         * tree-nested.c: Likewise.
2248         * tree-nrv.c: Likewise.
2249         * tree-object-size.c: Likewise.
2250         * tree-outof-ssa.c: Likewise.
2251         * tree-parloops.c: Likewise.
2252         * tree-phinodes.c: Likewise.
2253         * tree-predcom.c: Likewise.
2254         * tree-pretty-print.c: Likewise.
2255         * tree-profile.c: Likewise.
2256         * tree-scalar-evolution.c: Likewise.
2257         * tree-sra.c: Likewise.
2258         * tree-ssa-address.c: Likewise.
2259         * tree-ssa-alias.c: Likewise.
2260         * tree-ssa-ccp.c: Likewise.
2261         * tree-ssa-coalesce.c: Likewise.
2262         * tree-ssa-copy.c: Likewise.
2263         * tree-ssa-dce.c: Likewise.
2264         * tree-ssa-dom.c: Likewise.
2265         * tree-ssa-dse.c: Likewise.
2266         * tree-ssa-forwprop.c: Likewise.
2267         * tree-ssa-ifcombine.c: Likewise.
2268         * tree-ssa-live.c: Likewise.
2269         * tree-ssa-loop-ch.c: Likewise.
2270         * tree-ssa-loop-im.c: Likewise.
2271         * tree-ssa-loop-ivcanon.c: Likewise.
2272         * tree-ssa-loop-ivopts.c: Likewise.
2273         * tree-ssa-loop-manip.c: Likewise.
2274         * tree-ssa-loop-niter.c: Likewise.
2275         * tree-ssa-loop-prefetch.c: Likewise.
2276         * tree-ssa-loop-unswitch.c: Likewise.
2277         * tree-ssa-loop.c: Likewise.
2278         * tree-ssa-math-opts.c: Likewise.
2279         * tree-ssa-operands.c: Likewise.
2280         * tree-ssa-phiopt.c: Likewise.
2281         * tree-ssa-phiprop.c: Likewise.
2282         * tree-ssa-pre.c: Likewise.
2283         * tree-ssa-propagate.c: Likewise.
2284         * tree-ssa-reassoc.c: Likewise.
2285         * tree-ssa-sccvn.c: Likewise.
2286         * tree-ssa-scopedtables.c: Likewise.
2287         * tree-ssa-sink.c: Likewise.
2288         * tree-ssa-strlen.c: Likewise.
2289         * tree-ssa-structalias.c: Likewise.
2290         * tree-ssa-tail-merge.c: Likewise.
2291         * tree-ssa-ter.c: Likewise.
2292         * tree-ssa-threadedge.c: Likewise.
2293         * tree-ssa-threadupdate.c: Likewise.
2294         * tree-ssa-uncprop.c: Likewise.
2295         * tree-ssa-uninit.c: Likewise.
2296         * tree-ssa.c: Likewise.
2297         * tree-ssanames.c: Likewise.
2298         * tree-stdarg.c: Likewise.
2299         * tree-streamer-in.c: Likewise.
2300         * tree-streamer-out.c: Likewise.
2301         * tree-streamer.c: Likewise.
2302         * tree-switch-conversion.c: Likewise.
2303         * tree-tailcall.c: Likewise.
2304         * tree-vect-data-refs.c: Likewise.
2305         * tree-vect-generic.c: Likewise.
2306         * tree-vect-loop-manip.c: Likewise.
2307         * tree-vect-loop.c: Likewise.
2308         * tree-vect-patterns.c: Likewise.
2309         * tree-vect-slp.c: Likewise.
2310         * tree-vect-stmts.c: Likewise.
2311         * tree-vectorizer.c: Likewise.
2312         * tree-vrp.c: Likewise.
2313         * tree.c: Likewise.
2314         * tsan.c: Likewise.
2315         * ubsan.c: Likewise.
2316         * value-prof.c: Likewise.
2317         * var-tracking.c: Likewise.
2318         * varasm.c: Likewise.
2319         * varpool.c: Likewise.
2320         * vtable-verify.c: Likewise.
2321         * web.c: Likewise.
2322         * wide-int-print.cc: Likewise.
2323         * wide-int.cc: Likewise.
2324         * xcoffout.c: Likewise.
2326 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
2328         * Makefile.in (NO_PIE_CFLAGS): New.
2329         (NO_PIE_FLAG): Likewise.
2330         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2331         (NO_PIE_FLAG_FOR_BUILD): Likewise.
2332         (BUILD_NO_PIE_CFLAGS): Likewise.
2333         (BUILD_NO_PIE_FLAG): Likewise.
2334         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2335         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2336         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2337         $(BUILD_NO_PIE_CFLAGS).
2338         (BUILD_CXXFLAGS): Likewise.
2339         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2340         $(BUILD_NO_PIE_FLAG).
2341         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
2342         (BUILD_NO_PIE_FLAG): Likewise.
2343         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2344         (NO_PIE_FLAG_FOR_BUILD): Likewise.
2345         * configure: Regenerated.
2347 2015-10-29  Richard Biener  <rguenther@suse.de>
2349         PR middle-end/56956
2350         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2351         unsigned conditonal negation to ABS_EXPR.
2353 2015-10-29  Richard Biener  <rguenther@suse.de>
2355         * gimple-match-head.c (gimple_simplify): Remove premature checking
2356         of builtin_decl_implicit of function calls we simplify.
2358 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
2360         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2361         (get_computation_cost_at): Ditto.
2362         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2363         and inv_expr_id.
2365 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2367         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2368         superfluous code.
2370 2015-10-28  Jason Merrill  <jason@redhat.com>
2372         * Makefile.in (TAGS): Include libcpp and libiberty.
2374 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2376         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2377         (extract_omp_for_data): Remove OpenACC special handling of
2378         chunking.
2380         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2381         (struct parallel): Update comment.
2382         (nvptx_reorg): Likewise.
2383         (nvptx_neuter): Cleanup whitespace.
2385 2015-10-28  Richard Henderson  <rth@redhat.com>
2387         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2389 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2391         PR target/67839
2392         * config/avr/predicates.md (low_io_address_operand): Don't
2393         consider MODE when computing upper bound.
2394         (io_address_operand): Likewise.
2396 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
2398         * fold-const.c (operand_equal_p): Do not verify that types are
2399         compatible for MEM_REFs.
2401 2015-10-28  Richard Biener  <rguenther@suse.de>
2403         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2404         in simplifying VEC_COND_EXPR conditions.
2406 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2408         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2409         into vi_next of a full_var.
2411 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2413         * tree-ssa-structalias.c (new_var_info, make_heapvar)
2414         (make_constraint_from_restrict, make_constraint_from_global_restrict)
2415         (create_function_info_for, create_variable_info_for_1)
2416         (create_variable_info_for): Add and handle add_id parameter.
2417         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2418         (init_base_vars): Add extra argument to calls to new_var_info.
2419         (get_vi_for_tree): Add extra argument to call to
2420         create_variable_info_for.
2421         (process_constraint, do_deref, process_all_all_constraints): Add extra
2422         argument to calls to new_scalar_tmp_constraint_exp.
2423         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2424         argument to calls to make_heapvar.
2425         (make_restrict_var_constraints): Add extra argument to call to
2426         make_constraint_from_global_restrict.
2427         (intra_create_variable_infos): Add extra argument to call to
2428         create_variable_info_for_1.
2429         (ipa_pta_execute): Add extra argument to call to
2430         create_function_info_for.
2432 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2434         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2435         (sibcall_value): Likewise.
2437 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2439         * config/nvptx/nvptx.h (struct machine_function): Add
2440         axis_predicate.
2441         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
2442         nvptx_expand_oacc_join): Declare.
2443         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
2444         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
2445         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
2446         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
2447         UNSPECV_JOINING, UNSPECV_JOIN): New.
2448         (BITS, BITD): New mode iterators.
2449         (br_true_uni, br_false_uni): New.
2450         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
2451         (oacc_dim_size, oacc_dim_pos): New.
2452         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
2453         (oacc_fork, oacc_join): New.
2454         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
2455         (worker_load<mode>, worker_store<mode>): New.
2456         (nvptx_barsync): New.
2457         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
2458         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
2459         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
2460         worker_bcast_sym): New.
2461         (nvptx_option_override): Initialize worker broadcast buffer.
2462         (nvptx_emit_forking, nvptx_emit_joining): New.
2463         (nvptx_init_axis_predicate): New.
2464         (nvptx_declare_function_name): Init axis predicates.
2465         (nvptx_expand_call): Add fork/join markers around routine call.
2466         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
2467         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
2468         (nvptx_gen_vcast): New.
2469         (struct wcast_data_t): New.
2470         (enum propagate_mask): New.
2471         (nvptx_gen_wcast): New.
2472         (nvptx_print_operand): Add 'S' case.
2473         (struct parallel): New.
2474         (parallel::parallel, parallel::~parallel): New.
2475         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
2476         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
2477         nvptx_find_par, nvptx_discover_pars): New.
2478         (nvptx_propagate): New.
2479         (vprop_gen, nvptx_vpropagate): New.
2480         (wprop_gen, nvptx_wpropagate): New.
2481         (nvptx_wsync): New.
2482         (nvptx_single, nvptx_skip_par): New.
2483         (nvptx_process_pars, nvptx_neuter_pars): New.
2484         (ntptx_reorg): Split blocks, generate parallel structure, apply
2485         neutering.
2486         (nvptx_cannot_copy_insn_p): New.
2487         (nvptx_file_end): Emit worker broadcast decl.
2488         (nvptx_goacc_fork_join): New.
2489         (TARGET_CANNOT_COPY_INSN_P): Override.
2490         (TARGET_GOACC_FORK_JOIN): Override.
2492 2015-10-28  Richard Biener  <rguenther@suse.de>
2494         * fold-const.c (negate_expr_p): Adjust the division case to
2495         properly avoid introducing undefined overflow.
2496         (fold_negate_expr): Likewise.
2498 2015-10-28  Richard Biener  <rguenther@suse.de>
2500         PR tree-optimization/65962
2501         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2502         Avoid creating loop carried dependences also for outer loops
2503         of the loop a use to replace is in.
2505 2015-10-28  Richard Biener  <rguenther@suse.de>
2507         * common.opt (fchecking): New flag controlling flag_checking.
2508         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
2509         * timevar.c (timer::print): Adjust output.
2510         * doc/invoke.texi (fchecking): Document.
2512 2015-10-28  Richard Biener  <rguenther@suse.de>
2514         PR middle-end/68067
2515         * fold-const.c (negate_expr_p): We cannot negate plus or minus
2516         if overflow is not wrapping.  Likewise multiplication unless
2517         one operand is constant and not power of two.
2518         (fold_negate_expr): Adjust accordingly.
2520 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2522         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
2523         fields.
2524         (is_oacc_parallel, is_oacc_kernels): New.
2525         (enclosing_target_ctx): May return NULL.
2526         (ctx_in_oacc_kernels_region): New.
2527         (check_oacc_kernel_gwv): New.
2528         (oacc_loop_or_target_p): Delete.
2529         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
2530         operands.  Strip reductions fro kernels.
2531         (scan_omp_target): Don't calculate gwv mask.
2532         (lower_oacc_head_mark, lower_oacc_loop_marker,
2533         lower_oacc_head_tail): New.
2534         (struct oacc_collapse): New.
2535         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
2536         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2537         Remove OpenACC handling.
2538         (expand_oacc_for): New.
2539         (expand_omp_for): Call expand_oacc_for.
2540         (lower_omp_for): Call lower_oacc_head_tail.
2542 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
2544         * attribs.c (check_attribute_tables): New function, broken out from...
2545         (init_attributes): Use it.
2546         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
2547         gcc_checking_assert and checking_* functions to eliminate
2548         ENABLE_CHECKING conditionals.
2549         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
2550         (pass_expand::execute): Likewise.
2551         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2552         * cgraphunit.c (mark_functions_to_output): Likewise.
2553         (cgraph_node::expand_thunk): Likewise.
2554         (symbol_table::compile): Likewise.
2555         * ddg.c (add_cross_iteration_register_deps): Likewise.
2556         (create_ddg_all_sccs): Likewise.
2557         * df-core.c (df_finish_pass, df_analyze): Likewise.
2558         * diagnostic-core.h: Likewise.
2559         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
2560         * dominance.c (calculate_dominance_info): Likewise.
2561         * dwarf2out.c (add_AT_die_ref): Likewise.
2562         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
2563         (loc_list_from_tree, gen_lexical_block_die): Likewise.
2564         gen_type_die_with_usage, gen_type_die): Likewise.
2565         (dwarf2out_decl): Likewise.
2566         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
2567         * except.c (duplicate_eh_regions): Likewise.
2568         * fwprop.c (register_active_defs, update_df_init): Likewise.
2569         (fwprop_init, fwprop_done): Likewise.
2570         (update_uses): Likewise.
2571         * ggc-page.c (ggc_grow): Likewise.
2572         * gimplify.c (gimplify_body): Likewise.
2573         (gimplify_hasher::equal): Likewise.
2574         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
2575         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
2576         Likewise.
2577         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
2578         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
2579         * hash-table.h (::find_empty_slot_for_expand): Likewise.
2580         * ifcvt.c (if_convert): Likewise.
2581         * ipa-cp.c (ipcp_propagate_stage): Likewise.
2582         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
2583         (odr_type_p, odr_types_equivalent_p): Likewise.
2584         (add_type_duplicate, get_odr_type): Likewise.
2585         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2586         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
2587         (sem_item_optimizer::verify_classes): Likewise.
2588         (sem_item_optimizer::traverse_congruence_split): Likewise.
2589         (sem_item_optimizer::checking_verify_classes): New.
2590         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
2591         method.
2592         * cfgrtl.c (commit_edge_insertions): Likewise.
2593         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
2594         (rtl_flow_call_edges_add): Likewise.
2595         * cgraph.c (symbol_table::create_edge): Likewise.
2596         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2597         * cgraph.h (symtab_node): Likewise.
2598         (symtab_node::checking_verify_symtab_nodes): Define.
2599         (cgraph_node::checking_verify_cgraph_nodes): Define.
2600         * cfghooks.h (checking_verify_flow_info): Define.
2601         * cfgloop.h (checking_verify_loop_structure): Define.
2602         * dominance.h (checking_verify_dominators): Define.
2603         * et-forest.c: Fix comment.
2604         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
2605         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2606         ENABLE_CHECKING conditionals.
2607         * ipa-inline-transform.c (save_inline_function_body): Likewise.
2608         * ipa-inline.c (inline_small_functions): Likewise.
2609         (early_inliner): Likewise.
2610         * ipa-inline.h (estimate_edge_growth): Likewise.
2611         * ipa-visibility.c (function_and_variable_visibility): Likewise.
2612         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2613         (ipa_single_use): Likewise.
2614         * ira-int.h: Likewise.
2615         * ira.c (ira): Likewise.
2616         * loop-doloop.c (doloop_optimize_loops): Likewise.
2617         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
2618         * loop-invariant.c (move_loop_invariants): Likewise.
2619         * lra-assigns.c (lra_assign): Likewise.
2620         * lra-constraints.c (lra_constraints): Likewise.
2621         * lra-eliminations.c (lra_eliminate): Likewise.
2622         * lra-int.h (struct lra_reg): Likewise.
2623         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2624         (lra_create_live_ranges_1): Likewise.
2625         * lra-remat.c (create_remat_bb_data): Likewise.
2626         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
2627         (lra): Likewise.
2628         (check_rtl): Always define. Remove incorrect guard around
2629         extract_constrain_insn call.
2630         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
2631         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2632         ENABLE_CHECKING conditionals.
2633         * lto-streamer-out.c (DFS::DFS): Likewise.
2634         (lto_output): Likewise.
2635         * lto-streamer.c (lto_streamer_init): Likewise.
2636         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
2637         expand_omp_target, execute_expand_omp): Likewise.
2638         (lower_omp_target): Likewise.
2639         * passes.c (execute_function_todo): Likewise.
2640         (execute_todo, execute_one_pass): Likewise.
2641         (verify_curr_properties): Always define.
2642         * predict.c (tree_estimate_probability: Use flag_checking,
2643         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2644         ENABLE_CHECKING conditionals.
2645         (propagate_freq): Likewise.
2646         * pretty-print.c (pp_format): Likewise.
2647         * real.c (real_to_decimal_for_mode): Likewise.
2648         * recog.c (split_all_insns): Likewise.
2649         * regcprop.c (kill_value_one_regno): Likewise.
2650         (copy_value): Likewise.
2651         (validate_value_data): Define unconditionally.
2652         * reload.c: Fix comment.
2653         * timevar.c: Include options.h
2654         * tree-ssa.h (checking_verify_ssa): Define.
2655         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
2656         * sched-deps.c (CHECK): Remove unused macro.
2657         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
2658         gcc_checking_assert and checking_* functions to eliminate
2659         ENABLE_CHECKING conditionals.
2660         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
2661         * sel-sched.c (struct moveop_static_params): Likewise.
2662         (find_best_reg_for_expr, move_cond_jump): Likewise.
2663         (move_op_orig_expr_not_found): Likewise.
2664         (code_motion_process_successors, move_op): Likewise.
2665         * ssa-iterators.h (first_readonly_imm_use): Likewise.
2666         (next_readonly_imm_use): Likewise.
2667         * store-motion.c (compute_store_table): Likewise.
2668         * symbol-summary.h (function_summary::function_summary): Likewise.
2669         * target.h (cumulative_args_t): Likewise.
2670         (get_cumulative_args, pack_cumulative_args): Likewise.
2671         * timevar.c: (timer::print): Likewise.
2672         * trans-mem.c (ipa_tm_execute): Likewise.
2673         * tree-cfg.c (move_stmt_op): Likewise.
2674         (move_sese_region_to_fn): Likewise.
2675         (gimple_flow_call_edges_add): Likewise.
2676         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
2677         Likewise.
2678         * tree-eh.c (remove_unreachable_handlers): Likewise.
2679         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2680         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
2681         * tree-into-ssa.c (update_ssa): Likewise.
2682         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
2683         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
2684         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
2685         * tree-predcom.c (suitable_component_p): Likewise.
2686         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
2687         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
2688         * tree-ssa-live.c (verify_live_on_entry): Likewise.
2689         * tree-ssa-live.h (register_ssa_partition): Likewise.
2690         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
2691         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
2692         (tree_transform_and_unroll_loop): Likewise.
2693         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2694         * tree-ssa-operands.c (get_expr_operands): Likewise.
2695         * tree-ssa-propagate.c (replace_exp_1): Likewise.
2696         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2697         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
2698         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
2699         * tree-ssanames.c (release_ssa_name_fn): Likewise.
2700         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
2701         * tree-vect-loop-manip.c
2702         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
2703         (slpeel_checking_verify_cfg_after_peeling): Likewise.
2704         (vect_do_peeling_for_loop_bound): Likewise.
2705         (vect_do_peeling_for_alignment): Likewise.
2706         * tree-vrp.c (supports_overflow_infinity): Likewise.
2707         (set_value_range): Likewise.
2708         * tree.c (free_lang_data_in_cgraph): Likewise.
2709         * value-prof.c (gimple_remove_histogram_value): Likewise.
2710         (free_hist): Likewise.
2711         * var-tracking.c (canonicalize_values_star): Likewise.
2712         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
2714 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2716         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
2717         IFN_GOACC_LOOP): New.
2718         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
2719         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
2720         IFN_UNIQUE_OACC_TAIL_MARK.
2721         (enum ifn_goacc_loop_kind): New.
2722         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
2723         IFN_UNIQUE_OACC_JOIN cases.
2724         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
2725         (expand_GOACC_LOOP): New.
2726         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
2727         * omp-low.c: Include gimple-pretty-print.h.
2728         (struct oacc_loop): New.
2729         (enum oacc_loop_flags): New.
2730         (oacc_thread_numbers): New.
2731         (oacc_xform_loop): New.
2732         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
2733         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
2734         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
2735         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
2736         oacc_loop_discovery): New.
2737         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
2738         oacc_loop_process): New.
2739         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
2740         (execute_oacc_device_lower): Discover & process loops.  Process
2741         internal fns.
2742         * target.def (goacc.fork_join): Change sense of hook, clarify
2743         documentation.
2744         * doc/tm.texi: Regenerated.
2746 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2748         * target-insns.def (oacc_fork, oacc_join): Define.
2749         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
2750         (goacc.fork_join): New GOACC hook.
2751         * targhooks.h (default_goacc_fork_join): Declare.
2752         * omp-low.c (default_goacc_forkjoin): New.
2753         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
2754         * doc/tm.texi: Regenerate.
2756 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2758         * omp-low.c (oacc_init_rediction_array): New.
2759         (oacc_initialize_reduction_data): Initialize array.
2761 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2763         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
2765 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2767         * internal-fn.c (expand_UNIQUE): New.
2768         * internal-fn.h (enum ifn_unique_kind): New.
2769         * internal-fn.def (IFN_UNIQUE): New.
2770         * target-insns.def (unique): Define.
2771         * gimple.h (gimple_call_internal_unique_p): New.
2772         * gimple.c (gimple_call_same_target_p): Check internal fn
2773         uniqueness.
2774         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
2775         * tree-ssa-threadedge.c
2776         (record_temporary_equivalences_from_stmts): Likewise.
2777         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
2779 2015-10-27  Richard Henderson  <rth@redhat.com>
2781         PR rtl-opt/67609
2782         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
2783         narrowing subregs on SSE and MMX registers.
2784         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
2785         appear to be sub-words of multi-register pseudos must be rejected.
2786         * doc/tm.texi: Regenerate.
2788 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2790         PR target/68102
2791         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
2792         operands[0] is a reg before taking its REGNO in split condition.
2793         (*movdi_aarch64): Likewise.
2795 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2797         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
2798         Handle floating point inner modes properly.
2800 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
2802         * tree-vect-looop.c
2803         (vectorizable_live_operation): Change iterator.
2805 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2806             Aditya Kumar  <aditya.k7@samsung.com>
2808         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
2809           function to schedule based on isl_schedule_node.
2810         (get_schedule_map_st): New schedule optimizer based on
2811         isl_schedule_node.
2812         (scop_get_domains): New. Return the isl_union_set containing the
2813         domains of all the pbbs.
2814         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
2816 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2818         PR target/67215
2819         * calls.c (prepare_call_address): Don't handle -fno-plt here.
2820         * config/i386/i386.c (ix86_expand_call): Generate indirect call
2821         via GOT for -fno-plt.  Support indirect call via GOT for x32.
2822         * config/i386/predicates.md (sibcall_memory_operand): Allow
2823         GOT memory operand.
2825 2015-10-27  Richard Biener  <rguenther@suse.de>
2827         PR tree-optimization/68104
2828         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
2829         strided access check ...
2830         (vect_compute_data_refs_alignment): ... here.
2832 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
2833             Joseph Myers  <joseph@codesourcery.com>
2834             Mark Shinwell  <shinwell@codesourcery.com>
2835             Andrew Stubbs  <ams@codesourcery.com>
2836             Rich Felker <dalias@libc.org>
2838         * config.gcc: Handle --enable-fdpic.
2839         * config/sh/constraints.md (Ccl): New constraint.
2840         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
2841         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
2842         __SH_FDPIC__.
2843         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
2844         library functions.
2845         * config/sh/sh-protos.h (function_symbol_result): New struct.
2846         (function_symbol): Return function_symbol_result.
2847         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
2848         declarations.
2849         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
2850         target hook.
2851         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
2852         (sh_option_override): Force -fPIC if FDPIC is in effect.
2853         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
2854         UNSPEC_GOTOFFFUNCDESC cases.
2855         (prepare_move_operands): Use FDPIC initial GOT register for
2856         TLS-related GOT access; inhibit cross-section address offset constants
2857         for FDPIC.
2858         (sh_assemble_integer): New function.
2859         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
2860         PC-relative call sites.
2861         (expand_ashiftrt): Adapt invocation of function_symbol.
2862         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
2863         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
2864         UNSPEC_GOTOFFFUNCDESC.
2865         (legitimize_pic_address): Resolve function symbols to function
2866         descriptors for FDPIC.  Do not use GOT-relative addressing for local
2867         data that may be read-only on FDPIC.
2868         (sh_emit_storesi, sh_emit_storehi): New functions.
2869         (sh_trampoline_init): Generate FDPIC trampolines.
2870         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
2871         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
2872         (sh_output_mi_thunk): Generate FDPIC call.
2873         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
2874         FDPIC, generate call site labels to use PC-relative addressing rather
2875         than GOT-relative addressing.
2876         (sh_conditional_register_usage): Make PIC register fixed and call used
2877         when FDPIC is in effect.
2878         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
2879         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
2880         sh_get_fdpic_reg_initial_val): New functions.
2881         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
2882         Handle -mfdpic.
2883         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2884         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
2885         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
2886         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
2887         FDPIC_SELF_SPECS.
2888         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
2889         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
2890         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
2891         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
2892         constants.
2893         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
2894         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
2895         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
2896         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
2897         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
2898         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
2899         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
2900         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
2901         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2902         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
2903         block_move_real, block_lump_real, block_move_real_i4,
2904         block_lump_real_i4): Add support for FDPIC calls.
2905         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
2906         call_value_pop): Adjust for new function_symbol signature.
2907         * config/sh/sh.opt (-mfdpic): New option.
2908         * doc/install.texi (Options specification): Document --enable-fdpic.
2909         * doc/invoke.texi (SH Options): Document -mfdpic.
2912 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2914         PR tree-optimization/65963
2915         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2916         LSHIFT_EXPRs as equivalent MULT_EXPRs.
2918 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2920         PR target/67929
2921         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
2922         * config/arm/constraints.md (Dp): Update callsite.
2923         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
2925 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2927         * builtins.c (fold_builtin_load_exponent): Rename to...
2928         (fold_const_builtin_load_exponent): ...this and only handle
2929         constant arguments.
2930         (fold_builtin_2): Update accordingly.
2931         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
2933 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2935         * builtins.c (fold_builtin_logb): Rename to...
2936         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
2937         (fold_builtin_significand): Rename to...
2938         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
2939         (fold_builtin_1): Update accordingly.
2941 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2943         * builtins.c (fold_builtin_fmin_fmax): Delete.
2944         (fold_builtin_2): Handle constant fmin and fmax arguments here.
2945         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
2947 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
2949         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
2950         for register extension into sign and zero register extension.
2951         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
2952         for sign and zero register extension.
2953         (cortexa57_addrcost_table): Likewise.
2954         (xgene1_addrcost_table): Likewise.
2956 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2958         * fold-const.c (fold_minmax): Delete.
2959         (fold_binary_loc): Don't call it.
2960         * match.pd: Add rules previously handled by fold_minmax.
2962 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2964         * builtins.c (fold_builtin_fma): Remove constant handling.
2965         (fold_builtin_3): Handle constant fma arguments here.
2967 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2969         * builtins.c (fold_builtin_fabs): Remove constant handling.
2970         (fold_builtin_abs): Likewise.
2972 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2974         * builtins.c (fold_builtin_copysign): Delete.
2975         (fold_builtin_2): Handle constant copysign arguments here.
2976         * match.pd: Add rules previously handled by fold_builtin_copysign.
2978 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2980         * builtins.c (fold_builtin_signbit): Delete.
2981         (fold_builtin_2): Handle constant signbit arguments here.
2982         * match.pd: Add rules previously handled by fold_builtin_signbit.
2984 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2986         * match.pd: Handle sqrt(x) cmp 0 specially.
2988 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
2990         * tree-vect-generic.c (expand_vector_operations_1): Check
2991         optab type before using it.
2993 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2995         * config/aarch64/aarch64-protos.h
2996         (struct tune_params): Add autoprefetcher_model field.
2997         * config/aarch64/aarch64.c: Include params.h
2998         (generic_tunings): Specify autoprefetcher_model value.
2999         (cortexa53_tunings): Likewise.
3000         (cortexa57_tunings): Likewise.
3001         (cortexa72_tunings): Likewise.
3002         (thunderx_tunings): Likewise.
3003         (xgene1_tunings): Likewise.
3004         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3005         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3006         (aarch64_override_options_internal): Set
3007         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3009 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3011         * builtins.c (fold_builtin_exponent): Delete.
3012         (fold_builtin_2): Handle constant expN arguments here.
3013         * match.pd: Fold expN(logN(x)) -> x.
3015 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3017         * builtins.c (fold_builtin_powi): Delete.
3018         (fold_builtin_2): Handle constant powi arguments here.
3019         * match.pd: Add rules previously handled by fold_builtin_powi.
3021 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3023         * builtins.c (fold_builtin_pow): Delete in favor of...
3024         (fold_const_builtin_pow): ...this new function.  Only handle constant
3025         arguments.
3026         (fold_builtin_2): Update accordingly.
3027         * match.pd: Add rules previously handled by fold_builtin_pow.
3029 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3031         * builtins.c (fold_builtin_hypot): Delete.
3032         (fold_builtin_2): Handle constant hypot arguments here.
3033         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
3034         hypot(x, x) to fabs(x)*sqrt(2).
3036 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3038         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3039         instead of make_ssa_name if not yet in SSA form.
3041 2015-10-27  Richard Biener  <rguenther@suse.de>
3043         * cfg.c (free_edge): Add function argument and use it instead of cfun.
3044         (clear_edges): Likewise.
3045         * cfg.h (clear_edges): Adjust prototype.
3046         * cfgexpand.c (pass_expand::execute): Adjust.
3047         * cfgloop.c (release_recorded_exits): Add function argument and use
3048         it instead of cfun.
3049         * cfgloop.h (release_recorded_exits): Adjust prototype.
3050         (loops_state_satisfies_p): Add overload with function argument.
3051         (loops_state_set): Likewise.
3052         (loops_state_clear): Likewise.
3053         (struct loop_iterator): Add function argument to constructor
3054         and iterator and use it instead of cfun.
3055         (FOR_EACH_LOOP_FN): New macro.
3056         (loop_optimizer_finalize): Add overload with function argument.
3057         * loop-init.c (loop_optimizer_init): Adjust.
3058         (fix_loop_structure): Likewise.
3059         (loop_optimizer_finaliz): Add function argument and use it
3060         instead of cfun.
3061         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3062         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3063         * cgraph.c (release_function_body): Do not push/pop cfun.
3064         * final.c (rest_of_clean_state): Adjust.
3065         * graphite.c (graphite_finalize): Likewise.
3066         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3067         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3068         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3069         (tree_unroll_loops_completely): Likewise.
3070         (pass_complete_unrolli::execute): Likewise.
3071         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3072         Add function argument and use it instead of cfun.
3073         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3074         Adjust prototype.
3075         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3076         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3077         instead of cfun.
3078         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3079         * tree-ssanames.c (fini_ssanames): Add function argument and use it
3080         instead of cfun.
3081         * tree-ssanames.c (fini_ssanames): Adjust prototype.
3082         * tree-vrp.c (execute_vrp): Adjust.
3083         * value-prof.c (free_histograms): Add function argument and use it
3084         instead of cfun.
3085         * value-prof.h (free_histograms): Adjust prototype.
3087 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3089         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3090         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3091         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
3093 2015-10-27  Tom de Vries  <tom@codesourcery.com>
3095         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3096         field_type.
3098 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
3100         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3101         (inv_can_prop_to_addr_use): New function.
3102         (record_use): Call can_prop_to_addr_uses, set the new field.
3103         (get_inv_cost): Count cost if inv can't be propagated into its
3104         address uses.
3106 2015-10-26  Doug Evans  <dje@google.com>
3108         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3110 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3112         * match.pd (fold_widened_comparison): Apply simplifications to all
3113         integral types.
3115 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
3117         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3118         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3119         * doc/tm.texi: Regenerated.
3120         * reorg.c (dbr_schedule): Use new hook.
3121         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3123 2015-10-26  Jeff Law  <law@redhat.com>
3125         PR tree-optimization/68013
3126         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3127         Make sure the first block in the path is in VISITED_BBs.
3129 2015-10-26  Richard Biener  <rguenther@suse.de>
3130         Dominik Vogt  <vogt@linux.vnet.ibm.com>
3132         PR middle-end/67443
3133         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3134         Properly prune ref->ref for accesses outside of ref.
3136 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3138         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3139         new statements to be inserted if inplace.  Allow calls to have
3140         nonempty sequences.
3142 2015-10-26  Richard Biener  <rguenther@suse.de>
3144         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3145         (do_valueize): New function.
3146         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3147         replace_uses_by.
3148         * tree-ssa-threadedge.c: Remove builtins.h include, include
3149         gimple-fold.h
3150         (fold_assignment_stmt): Remove.
3151         (threadedge_valueize): New function.
3152         (record_temporary_equivalences_from_stmts): Use
3153         gimple_fold_stmt_to_constant_1, note additional cleanup
3154         opportunities.
3156 2015-10-26  Richard Biener  <rguenther@suse.de>
3158         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3159         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3161 2015-10-26  Alan Hayward <alan.hayward@arm.com>
3163         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3164         VEC_COND_EXPR types.
3166 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3168         * auto-inc-dec.c (insert_move_insn_before): Delete.
3169         (attempt_change): Remember to cost the simple move in the
3170         FORM_PRE_ADD and FORM_POST_ADD cases.
3172 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3174         PR target/68091
3175         * config/sh/sh.c (sh_vector_mode_supported_p): Use
3176         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3178 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3180         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3181         factored out of ...
3182         (intra_create_variable_infos): ... here.
3184 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3186         * tree-ssa-structalias.c (intra_create_variable_infos): Add
3187         restrict_pointer_p and recursive_restrict_p variables.
3189 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3191         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3192         get_vi_for_tree call.
3194 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3196         PR middle-end/67989
3197         * optabs.c (expand_atomic_compare_and_swap): Handle case when
3198         ptarget_oval or ptarget_bool are const0_rtx.
3200 2015-10-26  Christian Bruel  <christian.bruel@st.com>
3202         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3203         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3204         * cp/method.c (implicitly_declare_fn): Likewise.
3205         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3206         * java/class.c (add_method_1): Likewise.
3208 2015-10-26  Richard Biener  <rguenther@suse.de>
3210         * alloc-pool.h (base_pool_allocator): Use placement new.
3211         (base_pool_allocator::remove): Likewise.  Compute size outside of
3212         flag_checking.
3214 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3216         * builtins.c (do_real_to_int_conversion): New function.
3217         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3218         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3219         arguments here.
3220         * match.pd: Add rules previously handled by fold_fixed_mathfn
3221         and fold_builtin_int_roundingfn.
3223 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3225         * match.pd: Use macros to define built-in operator lists.
3227 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
3228             Richard Biener  <rguenther@suse.de>
3230         * genmatch.c (dt_simplify::gen): Skip captures that are
3231         part of the result.
3232         (parser::parse_expr): Allow captures in results too.
3233         * builtins.c (fold_builtin_cexp): Delete.
3234         (fold_builtin_1): Handle constant cexp arguments here.
3235         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3237 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
3239         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3240         conditional compilation.
3241         (base_pool_allocator::remove): Use flag_checking.
3243 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
3245         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3247         PR middle-end/68079
3248         * dojump.c (do_compare_and_jump): Canonicalize both function and
3249         method types.
3251 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
3253         PR target/68084
3254         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3255         for =@ccae.
3257 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3259         PR ipa/pr67600
3260         * ipa-polymorphic-call.c
3261         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3262         instance offset with offset of outer type.
3264 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3266         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3268 2015-10-23  Caroline Tice  <cmtice@google.com>
3270         (from Richard Biener
3271         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
3272         call to iterative_hash_host_wide_int.
3274 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
3276         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3277         Define as yes.
3279 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3281         * tree-vect-generic.c (expand_vector_operations_1): Check
3282         optab exists before use it.
3284 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3286         * tree-vect-generic.c (expand_vector_condition): Avoid
3287         uninitialized variable warning.
3289 2015-10-23  Jeff Law  <law@redhat.com>
3291         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3292         here.  Instead...
3293         (execute_todo): Call it here.
3294         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3295         statistics
3296         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3298 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
3299             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3301         * config.gcc (enable_secureplt): Add *-linux*-musl*.
3303 2015-10-23  Jeff Law  <law@redhat.com>
3305         PR tree-optimization/67830
3306         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3307         Explicitly verify the mask has no bits outside the type of
3308         the innermost operands.
3310 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
3311             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3313         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3314         (MUSL_DYNAMIC_LINKER64): Define.
3315         (GNU_USER_DYNAMIC_LINKER32): Update.
3316         (GNU_USER_DYNAMIC_LINKER64): Update.
3317         (CHOOSE_DYNAMIC_LINKER): Update.
3319         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3320         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3321         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3322         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3323         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3324         (CHOOSE_DYNAMIC_LINKER): Update.
3325         (INCLUDE_DEFAULTS): Redefine.
3327         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3329 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3331         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3332         comparing addresses.
3334 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3336         * fold-const.c (operand_equal_p): Handle matching of vector
3337         constructors.
3339 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
3341         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3343 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
3344             Andrew Pinski  <apinski@cavium.com>
3346         PR rtl-optimization/67736
3347         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3348         of gen_lowpart.
3350 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3352         PR middle-end/68066
3353         * tree.c (build_truth_vector_type): Support BLK mode
3354         returned for boolean vector.
3356 2015-10-23  Alan Hayward <alan.hayward@arm.com>
3358         PR tree-optimization/65947
3359         * tree-vect-loop.c
3360         (vect_is_simple_reduction_1): Find condition reductions.
3361         (vect_model_reduction_cost): Add condition reduction costs.
3362         (get_initial_def_for_reduction): Add condition reduction initial var.
3363         (vect_create_epilog_for_reduction): Add condition reduction epilog.
3364         (vectorizable_reduction): Condition reduction support.
3365         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3366         * doc/sourcebuild.texi (Vector-specific attributes): Document
3367         vect_max_reduc
3369 2015-10-23  Richard Biener  <rguenther@suse.de>
3371         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3372         and builtins.def.
3374 2015-10-23  Richard Biener  <rguenther@suse.de>
3375             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3377         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3378         into (A ^ B) - B to match.pd
3379         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3381         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3382         New simplifier.
3383         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3384         New simplifier.
3385         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3386         New simplifier.
3387         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3388         New simplifier.
3389         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3390         INTEGER_CST@1)): New simplifier.
3392 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
3394         * builtins.c (integer_valued_real_p): Move to fold-const.c.
3395         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3396         (fold_builtin_ceil, fold_builtin_round): Delete.
3397         (fold_builtin_1): Handle constant trunc, floor, ceil and round
3398         arguments here.
3399         * convert.c (convert_to_real): Remove narrowing of rounding
3400         functions.
3401         * fold-const.h (integer_valued_real_unary_p)
3402         (integer_valued_real_binary_p, integer_valued_real_call_p)
3403         (integer_valued_real_single_p, integer_valued_real_p): Declare.
3404         * fold-const.c (tree_single_nonnegative_warnv_p): Move
3405         name_registered_for_update_p check to SSA_NAME case statement.
3406         Don't call tree_simple_nonnegative_warnv_p for SSA names.
3407         (integer_valued_real_unary_p, integer_valued_real_binary_p)
3408         (integer_valued_real_call_p, integer_valued_real_single_p)
3409         (integer_valued_real_invalid_p): New functions.
3410         (integer_valued_real_p): Move from fold-const.c and rework
3411         to call the functions above.  Handle SSA names.
3412         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3413         * gimple-fold.c (gimple_assign_integer_valued_real_p)
3414         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3415         (gimple_stmt_integer_valued_real_p): New functions.
3416         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3417         Fold f(x)->x for the same f if x is known to be integer-valued.
3418         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3419         the result.  Canonicalize floor(x) as trunc(x) if x is
3420         nonnegative.
3422 2015-10-23  Tom de Vries  <tom@codesourcery.com>
3424         * tree-ssa-structalias.c (intra_create_variable_infos): Use
3425         make_constraint_from.
3427 2015-10-23  Tom de Vries  <tom@codesourcery.com>
3429         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3430         setting of is_full_var in case of a single field.
3432 2015-10-22  Martin Sebor  <msebor@redhat.com>
3434         PR driver/68043
3435         * config/i386/i386.opt: Add missing periods to the ends of sentences.
3436         * config/msp430/msp430.opt: Same.
3438 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
3440         * doc/extend.exp (Global Register Variables): Rewrite.
3442 2015-10-22  Jeff Law  <law@redhat.com>
3444         * genattrtab.c (main): If we do not have any annul-true or annul-false
3445         slots, then write out a dummy eligible_for_annul_true or
3446         eligible_for_annul_false as needed.
3448 2015-10-22  Nick Clifton  <nickc@redhat.com>
3450         * config/msp430/msp430.opt: Add -msilicon-errata and
3451         -msilicon-errata-warn.
3452         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
3453         assembler.
3454         * doc/invoke.texi: Document new options.
3456 2015-10-22  Richard Biener  <rguenther@suse.de>
3458         PR tree-optimization/58497
3459         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
3460         (expand_vector_operations_1): Use it.  Lower operations on
3461         all uniform vectors to scalar operations if the HW supports it.
3463 2015-10-22  Richard Biener  <rguenther@suse.de>
3465         PR tree-optimization/19049
3466         PR tree-optimization/65962
3467         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
3468         to strided accesses if single-element interleaving doesn't work.
3470 2015-10-22  Richard Biener  <rguenther@suse.de>
3472         PR middle-end/68046
3473         PR middle-end/61893
3474         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
3475         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
3476         (expand_unop): Likewise.
3478 2015-10-22  Richard Biener  <rguenther@suse.de>
3480         * fold-const.c (fold_addr_of_array_ref_difference): Properly
3481         convert operands before folding a MINUS_EXPR.
3482         (fold_binary_loc): Move simplification of MINUS_EXPR on
3483         converted POINTER_PLUS_EXPRs ...
3484         * match.pd: ... here.
3486 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3488         * builtins.c (fold_builtin_tan): Delete.
3489         (fold_builtin_1): Handle constant tan arguments here.
3490         * match.pd: Simplify (tan (atan x)) to x.
3492 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3494         * builtins.c (fold_builtin_cproj): Delete.
3495         (fold_builtin_1): Handle constant arguments here.
3496         (build_complex_cproj): Move and rename to...
3497         * tree.c: (build_complex_inf): ...this.
3498         * tree.h (build_complex_inf): Declare.
3499         * match.pd: Fold cproj(x)->x if x has no infinity.
3500         Use build_complex_inf for existing cproj rules.
3502 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3504         PR target/68015
3505         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
3506         already have a comparison result.
3508 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3510         PR target/63304
3511         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
3512         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
3513         (aarch64_classify_address): Likewise.
3514         (aarch64_secondary_reload): Likewise.
3515         (aarch64_override_options_after_change_1): Adjust.
3516         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3517         Use aarch64_nopcrelative_literal_loads.
3518         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3519         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3520         Declare.
3522 2015-10-21  Martin Sebor  <msebor@redhat.com>
3524         PR driver/68043
3525         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
3526         (print_filtered_help): Reference aliased option's name and encourage
3527         readers to use it in preference to the alias if the former is not
3528         documented.  Mention when using an option is diagnosed.
3529         * gcc.c (display_help): End each sentence with a period.
3531         * common.opt: End each sentence that describes an option with
3532         a period.
3533         * config/aarch64/aarch64.opt: Same.
3534         * config/alpha/alpha.opt: Same.
3535         * config/arc/arc.opt: Same.
3536         * config/arm/arm.opt: Same.
3537         * config/avr/avr.opt: Same.
3538         * config/bfin/bfin.opt: Same.
3539         * config/c6x/c6x.opt: Same.
3540         * config/cr16/cr16.opt: Same.
3541         * config/cris/cris.opt: Same.
3542         * config/cris/linux.opt: Same.
3543         * config/darwin.opt: Same.
3544         * config/epiphany/epiphany.opt: Same.
3545         * config/fr30/fr30.opt: Same.
3546         * config/frv/frv.opt: Same.
3547         * config/ft32/ft32.opt: Same.
3548         * config/g.opt: Same.
3549         * config/h8300/h8300.opt: Same.
3550         * config/i386/cygming.opt: Same.
3551         * config/i386/djgpp.opt: Same.
3552         * config/i386/i386.opt: Same.
3553         * config/i386/interix.opt: Same.
3554         * config/i386/mingw-w64.opt: Same.
3555         * config/i386/mingw.opt: Same.
3556         * config/ia64/ia64.opt: Same.
3557         * config/ia64/ilp32.opt: Same.
3558         * config/iq2000/iq2000.opt: Same.
3559         * config/linux.opt: Same.
3560         * config/lm32/lm32.opt: Same.
3561         * config/lynx.opt: Same.
3562         * config/m32c/m32c.opt: Same.
3563         * config/m32r/m32r.opt: Same.
3564         * config/m68k/ieee.opt: Same.
3565         * config/m68k/m68k.opt: Same.
3566         * config/mcore/mcore.opt: Same.
3567         * config/mep/mep.opt: Same.
3568         * config/microblaze/microblaze.opt: Same.
3569         * config/mips/mips.opt: Same.
3570         * config/mmix/mmix.opt: Same.
3571         * config/mn10300/mn10300.opt: Same.
3572         * config/moxie/moxie.opt: Same.
3573         * config/msp430/msp430.opt: Same.
3574         * config/nios2/elf.opt: Same.
3575         * config/nios2/nios2.opt: Same.
3576         * config/nvptx/nvptx.opt: Same.
3577         * config/pa/pa-hpux.opt: Same.
3578         * config/pa/pa-hpux1010.opt: Same.
3579         * config/pa/pa-hpux1111.opt: Same.
3580         * config/pa/pa-hpux1131.opt: Same.
3581         * config/pa/pa.opt: Same.
3582         * config/pa/pa64-hpux.opt: Same.
3583         * config/pdp11/pdp11.opt: Same.
3584         * config/rl78/rl78.opt: Same.
3585         * config/rs6000/476.opt: Same.
3586         * config/rs6000/aix64.opt: Same.
3587         * config/rs6000/darwin.opt: Same.
3588         * config/rs6000/linux64.opt: Same.
3589         * config/rs6000/rs6000.opt: Same.
3590         * config/rs6000/sysv4.opt: Same.
3591         * config/s390/s390.opt: Same.
3592         * config/s390/tpf.opt: Same.
3593         * config/sh/sh.opt: Same.
3594         * config/sol2.opt: Same.
3595         * config/sparc/long-double-switch.opt: Same.
3596         * config/sparc/sparc.opt: Same.
3597         * config/spu/spu.opt: Same.
3598         * config/stormy16/stormy16.opt: Same.
3599         * config/tilegx/tilegx.opt: Same.
3600         * config/tilepro/tilepro.opt: Same.
3601         * config/v850/v850.opt: Same.
3602         * config/vax/vax.opt: Same.
3603         * config/visium/visium.opt: Same.
3604         * config/vms/vms.opt: Same.
3605         * config/vxworks.opt: Same.
3606         * config/xtensa/xtensa.opt: Same.
3608 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3609             Sebastian Pop  <s.pop@samsung.com>
3611         * graphite-scop-detection.c (parameter_index_in_region): Update call to
3612         invariant_in_sese_p_rec.
3613         * graphite-sese-to-poly.c (extract_affine): Same.
3614         * sese.c (invariant_in_sese_p_rec): Pass in an extra
3615         parameter has_vdefs.
3616         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
3617         variable depends on virtual definitions in the current region.
3618         * sese.h (invariant_in_sese_p_rec): Update declaration.
3620 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3621             Sebastian Pop  <s.pop@samsung.com>
3623         * graphite-scop-detection.c (build_scops): Do not handle scops
3624         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
3625         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
3627 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
3629         * config.in: Regenerate.
3630         * configure: Regenerate.
3631         * configure.ac (CHECKING_P): Define.
3632         * system.h: Use CHECKING_P.
3634 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3636         PR ipa/67056
3637         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
3638         is negative we don't know the type.
3639         (check_stmt_for_type_change): Skip constructors of non-polymorphic
3640         types as those won't help devirutalization.
3642 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3644         * fold-const.c (operand_equal_p): Add code matching empty constructors.
3646 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3648         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
3649         comments.
3650         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
3651         Add comments on sign of the result.
3652         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
3653         Recurse on operand #1 instead of operand #0.
3654         <CEIL_MOD_EXPR>: Do not recurse.
3655         <ROUND_MOD_EXPR>: Likewise.
3657 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3659         * cfgrtl.c (pass_free_cfg::execute): Adjust.
3660         * final.c (dbr_sequence_length): Always define.
3661         (shorten_branches): Adjust.
3662         * genattr-common.c (main): Always define DELAY_SLOTS.
3663         * genattr.c (main): Unconditionally declare functions and define
3664         macros related to delay slots.
3665         * genattrtab.c (write_eligible_delay): Adjust.
3666         (main): Always write out delay slot functions.
3667         * opts.c (default_options_table): Adjust.
3668         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
3669         (redirect_with_delay_list_safe_p): Likewise.
3670         (fill_simple_delay_slots): Likewise.
3671         (fill_slots_from_thread): Likewise.
3672         (make_return_insns): Likewise.
3673         (dbr_schedule): Likewise.
3674         (rest_of_handle_delay_slots): Likewise.
3675         (pass_delay_slots::gate): Likewise.
3676         * toplev.c (process_options): Likewise.
3678 2015-10-21  Richard Henderson  <rth@redhat.com>
3680         * targhooks.c (default_addr_space_pointer_mode): Remove check
3681         for generic address space.
3682         (default_addr_space_address_mode): Likewise.
3683         (default_addr_space_valid_pointer_mode): Likewise.
3684         (default_addr_space_legitimate_address_p): Likewise.
3685         (default_addr_space_legitimize_address): Likewise.
3686         * target.def (addr_space.pointer_mode): Update documentation
3687         of default behavior.
3688         (addr_space.address_mode): Likewise.
3689         * tm.texi: Update.
3691         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
3692         address spaces.
3694 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3696         * builtins.c (fold_builtin_cabs): Delete.
3697         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
3698         * match.pd: Add rules previously handled by fold_builtin_cabs.
3700 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3702         * fold-const.h (fold_strip_sign_ops): Delete.
3703         * fold-const.c (fold_strip_sign_ops): Likewise.
3704         (fold_unary_loc, fold_binary_loc): Remove calls to it.
3705         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
3706         (fold_builtin_ccos): Delete.
3707         (fold_builtin_pow): Don't call fold_strip_sign_ops.
3708         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
3709         Remove fndecl argument.
3710         (fold_builtin_1): Update calls accordingly.  Handle constant
3711         cos, cosh, ccos and ccosh here.
3713 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3715         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
3716         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
3717         * common.opt (fssa-backprop): New option.
3718         * fold-const.h (negate_mathfn_p): Declare.
3719         * fold-const.c (negate_mathfn_p): Make public.
3720         * timevar.def (TV_TREE_BACKPROP): New.
3721         * tree-pass.h (make_pass_backprop): Declare.
3722         * passes.def (pass_backprop): Add.
3723         * gimple-ssa-backprop.c: New file.
3725 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3726             Sebastian Pop  <s.pop@samsung.com>
3728         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
3729         Do not call create_empty_if_region_on_edge when cond_expr is true.
3730         (translate_isl_ast_node_for): Check whether a guard has been generated.
3732 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3734         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
3735         (operator=): Removed.
3736         (dr_info): Make alias_set number the last argument with default
3737         value of invalid_alias_set.
3738         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
3739         of dr_info.
3740         (rewrite_reductions_out_of_ssa): Iterate only through the
3741         basic blocks which are inside region.
3742         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
3743         * sese.h (struct sese_l): Removed assignment operator.
3744         (split_region_for_bb): Removed dead code.
3746 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3748         * graphite-poly.h (struct dr_info): Removed conversion constructor.
3749         (struct scop): Renamed scop::region to scop::scop_info
3750         (scop_set_region): Same.
3751         (SCOP_REGION): Removed
3752         (SCOP_CONTEXT): Removed.
3753         (POLY_SCOP_P): Removed.
3754         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3755         Rename scop->region to scop->scop_info.
3756         (add_parameters_to_ivs_params): Same.
3757         (graphite_regenerate_ast_isl): Same.
3758         * graphite-poly.c (new_scop): Same.
3759         (free_scop): Same.
3760         (print_scop_params): Same.
3761         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
3762         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
3763         (dot_all_scops_1): Rename scop->region to scop->scop_info.
3764         (scop_detection::nb_pbbs_in_loops): Same.
3765         (find_scop_parameters): Same.
3766         (try_generate_gimple_bb): Same.
3767         (gather_bbs::before_dom_children): Same.
3768         (gather_bbs::after_dom_children): Same.
3769         (build_scops): Same.
3770         * graphite-sese-to-poly.c (build_scop_scattering): Same.
3771         (extract_affine_chrec): Same.
3772         (extract_affine): Same.
3773         (set_scop_parameter_dim): Same.
3774         (build_loop_iteration_domains): Same.
3775         (create_pw_aff_from_tree): Same.
3776         (add_param_constraints): Same.
3777         (build_scop_iteration_domain): Same.
3778         (build_scop_drs): Same.
3779         (analyze_drs_in_stmts): Same.
3780         (insert_out_of_ssa_copy_on_edge): Same.
3781         (rewrite_close_phi_out_of_ssa):Same.
3782         (rewrite_reductions_out_of_ssa):Same.
3783         (handle_scalar_deps_crossing_scop_limits):Same.
3784         (rewrite_cross_bb_scalar_deps):Same.
3785         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
3786         (build_poly_scop):Same.
3787         (build_alias_set): Use pointer to dr_info.
3788         * graphite.c (print_graphite_scop_statistics):
3789         (graphite_transform_loops):
3790         * sese.h (struct sese_l): Remove conversion constructor.
3792 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3794         PR middle-end/67966
3795         * tree.c (verify_type): Verify that TYPE_MODE match
3796         between TYPE_CANONICAL and type.
3797         * expr.c (store_expr_with_bounds): Revert my previous change.
3798         * expmed.c (store_bit_field_1): Revert prevoius change.
3799         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
3800         to match for all types.
3802 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
3804         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
3805         nesting.
3807 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
3809         * doc/tm.texi: Regenerated.
3810         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
3811         * stor-layout.c (layout_type): Use mode to get vector mask size.
3812         * target.def (get_mask_mode): New.
3813         * targhooks.c (default_get_mask_mode): New.
3814         * targhooks.h (default_get_mask_mode): New.
3815         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
3816         for boolean vector.
3817         * tree.c (MAX_BOOL_CACHED_PREC): New.
3818         (nonstandard_boolean_type_cache): New.
3819         (build_nonstandard_boolean_type): New.
3820         (make_vector_type): Vector mask has no canonical type.
3821         (build_truth_vector_type): New.
3822         (build_same_sized_truth_vector_type): New.
3823         (truth_type_for): Support vector masks.
3824         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
3825         (build_truth_vector_type): New.
3826         (build_same_sized_truth_vector_type): New.
3827         (build_nonstandard_boolean_type): New.
3828         * tree-cfg.c (verify_gimple_comparison) Require boolean
3829         vector type for vector comparison.
3830         (verify_gimple_assign_ternary): Likewise.
3831         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
3832         condition operand.
3833         * tree-vect-stmts.c (vectorizable_condition): Use boolean
3834         vector type for vector comparison.
3835         * tree-vect-generic.c (elem_op_func): Add new operand to hold
3836         vector type.
3837         (do_unop): Adjust to modified function type.
3838         (do_binop): Likewise.
3839         (do_plus_minus): Likewise.
3840         (do_negate); Likewise.
3841         (expand_vector_piecewise): Likewise.
3842         (do_cond): Likewise.
3843         (do_compare): Use comparison instead of condition.
3844         (expand_vector_divmod): Use boolean vector type for comparison.
3845         (expand_vector_operations_1): Skip scalar mask operations.
3847 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
3849         * omp-low.c (simd_clone_create): Set in_other_partition
3850         for created clones.
3852 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
3854         * doc/extend.exp (Local Register Variables): Rewrite.
3856 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3858         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
3859         and x*x in cases where the operands are sign ops.  Extend these
3860         rules to handle copysign as a sign op (including for cos, cosh
3861         and pow, which already treated negate and abs as sign ops).
3863 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
3865         PR target/68018
3866         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
3867         for 64-bit MS_ABI targets also when default incoming stack boundary
3868         is overriden.
3870 2015-10-21  Richard Biener  <rguenther@suse.de>
3872         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
3873         cond stmts, enhanced and split out from ...
3874         (vn_phi_eq): ... here.
3876 2015-10-21  Richard Biener  <rguenther@suse.de>
3878         PR middle-end/68031
3879         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
3880         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
3881         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
3882         make sure they are not registered for update.
3884 2015-10-21  Richard Biener  <rguenther@suse.de>
3886         PR tree-optimization/68026
3887         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
3888         unsigned VARYING values.
3890 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
3892         * asan.c (asan_emit_stack_protection): Don't pass local stack to
3893         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
3894         NULL and use local stack than.
3895         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
3896         in addition to __asan_init.
3897         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
3898         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
3899         * asan.h (asan_intercepted_p): Handle new string builtins.
3900         * ubsan.c (ubsan_use_new_style_p): New function.
3901         (ubsan_instrument_float_cast): If location is unknown, assign
3902         input_location to loc. Propagate loc to ubsan_create_data if
3903         ubsan_use_new_style_p returned true.
3905 2015-10-21  Jeff Law  <law@redhat.com>
3907         * Makefile.in (OBJS): Remove sched-vis.c
3908         * sched-vis.c: Removed.  Code moved into...
3909         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
3910         * rtl.h: Remove prototypes for functions now living in print-rtl.c
3911         * print-rtl.h Add prototypes for new functions in print-rtl.c.
3912         * auto-inc-dec.c: Include print-rtl.h
3913         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
3914         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
3916         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
3917         ATTRIBUTE_UNUSED.
3919 2015-10-21  Richard Biener  <rguenther@suse.de>
3920             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3922         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
3923         to match.pd.
3924         Move (a * (1 << b)) is (a << b) to match.pd.
3925         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
3926         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
3927         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
3929         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
3930         New simplifier.
3931         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
3932         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
3933         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
3934         : New simplifier.
3935         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
3936         New simplifier.
3937         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
3939 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
3940             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3941             Alan Modra  <amodra@gmail.com>
3943         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
3944         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
3945         (LINK_SPEC): Add %(link_secure_plt).
3946         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
3947         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
3949 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
3950             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3952         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
3953         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
3955 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3957         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
3958         New function.
3959         (fusion_load_store): Use it.
3960         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
3961         ldp and stp in VD modes.
3962         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
3963         (store_pair<mode>, VD): Likewise.
3965 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
3967         PR rtl-optimization/67609
3968         * lra-splill.c (lra_final_code_change): Don't remove all
3969         sub-registers.
3971 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3973         * simplify-rtx.c (simplify_binary_operation): If either operand was
3974         a constant pool reference use them if all other simplifications failed.
3976 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3978         * config/aarch64/aarch64.md
3979         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
3980         * config/aarch64/aarch64-simd.md
3981         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
3982         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
3983         (aarch64_fpconst_pow_of_2): New function.
3984         (aarch64_vec_fpconst_pow_of_2): Likewise.
3985         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
3986         prototype.
3987         (aarch64_vec_fpconst_pow_of_2): Likewise.
3988         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
3989         (aarch64_fp_vec_pow2): Likewise.
3991 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
3993         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
3994         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
3995         * config/alpha/alpha.c (alpha_function_arg_advance): Update
3996         ALPHA_ARG_SIZE usage.
3997         (alpha_arg_partial_bytes): Ditto.
3999 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4001         PR target/66810
4002         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4003         error_mark_node decls.
4005 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4007         PR target/67963
4008         PR target/67985
4009         * common/config/i386/i386-common.c (ix86_handle_option): Remove
4010         OPT_miamcu handling.
4011         * config/i386/i386.c (PTA_NO_80387): New macro.
4012         (processor_alias_table): Add PTA_NO_80387 to lakemont.
4013         (ix86_option_override_internal): Update MASK_80387 from
4014         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
4015         SSE math only if 80387 is supported.  Don't change
4016         MASK_FLOAT_RETURNS.
4017         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4018         80387 is supported.
4019         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4020         if TARGET_80387 is true and TARGET_IAMCU is false.
4021         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4022         is true and TARGET_IAMCU_P is false.
4024 2015-10-20  Richard Biener  <rguenther@suse.de>
4026         PR tree-optimization/68017
4027         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4029 2015-10-20  Martin Liska  <mliska@suse.cz>
4031         * cgraphclones.c (cgraph_node::create_virtual_clone):
4032         Verify cgraph_node.local.versionable instead of calling
4033         tree_versionable_function_p.
4034         * ipa-cp.c (determine_versionability): Save the information
4035         to ipa_node_params summary.
4036         (ipcp_versionable_function_p): Use it.
4037         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4038         (ipcp_generate_summary): Do not compute cgraph_node
4039         versionability.
4040         * ipa-inline-analysis.c (inline_generate_summary): Compute
4041         versionability for all cgraph nodes.
4042         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4043         ipa_node_params::versionability.
4044         * ipa-prop.h (struct ipa_node_params): Declare it.
4046 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4048         PR other/67868
4049         * varasm.c (assemble_variable): Move special vtv handling to..
4050         (handle_vtv_comdat_sections): .. here. New function.
4051         (output_object_block): Handle vtv sections.
4053 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4055         PR target/66912
4056         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4058 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
4060         * doc/extend.texi: Update documentation WRT inline functions.
4062 2015-10-20  Alan Modra  <amodra@gmail.com>
4064         PR go/66870
4065         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4066         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4067         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4069 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
4071         PR rtl-optimization/66790
4072         * df.h (DF_MIR): New macro.
4073         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4074         (DF_MIR_INFO_BB): New macro.
4075         (DF_MIR_IN, DF_MIR_OUT): New macros.
4076         (struct df_mir_bb_info): New.
4077         (df_mir): New macro.
4078         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4079         declarations.
4080         (df_mir_get_bb_info): New.
4081         * df-problems.c (struct df_mir_problem_data): New.
4082         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4083         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4084         df_mir_confluence_0, df_mir_confluence_n,
4085         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4086         df_mir_bottom_dump, df_mir_verify_solution_start,
4087         df_mir_verify_solution_end): New.
4088         (problem_MIR): New.
4089         (df_mir_add_problem, df_mir_simulate_one_insn): New.
4090         * timevar.def (TV_DF_MIR): New.
4091         * ree.c: Include bitmap.h
4092         (add_removable_extension): Add an INIT_REGS parameter.  Use it
4093         to skip zero-extensions that may get an uninitialized register.
4094         (find_removable_extensions): Compute must-initialized registers
4095         using the MIR dataflow problem. Update the call to
4096         add_removable_extension.
4097         (find_and_remove_re): Call df_mir_add_problem.
4099 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
4101         * common/config/mn10300/mn10300-common.c
4102         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4103         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4105 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
4107         * doc/extend.texi (Explicit Register Variables): Simplify and
4108         avoid unnecessary and confusion abbreviations.  Update cross
4109         references.
4110         doc/implement-c.tex: Update cross reference.
4112 2015-10-19  Jeff Law  <law@redhat.com>
4114         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4115         that create irreducible loops unless the path elimiantes a multiway
4116         branch.
4118 2015-10-19  Richard Biener  <rguenther@suse.de>
4120         PR tree-optimization/67975
4121         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4122         * tree-cfg.c (extract_true_false_controlled_edges): Split out
4123         core worker from ...
4124         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4125         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4126         instead of block number for PHIs with two or one args.
4127         (vn_phi_eq): Compare edge predicates of PHIs that are in different
4128         blocks.
4130 2015-10-19  Richard Biener  <rguenther@suse.de>
4132         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4133         (gimple_stmt_nonnegative_warnv_p): Use it.
4134         * match.pd (CPROJ): New operator list.
4135         (cproj (complex ...)): Move simplifications from ...
4136         * builtins.c (fold_builtin_cproj): ... here.
4138 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4140         * config/i386/i386.c (ix86_expand_vector_move): Use
4141         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4142         alignment.
4144 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4146         * doc/invoke.texi: Replace @optindex with @opindex.
4148 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4150         PR target/67995
4151         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4152         arch= is set,  clear all bits in x_ix86_isa_flags, except for
4153         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4155 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
4157         PR middle-end/68002
4158         * common.opt (fkeep-static-functions): New option.
4159         * doc/invoke.texi: Document it.
4160         * cgraphunit.c (cgraph_node::finalize_function): Use it.
4162 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4164         * sched-int.h (struct autopref_multipass_data_): Remove offset
4165         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
4166         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4167         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
4168         (autopref_rank_data): New function.
4169         (autopref_rank_for_schedule): Use it.
4170         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4172 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
4174         PR other/65800
4175         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4177 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4179         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4180         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
4181         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4182         (STANDARD_STARTFILE_PREFIX_1): New.
4183         (STANDARD_STARTFILE_PREFIX_2): New.
4185 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4187         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4188         (darwin_driver_init): Note a version-min when provided on the c/l.
4189         * config/darwin.h (%darwin_minversion): Remove.
4190         * config/i386/darwin.h: Likewise.
4191         * config/rs6000/darwin.h: Likewise.
4192         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4193         rather than an arbitrary constant.
4195 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4197         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4198         PPC, detect conflicts between -arch and multilib settings.  Detect
4199         and warn about conflicts between multiple -arch definitions.
4201 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4203         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4205 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4207         * lra-constraints.c (add_next_usage_insn): Change argument type
4208         from rtx to rtx_insn *.
4210 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
4212         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4213         for Lakemont.
4215 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
4217         * config/tilepro/gen-mul-tables.cc: Adjust include files.
4218         * config/tilegx/mul-tables.c: Regenerate.
4219         * config/tilepro/mul-tables.c: Regenerate.
4221         * config/tilegx/tilegx-c.c: Adjust include files.
4222         * config/tilegx/tilegx.c: Likewise.
4223         * config/tilepro/tilepro-c.c: Likewise.
4224         * config/tilepro/tilepro.c: Likewise.
4225         * config/aarch64/aarch64-builtins.c: Likewise.
4226         * config/aarch64/aarch64.c: Likewise.
4227         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4228         * config/alpha/alpha.c: Likewise.
4229         * config/arc/arc.c: Likewise.
4230         * config/arm/aarch-common.c: Likewise.
4231         * config/arm/arm-builtins.c: Likewise.
4232         * config/arm/arm-c.c: Likewise.
4233         * config/arm/arm.c: Likewise.
4234         * config/avr/avr-c.c: Likewise.
4235         * config/avr/avr-devices.c: Likewise.
4236         * config/avr/avr-log.c: Likewise.
4237         * config/avr/avr.c: Likewise.
4238         * config/bfin/bfin.c: Likewise.
4239         * config/c6x/c6x.c: Likewise.
4240         * config/cr16/cr16.c: Likewise.
4241         * config/cris/cris.c: Likewise.
4242         * config/darwin-c.c: Likewise.
4243         * config/darwin-driver.c: Likewise.
4244         * config/darwin.c: Likewise.
4245         * config/default-c.c: Likewise.
4246         * config/epiphany/epiphany.c: Likewise.
4247         * config/epiphany/mode-switch-use.c: Likewise.
4248         * config/epiphany/resolve-sw-modes.c: Likewise.
4249         * config/fr30/fr30.c: Likewise.
4250         * config/frv/frv.c: Likewise.
4251         * config/ft32/ft32.c: Likewise.
4252         * config/glibc-c.c: Likewise.
4253         * config/h8300/h8300.c: Likewise.
4254         * config/i386/host-cygwin.c: Likewise.
4255         * config/i386/host-mingw32.c: Likewise.
4256         * config/i386/i386-c.c: Likewise.
4257         * config/i386/i386.c: Likewise.
4258         * config/i386/msformat-c.c: Likewise.
4259         * config/i386/winnt-cxx.c: Likewise.
4260         * config/i386/winnt-stubs.c: Likewise.
4261         * config/i386/winnt.c: Likewise.
4262         * config/ia64/ia64-c.c: Likewise.
4263         * config/ia64/ia64.c: Likewise.
4264         * config/iq2000/iq2000.c: Likewise.
4265         * config/lm32/lm32.c: Likewise.
4266         * config/m32c/m32c-pragma.c: Likewise.
4267         * config/m32c/m32c.c: Likewise.
4268         * config/m32r/m32r.c: Likewise.
4269         * config/mcore/mcore.c: Likewise.
4270         * config/mep/mep-pragma.c: Likewise.
4271         * config/mep/mep.c: Likewise.
4272         * config/microblaze/microblaze-c.c: Likewise.
4273         * config/microblaze/microblaze.c: Likewise.
4274         * config/mips/mips-tables.opt
4275         * config/mips/mips.c: Likewise.
4276         * config/mmix/mmix.c: Likewise.
4277         * config/mn10300/mn10300.c: Likewise.
4278         * config/moxie/moxie.c: Likewise.
4279         * config/msp430/msp430-c.c: Likewise.
4280         * config/msp430/msp430.c: Likewise.
4281         * config/nds32/nds32-cost.c: Likewise.
4282         * config/nds32/nds32-fp-as-gp.c: Likewise.
4283         * config/nds32/nds32-intrinsic.c: Likewise.
4284         * config/nds32/nds32-isr.c: Likewise.
4285         * config/nds32/nds32-md-auxiliary.c: Likewise.
4286         * config/nds32/nds32-memory-manipulation.c: Likewise.
4287         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4288         * config/nds32/nds32-predicates.c: Likewise.
4289         * config/nds32/nds32.c: Likewise.
4290         * config/nios2/nios2.c: Likewise.
4291         * config/nvptx/mkoffload.c: Likewise.
4292         * config/nvptx/nvptx.c: Likewise.
4293         * config/pa/pa.c: Likewise.
4294         * config/pdp11/pdp11.c: Likewise.
4295         * config/rl78/rl78-c.c: Likewise.
4296         * config/rl78/rl78.c: Likewise.
4297         * config/rs6000/host-darwin.c: Likewise.
4298         * config/rs6000/rs6000-c.c: Likewise.
4299         * config/rs6000/rs6000-linux.c: Likewise.
4300         * config/rs6000/rs6000.c: Likewise.
4301         * config/rx/rx.c: Likewise.
4302         * config/s390/s390-c.c: Likewise.
4303         * config/s390/s390.c: Likewise.
4304         * config/sh/sh-c.c: Likewise.
4305         * config/sh/sh-mem.cc: Likewise.
4306         * config/sh/sh.c: Likewise.
4307         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4308         * config/sh/sh_treg_combine.cc: Likewise.
4309         * config/sol2-c.c: Likewise.
4310         * config/sol2-cxx.c: Likewise.
4311         * config/sol2-stubs.c: Likewise.
4312         * config/sol2.c: Likewise.
4313         * config/sparc/sparc-c.c: Likewise.
4314         * config/sparc/sparc.c: Likewise.
4315         * config/spu/spu-c.c: Likewise.
4316         * config/spu/spu.c: Likewise.
4317         * config/stormy16/stormy16.c: Likewise.
4318         * config/v850/v850-c.c: Likewise.
4319         * config/v850/v850.c: Likewise.
4320         * config/vax/vax.c: Likewise.
4321         * config/visium/visium.c: Likewise.
4322         * config/vms/vms-c.c: Likewise.
4323         * config/vms/vms.c: Likewise.
4324         * config/vxworks.c: Likewise.
4325         * config/winnt-c.c: Likewise.
4326         * config/xtensa/xtensa.c: Likewise.
4328 2015-10-16  Christian Bruel  <christian.bruel@st.com>
4330         PR target/67745
4331         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4332         (FUNCTION_BOUNDARY_P): New macro:
4333         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4334         New hook.
4335         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4336         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4337         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4338         * function.c (allocate_struct_function): Call
4339         relayout_function hook.
4340         * passes.c (rest_of_decl_compilation): Likewise.
4342 2015-10-16  Christian Bruel  <christian.bruel@st.com>
4344         PR target/67745
4345         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4346         * config/arm/arm.c (arm_option_override_internal): Call
4347         arm_override_options_after_change_1.
4348         (arm_override_options_after_change): New function.
4349         (arm_override_options_after_change_1): Likewise.
4350         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4352 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4354         Revert:
4355         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4356         empty constructors.
4358 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4360         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4361         argument is an ADDR_EXPR.
4363 2015-10-16  Richard Biener  <rguenther@suse.de>
4365         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4366         and get rid of force_gimple_operand_gsi.
4367         (gimple_fold_builtin_memory_chk): Likewise.
4368         (gimple_fold_builtin_stxcpy_chk): Likewise.
4369         (rewrite_to_defined_overflow): Likewise.
4370         (gimple_convert_to_ptrofftype): New function.
4371         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4373 2015-10-16  Richard Biener  <rguenther@suse.de>
4375         * tree-nested.h (build_addr): Adjust prototype.
4376         * tree-nested.c (build_addr): Remove context argument and use
4377         mark_addressable.
4378         (get_static_chain): Adjust calls to build_addr.
4379         (convert_nl_goto_reference): Likewise.
4380         (convert_tramp_reference_op): Likewise.
4381         (finalize_nesting_tree_1): Likewise.
4382         * value-prof.c (gimple_ic): Likewise.
4383         * gimple-low.c (lower_builtin_setjmp): Likewise.
4384         * tree-parloops.c (take_address_of): Likewise.
4385         (create_call_for_reduction_1): Likewise.
4386         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4387         (gimple_gen_ic_func_profiler): Likewise.
4389 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4391         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4392         empty constructors.
4394 2015-10-16  Michael Collison  <michael.collison@linaro.org>
4395             Andrew Pinski <andrew.pinski@caviumnetworks.com>
4397         * match.pd ((x < y) && (x < z) -> x < min (y,z),
4398         (x > y) and (x > z) -> x > max (y,z))
4400 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
4401             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4403         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4404         (DYNAMIC_LINKER): Renamed to ...
4405         (GLIBC_DYNAMIC_LINKER): This.
4406         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4408 2015-10-15  Marek Polacek  <polacek@redhat.com>
4410         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4411         gimple_call_builtin instead of is_gimple_call.
4413 2015-10-15  Richard Biener  <rguenther@suse.de>
4415         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4417 2015-10-15  Richard Biener  <rguenther@suse.de>
4419         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4420         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4421         * tree-vect-loop.c (get_initial_def_for_induction): Drop
4422         use of force_gimple_operand in favor of gimple_build.
4423         Use vect_get_new_ssa_name.
4424         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4425         (vectorizable_mask_load_store): Likewise.
4426         (vectorizable_call): Likewise.
4427         (vectorizable_store): Likewise.
4428         (vectorizable_load): Likewise.
4429         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4431 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
4433         PR tree-optimization/67945
4434         * tree-pass.h (PROP_gimple_opt_math): New property flag.
4435         * generic-match-head.c (canonicalize_math_p): New function.
4436         * gimple-match-head.c: Include tree-pass.h.
4437         (canonicalize_math_p): New function.
4438         * match.pd: Group math built-in rules into simplifications
4439         and canonicalizations.  Guard the latter with canonicalize_math_p.
4440         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4441         PROP_gimple_opt_math property.
4443 2015-10-15  Marek Polacek  <polacek@redhat.com>
4445         PR tree-optimization/67953
4446         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
4448 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
4450         * config.gcc: Recognize "." in architecture base name for AArch64.
4452 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
4454         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
4455         ROUND_UP macro.
4456         * config/mips/mips.c (mips_setup_incoming_varargs): Use
4457         ROUND_DOWN to calculate off.
4458         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
4459         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
4460         rounded_size.
4462 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4464         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
4466 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
4467             Torvald Riegel  <triegel@redhat.com>
4469         PR target/67281
4470         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
4471         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4472         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
4473         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
4474         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
4475         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4476         trechkpt, treclaim, tsr, ttest): New define_expands.
4477         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4478         __TM_FENCE__ for htm.
4479         * doc/extend.texi: Update documentation for htm builtins.
4481 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
4483         PR target/67967
4484         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
4485         REG_CFA_EXPRESSION to aligned SSE stores.
4487 2015-10-14  Jeff Law  <law@redhat.com>
4489         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
4490         num_threaded_edges for successful FSM threads too.
4492 2015-10-14  Richard Biener  <rguenther@suse.de>
4494         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
4495         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
4496         (vect_get_vec_def_for_operand): Remove unused parameter.
4497         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
4498         (vect_create_epilog_for_reduction): Likewise.
4499         (vectorizable_reduction): Likewise.
4500         (vectorizable_live_operation): Likewise.
4501         * tree-vect-patterns.c (type_conversion_p): Likewise.
4502         (vect_recog_vector_vector_shift_pattern): Likewise.
4503         (check_bool_pattern): Likewise.
4504         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4505         (vect_analyze_slp_cost_1): Likewise.
4506         * tree-vect-stmts.c (process_use): Likewise.
4507         (vect_get_vec_def_for_operand): Do not handle reductions.
4508         (vect_get_vec_defs): Adjust.
4509         (vectorizable_mask_load_store): Likewise.
4510         (vectorizable_call): Likewise.
4511         (vectorizable_simd_clone_call): Likewise.
4512         (vect_get_loop_based_defs): Likewise.
4513         (vectorizable_conversion): Likewise.
4514         (vectorizable_assignment): Likewise.
4515         (vectorizable_shift): Likewise.
4516         (vectorizable_operation): Likewise.
4517         (vectorizable_store): Likewise.
4518         (vectorizable_load): Likewise.
4519         (vect_is_simple_cond): Likewise.
4520         (vectorizable_condition): Likewise.
4521         (vect_is_simple_use): Remove unused parameters.
4522         (vect_is_simple_use_1): Adjust and rename.
4524 2015-10-14  Richard Biener  <rguenther@suse.de>
4526         PR tree-optimization/67915
4527         * match.pd: Handle comparisons of addresses of STRING_CSTs.
4528         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
4529         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
4530         stmt folding in favor of GIMPLE one.
4532 2015-10-14  Marek Polacek  <polacek@redhat.com>
4534         PR tree-optimization/67815
4535         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
4536         (reassociate_bb): Call it.
4538 2015-10-14  Richard Biener  <rguenther@suse.de>
4540         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4541         Reset info at start.
4542         (vect_analyze_group_access_1): Add debug print.
4543         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
4544         (vect_compute_single_scalar_iteration_cost): ... to this.
4545         (vect_analyze_loop_2): Adjust.
4546         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
4547         * tree-vectorizer.h: ... here.
4548         (add_stmt_info_to_vec): Remove.
4549         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
4551 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4553         * targhooks.c (default_target_option_pragma_parse): Do not warn if
4554         called on behalf of "#pragma GCC pop_options".
4556 2015-10-14  Tom de Vries  <tom@codesourcery.com>
4558         * cfganal.c (verify_no_unreachable_blocks): New function.
4559         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
4560         verify_no_unreachable_blocks.
4561         cfganal.h (verify_no_unreachable_blocks): Declare.
4563 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
4565         * common.opt: Add flag_checking.
4566         * system.h (CHECKING_P): Define.
4568 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
4569             Aldy Hernandez  <aldyh@redhat.com>
4570             Ilya Verbin  <ilya.verbin@intel.com>
4572         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
4573         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
4574         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
4575         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
4576         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
4577         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
4578         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
4579         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
4580         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
4581         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
4582         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4583         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4584         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
4585         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4586         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
4587         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4588         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4589         (struct cgraph_simd_clone_arg): Adjust comment.
4590         * coretypes.h (struct gomp_ordered): New forward decl.
4591         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
4592         set critical clauses to it.
4593         (gimple_build_omp_ordered): Return gomp_ordered * instead of
4594         gimple *.  Add CLAUSES argument, set ordered clauses to it.
4595         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
4596         GIMPLE_OMP_ORDERED.
4597         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
4598         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
4599         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
4600         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
4601         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
4602         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
4603         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
4604         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
4605         renumber
4606         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
4607         (gomp_critical): Add clauses field.
4608         (gomp_ordered): New struct.
4609         (is_a_helper <gomp_ordered *>::test): New inline.
4610         (gimple_build_omp_critical): Add CLAUSES argument.
4611         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
4612         instead of gimple *.
4613         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
4614         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
4615         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
4616         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
4617         inline functions.
4618         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
4619         (dump_gimple_omp_target): Handle enter data and exit data.
4620         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
4621         (dump_gimple_omp_critical): Print clauses.
4622         (dump_gimple_omp_ordered): New function.
4623         (dump_gimple_omp_task): Handle taskloop.
4624         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
4625         GIMPLE_OMP_ORDERED.
4626         * gimple-walk.c (walk_gimple_op): Walk clauses on
4627         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
4628         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
4629         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
4630         (struct gimplify_omp_ctx): Add loop_iter_var,
4631         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
4632         and target_firstprivatize_array_bases fields.
4633         (delete_omp_context): Release loop_iter_var.
4634         (gimplify_bind_expr): Handle ORT_NONE.
4635         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
4636         ORT_COMBINED_TARGET.
4637         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
4638         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
4639         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
4640         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
4641         ctx->target_map_scalars_firstprivate.
4642         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
4643         data sharing clauses.  For data sharing clause with VLA decl
4644         on omp target/target data don't add firstprivate for the pointer.
4645         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
4646         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
4647         the addition of ORT_COMBINED_TARGET.
4648         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
4649         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
4650         pointers as zero length array sections and
4651         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
4652         data sharing.
4653         (omp_check_private): Handle omp_member_access_dummy_var vars.
4654         (find_decl_expr): New function.
4655         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
4656         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
4657         Handle OMP_CLAUSE_GANG separately.  Handle
4658         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4659         clauses.  Diagnose linear clause on combined
4660         distribute {, parallel for} simd construct, unless it is the loop
4661         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
4662         Handle map clauses with COMPONENT_REF.  Initialize
4663         ctx->target_map_scalars_firstprivate,
4664         ctx->target_firstprivatize_array_bases and
4665         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
4666         linear clause even to target region if combined.  Remove
4667         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
4668         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
4669         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
4670         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
4671         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
4672         For linear clause on worksharing loop combined with parallel add
4673         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
4674         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
4675         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
4676         taskloop if needed.
4677         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
4678         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
4679         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
4680         GOMP_MAP_POINTER.
4681         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
4682         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
4683         in target body.  Handle removal of struct mapping if struct is not
4684         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
4685         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
4686         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
4687         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
4688         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
4689         clause appear together.  Handle
4690         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
4691         clause if it has map-type-modifier always.  Handle
4692         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4693         clauses.
4694         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
4695         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
4696         callers.
4697         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
4698         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
4699         iterators in doacross loops.
4700         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
4701         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
4702         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
4703         for the addition of ORT_COMBINED_TARGET.
4704         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
4705         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
4706         and OMP_TARGET_EXIT_DATA.
4707         (gimplify_omp_ordered): New function.
4708         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
4709         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
4710         Gimplify clauses on OMP_CRITICAL.
4711         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
4712         expand_GOMP_SIMD_ORDERED_END): New functions.
4713         * internal-fn.def (GOMP_SIMD_ORDERED_START,
4714         GOMP_SIMD_ORDERED_END): New internal functions.
4715         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
4716         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
4717         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
4718         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
4719         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
4720         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
4721         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
4722         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
4723         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
4724         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
4725         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
4726         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
4727         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
4728         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
4729         adjust type.
4730         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
4731         GOMP_target_data_41, adjust type.
4732         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
4733         GOMP_target_update_41, adjust type.
4734         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
4735         field.
4736         (struct omp_for_data): Add ordered and simd_schedule fields.
4737         (omp_member_access_dummy_var, unshare_and_remap_1,
4738         unshare_and_remap, is_taskloop_ctx): New functions.
4739         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
4740         (extract_omp_for_data): Handle taskloops and doacross loops
4741         and simd schedule modifier.
4742         (omp_adjust_chunk_size): New function.
4743         (get_ws_args_for): Use it.
4744         (lookup_sfield): Change first argument to splay_tree_key,
4745         add overload with first argument tree.
4746         (maybe_lookup_field): Likewise.
4747         (use_pointer_for_field): Handle omp_member_access_dummy_var.
4748         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
4749         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
4750         (build_outer_var_ref): Add LASTPRIVATE argument, handle
4751         taskloops and omp_member_access_dummy_var vars.
4752         (build_sender_ref): Change first argument to splay_tree_key,
4753         add overload with first argument tree.
4754         (install_var_field): For mask & 8 use &DECL_UID as key instead
4755         of the tree itself.
4756         (fixup_child_record_type): Const qualify *.omp_data_i.
4757         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
4758         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
4759         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
4760         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
4761         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
4762         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
4763         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
4764         kinds.
4765         (add_taskreg_looptemp_clauses): New function.
4766         (scan_omp_parallel): Use it.
4767         (scan_omp_task): Likewise.
4768         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4769         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
4770         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4771         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
4772         sandwiched taskloop constructs.  Type check
4773         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
4774         region.  Diagnose depend(source) or depend(sink:...) on
4775         target constructs or task/taskloop.
4776         (handle_simd_reference): Use get_name.
4777         (lower_rec_input_clauses): Likewise.  Ignore all
4778         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
4779         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
4780         before passing it to omp_clause_{default,copy}_ctor.  Handle
4781         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
4782         lastprivate_firstprivate flag for linear that needs copyin and
4783         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
4784         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
4785         on taskloop lookup decl in outer context.  Pass true to
4786         build_outer_var_ref lastprivate argument.  Handle
4787         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
4788         outside of outer taskloop for.
4789         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
4790         OMP_CLAUSE_DECL.
4791         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
4792         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
4793         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
4794         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
4795         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
4796         abstract origin.  Handle omp_member_access_dummy_var vars.
4797         (expand_parallel_call): Use expand_omp_build_assign.
4798         (expand_task_call): Handle taskloop construct expansion.  Add
4799         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
4800         integers.  Add priority argument to GOMP_task* calls.  Or in
4801         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
4802         GOMP_task call.
4803         (expand_omp_build_assign): Add prototype.  Add AFTER
4804         argument, if true emit statements after *GSI_P and continue linking.
4805         (expand_omp_taskreg): Adjust expand_task_call caller.
4806         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
4807         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
4808         zero_iter2_bb and first_zero_iter2 arguments, handle computation
4809         of counts even for ordered loops.
4810         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
4811         (expand_omp_ordered_source, expand_omp_ordered_sink,
4812         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
4813         functions.
4814         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
4815         clauses on worksharing loop.  Handle DOACROSS loop expansion.
4816         (expand_omp_for_static_nochunk): Handle linear clauses on
4817         worksharing loop.  Adjust expand_omp_for_init_counts
4818         callers.
4819         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
4820         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
4821         expand_omp_for_init_counts callers.
4822         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
4823         functions.
4824         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
4825         Handle doacross loops.
4826         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4827         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
4828         GOMP_target_{41,update_41,enter_exit_data} libcalls.
4829         (expand_omp): Don't expand ordered depend constructs here, record
4830         ord_stmt instead for later expand_omp_for_generic.
4831         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4832         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
4833         clause as stand-alone directive.
4834         (lower_omp_ordered_clauses): New function.
4835         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
4836         don't lower anything.
4837         (lower_omp_for_lastprivate): Use last _looptemp_ clause
4838         on taskloop for comparison.
4839         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
4840         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
4841         expansion for linear adjustments.
4842         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4843         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
4844         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
4845         to tree * pointing to the stmt's clauses.
4846         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
4847         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4848         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
4849         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
4850         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
4851         clauses.  Always use short kind and 8-bit align shift.
4852         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
4853         (struct lower_omp_regimplify_operands_data): New type.
4854         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
4855         New functions.
4856         (lower_omp_1): Use lower_omp_regimplify_operands instead of
4857         gimple_regimplify_operands.
4858         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4859         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
4860         clause as stand-alone directive.
4861         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
4862         (simd_clone_mangle): Mangle the various linear kinds
4863         per the new ABI.
4864         (simd_clone_adjust_argument_types): Handle
4865         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
4866         (simd_clone_init_simd_arrays): Don't do anything for uval.
4867         (simd_clone_adjust): Handle
4868         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4869         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
4870         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
4871         * omp-low.h (omp_member_access_dummy_var): New prototype.
4872         * passes.def (pass_simduid_cleanup): Schedule another copy of the
4873         pass after all optimizations.
4874         * tree.c (omp_clause_code_name): Add entries for
4875         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4876         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4877         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
4878         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
4879         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
4880         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
4881         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4882         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
4883         clauses.
4884         * tree-core.h (enum omp_clause_linear_kind): New.
4885         (struct tree_omp_clause): Change type of map_kind
4886         from unsigned char to unsigned int.  Add subcode.if_modifier
4887         and subcode.linear_kind fields.
4888         (enum omp_clause_code): Add
4889         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4890         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4891         (OMP_CLAUSE_REDUCTION): Document
4892         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4893         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
4894         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
4895         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
4896         operand.
4897         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
4898         operand.
4899         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
4900         codes.
4901         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
4902         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
4903         char.
4904         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
4905         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
4906         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
4907         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
4908         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
4909         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
4910         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
4911         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
4912         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
4913         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
4914         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
4915         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
4916         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
4917         * tree-inline.c (remap_gimple_stmt): Handle clauses on
4918         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
4919         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
4920         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
4921         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4922         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4923         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4924         (convert_local_omp_clauses): Likewise.
4925         * tree-pretty-print.c (dump_omp_clause): Handle
4926         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4927         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4928         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
4929         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
4930         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
4931         GOMP_MAP_FORCE_DEALLOC.  Handle
4932         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
4933         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
4934         and clauses on OMP_ORDERED and OMP_CRITICAL.
4935         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
4936         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
4937         (vectorize_loops): Adjust comments.
4938         (pass_simduid_cleanup::execute): Likewise.
4939         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4940         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
4941         * wide-int.h (wi::gcd): New.
4943 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
4945         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
4946         (ix86_function_arg_advance): Ditto.
4947         (ix86_function_arg): Ditto.
4948         (ix86_gimplify_va_arg): Ditto.
4949         (ix86_class_max_nregs): Ditto.
4950         (inline_memory_move_cost): Ditto.
4951         (ix86_set_reg_reg_cost): Ditto.
4952         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
4954 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
4956         PR middle-end/67912
4957         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
4959 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
4961         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
4962         ROUND_UP macro and UNITS_PER_WORD * 2.
4963         * config/sparc/sparc.c (sparc_compute_frame_size):
4964         Use ROUND_UP and ROUND_DOWN macros where applicable.
4965         (function_arg_record_value, function_arg_record_value_1)
4966         (function_arg_record_value_1): Ditto.
4967         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
4968         alignment to double-word.
4969         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
4970         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
4971         rounded_size.
4973 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
4975         * rtl.h (print_insn): Fix prototype.
4977 2015-10-13  Tom de Vries  <tom@codesourcery.com>
4979         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
4980         -1.  Add assert that returned entry matches phi argument.
4981         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
4982         free_stmt_vec_info_vec ...
4983         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
4984         with -1.
4986 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
4988         PR tree-optimization/67909, 67947
4989         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
4990         really skip the inner loop.
4992 2015-10-13  Jeff Law  <law@redhat.com>
4994         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4995         Allow single block jump threading paths.
4997 2015-10-13  Tom de Vries  <tom@codesourcery.com>
4999         PR tree-optimization/67476
5000         * doc/invoke.texi (@item parloops-schedule): New item.
5001         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5002         * tree-parloops.c: Include params-enum.h.
5003         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5005 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5007         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5008         * params-enum.h: New file.
5009         * opts.c (handle_param): Handle case that param arg is a string.
5010         * params-list.h: Handle DEFPARAMENUM5 in params.def.
5011         * params.c (find_param): New function, factored out of ...
5012         (set_param_value): ... here.
5013         (param_string_value_p): New function.
5014         * params.h (struct param_info): Add value_names field.
5015         (find_param, param_string_value_p): Declare.
5017 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5019         PR tree-optimization/67476
5020         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5022 2015-10-13  Richard Biener  <rguenther@suse.de>
5024         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5025         the data dependence vector.
5026         (vect_peeling_hash_insert): Get the peeling hash table as argument.
5027         (vect_peeling_hash_get_lowest_cost): Likewise.
5028         (vect_enhance_data_refs_alignment): Adjust.
5029         (struct _vect_peel_info, struct _vect_peel_extended_info,
5030         struct peel_info_hasher): Move from ...
5031         * tree-vectorizer.h: ... here.
5032         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5033         (LOOP_VINFO_PEELING_HTAB): Likewise.
5034         (struct _loop_vec_info): Remove min_profitable_iters and
5035         peeling_htab members.
5036         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5037         here.
5038         (destroy_loop_vec_info): Adjust.
5039         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5040         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5041         to estimate alias versioning cost.
5042         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5044 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
5046         * real.h (real_isinteger): Declare.
5047         * real.c (real_isinteger): New function.
5048         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5049         if y is an even integer.
5051 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5053         revert:
5054         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5055         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5056         counts when these are more informative.
5058 2015-10-12  Jeff Law  <law@redhat.com>
5060         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5061         (fsm_find_control_stmt_paths): Change name of first argument to
5062         more accurately relfect what it really is.  Handle simplification
5063         of GIMPLE_COND after finding a thread path for NAME.
5064         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5065         nontrivial conditions to be handled by FSM threader.
5066         (thread_through_normal_block): Extract the name to looup via
5067         FSM threader from COND_EXPR.
5069         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5070         restriction that traced SSA_NAME is a user variable.
5072 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5074         PR tree-optimization/67476
5075         * omp-low.c (expand_omp_for_generic): Add missing phis.
5077 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5079         PR tree-optimization/67476
5080         * omp-low.c (expand_omp_for_generic): Handle simple latch.
5082 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
5084         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5085         tables: add tbl3 and tbx4.
5086         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5087         (aarch64_tbx4v8qi): New.
5088         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5089         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5090         Rewrite using builtin functions.
5091         * config/aarch64/iterators.md (UNSPEC_TBX): New.
5093 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5095         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5096         ROUND_UP macro.
5097         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5098         Use ROUND_UP and ROUND_DOWN macros where applicable.
5099         (rs6000_darwin64_record_arg_flush): Ditto.
5100         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5101         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5102         rounded_size.
5104 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5106         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5107         (AARCH64_ROUND_DOWN): Ditto.
5108         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5110 2015-10-12  Richard Biener  <rguenther@suse.de>
5112         PR ipa/67783
5113         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5114         code that analyzes IVs on each stmt but in a cheaper way avoiding
5115         quadratic behavior.
5117 2015-10-12  Nick Clifton  <nickc@redhat.com>
5119         * config/msp430/msp430.c (msp430_mcu_names): Rename to
5120         msp430_mcu_data, add fields for ISA and hardware multiply
5121         support.  Import latest data from the devices.csv file.
5122         (msp430_override_option): Use the data from the new array.
5123         (msp430_use_f5_series_hwmult): Likewise.
5124         (use_32bit_hwmult): Likewise.
5125         (msp430_no_hwmult): Likewise.
5126         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5127         MCU names.
5128         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5129         not recognised then no hardware multiply support is assumed and
5130         that only the MSP430 ISA is allowed.
5132 2015-10-12  Richard Biener  <rguenther@suse.de>
5134         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5135         related code ...
5136         (vect_analyze_loop_2): ... here.
5138 2015-10-11  Jason Merrill  <jason@redhat.com>
5140         PR c++/67557
5141         * expr.c (store_field): Call store_constructor directly when
5142         storing a CONSTRUCTOR into a target smaller than its type.
5143         Guard against unsafe bitwise copy.
5145 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5147         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5148         counts when these are more informative.
5150 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5152         * tree-profile.c (tree_profiling): Do not clear
5153         pure/const when not instrumenting.
5154         (pass tree_profile): Add dump of symtab.
5156 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5158         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5159         addresses.
5160         (fold_addr_of_array_ref_difference): Likewise.
5162 2015-10-11  Jeff Law  <law@redhat.com>
5164         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5165         tree-ssa-threadbackward.c.
5166         (fsm_find_control_statement_thread_paths): Likewise.
5167         (thread_through_normal_block): Break out FSM bits and move them
5168         into a new function in tree-ssa-threadbackward.c.  Call new function
5169         instead.
5170         Minimize header file usage.
5171         * tree-ssa-threadbackward.h: New file.
5172         * tree-ssa-threadbackward.c: Likewise.
5173         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5175 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
5177         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5179 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
5181         PR rtl-optimization/67864
5182         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5183         fallthrough edges for conditional jumps.  Don't sort candidate
5184         edges if not optimizing for speed.
5186 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5188         * defaults.h (REVERSE_CONDITION): New default definition.
5189         * jump.c (reversed_comparison_code_parts): Adjust.
5191 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5193         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5194         check HARD_FRAME_POINTER_IS_ARG_POINTER.
5196 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5198         * defaults.h (FRAME_ADDR_RTX): New default definition.
5199         * builtins.c (expand_builtin_return_addr): Adjust.
5201 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5203         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5204         * builtins.c (expand_builtin_return_addr): Adjust.
5206 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5208         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5209         * builtins.c (expand_builtin_return_addr): Adjust.
5210         * doc/tm.texi: Likewise.
5211         * doc/tm.texi.in: Likewise.
5212         * except.c (expand_builtin_unwind_init): Likewise.
5214 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5216         * builtins.c (expand_builtin_return_addr): Adjust.
5217         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5219 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
5221         * tree.c (type_with_interoperable_signedness): New.
5222         (gimple_canonical_types_compatible_p): Use it.
5223         * tree.h (type_with_interoperable_signedness): Declare
5225 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
5227         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5228         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5229         when OEP_ADDRESS_OF is se.
5231 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
5232             Sebastian Pop  <s.pop@samsung.com>
5234         * graphite-dependences.c (scop_get_dependences): Add dump of the
5235         data dependence graph.
5236         * graphite-poly.c (print_isl_union_map): New.
5237         (debug_isl_union_map): New.
5238         * graphite-poly.h (print_isl_union_map): Declare.
5239         (debug_isl_union_map): Declare.
5241 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
5242             Sebastian Pop  <s.pop@samsung.com>
5244         * graphite-poly.c (print_iteration_domain): Remove verbosity.
5245         Remove OpenScop formatting.
5246         (print_iteration_domains): Same.
5247         (debug_iteration_domain): Same.
5248         (debug_iteration_domains): Same.
5249         (print_pdr): Same.
5250         (debug_pdr): Same.
5251         (dump_gbb_cases): Same.
5252         (dump_gbb_conditions): Same.
5253         (print_pdrs): Same.
5254         (debug_pdrs): Same.
5255         (print_pbb_body): Same.
5256         (print_pbb): Same.
5257         (print_scop_params): Same.
5258         (print_scop_context): Same.
5259         (print_scop): Same.
5260         (debug_pbb_domain): Same.
5261         (debug_pbb): Same.
5262         (debug_scop_context): Same.
5263         (debug_scop): Same.
5264         (debug_scop_params): Same.
5265         * graphite-poly.h: Same.
5266         * graphite.c (graphite_transform_loops): Same.
5268 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5270         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5271         call that isn't needed.
5273 2015-10-09  Jeff Law  <law@redhat.com>
5275         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5276         rather than moving each name to the freelist individually.
5278 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
5280         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5281         * frame-header-opt.c: New file.
5282         * config/mips/mips-proto.h (mips_register_frame_header_opt):
5283         Add prototype.
5284         * config/mips/mips.c (mips_compute_frame_info): Check
5285         optimize_call_stack flag.
5286         (mips_option_override): Register new frame_header_opt pass.
5287         (mips_frame_info, mips_int_mask, mips_shadow_set,
5288         machine_function): Move these types to...
5289         * config/mips/mips.h: here.
5290         (machine_function): Add does_not_use_frame_header and
5291         optimize_call_stack fields.
5292         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5293         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5294         Document new flags.
5295         * config/mips/mips.opt (mframe-header-opt): Add new option.
5297 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
5299         * config/i386/i386.c
5300         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5301         ROUND_DOWN where applicable.
5303 2015-10-09  Jeff Law  <law@redhat.com>
5305         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5306         correct statement.
5308 2015-10-09  Renlin Li  <renlin.li@arm.com>
5310         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5311         operands[0] and operands[2].
5312         (neon_vtrn<mode>_insn): Likewise.
5313         (neon_vzip<mode>_insn): Likewise.
5315 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5317         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5318         ((X & C2) << C1): Expand to...
5319         (X {&,^,|} C2 << C1): ...This.
5320         ((X & C2) >> C1): Expand to...
5321         (X {&,^,|} C2 >> C1): ...This.
5323 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
5325         PR target/67895
5326         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5327         Adjust embedded rounding/SAE specifier position.
5328         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5329         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5330         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5331         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5332         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5333         Likewise.
5334         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5336 2015-10-09  Martin Jambor  <mjambor@suse.cz>
5338         tree-optimization/67794
5339         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5340         between types of state,ents but accept original definitions as a
5341         parameter.
5342         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5343         iterate over definitions.
5345 2015-10-09  James Norris  <jnorris@codesourcery.com>
5347         * config/rs6000/rs6000.c (rs6000_offload_options): New.
5348         (TARGET_OFFLOAD_OPTIONS): New.
5350 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
5352         PR middle-end/67891
5353         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5355         PR middle-end/67766
5356         * function.c (expand_function_end): Move return value
5357         promotion past the handling of PARALLELs and CONCATs.
5359         PR rtl-optimization/67828
5360         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5361         (tree_may_unswitch_on): Don't unswitch on expressions
5362         involving undefined values.
5364 2015-10-09  Richard Biener  <rguenther@suse.de>
5366         * genmatch.c (print_operand): Fix formatting.
5367         (dt_node::append_simplify): Warn for multiple simplifiers
5368         that match the same pattern.
5369         * match.pd (log (exp @0)): Remove duplicates.
5371 2015-10-09  Richard Biener  <rguenth@suse.de>
5373         PR target/67366
5374         * gimple-fold.c (optabs-query.h): Include
5375         (gimple_fold_builtin_memory_op): Allow unaligned stores
5376         when movmisalign_optabs are available.
5378 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5380         PR target/67366
5381         * config/arm/arm.md (movmisalign<mode>): New.
5382         * config/arm/iterators.md (HSI): New.
5384 2015-10-09  Richard Biener  <rguenther@suse.de>
5386         PR tree-optimization/67891
5387         * gimple-match.h (gimple_simplified_result_is_gimple_val):
5388         New helper.
5389         (gimple_resimplify1): Declare.
5390         (gimple_resimplify2): Likewise.
5391         (gimple_resimplify3): Likewise.
5392         * gimple-match-head.c (gimple_resimplify1): Export.
5393         (gimple_resimplify2): Likewise.
5394         (gimple_resimplify3): Likewise.
5395         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5396         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5397         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5398         to avoid creating stmts without VN info.
5400 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
5402         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5403         of availability.
5405 2015-10-08  Jeff Law  <law@redhat.com>
5407         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5408         and release_ssa_name in two places.
5409         (gimple_stringop_fixed_value): Similarly.
5411         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5412         release_defs.
5414         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5415         unlink_stmt_vdef and release_ssa_name_fn.
5417         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5418         release_defs.
5420 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
5422         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5423         SSE register save area to 16 bytes only if the incoming stack
5424         boundary is no less than 16 bytes.
5426 2015-10-08  Jeff Law  <law@redhat.com>
5428         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5429         release_ssa_name.  Fix typo in comment.
5431 2015-10-08  Nathan Sidwell  <nathan@acm.org>
5433         * config/nvptx/nvptx.h (struct machine_function): Add comment.
5434         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5435         may return pointer as well as in memory.
5436         (nvptx_output_return): Likewise.
5438 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5440         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5441         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
5442         * match.pd: Add rules previously handled by fold_builtin_sqrt
5443         and fold_builtin_cbrt.
5445 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5447         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
5448         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
5449         * fold-const.h (tree_unary_nonnegative_warnv_p)
5450         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5451         (tree_expr_nonnegative_warnv_p): Add depth parameters.
5452         * fold-const.c: Include gimple-fold.h and params.h.
5453         (tree_ssa_name_nonnegative_warnv_p): New function.
5454         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
5455         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5456         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
5457         Add a depth parameter and increment it for recursive calls to
5458         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
5459         to handle SSA names.
5460         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
5461         (gimple_stmt_nonnegative_warnv_p): Declare.
5462         * tree-vrp.c (remove_range_assertions): Remove assert that condition
5463         cannot be proven false.
5464         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
5465         (gimple_stmt_nonnegative_warnv_p): Move to...
5466         * gimple-fold.c: ...here.  Add depth parameters and pass them
5467         down to the tree routines.  Accept statements that aren't
5468         assignments or calls but just return false for them.
5469         (gimple_val_nonnegative_real_p): Delete.
5470         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
5471         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
5472         Check HONOR_NANs first.
5474 2015-10-08  Martin Jambor  <mjambor@suse.cz>
5476         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
5477         unnecessary MIN.
5479 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
5481         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
5482         in the tail of outer-loop.
5484 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
5486         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
5487         return UI_NONE.
5489 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
5491         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
5492         "cfghooks.h", add prototypes for introduced new functions.
5493         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
5494         checks on ability of loop unswitching to tree_unswitch_single_loop;
5495         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
5496         on innermost loop check.
5497         (tree_unswitch_single_loop): Add all required checks on ability of
5498         loop unswitching under zero recursive level guard.
5499         (tree_unswitch_outer_loop): New function.
5500         (find_loop_guard): Likewise.
5501         (empty_bb_without_guard_p): Likewise.
5502         (used_outside_loop_p): Likewise.
5503         (get_vop_from_header): Likewise.
5504         (hoist_guard): Likewise.
5505         (check_exit_phi): Likewise.
5507 2015-10-08  Marek Polacek  <polacek@redhat.com>
5509         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
5510         ops element.
5512 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5514         PR c/65345
5515         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5516         create_tmp_var_raw instead of create_tmp_var.
5518 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
5520         * expr.c (store_expr_with_bounds): Handle aggregate moves from
5521         BLKmode.
5522         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
5523         to define gimple type system; compare aggregates only by size.
5525 2015-10-07  Jeff Law  <law@redhat.com>
5527         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
5528         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
5529         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
5530         unnecessarily.
5532 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5533             Sebastian Pop  <s.pop@samsung.com>
5535         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
5536         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
5537         (generate_isl_schedule): Same.
5538         * graphite-optimize-isl.c (scop_get_domains): Same.
5539         (apply_schedule_map_to_scop): Same.
5540         * graphite-poly.c (print_iteration_domains): Same.
5541         (remove_gbbs_in_scop): Same.
5542         (new_scop): Same.
5543         (free_scop): Same.
5544         (print_scop): Same.
5545         * graphite-poly.h (struct scop): Rename bbs to pbbs.
5546         (SCOP_BBS): Remove.
5547         * graphite-scop-detection.c (compare_bb_depths): Remove.
5548         (graphite_sort_dominated_info): Remove.
5549         (try_generate_gimple_bb): Move out of scop_detection.
5550         (all_non_dominated_preds_marked_p): Remove.
5551         (build_scop_bbs_1): Remove.
5552         (build_scop_bbs): Remove.
5553         (nb_pbbs_in_loops): Do not use SCOP_BBS.
5554         (find_scop_parameters): Same.
5555         (sese_dom_walker): Rename gather_bbs.
5556         (before_dom_children): Call try_generate_gimple_bb and collect gbb
5557         and pbb.
5558         (build_scops): Call gather_bbs.
5559         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
5560         (add_conditions_to_constraints): Same.
5561         (build_scop_iteration_domain): Same.
5562         (build_scop_drs): Same.
5563         (new_pbb_from_pbb): Same.
5564         * sese.c (new_sese_info): Create bbs.
5565         * sese.h (struct sese_info_t): Add bbs.
5567 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
5569         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
5570         encoding in 64-bit mode.
5572 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
5574         PR target/66697
5575         * config/i386/i386.c (ix86_option_override_internal): Always use
5576         8-byte minimum stack boundary in 64-bit mode.
5577         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
5578         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
5579         Add a REG_CFA_EXPRESSION note if needed.
5580         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
5581         (ix86_handle_force_align_arg_pointer_attribute): New.
5582         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
5583         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
5584         with ix86_handle_force_align_arg_pointer_attribute.
5585         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
5587 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5588             Sebastian Pop  <s.pop@samsung.com>
5590         * graphite-scop-detection.c (parameter_index_in_region): Remove
5591         use of SESE_ADD_PARAMS.
5592         (find_scop_parameters): Same.
5593         * sese.c (new_sese_info): Same.
5594         * sese.h (struct sese_info_t): Remove add_params.
5595         (SESE_ADD_PARAMS): Remove.
5597 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5598             Sebastian Pop  <s.pop@samsung.com>
5600         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
5601         an sese_info_p.
5602         (copy_def): Same.
5603         (copy_internal_parameters): Same.
5604         (translate_isl_ast_to_gimple): Use an sese_l.
5605         (build_iv_mapping): Same.
5606         * graphite-poly.c (new_sese): Rename new_sese_info.
5607         (free_sese): Rename free_sese_info.
5608         * graphite-poly.h (struct scop): Use an sese_info_p.
5609         (scop_set_region): Same.
5610         * graphite-scop-detection.c (struct sese_l): Moved...
5611         (get_entry_bb): Moved...
5612         (get_exit_bb): Moved...
5613         (parameter_index_in_region_1): Use an sese_info_p.
5614         (parameter_index_in_region): Same.
5615         (scan_tree_for_params): Same.
5616         (find_params_in_bb): Same.
5617         (sese_dom_walker): Use an sese_l.
5618         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
5619         (reduction_phi_p): Same.
5620         (parameter_index_in_region_1): Use an sese_info_p.
5621         (propagate_expr_outside_region): Use an sese_l.
5622         * graphite.c: Replace uses of SCOP_REGION.
5623         * sese.c (sese_record_loop): Use an sese_info_p.
5624         (build_sese_loop_nests): Same.
5625         (sese_build_liveouts_use): Same.
5626         (sese_build_liveouts_bb): Same.
5627         (sese_build_liveouts_bb): Same.
5628         (sese_bad_liveouts_use): Same.
5629         (sese_reset_debug_liveouts_bb): Same.
5630         (sese_build_liveouts): Same.
5631         (new_sese): Renamed new_sese_info.
5632         (free_sese): Renamed free_sese_info.
5633         (set_rename): Use an sese_info_p.
5634         (graphite_copy_stmts_from_block): Same.
5635         (copy_bb_and_scalar_dependences): Same.
5636         (outermost_loop_in_sese_1): Use an sese_l.
5637         (outermost_loop_in_sese): Same.
5638         (if_region_set_false_region): Use an sese_info_p.
5639         (move_sese_in_condition): Same.
5640         (scalar_evolution_in_region): Use an sese_l.
5641         * sese.h (struct sese_l): ... here.
5642         (SESE_ENTRY): Remove.
5643         (SESE_ENTRY_BB): Remove.
5644         (SESE_EXIT): Remove.
5645         (SESE_EXIT_BB): Remove.
5646         (sese_contains_loop): Use an sese_info_p.
5647         (sese_nb_params): Same.
5648         (bb_in_sese_p): Use an sese_l.
5649         (stmt_in_sese_p): Same.
5650         (defined_in_sese_p): Same.
5651         (loop_in_sese_p): Same.
5652         (sese_loop_depth): Same.
5653         (struct ifsese_s): Use an sese_info_p.
5654         (gbb_loop_at_index): Use an sese_l.
5655         (nb_common_loops): Same.
5656         (scev_analyzable_p): Same.
5658 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
5660         * config/i386/i386.c (ix86_conditional_register_usage): Use
5661         CALL_USED_REGISTERS_MASK.
5662         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
5664 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
5666         PR bootstrap/67385
5667         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
5668         * configure: Regenerated.
5670 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
5672         PR target/67850
5673         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
5674         (ix86_set_current_function): This.
5675         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
5677 2015-10-07  Richard Biener  <rguenther@suse.de>
5679         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
5680         (vinfo_for_stmt): Adjust.
5681         (set_vinfo_for_stmt): Likewise.
5682         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
5683         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
5684         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
5685         of inner loop.
5686         (vect_analyze_loop_1): Remove.
5687         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
5688         inner loop when vectorizing an outer loop by splitting out from ...
5689         (vect_analyze_loop_form): ... here.
5691 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5693         PR c/65345
5694         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
5695         Use create_tmp_var_raw instead of create_tmp_var.
5697 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
5699         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
5700         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
5701         * real.c (CACHED_FRACTION): New helper macro.
5702         (dconst_third_ptr): Use it.
5703         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
5704         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
5705         dconst_sixth.
5706         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
5708 2015-10-06  Jeff Law  <law@redhat.com>
5710         PR tree-optimization/67816
5711         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
5712         from remove_jump_threads_starting_at.  Accept an edge rather than
5713         a basic block.
5714         * tree-ssa-threadupdate.c (removed_edges): New hash table.
5715         (remove_jump_threads_including): Note edges that get removed from
5716         the CFG for later pruning of jump threading paths including them.
5717         (thread_through_all_blocks): Remove paths which include edges that
5718         have been removed.
5719         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
5720         on each outgoing edges when optimizing away a control statement.
5722 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5724         * reorg.c (emit_delay_sequence): Store list of delay slot insns
5725         in a vector instead of rtx_insn_list.
5726         (add_to_delay_list): Likewise.
5727         (delete_from_delay_slot): Likewise.
5728         (optimize_skip): Likewise.
5729         (redirect_with_delay_list_safe_p): Likewise.
5730         (check_annul_list_true_false): Likewise.
5731         (steal_delay_list_from_target): Likewise.
5732         (steal_delay_list_from_fallthrough): Likewise.
5733         (redundant_insn): Likewise.
5734         (fill_simple_delay_slots): Likewise.
5735         (fill_slots_from_thread): Likewise.
5736         (fill_eager_delay_slots): Likewise.
5737         (relax_delay_slots): Likewise.
5739 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
5741         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
5742         For -mgpopt=local, also exclude unintialized common symbols.
5743         * doc/invoke.texi (Nios II Options): Document the change.
5745 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5747         * config/aarch64/iterators.md (vwcore): Add missing cases for
5748          V4HF/V8HF modes.
5750 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
5751             Sebastian Pop  <s.pop@samsung.com>
5753         * graphite-poly.c (new_scop): Initialize drs.
5754         * graphite-poly.h (struct dr_info): New.
5755         (struct scop): Add drs.
5756         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
5757         (pdr_add_memory_accesses): Same.
5758         (build_poly_dr): Same.
5759         (build_alias_set): Same.
5760         (build_scop_drs): Same.
5761         (build_pbb_drs): Remove.
5762         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
5763         * tree-data-ref.h (data_reference): Remove alias_set.
5765 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
5766             Sebastian Pop  <s.pop@samsung.com>
5768         * graphite-poly.c (free_data_refs_aux): Remove.
5769         (free_gimple_poly_bb): Do not call free_data_refs_aux.
5770         * graphite-poly.h (struct base_alias_pair): Remove.
5771         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
5772         base_alias_pair and dr->aux.
5773         (build_alias_set): Same.
5774         * tree-data-ref.c (create_data_ref): Initialize alias_set.
5775         * tree-data-ref.h (data_reference): Add alias_set.
5777 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
5778             Sebastian Pop  <s.pop@samsung.com>
5780         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
5781         Do not set PDR_BASE_OBJECT_SET.
5782         * graphite-poly.h (poly_dr): Same.
5783         (PDR_BASE_OBJECT_SET): Remove.
5784         (new_poly_dr): Update decl.
5785         * graphite-sese-to-poly.c (build_poly_dr): Update call to
5786         new_poly_dr.
5787         (write_alias_graph_to_ascii_dimacs): Remove.
5788         (write_alias_graph_to_ascii_dot): Remove.
5789         (write_alias_graph_to_ascii_ecc): Remove.
5790         (dr_same_base_object_p): Remove.
5791         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
5792         code.
5793         (build_base_obj_set_for_drs): Remove.
5794         (dump_alias_graphs): Remove.
5795         (build_scop_drs): Remove dead code.
5797 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5798             Peter Bergner  <bergner@vnet.ibm.com>
5800         PR target/67808
5801         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
5802         allow registers, but provide insns for the combiner to create for
5803         loads from memory. Separate VSX code from non-VSX code. For
5804         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
5805         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
5806         so that registers come before memory operations. Drop support from
5807         converting DFmode to TFmode, if the DFmode value is in a GPR
5808         register.
5809         (extenddftf2_fprs): Likewise.
5810         (extenddftf2_internal): Likewise.
5811         (extenddftf2_vsx): Likewise.
5812         (extendsftf2): In the expander, only allow registers, but provide
5813         insns for the combiner to create for stores and loads.
5815 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5817         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
5818         from the decl parameter.
5820 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
5822         PR 67861
5823         * gimple-fold.c (gimple_fold_builtin): Add break after
5824         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
5826 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
5828         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
5829         to scop->isl_context.
5831 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5833         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
5834         (output_probe_stack_range): Rotate the loop and simplify.
5835         (thumb1_expand_prologue): Tweak sorry message.
5836         * config/arm/arm.md (probe_stack): Use bare string.
5838 2015-10-06  Nick Clifton  <nickc@redhat.com>
5840         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
5842 2015-10-06  Nick Clifton  <nickc@redhat.com>
5844         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
5845         (ATTR_PERSIST): New constant.
5846         (msp430_data_attr): New function - verifies an attribute that only
5847         applies to variables.
5848         (msp430_attributes): Add noinit and persistent attributes.
5849         (noinit_section): New variable.
5850         (presis_section): New variable.
5851         (TARGET_ASM_INIT_SECTIONS): Define.
5852         (msp430_init_sections): New function - initialises the noinit and
5853         persist section variables.
5854         (msp430_select_section): Add support for noinit and persist
5855         attributes.
5856         (msp430_section_type_flags): Likewise.
5857         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
5858         and persistent attributes.
5860 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
5861             Sebastian Pop  <s.pop@samsung.com>
5863         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
5864         (no_violations): Remove.
5865         (subtract_commutative_associative_deps): Remove.
5866         (compute_deps): Do not call subtract_commutative_associative_deps.
5867         (transform_is_safe): Remove.
5868         (graphite_legal_transform): Remove.
5869         * graphite-poly.h (graphite_legal_transform): Remove.
5871 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
5873         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
5874         which are in this region are passed so gcc_assert and remove redundant
5875         computation.
5876         * sese.c (sese_build_liveouts): Pass only those bbs which are not
5877         in region.
5878         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
5879         gcc_assert on that and remove unnecessary computation.
5880         (sese_build_liveouts_use): Same.
5882 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
5884         * graphite-dependences.c (scop_get_reads): Renamed scop->context
5885         to scop->param_context.
5886         (scop_get_must_writes): Same.
5887         (scop_get_may_writes): Same.
5888         (scop_get_original_schedule): Same.
5889         (scop_get_transformed_schedule): Same.
5890         (subtract_commutative_associative_deps): Same.
5891         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
5892         (generate_isl_context): Same.
5893         (generate_isl_schedule): Same.
5894         (scop_to_isl_ast): Same.
5895         (graphite_regenerate_ast_isl): Same.
5896         * graphite-optimize-isl.c (scop_get_domains): Same.
5897         (optimize_isl): Renamed scop->context to scop->param_context.
5898         * graphite-poly.c (new_poly_bb): Change the type of argument to
5899         gimple_poly_bb_p.
5900         (new_scop): Renamed scop->context to scop->param_context.
5901         (free_scop): Same.
5902         (print_scop_context): Same.
5903         * graphite-poly.h (new_poly_dr): Change the type of argument from
5904         void* to data_reference_p.
5905         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
5906         (new_poly_bb): Change the type of argument from void* to
5907         gimple_poly_bb_p.
5908         (pbb_set_black_box): Same.
5909         (struct scop): Rename context to param_context, ctx to isl_context.
5910         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
5911         Move declarations closer to assignment.
5912         (find_params_in_bb): Same.
5913         (find_scop_parameters): Same.
5914         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
5915         Global to be used for statement IDs.
5916         (isl_id_for_pbb): Use ssa_name_version_typesize.
5917         (simple_copy_phi_p): Move declarations closer to assignment.
5918         (build_pbb_scattering_polyhedrons): Same.
5919         (build_scop_scattering): Same.
5920         (isl_id_for_ssa_name): Same.
5921         (extract_affine_name): Same.
5922         (extract_affine_int): Same.
5923         (extract_affine): Same.
5924         (set_scop_parameter_dim): Use renamed member.
5925         (build_loop_iteration_domains): Same.
5926         (add_param_constraints): Same.
5927         (build_scop_iteration_domain): Same.
5928         (pdr_add_data_dimensions): Same.
5929         (build_poly_dr): Same.
5930         (build_scop_drs): Move declarations closer to assignment.
5931         (analyze_drs_in_stmts): Same.
5932         (insert_out_of_ssa_copy): Same.
5933         (insert_out_of_ssa_copy_on_edge): Same.
5934         (propagate_expr_outside_region): Same.
5935         (rewrite_phi_out_of_ssa): Same.
5936         (rewrite_degenerate_phi): Same.
5937         (rewrite_reductions_out_of_ssa): Same.
5938         (rewrite_cross_bb_scalar_dependence): Same.
5939         (handle_scalar_deps_crossing_scop_limits): Same.
5940         (rewrite_cross_bb_scalar_deps): Same.
5941         * graphite.c (graphite_transform_loops): Use renamed member.
5943 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
5945         PR c/65345
5946         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
5947         create_tmp_var_raw instead of create_tmp_var.
5949 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5951         PR c/65345
5952         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
5953         Use create_tmp_var_raw instead of create_tmp_var.
5955 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
5957         PR target/67849
5958         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
5959         split for upper-bank registers when target does not support
5960         AVX512VL.
5961         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
5962         split when target does not support AVX512VL.
5964 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
5966         PR c/65345
5967         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
5968         Adjust to use create_tmp_var_raw instead of create_tmp_var.
5970 2015-10-06  Nick Clifton  <nickc@redhat.com>
5972         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
5973         multiplication.
5975 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
5977         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
5978         (case ${target}): Add znver1.
5979         * config/i386/cpuid.h(bit_CLZERO):  Define.
5980         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5981         -march=native recognize znver1 processors.
5982         * config/i386/i386-c.c (ix86_target_macros_internal): Add
5983         znver1, clzero def_and_undef.
5984         * config/i386/i386.c (struct processor_costs znver1_cost): New.
5985         (m_znver1): New definition.
5986         (m_AMD_MULTIPLE): Includes m_znver1.
5987         (processor_target_table): Add znver1 entry.
5988         (ix86_target_string) : Add clzero entry.
5989         (static const char *const cpu_names): Add znver1 entry.
5990         (ix86_option_override_internal): Add znver1 instruction sets.
5991         (PTA_CLZERO) :  New definition.
5992         (ix86_option_override_internal): Handle new clzerooption.
5993         (ix86_issue_rate): Add znver1.
5994         (ix86_adjust_cost): Add znver1.
5995         (ia32_multipass_dfa_lookahead): Add znver1.
5996         (has_dispatch): Add znver1.
5997         * config/i386/i386.h (TARGET_znver1): New definition.
5998         (TARGET_CLZERO): Define.
5999         (TARGET_CLZERO_P): Define.
6000         (struct ix86_size_cost): Add TARGET_ZNVER1.
6001         (enum processor_type): Add PROCESSOR_znver1.
6002         * config/i386/i386.md (define_attr "cpu"): Add znver1.
6003         (set_attr znver1_decode): New definitions for znver1.
6004         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6005         (mclzero): New.
6006         * config/i386/mmx.md (set_attr znver1_decode): New definitions
6007         for znver1.
6008         * config/i386/sse.md (set_attr znver1_decode): Likewise.
6009         * config/i386/x86-tune.def:  Add znver1 tunings.
6010         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6011         * doc/invoke.texi: Add details about znver1
6013 2015-10-06  Richard Biener  <rguenther@suse.de>
6015         PR tree-optimization/67859
6016         * tree-ssa-pre.c (create_expression_by_pieces): Properly
6017         discard not inserted stmts.
6019 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
6021         * doc/extend.texi (Template Instantiation): Reorder options and
6022         de-emphasize -frepo.
6023         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6024         example instead of -frepo.
6026 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6028         PR c/65345
6029         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6030         use create_tmp_var_raw rather than create_tmp_var.
6032 2015-10-06  Richard Biener  <rguenther@suse.de>
6034         * tree-vectorizer.h (vec_info): New base class for...
6035         (_loop_vec_info): ... this and ...
6036         (_bb_vec_info): ... this.
6037         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6038         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6039         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6040         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6041         vect_destroy_datarefs): Adjust interface to take a vec_info *
6042         rather than both a loop_vec_info and a bb_vec_info argument.
6043         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6044         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6045         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6046         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6047         accordingly.
6048         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6049         (destroy_loop_vec_info, vect_analyze_loop_2,
6050         vect_is_simple_reduction_1, get_initial_def_for_induction,
6051         vect_create_epilog_for_reduction, vectorizable_reduction,
6052         vectorizable_live_operation, vect_transform_loop): Adjust.
6053         * tree-vect-patterns.c (type_conversion_p,
6054         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6055         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6056         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6057         check_bool_pattern, vect_recog_bool_pattern,
6058         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6059         * tree-vect-slp.c (vect_get_and_check_slp_defs,
6060         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6061         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6062         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6063         (new_bb_vec_info): Initialize base classs.
6064         * tree-vect-stmts.c (record_stmt_cost, process_use,
6065         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6066         vectorizable_mask_load_store, vectorizable_call,
6067         vectorizable_simd_clone_call, vectorizable_conversion,
6068         vectorizable_assignment, vectorizable_shift,
6069         vectorizable_operation, vectorizable_store,
6070         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6071         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6072         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6074 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6076         PR c/65345
6077         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6078         create_tmp_var_raw rather than create_tmp_var.
6080 2015-10-05  Marek Polacek  <polacek@redhat.com>
6082         * tree-ssa-loop-im.c
6083         (move_computations_dom_walker::before_dom_children): Don't set
6084         SSA_NAME_ANTI_RANGE_P.
6085         * tree-ssa-phiopt.c (value_replacement): Likewise.
6087 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6088             Sebastian Pop  <s.pop@samsung.com>
6090         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6092 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6093             Sebastian Pop  <s.pop@samsung.com>
6095         * graphite-poly.c (new_gimple_poly_bb): ... here.
6096         (free_data_refs_aux): ... here.
6097         (free_gimple_poly_bb): ... here.
6098         (remove_gbbs_in_scop): ... here.
6099         (new_scop): Call new_sese.
6100         (free_scop): Call remove_gbbs_in_scop and free_sese.
6101         * graphite-poly.h (base_alias_pair): ... here.
6102         (new_gimple_poly_bb): Declare.
6103         (free_gimple_poly_bb): Declare.
6104         * graphite-scop-detection.c (parameter_index_in_region_1):
6105         (parameter_index_in_region): ... here.
6106         (scan_tree_for_params): ... here.
6107         (find_params_in_bb): ... here.
6108         (find_scop_parameters): ... here.
6109         (build_scops): Call find_scop_parameters.
6110         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6111         (free_scops): Move...
6112         (single_pred_cond_non_loop_exit): Move...
6113         (sese_dom_walker::before_dom_children): Move...
6114         (sese_dom_walker::after_dom_children): Move...
6115         (build_poly_scop): Move...
6116         * graphite-sese-to-poly.h (base_alias_pair): Move...
6117         * graphite.c (free_scops): ... here.
6119 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6120             Sebastian Pop  <s.pop@samsung.com>
6122         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6123         (trivially_empty_bb_p): Move...
6124         (same_close_phi_node): Move...
6125         (new_gimple_poly_bb): Move...
6126         (compare_bb_depths): Move...
6127         (graphite_sort_dominated_info): Move...
6128         (remove_duplicate_close_phi): Move...
6129         (make_close_phi_nodes_unique): Move...
6130         (canonicalize_loop_closed_ssa): Move...
6131         (canonicalize_loop_closed_ssa_form): Move...
6132         (loop_ivs_can_be_represented): Move...
6133         (single_pred_cond_non_loop_exit): Move...
6134         (graphite_can_represent_init): Move...
6135         (graphite_can_represent_scev): Move...
6136         (stmt_has_simple_data_refs_p): Move...
6137         (stmt_has_side_effects):  Move...
6138         (graphite_can_represent_stmt): Move...
6139         (scop_detection): ... here.
6140         (sese_dom_walker): ... and here.
6141         (build_scops): Call all moved functions.
6142         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6143         (all_non_dominated_preds_marked_p): Move...
6144         (build_scop_bbs_1): Move...
6145         (build_scop_bbs): Move...
6146         (set_scop_parameter_dim): Move...
6147         (nb_pbbs_in_loops): Move...
6148         (build_poly_scop): Do not call all the moved functions.
6150 2015-10-05  Martin Jambor  <mjambor@suse.cz>
6151             Jan Hubicka  <hubicka@ucw.cz>
6153         * ipa-cp.c (ipcp_alignment_lattice): New type.
6154         (ipcp_param_lattices): Use the above to represent alignment.
6155         (ipcp_alignment_lattice::print): New function.
6156         (print_all_lattices): Use it to print alignment information.
6157         (ipcp_alignment_lattice::top_p): New function.
6158         (ipcp_alignment_lattice::bottom_p): Likewise.
6159         (ipcp_alignment_lattice::set_to_bottom): Likewise.
6160         (ipcp_alignment_lattice::meet_with_1): Likewise.
6161         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6162         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6163         (initialize_node_lattices): Likewise.
6164         (propagate_alignment_accross_jump_function): Work with the new class
6165         for alignment lattices.
6166         (propagate_constants_accross_call): Pass only the alignment lattice to
6167         propagate_alignment_accross_jump_function.
6168         (ipcp_store_alignment_results): Work with the new class for alignment
6169         lattices.
6171 2015-10-05  Marek Polacek  <polacek@redhat.com>
6173         PR tree-optimization/67821
6174         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6176 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
6178         PR other/65021
6179         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6180         function to...
6181         (mkoffload_cleanup): ... this.  Adjust all users.
6182         (maybe_unlink): Look at save_temps and verbose flags instead of
6183         debug flag.
6184         (main): Parse "-save-temps" flag.
6185         (generate_target_descr_file, generate_target_offloadend_file)
6186         (generate_host_descr_file, prepare_target_image): Pass it on.
6187         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6188         (mkoffload_cleanup): New function.
6189         (maybe_unlink): Look at save_temps and verbose flags instead of
6190         debug flag.
6191         (main): Instead of calling utils_cleanup, register atexit handler
6192         for mkoffload_cleanup.
6193         (main): Parse "-save-temps" flag.
6194         (compile_native, main): Pass it on.
6195         * lto-wrapper.c (compile_offload_image): Likewise.
6197 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6199         * gimple.h (gimple_op_ptr): Require a non const gimple *.
6200         (gimple_assign_lhs_ptr): Likewise.
6201         (gimple_assign_rhs1_ptr): Likewise.
6202         (gimple_assign_rhs2_ptr): Likewise.
6203         (gimple_assign_rhs3_ptr): Likewise.
6204         (gimple_call_lhs_ptr): Likewise.
6205         (gimple_call_fn_ptr): Likewise.
6206         (gimple_call_chain_ptr): Likewise.
6207                 (gimple_call_arg_ptr): Likewise.
6208                 (gimple_cond_lhs_ptr): Likewise.
6209         (gimple_cond_rhs_ptr): Likewise.
6210         (gimple_switch_index_ptr): Likewise.
6211         (gimple_return_retval_ptr): Likewise.
6213 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6215         * gimple.h (gimple_asm_input_op_ptr): Remove.
6216         (gimple_asm_output_op_ptr): Likewise.
6218 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6220         * gimple.h (gimple_location_ptr): Remove.
6221         * tree-vrp.c (check_all_array_refs): Adjust.
6223 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6225         * tree-ssa-operands.c (build_uses): store tree * instead of
6226         tree.
6227         (finalize_ssa_uses): Adjust.
6228         (append_use): Likewise.
6229         (verify_ssa_operands): Likewise.
6231 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6233         * real.h (build_real_truncate): Declare.
6234         * tree.c (build_real_truncate): New function.
6235         (strip_float_extensions): Use it.
6236         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6237         (fold_builtin_hypot, fold_builtin_pow): Likewise.
6238         * match.pd: Likewise.
6240 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6241            Jiong Wang  <jiong.wang@arm.com>
6243         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6245 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6247         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6248         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6249         (aarch64_print_operand, aarch64_float_const_representable_p)
6250         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6251         instead of REAL_VALUE_FROM_CONST_DOUBLE.
6252         * config/arc/arc.c (arc_print_operand): Likewise.
6253         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6254         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6255         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6256         Likewise.
6257         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6258         (consttable_16): Likewise.
6259         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6260         * config/avr/avr.c (avr_print_operand): Likewise.
6261         * config/bfin/bfin.md: Likewise (in a define_split).
6262         * config/c6x/c6x.md: Likewise (in a define_split).
6263         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6264         (cr16_print_operand): Likewise.
6265         * config/cris/cris.c (cris_print_operand): Likewise.
6266         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6267         * config/fr30/fr30.c (fr30_print_operand): Likewise.
6268         (fr30_const_double_is_zero): Likewise.
6269         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6270         * config/frv/frv.md: Likewise (in a define_split).
6271         * config/frv/predicates.md (int_2word_operand): Likewise.
6272         * config/h8300/h8300.c (h8300_print_operand): Likewise.
6273         * config/i386/i386.c (standard_80387_constant_p): Likewise.
6274         (ix86_print_operand, ix86_split_to_parts): Likewise.
6275         * config/i386/i386.md: Likewise (in a define_split).
6276         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6277         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6278         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6279         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6280         (print_operand): Likewise.
6281         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6282         * config/mep/mep.md: Likewise (in define_split).
6283         * config/microblaze/microblaze.c (microblaze_const_double_ok)
6284         (print_operand): Likewise.
6285         * config/mips/mips.md (consttable_float): Likewise.
6286         * config/mmix/mmix.c (mmix_intval): Likewise.
6287         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6288         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6289         * config/pa/pa.c (pa_singlemove_string): Likewise.
6290         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6291         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6292         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6293         (output_toc): Likewise.
6294         * config/rs6000/rs6000.md: Likewise (in define_splits).
6295         * config/rx/rx.c (rx_print_operand): Likewise.
6296         * config/s390/s390.c (s390_output_pool_entry): Likewise.
6297         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6298         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6299         (and also in define_splits).
6300         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6301         (fp_high_losum_p): Likewise.
6302         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6303         (*movsf_high): Likewise.
6304         * config/spu/spu.c (const_double_to_hwint): Likewise.
6305         * config/v850/v850.c (const_double_split): Likewise.
6306         * config/vax/vax.c (vax_float_literal): Likewise.
6307         * config/visium/visium.c (visium_expand_copysign): Likewise.
6308         * config/visium/visium.md: Likewise (in define_split).
6309         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6310         * config/xtensa/xtensa.c (print_operand): Likewise.
6311         (xtensa_output_literal): Likewise.
6312         * cprop.c (implicit_set_cond_p): Likewise.
6313         * dwarf2out.c (insert_float): Likewise.
6314         * expmed.c (expand_mult, make_tree): Likewise.
6315         * expr.c (compress_float_constant): Likewise.
6316         * rtlanal.c (split_double): Likewise.
6317         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6318         (simplify_const_unary_operation, simplify_binary_operation_1)
6319         (simplify_const_binary_operation): Likewise.
6320         (simplify_const_relational_operation): Likewise.
6321         * varasm.c (output_constant_pool_2): Likewise.
6323 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6325         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6326         instead of CONST_DOUBLE_FROM_REAL_VALUE.
6327         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6328         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6329         instead of CONST_DOUBLE_FROM_REAL_VALUE.
6330         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6331         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6332         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6333         (ix86_emit_swsqrtsf): Likewise.
6334         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6335         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6336         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6337         * config/pa/pa.c (pa_expand_builtin): Likewise.
6338         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6339         (rs6000_scale_v2df): Likewise.
6340         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6341         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6342         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6343         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6344         (vec_ctul): Likewise.
6345         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6346         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6347         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6348         * cse.c (fold_rtx): Likewise.
6349         * emit-rtl.c (immed_double_const): Likewise (in comments).
6350         (init_emit_once): Likewise.
6351         * expr.c (compress_float_constant, expand_expr_real_1)
6352         (const_vector_from_tree): Likewise.
6353         * optabs.c (expand_float, expand_fix): Likewise.
6354         * reg-stack.c (reg_to_stack): Likewise.
6355         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6356         (simplify_const_unary_operation, simplify_binary_operation_1)
6357         (simplify_const_binary_operation, simplify_relational_operation)
6358         (simplify_immed_subreg): Likewise.
6360 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6362         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6363         * doc/tm.texi: Regenerate.
6364         * real.h (REAL_ARITHMETIC): Delete.
6365         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6366         (ix86_expand_round_sse4): Use real_arithmetic instead of
6367         REAL_ARITHMETIC.
6368         * config/i386/sse.md (round<mode>2): Likewise.
6369         * rtl.h (rtx_to_tree_code): Likewise (in comment).
6370         * explow.c (rtx_to_tree_code): Likewise (in comment).
6371         * match.pd: Likewise.
6372         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6373         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6374         (expand_pow_as_sqrts): Likewise.
6375         * tree-pretty-print.c (dump_generic_node): Remove code that
6376         was conditional on REAL_ARITHMETIC being undefined.
6378 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6380         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6381         * doc/tm.texi: Regenerate.
6382         * real.h (real_less): Declare.
6383         (REAL_VALUES_LESS): Delete.
6384         * real.c (real_less): New function.
6385         (real_compare): Use it.
6386         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6387         of REAL_VALUES_LESS.
6388         * config/microblaze/microblaze.c (microblaze_const_double_ok):
6389         Likewise.
6390         * fold-const.c (fold_convert_const_int_from_real): Likewise.
6391         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6392         (simplify_const_relational_operation): Likewise.
6393         * tree-call-cdce.c (check_pow): Likewise.
6394         (gen_conditions_for_pow_cst_base): Likewise.
6396 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6398         * real.h (REAL_VALUES_IDENTICAL): Delete.
6399         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6400         instead of REAL_VALUES_IDENTICAL.
6401         * fold-const.c (operand_equal_p): Likewise.
6402         * ipa-icf.c (sem_variable::equals): Likewise.
6403         * tree-complex.c (some_nonzerop): Likewise.
6404         (expand_complex_multiplication): Likewise.
6405         * tree.c (simple_cst_equal): Likewise.
6406         * varasm.c (compare_constant): Likewise.
6408 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6410         * real.h (real_equal): Declare.
6411         (REAL_VALUES_EQUAL): Delete.
6412         * real.c (real_equal): New function.
6413         (real_compare): Use it.
6414         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6415         * doc/tm.texi: Regenerate.
6416         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6417         real_equal instead of REAL_VALUES_EQUAL.
6418         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6419         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6420         (fp_const_from_val): Likewise.
6421         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6422         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6423         (floating_exact_log2): Likewise.
6424         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6425         * config/vax/vax.c (vax_float_literal): Likewise.
6426         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6427         * cprop.c (implicit_set_cond_p): Likewise.
6428         * expmed.c (expand_mult): Likewise.
6429         * fold-const.c (const_binop): Likewise.
6430         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6431         (simplify_const_binary_operation): Likewise.
6432         (simplify_const_relational_operation): Likewise.
6433         * tree-call-cdce.c (check_pow): Likewise.
6434         (gen_conditions_for_pow_cst_base): Likewise.
6435         * tree-inline.c (estimate_num_insns): Likewise.
6436         * tree-ssa-dom.c (record_equality): Likewise.
6437         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6438         (gimple_expand_builtin_pow): Likewise.
6439         (pass_optimize_widening_mul::execute): Likewise.
6440         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6441         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
6442         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
6444 2015-10-05  Richard Biener  <rguenther@suse.de>
6446         PR ipa/67783
6447         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
6448         consider loop header PHI defs as IVs.
6450 2015-10-05  Richard Biener  <rguenther@suse.de>
6452         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
6453         call handling ...
6454         (create_expression_by_pieces): ... here and build GIMPLE
6455         calls directly.  Use gimple_build API and avoid force_gimple_operand.
6456         (insert_into_preds_of_block): Simplify.
6457         (do_regular_insertion): Add comment.
6459 2015-10-04  Jason Merrill  <jason@redhat.com>
6461         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
6463 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
6465         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
6466         check for general register.
6467         (ix86_emit_save_regs): Ditto.
6468         (ix86_emit_save_regs_using_mov): Ditto.
6469         (ix86_emit_restore_regs_using_pop): Ditto.
6470         (ix86_emit_restore_regs_using_mov): Ditto.
6472 2015-10-03  Marek Polacek  <polacek@redhat.com>
6474         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
6475         (insn-dfatab.o): Likewise.
6477 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
6479         * config.gcc (xtensa*-*-uclinux*): New configuration.
6480         * config/xtensa/uclinux.h: New file.
6481         * config/xtensa/uclinux.opt: New file.
6483 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
6485         * doc/cpp.texi (Standard Predefined Macros): Document value of
6486         __cplusplus for C++14.
6488 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
6490         * gcc.c (process_command): Use spec_machine rather than
6491         spec_host_machine to build tooldir_prefix2.
6493 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
6494             Bernd Schmidt  <bernds@codesourcery.com>
6496         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
6497         (Token, Stmt): Remove structs.
6498         (decls, vars, fns): Remove variables.
6499         (alloc_comment, append_stmt, is_keyword): Remove macros.
6500         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
6501         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
6502         (parse_init, parse_file): Remove functions.
6503         (read_file): Accept a pointer to a length and store into it.
6504         (process): Don't try to parse the input file, just write it out as
6505         a string, but looking for maps.  Also write out the length.
6506         (main): Don't use "-S" to compile PTX code.
6508 2015-10-02  Jeff Law  <law@redhat.com>
6510         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6511         fixups.
6513 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
6515         PR target/67822
6516         * config/nvptx/mkoffload.c (main): Scan the argument vector for
6517         -fopenmp, and skip generating an offloading image if specified.
6519 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
6521         * system.h (ROUND_UP): New macro definition.
6522         (ROUND_DOWN): Ditto.
6523         * ggc-page.c (ROUND_UP): Remove local macro definition.
6524         (PAGE_ALIGN): Implement using ROUND_UP macro.
6526         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
6527         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
6528         to align values.
6529         (ix86_compute_frame_layout): Ditto.
6530         (ix86_expand_prologue): Ditto.
6531         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
6532         to round down values.
6533         (expand_set_or_movmem_via_rep): Ditto.
6535 2015-10-02  Marek Polacek  <polacek@redhat.com>
6537         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
6539 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
6541         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
6542         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
6543         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
6544         (free_gimple_bb): Renamed free_gimple_poly_bb.
6545         (try_generate_gimple_bb): Hoist loop invariant code.
6546         (analyze_drs_in_stmts): Same.
6547         (build_scop_drs): Call renamed functions.
6548         (new_pbb_from_pbb): Same.
6549         (scop_ivs_can_be_represented): Delete as functionality now moved to
6550         graphite-scop-detection.c
6551         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
6553 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
6555         * graphite-scop-detection.c (stmt_has_side_effects): New function
6556           outlined from stmt_simple_for_scop_p.
6557         (graphite_can_represent_stmt): Same.
6558         (stmt_simple_for_scop_p): Moved code out of this function for better
6559         readability.
6561 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6563         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
6564         F_AVX512IFMA.
6565         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
6567 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6569         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
6571 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6573         PR rtl-optimization/67756
6574         * lra-constraints.c (match_reload): Add a new parameter.  Use it
6575         for creating a pseudo with the same value.
6576         (curr_insn_transform): Pass a new argument to match_reload.
6578 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6580         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
6581         (expand_vec_perm_even_odd_1): Handle V64QImode.
6582         (ix86_expand_vec_perm_const_1): Try expansion with
6583         expand_vec_perm_even_odd_trunc as well.
6584         * config/i386/sse.md (VI124_AVX512F): Rename to ...
6585         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
6586         to V54QI.
6587         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
6588         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
6589         to V32HI and V16SI.
6590         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
6591         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
6592         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
6593         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
6594         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
6595         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
6597 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6599         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
6600         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
6602 2015-10-02  Jason Merrill  <jason@redhat.com>
6604         PR c/59218
6605         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
6606         (diagnose_tm_1_op): Also diagnose volatile accesses in
6607         transaction_safe function.
6609 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
6611         * system.h (malloc.h): Don't include obsolete header.
6613 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6615         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
6616         (TLS_SECTION_ASM_FLAG): Delete.
6618 2015-10-02  Marek Polacek  <polacek@redhat.com>
6620         PR c/64249
6621         * doc/invoke.texi: Document -Wduplicated-cond.
6622         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
6623         (insn-dfatab.o): Likewise.
6624         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
6625         warning.
6627 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
6629         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
6630         sequences.
6632 2015-10-02  Renlin Li  <renlin.li@arm.com>
6634         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
6636 2015-10-02  Renlin Li  <renlin.li@arm.com>
6638         PR target/66776
6639         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
6641 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6643         PR rtl-optimization/67786
6644         PR rtl-optimization/67787
6645         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
6646         it modifies a reg used in the condition calculation.
6648 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
6650         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
6651         alternatives for reads from memory and moves from general-purpose
6652         registers.
6653         (*aarch64_combinez_be<mode>): Likewise.
6655 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
6657         PR target/51726
6658         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
6659         selectany within this function without need to keep attribute.
6660         (i386_pe_encode_section_info): Remove selectany-code.
6662 2015-10-02  Richard Biener  <rguenther@suse.de>
6664         * tree-ssa-sccvn.c (has_VN_INFO): New function.
6665         (free_scc_vn): Use it.
6666         (visit_use): Remove dead code and refactor to use gassign
6667         and use less indentation.
6669 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6671         PR target/67788
6672         PR target/67789
6673         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
6674         (rs6000_cannot_copy_insn_p): New function.
6675         * config/rs6000/rs6000.md (cannot_copy): New attribute.
6676         (load_toc_v4_PIC_1_normal): Set cannot_copy.
6677         (load_toc_v4_PIC_1_476): Ditto.
6679 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
6681         * graphite-scop-detection.c (struct sese_l): New conversion constructor
6682         so that this type can be pushed into a vec.
6683         (class scop_builder): use sese_l to collect scops.
6684         (get_scops): New getter function.
6685         (remove_intersecting_scops): Use sese_l instead of scops_p.
6686         (intersects): Same.
6687         (add_scop): Same.
6688         (subsumes): Same.
6689         (remove_subscops): Same.
6690         (build_scops): Add scops to vec<scops_p> once all the scops have been
6691         detected.
6693 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
6695         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6696         Renamed type from gimple_bb_p to gimple_poly_bb_p.
6697         (translate_isl_ast_node_user): Same.
6698         * graphite-poly.c (new_poly_bb): Same.
6699         * graphite-poly.h (gbb_from_bb): Same.
6700         * sese.h: Same.
6701         * graphite-sese-to-poly.c (new_gimple_bb):
6702         gimple_bb_p -> gimple_poly_bb_p
6703         (build_scop_scattering): Same.
6704         (find_params_in_bb): Same.
6705         (add_conditions_to_domain): Same.
6706         (sese_dom_walker::before_dom_children): Same.
6707         (analyze_drs_in_stmts): Same.
6708         (new_pbb_from_pbb): Same.
6709         (free_data_refs_aux): New pointer to type base_alias_pair.
6710         * graphite-sese-to-poly.h: Same.
6711         * sese.c (if_region_set_false_region): Fixed Indentation.
6712         (move_sese_in_condition): Same.
6714 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
6715             Aditya Kumar  <aditya.k7@samsung.com>
6717         PR tree-optimization/66980
6718         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
6719         when data reference analysis has failed.
6721 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
6722             Aditya Kumar  <aditya.k7@samsung.com>
6724         PR tree-optimization/67754
6725         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
6726         scev analysis on the same loop nest as analyze_drs_in_stmts.
6727         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
6728         renamed...
6729         (try_generate_gimple_bb): Call outermost_loop_in_sese.
6730         (analyze_drs_in_stmts): Same.
6731         * sese.c (outermost_loop_in_sese): ...here.
6733 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
6734             Aditya Kumar  <aditya.k7@samsung.com>
6736         PR tree-optimization/67754
6737         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
6738         recursion on the inner loops.
6740 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6742         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
6743         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
6744         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
6745         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
6746         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
6748 2015-10-01  Marek Polacek  <polacek@redhat.com>
6750         PR c/65345
6751         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
6752         create_tmp_var_raw rather than create_tmp_var.
6754 2015-10-01  Marek Polacek  <polacek@redhat.com>
6756         PR tree-optimization/67769
6757         * tree-ssa-phiopt.c (conditional_replacement): Call
6758         reset_flow_sensitive_info_in_bb.
6759         (minmax_replacement): Likewise.
6760         (abs_replacement): Likewise.
6762 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
6764         * builtins.c: Don't include gomp-constants.h.
6765         (fold_builtin_1): Don't fold acc_on_device here.
6766         * gimple-fold.c: Include gomp-constants.h.
6767         (gimple_fold_builtin_acc_on_device): New.
6768         (gimple_fold_builtin): Call it.
6770 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6772         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
6773         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
6775 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
6777         * config/arm/aarch-common-protos.h
6778         (aarch_accumulator_forwarding): New.
6779         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6780         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
6781         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6782         * config/arm/cortex-a53.md: Rewrite.
6784 2015-10-01  Richard Biener  <rguenther@suse.de>
6786         * gimple-match.h (mprts_hook): Declare.
6787         * gimple-match.head.c (mprts_hook): Define.
6788         (maybe_push_res_to_seq): Use new hook.
6789         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6790         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
6791         (vn_ssa_aux::has_constants): Remove.
6792         * tree-ssa-sccvn.c: Include gimple-match.h.
6793         (VN_INFO_GET): Assert we don't re-use SSA names.
6794         (vn_get_expr_for): Remove.
6795         (expr_has_constants): Likewise.
6796         (stmt_has_constants): Likewise.
6797         (simplify_binary_expression): Likewise.
6798         (simplify_unary_expression): Likewise.
6799         (vn_lookup_simplify_result): New hook.
6800         (visit_copy): Adjust.
6801         (visit_reference_op_call): Likewise.
6802         (visit_phi): Likewise.
6803         (visit_use): Likewise.
6804         (process_scc): Likewise.
6805         (init_scc_vn): Likewise.
6806         (visit_reference_op_load): Likewise.  Use match-and-simplify and
6807         a gimple seq for inserted expressions.
6808         (try_to_simplify): Remove GENERIC stmt combining code.
6809         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
6810         * tree-ssa-pre.c (eliminate_insert): Adjust.
6811         (eliminate_dom_walker::before_dom_children): Likewise.
6813 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6815         * doc/invoke.texi (Optimization Options): Add
6816         -freorder-blocks-algorithm=.
6817         (Optimize Options) <-O>: Add -freorder-blocks.
6818         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
6819         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
6820         <-freorder-blocks>: Also enabled at levels -O and -Os.
6821         <-freorder-blocks-algorithm=>: Document new option.
6823 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6825         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
6826         with flag_reorder_blocks_algorithm.
6827         * common.opt (freorder-blocks-algorithm=): New flag.
6828         (reorder_blocks_algorithm): New enum.
6829         * flag-types.h (reorder_blocks_algorithm): New enum.
6830         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
6831         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
6833 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6835         * bb-reorder.c: Add intro comment.
6836         (reorder_basic_blocks_software_trace_cache): Print a header to
6837         the dump file.
6838         (edge_order): New function.
6839         (reorder_basic_blocks_simple): New function.
6840         (reorder_basic_blocks): Choose between the STC and the simple
6841         algorithms (always choose the former).
6843 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6845         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
6846         function, factored out from ...
6847         (reorder_basic_blocks): ... here.
6849 2015-10-01  Tom de Vries  <tom@codesourcery.com>
6851         * tree-cfg.c (dump_function_to_file): Dump function attributes using
6852         __attribute__(()) string.  Move dumping of function attributes to before
6853         function name.
6855 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
6857         PR target/66870
6858         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6859         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
6860         based on gold linker version.
6861         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
6862         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
6863         * configure, config.in: Regenerate.
6865 2015-10-01  Alan Modra  <amodra@gmail.com>
6867         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
6868         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
6869         (rs6000_output_mi_thunk): Likewise.
6871 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
6873         * config/nvptx/mkoffload.c (process): Change offload data format.
6875 2015-09-30  Jeff Law  <law@redhat.com>
6877         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
6878         with constant conditions.
6879         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
6880         (remove_ctrl_stmt_and_useless_edges): No longer static.
6881         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
6882         (remove_ctrl_stmt_and_useless_edges): Likewise.
6884 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
6885             Cesar Philippidis  <cesar@codesourcery.com>
6887         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
6888         (TARGET_GOACC_VALIDATE_DIMS): Override.
6889         * target.def (TARGET_GOACC): New target hook prefix.
6890         (validate_dims): New hook.
6891         * targhooks.h (default_goacc_validate_dims): New.
6892         * omp-low.c (oacc_validate_dims): New.
6893         (execute_oacc_device_lower): New.
6894         (default_goacc_validate_dims): New.
6895         (pass_data_oacc_device_lower): New.
6896         (pass_oacc_device_lower): New pass.
6897         (make_pass_oacc_device_lower): New.
6898         * tree-pass.h (make_pass_oacc_device_lower): Declare.
6899         * passes.def (pass_oacc_device_lower): Add it.
6900         * doc/tm.texi: Rebuilt.
6901         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
6902         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
6904 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6906         PR rtl-optimization/67037
6907         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
6909 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
6911         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
6912         * passes.c: Include tree-ssanames.h.
6913         (execute_function_todo): Flush the pending free SSA_NAMEs after
6914         eliminating unreachable basic blocks.
6915         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
6916         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
6917         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
6918         (flush_ssanames_freelist): New function.
6919         (release_ssaname_fn): Put released names on the queue.
6920         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
6921         * tree-ssanames.h (flush_ssanames_freelist): Declare.
6923 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
6925         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
6926         (generate_target_descr_file, generate_target_offloadend_file)
6927         (generate_host_descr_file, prepare_target_image): Pass it on.
6928         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
6929         (compile_native, main): Pass it on.
6930         * lto-wrapper.c (compile_offload_image): Likewise.
6932 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
6933             Ilya Verbin  <ilya.verbin@intel.com>
6934             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6936         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
6937         (prepare_target_image, main): Refactor argv building to use
6938         obstacks.
6940 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6942         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
6943         * config/spu/spu.c (spu_expand_atomic_op): New function.
6944         * config/spu/spu.md (AINT): New mode iterator.
6945         (ATOMIC): New code iterator.
6946         (atomic_name, atomic_pred): New code predicates.
6947         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
6948         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
6949         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
6950         "atomic_<atomic_name>_fetch<mode>"): Likewise.
6952 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
6954         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
6955         debug insns.
6956         (scalar_chain::convert_reg): Likewise.
6958 2015-09-30  Richard Biener  <rguenther@suse.de>
6960         * builtins.c: Add comment that no new simplifications should
6961         be added here.
6963 2015-09-30  Marek Polacek  <polacek@redhat.com>
6965         PR tree-optimization/67690
6966         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
6967         reset_flow_sensitive_info_in_bb.
6968         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
6969         * tree-ssanames.c: Include "gimple-iterator.h".
6970         (reset_flow_sensitive_info_in_bb): New function.
6971         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
6973 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
6975         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
6976         variable, replacing it with...
6977         (offload_abi): ... this new variable.  Adjust all users.
6978         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
6980 2015-09-30  Matthias Klose  <doko@ubuntu.com>
6982         * configure.ac: Remove extraneous ;;.
6983         * configure: Regenerate.
6985 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
6987         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
6988         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
6989         predicate, disallow register for operand 2.
6991 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
6993         * graphite-dependences.c (scop_get_dependences): Moved in down
6994         in order to be visible to its caller.
6995         * graphite-poly.h: Removed compute_deps, and extend_schedule.
6997 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
6998             Aditya Kumar  <aditya.k7@samsung.com>
7000         PR tree-optimization/67754
7001         * graphite-optimize-isl.c (optimize_isl): Call
7002         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7004 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7006         * builtins.c (expand_builtin_acc_on_device): Delete.
7007         (expand_builtin): Don't call it.
7008         (fold_builtin_1): Fold acc_on_device.
7010 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7012         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7013         (ix86_nsaved_sseregs): Likewise.
7015 2015-09-29  Jeff Law  <law@redhat.com>
7017         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7018         computation of unused value.
7020         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7021         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7022         inline macro expansion.
7024         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7026         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7027         (gen_shl_sext): Likewise.
7028         * config/sh/sh.md (divsi3): Likewise.
7029         (imm->ext_dest_operand splitter): Likewise.
7031 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
7032             Aditya Kumar  <aditya.k7@samsung.com>
7034         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7035         (nb_data_writes_in_bb): Remove.
7036         (split_pbb): Remove.
7037         (split_reduction_stmt): Remove.
7038         (is_reduction_operation_p): Remove.
7039         (phi_contains_arg): Remove.
7040         (follow_ssa_with_commutative_ops): Remove.
7041         (detect_commutative_reduction_arg): Remove.
7042         (detect_commutative_reduction_assign): Remove.
7043         (follow_inital_value_to_phi): Remove.
7044         (edge_initial_value_for_loop_phi): Remove.
7045         (initial_value_for_loop_phi): Remove.
7046         (used_outside_reduction): Remove.
7047         (detect_commutative_reduction): Remove.
7048         (translate_scalar_reduction_to_array_for_stmt): Remove.
7049         (remove_phi): Remove.
7050         (dr_indices_valid_in_loop): Remove.
7051         (close_phi_written_to_memory): Remove.
7052         (translate_scalar_reduction_to_array): Remove.
7053         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7054         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7055         (rewrite_commutative_reductions_out_of_ssa): Remove.
7056         (build_poly_scop): Remove call to
7057         rewrite_commutative_reductions_out_of_ssa.
7059 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
7061         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7062         Add new insn types for vector load and store pairs.
7063         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7064         types "neon_ldp{,_q}".
7065         * config/arm/cortex-a57.md (neon_load_c): Add insn types
7066         "neon_ldp{,_q}".
7067         (neon_store_complex): Add insn types "neon_stp{,_q}".
7068         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7069         "neon_{ldp,stp}_q".
7071 2015-09-29  Jeff Law  <law@redhat.com>
7073         * config/rx/constraints.md (Int08): Fix undefined left shift
7074         behaviour.
7075         (Sint08, Sint16, Sint24): Likewise.
7076         * config/rx/rx.c (rx_get_stack_layout): Likewise.
7078         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7079         behaviour.
7081         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7082         left shift behaviour.
7083         * config/msp430/constraints.md ('L' constraint): Similarly.
7084         ('Ys' constraint): Similarly.
7086 2015-09-29  Richard Biener  <rguenther@suse.de>
7088         PR tree-optimization/67170
7089         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7090         the translate function pointer parameter to get the
7091         bool whether to disambiguate only by reference.
7092         (walk_non_aliased_vuses): Likewise.
7093         * tree-ssa-alias.c (maybe_skip_until): Adjust.
7094         (get_continuation_for_phi_1): Likewise.
7095         (get_continuation_for_phi): Likewise.
7096         (walk_non_aliased_vuses): Likewise.
7097         * tree-ssa-sccvn.c (const_parms): New bitmap.
7098         (vn_reference_lookup_3): Adjust for interface change.
7099         Disambiguate parameters pointing to readonly memory.
7100         (free_scc_vn): Free const_parms.
7101         (run_scc_vn): Initialize const_parms from a fn spec attribute.
7103 2015-09-29  Richard Biener  <rguenther@suse.de>
7105         PR tree-optimization/67741
7106         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7107         builtin calls with correct signature.
7109 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
7111         PR target/65105
7112         * config/i386/i386.c: Include dbgcnt.h.
7113         (has_non_address_hard_reg): New.
7114         (convertible_comparison_p): New.
7115         (scalar_to_vector_candidate_p): New.
7116         (remove_non_convertible_regs): New.
7117         (scalar_chain): New.
7118         (scalar_chain::scalar_chain): New.
7119         (scalar_chain::~scalar_chain): New.
7120         (scalar_chain::add_to_queue): New.
7121         (scalar_chain::mark_dual_mode_def): New.
7122         (scalar_chain::analyze_register_chain): New.
7123         (scalar_chain::add_insn): New.
7124         (scalar_chain::build): New.
7125         (scalar_chain::compute_convert_gain): New.
7126         (scalar_chain::replace_with_subreg): New.
7127         (scalar_chain::replace_with_subreg_in_insn): New.
7128         (scalar_chain::emit_conversion_insns): New.
7129         (scalar_chain::make_vector_copies): New.
7130         (scalar_chain::convert_reg): New.
7131         (scalar_chain::convert_op): New.
7132         (scalar_chain::convert_insn): New.
7133         (scalar_chain::convert): New.
7134         (convert_scalars_to_vector): New.
7135         (pass_data_stv): New.
7136         (pass_stv): New.
7137         (make_pass_stv): New.
7138         (ix86_option_override): Created and register stv pass.
7139         (flag_opts): Add -mstv.
7140         (ix86_option_override_internal): Likewise.
7141         * config/i386/i386.md (SWIM1248x): New.
7142         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7143         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7144         (*anddi3_doubleword): New.
7145         (*zext<mode>_doubleword): New.
7146         (*zextsi_doubleword): New.
7147         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7148         (*<code>di3_doubleword): New.
7149         * config/i386/i386.opt (mstv): New.
7150         * dbgcnt.def (stv_conversion): New.
7152 2015-09-29  Tom de Vries  <tom@codesourcery.com>
7154         * tree-cfg.c (dump_function_to_file): Dump function attributes.
7156 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7158         PR target/67716
7159         * config/sh/sh.c (sh_override_options_after_change): New.
7160         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7161         (sh_option_override): Move align_loops, align_jumps and
7162         align_functions handling into sh_override_options_after_change.
7164 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7166         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7167         (nvptx_record_offload_symbol): Record function execution geometry.
7168         * config/nvptx/mkoffload.c (process): Include launch geometry in
7169         function data.
7170         * omp-low.c (oacc_launch_pack): New.
7171         (replace_oacc_fn_attrib): New.
7172         (set_oacc_fn_attrib): New.
7173         (get_oacc_fn_attrib): New.
7174         (expand_omp_target): Create keyed varargs for GOACC_parallel call
7175         generation.
7176         * omp-low.h (get_oacc_fn_attrib): Declare.
7177         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7178         (DEF_FUNCTION_TYPE_VAR_11): Delete.
7179         * tree.h (OMP_CLAUSE_EXPR): New.
7180         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7182 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7183             Sebastian Pop  <s.pop@samsung.com>
7185         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7187 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7188             Sebastian Pop  <s.pop@samsung.com>
7190         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7191         * graphite-scop-detection.c (struct sese_l): New type.
7192         (get_entry_bb): API for getting entry bb of SESE.
7193         (get_exit_bb): API for getting exit bb of SESE.
7194         (class debug_printer): New type.  Simple printer in debug mode.
7195         (trivially_empty_bb_p): New.  Return true when BB is empty or
7196         contains only debug instructions.
7197         (graphite_can_represent_expr): Call scalar_evoution_in_region
7198         instead of analyze_scalar_evolution.  Pass in scop instead of only
7199         the scop entry.
7200         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7201         scop entry.
7202         (stmt_simple_for_scop_p): Same.
7203         (harmful_stmt_in_bb): Same.
7204         (graphite_can_represent_loop): Deleted.
7205         (struct scopdet_info): Deleted.
7206         (scopdet_basic_block_info): Deleted.
7207         (build_scops_1): Deleted.
7208         (bb_in_sd_region): Deleted.
7209         (find_single_entry_edge): Deleted.
7210         (find_single_exit_edge): Deleted.
7211         (create_single_entry_edge): Deleted.
7212         (sd_region_without_exit): Deleted.
7213         (create_single_exit_edge): Deleted.
7214         (unmark_exit_edges): Deleted.
7215         (mark_exit_edges): Deleted.
7216         (create_sese_edges): Deleted.
7217         (build_graphite_scops): Deleted.
7218         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7219         (build_scops): Use the new scop_builder to build scops.
7220         (dot_all_scops_1): Use the new pretty printer.  Print loop father
7221         as well.
7222         (loop_body_is_valid_scop): New.  Return true if loop body is a
7223         valid scop.
7224         (class scop_builder): New.  Builds SCoPs for polyhedral
7225         optimizations.
7226         (scop_builder): New constructor.
7227         (static sese_l invalid_sese): sese_l with invalid edges.
7228         (get_sese): Get an sese (from a loop) if possible, invalid_sese
7229         otherwise.
7230         (get_nearest_dom_with_single_entry): Get nearest dominator of a
7231         basic_block with single entry.  Return NULL if we get to the
7232         beginning of a function.
7233         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7234         a basic_block with single exit.  Return NULL if we get to the
7235         beginning of a function.
7236         (print_sese): Pretty-print SESE.
7237         (merge_sese): Merge two SESEs if possible and return the new SESE.
7238         (build_scop_depth): Start building the SCoP within a loop nest.
7239         (build_scop_breadth): Start building the SCoP at a single loop
7240         depth.  Merge adjacent SESEs if valid.
7241         (can_represent_loop_1): Returns true if Graphite can represent
7242         loop inside SCoP.  Helper for can_represent_loop.
7243         (can_represent_loop): Returns true if Graphite can represent LOOP
7244         and all its nested loops in SCoP.
7245         (loop_is_valid_scop): Returns true if LOOP and all its nests
7246         constitute a valid SCoP.
7247         (region_has_one_loop): Returns true of a region has only one loop.
7248         (add_scop): Add SCoP to the list of valid scops.  Removes an
7249         already existing scop if it intersects with or subsumed by this one.
7250         (harmful_stmt_in_region): Returns true if SCoP has any statment
7251         which cannot be represented by Graphite.
7252         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7253         (remove_subscops): Remove any SCoP from the list of already found
7254         SCoPs, if subsumed by S1.
7255         (intersects): Return true if region bounded by SCoPs S1 and S2
7256         intersect.
7257         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7258         * graphite.c (print_graphite_scop_statistics):
7259         (print_graphite_statistics): Print SCoP info while debugging.
7260         (graphite_initialize): Early exit in case number of loops in a
7261         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7262         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7263         (graphite_finalize):
7264         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7265         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7266         (recompute_all_dominators): Recalculate POST_DOMINATORS.
7267         * tree-cfg.c (print_loops): Print the function name while printing
7268         loops.
7270 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7271             Sebastian Pop  <s.pop@samsung.com>
7273         PR tree-optimization/67700
7274         * graphite-sese-to-poly.c (parameter_index_in_region): Call
7275         invariant_in_sese_p_rec.
7276         (extract_affine): Same.
7277         (rewrite_cross_bb_scalar_deps): Call update_ssa.
7278         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
7279         * sese.h (invariant_in_sese_p_rec): Declare.
7281 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
7283         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7285 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
7287         Revert:
7288         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7289                     Jiong Wang  <jiong.wang@arm.com>
7291         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7292         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7293         (REG_CLASS_NAMES): Likewise.
7294         (REG_CLASS_CONTENTS): Likewise.
7295         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7296         (aarch64_register_move_cost): Likewise.
7297         (aarch64_load_symref_appropriately): Invoke the new added pattern if
7298         possible.
7299         * config/aarch64/constraints.md (Uc0): New constraint.
7301 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
7303         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7305 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
7307         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7308         SECTION_EXCLUDE in XO mapping class.
7310 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
7312         PR target/54236
7313         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7314         and handle ne and eq codes.
7315         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7316         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
7317         CONST_INT_P.  Use reverse_condition.
7318         (sh_split_treg_set_expr): Likewise.
7320 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
7322         * config/arm/types.md (type): Add rotate_imm.
7323         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7324         ROR immediate case.
7325         (*rorsi3_insn_uxtw): Likewise.
7326         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7327         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7328         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7330 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7332         PR rtl-optimization/67481
7333         * ifcvt.c (contains_ccmode_rtx_p): New function.
7334         (insn_valid_noce_process_p): Use it.
7336 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7338         PR rtl-optimization/67456
7339         PR rtl-optimization/67464
7340         PR rtl-optimization/67465
7341         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7342         move in the mode of x.  Handle combination of complex and simple
7343         block pairs as well as the case when one is empty.
7345 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7347         * doc/gimple.texi: Update references to gimple_statement_base.
7348         * gdbhooks.py: Likewise.
7349         * gimple.h: Likewise.
7351 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7353         * config/sparc/driver-sparc.c: map LEON to leon3
7355 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7357         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7358           and make it inverse to change default
7359         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7360           supervisor mode
7361         * doc/invoke.texi: Document change of default
7363 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7365         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7366         true on %f0 for a target without FPU.
7367         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7368         without FPU.
7369         (untyped_return): Do not load %f0 for a target without FPU.
7371 2015-09-28  Andrew Pinski  <apinski@cavium.com>
7373         * config/aarch64/aarch64.md (prefetch):
7374         Change the predicate of operand 0 to register_operand.
7376 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
7378         * config/i386/predicates.md (register_sse4nonimm_operand): New
7379         predicate.
7380         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7381         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7382         Use register_sse4nonimm_operand as operand 0 predicate.
7383         (*vec_extractv8hi_sse2): Remove insn pattern.
7384         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7385         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7387 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
7388             Kaz Kojima  <kkojima@gcc.gnu.org>
7390         PR target/67391
7391         * config/sh/sh-protos.h (sh_lra_p): Declare.
7392         * config/sh/sh.c (sh_lra_p): Make non-static.
7393         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7394         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
7395         Expand into addsi3_scr if operands[2] if needed.
7396         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
7397         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
7398         (addsi3_scr, *addsi3): New insn_and_split patterns.
7400 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
7402         PR rtl-optimization/64164
7403         PR tree-optimization/67312
7404         PR middle-end/67340
7405         PR middle-end/67490
7406         PR bootstrap/67597
7407         * cfgexpand.c (parm_in_stack_slot_p): Remove.
7408         (ssa_default_def_partition): Remove.
7409         (get_rtl_for_parm_ssa_default_def): Remove.
7410         (set_rtl): Check that RTL assignments match expectations.
7411         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
7412         default def location for params and results.  Record SSA names
7413         or types in REG and MEM attrs, respectively.
7414         (set_parm_rtl): New.
7415         (expand_one_ssa_partition): Drop logic that assigned MEMs with
7416         unassigned addresses.
7417         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7418         deferred stack alloc vars.
7419         (expand_used_vars): Skip partitions holding parm default defs.
7420         Move adjust_one_expanded_partition_var loop...
7421         (pass_expand::execute): ... here.  Drop redundant assert.
7422         Adjust comments before the final loop over all ssa names.
7423         Require assigned rtl of parms and results to match exactly.
7424         Reset its attributes to match them, not any other variables in
7425         the same partition.
7426         (expand_debug_expr): Use entry value for PARM's default defs
7427         only iff they have zero nondebug uses.
7428         * cfgexpand.h (parm_in_stack_slot_p): Remove.
7429         (get_rtl_for_parm_ssa_default_def): Remove.
7430         (set_parm_rtl): Declare.
7431         * doc/invoke.texi: Improve wording.
7432         * explow.c (promote_decl_mode): Fix promote_function_mode for
7433         result decls not by reference.
7434         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7435         bypass TYPE_MODE to get the actual vector mode.
7436         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
7437         2015-08-19's changes as follows.  Drop include of
7438         basic-block.h and df.h.
7439         (rtl_for_parm): Remove.
7440         (maybe_reset_rtl_for_parm): Remove.
7441         (parm_in_unassigned_mem_p): Remove.
7442         (use_register_for_decl): Add logic for RESULT_DECLs matching
7443         assign_parms' behavior.
7444         (split_complex_args): Revert.
7445         (assign_parms_augmented_arg_list): Revert.  Add comment
7446         referencing the logic above.
7447         (assign_parm_adjust_stack_rtl): Revert.
7448         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
7449         of SET_DECL_RTL.  Set up a REG if the parm demands so.
7450         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
7451         calls into a single set_parm_rtl.  Set up a temporary RTL
7452         temporarily for expand_assignment.
7453         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
7454         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
7455         (assign_bounds): Revert.
7456         (assign_parms): Revert.  Use set_parm_rtl.
7457         (allocate_struct_function): Relayout result and parms of
7458         non-abstruct functions.
7459         (expand_function_start): Revert.  Use set_parm_rtl.  If the
7460         result is not a hard reg, create a pseudo from the promoted
7461         mode of the default def.  Promote static chain mode.
7462         * tree-outof-ssa.c (remove_ssa_form): Drop unused
7463         partition_has_default_def.  Set up
7464         partitions_for_parm_default_defs.
7465         (finish_out_of_ssa): Remove partition_has_default_def.
7466         Release partitions_for_parm_default_defs.
7467         * tree-outof-ssa.h (struct ssaexpand): Remove
7468         partition_has_default_def.  Add
7469         partitions_for_parm_default_defs.
7470         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
7471         stor-layout.h.
7472         (build_ssa_conflict_graph): Fix conflict-detection of default
7473         defs of even unused default defs of params and results.
7474         (for_all_parms): New.
7475         (create_default_def): New.
7476         (register_default_def): New.
7477         (coalesce_with_default): New.
7478         (create_outofssa_var_map): Create default defs for all parms
7479         and results, and register their partitions.  Add GIMPLE_RETURN
7480         operands as coalesce candidates with results.  Add default
7481         defs of each parm or result as coalesce candidates with its
7482         other defs.  Mark each result def, and each default def of
7483         parms, as used_in_copy.
7484         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
7485         with the ssa names, even anonymous ones.  Drop
7486         parm_in_stack_slot_p calls.  Require same signedness and
7487         alignment.
7488         (coalesce_ssa_name): Add coalesce candidates for all defs of
7489         each parm and result, even unused ones.
7490         (parm_default_def_partition_arg): New type.
7491         (set_parm_default_def_partition): New.
7492         (get_parm_default_def_partitions): New.
7493         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
7494         * tree-ssa-live.c (partition_view_init): Regard unused defs of
7495         parms and results as used.
7496         (verify_live_on_entry): Don't error out just because they're
7497         not live.
7499 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
7501         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7502         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
7503         (output_fde): Don't output length for debug_frame on AIX.
7504         (output_call_frame_info): Don't output length for debug_frame on AIX.
7505         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
7506         HAVE_XCOFF_DWARF_EXTRAS.
7507         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
7508         HAVE_XCOFF_DWARF_EXTRAS.
7509         (output_compilation_unit_header): Don't output length on AIX.
7510         (output_pubnames): Don't output length on AIX.
7511         (output_aranges): Delete argument. Compute length locally. Don't
7512         output length on AIX.
7513         (output_line_info): Don't output length on AIX.
7514         (dwarf2out_finish): Don't compute aranges_length.
7515         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7516         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
7517         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
7518         symbol decoration for AIX.
7519         (rs6000_xcoff_debug_unwind_info): New.
7520         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
7521         for SECTION_DEBUG.
7522         (rs6000_xcoff_declare_function_name): Emit different
7523         .function pseudo-op when DWARF2_DEBUG. Don't call
7524         xcoffout_declare_function for DWARF2_DEBUG.
7525         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
7526         Redefine.
7527         * config/rs6000/aix71.h: New.
7528         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
7529         locations support.
7530         * configure: Regenerate.
7531         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
7532         DWARF support.
7534 2015-09-26  Jeff Law  <law@redhat.com>
7536         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
7537         behaviour.
7538         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
7539         behaviour.
7541         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
7542         behaviour
7544         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
7545         undefined behaviour.
7547         * config/cris/cris.md (asrandb): Fix left shift undefined
7548         behaviour.
7549         (asrandw): Likewise.
7551 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
7553         PR target/61578
7554         * lra-constarints.c (match_reload): Check presence of the input pseudo
7555         in the output operand.
7557 2015-09-25  Tobias Burnus  <burnus@net-b.de>
7559         * doc/invoke.texi (-fsanitize): Minor wording tweak.
7561 2015-09-25  Tobias Burnus  <burnus@net-b.de>
7563         * doc/invoke.texi (-fsanitize): Update URLs.
7565 2015-09-25  Teresa Johnson  <tejohnson@google.com>
7567         * opts.c (finish_options): Unset -freorder-blocks-and-partition
7568         if not using profile.
7570 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7572         PR pretty-print/67567
7573         * pretty-print.c (pp_string): Add gcc_checking_assert.
7574         * pretty-print.h (output_buffer_append_r): Likewise.
7576 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
7578         PR target/67675
7579         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
7580         addr2 individually.  Don't emit logical or insn if one is known to
7581         be aligned approriately.
7582         (sh_expand_cmpnstr): Likewise.
7584 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
7586         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
7587         __builtin_aarch64_fp[sc]r arguments into a register.
7589 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
7591         * config.gcc (x86_archs): Replace lakemount with lakemont.
7592         (with_cpu): Likewise.
7593         (with_arch): Likewise.
7594         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7595         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
7596         __tune_lakemount__ with __tune_lakemont__.
7597         * config/i386/i386.c (lakemount_cost): Renamed to ...
7598         (lakemont_cost): This.
7599         (m_LAKEMOUNT): Renamed to ...
7600         (m_LAKEMONT): This.
7601         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
7602         (processor_target_table): Replace "lakemount" with "lakemont".
7603         (processor_alias_table): Likewise.
7604         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
7605         PROCESSOR_LAKEMONT.
7606         (ix86_adjust_cost): Likewise.
7607         (ia32_multipass_dfa_lookahead): Likewise.
7608         * config/i386/i386.h (processor_type): Likewise.
7609         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
7610         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
7611         Lakemount with Lakemont.
7613 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
7615         * config.gcc (x86_archs): Replace iamcu with lakemount.
7616         (with_cpu): Likewise.
7617         (with_arch): Likewise.
7618         * doc/invoke.texi: Likewise.
7619         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7620         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
7621         __tune_iamcu__ with __tune_lakemount__.
7622         * config/i386/i386.c (iamcu_cost): Renamed to ...
7623         (lakemount_cost): This.
7624         (m_IAMCU): Renamed to ...
7625         (m_LAKEMOUNT): This.
7626         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
7627         (processor_target_table): Replace "iamcu" with "lakemount".
7628         (processor_alias_table): Likewise.
7629         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
7630         PROCESSOR_LAKEMOUNT.
7631         (ix86_adjust_cost): Likewise.
7632         (ia32_multipass_dfa_lookahead): Likewise.
7633         * config/i386/i386.h (processor_type): Likewise.
7634         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
7636 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
7638         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
7639         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
7640         Declare.
7641         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
7642         (pa_expand_compare_and_swap_loop): New.
7643         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
7644         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
7645         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
7646         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
7647         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
7648         Revise.
7650 2015-09-24  Michael Collison  <michael.collison@linaro.org>
7652         PR other/57195
7653         * read-md.c (read_name): Allow mode iterators inside angle
7654         brackets in rtl expressions.
7656 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
7658         PR target/61578
7659         * ira-color.c (update_allocno_cost): Add parameter.
7660         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
7661         parameter.
7663 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7665         PR driver/67640
7666         * opts-common.c (prune_options): Discard all -fdiagnostics-color
7667         but the last one, which is moved to the front to be processed
7668         first.
7669         * opts.c (enable_warning_as_error): Reject options that do not
7670         control warnings.
7672 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
7674         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
7676 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
7678         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
7679         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
7680         (aarch64_cannot_force_const_mem): Likewise.
7681         (aarch64_classify_address): Likewise.
7682         (aarch64_classify_symbolic_expression): Likewise.
7683         (aarch64_print_operand): Likewise.
7684         (aarch64_classify_symbol): Likewise.
7685         (aarch64_mov_operand_p): Likewise.
7686         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
7687         (aarch64_mov_operand): Likewise.
7689 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
7691         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
7692         for info->spe_gp_size.
7694 2015-09-24  Richard Biener  <rguenther@suse.de>
7696         PR lto/67699
7697         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
7698         abstract origins.
7700 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
7702         * tree-object-size.c (plus_stmt_object_size)
7703         (cond_expr_object_size): Change the formal parameters from gimple
7704         to gimple *.
7705         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
7706         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
7707         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
7709 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7711         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
7712         Check for ld -type pie on Solaris 11.x and 12.
7713         * configure: Regenerate.
7714         * config.in: Regenerate.
7716         * gcc.c (LD_PIE_SPEC): Allow redefinition.
7718         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
7719         (STARTFILE_SPEC): Use it.
7720         (ENDFILE_CRTEND_SPEC): Define.
7721         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
7722         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
7723         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
7724         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
7725         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
7726         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
7727         (ENDFILE_ARCH_SPEC): Define.
7728         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
7730 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7732         * configure.ac (gcc_cv_solaris_crts): New test.
7733         * configure. Regenerate.
7734         * config.in: Regenerate.
7735         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
7736         HAVE_SOLARIS_CRTS variant.
7738 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7740         * tree-inline.h (count_insns_seq): Delete prototype.
7741         (estimate_num_insns_seq): Define prototype.
7742         * tree-inline.c (count_insns_seq): Delete.
7743         (estimate_num_insns_seq): Remove static qualifier.
7744         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
7745         with estimate_num_insns_seq.
7747 2015-09-24  Richard Biener  <rguenther@suse.de>
7749         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
7750         members.
7751         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
7752         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
7753         offset.
7754         (ao_ref_init_from_vn_reference): Record clique and base in the
7755         built base.
7756         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
7758 2015-09-24  Richard Biener  <rguenther@suse.de>
7760         PR tree-optimization/48885
7761         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
7762         as not including any restrict tags from other pointers.
7764 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
7766         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
7767         character when appending to offload_targets.
7769         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
7770         offload targets by commas, not colons.
7771         * config.in: Regenerate.
7772         * configure: Likewise.
7773         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
7774         instead of setting up the default offload targets here...
7775         (process_command): ..., do it here.
7776         libgomp/
7777         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
7778         targets are separated by commas.
7779         * config.h.in: Regenerate.
7781 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
7782             Nathan Sidwell  <nathan@codesourcery.com>
7784         * omp-low.h (omp_reduction_init_op): Declare.
7785         * omp-low.c (omp_reduction_init_op): New, broken out of ...
7786         (omp_reduction_init): ... here.  Call it.
7787         * tree-parloops.c (initialize_reductions): Use
7788         omp_reduction_init_op.
7790 2015-09-23   Richard Biener  <rguenther@suse.de>
7792         PR middle-end/67662
7793         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
7794         undefined overflow unless they will cancel out.
7796 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
7798         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
7799         insn emit.
7801 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7803         PR c/49655
7804         * opts.h (write_langs): Declare.
7805         * opts-global.c (write_langs): Make it extern.
7807 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
7809         PR target/67391
7810         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
7811         overlapping regs when matching the pattern.
7813 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
7815         * config/aarch64/aarch64-simd.md
7816         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
7817         (aarch64_float_truncate_hi_v4sf_le): New.
7818         (aarch64_float_truncate_hi_v4sf_be): Likewise.
7820 2015-09-23  Richard Biener  <rguenther@suse.de>
7822         * tree-ssa-structalias.c (intra_create_variable_infos): Build
7823         representatives for all restrict qualified pointer destinations.
7825 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
7827         * config/i386/i386.md (define_code_attr mshift): New.
7828         (define_mode_iterator SWI1248_AVX512BW): Rename ...
7829         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
7830         only.
7831         (define_insn "*k<logic><mode>"): Use new iterator name.
7832         (define_insn "*<mshift><mode>3"): New.
7834 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
7836         PR middle-end/67649
7837         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
7838         mark the block as accessible.
7840 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
7842         * function.c (thread_prologue_and_epilogue_insns): Delete
7843         orig_entry_edge argument to try_shrink_wrapping.
7844         * shrink-wrap.c (can_get_prologue): New function.
7845         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
7846         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
7847         can_get_prologue where needed.  Remove code that finds a single
7848         edge for the prologue.  Remove code that tests if any reg clobbered
7849         by the prologue is live on the prologue edge.  Remove code that finds
7850         the new prologue edge after duplicating blocks.  Make a new prologue
7851         block and edge.
7852         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
7854 2015-09-22  Jeff Law  <law@redhat.com>
7856         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
7857         behavior.
7859 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
7861         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
7862         -Wtemplates, -Wnamespaces): Document.
7864 2015-09-22  Tom de Vries  <tom@codesourcery.com>
7866         PR tree-optimization/67671
7867         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
7868         pointer references as restrict.
7870 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7872         * config/nios2/nios2.c (nios2_legitimize_address): When handling
7873         'reg + reloc' cases, allow first operand to be non-REG, and use
7874         force_reg() to enforce address pattern.
7876 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
7878         PR target/67480
7879         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
7880         (define_mode_iterator VI12_AVX_AVX512F): New.
7881         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
7882         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
7883         (define_insn "*<code><mode>3"): ... Into new pattern using
7884         VI12_AVX_AVX512F iterators without masking.
7886 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
7888         * config.gcc: Support "skylake-avx512".
7889         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7890         PROCESSOR_SKYLAKE_AVX512.
7891         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
7892         (processor_target_table): Add "skylake-avx512".
7893         (PTA_SKYLAKE_AVX512): Define.
7894         (ix86_option_override_internal): Add "skylake_avx512".
7895         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
7896         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
7897         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
7898         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
7899         * doc/invoke.texi (skylake-avx512): New.
7901 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
7903         * config/i386/i386.md (define_insn "kunpckhi"): Fix
7904         operand in pattern.
7905         (define_insn "kunpcksi"): Ditto.
7906         (define_insn "kunpckdi"): Ditto.
7908 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
7910         * config/i386/i386.md (define_split not/xor SWI1248x): Use
7911         iterator instead of fixed modes.
7913 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
7915         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7916         Adjust declaration.
7917         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
7918         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
7919         out_result.  Update to support update-fetch operations.
7920         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
7921         Adjust for change to aarch64_gen_atomic_ldop.
7922         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
7923         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
7924         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
7925         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
7926         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
7928 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
7930         * config/aarch64/aarch64-protos.h
7931         (aarch64_atomic_ldop_supported_p): Declare.
7932         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
7933         (enum aarch64_atomic_load_op_code): New.
7934         (aarch64_emit_atomic_load_op): New.
7935         (aarch64_gen_atomic_ldop): Update to support load-operate
7936         patterns.
7937         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
7938         to an expander.
7939         (aarch64_atomic_<atomic_optab><mode>): New.
7940         (aarch64_atomic_<atomic_optab><mode>_lse): New.
7941         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
7942         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
7943         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
7945 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
7947         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
7948         (UNSPECV_ATOMIC_LDOP_OR): New.
7949         (UNSPECV_ATOMIC_LDOP_BIC): New.
7950         (UNSPECV_ATOMIC_LDOP_XOR): New.
7951         (UNSPECV_ATOMIC_LDOP_PLUS): New.
7952         (ATOMIC_LDOP): New.
7953         (atomic_ldop): New.
7954         (aarch64_atomic_load<atomic_ldop><mode>): New.
7956 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
7958         * config/aarch64/aarch64.md
7959         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
7960         pattern.
7962 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
7964         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7965         Declare.
7966         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
7967         (aarch64_gen_atomic_ldop): New.
7968         (aarch64_split_atomic_op): Fix whitespace and add a comment.
7969         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
7970         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
7971         (atomic_exchange<mode>): Replace with an expander.
7972         (aarch64_atomic_exchange<mode>): New.
7973         (aarch64_atomic_exchange<mode>_lse): New.
7974         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
7975         (aarch64_atomic_swp<mode>): New.
7977 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7979         * tree-inline.c (expand_call_inline): Use inform for extra note.
7980         Do not give a note with UNKNOWN_LOCATION.
7981         Replace input_location with gimple_location (stmt).
7982         Use true/false instead of TRUE/FALSE.
7984 2015-09-22  Tom de Vries  <tom@codesourcery.com>
7986         PR tree-optimization/67666
7987         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
7988         with single field non-conservative.
7990 2015-09-21  David S. Miller  <davem@davemloft.net>
7992         PR/67622
7993         Revert:
7994         2015-09-11  David S. Miller  <davem@davemloft.net>
7996         * config/sparc/constraints.md: Make "U" constraint a real register
7997         constraint.
7998         * config/sparc/sparc.c (TARGET_LRA_P): Define.
7999         (D_MODES, DF_MODES): Add missing cast.
8000         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8001         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8002         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8003         cost to 8.
8004         * config/sparc/sparc.h (PROMOTE_MODE): Define.
8005         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8006         provide these insn when flag_pic.
8008         2015-09-17  David S. Miller  <davem@davemloft.net>
8010         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8011         Declare.
8012         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8013         function.
8014         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8015         (HARD_REGNO_CALLER_SAVE_MODE): Define.
8016         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8017         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8018         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8019         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8020         provide when flag_pic.
8022 2015-09-21  Jeff Law  <law@redhat.com>
8024         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8025         behavior.
8027 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8029         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8031 2015-09-21  Richard Biener  <rguenther@suse.de>
8033         * passes.c (rest_of_decl_compilation): Do not call
8034         dwarf2out_early_global_decl for aliases.
8036 2015-09-21  Richard Biener  <rguenther@suse.de>
8038         PR debug/67664
8039         * dwarf2out.c (add_location_or_const_value_attribute): Remove
8040         attribute parameter.  Early exit if either DW_AT_const_value
8041         or DW_AT_location are present already.
8042         (gen_variable_die): Adjust caller.
8043         (dwarf2out_late_global_decl): Likewise.
8045 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8047         PR target/67657
8048         * config/sh/sh.c (sh_remove_overlapping_post_inc,
8049         sh_peephole_emit_move_insn): Add new functions.
8050         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8051         sh_peephole_emit_move_insn): Declere them.
8052         * config/sh/sh.md: Use them in various peephole2 patterns.
8054 2015-09-21  Richard Biener  <rguenther@suse.de>
8056         PR middle-end/67651
8057         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8058         address with -fno-delete-null-pointer-checks.
8060 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
8062         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8063         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8064         (reduc_uplus_v16qi): Remove.
8066         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8067         (reduc_<VEC_reduc_name>_v2df): Remove.
8068         (reduc_<VEC_reduc_name>_v4sf): Remove.
8069         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8071         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8072         gen_ function by removing * prefix.
8073         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8075 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8077         PR middle-end/60832
8078         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8079         Print i_bound without converting it to a tree.
8081 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
8083         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8084         operands[4] operands[5] swap with std::swap, removed tmp variable.
8085         (arm_evpc_neon_vzip): Replaced in0/in1 and
8086         out0/out1 swaps with std::swap, removed x variable.
8087         (arm_evpc_neon_vtrn): Replaced in0/int1 and
8088         out0/out1 swaos with std::swap, removed x variable.
8089         (arm_expand_vec_perm_const_1): Replaced
8090         d->op0/d->op1 swap with std::swap, removed x variable.
8091         (arm_evpc_neon_vuzp): Replaced in0/in1 and
8092         out0/out1 swaps with std::swap, removed x variable.
8094 2015-09-21  Jonathan Yong  <10walls@gmail.com>
8096         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8097         sysroot/usr/lib/32api for additional win32 libraries,
8098         fixes failing Cygwin bootstrapping.
8100 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8102         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8104 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8106         PR target/67126
8107         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8108         (*mov_t_msb_neg): Rewrite negc pattern.
8110 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8112         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8113         immediate generation code.
8115 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8117         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8118         redundant immediate generation code.
8120 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8122         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8123         (AARCH64_NUM_BITMASKS): Remove.
8124         (aarch64_bitmasks_cmp): Remove.
8125         (aarch64_build_bitmask_table): Remove.
8127 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8129         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8130         slow immediate matching loops with a faster algorithm.
8132 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8134         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8135         faster algorithm.
8137 2015-09-20  Jeff Law  <law@redhat.com>
8139         PR tree-optimization/47679
8140         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8141         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8142         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8143         (thread_through_normal_block): Use record_temporary_equivalences.
8145 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
8147         * coretypes.h (gimple): Change typedef to be a forward declaration.
8148         * gimple.h (gimple_statement_base): rename to gimple.
8149         * (all functions and types using gimple): Adjust.
8150         * *.[ch]: Likewise.
8152 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
8153             David Edelsohn  <dje.gcc@gmail.com>
8155         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8156         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8157         (EH_FRAME_THROUGH_COLLECT2): Define.
8158         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8159         (ASM_OUTPUT_DWARF_PCREL): Define.
8160         (ASM_OUTPUT_DWARF_DATAREL): Define.
8162 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
8164         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8165         of TARGET_ELF32.
8167 2015-09-18  Jeff Law  <law@redhat.com>
8169         PR tree-optimization/47679
8170         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
8171         it here ...
8172         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8173         object.  Update constructor.
8174         (pass_dominator::execute):  Corresponding chagnes to declaration
8175         and initialization of avail_exprs_stack.  Update constructor call
8176         for dom_opt_dom_walker object.
8177         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
8178         it down to children as needed.
8179         (record_equivalences_from_incoming_edge): Likewise.
8180         (eliminate_redundant_computations): Likewise.
8181         (record_equivalences_from_stmt): Likewise.
8182         (simplify_stmt_for_jump_threading): Likewise.
8183         (record_temporary_equivalences): Likewise.
8184         (optimize_stmt): Likewise.
8185         (dom_opt_dom_walker::thread_across_edge): Update access to
8186         avail_exprs_stack object and pass it to children as needed.
8187         (dom_opt_dom_walker::before_dom_children): Similarly.
8188         (dom_opt_dom_walker::after_dom_children): Similarly.
8189         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8190         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8191         Add avail_expr_stack argument.  Pass it to children as needed.
8192         (dummy_simplify): Likewise.
8193         (simplify_control_stmt_condition): Likewise.
8194         (thread_around_empty_blocks): Likewise.
8195         (thread_through_normal_block): Likewise.
8196         (thread_across_edge): Likewise.
8197         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8198         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8200         PR tree-optimization/47679
8201         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
8202         it here ...
8203         (dom_opt_dom_walker): New private member holding the const_and_copies
8204         object.  Update constructor.
8205         (pass_dominator::execute): Corresponding changes to declaration
8206         and initialization of const_and_copies.  Update constructor call
8207         for the dom_opt_dom_walker object.
8208         (record_temporary_equivalences): Accept const_and_copies argument
8209         pass it down to children as needed.
8210         (record_equality): Likewise.
8211         (record_equivalences_from_incoming_edge): Likewise.
8212         (cprop_into_successor_phis, optimize_stmt): Likewise.
8213         (eliminate_redundant_computations): Likewise.
8214         (dom_opt_dom_walker::thread_across_edge): Update access to
8215         const_and_copies object and pass it to children as needed.
8216         (dom_opt_dom_walker::before_dom_children): Similarly.
8217         (dom_opt_dom_walker::after_dom_children): Similarly.
8219         PR tree-optimization/47679
8220         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
8221         it into the avail_exprs_stack class.
8222         (pass_dominator::execute): Corresponding changes to declaration
8223         and initialization of avail_exprs.  Pass avail_exprs to
8224         dump_dominator_optimization_stats.
8225         (record_cond): Extract avail_exprs from avail_exprs_stack.
8226         (lookup_avail_expr): Similarly.
8227         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
8228         position in file.
8229         (dump_dominator_optimization_stats): Make static and prototype.
8230         Add argument for the hash table to dump.
8231         (debug_dominator_optimization_stats): Remove.
8232         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8233         prototype.
8234         (debug_dominator_optimization_stats): Similarly.
8235         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8236         "void" in prototype for pop_to_marker method.  Add accessor method
8237         for the underlying avail_exprs table.
8239         * tree-ssa-threadedge.c: Remove trailing whitespace.
8241 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
8243         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8244         unsigned.
8245         (pa_ldil_cint_p): Likewise.
8246         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8247         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8248         Update callers.
8249         * config/pa/pa.md: Likewise.
8251 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
8253         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8254         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8255         (diagnostic_show_locus): Likewise.
8256         (diagnostic_print_caret_line): Likewise.
8257         * diagnostic-show-locus.c: New file.
8259 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
8261         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8262         "back" parameter. Declare label in #if block.
8264 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
8266         PR middle-end/67619
8267         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8268         the address to a register.
8270 2015-09-18  Jeff Law  <law@redhat.com>
8272         PR tree-optimization/47679
8273         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8274         * tree-ssa-dom.c: Remove unnecessary header includes.
8275         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8276         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8277         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8278         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8279         (pass_phi_only_cprop::execute): Likewise.
8280         (make_pass_phi_only_cprop): Likewise.
8281         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
8282         uses of file scoped statics by passing the required objects
8283         as parameters wherever needed.
8285 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
8286             David Edelsohn  <dje.gcc@gmail.com>
8288         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8289         EH_FRAME_THROUGH_COLLECT2.
8290         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8291         DW_EH_PE_datarel.
8292         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8293         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
8294         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8295         * except.c (switch_to_exception_section): Use a read-only section
8296         even if EH_FRAME_SECTION_NAME is undefined.
8297         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8298         * collect2.c (write_c_file_stat): Provide dbase on AIX.
8299         (scan_prog_file): Don't export __dso_handle nor
8300         __gcc_unwind_dbase.
8301         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8302         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8303         (ASM_OUTPUT_DWARF_PCREL): Define.
8304         (ASM_OUTPUT_DWARF_DATAREL): Define.
8305         (EH_FRAME_THROUGH_COLLECT2): Define.
8306         (EH_FRAME_IN_DATA_SECTION): Delete.
8307         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8308         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8309         Declare.
8310         (rs6000_asm_output_dwarf_datarel): Declare.
8311         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8312         (rs6000_aix_asm_output_dwarf_datarel): New.
8313         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8314         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8315         (EH_FRAME_THROUGH_COLLECT2): Define.
8316         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8317         (EH_FRAME_THROUGH_COLLECT2): Define.
8318         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8319         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8320         (EH_FRAME_THROUGH_COLLECT2): New.
8321         (ASM_OUTPUT_DWARF_DATAREL): New.
8322         * doc/tm.texi: Regenerate.
8324 2015-09-18  Richard Biener  <rguenther@suse.de>
8326         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8327         we're in early phase.
8328         (schedule_generic_params_dies_gen): Likewise.
8329         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8330         work as possible, retaining unhandled cases.
8331         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8332         clear out generic_type_instances at the end.
8333         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8334         (dwarf2out_early_finish): ... here.  Do most of
8335         gen_remaining_tmpl_value_param_die_attribute here.
8337 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
8339         PR tree-optimization/67283
8340         * tree-sra.c (type_consists_of_records_p): Rename to...
8341         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8342         (completely_scalarize_record): Rename to...
8343         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8344         (scalarize_elem): New.
8345         (analyze_all_variable_accesses): Follow renamings.
8347 2015-09-18  Richard Biener  <rguenther@suse.de>
8349         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8350         in early-dwarf.
8352 2015-09-18  Richard Biener  <rguenther@suse.de>
8354         PR tree-optimization/66142
8355         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8356         treat MEM[&x] and x the same.
8357         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8358         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8359         when we simplified sth.
8360         (vn_reference_maybe_forwprop_address): Likewise.
8361         (valueize_refs_1): When we simplified through
8362         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8363         set valueized_anything to true.
8364         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8365         one ref kills the other instead of just a offset-based test.
8366         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8367         for the operand_equal_p test to compare bases and also compare
8368         sizes.
8370 2015-09-17  Christian Bruel  <christian.bruel@st.com>
8372         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8374 2015-09-17  Richard Henderson  <rth@redhat.com>
8376         PR libstdc++/65913
8377         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8378         pointers that encode the alignment of the object.
8380 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8382         PR rtl-optimization/66790
8383         * df-problems.c (LIVE): Amend documentation.
8385 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8387         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8388         and optabs-tree.o.
8389         (GTFILES): Replace optabs.c with optabs-libfunc.c.
8390         * genopinit.c (main): Add an include guard to insn-opinit.h.
8391         Protect the rtx_code parts with NUM_RTX_CODE.
8392         * optabs.h: Split parts out to...
8393         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8394         * optabs.c: Split parts out to...
8395         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8396         * cilk-common.c: Include optabs-query.h rather than optabs.h.
8397         * fold-const.c: Likewise.
8398         * target-globals.c: Likewise.
8399         * tree-if-conv.c: Likewise.
8400         * tree-ssa-forwprop.c: Likewise.
8401         * tree-ssa-loop-prefetch.c: Likewise.
8402         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8403         Remove unncessary include files.
8404         * tree-ssa-phiopt.c: Likewise.
8405         * tree-ssa-reassoc.c: Likewise.
8406         * tree-switch-conversion.c: Likewise.
8407         * tree-vect-data-refs.c: Likewise.
8408         * tree-vect-generic.c: Likewise.
8409         * tree-vect-loop.c: Likewise.
8410         * tree-vect-patterns.c: Likewise.
8411         * tree-vect-slp.c: Likewise.
8412         * tree-vect-stmts.c: Likewise.
8413         * tree-vrp.c: Likewise.
8414         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8415         rather than optabs.h.
8416         * expr.c: Include optabs-tree.h.
8417         * function.c: Likewise.
8419 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8421         PR middle-end/65958
8422         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8423         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8424         * config/arm/arm.c: Include common/common-target.h.
8425         (use_return_insn): Return 0 if the static chain register was saved
8426         above a non-APCS frame.
8427         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8428         (struct scratch_reg): New.
8429         (get_scratch_register_on_entry): New function.
8430         (release_scratch_register_on_entry): Likewise.
8431         (arm_emit_probe_stack_range): Likewise.
8432         (output_probe_stack_range): Likewise.
8433         (arm_expand_prologue): Factor out code dealing with the IP register
8434         for nested function and adjust it for stack checking.
8435         Invoke arm_emit_probe_stack_range if static builtin stack checking
8436         is enabled.
8437         (thumb1_expand_prologue): Sorry out if static builtin stack checking
8438         is enabled.
8439         (arm_expand_epilogue): Add the saved static chain register, if any, to
8440         the amount of pre-pushed registers to pop.
8441         (arm_frame_pointer_required): Return true if static stack checking is
8442         enabled and we want to catch the exception with the EABI unwinder.
8443         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
8444         (UNSPEC_PROBE_STACK_RANGE): Likewise.
8445         * config/arm/arm.md (probe_stack): New insn.
8446         (probe_stack_range): Likewise.
8448 2015-09-17  Richard Biener  <rguenther@suse.de>
8450         * genmatch.c (parser::parse_expr): Improve error message
8451         for mis-placed flags.
8453 2015-09-17  Richard Biener  <rguenther@suse.de>
8455         * passes.c (rest_of_decl_compilation): Always call early_global_decl
8456         debug hook when we created a varpool node.
8457         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
8458         dwarf2out_early_global_decl, when not just add location or
8459         value attributes to existing DIEs.
8461 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
8463         * config/aarch64/aarch64.md (copysigndf3): New.
8464         (copysignsf3): Likewise.
8466 2015-09-17  David S. Miller  <davem@davemloft.net>
8468         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
8469         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
8470         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8471         (HARD_REGNO_CALLER_SAVE_MODE): Define.
8472         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8473         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8474         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8475         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8476         provide when flag_pic.
8478 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
8480         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
8481         object_allocator change.
8483 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
8485         PR tree-optimization/66388
8486         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
8487         (dump_iv): Dump no_overflow information.
8488         (alloc_iv): Initialize new field for struct iv.
8489         (mark_bivs): Count number of no_overflow bivs.
8490         (find_deriving_biv_for_expr, record_biv_for_address_use): New
8491         functions.
8492         (idx_find_step): Call new functions above.
8493         (add_candidate_1, add_candidate): New paramter.
8494         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
8495         (get_computation_aff): Simplify convertion of cand for BIV.
8496         (get_computation_cost_at): Step cand's base if necessary.
8498 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
8500         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
8501         parameter.
8502         (tree_simplify_using_condition): Ditto.
8503         (simplify_using_initial_conditions): Ditto.
8504         (loop_exits_before_overflow): Pass new argument to function
8505         simplify_using_initial_conditions.  Remove case for type conversions
8506         simplification.
8507         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
8508         parameter.
8509         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
8510         in iv base using loop initial conditions.
8512 2015-09-16  Jeff Law  <law@redhat.com>
8514         PR tree-optimization/47679
8515         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
8516         (free_all_edge_infos): Use it.
8517         (allocate_edge_info): Free preexisting edge info data.
8518         (pass_dominator::execute): Set up initial edge info structures.
8519         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
8520         thread_across_edge.
8521         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
8522         If non-null, then push/pop markers appropriately.
8523         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8524         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
8525         thread-across_edge.
8527 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
8529         * config/ft32/ft32.c: Fix the memory address space predicate.
8531 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8533         PR target/67573
8534         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
8535         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8537 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8539         * toplev.h (check_global_declaration): Remove declaration.
8540         * toplev.c (check_global_declaration): Move to ...
8541         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
8542         (analyze_functions): Update call.
8544 2015-09-16  David S. Miller  <davem@davemloft.net>
8546         * lra-constraints.c (simplify_operand_subreg): Do not assume that
8547         lowpart of a SUBREG has offset zero.
8549 2015-09-16  Jeff Law  <law@redhat.com>
8551         PR tree-optimization/47679
8552         * tree-ssa-dom.c (enum expr_kind): Moved from here to
8553         tree-ssa-scopedtables.h.
8554         (struct hashable_expr, class expr_hash_elt): Likewise.
8555         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
8556         Move associated methods into tree-ssa-scopedtables.c.
8557         (avail_expr_hash, initialize_expr_from_cond): Similarly.
8558         (hashable_expr_equal_p, add_expr_commutative): Likewise.
8559         (add_hashable_expr): Likewise.
8560         (record_cond): Delete element directly.
8561         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
8562         private copy ctor and assignment operator methods.
8563         (expr_elt_hasher): Inline trivial methods.
8564         (initialize_expr_from_cond): Prototype.
8565         * tree-ssa-scopedtables.c: Add necessary includes, functions and
8566         methods that were previously in tree-ssa-dom.c.  Improve various
8567         comments.
8569 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
8571         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
8573 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
8575         PR bootstrap/67587
8576         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8577         fixup_partitions.
8579 2015-09-16  Richard Biener  <rguenther@suse.de>
8581         PR middle-end/67253
8582         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
8583         location of possibly shared trees.
8585 2015-09-16  Richard Biener  <rguenther@suse.de>
8587         PR middle-end/67271
8588         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
8590 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
8592         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
8593         offset and size computations instead of HOST_WIDE_INT.
8595 2015-09-16  Richard Biener  <rguenther@suse.de>
8597         PR middle-end/67442
8598         * fold-const.c (extract_muldiv_1): Properly extend multiplication
8599         result before builting a tree via wide_int_to_tree.
8601 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
8603         * Makefile.in: Add memory-block.cc
8604         (pool_allocator::initialize): Use fixed block size.
8605         (pool_allocator::release): Use memory_block_pool.
8606         (pool_allocator::allocate): Likewise.
8607         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
8608         object pools.
8609         * cfg.c (initialize_original_copy_tables): Likewise.
8610         * cselib.c (elt_list_pool, elt_loc_list_pool,
8611         cselib_val_pool): Likewise.
8612         * df-problems.c (df_chain_alloc): Likewise.
8613         * df-scan.c (df_scan_alloc): Likewise.
8614         * dse.c (cse_store_info_pool, rtx_store_info_pool,
8615         read_info_type_pool, insn_info_type_pool, bb_info_pool,
8616         group_info_pool, deferred_change_pool): Likewise.
8617         * et-forest.c (et_nodes, et_occurrences): Likewise.
8618         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
8619         ipcp_agg_lattice_pool): Likewise.
8620         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
8621         * ipa-profile.c (histogram_pool): Likewise.
8622         * ipa-prop.c (ipa_refdesc_pool): Likewise.
8623         * ira-build.c (live_range_pool, allocno_pool, object_pool,
8624         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
8625         * ira-color.c (update_cost_record_pool): Likewise.
8626         * lra-lives.c (lra_live_range_pool): Likewise.
8627         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
8628         * memory-block.cc: New file.
8629         * memory-block.h: New file.
8630         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
8631         * sched-deps.c (sched_deps_init): Likewise.
8632         * sel-sched-ir.c (sched_lists_pool): Likewise.
8633         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
8634         * tree-sra.c (access_pool): Likewise.
8635         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8636         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
8637         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
8638         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8639         * tree-ssa-strlen.c (strinfo_pool): Likewise.
8640         * tree-ssa-structalias.c (variable_info_pool): Likewise.
8641         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
8642         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
8644 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8646         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
8647         definition.
8648         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
8649         call0 ABI.
8651 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8653         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
8654         to pass TLS call argument, according to current ABI.
8655         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
8656         callx0 for TLS call, according to current ABI.
8658 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8660         * tree-eh.c (lower_try_finally_dup_block): Clear location information
8661         on stack restore statements.
8662         (decide_copy_try_finally): Do not consider a stack restore statement as
8663         coming from sources.
8665 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
8667         * config/alpha/alpha.c (alpha_expand_block_clear): Use
8668         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
8670 2015-09-15  Jeff Law  <law@redhat.com>
8672         PR tree-optimization/47679
8673         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
8674         methods and private members.
8675         (avail_exprs_stack): Similarly.  Change type of global
8676         from a pair of expr_hash_elt_t to the new class.
8677         (expr_elt_hasher::hash): Corresponding changes.
8678         (expr_elt_hasher::equal): Similarly.
8679         (avail_expr_hash): Similarly.
8680         (pass_dominator::execute): Similarly.
8681         (dom_opt_dom_walker::thread_across_edge): Similarly.
8682         (record_cond): Similarly.
8683         (dom_opt_dom_walker::before_dom_children): Similarly.
8684         (dom_opt_dom_walker::after_dom_children): Similarly.
8685         (lookup_avail_expr): Likewise.
8686         (initialize_hash_element): Now a expr_hash_elt constructor.
8687         (initialize_hash_element_from_expr): Similarly.
8688         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
8689         (free_expr_hash_elt): Call dtor for the element.
8690         (remove_local_expressions_from_table): Now the "pop_to_marker"
8691         method in the available_exprs_stack class.
8692         (avail_expr_stack::record_expr): Method factored out.
8693         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
8694         Fix formatting.
8695         (hashable_expr_equal_p): Fix formatting.
8697 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
8699         * input.h (location_get_source_line): Drop "expanded_location"
8700         param in favor of a file and line number.
8701         * input.c (location_get_source_line): Likewise.
8702         (dump_location_info): Update for change in signature of
8703         location_get_source_line.
8704         * diagnostic.c (diagnostic_print_caret_line): Likewise.
8706 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8708         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
8709         Bump to 4KB for SJLJ exceptions.
8710         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
8711         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
8712         * doc/tm.texi: Regenerate.
8714 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8716         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
8717         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
8718         Update prototype.
8720 2015-09-15  Richard Biener  <rguenther@suse.de>
8722         PR tree-optimization/67470
8723         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
8724         structure for PHI hoisting by inserting a forwarder block
8725         if appropriate.
8727 2015-09-15  Christian Bruel  <christian.bruel@st.com>
8729         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
8730         (arm_option_print): New function.
8732 2015-09-15  Christian Bruel  <christian.bruel@st.com>
8734         PR target/52144
8735         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
8736         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
8737         Remove flags parameter.
8738         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
8739         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
8740         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
8741         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
8742         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
8743         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
8744         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
8745         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
8747 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8749         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
8751         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
8752         AARCH64_VALID_SIMD_DREG_MODE.
8754 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8756         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
8757         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
8758         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
8759         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
8760         aarch64_ld4_lane<mode>): Combine together, making...
8761         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8762         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8763         aarch64_st4_lane<mode>): Combine together, making...
8764         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8765         * config/aarch64/iterators.md (nregs): Add comment.
8767 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8769         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
8770         Change operand mode from <V_TWO_ELEM> to BLK.
8771         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
8772         (aarch64_vec_store_lanesoi_lane<mode): Likewise
8773         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8774         (aarch64_ld2_lane<mode>): Likewise.
8775         (aarch64_st2_lane<VQ:mode>): Likewise.
8776         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
8778 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8780         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
8781         Change operand mode from <V_FOUR_ELEM> to BLK.
8782         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
8783         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
8784         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8785         (aarch64_ld4_lane<mode>): Likewise.
8786         (aarch64_st4_lane<mode>): Likewise.
8787         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
8789 2015-09-15  Richard Biener  <rguenther@suse.de>
8791         PR middle-end/67563
8792         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8793         transfer EH info from old to new stmt.
8794         (replace_call_with_value): Likewise.
8795         (replace_call_with_call_and_fold): Likewise.
8796         (gimple_fold_builtin_memory_op): Likewise.
8797         (gimple_fold_builtin_memset): Likewise.
8798         (gimple_fold_builtin_stpcpy): Likewise.
8799         (gimple_fold_call): Likewise.
8801 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8803         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
8804         comment.
8805         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
8806         (aarch64_simd_intEI_type_node): Likewise.
8807         (aarch64_simd_builtin_std_type): Remove EImode case.
8808         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
8809         * config/aarch64/aarch64-modes.def: Remove EImode.
8811 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8813         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
8814         Change operand mode from <V_THREE_ELEM> to BLK.
8815         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
8816         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
8817         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8818         (aarch64_ld3_lane<mode>): Likewise.
8819         (aarch64_st3_lane<mode>): Likewise.
8820         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
8822 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8824         * config/aarch64/aarch64-simd.md
8825         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
8826         Change all TImode operands to BLKmode.
8827         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
8828         Change all EImode operands to BLKmode.
8829         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
8830         Change all OImode operands to BLKmode.
8832         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
8833         and call set_mem_size.
8834         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
8836         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
8838 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
8840         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
8841         to...
8842         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
8844         (vec_store_lanesci_lane<mode>): Rename to...
8845         (aarch64_vec_store_lanesci_lane<mode>): ...this.
8847         (vec_store_lanesxi_lane<mode>): Rename to...
8848         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
8850         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8851         aarch64_st4_lane<mode>): Follow renaming.
8853 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8855         * config/s390/s390.c (s390_const_operand_ok): Add missing
8856         brackets.
8858 2015-09-15  Richard Biener  <rguenther@suse.de>
8860         PR lto/67568
8861         * lto-streamer.h (lto_location_cache::current_sysp): Properly
8862         initialize.
8863         * lto-streamer-out.c (clear_line_info): Likewise.
8865 2015-09-15  Richard Biener  <rguenther@suse.de>
8867         * doc/match-and-simplify.texi: Fix wording.
8869 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
8871         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
8872         unnecessary type conversion in op1.
8874 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
8876         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
8877         (dup_block_and_redirect): Delete function.
8878         (can_dup_for_shrink_wrapping): New function.
8879         (fix_fake_fallthrough_edge): New function.
8880         (try_shrink_wrapping): Rewrite function.
8881         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
8883 2015-09-14  Rich Felker  <dalias@libc.org>
8885         * configure.ac: Change target pattern for sh TLS support
8886         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
8887         * configure: Regenerate.
8889 2015-09-14  Jeff Law  <law@redhat.com>
8891         PR tree-optimization/47679
8892         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
8893         type rather than void *.
8895 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8897         PR fortran/67460
8898         * diagnostic.c (diagnostic_initialize): Do not set
8899         some_warnings_are_errors.
8900         (diagnostic_finish): Use DK_WERROR count instead.
8901         (diagnostic_report_diagnostic): Do not set
8902         some_warnings_are_errors.
8903         * diagnostic.h (struct diagnostic_context): Remove
8904         some_warnings_are_errors.
8906 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
8908         * config/sparc/predicates.md (const_all_ones_operand): Use
8909         CONSTM1_RTX to simplify definition.
8911 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
8913         PR target/67061
8914         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
8915         Handle call insns.
8917 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
8919         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
8920         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
8921         OPT_fshow_column to handled saved option cases.
8922         (append_compiler_options): Do not skip the above added options.
8924 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8926         PR target/63304
8927         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
8928         nopcrelative_literal_loads.
8929         (aarch64_classify_address): Likewise.
8930         (aarch64_constant_pool_reload_icode): Define.
8931         (aarch64_secondary_reload): Handle secondary reloads for
8932         literal pools.
8933         (aarch64_override_options): Handle nopcrelative_literal_loads.
8934         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
8935         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8936         Define.
8937         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8938         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
8939         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
8940         predicate.
8941         * doc/invoke.texi (mpc-relative-literal-loads): Document.
8943 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
8945         PR middle-end/67401
8946         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
8947         sync_compare_and_swap_optab libcall to target_oval.
8949 2015-09-14  Marek Polacek  <polacek@redhat.com>
8951         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
8952         value.
8953         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
8955 2015-09-11  Mark Wielaard  <mjw@redhat.com>
8957         PR c/28901
8958         * toplev.c (check_global_declaration): Check and use
8959         warn_unused_const_variable.
8960         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
8961         (-Wunused-variable): Remove non-constant. For C implies
8962         -Wunused-const-variable.
8963         (-Wunused-const-variable): New.
8965 2015-09-14  Richard Biener  <rguenther@suse.de>
8967         * doc/match-and-simplify.texi: Update for changed syntax
8968         of inner ifs and the new switch expression.
8970 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8972         * config/i386/haswell.md: New file describing Haswell pipeline.
8973         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
8974         haswell-like processors.
8975         (ix86_reassociation_width): Increase reassociation width for 64-bit
8976         Haswell processor family.
8977         * config/i386/i386.md: Introduce haswell cpu and include new md file.
8979 2015-09-14  Richard Biener  <rguenther@suse.de>
8981         * doc/match-and-simplify.texi: Fixup some formatting issues
8982         and document the 's' flag.
8984 2015-09-13  Olivier Hainque  <hainque@adacore.com>
8985             Eric Botcazou  <ebotcazou@adacore.com>
8987         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
8988         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
8989         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
8990         (TARGET_CPU_gr5): Likewise.
8991         (TARGET_CPU_gr6): Likewise.
8992         (MULTILIB_DEFAULTS): Likewise.
8993         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
8994         for mcpu=gr5 and mcpu=gr6.
8995         (MULTILIB_DIRNAMES): Adjust accordingly.
8997 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8999         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9000         (mem_ref_p): Likewise.
9001         (outermost_indep_loop): Adjust.
9002         (mem_ref_in_stmt): Likewise.
9003         (determine_max_movement): Likewise.
9004         (mem_ref_alloc): Likewise.
9005         (record_mem_ref_loc): Likewise.
9006         (set_ref_stored_in_loop): Likewise.
9007         (mark_ref_stored): Likewise.
9008         (gather_mem_refs_stmt): Likewise.
9009         (mem_refs_may_alias_p): Likewise.
9010         (for_all_locs_in_loop): Likewise.
9011         (struct rewrite_mem_ref_loc): Likewise.
9012         (rewrite_mem_refs): Likewise.
9013         (struct first_mem_ref_loc_1): Likewise.
9014         (first_mem_ref_loc): Likewise.
9015         (struct sm_set_flag_if_changed): Likewise.
9016         (execute_sm_if_changed_flag_set): Likewise.
9017         (execute_sm): Likewise.
9018         (hoist_memory_references):
9019         (struct ref_always_accessed): Likewise.
9020         (ref_always_accessed_p): Likewise.
9021         (refs_independent_p): Likewise.
9022         (record_dep_loop): Likewise.
9023         (ref_indep_loop_p_1): Likewise.
9024         (ref_indep_loop_p_2): Likewise.
9025         (ref_indep_loop_p): Likewise.
9026         (can_sm_ref_p): Likewise.
9027         (find_refs_for_sm): Likewise.
9028         (tree_ssa_lim_finalize): Likewise.
9030 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9032         * dwarf2out.c (dw_attr_ref): Remove typedef.
9033         (dw_line_info_ref): Likewise.
9034         (pubname_ref): Likewise.
9035         (dw_ranges_ref): Likewise.
9036         (dw_ranges_by_label_ref): Likewise.
9037         (comdat_type_node_ref): Likewise.
9038         (get_AT): Adjust.
9039         (get_AT_low_pc): Likewise.
9040         (get_AT_hi_pc): Likewise.
9041         (get_AT_string): Likewise.
9042         (get_AT_flag): Likewise.
9043         (get_AT_unsigned): Likewise.
9044         (get_AT_ref): Likewise.
9045         (get_AT_file): Likewise.
9046         (remove_AT): Likewise.
9047         (print_die): Likewise.
9048         (check_die): Likewise.
9049         (die_checksum): Likewise.
9050         (attr_checksum_ordered): Likewise.
9051         (struct checksum_attributes): Likewise.
9052         (collect_checksum_attributes): Likewise.
9053         (die_checksum_ordered): Likewise.
9054         (same_die_p): Likewise.
9055         (is_declaration_die): Likewise.
9056         (clone_die): Likewise.
9057         (clone_as_declaration): Likewise.
9058         (copy_declaration_context): Likewise.
9059         (break_out_comdat_types): Likewise.
9060         (copy_decls_walk): Likewise.
9061         (output_location_lists): Likewise.
9062         (external_ref_hasher::hash): Likewise.
9063         (optimize_external_refs_1): Likewise.
9064         (build_abbrev_table): Likewise.
9065         (size_of_die): Likewise.
9066         (unmark_all_dies): Likewise.
9067         (size_of_pubnames): Likewise.
9068         (output_die_abbrevs): Likewise.
9069         (output_die): Likewise.
9070         (output_pubnames): Likewise.
9071         (add_ranges_num): Likewise.
9072         (add_ranges_by_labels): Likewise.
9073         (add_high_low_attributes): Likewise.
9074         (gen_producer_string): Likewise.
9075         (dwarf2out_set_name): Likewise.
9076         (new_line_info_table): Likewise.
9077         (prune_unused_types_walk_attribs): Likewise.
9078         (prune_unused_types_update_strings): Likewise.
9079         (prune_unused_types): Likewise.
9080         (resolve_addr): Likewise.
9081         (optimize_location_lists_1): Likewise.
9082         (index_location_lists): Likewise.
9083         (dwarf2out_finish): Likewise.
9085 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9087         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9089 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9091         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9092         (dump_asserts_for): Adjust.
9093         (register_new_assert_for): Likewise.
9094         (process_assert_insertions): Likewise.
9095         (insert_range_assertions): Likewise.
9097 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9099         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9100         and remove typedef.
9101         (new_temp_expr_table): Adjust.
9102         (free_temp_expr_table): Likewise.
9103         (version_to_be_replaced_p): Likewise.
9104         (make_dependent_on_partition): Likewise.
9105         (add_to_partition_kill_list): Likewise.
9106         (remove_from_partition_kill_list): Likewise.
9107         (add_dependence): Likewise.
9108         (finished_with_expr): Likewise.
9109         (process_replaceable): Likewise.
9110         (kill_expr): Likewise.
9111         (kill_virtual_exprs): Likewise.
9112         (mark_replaceable): Likewise.
9113         (find_replaceable_in_bb): Likewise.
9114         (find_replaceable_exprs): Likewise.
9115         (debug_ter): Likewise.
9117 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9119         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9120         (struct btr_user): Rename from btr_user_s.
9121         (struct btr_def): Rename from btr_def_s.
9122         (find_btr_def_group): Adjust.
9123         (add_btr_def): Likewise.
9124         (new_btr_user): Likewise.
9125         (note_other_use_this_block): Likewise.
9126         (compute_defs_uses_and_gen): Likewise.
9127         (link_btr_uses): Likewise.
9128         (build_btr_def_use_webs): Likewise.
9129         (block_at_edge_of_live_range_p): Likewise.
9130         (btr_def_live_range): Likewise.
9131         (combine_btr_defs): Likewise.
9132         (move_btr_def): Likewise.
9133         (migrate_btr_def): Likewise.
9134         (migrate_btr_defs): Likewise.
9136 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9138         * var-tracking.c (shared_hash_def): Rename to shared_hash.
9139         (shared_hash): Remove typedef.
9140         (struct dataflow_set): Adjust.
9141         (shared_hash_unshare): Likewise.
9142         (dataflow_set_merge): Likewise.
9143         (vt_initialize): Likewise.
9144         (vt_finalize): Likewise.
9146 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9148         * var-tracking.c (struct location_chain): Rename from
9149         location_chain_def.
9150         (struct variable_part): Adjust.
9151         (variable_htab_free): Likewise.
9152         (unshare_variable): Likewise.
9153         (get_init_value): Likewise.
9154         (get_addr_from_local_cache): Likewise.
9155         (drop_overlapping_mem_locs): Likewise.
9156         (val_reset): Likewise.
9157         (struct variable_union_info): Likewise.
9158         (variable_union): Likewise.
9159         (find_loc_in_1pdv): Likewise.
9160         (insert_into_intersection): Likewise.
9161         (intersect_loc_chains): Likewise.
9162         (canonicalize_loc_order_check): Likewise.
9163         (canonicalize_values_mark): Likewise.
9164         (canonicalize_values_star): Likewise.
9165         (canonicalize_vars_star): Likewise.
9166         (variable_merge_over_cur): Likewise.
9167         (remove_duplicate_values): Likewise.
9168         (variable_post_merge_new_vals): Likewise.
9169         (variable_post_merge_perm_vals): Likewise.
9170         (find_mem_expr_in_1pdv): Likewise.
9171         (dataflow_set_preserve_mem_locs): Likewise.
9172         (dataflow_set_remove_mem_locs): Likewise.
9173         (variable_part_different_p): Likewise.
9174         (onepart_variable_different_p): Likewise.
9175         (find_src_set_src): Likewise.
9176         (dump_var): Likewise.
9177         (set_slot_part): Likewise.
9178         (clobber_slot_part): Likewise.
9179         (delete_slot_part): Likewise.
9180         (vt_expand_var_loc_chain): Likewise.
9181         (emit_note_insn_var_location): Likewise.
9182         (vt_finalize): Likewise.
9184 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9186         * dse.c (store_info_t): Remove typedef.
9187         (group_info_t): Likewise.
9188         (const_group_info_t): Likewise.
9189         (deferred_change_t): Likewise.
9190         (get_group_info): Adjust.
9191         (free_store_info): Likewise.
9192         (canon_address): Likewise.
9193         (clear_rhs_from_active_local_stores): Likewise.
9194         (record_store): Likewise.
9195         (replace_read): Likewise.
9196         (check_mem_read_rtx): Likewise.
9197         (scan_insn): Likewise.
9198         (remove_useless_values): Likewise.
9199         (dse_step1): Likewise.
9200         (dse_step2_init): Likewise.
9201         (dse_step2_nospill): Likewise.
9202         (scan_stores_nospill): Likewise.
9203         (scan_reads_nospill): Likewise.
9204         (dse_step3_exit_block_scan): Likewise.
9205         (dse_step3): Likewise.
9206         (dse_step5_nospill): Likewise.
9207         (dse_step6): Likewise.
9209 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9211         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9212         (alias_set_entry): Remove typedef.
9213         (alias_set_subset_of): Adjust.
9214         (alias_sets_conflict_p): Likewise.
9215         (init_alias_set_entry): Likewise.
9216         (get_alias_set): Likewise.
9217         (new_alias_set): Likewise.
9218         (record_alias_subset): Likewise.
9220 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
9222         * doc/install.texi (Downloading the source): Mark up
9223         contrib/download_prerequisites properly and drop leading "./".
9225 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9227         * config/arc/arc.h: Remove define of STRUCT_VALUE.
9228         * config/lm32/lm32.h: Likewise.
9229         * config/mep/mep.h: Likewise.
9230         * config/visium/visium.h: Likewise.
9231         * system.h: Poison STRUCT_VALUE macro.
9233 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
9235         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9236         CONSTANT_P operands.
9238 2015-09-11  David S. Miller  <davem@davemloft.net>
9240         * config/sparc/constraints.md: Make "U" constraint a real register
9241         constraint.
9242         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9243         (D_MODES, DF_MODES): Add missing cast.
9244         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9245         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9246         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9247         cost to 8.
9248         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9249         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9250         provide these insn when flag_pic.
9252 2015-09-11  Jeff Law  <law@redhat.com>
9254         PR tree-optimization/47679
9255         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9256         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9257         member with m_.  Update inline member functions as necessary.  Add
9258         toplevel comment.
9259         * tree-ssa-scopedtables.c: Update const_and_copies's member
9260         functions to use m_ prefix to access the stack.
9262 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
9264         * graphite-optimize-isl.c (disable_tiling): Remove.
9265         (get_schedule_for_band): Do not use disable_tiling.
9266         (get_prevector_map): Delete function.
9267         (enable_polly_vector): Remove.
9268         (get_schedule_for_band_list): Remove dead code.
9270 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
9272         * graphite-optimize-isl.c (get_tile_map): Refactor.
9273         (get_schedule_for_band): Same.
9274         (getScheduleForBand): Same.
9275         (get_prevector_map): Same.
9276         (get_schedule_for_band_list): Same.
9277         (get_schedule_map): Same.
9278         (get_single_map): Same.
9279         (apply_schedule_map_to_scop): Same.
9280         (optimize_isl): Same.
9282 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9284         PR target/63304
9285         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9286         (movtf): Delete.
9287         * config/aarch64/iterators.md (GPF_TF_F16): New.
9288         (GPF_F16): Delete.
9290 2015-09-10  Nathan Sidwell  <nathan@acm.org>
9292         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9293         (nvptx_reorg): Adjust comments.
9295 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
9297         PR bootstrap/67363
9298         * configure.ac: Check if setenv and unsetenv are declared.
9299         * configure: Rebuild.
9300         * config.in: Rebuild.
9301         * system.h: Declare setenv and unsetenv if not declared.
9303 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9305         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9306         commentary to simplify permute mask adjustment equation.
9307         (special_handling_values): Add SH_VPERM.
9308         (const_load_sequence_p): New function.
9309         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9310         the mask loaded from the constant pool.
9311         (adjust_vperm): New function.
9312         (handle_special_swappables): Call adjust_vperm.
9313         (dump_swap_insn_table): Handle SH_VPERM.
9315 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9317         * shrink-wrap.c (requires_stack_frame_p): Remove static.
9318         * shrink-wrap.h (requires_stack_frame_p): Put back.
9320 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9322         * reload1.c (elimination_costs_in_insn): Locally turn
9323         -Wmaybe-uninitialized into a warning.
9325 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
9327         * shrink-wrap.c (requires_stack_frame_p): Make static.
9328         (prepare_shrink_wrap): Likewise.
9329         (dup_block_and_redirect): Likewise.
9330         * shrink-wrap.h: Remove declarations of those functions.
9332 2015-09-10  Mark Wielaard  <mjw@redhat.com>
9334         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9336 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
9338         PR target/67506
9339         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9340         missing simplify_gen_subreg.
9342 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9344         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9345         the vector element is bigger than 64 bit.
9347 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9349         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9350         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9352 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9354         * config/s390/s390.c: Add V1TImode to constant pool modes.
9356 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9358         PR target/67439
9359         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9360         predicate.  Set predicable_short_it attr to "no".
9362 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
9364         PR rtl-optimization/67421
9365         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9366         left wide shift tranformation.
9368 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
9370         * common/config/arc/arc-common.c: Remove references to A5.
9371         * config/arc/arc-opts.h: Likewise.
9372         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9373         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9374         * config/arc/t-arc-newlib: Likewise.
9376 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
9378         * config/arc/arc.md (length): Fix attribute length for conditional
9379         executed instructions with long immediate.
9381 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9383         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9384         type for second alternative.
9386 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
9388         * doc/invoke.texi (Downloading GCC): Mention
9389         contrib/download_prerequisites script.
9391 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
9393         PR c++/67523
9394         * gimplify.c (gimplify_omp_for): If inner stmt is not found
9395         for combined loop, assert seen_error () and return GS_ERROR.
9397         PR middle-end/67521
9398         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9399         if decl is already in outer->variables.
9401         PR middle-end/67517
9402         * gimplify.c (gimplify_scan_omp_clauses): Instead of
9403         asserting that decl is not specified in octx->variables,
9404         break out of the loop if it is.
9406         PR c++/67514
9407         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9408         iterator is not explicitly determined, but is defined inside
9409         of the combined workshare region, handle it like if it has
9410         DECL_EXPR in OMP_FOR_PRE_BODY.
9412 2015-09-09  Nathan Sidwell  <nathan@acm.org>
9414         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9415         (*cmp<mode>): Add assembler spacing.
9416         (setcc_int<mode>, set_cc_float<mode>): Likewise.
9417         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9418         level.
9419         (write_func_decl_from_insn): Refactor argument loops & comma emission.
9420         (nvptx_expand_call): Likewise.
9421         (nvptx_output_call_insn): Likewise.
9422         (nvptx_reorg_subreg): Add spacing.
9424 2015-09-09  Marek Polacek  <polacek@redhat.com>
9426         PR middle-end/67512
9427         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9428         for comparisons.
9430 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9432         PR c++/53184
9433         * doc/invoke.texi ([Wsubobject-linkage]): Document.
9435 2015-09-09  Tom de Vries  <tom@codesourcery.com>
9437         * params-list.h: Add missing copyright notice.
9439 2015-09-09  Nathan Sidwell  <nathan@acm.org>
9441         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
9442         sel_truesi, not andsi.
9444 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9446         * config/arm/arm.md (*subsi3_compare0): Rename to...
9447         (subsi3_compare0): ... This.
9448         (modsi3): New define_expand.
9449         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
9450         when operand is power of 2.
9452 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9454         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
9455         (*neg<mode>2_compare0): Rename to...
9456         (neg<mode>2_compare0): ... This.
9457         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
9458         Move check for speed inside the if-then-elses.  Reflect
9459         CSNEG sequence in MOD by power of 2 case.
9461 2015-09-09  Alan Modra  <amodra@gmail.com>
9463         PR target/67378
9464         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
9465         reload replacement for PRE_MODIFY address reg.
9467 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
9469         PR tree-optimization/53852
9470         * config.in: Regenerate.
9471         * configure: Regenerate.
9472         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
9473         * graphite-optimize-isl.c (optimize_isl): Stop computation when
9474         PARAM_MAX_ISL_OPERATIONS is reached.
9475         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
9476         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
9477         result equal to isl_stat_ok as the status now can be isl_error_quota.
9478         (subtract_commutative_associative_deps): Same.
9479         (compute_deps): Same.
9481 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
9482             Sebastian Pop  <s.pop@samsung.com>
9484         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9485         Return the parameter if it was saved in corresponding
9486         parameter_rename_map of the region.
9487         (copy_def): Copy def from sese region to the newly created region.
9488         (copy_internal_parameters): Copy all the internal parameters defined
9489         within a region to the newly created region.
9490         (graphite_regenerate_ast_isl): Copy parameters to the new region before
9491         translating isl to gimple.
9492         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
9493         the loop-nest does not have any data-references.
9494         (build_graphite_scops): Create a scop only when there is at least one
9495         loop inside it.
9496         (contains_only_close_phi_nodes): Deleted.
9497         (print_graphite_scop_statistics): Deleted
9498         (print_graphite_statistics): Deleted
9499         (limit_scops): Deleted.
9500         (build_scops): Removed call to limit_scops.
9501         * sese.c (new_sese): Construct.
9502         (free_sese): Destruct.
9503         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
9504         added.
9505         (set_rename): Pass sese region so that parameters inside the region can
9506         be added to its parameter_rename_map.
9507         (rename_uses): Pass sese region.
9508         (graphite_copy_stmts_from_block): Do not copy parameters that have been
9509         generated in the header of the scop. For each SSA_NAME in the
9510         parameter_rename_map rename its usage.
9511         (invariant_in_sese_p_rec): Return false if tree t is defined outside
9512         sese region.
9513         (scalar_evolution_in_region): If the tree t is invariant just return t.
9514         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
9515         struct sese to keep track of all the parameters which need renaming.
9516         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
9517         any data-refs.
9518         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
9520 2015-09-08  Tom de Vries  <tom@codesourcery.com>
9522         * Makefile.in (generated_files): Add params.list.
9523         (params.list, s-params.list): Add rule.
9524         * params.h (enum compiler_param): Include params-list.h.  Move define
9525         DEFPARAM, include params.def and undef DEFPARAM ...
9526         * params-list.h: ... here.  New file.
9528 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
9530         * pretty-print.h (printer_fn): Fix typo in comment.
9532 2015-09-07  Jeff Law  <law@redhat.com>
9534         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
9536 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9538         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
9539         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
9540         (arm_neon_fp16_hw): New.
9542 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9544         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
9545         UNITS_PER_WORD >= 4.
9547 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9549         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
9550         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
9551         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
9552         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
9553         (aarch64_float_extend_lo_v2df): Rename to...
9554         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
9556         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
9557         (float_extend_lo): Add v4sf.
9559         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
9560         * config/aarch64/iterators.md (VQ_HSF): New iterator.
9561         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
9562         (Vwide): New mode_attr.
9564 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9566         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
9567         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
9568         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
9569         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
9570         V4HF and V8HF variants to iterator.
9572         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
9574         * config/aarch64/iterators.md (VDQF_F16): New.
9575         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
9577 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9579         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
9580         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9581         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
9582         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
9583         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
9584         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9585         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
9586         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
9587         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
9588         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
9589         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
9590         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9591         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
9592         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
9593         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
9594         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
9595         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
9596         vld1q_dup_f16): New.
9598 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9600         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
9601         Reparameterize to...
9602         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
9603         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
9604         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
9606         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
9607         v8hf variant.
9608         (float_truncate_lo_): Use BUILTIN_VDF iterator.
9610         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
9612         * config/aarch64/iterators.md (VDF, Vdtype): New.
9613         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
9615 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9617         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
9618         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
9619         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
9620         Add __builtin_aarch64_simd_hf.
9621         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
9622         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
9623         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
9624         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
9625         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
9626         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
9627         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
9628         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
9629         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
9631         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
9632         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
9633         (VDC, Vdbl): Add V4HF.
9635 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9637         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
9638         V4HFmode and V8HFmode.
9639         (aarch64_split_simd_move): Add case for V8HFmode.
9640         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
9641         (aarch64_simd_builtin_std_type): Handle HFmode.
9642         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
9644         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
9645         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
9646         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
9648         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
9649         Float16x8_t.
9651         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
9652         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
9653         New typedefs.
9654         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
9655         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
9656         vst1q_lane_f16): New.
9657         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
9658         (VALLDI_F16, VALL_F16): New.
9659         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
9660         Add cases for V4HF and V8HF.
9661         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
9663 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9665         * config/arm/arm-builtins.c (VAR11, VAR12): New.
9666         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
9667         vld4_dup): Add v4hf variant.
9668         (vget_high, vget_low): Add v8hf variant.
9669         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
9670         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
9671         v4hf and v8hf variants.
9673         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
9674         (VDX): Add V4HF.
9675         (V_DOUBLE): Add case for V4HF.
9676         (VQX): Add V8HF.
9677         (V_HALF): Add case for V8HF.
9678         (VDQX): Add V4HF, V8HF.
9679         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
9680         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
9682         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
9683         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
9684         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
9685         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
9686         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
9687         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
9688         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
9689         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
9690         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
9692         (neon_vcreate, neon_vreinterpretv8qi<mode>,
9693         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
9694         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
9695         Change VDX to VD_RE.
9697         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
9698         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
9699         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
9701         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
9702         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
9703         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
9704         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
9705         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
9706         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
9707         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
9708         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
9709         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
9711 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9713         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
9714         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
9715         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
9716         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
9717         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9718         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
9719         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
9720         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
9721         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
9722         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
9723         New.
9725 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9727         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
9729         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
9731         * config/arm/arm-builtins.c (v8hf_UP): New.
9732         (arm_init_simd_builtin_types): Initialise Float16x8_t.
9734         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
9736         * config/arm/arm_neon.h (float16x8_t): New typedef.
9738 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9740         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
9741         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
9742         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
9743         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
9744         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9745         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
9746         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
9747         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
9748         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9749         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
9751 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
9753         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
9754         non-alphanumeric characters in the symbol name.
9756 2015-09-07  Marek Polacek  <polacek@redhat.com>
9758         PR inline-asm/67448
9759         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
9760         a memory input.
9762 2015-09-07  Marek Polacek  <polacek@redhat.com>
9764         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
9766 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
9768         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
9769         not warn.
9771 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
9773         PR middle-end/67452
9774         * tree-ssa-live.c: Include cfgloop.h.
9775         (remove_unused_locals): Clear loop->simduid if simduid is about
9776         to be removed from cfun->local_decls.
9778 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9780         PR target/65210
9781         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
9782         attribute as well.
9784 2015-09-04  Tom de Vries  <tom@codesourcery.com>
9786         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
9788 2015-09-04  Jeff Law  <law@redhat.com>
9790         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
9791         unnecessary constructor.  It's now trivial and implemented inside...
9792         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
9793         constructor.  Add comments to various methods.  Remove unused
9794         private fields.
9795         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
9796         * tree-vrp.c (identify_jump_threads): Likewise.
9797         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
9798         indentation issues.
9799         (thread_across_edge): Similarly.
9800         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
9801         arguments in constructor call.
9803 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
9805         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
9806         temp path contains a '-'.
9808 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
9809             Petr Murzin  <petr.murzin@intel.com>
9810             Kirill Yukhin  <kirill.yukhin@intel.com>
9812         * config/i386/i386-builtin-types.def
9813         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
9814         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
9815         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
9816         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
9817         * config/i386/i386.c
9818         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
9819         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9820         IX86_BUILTIN_SCATTERALTDIV16SI.
9821         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
9822         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
9823         __builtin_ia32_scatteraltdiv8si.
9824         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
9825         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9826         IX86_BUILTIN_SCATTERALTDIV16SI.
9827         (ix86_vectorize_builtin_scatter): New.
9828         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
9829         ix86_vectorize_builtin_scatter.
9831 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
9832             Petr Murzin  <petr.murzin@intel.com>
9833             Kirill Yukhin  <kirill.yukhin@intel.com>
9835         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
9836         * doc/tm.texi: Regenerate.
9837         * target.def: Add scatter builtin.
9838         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
9839         for loads/stores in case of gather/scatter accordingly.
9840         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9841         STMT_VINFO_GATHER_P(S).
9842         (vect_check_gather): Rename to ...
9843         (vect_check_gather_scatter): this.
9844         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
9845         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
9846         (vect_check_gather_scatter): Use it instead of vect_check_gather.
9847         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
9848         variable and new checkings for it accordingly.
9849         * tree-vect-stmts.c
9850         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9851         STMT_VINFO_GATHER_P(S).
9852         (vect_check_gather_scatter): Use it instead of vect_check_gather.
9853         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
9855 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
9857         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
9858         define_insn.
9859         (mulv16qi3): New define_expand.
9861 2015-09-03  Martin Sebor  <msebor@redhat.com>
9863         PR c/66516
9864         * doc/extend.texi (Other Builtins): Document when the address
9865         of a built-in function can be taken.
9867 2015-09-03  Richard Biener  <rguenther@suse.de>
9869         * dwarf2out.c (flush_limbo_die_list): Split out from ...
9870         (dwarf2out_early_finish): ... here.
9871         (dwarf2out_finish): Do not call dwarf2out_early_finish but
9872         flush_limbo_die_list.  Assert we have no deferred asm names.
9874 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9876         * optabs.c (expand_binop): Don't create a broadcast vector with a
9877         source element wider than the inner mode.
9879 2015-09-03  Richard Biener  <rguenther@suse.de>
9881         * varasm.c (output_constant): Use fold_convert instead of
9882         wide_int_to_tree.
9884 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9886         PR tree-optimization/65637
9887         * omp-low.c (expand_omp_for_static_chunk): Handle case that
9888         fin_bb has 2 predecessors.
9890 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9892         PR tree-optimization/65637
9893         * omp-low.c (find_phi_with_arg_on_edge): New function.
9894         (expand_omp_for_static_chunk): Fix inner loop phi.
9896 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9898         PR tree-optimization/65637
9899         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
9900         that head is NULL.
9902 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9904         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
9906 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9908         * doc/invoke.texi (parloops-chunk-size): Add item.
9909         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
9910         * tree-parloops.c: Include params.h.
9911         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
9912         param parloops-chunk-size is used.
9914 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9916         PR middle-end/67351
9917         * fold-const.c (fold_binary_loc) : Move
9918         Transform (x >> c) << c into x & (-1<<c) or
9919         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
9920         types using simplify and match.
9921         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
9922         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
9924 2015-09-03  Richard Biener  <rguenther@suse.de>
9926         PR ipa/66705
9927         * tree-ssa-structalias.c (ctor_for_analysis): New function.
9928         (create_variable_info_for_1): Use ctor_for_analysis instead
9929         of get_constructor.
9930         (create_variable_info_for): Likewise.
9932 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
9934         PR ipa/67280
9935         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
9936         in new callgraph edge.
9938 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
9940         PR target/59810
9941         PR target/63652
9942         PR target/63653
9943         * config/aarch64/aarch64-simd.md
9944         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
9945         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
9946         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
9947         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
9949 2015-09-02  Alan Modra  <amodra@gmail.com>
9951         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
9952         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
9953         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
9955 2015-09-02  Alan Modra  <amodra@gmail.com>
9957         PR target/67417
9958         * config/rs6000/predicates.md (current_file_function_operand): Don't
9959         return true for weak symbols.
9960         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
9962 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
9963             Andrew Bennett  <andrew.bennett@imgtec.com>
9965         * config/mips/mips-opts.h (mips_cb_setting): New enum.
9966         * config/mips/mips-protos.h: Add definitions for
9967         mips_output_jump and mips_output_equal_conditional_branch
9968         * config/mips/mips.c (MIPS_JR): Change to support the
9969         JIC instruction.
9970         (mips_emit_compare): Add support for the MIPS R6 conditional
9971         compact branches.
9972         (mips_process_sync_loop): Likewise.
9973         (mips_output_order_conditional_branch): Likewise.
9974         (mips16_build_call_stub): Change MIPS_CALL to
9975         mips_output_jump.
9976         (mips_print_operand_punctuation): Update 's' case to only
9977         apply to micromips r2.
9978         (mips_adjust_insn_length): Add support for forbidden slot
9979         hazards.
9980         (mips_avoid_hazard): Likewise.
9981         (mips_reorg_process_insns): Likewise.
9982         (mips_output_jump): New function.
9983         (mips_output_equal_conditional_branch): Likewise.
9984         (mips_output_conditional_branch): Use jrc/bc if compact
9985         branch support is enabled.  Ensure the forbidden slots
9986         between the two branch instructions is filled with a nop.
9987         (mips_option_override): Add support to process the compact
9988         branch option and set the correct defaults.  Prevent
9989         non-explict relocs being using for MIPS R6.
9990         (mips_trampoline_init): Add compact branch support.
9991         (mips_mult_zero_zero_cost): Allow zero initialisation of
9992         accumulators with TARGET_DSP.
9993         * config/mips/mips.h (TARGET_CB_NEVER): New define.
9994         (TARGET_CB_MAYBE): New define.
9995         (TARGET_CB_ALWAYS): New define.
9996         (ISA_HAS_DELAY_SLOTS): New define.
9997         (ISA_HAS_COMPACT_BRANCHES): New define.
9998         (ISA_HAS_JRC): New define.
9999         (MIPS_BRANCH_C): New define.
10000         (MIPS_CALL): Removed.
10001         (MICROMIPS_J): Removed.
10002         * config/mips/mips.md (compact_form): New attr.
10003         (hazard): Add support for forbidden slots.
10004         (define_delay): Add support for compact branches.
10005         (*branch_order<mode>): Likewise.
10006         (*branch_order<mode>_inverted): Likewise.
10007         (*branch_equality<mode>): Likewise.
10008         (*branch_equality<mode>_inverted): Likewise.
10009         (*jump_absolute): Likewise.
10010         (*jump_pic): Likewise.
10011         (indirect_jump): Use mips_output_jump to produce assembly output.
10012         (tablejump_<mode>"): Likewise.
10013         (*<optab>"): Likewise.
10014         (<optab>_internal): Likewise.
10015         (sibcall_internal): Likewise.
10016         (sibcall_value_internal): Likewise.
10017         (sibcall_value_multiple_internal): Likewise.
10018         (call_internal): Likewise.
10019         (call_split): Likewise.
10020         (call_internal_direct): Likewise.
10021         (call_direct_split): Likewise.
10022         (call_value_internal): Likewise.
10023         (call_value_split): Likewise.
10024         (call_value_internal_direct): Likewise.
10025         (call_value_direct_split): Likewise.
10026         (call_value_multiple_internal): Likewise.
10027         (call_value_multiple_split): Likewise.
10028         (mips_get_fcsr_mips16_<mode>): Likewise.
10029         (mips_set_fcsr_mips16_<mode>): Likewise.
10030         (tls_get_tp_mips16_<mode>): Likewise.
10031         * config/mips/mips.opt: Add -mcompact-branches option.
10032         * config/mips/predicates.md (order_operator): Ensure the
10033         conditional compact branches are only used if the ISA them.
10034         * doc/invoke.texi: Document -mcompact-branches option.
10036 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
10038         PR target/61578
10039         * lra-lives.c (process_bb_lives): Process move pseudos with the
10040         same value for copies and preferences
10041         * lra-constraints.c (match_reload): Create match reload pseudo
10042         with the same value from single dying input pseudo.
10044 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10046         PR target/67405
10047         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10049 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
10051         * trans-mem.c: Add contributed-by.
10052         * trans-mem.h: Same.
10054 2015-09-01  Richard Biener  <rguenther@suse.de>
10056         * expr.c (expand_expr_real_1): For expanding TERed defs
10057         set the current location to that of the def if not UNKNOWN.
10059 2015-09-01  David Sherwood  <david.sherwood@arm.com>
10061         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10063 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10065         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10066         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
10067         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10068         Include rtl-iter.h.
10069         (noce_simple_bbs): New function.
10070         (noce_try_move): Bail if basic blocks are not simple.
10071         (noce_try_store_flag): Likewise.
10072         (noce_try_store_flag_constants): Likewise.
10073         (noce_try_addcc): Likewise.
10074         (noce_try_store_flag_mask): Likewise.
10075         (noce_try_cmove): Likewise.
10076         (noce_try_minmax): Likewise.
10077         (noce_try_abs): Likewise.
10078         (noce_try_sign_mask): Likewise.
10079         (noce_try_bitop): Likewise.
10080         (bbs_ok_for_cmove_arith): New function.
10081         (noce_emit_all_but_last): Likewise.
10082         (noce_emit_insn): Likewise.
10083         (noce_emit_bb): Likewise.
10084         (noce_try_cmove_arith): Handle non-simple basic blocks.
10085         (insn_valid_noce_process_p): New function.
10086         (contains_mem_rtx_p): Likewise.
10087         (bb_valid_for_noce_process_p): Likewise.
10088         (noce_process_if_block): Allow non-simple basic blocks
10089         where appropriate.
10091 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
10093         * tree-ssa-dom.c (record_equivalences_from_phis,
10094         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10095         (lookup_avail_expr): Likewise, and remove comment and unused temp.
10097 2015-09-01  Nick Clifton  <nickc@redhat.com>
10099         * config/msp430/msp430.opt (mcpu): Fix typo.
10101 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10103         * config/aarch64/aarch64.c (aarch64_set_current_function):
10104         Re-layout any vector parameters have non-simd layout.
10105         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10106         Delete.
10107         (aarch64_simd_expand_args): Delete call to the above.
10109 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
10111         * doc/invoke.texi (asan-stack): Add space before option.
10113 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10115         * tree.h (zerop): New function.
10116         * tree.c (zerop): Likewise.
10117         (element_precision): Handle expressions.
10118         * match.pd (define_predicates): Add zerop.
10119         (x <= +Inf): Fix comment.
10120         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10121         * fold-const.c (fold_binary_loc): ... here. Remove.
10123 2015-08-31  Richard Biener  <rguenther@suse.de>
10125         PR middle-end/67381
10126         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10128 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10130         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10131         (CEXPI): New operator list.
10132         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10133         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10134         Converted from ...
10135         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10137 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10139         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10140         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10141         parameter.
10142         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10143         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10144         (rewrite_into_loop_closed_ssa): ... here.
10145         (replace_uses_in_dominated_bbs): Remove function.
10146         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10147         rewrite_into_loop_closed_ssa_1.
10149 2015-08-31  Michael Matz  <matz@suse.de>
10151         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10152         enter entry and exit blocks for reverse post order.
10154 2015-08-31  Richard Biener  <rguenther@suse.de>
10156         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10157         (lto_location_cache::current_sysp): Likewise.
10158         (output_block::current_sysp): Likewise.
10159         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10160         (lto_location_cache::apply_location_cache): Properly record
10161         system header locations.
10162         (lto_location_cache::input_location): Input whether a file
10163         is a system header.
10164         * lto-streamer-out.c (lto_output_location): Stream whether a file
10165         is a system header.
10167 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10169         PR bootstrap/67363
10170         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10172 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10174         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10175         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10176         Improve function header comments.
10178 2015-08-30  Michael Collison  <michael.collison@linaro.org>
10180         PR other/67320
10181         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10182         standard names
10184 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10186         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10187         special_handling bitfield.
10188         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10189         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10190         that represents a general xxpermdi.
10191         (insn_is_swappable_p): Add handling for vec_concat of two
10192         doublewords, which maps to a specific xxpermdi.
10193         (adjust_xxpermdi): New function.
10194         (adjust_concat): Likewise.
10195         (handle_special_swappables): Call adjust_xxpermdi and
10196         adjust_concat.
10197         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10199 2015-08-30  Rich Felker <dalias@libc.org>
10201         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10202         case instead of sh[123456ble]-*-*.
10204 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
10206         * ira.c (print_unform_and_important_classes,
10207         print_translated_classes): Remove reg_class_names static array.
10208         (print_unform_and_important_classes): Rename to ...
10209         (print_uniform_and_important_classes): ... this.
10210         (ira_debug_allocno_classes): Update accordingly.
10212 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10214         PR tree-optimization/46193
10215         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10216         clause.
10218 2015-08-28  Jeff Law  <law@redhat.com>
10220         PR lto/66752
10221         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10222         unable to find X NE 0 in the tables, return X as the simplified
10223         condition.
10224         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10225         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10226         to VISISTED_BBS.
10227         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10228         after removing the control flow statement and unnecessary edges.
10230 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
10232         Revert:
10233         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10235         PR tree-optimization/67283
10236         * tree-sra.c (type_consists_of_records_p): Rename to...
10237         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10239         (completely_scalarize_record): Rename to...
10240         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10241         code to:
10242         (scalarize_elem): New.
10244 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
10246         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10247         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10248         (aarch64_symbol_type): Likewise.
10249         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10250         Likewise.
10251         (aarch64_expand_mov_immediate): Likewise.
10252         (aarch64_print_operand): Likewise.
10253         (aarch64_classify_tls_symbol): Likewise.
10255 2015-08-28  Richard Biener  <rguenther@suse.de>
10257         * cgraphunit.c (symbol_table::compile): Move early debug generation
10258         and finish...
10259         (symbol_table::finalize_compilation_unit): ... back here and
10260         add a !seen_error () guard.
10262 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10264         * toplev.c (process_options): Do not use flag_loop_block,
10265         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
10266         flag_loop_optimize_isl.
10268 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10270         * Makefile.in (OBJS): Remove graphite-blocking.o and
10271         graphite-interchange.o.
10272         * common.opt (floop-strip-mine, floop-interchange, floop-block):
10273         Alias of floop-nest-optimize.
10274         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10275         Document as alias of -floop-nest-optimize.
10276         * graphite-blocking.c: Remove.
10277         * graphite-interchange.c: Remove.
10278         * graphite-optimize-isl.c: Include dumpfile.h.
10279         (getScheduleForBand): Add dump for tiled loops.  Use
10280         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10281         * graphite-poly.c (scop_max_loop_depth): Remove.
10282         (print_scattering_function_1): Remove.
10283         (print_scattering_function): Remove.
10284         (print_scattering_functions): Remove.
10285         (debug_scattering_function): Remove.
10286         (debug_scattering_functions): Remove.
10287         (apply_poly_transforms): Remove use of flag_loop_block,
10288         flag_loop_strip_mine, and flag_loop_interchange.
10289         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10290         PBB_ORIGINAL.
10291         (print_pdr_access_layout): Remove.
10292         (print_pdr): Print ISL representation.
10293         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10294         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10295         (free_scop): Same.
10296         (openscop_print_pbb_domain): Remove.
10297         (print_pbb): Remove call to print_scattering_function.
10298         (openscop_print_scop_context): Remove.
10299         (print_scop_context): Do not print matrices anymore.
10300         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10301         SCOP_TRANSFORMED_SCHEDULE.
10302         (print_isl_set): Add printing of a new line.
10303         (print_isl_map): Same.
10304         (print_isl_aff): Same.
10305         (print_isl_constraint): Same.
10306         (loop_to_lst): Remove.
10307         (scop_to_lst): Remove.
10308         (lst_indent_to): Remove.
10309         (print_lst): Remove.
10310         (debug_lst): Remove.
10311         (dot_lst_1): Remove.
10312         (dot_lst): Remove.
10313         (reverse_loop_at_level): Remove.
10314         (reverse_loop_for_pbbs): Remove.
10315         * graphite-poly.h (pdr_dim_iter_domain): Remove.
10316         (pdr_nb_params): Remove.
10317         (pdr_alias_set_dim): Remove.
10318         (pdr_subscript_dim): Remove.
10319         (pdr_iterator_dim): Remove.
10320         (pdr_parameter_dim): Remove.
10321         (same_pdr_p): Remove.
10322         (struct poly_scattering): Remove.
10323         (struct poly_bb): Remove _original, _transformed, _saved.
10324         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10325         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10326         (PBB_NB_LOCAL_VARIABLES): Remove.
10327         (PBB_NB_SCATTERING_TRANSFORM): Remove.
10328         (schedule_to_scattering): Remove.
10329         (number_of_write_pdrs): Remove.
10330         (pbb_dim_iter_domain): Remove.
10331         (pbb_nb_params): Remove.
10332         (pbb_nb_scattering_orig): Remove.
10333         (pbb_nb_scattering_transform): Remove.
10334         (pbb_nb_dynamic_scattering_transform): Remove.
10335         (pbb_nb_local_vars): Remove.
10336         (pbb_iterator_dim): Remove.
10337         (pbb_parameter_dim): Remove.
10338         (psco_scattering_dim): Remove.
10339         (psct_scattering_dim): Remove.
10340         (psct_local_var_dim): Remove.
10341         (psco_iterator_dim): Remove.
10342         (psct_iterator_dim): Remove.
10343         (psco_parameter_dim): Remove.
10344         (psct_parameter_dim): Remove.
10345         (psct_dynamic_dim): Remove.
10346         (psct_static_dim): Remove.
10347         (psct_add_local_variable): Remove.
10348         (new_lst_loop): Remove.
10349         (new_lst_stmt): Remove.
10350         (free_lst): Remove.
10351         (copy_lst): Remove.
10352         (lst_add_loop_under_loop): Remove.
10353         (lst_depth): Remove.
10354         (lst_dewey_number): Remove.
10355         (lst_dewey_number_at_depth): Remove.
10356         (lst_pred): Remove.
10357         (lst_succ): Remove.
10358         (lst_find_pbb): Remove.
10359         (find_lst_loop): Remove.
10360         (lst_find_first_pbb): Remove.
10361         (lst_empty_p): Remove.
10362         (lst_find_last_pbb): Remove.
10363         (lst_contains_p): Remove.
10364         (lst_contains_pbb): Remove.
10365         (lst_create_nest): Remove.
10366         (lst_remove_from_sequence): Remove.
10367         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10368         (lst_niter_for_loop): Remove.
10369         (pbb_update_scattering): Remove.
10370         (lst_update_scattering_under): Remove.
10371         (lst_update_scattering): Remove.
10372         (lst_insert_in_sequence): Remove.
10373         (lst_replace): Remove.
10374         (lst_substitute_3): Remove.
10375         (lst_distribute_lst): Remove.
10376         (lst_remove_all_before_including_pbb): Remove.
10377         (lst_remove_all_before_excluding_pbb): Remove.
10378         (struct scop): Remove original_schedule, transformed_schedule, and
10379         saved_schedule.
10380         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10381         (SCOP_SAVED_SCHEDULE): Remove.
10382         (poly_scattering_new): Remove.
10383         (poly_scattering_free): Remove.
10384         (poly_scattering_copy): Remove.
10385         (store_scattering_pbb): Remove.
10386         (store_lst_schedule): Remove.
10387         (restore_lst_schedule): Remove.
10388         (store_scattering): Remove.
10389         (restore_scattering_pbb): Remove.
10390         (restore_scattering): Remove.
10391         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10392         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
10393         compute the scattering polyhedron dimension from the dimension of
10394         pbb->domain.
10395         (build_scop_scattering): Update call to
10396         build_pbb_scattering_polyhedrons.
10397         (build_poly_scop): Remove call to scop_to_lst.
10398         * graphite.c (graphite_transform_loops): Add call to print_scop.
10399         (gate_graphite_transforms): Remove use of flag_loop_block,
10400         flag_loop_interchange, and flag_loop_strip_mine.
10402 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10404         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10405         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10406         -floop-nest-optimize.
10407         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10408         (generate_luj_sepclass): Remove.
10409         (generate_luj_options): Remove.
10410         (set_options): Remove opt_luj.
10411         (scop_to_isl_ast): Remove opt_luj.
10412         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10413         flag_loop_unroll_jam.
10414         (getPrevectorMap_full): Remove.
10415         (getScheduleForBandList): Remove map_sepcl.
10416         (getScheduleMap): Same.
10417         (apply_schedule_map_to_scop): Remove sepcl.
10418         (optimize_isl): Same.
10419         * graphite-poly.c (apply_poly_transforms): Remove check for
10420         flag_loop_unroll_jam.
10421         (new_poly_bb): Remove map_sepclass.
10422         * graphite-poly.h (struct poly_bb): Same.
10423         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10424         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10425         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10426         * toplev.c (process_options): Remove flag_loop_unroll_jam.
10428 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
10430         PR target/67317
10431         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10432         (addqi3_cc): Ditto.
10433         (UNSPEC_ADD_CARRY): Remove.
10434         (addqi3_cconly_overflow): New expander.
10435         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10436         Adjust for changed add<mode>3_carry.
10437         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10438         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10439         (<plusminus_insn><mode>3_carry): Remove expander.
10440         (*<plusminus_insn><mode>3_carry): Split insn pattern to
10441         add<mode>3_carry and sub<mode>3_carry.
10442         (plusminus_carry_mnemonic): Remove code attribute.
10443         (add<mode>3_carry): Canonicalize insn pattern.
10444         (*addsi3_carry_zext): Ditto.
10445         (sub<mode>3_carry): Ditto.
10446         (*subsi3_carry_zext): Ditto.
10447         (adcx<mode>3): Remove insn pattern.
10448         (addcarry<mode>): New insn pattern.
10449         (subborrow<mode>): Ditto.
10450         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
10451         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
10452         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
10453         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
10454         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
10455         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
10456         Rewrite expander to not clobber carry flag chains.
10458 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
10460         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
10461         instead of a rotate.
10463 2015-08-27  Marek Polacek  <polacek@redhat.com>
10465         PR middle-end/67005
10466         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
10467         an entry into an irreducible region.
10469 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10471         * configure: Regenerate.
10473 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10475         PR tree-optimization/67283
10476         * tree-sra.c (type_consists_of_records_p): Rename to...
10477         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10479         (completely_scalarize_record): Rename to...
10480         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10481         (scalarize_elem): New.
10483 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10485         * tree-sra.c (completely_scalarize_var): Rename to...
10486         (create_total_scalarization_access): ... Here. Drop call to
10487         completely_scalarize_record.
10489         (analyze_all_variable_accesses): Replace completely_scalarize_var
10490         with create_total_scalarization_access and completely_scalarize_record.
10492 2015-08-27  Alan Modra  <amodra@gmail.com>
10494         PR target/67356
10495         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
10496         for operand 1.
10498 2015-08-27  Richard Biener  <rguenther@suse.de>
10500         * passes.c (rest_of_decl_compilation): Guard early_global_decl
10501         call with !seen_error ().
10502         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
10503         early debug generation and finish...
10504         (symbol_table::compile): ... here to put it after a !seen_error ()
10505         guard.
10507 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10509         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
10510         Solaris 12+.
10512 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10513             Andre Vieira  <andre.simoesdiasvieira@arm.com>
10515         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
10516         (*cb<optab><mode>1): Likewise.
10517         (*tb<optab><mode>1): Likewise.
10518         (*cb<optab><mode>1): Likewise.
10519         * config/aarch64/iterators.md (inv_cb): New code attribute.
10520         (inv_tb): Likewise.
10521         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
10522         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
10524 2015-08-27  Richard Biener  <rguenther@suse.de>
10526         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
10528 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10530         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
10531         trap to fix ICE.
10533 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10535         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
10536         Add declaration.
10538         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
10539         comment.
10540         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
10541         floating point in VSX registers.
10542         (rs6000_output_move_128bit): Always print out the set insn if we
10543         can't generate an appropriate 128-bit move.
10544         (rs6000_generate_compare): Add support for IEEE 128-bit floating
10545         point in VSX registers comparisons.
10546         (rs6000_expand_float128_convert): Likewise.
10548         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
10549         predicate for only GPR hard registers.
10551         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
10552         modes to iterators. Add new iterators for moving 128-bit values in
10553         scalar FPR registers and VSX registers.
10554         (FMOVE128): Likewise.
10555         (FMOVE128_FPR): Likewise.
10556         (FMOVE128_GPR): Likewise.
10557         (FMOVE128_VSX): Likewise.
10558         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
10559         in VSX registers.
10560         (IFKF): Likewise.
10561         (IBM128): Likewise.
10562         (TFIFKF): Likewise.
10563         (RELOAD): Add IEEE 128-bit floating point modes.
10564         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
10565         floating point in VSX registers modes.
10566         (signbit<mode>2, IBM128 iterator): Likewise.
10567         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
10568         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10569         (negtf2): Likewise.
10570         (neg<mode>2, TFIFKF iterator): Likewise.
10571         (negtf2_internal): Likewise.
10572         (abstf2): Likewise.
10573         (abs<mode>2, TFIFKF iterator): Likewise.
10574         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
10575         VSX insn support for negate, absolute value, and negative absolute
10576         value.
10577         (ieee_128bit_vsx_neg<mode>2): Likewise.
10578         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10579         (ieee_128bit_vsx_abs<mode>2): Likewise.
10580         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10581         (ieee_128bit_vsx_nabs<mode>2): Likewise.
10582         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10583         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
10584         floating point in VSX registers.
10585         (unpack<mode>_dm): Likewise.
10586         (unpack<mode>_nodm): Likewise.
10587         (pack<mode>): Likewise.
10588         (unpackv1ti): Likewise.
10589         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
10590         (packv1ti): Likewise.
10591         (pack<mode>, FMOVE128_VSX iterator): Likewise.
10592         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
10593         registers.
10594         (extenddftf2_internal): Likewise.
10595         (trunctfdf2): Likewise.
10596         (trunctfdf2_internal2): Likewise.
10597         (fix_trunc_helper): Likewise.
10598         (fix_trunctfdi2"): Likewise.
10599         (floatditf2): Likewise.
10600         (floatuns<mode>tf2): Likewise.
10601         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
10602         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
10603         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
10604         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
10605         (float<SDI:mode><IFKF:mode>2): Likewise.
10606         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
10608 2015-08-26  Renlin Li  <renlin.li@arm.com>
10610         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
10612 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10613             Jiong Wang  <jiong.wang@arm.com>
10615         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
10616         (tlsie_tiny_<mode>): New define_insn.
10617         (tlsie_tiny_sidi): Likewise.
10618         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
10619         SYMBOL_TINY_TLSIE.
10620         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
10621         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10622         SYMBOL_TINY_TLSIE.
10623         (aarch64_expand_mov_immediate): Likewise.
10624         (aarch64_print_operand): Likewise.
10625         (arch64_classify_tls_symbol): Likewise.
10627 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10629         * config/arm/arm-arches.def: Replace single value flags with
10630         an initializer built from ARM_FSET_MAKE_CPU1.
10631         * config/arm/arm-cores.def: Likewise.
10632         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
10633         derivation from the ARM_CORE macro definition, use the given value
10634         instead.
10635         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
10636         ARM_ARCH macro definition, use the given value instead.
10638 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10640         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
10641         feature set.
10642         (struct builtin_description): Replace field mask with field
10643         features.
10644         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
10645         (IWMMXT2_BUILTIN): Likewise.
10646         (IWMMXT2_BUILTIN2): Likewise.
10647         (FP_BUILTIN): Likewise.
10648         (CRC32_BUILTIN): Likewise.
10649         (CRYPTO_BUILTIN): Likewise.
10650         (iwmmx_mbuiltin): Likewise.
10651         (iwmmx2_mbuiltin): Likewise.
10652         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
10653         struct builtin_description.
10655 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10657         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
10658         (struct builtin_description): Change type of mask to unsigned
10659         long.
10660         * config/arm/arm-protos.h (insn_flags): Declare as type
10661         arm_feature_set.
10662         (tune_flags): Likewise.
10663         * config/arm/arm.c (feature_count): New.
10664         (insn_flags): Define as type arm_feature_set.
10665         (tune_flags): Likewise.
10666         (struct processors): Define field flags as type arm_feature_set.
10667         (all_cores): Update for change to struct processors.
10668         (all_architectures): Likewise.
10669         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
10670         macros.
10671         (arm_option_override_internal): Likewise.
10672         (arm_option_override): Likewise.
10674 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10675             Jiong Wang  <jiong.wang@arm.com>
10677         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
10678         tls size for tiny, small, large memory model.
10679         (aarch64_load_symref_appropriately): Support new symbol types.
10680         (aarch64_expand_mov_immediate): Likewise.
10681         (aarch64_print_operand): Likewise.
10682         (aarch64_classify_tls_symbol): Likewise.
10683         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
10684         (aarch64_symbol_type): Likewise.
10685         * config/aarch64/aarch64.md (tlsle): Deleted.
10686         (tlsle12_<mode>): New define_insn.
10687         (tlsle24_<mode>): Likewise.
10688         (tlsle32_<mode>): Likewise.
10689         (tlsle48_<mode>): Likewise.
10690         * doc/sourcebuild.texi (AArch64-specific attributes): Document
10691         "aarch64_tlsle32".
10693 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10695         * config/arm/arm-protos.h (FL_NONE): New.
10696         (FL_ANY): New.
10697         (arm_feature_set): New.
10698         (ARM_FSET_MAKE): New.
10699         (ARM_FSET_MAKE_CPU1): New.
10700         (ARM_FSET_MAKE_CPU2): New.
10701         (ARM_FSET_CPU1): New.
10702         (ARM_FSET_CPU2): New.
10703         (ARM_FSET_EMPTY): New.
10704         (ARM_FSET_ANY): New.
10705         (ARM_FSET_HAS_CPU1): New.
10706         (ARM_FSET_HAS_CPU2): New.
10707         (ARM_FSET_HAS_CPU): New.
10708         (ARM_FSET_ADD_CPU1): New.
10709         (ARM_FSET_ADD_CPU2): New.
10710         (ARM_FSET_DEL_CPU1): New.
10711         (ARM_FSET_DEL_CPU2): New.
10712         (ARM_FSET_UNION): New.
10713         (ARM_FSET_INTER): New.
10714         (ARM_FSET_XOR): New.
10715         (ARM_FSET_EXCLUDE): New.
10716         (AFM_FSET_IS_EMPTY): New.
10717         (ARM_FSET_CPU_SUBSET): New.
10719 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
10721         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10722         SYMBOL_TLSLE to SYMBOL_TLSLE24.
10723         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10724         Likewise.
10725         (aarch64_expand_mov_immediate): Likewise.
10726         (aarch64_print_operand): Likewise.
10727         (aarch64_classify_symbol): Likewise.
10729 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
10731         * config/aarch64/aarch64.opt (mtls-size): New entry.
10732         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
10733         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
10734         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
10736 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10738         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
10739         ARM_CORE entry.  Fix some white-space.
10740         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
10741         ARM_CORE definition.
10743 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10745         * fold-const.c (fold_binary_loc) : Move Optimize
10746         root(x)*root(y) as root(x*y) to match.pd.
10747         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
10748         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
10749         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
10750         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
10751         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
10752         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
10753         (mult (exps:s @0) (exps:s @1)) : New simplifier.
10754         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
10755         (rdiv @0 (exps:s @1)) : New simplifier.
10757 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
10759         * gcc.c (driver::finalize): Only assign to extra_specs if
10760         [EXTRA_SPECS].
10762 2015-08-25  Marek Polacek  <polacek@redhat.com>
10764         PR middle-end/67330
10765         * varasm.c (declare_weak): Return after giving an error.
10767 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
10769         * gcc-main.c (main): Add params to driver ctor.
10770         * gcc.c (class env_manager): New.
10771         (env): New global.
10772         (env_manager::init): New.
10773         (env_manager::get): New.
10774         (env_manager::xput): New.
10775         (env_manager::restore): New.
10776         Poison getenv and putenv.
10777         (DEFAULT_TARGET_SYSTEM_ROOT): New.
10778         (target_system_root): Update initialization to use
10779         DEFAULT_TARGET_SYSTEM_ROOT.
10780         (struct spec_list): Add field "default_ptr".
10781         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
10782         (init_spec): Likewise.
10783         (set_spec): Clear field "default_ptr".
10784         (read_specs): Free "spec" and "buffer".
10785         (xputenv): Reimplement in terms of env_manager.
10786         (process_command): Replace ::getenv calls with calls to the
10787         env_manager singleton.
10788         (process_brace_body): Free string in three places.
10789         (driver::driver): New.
10790         (driver::~driver): New.
10791         (used_arg): Convert from a function to...
10792         (class used_arg_t): ...this class, and...
10793         (used_arg): ...this new global instance.
10794         (used_arg_t::finalize): New function.
10795         (getenv_spec_function): Add "const" to local "value".  Replace
10796         ::getenv call with call to the env_manager singleton.
10797         (path_prefix_reset): New function.
10798         (driver::finalize): New function.
10799         * gcc.h (driver::driver): New.
10800         (driver::~driver): New.
10801         (driver::finalize): New.
10803 2015-08-25  Nathan Sidwell  <nathan@acm.org>
10805         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
10806         target doesn't have one.
10808 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
10810         PR target/67346
10811         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
10813 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
10815         PR target/67344
10816         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
10817         a define_insn, remove second alternative.
10819 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
10820             Joseph Myers  <joseph@codesourcery.com>
10822         * gcc.c (struct switchstr): Expand comment.
10824 2015-08-25  Nathan Sidwell  <nathan@acm.org>
10826         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
10827         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
10829 2015-08-25  Richard Biener  <rguenther@suse.de>
10831         PR middle-end/67306
10832         * genmatch.c (expr::gen_transform): Verify the result of
10833         builtin_decl_implicit.
10834         (dt_simplify::gen_1): Likewise.
10836 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10838         * config/arm/constraints.md: Also list Cs and US ARM-specific
10839         constraints as used.
10841 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10843         PR target/66609
10844         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
10845         UNSPEC_PCREL.
10846         (nonpic_symbol_mentioned_p): Likewise.
10847         (sh_delegitimize_address): Likewise.
10848         (sh_function_ok_for_sibcall): Take into account weak symbols.
10849         (sh_expand_sym_label2reg): New.
10850         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
10851         * config/sh/sh.md (UNSPEC_PCREL): New enum.
10852         (call_pcrel): Use sh_expand_sym_label2reg.
10853         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10854         (symPCREL_label2reg) New expand.
10856 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
10858         * graphite-poly.c: Change type of region from void* to sese.
10859         * graphite-poly.h (struct scop): Changing the type of scop::region
10860         from void* to sese. Change accessor macro accordingly.
10861         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
10863 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
10865         * graphite-scop-detection.c (stmt_simple_for_scop_p):
10866         Constrain only on INTEGER_TYPE.
10868 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10870         PR target/67211
10871         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
10872         -mefficient-unaligned-vsx on ISA 2.7.
10874         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
10875         option to a masked option.
10877         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
10878         logic for -mefficient-unaligned-vsx so that it is set via an arch
10879         ISA option, instead of being set if -mtune=power8 is set. Move
10880         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
10881         near other default option handling.
10883 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10885         * genflags.c (gen_macro): Delete.
10886         (gen_proto): Don't create GEN.*CALL.* macros.
10887         * gensupport.h (get_file_location): Declare.
10888         * gensupport.c (rtx_locs): New variable.
10889         (read_md_rtx): Record rtx locations.
10890         (get_file_location): New function.
10891         * target-insns.def (call, call_pop, call_value, call_value_pop)
10892         (sibcall, sibcall_value): New patterns.
10893         * gentarget-def.c (parse_argument): New function.
10894         (def_target_insn): Use it.  Handle optional operands.  Raise an
10895         error if an .md pattern has the wrong number of operands for the
10896         pattern name.  Remove the names of unused operands from the prototype.
10897         * builtins.c (expand_builtin_apply): Use targetm functions
10898         instead of HAVE_call_value and GEN_CALL_VALUE.
10899         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
10900         and sibcall_value_pop.
10901         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
10902         of GEN_CALL.
10903         * config/alpha/alpha.md (untyped_call): Likewise.
10904         * config/iq2000/iq2000.md (untyped_call): Likewise.
10905         * config/m68k/m68k.md (untyped_call): Likewise.
10906         * config/mips/mips.md (untyped_call): Likewise.
10907         * config/pa/pa.md (untyped_call): Likewise.
10908         * config/rs6000/rs6000.md (untyped_call): Likewise.
10909         * config/sparc/sparc.md (untyped_call): Likewise.
10910         * config/tilegx/tilegx.md (untyped_call): Likewise.
10911         * config/tilepro/tilepro.md (untyped_call): Likewise.
10912         * config/visium/visium.md (untyped_call): Likewise.
10913         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
10914         gen_call_value instead of GEN_CALL_VALUE.
10915         * config/arm/arm.md (untyped_call): Likewise.
10916         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
10917         GEN_CALL.
10919 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10921         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
10922         (have_cbranchcc4): New variable.
10923         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
10924         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
10925         (if_convert): Initialize have_cbranchcc4.
10927 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10929         * builtins.c (expand_cmpstrn): Rename to...
10930         (expand_cmpstrn_or_cmpmem): ...this.
10931         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
10932         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
10933         Remove mode argument.
10934         (expand_builtin): Update accordingly.
10936 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10938         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
10939         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
10940         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
10941         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
10942         Add predicates for operands 0 and 3.
10943         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
10944         operand.
10945         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
10946         immediate_operand to nonmemory_operand.
10948 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10950         * df-scan.c (df_insn_info_init_fields): New function, split out
10951         from...
10952         (df_insn_create_insn_record): ...here.
10953         (df_insn_info_free_fields): New function, split out from...
10954         (df_insn_info_delete): ...here.
10955         (df_insn_rescan): Use the new functions instead of freeing and
10956         reallocating the df_insn_info.
10958 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10960         * doc/install.texi (Binaries): Remove links no longer valid.
10962 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10964         * config/nvptx/mkoffload.c (process): Replace
10965         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
10967 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
10969         PR target/67329
10970         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
10972 2015-08-24  Renlin Li  <renlin.li@arm.com>
10974         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
10975         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
10976         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
10977         * config/arm/constraints.md ("j"): Add check for high code.
10979 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10981         PR tree-optimization/65468
10982         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
10983         chunk_size is one.
10985 2015-08-24  Nathan Sidwell  <nathan@acm.org>
10987         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
10988         change to nvptx_type_from_mode call. Use arg_promotion for both
10989         split and non-split args.
10991 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
10993         * target-insns.def (movstr): New pattern.
10994         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
10995         (expand_movstr): Use targetm rather than HAVE_movstr/
10996         CODE_FOR_movstr.
10998 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11000         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11001         cast syntax.
11003 2015-08-24  Andrew Pinski  <apinski@cavium.com>
11005         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11006         AARCH64_EXTRA_TUNING_OPTION.
11007         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11008         New enum.
11009         (aarch64_extra_tuning_flags): Base the shifted value on the index
11010         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11011         * config/aarch64/aarch64.c: Remove the last argument to
11012         AARCH64_EXTRA_TUNING_OPTION.
11014 2015-08-23  Nathan Sidwell  <nathan@acm.org>
11016         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11017         decls.
11018         (nvptx_declare_function_name): Insert formatting tabs for
11019         consistency.
11021 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11023         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11024         parm_decl, rather than generating a dummy default def in cfun.
11025         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
11026         ssa_name from cfun and child_fn do not share a stmt as def stmt.
11027         (move_stmt_op): Handle PARM_DECl.
11028         (gather_ssa_name_hash_map_from): New function.
11029         (move_sese_region_to_fn): Add default defs for function params, and add
11030         them to vars_map.  Release copied ssa names.
11031         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11033 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11035         * doc/sourcebuild.texi: Rename vect_no_int_max with
11036         vect_no_int_min_max.  Update description.
11038 2015-08-22  Andrew Pinski  <apinski@cavium.com>
11040          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11041         * config/aarch64/aarch64-protos.h
11042         (aarch64_fusion_pairs_index): New enum.
11043         (aarch64_fusion_pairs): Base the shifted value on the index instead
11044         Rewrite AARCH64_FUSE_ALL to be based on the end index.
11045         of the argument to AARCH64_FUSION_PAIR.
11046         * config/aarch64/aarch64.c: Remove the last argument to
11047         AARCH64_FUSION_PAIR.
11049 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
11051         * dominance.c (new_zero_array): Define.
11052         (dom_info): Redefine as class with proper encapsulation.
11053         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11054         Add new members.
11055         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
11056         allocations/deallocations.  Pass function as parameter (instead of
11057         using cfun).
11058         (dom_info::get_idom): Define accessor method.
11059         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11060         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
11061         (calculate_dominance_info): Adjust to use dom_info class.
11062         (verify_dominators): Likewise.
11064 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
11066         * print-rtl.c (print_rtx): Check the correct range for
11067         flag_dump_unnumbered_links to behave as documented.
11069         PR rtl-optimization/67227
11070         PR rtl-optimization/64164
11071         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11072         (nonoverlapping_memrefs_p): Test offsets and sizes when given
11073         identical gimple_reg exprs.
11075 2015-08-21  Nathan Sidwell  <nathan@acm.org>
11077         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11078         expansion.
11079         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11080         crtl->stack_alignment_needed to determine alignment.
11081         (nvptx_get_drap_rtx): New.
11082         (TARGET_GET_DRAP_RTX): Override.
11083         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11085 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11087         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11089 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11091         * configure.ac: Remove uwin* cases.
11092         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11093         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11094         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11095         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11096         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11097         i[34567]86-*-uwin*, powerpc-*-beos*.
11099 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
11101         * gencodes.c (gencodes): Print the comma for the preceding
11102         enum value rather than the current one.  Use aliased enum values
11103         rather than #defines for compiled-out patterns.
11104         (main): Update accordingly.  Replace LAST_INSN_CODE with
11105         NUM_INSN_CODES.
11106         * lra.c (insn_code_data): Update accordingly.
11107         (finish_insn_code_data_once, get_static_insn_data): Likewise.
11108         * recog.h (target_recog): Likewise.
11109         (preprocess_insn_constraints): Change parameter to unsigned int.
11110         * recog.c (preprocess_insn_constraints): Likewise.
11111         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11112         * tree-vect-stmts.c (vectorizable_operation): Simplify.
11114 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11116         PR rtl-optimization/61657
11117         * loop-iv.c (iv_number_of_iterations): Declare up and down as
11118         unsigned.  Remove superflous uint64_t cast.
11120 2014-08-21  Felix Yang  <felix.yang@huawei.com>
11121             Jiji Jiang  <jiangjiji@huawei.com>
11123         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11124         argument and get builtin function code directly from CALL.
11125         (gimple_stringop_fixed_value): Modified accordingly.
11126         (gimple_stringops_transform, gimple_stringops_values_to_profile):
11127         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11129 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11131         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11133 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11135         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11136         to match.pd.
11137         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11138         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11139         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11140         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11141         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11142         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11143         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11144         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11145         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11146         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11148         * match.pd (SIN ) : New Operator.
11149         (TAN) : New Operator.
11150         (mult (SQRT@1 @0) @1) : New simplifier.
11151         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11152         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11153         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11154         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11155         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11156         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11157         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11158         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11159         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11160         (rdiv @0 (POW:s @1 @2)) : New simplifier.
11162 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
11164         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11165         loop if EXPR is simplified to const value.
11167 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
11169         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11170         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11172 2015-08-21  Richard Biener  <rguenther@suse.de>
11174         PR middle-end/67285
11175         * gimple-fold.c (replace_stmt_with_simplification): Assert
11176         seq is empty when replacing a call with itself but different
11177         arguments.
11178         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11179         a call require that it is const.
11181 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11183         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11184         * builtins.c (get_object_alignment_2): Adjust.
11185         * varasm.c (align_variable): Likewise.
11186         (get_variable_align): Likewise.
11187         (build_constant_desc): Likewise.
11188         (force_const_mem): Likewise.
11189         * doc/tm.texi.in: Likewise.
11190         * doc/tm.texi: Regenerate.
11192 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11194         * genconfig.c (main): Always define HAVE_cc0.
11195         * recog.c (rest_of_handle_peephole2): Adjust.
11197 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11199         * reorg.c (relax_delay_slots): Don't use #if to check value of
11200         HAVE_cc0.
11202 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11204         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11205         * targhooks.c (default_have_conditional_execution): Adjust.
11207 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11209         * rtl.h (rtvec_all_equal_p): Declare.
11210         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11211         * rtl.c (rtvec_all_equal_p): New function.
11212         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11213         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11214         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11215         * config/arm/arm.c (neon_vdup_constant): Likewise.
11216         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11217         * config/tilegx/constraints.md (W, Y): Likewise.
11218         * config/tilepro/constraints.md (W, Y): Likewise.
11219         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11220         (classify_immediate): Use unwrap_const_vec_duplicate.
11221         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11222         (reg_or_v2s8bit_operand): Likewise.
11223         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11224         (reg_or_v4s8bit_operand): Likewise.
11226 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11228         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11229         (vec_shasigma_be): New #define.
11230         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11231         (VPMSUMH): Likewise.
11232         (VPMSUMW): Likewise.
11233         (VPMSUMD): Likewise.
11234         (VPMSUM): New BU_P8V_OVERLOAD_2.
11235         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11236         entries for VEC_MADD and VEC_VPMSUM.
11238 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
11240         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11241         Multiply argument avr_n_flash by 64 to match unit of "KiB".
11242         (avr_pgm_check_var_decl): Same.
11244 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
11246         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11247         initialization of HFmode scalar type (float16_t) to...
11248         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11249         code.
11251         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11253         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11254         having an -mfp16-format.
11256 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11258         * config/i386/predicates.md (vector_all_ones_operand): Use
11259         CONSTM1_RTX to simplify definition.
11261 2015-08-20  Richard Biener  <rguenther@suse.de>
11263         * toplev.c (compile_file): Remove loop calling late_global_decl
11264         on all symbols.
11265         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11266         on decls we assembled.
11268 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
11270         * common/config/aarch64/aarch64-common.c
11271         (AARCH64_CPU_NAME_LENGTH): Delete.
11272         (aarch64_option_extension): New.
11273         (all_extensions): Likewise.
11274         (processor_name_to_arch): Likewise.
11275         (arch_to_arch_name): Likewise.
11276         (all_cores): New.
11277         (all_architectures): Likewise.
11278         (aarch64_get_extension_string_for_isa_flags): Likewise.
11279         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11280         architecture names.
11281         * config/aarch64/aarch64-protos.h
11282         (aarch64_get_extension_string_for_isa_flags): New.
11283         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11284         (aarch64_option_print): Get the string to print from
11285         aarch64_get_extension_string_for_isa_flags.
11286         (aarch64_declare_function_name): Likewise.
11287         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11288         (MCPU_TO_MARCH_SPEC): This.
11289         (ASM_CPU_SPEC): Use it.
11290         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11291         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11292         (EXTRA_SPEC_FUNCTIONS): Use it.
11294 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
11296         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11297         expansion when !ISA_HAS_LWL_LWR.
11298         (mips_block_move_straight): Update the size of elements copied to
11299         account for alignment when !ISA_HAS_LWL_LWR.
11300         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11302 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
11304         * expr.c (expand_expr_real_2): Check gimple statement during
11305         LSHIFT_EXPR expand.
11307 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
11309         * common.opt (fstack-protector): Initialize to -1.
11310         (fstack-protector-all): Likewise.
11311         (fstack-protector-strong): Likewise.
11312         (fstack-protector-explicit): Likewise.
11313         * configure.ac: Add --enable-default-ssp.
11314         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
11315         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11316         -1.
11317         * doc/install.texi: Document --enable-default-ssp.
11318         * config.in: Regenerated.
11319         * configure: Likewise.
11321 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
11323         PR rtl-optimization/64164
11324         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11325         (parm_in_stack_slot_p): ... this.  Disregard mode, what
11326         matters is whether the parm will live in a pseudo or a stack
11327         slot.
11328         (expand_one_ssa_partition): Deal with params without a default
11329         def.  Disregard mode.
11330         * cfgexpand.h: Renamed function declaration.
11331         * tree-ssa-coalesce.c: Adjust.
11332         * function.c (split_complex_args): Allocate stack slot for
11333         unassigned parms before splitting.
11334         (parm_in_unassigned_mem_p): New.  Use it instead of
11335         parm_maybe_byref_p throughout this file.
11336         (assign_parm_setup_block): Use it.  Accept pseudos in the
11337         expand-assigned rtl.
11338         (assign_parm_setup_reg): Drop BLKmode requirement.
11339         (assign_parm_setup_stack): Allocate and fill in the address of
11340         unassigned MEM parms.
11342 2015-08-19  David Sherwood  <david.sherwood@arm.com>
11344         * genmodes.c (emit_mode_unit_size_inline): New function.
11345         (emit_mode_unit_precision_inline): New function.
11346         (emit_insn_modes_h): Emit new #define.  Emit new functions.
11347         (emit_mode_unit_size): New function.
11348         (emit_mode_unit_precision): New function.
11349         (emit_mode_adjustments): Add mode_unit_size adjustments.
11350         (emit_insn_modes_c): Emit new arrays.
11351         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11352         use new inline methods.
11354 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11356         * config/aarch64/aarch64.c (bit_count): Delete prototype
11357         and definition.
11358         (aarch64_print_operand): Use popcount_hwi instead of the above.
11360 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11362         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11363         comment.
11365 2015-08-19  Marek Polacek  <polacek@redhat.com>
11367         PR middle-end/67133
11368         * gimple-ssa-isolate-paths.c
11369         (insert_trap_and_remove_trailing_statements): Rename to ...
11370         (insert_trap): ... this.  Don't remove trailing statements; split
11371         block instead.
11372         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11374 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
11376         PR other/67042
11377         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11378         conditionalize the whole on __GNUC__.  Add fallback code
11379         depending neither on undefined nor implementation-defined behaviour.
11381 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
11383         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11384         whitespaces with tab.
11386 2015-08-19  Florian Weimer  <fweimer@redhat.com>
11388         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11389         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11390         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11391         Move Name_Ids instantiation to the Prj.Proc package, to avoid
11392         trampolines.
11394 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11396         * config/arm/arm.c (bounds_check): Use %wd print format
11397         for HOST_WIDE_INT arguments.
11399 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
11401         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11402         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11403         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11404         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11405         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11406         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11407         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11408         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11409         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11410         typedefs.
11412 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
11414         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11415         function.c, graphite-scop-detection.c, haifa-sched.c,
11416         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11417         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11418         varasm.c: Remove typedefs of structs.
11420 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
11422         * config/rs6000/altivec.h (vec_adde): New define.
11423         (vec_addec): Likewise.
11424         (vec_double): Likewise.
11425         (vec_bperm): Likewise.
11426         (vec_gb): Likewise.
11427         * config/rs6000/rs6000-builtin.def (ADDE): New
11428         BU_ALTIVEC_OVERLOAD_3.
11429         (ADDEC): Likewise.
11430         (DOUBLE): New BU_VSX_OVERLOAD_1.
11431         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11432         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11433         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11434         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11435         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11436         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11437         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11438         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11439         and P8V_BUILTIN_VEC_VBPERMQ.
11441 2015-08-18  Jason Merrill  <jason@redhat.com>
11443         * print-tree.c (print_node): Handle TREE_BINFO.
11445 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11447         PR middle-end/36757
11448         * builtins.c (expand_builtin_signbit): Add asserts to make sure
11449         we can expand BUILT_IN_SIGNBIT inline.
11450         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
11451         * doc/extend.texi: Document the type-generic __builtin_signbit.
11453 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
11455         PR rtl-optimization/67218
11456         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
11457         (simplify_unary_operation_1): Use it.
11459 2015-08-18  Marek Polacek  <polacek@redhat.com>
11461         PR middle-end/67222
11462         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
11463         if the call isn't valid.
11464         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
11465         gimple_call_builtin_p.
11466         (call_may_clobber_ref_p_1): Likewise.
11467         (stmt_kills_ref_p): Likewise.
11469 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11471         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
11472         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
11473         (mips_hard_regno_scratch_ok): Likewise.
11474         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
11475         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
11477 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
11479         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
11480         (determine_value_range): Call refine_value_range_using_guard for
11481         each loop initial condition to improve value range.
11483 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
11485         * config/i386/i386.c: Remove include of fibheap.h.
11487 2015-08-17  Richard Biener  <rguenther@suse.de>
11489         PR tree-optimization/67221
11490         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
11491         (sccvn_dom_walker::before_dom_children): Mark backedges of
11492         non-executable blocks as not executable.
11494 2015-08-17  David Sherwood  <david.sherwood@arm.com>
11496         * config/arm/arm.c (neon_element_bits): Replace call to
11497         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
11498         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
11499         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
11500         (neon_vdup_lane<mode>): Likewise.
11501         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
11502         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
11503         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
11504         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
11505         * config/spu/spu.c (arith_immediate_p): Likewise.
11506         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11507         * expr.c (expand_expr_real_2): Likewise.
11508         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
11509         * simplify-rtx.c (simplify_immed_subreg): Likewise.
11510         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11511         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
11512         New variable.
11513         * fold-const.c (fold_binary_loc): Replace call to
11514         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
11515         GET_MODE_UNIT_PRECISION (m).
11517 2015-08-17  Mike Stump  <mikestump@comcast.net>
11519         * config/arm/arm.c (arm_block_move_unaligned_straight):
11520         Emit normal move instead of unaligned load when source or destination
11521         are appropriately aligned.
11523 2015-08-17  Richard Biener  <rguenther@suse.de>
11524             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11526         PR middle-end/16107
11527         * match.pd (div (coss (op @0) : New simplifier.
11529 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
11531         PR rtl-optimization/64164
11532         PR bootstrap/66978
11533         PR middle-end/66983
11534         PR rtl-optimization/67000
11535         PR middle-end/67034
11536         PR middle-end/67035
11537         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11538         * tree-ssa-copyrename.c: Removed.
11539         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11540         -ftree-coalesce-vars.
11541         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11542         * common.opt (ftree-copyrename): Ignore.
11543         (ftree-coalesce-inlined-vars): Likewise.
11544         * doc/invoke.texi: Remove the ignored options above.
11545         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11546         * tree-ssa-coalesce.h: ... here.
11547         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11548         headers required by it.
11549         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11550         across variables when flag_tree_coalesce_vars.  Check register
11551         use and promoted modes to allow coalescing.  Do not coalesce
11552         maybe-byref parms with SSA_NAMEs of other variables, or
11553         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
11554         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11555         with its member functions to tree-ssa-coalesce.c.
11556         (var_map_base_init): Likewise.  Renamed to
11557         compute_samebase_partition_bases.
11558         (partition_view_normal): Drop want_bases parameter.
11559         (partition_view_bitmap): Likewise.
11560         * tree-ssa-live.h: Adjust declarations.
11561         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
11562         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11563         default defs at the entry point.
11564         (dump_part_var_map): New.
11565         (compute_optimized_partition_bases): New, called by...
11566         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11567         of compute_samebase_partition_bases.  Adjust.
11568         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11569         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
11570         (ssa_default_def_partition): New.
11571         (get_rtl_for_parm_ssa_default_def): New.
11572         (align_local_variable, add_stack_var): Support anonymous SSA
11573         names.
11574         (defer_stack_allocation): Likewise.  Declare earlier.
11575         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11576         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11577         Do no record deferred-allocation marker in
11578         SA.partition_to_pseudo.
11579         (expand_stack_vars): Adjust check for the marker in it.
11580         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11581         redundant MEM attr setting.
11582         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11583         from...
11584         (expand_one_stack_var): ... this.  New wrapper to check and
11585         skip already expanded SSA partitions.
11586         (record_alignment_for_reg_var): New, factored out of...
11587         (expand_one_var): ... this.
11588         (expand_one_ssa_partition): New.
11589         (adjust_one_expanded_partition_var): New.
11590         (expand_one_register_var): Check and skip already expanded SSA
11591         partitions.
11592         (expand_used_vars): Don't create DECLs for anonymous SSA
11593         names.  Expand all SSA partitions, then adjust all SSA names.
11594         (pass::execute): Replace the loops that set
11595         SA.partition_to_pseudo from partition leaders and cleared
11596         DECL_RTL for multi-location variables, and that which used to
11597         rename vars and set attrs, with one that clears DECL_RTL and
11598         checks that PARMs and RESULTs default_defs match DECL_RTL.
11599         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11600         * emit-rtl.c: Include stor-layout.h.
11601         (set_reg_attrs_for_parm): Handle NULL decl.
11602         (set_reg_attrs_for_decl_rtl): Take mode from expression if
11603         it's not a DECL.
11604         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
11605         rather than its possibly-NULL DECL.
11606         * explow.c (promote_ssa_mode): New.
11607         * explow.h (promote_ssa_mode): Declare.
11608         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11609         (read_complex_part): Export.
11610         * expr.h (read_complex_part): Declare.
11611         * cfgexpand.h (parm_maybe_byref_p): Declare.
11612         * function.c: Include cfgexpand.h.
11613         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11614         (use_register_for_parm_decl): Wrapper for the above to
11615         special-case the result_ptr.
11616         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11617         (split_complex_args): Take assign_parm_data_all argument.
11618         Pass it to rtl_for_parm.  Set up rtl and context for split
11619         args.  Reset complex parm before fetching its default decl
11620         rtl.
11621         (assign_parms_unsplit_complex): Use the default-def complex
11622         parm rtl if it matches the components.
11623         (assign_parms_augmented_arg_list): Adjust.
11624         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11625         multiple locations.  Recognize split complex args.
11626         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11627         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11628         (assign_parm_setup_block): Prefer SSA-assigned location, and
11629         fill in its address if the memory location of a maybe-byref
11630         parm was not assigned by cfgexpand.
11631         (assign_parm_setup_reg): Likewise.  Adjust its mode as
11632         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
11633         sure passed_pointer parms don't need conversion.  Copy address
11634         or value as needed.
11635         (assign_parm_setup_stack): Prefer SSA-assigned location.
11636         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11637         rtl before testing for pointer bounds.  Special-case result_ptr.
11638         (expand_function_start): Maybe reset DECL_RTL of result.
11639         Prefer SSA-assigned location for result and static chain.
11640         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
11641         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
11642         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11643         anonymous SSA names.  Use promote_ssa_mode.
11644         (get_temp_reg): Likewise.
11645         (remove_ssa_form): Adjust.
11646         * stor-layout.c (layout_decl): Don't set mem attributes of
11647         non-MEMs.
11648         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11649         and get its reg_usage for reg invalidation.
11650         (compute_bb_dataflow): Pass it insn.
11651         (emit_notes_in_bb): Likewise.
11653 2015-08-14  Marek Polacek  <polacek@redhat.com>
11655         * tree-core.h (tree_base): Fix typo.
11657 2015-08-14  Marek Polacek  <polacek@redhat.com>
11659         PR middle-end/67133
11660         * gimple.c (infer_nonnull_range_by_attribute): Check that the
11661         nonnull argument position is not outside function arguments.
11663 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
11665         PR target/67143
11666         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
11667         'lconst_atomic' with 'const_atomic'.
11668         (atomic_fetch_<optab><mode>): Likewise.
11669         (atomic_<optab>_fetch<mode>): Likewise.
11670         * config/aarch64/iterators.md (lconst-atomic): Move below
11671         'const_atomic'.
11672         (const_atomic): New.
11674 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
11675             Bernd Schmidt  <bernds@codesourcery.com>
11677         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
11678         debug options.
11679         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
11680         (DWARF2_DEBUGGING_INFO): Don't define.
11681         * debug.h (dwarf2_lineno_debug_hooks): Declare.
11682         * toplev.c (process_options): Add a case for it.
11683         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
11684         (dwarf2out_init): Skip most initializations if
11685         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
11686         case.
11687         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
11688         DWARF2_LINENO_DEBUGGING_INFO.
11689         * opts.c (set_debug_level): Likewise.
11691 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
11693         * config/arm/types.md (is_neon_type): Add missing types.
11695 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
11697         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
11698         for skylake.
11699         * config/i386/i386.c (PTA_SKYLAKE): New macros.
11700         (processor_alias_table): Add skylake description.
11701         (enum processor_model): Add skylake processor.
11702         (arch_names_table): Add skylake record.
11703         * doc/invoke.texi: Add skylake item.
11705 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
11707         * ira-int.h: Include recog.h.
11708         * ira-build.c: Don't include recog.h.
11709         * ira-color.c: Likewise.
11710         * ira-conflicts.c: Likewise.
11711         * ira-costs.c: Likewise.
11712         * ira-emit.c: Likewise.
11713         * ira-lives.c: Likewise.
11714         * ira.c: Likewise.
11715         * sched-deps.c: Likewise.
11716         * sel-sched.c: Likewise.
11717         * target-globals.c: Likewise.
11719 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
11721         PR bootstrap/55035
11722         * reload1.c (elimination_costs_in_insn): Make it obvious to the
11723         compiler that the n_dups and n_operands loop bounds are invariant.
11725 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11727         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
11728         expressions in A and B.
11730 2015-08-13  Richard Biener  <rguenther@suse.de>
11732         * tree.c (nonnull_arg_p): Move from ...
11733         * tree-vrp.c (nonnull_arg_p): ... here.
11734         * tree.h (nonnull_arg_p): Declare.
11735         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
11736         here, register ptr != 0 for nonnull_arg_p pointer arguments.
11737         Properly initialize static chain and by-reference result pointer.
11738         (run_scc_vn): Adjust.
11740 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
11742         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
11743         TUNE_I6400.
11745 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
11747         * config/aarch64/aarch64-protos.h
11748         (aarch64_gen_atomic_cas): Declare.
11749         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
11750         Choose appropriate instruction pattern for the target.
11751         (aarch64_gen_atomic_cas): New.
11752         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
11753         (atomic_compare_and_swap<mode>_1): Rename to
11754         aarch64_compare_and_swap<mode>.  Fix some indentation.
11755         (aarch64_compare_and_swap<mode>_lse): New.
11756         (aarch64_atomic_cas<mode>): New.
11758 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
11760         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
11761         (TARGET_LSE): New.
11763 2015-08-13  Richard Biener  <rguenther@suse.de>
11765         PR tree-optimization/67191
11766         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
11767         assert we value-numbered last stmts operand because it can validly
11768         trigger for unreachable code.
11770 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11772         PR rtl-optimization/67103
11773         * ifcvt.c (noce_try_store_flag_constants): Move
11774         x = (-(test != 0) & (b - a)) + a transformation to...
11775         (noce_try_cmove): ... Here.  Try it if normal conditional
11776         move fails.
11778 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
11780         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
11781         pseudo-processors.
11782         * config/mips/mips.md (processor): Remove w32 and w64.
11784 2015-08-13  Richard Biener  <rguenther@suse.de>
11786         PR tree-optimization/66502
11787         PR tree-optimization/67167
11788         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
11789         backedge arguments.
11790         (vn_phi_lookup): Adjust.
11791         (vn_phi_insert): Likewise.
11792         (visit_phi): Prefer to value-number to another PHI node
11793         over value-numbering to a PHI argument.
11794         (init_scc_vn): Mark DFS back edges.
11796 2015-08-13  Richard Biener  <rguenther@suse.de>
11798         * gimple.h (gcall::code_): New constant static member.
11799         (gcond::code_): Likewise.
11800         * gimple.c (gcall::code_): Define.
11801         (gcond::code_): Likewise.
11802         (is_a_helper <const gcond *>): Add.
11803         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
11804         and forward to a new gcall overload with less checking and a
11805         cheaper way to access the operand.
11806         (gimple_call_lhs_ptr): Likewise.
11807         (gimple_call_set_lhs): Likewise.
11808         (gimple_call_internal_p): Likewise.
11809         (gimple_call_with_bounds_p): Likewise.
11810         (gimple_call_set_with_bounds): Likewise.
11811         (gimple_call_internal_fn): Likewise.
11812         (gimple_call_set_ctrl_altering): Likewise.
11813         (gimple_call_ctrl_altering_p): Likewise.
11814         (gimple_call_fntype): Likewise.
11815         (gimple_call_fn): Likewise.
11816         (gimple_call_fn_ptr): Likewise.
11817         (gimple_call_set_fndecl): Likewise.
11818         (gimple_call_fndecl): Likewise.
11819         (gimple_call_chain): Likewise.
11820         (gimple_call_num_args): Likewise.
11821         (gimple_call_arg): Likewise.
11822         (gimple_call_arg_ptr): Likewise.
11823         (gimple_call_set_arg): Likewise.
11824         (gimple_call_noreturn_p): Likewise.
11825         (gimple_cond_code): Likewise.
11826         (gimple_cond_lhs): Likewise.
11827         (gimple_cond_rhs): Likewise.
11828         (gimple_has_lhs): Reduce checking.
11830 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11832         PR middle-end/25529
11833         * match.pd (div (mult @0 @1) @1) : New simplifier.
11835 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11837         PR target/67071
11838         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
11839         predicate to allow construction of vector constants using the
11840         VSLDOI vector shift instruction.
11842         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
11843         declaration.
11845         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
11846         the number of bytes to be shifted left and filled in with either
11847         all zero or all one bits.
11848         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
11849         methods exist.
11850         (output_vec_const_move): On power8, generate XXLORC to generate
11851         a vector constant with all 1's. Do a split if we need to use a
11852         VSLDOI instruction.
11854         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
11855         properly test for the MSB.
11857         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
11858         vector constants that can be created with VSLDOI.
11860 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
11862         revert:
11863         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11864         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11865         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11866         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11867         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11868         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11869         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11870         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11871         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11873 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
11875         * config/xtensa/constraints.md (define_constraint "Y"): New
11876         constraint.
11877         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
11878         * config/xtensa/linux.h (ASM_SPEC): Likewise.
11879         * config/xtensa/predicates.md (move_operand): Match constants
11880         and symbols in the presence of TARGET_AUTO_LITPOOLS.
11881         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
11882         immediate references to TLS data.
11883         (xtensa_emit_move_sequence): Don't force constants to memory in
11884         the presence of TARGET_AUTO_LITPOOLS.
11885         (print_operand): Add 'y' format, same as default, but capable of
11886         printing SF mode constants as well.
11887         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
11888         (movsf_internal): Add movi pattern that loads literal.
11889         (movsf, movdf): Don't force constants to memory in the presence
11890         of TARGET_AUTO_LITPOOLS.
11891         (movdf_internal): Add 'Y' constraint.
11892         * config/xtensa/xtensa.opt (mauto-litpools): New option.
11893         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
11895 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
11897         * config/arm/arm-fpus.def: Replace booleans with feature flags.
11898         Update comment.
11899         * config/arm/arm.c (ARM_FPU): Update macro.
11900         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
11901         (TARGET_FP16): Likewise.
11902         (TARGET_CRYPTO): Likewise.
11903         (TARGET_NEON): Likewise.
11904         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
11905         field features.
11907 2015-08-12  Tom de Vries  <tom@codesourcery.com>
11909         PR other/67092
11910         PR other/67098
11911         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
11912         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
11913         accordingly.  Mention default for --with-stage1-ldflags.
11915 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
11917         * config/arm/arm.h (arm_fpu_feature_set): New.
11918         (ARM_FPU_FSET_HAS): New.
11919         (FPU_FL_NONE): New.
11920         (FPU_FL_NEON): New.
11921         (FPU_FL_FP16): New.
11922         (FPU_FL_CRYPTO): New.
11924 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11926         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
11927         after -mcmodel=large -fPIC sorry.
11929 2015-08-12  Richard Biener  <rguenther@suse.de>
11931         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
11932         comparison operand order and commutative ternary op operand order.
11933         (sccvn_dom_walker::cond_stack): New state to track temporary
11934         expressions.
11935         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
11936         no longer valid.
11937         (sccvn_dom_walker::record_cond): Add a single temporary conditional
11938         expression.
11939         (sccvn_dom_walker::record_conds): Add a temporary conditional
11940         expressions and all related expressions also true/false.
11941         (sccvn_dom_walker::before_dom_children): Record temporary
11942         expressions based on the controlling condition of a single
11943         predecessor.  When trying to simplify a conditional statement
11944         lookup expressions we might have inserted earlier.
11946 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
11948         PR target/67127
11949         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
11950         to ARM core registers.
11952 2015-08-12  Nathan Sidwell  <nathan@acm.org>
11954         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
11955         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
11957 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
11959         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
11960         line with comments.
11961         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
11963 2015-08-12  Richard Biener  <rguenther@suse.de>
11965         * gimple.h (remove_pointer): New trait.
11966         (GIMPLE_CHECK2): New inline template function.
11967         (gassign::code_): New constant static member.
11968         (is_a_helper<const gassign *>): Add.
11969         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
11970         and forward to a new gassign overload with less checking and a
11971         cheaper way to access the operand.
11972         (gimple_assign_lhs_ptr): Likewise.
11973         (gimple_assign_set_lhs): Likewise.
11974         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
11975         Likewise.
11976         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
11977         Likewise.
11978         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
11979         Likewise.
11980         (gimple_assign_rhs_code): Likewise.
11981         * gimple.c (gassign::code_): Define.
11983 2015-08-12  Richard Biener  <rguenther@suse.de>
11985         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11986         Eliminate edges marked as not executable by SCCVN.
11987         * tree-ssa-sccvn.c: Include gimple-iterator.h.
11988         (cond_dom_walker): Rename to sccvn_dom_walker.
11989         (sccvn_dom_walker::before_dom_children): Value-number defs
11990         of all stmts.
11991         (run_scc_vn): Remove loop value-numbering all SSA names.
11992         Drop not visited SSA names to varying.
11994 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
11996         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11997         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11998         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11999         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12000         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12001         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12002         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12003         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12004         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12006 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
12008         PR target/66954
12009         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12010         to enum feature_priority and feature_list.
12011         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12012         and isa_names_table.
12014 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
12016         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12017         vect_induction_def.
12019 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12021         PR c/66098
12022         PR c/66711
12023         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12024         account when deciding what was the command-line status.
12026 2015-08-11  Nathan Sidwell  <nathan@acm.org>
12028         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12030         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12031         we're not the only contributor to target phi.
12033 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
12035         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12036         FIXED_REG0.
12038 2015-08-11  Tom de Vries  <tom@codesourcery.com>
12040         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12042 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
12044         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12045         with CPU_SLM.
12046         * config/i386/i386.md (cpu): Remove knl.
12048 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12050         PR libgomp/65742
12051         PR middle-end/66332
12052         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12053         open-coded sequence.
12054         * omp-low.c (oacc_process_reduction_data): Remove handline of
12055         GOMP_DEVICE_HOST_NONSHM.
12057         * lto-streamer-in.c (lto_input_mode_table): Adjust to
12058         GET_MODE_INNER changes.
12060 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12061             Ilya Verbin  <ilya.verbin@intel.com>
12063         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12065 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12067         * doc/options.texi (EnabledBy): Document that the argument must be
12068         a Common option.
12069         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12070         Not enabled by -Wall.
12071         * optc-gen.awk: Give nicer error messages. Detect if the argument
12072         of EnabledBy is not a Common option.
12073         * common.opt (Wnull-dereference): Not enabled by -Wall.
12074         * opt-functions.awk (lang_enabled_by): Nicer error messages.
12076 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12078         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12079         model == 0x4f as Broadwell.
12081 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
12083         PR rtl-optimization/67028
12084         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
12085         Add test to see if a const_int fits in the new mode.
12087 2015-08-07  DJ Delorie  <dj@redhat.com>
12089         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12091 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
12093         PR rtl-optimization/67029
12094         * ira-color.c: Include "recog.h" before including "ira-int.h".
12095         * target-globals.c: Likewise.
12096         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12097         adds an alternative_mask argument and use it instead of
12098         preferred_alternatives.
12099         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12100         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12101         * sched-deps.c: Include "ira-int.h" after including "ira.h".
12102         (sched_analyze_insn): Update call to
12103         ira_implicitly_set_insn_hard_regs.
12104         * sel-sched.c: Include "ira-int.h" after including "ira.h".
12105         (implicit_clobber_conflict_p): Update call to
12106         ira_implicitly_set_insn_hard_regs.
12108 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12110         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12112 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12114         PR target/67002
12115         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12116         currently_expanding_to_rtl is set.
12118 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
12120         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12121         * configure: Regenerate.
12123 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12124             Jiong Wang  <jiong.wang@arm.com>
12126         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12127         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12128         (REG_CLASS_NAMES): Likewise.
12129         (REG_CLASS_CONTENTS): Likewise.
12130         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12131         (aarch64_register_move_cost): Likewise.
12132         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12133         possible.
12134         * config/aarch64/constraints.md (Uc0): New constraint.
12136 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12138         * config/aarch64/constraints.md (Usf): Add the test of
12139         aarch64_is_noplt_call_p.
12141 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12143         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12144         declaration.
12145         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12146         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12147         (call_symbol): Likewise.
12149 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12151         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12152         for vectorizing multiplication patterns.
12153         * tree-vectorizer.h: Adjust the number of patterns.
12155 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12157         * config/i386/sse.md (*vec_concatv2df): Declare added
12158         alternatives as sselog type.
12160 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12162         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12163         all GPRs.
12165 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12167         * config/s390/s390.c (s390_expand_tbegin): Expand either
12168         tbegin_1_z13 or tbegin_1 depending on VX flag.
12169         * config/s390/s390.md ("tbegin_1_z13"): New expander.
12171 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12173         * config/s390/s390.opt: Clarify description for -mzvector
12174         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12175         -mzvector.
12177 2015-08-06  Richard Biener  <rguenther@suse.de>
12179         * gimple.h (gimple_call_set_fn): Access op member directly.
12180         (gimple_call_chain_ptr): Likewise.
12181         (gimple_call_set_chain): Likewise.
12182         (gimple_cond_lhs_ptr): Likewise.
12183         (gimple_cond_set_lhs): Likewise.
12184         (gimple_cond_rhs_ptr): Likewise.
12185         (gimple_cond_set_rhs): Likewise.
12186         (gimple_cond_true_label): Likewise.
12187         (gimple_cond_set_true_label): Likewise.
12188         (gimple_cond_set_false_label): Likewise.
12189         (gimple_cond_false_label): Likewise.
12190         (gimple_label_label): Likewise.
12191         (gimple_label_set_label): Likewise.
12192         (gimple_goto_set_dest): Likewise.
12193         (gimple_asm_input_op): Likewise.
12194         (gimple_asm_input_op_ptr): Likewise.
12195         (gimple_asm_set_input_op): Likewise.
12196         (gimple_asm_output_op): Likewise.
12197         (gimple_asm_output_op_ptr): Likewise.
12198         (gimple_asm_set_output_op): Likewise.
12199         (gimple_asm_clobber_op): Likewise.
12200         (gimple_asm_set_clobber_op): Likewise.
12201         (gimple_asm_label_op): Likewise.
12202         (gimple_asm_set_label_op): Likewise.
12203         (gimple_switch_index): Likewise.
12204         (gimple_switch_index_ptr): Likewise.
12205         (gimple_return_retval_ptr): Likewise.
12206         (gimple_return_retval): Likewise.
12207         (gimple_return_set_retval): Likewise.
12208         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
12209         (gimple_switch_label): Likewise.
12210         (gimple_switch_set_label): Likewise.
12212 2015-08-06  Richard Biener  <rguenther@suse.de>
12214         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12215         bool comparison canonicalization and restrict to integers.
12217 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
12219         * coretypes.h (enum symbol_visibility): Relocate here.
12220         * flag-types.h (enum symbol_visibility): Remove.
12221         * tree-core.h (enum symbol_visibility): Remove.
12223 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
12225         PR target/66870
12226         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12227         for no_split_stack function attribute along with
12228         flag_split_stack.
12229         (rs6000_expand_split_stack_prologue): Likewise.
12231 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12232             Jeff Law  <law@redhat.com>
12234         PR c/16351
12235         * doc/invoke.texi (Wnull-dereference): New.
12236         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12237         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12238         Warn for potential NULL dereferences.
12239         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12240         * ubsan.c (instrument_nonnull_arg): Call
12241         infer_nonnull_range_by_attribute.
12242         (instrument_nonnull_return): Likewise.
12243         * common.opt (Wnull-dereference); New.
12244         * gimple.c (infer_nonnull_range): Remove bool arguments.
12245         (infer_nonnull_range_by_dereference): New.
12246         (infer_nonnull_range_by_attribute): New.
12247         * gimple.h: Update declarations.
12249 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12251         * gensupport.c (sequence_num): Replace with...
12252         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12253         ...these new variables.
12254         (init_rtx_reader_args_cb): Update accordingly.
12255         (get_num_code_insns): Likewise.
12256         (read_md_rtx): Rework to use a while loop and get_c_test.
12257         Use the new counters.  Remove redundant DEFINE_SUBST case.
12258         * genoutput.c (gen_split): Delete.
12259         (main): Don't call it.
12261 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12263         * gensupport.h (get_c_test): Declare.
12264         * gensupport.c (get_c_test): New function.
12265         * genconditions.c (main): Use it.
12266         * genrecog.c (validate_pattern): Likewise.
12267         (match_pattern_1): Likewise.  Remove c_test argument.
12268         (match_pattern): Update accordingly and remove c_test argument.
12269         (main): Update accordingly.
12271 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12273         * gensupport.h (get_num_insn_codes): Declare.
12274         * gensupport.c (get_num_insn_codes): New function.
12275         * genattrtab.c (optimize_attrs): Rename max_insn_code to
12276         num_insn_codes.
12277         (main): Likewise.  Use get_num_insn_codes.
12278         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12280 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12282         PR middle-end/66311
12283         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12284         is zero- rather than sign-extended.
12286 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12288         * target-insns.def (can_extend): Delete.
12290 2015-08-05  Richard Biener  <rguenther@suse.de>
12292         PR tree-optimization/67121
12293         * tree-if-conv.c (combine_blocks): Clear range-info produced
12294         by stmts no longer executed conditionally.
12296 2015-08-05  Nick Clifton  <nickc@redhat.com>
12298         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12299         to allow identical far pointers to remain.
12301 2015-08-05  Richard Biener  <rguenther@suse.de>
12303         PR middle-end/67120
12304         * match.pd: Compare address bases with == if they are decls
12305         or SSA names, not operand_equal_p.  Otherwise fail.
12307 2015-08-05  Richard Biener  <rguenther@suse.de>
12309         PR tree-optimization/67055
12310         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12311         NULL gimple_block.
12313         * g++.dg/torture/pr67055.C: New testcase.
12315 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
12317         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12318         noavx512vl.
12319         (define_attr "enabled"): Handle avx521vl and noavx512vl.
12320         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12321         AVX-512 alternative out of SSE.
12322         (define_insn "*vec_concatv2df"): Ditto.
12324 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
12326         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12327         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12328         CODE_FOR_avx_ptestv4di.
12329         * config/i386/sse.md (define_mode_iterator V_AVX): New.
12330         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12331         (define_insn "avx_ptest256"): Merge this ...
12332         (define_insn "sse4_1_ptest"): And this ...
12333         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12335 2015-08-05  Richard Biener  <rguenther@suse.de>
12337         PR tree-optimization/67109
12338         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12339         against too big groups.  Print whether this is a load or store
12340         group.  Rename from ...
12341         (vect_analyze_group_access): ... this which is now a wrapper
12342         dissolving an invalid group.
12343         (vect_analyze_data_ref_accesses): Print whether this is a load
12344         or store group.
12346 2015-08-05  Richard Biener  <rguenther@suse.de>
12348         PR middle-end/67107
12349         * match.pd: Guard const_binop result checking against NULL_TREE
12350         result.
12352 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
12354         * cse.c (cse_insn): Restoring old behaviour for src_eqv
12355          when dest and value in the REG_EQUAL are same and dest
12356          is STRICT_LOW_PART.
12358 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
12360         * config/moxie/moxie.h (PRINT_OPERAND,
12361           PRINT_OPERAND_ADDRESS): Remove macros.
12362         * config/moxie/moxie-protos.h (moxie_print_operand,
12363           moxie_print_operand_address): Remove declaration.
12364         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12365           TARGET_PRINT_OPERAND_ADDRESS): Define.
12366           (moxie_print_operand, moxie_print_operand_address): Make static.
12368 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12370         PR target/66731
12371         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12372         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12374 2015-08-04  Richard Biener  <rguenther@suse.de>
12376         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12377         generated code.
12378         (dt_operand::gen_gimple_expr): Adjust.
12380 2015-08-04  Richard Biener  <rguenther@suse.de>
12382         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12383         bool compares on RHS.
12384         * match.pd: Add X ==/!= !X is false/true pattern.
12386 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
12388         * config/aarch64/aarch64.c: Change inner loop statement cost
12389         to be consistent with other targets.
12391 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
12393         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12394         targets.
12396 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
12398         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12399         (machine_function): Remove pseudos field.
12401 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12403         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12404         Exit early and use target_option_current_node if processing current
12405         pragma.
12407 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12409         * doc/extend.texi (AArch64 Function Attributes): New node.
12410         (AArch64 Pragmas): Likewise.
12412 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12414         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12415         Initialize simd builtins if TARGET_SIMD.
12416         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12417         Make sure that the builtins are initialized only once no matter how
12418         many times the function is called.
12419         (aarch64_init_builtins): Unconditionally initialize crc builtins.
12420         (aarch64_relayout_simd_param): New function.
12421         (aarch64_simd_expand_args): Use above during argument expansion.
12422         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12423         simd builtins if TARGET_SIMD.
12424         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12425         prototype.
12426         (aarch64_relayout_simd_types): Likewise.
12428 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12430         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12431         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12432         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12433         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12434         static keyword.
12435         (aarch64_reset_previous_fndecl): New function.
12436         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12437         the string.
12438         * config/aarch64/aarch64-c.c: New file.
12439         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12440         Push and pop options at beginning and end.  Remove ifdef
12441         __ARM_FEATURE_CRC32.
12442         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
12443         Add pragma +nothing+simd and +nothing+crypto where appropriate.
12444         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
12445         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
12446         Define prototype.
12447         (aarch64_register_pragmas): Likewise.
12448         (aarch64_reset_previous_fndecl): Likewise.
12449         (aarch64_process_target_attr): Likewise.
12450         (aarch64_override_options_internal): Likewise.
12452 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12454         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
12455         New function.
12456         (aarch64_can_inline_p): Likewise.
12457         (TARGET_CAN_INLINE_P): Define.
12459 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12461         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12462         Remove static.  Handle OPT_mgeneral_regs_only,
12463         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
12464         OPT_momit_leaf_frame_pointer.
12465         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
12466         (aarch64_attr_opt_type): New enum.
12467         (aarch64_attribute_info): New struct.
12468         (aarch64_handle_attr_arch): New function.
12469         (aarch64_handle_attr_cpu): Likewise.
12470         (aarch64_handle_attr_tune): Likewise.
12471         (aarch64_handle_attr_isa_flags): Likewise.
12472         (aarch64_attributes): New table.
12473         (aarch64_process_one_target_attr): New function.
12474         (num_occurences_in_str): Likewise.
12475         (aarch64_process_target_attr): Likewise.
12476         (aarch64_option_valid_attribute_p): Likewise.
12477         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12478         * config/aarch64/aarch64-protos.h: Include input.h
12479         (aarch64_handle_option): Declare prototype.
12481 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12483         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
12484         * config/aarch64/aarch64.c: Include target-globals.h
12485         (aarch64_previous_fndecl): New variable.
12486         (aarch64_set_current_function): New function.
12487         (TARGET_SET_CURRENT_FUNCTION): Define.
12489 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12491         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
12492         (explicit_arch): Likewise.
12493         (x_aarch64_isa_flags): Likewise.
12494         (mgeneral-regs-only): Mark as Save.
12495         (mfix-cortex-a53-835769): Likewise.
12496         (mcmodel=): Likewise.
12497         (mstrict-align): Likewise.
12498         (momit-leaf-frame-pointer): Likewise.
12499         (mtls-dialect): Likewise.
12500         (master=): Likewise.
12501         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
12502         (aarch64_isa_flags): Remove extern declaration.
12503         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
12504         to indicate success or failure.
12505         (aarch64_validate_march): Likewise.
12506         (aarch64_validate_mtune): Likewise.
12507         (aarch64_isa_flags): Delete.
12508         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
12509         instead of aarch64_isa_flags.
12510         (aarch64_get_tune_cpu): New function.
12511         (aarch64_get_arch): Likewise.
12512         (aarch64_override_options): Use above and set up explicit_tune_core
12513         and explicit_arch.
12514         (aarch64_print_extension): Move earlier in file.  Add isa_flags
12515         argument and use that instead of the global aarch64_isa_flags.
12516         (aarch64_option_save): New function.
12517         (aarch64_option_restore): Likewise.
12518         (aarch64_option_print): Likewise.
12519         (aarch64_declare_function_name): Likewise.
12520         (aarch64_start_file): Delete.
12521         (TARGET_ASM_FILE_START): Do not define.
12522         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
12523         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
12524         Declare prototype.
12526 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12528         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
12529         flag_omit_leaf_frame_pointer to 2.
12531 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12533         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
12534         define to 0 or 1.
12535         (TARGET_FIX_ERR_A53_835769): New macro.
12536         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12537         handling of opts->x_aarch64_fix_a53_err835769.
12538         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
12539         than aarch64_fix_a53_err835769.
12540         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
12541         * config/aarch64/aarch64-linux.h: Likewise.
12543 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
12545         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
12546         ix86_expand_int_movcc as boolean.
12548 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12550         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
12551         (aarch64_cpu_string): Likewise.
12552         (aarch64_tune_string): Likewise.
12553         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
12554         (aarch64_parse_extension): Return aarch64_parse_opt_result.
12555         Add extra argument to put result into.
12556         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
12557         (aarch64_parse_cpu): Add arguments to put results into. Return
12558         aarch64_parse_opt_result.
12559         (aarch64_parse_tune): Likewise.
12560         (aarch64_override_options_after_change_1): New function.
12561         (aarch64_override_options_internal): New function.
12562         (aarch64_validate_mcpu): Likewise.
12563         (aarch64_validate_march): Likewise.
12564         (aarch64_validate_mtune): Likewise.
12565         (aarch64_override_options): Update to reflect above changes.
12566         Move some logic into aarch64_override_options_internal.
12567         Initialize target_option_default_node and target_option_current_node.
12568         (aarch64_override_options_after_change): Move logic into
12569         aarch64_override_options_after_change_1 and call it with global_options.
12570         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
12571         flag values from that.
12573 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12575         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12576         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
12577         * config/aarch64/aarch64.c (struct processor): Add arch field.
12578         (all_architectures): Handle above, move above all_cores.
12579         (all_cores): Handle above.
12580         (aarch64_parse_arch): Handle above changes.
12581         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
12582         above.  Update comments.
12583         (armv8.1-a): Likewise.
12584         * config/aarch64/aarch64-cores.def: Update according to above.
12585         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
12586         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
12587         aarch64_arch_driver_info.
12589 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12591         * config/aarch64/aarch64.c (struct processor): Add ident field.
12592         Rename core sched_core.
12593         (all_cores): Handle above changes.
12594         (all_architectures): Likewise.
12595         (aarch64_parse_arch): Likewise.
12596         (aarch64_override_options): Likewise.
12598 2015-08-04  Richard Biener  <rguenther@suse.de>
12600         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12601         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
12602         comparisons embedded in [VEC_]COND_EXPRs.
12604 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
12606         * tree-if-conv.c: Fix various typos in comments.
12607         * tree-vect-stmts.c: Likewise.
12609 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12611         PR tree-optimization/67043
12612         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
12613         preheader after hoisting invariant in it.
12614         (find_defs): Force recomputation of all luids.
12616 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
12618         * config/rs6000/htm.md (tabort.): Restrict the source operand to
12619         using a base register.
12621 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
12623         * main.c (main): Pass in NULL for toplev's external_timer.
12624         * timevar.c: Include coretypes.h.
12625         (class timer::named_items): New.
12626         (timer::named_items::named_items): New.
12627         (timer::named_items::~named_items): New.
12628         (timer::named_items::push): New.
12629         (timer::named_items::pop): New.
12630         (timer::named_items::print): New.
12631         (timer::timer): Initialize field "m_jit_client_items".
12632         (timer::~timer): New.
12633         (timer::push): Move bulk of implementation to...
12634         (timer::push_internal): ...here.  New function.
12635         (timer::pop): Move bulk of implementation to...
12636         (timer::pop_internal): ...here.  New function.
12637         (timer::push_client_item): New.
12638         (timer::pop_client_item): New.
12639         (timer::print_row): New function, taken from timer::print.
12640         (timer::print): Print "GCC items" header if we also have client
12641         items.  Move row-printing to timer::print_row.  Print any client
12642         items.
12643         (timer::get_topmost_item_name): New method.
12644         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
12645         (TV_JIT_CLIENT_CODE): New.
12646         * timevar.h (timer::push_client_item): New declaration.
12647         (timer::pop_client_item): New declaration.
12648         (timer::get_topmost_item_name): New method.
12649         (timer::push_internal): New declaration.
12650         (timer::pop_internal): New declaration.
12651         (timer::print_row): New declaration.
12652         (timer::named_items): New declaration.
12653         (timer::m_jit_client_items): New field.
12654         (timer): Add friend class named_items.
12655         (auto_timevar::auto_timevar): Add timer param.
12656         (auto_timevar::~auto_timevar): Use field "m_timer".
12657         (auto_timevar::m_timer): New field.
12658         * toplev.c (initialize_rtl): Add g_timer as param when
12659         constructing auto_timevar instance.
12660         (toplev::toplev): Add "external_timer" param, and use it to
12661         initialize the "g_timer" global if non-NULL.
12662         (toplev::~toplev): If this created "g_timer", delete it.
12663         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
12664         with "external_timer" timer *.
12666 2015-08-03  Alexander Basov <coohpt@gmail.com>
12668         PR middle-end/64744
12669         PR middle-end/48470
12670         PR middle-end/43404
12671         * cfgexpand.c (expand_one_var): Add check if stack is going to
12672         be used in naked function.
12673         * expr.c (expand_expr_addr_expr_1): Remove excess checking
12674         whether expression should not reside in MEM.
12675         * function.c (use_register_for_decl): Do not use registers for
12676         non-register things (volatile, float, BLKMode) in naked functions.
12678 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
12680         PR target/67060
12681         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
12682         Adjust splits to match new pattern.
12684 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12686         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
12687         (VEC_M): Likewise.
12688         (VEC_N): Likewise.
12689         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
12690         point in VSX registers.
12692         * config/rs6000/constraints.md (wb constraint): Document unused
12693         w<x> constraint.
12694         (we constraint): Likewise.
12695         (wo constraint): Likewise.
12696         (wp constraint): New constraint for IEEE 128-bit floating point in
12697         VSX registers.
12698         (wq constraint): Likewise.
12700         * config/rs6000/predicates.md (easy_fp_constant): Add support for
12701         IEEE 128-bit floating point in VSX registers.
12702         (easy_scalar_constant): Likewise.
12704         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
12705         constraints (wp, wq) for IEEE 128-bit floating point in VSX
12706         registers.
12707         (rs6000_init_hard_regno_mode_ok): Likewise.
12709         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
12710         floating point in VSX registers.
12711         (VSX_L): Likewise.
12712         (VSX_M): Likewise.
12713         (VSX_M2): Likewise.
12714         (VSm): Likewise.
12715         (VSs): Likewise.
12716         (VSr): Likewise.
12717         (VSa): Likewise.
12718         (VSv): Likewise.
12719         (vsx_le_permute_<mode>): Add support to properly swap bytes for
12720         IEEE 128-bit floating point in VSX registers on little endian.
12721         (vsx_le_undo_permute_<mode>): Likewise.
12722         (vsx_le_perm_load_<mode>): Likewise.
12723         (vsx_le_perm_store_<mode>): Likewise.
12724         (splitters for IEEE 128-bit fp moves): Likewise.
12726         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
12727         wq constraints.
12729         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
12730         floating point in VSX registers.
12731         (VM2): Likewise.
12733         * doc/md.text (Machine Constraints): Document wp and wq
12734         constraints on PowerPC.
12736 2015-08-03  Jeff Law  <law@redhat.com>
12738         PR middle-end/66314
12739         PR gcov-profile/66899
12740         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
12741         iterate over the jump threading paths when an element in the
12742         jump threading paths array is eliminated.
12744 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
12746         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
12748 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
12750         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
12751         is_use_properly_guarded the variable def_preds.  Free its
12752         contents before returning.
12753         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
12754         (is_use_properly_guarded): Replace local variable def_preds with
12755         a parameter.  Adjust accordingly.  Only update *def_preds if it's
12756         the empty vector.
12758 2015-08-03  Richard Biener  <rguenther@suse.de>
12760         * genmatch.c (simplify::for_subst_vec): New member.
12761         (binary_ok): New helper for for lowering.
12762         (lower_for): Delay substituting operators into result expressions
12763         if we can merge the results eventually again.
12764         (capture_info::walk_result): Adjust for user_id appearing as
12765         result expression operator.
12766         (expr::gen_transform): Likewise.
12767         (dt_simplify::gen_1): Likewise.
12768         (dt_simplify::gen): Pass not substituted operators to tail
12769         functions or initialize local variable with it.
12770         (decision_tree::gen): Adjust function signature.
12771         * match.pd: Fix tests against global code and add default
12772         cases to switch stmts.
12774 2015-08-03  Richard Biener  <rguenther@suse.de>
12776         * genmatch.c (dt_simplify::gen): Create captures array
12777         with an initializer.
12779 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12781         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
12782         the host compiler is affected by placement new aliasing bug.
12783         * configure: Regenerate.
12784         * Makefile.in (ALIASING_FLAGS): New variable.
12785         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
12787 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12789         PR target/66731
12790         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
12791         (negmulsf3_vfp): Likewise.
12792         (muldf3negdf_vfp): Disable for -frounding-math.
12793         (mulsf3negsf_vfp): Likewise.
12794         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
12795         fix MULT cost with -frounding-math.
12797 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12799         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
12800         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
12801         explicit.  Prefer to add the flag whenever possible.
12802         (noce_process_if_block): Try noce_try_store_flag_constants before
12803         noce_try_cmove.
12805 2015-08-03  Richard Biener  <rguenther@suse.de>
12807         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
12808         New hash-map to record equivalent transforms.
12809         (dt_node::analyze): Populate the equivalent transforms hash-map.
12810         (dt_simplify::info): Add reference to hash-map entry.
12811         (dt_simplify::gen): If we have split out a function for the
12812         transform, generate a call to it.
12813         (sinfo_hashmap_traits::hash): New function.
12814         (compare_op): New helper function for ...
12815         (sinfo_hashmap_traits::equal_keys): ... this new function.
12816         (decision_tree::gen): Split out common equivalent transforms
12817         into functions.
12819 2015-08-03  Richard Biener  <rguenther@suse.de>
12821         * gimple-fold.c (fold_gimple_assign): Remove folding of
12822         the comparison in COND_EXPRs.
12824 2015-08-03  Richard Biener  <rguenther@suse.de>
12826         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
12827         on the rhs of assignments first simplify the embedded
12828         GENERIC condition.
12830 2015-08-03  Richard Biener  <rguenther@suse.de>
12832         PR tree-optimization/66917
12833         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
12834         field.
12835         (DR_VECT_AUX): New macro.
12836         (set_dr_misalignment): Adjust.
12837         (dr_misalignment): Likewise.
12838         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12839         Compute whether the base is at least element aligned.
12840         * tree-vect-stmts.c (ensure_base_align): Adjust.
12841         (vectorizable_store): If the base is not element aligned
12842         preserve alignment of the original access if misalignment is unknown.
12843         (vectorizable_load): Likewise.
12845 2015-08-02  Martin Sebor  <msebor@redhat.com>
12847         * c-family/c.opt (-Wframe-address): New warning option.
12848         * doc/invoke.texi (Wframe-address): Document it.
12849         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
12850         Clarify possible effects of calling the functions with non-zero
12851         arguments and mention -Wframe-address.
12852         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
12854 2015-08-01  Michael Collison  <michael.collison@linaro.org
12855             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12857         * config/arm/arm.md (*arm_smin_cmp): New pattern.
12858         (*arm_umin_cmp): Likewise.
12860 2015-08-01  Caroline Tice  <cmtice@google.com>
12862         PR 66521
12863         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
12864         global variables.
12865         (vtbl_find_mangled_name):  New function.
12866         (vtbl_register_mangled_name):  New function.
12867         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
12868         mangled name in mangled name vectors.
12869         (find_or_create_vtbl_map_node):  Ditto.
12870         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
12871         update recursion_depth on function entry; pass it to every recursive
12872         call; automatically exit if depth > 25 (give up looking at that point).
12873         (verify_bb_vtables):  Initialize recursion_depth and pass it to
12874         var_is_used_for_virtual_call_p.
12875         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
12876         global variable decls.
12877         (vtbl_register_mangled_name): New extern function decl.
12879 2015-08-01  Tom de Vries  <tom@codesourcery.com>
12881         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
12882         function.
12883         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
12884         Declare.
12885         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
12886         operation_no_trapping_overflow.  Allow non-overflow operations.
12887         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
12888         operations.
12890 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
12892         PR target/67049
12893         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
12895 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12897         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
12898         Enable for TARGET_32BIT.
12899         (*if_move_neg): Likewise.
12901 2015-07-31  Nick Clifton  <nickc@redhat.com>
12903         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
12904         Returns true for __model__.
12905         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12907 2015-07-31  Alan Modra  <amodra@gmail.com>
12909         PR target/66870
12910         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
12911         (rs6000_emit_prologue): Set it.
12912         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
12914 2015-07-31  Richard Biener  <rguenther@suse.de>
12916         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
12917         -> X == (C1 ^ C2) which is already implemented in match.pd.
12918         Remove redundant dispatching to fold_relational_const.
12919         Move unordered self and NaN compares ...
12920         * match.pd: ... as patterns here.  Remove some stray captures
12921         and add a comment.
12923 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
12925         * config/i386/i386.c
12926         (bdesc_special_args): Convert mask type from signed to unsigned for
12927         masked builtins.
12928         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
12929         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
12930         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
12931         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
12932         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
12933         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
12934         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
12935         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
12936         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
12937         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
12938         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
12939         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
12940         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
12941         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
12942         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
12943         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
12944         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
12945         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
12946         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
12947         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
12948         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
12949         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
12950         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
12951         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
12952         * config/i386/i386-builtin-types.def
12953         (V16QI_FTYPE_V16SI): Remove.
12954         (V8DF_FTYPE_V8SI): Ditto.
12955         (V8HI_FTYPE_V8DI): Ditto.
12956         (V8SI_FTYPE_V8DI): Ditto.
12957         (V8SF_FTYPE_V8DF): Ditto.
12958         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
12959         (V16HI_FTYPE_V16SI): Ditto.
12960         (V16SF_FTYPE_V16HI): Ditto.
12961         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
12962         (V16SF_FTYPE_V16SI): Ditto.
12963         (V4DI_FTYPE_V4DI): Ditto.
12964         (V16SI_FTYPE_V16SF): Ditto.
12965         (V16SF_FTYPE_FLOAT): Ditto.
12966         (V8DF_FTYPE_DOUBLE): Ditto.
12967         (V8DI_FTYPE_INT64): Ditto.
12968         (V8DI_FTYPE_V4DI): Ditto.
12969         (V16QI_FTYPE_V8DI): Ditto.
12970         (UINT_FTYPE_V4SF): Ditto.
12971         (UINT64_FTYPE_V4SF): Ditto.
12972         (UINT_FTYPE_V2DF): Ditto.
12973         (UINT64_FTYPE_V2DF): Ditto.
12974         (V16SI_FTYPE_V16SI): Ditto.
12975         (V8DI_FTYPE_V8DI): Ditto.
12976         (V16SI_FTYPE_PV4SI): Ditto.
12977         (V16SF_FTYPE_PV4SF): Ditto.
12978         (V8DI_FTYPE_PV2DI): Ditto.
12979         (V8DF_FTYPE_PV2DF): Ditto.
12980         (V4DI_FTYPE_PV2DI): Ditto.
12981         (V4DF_FTYPE_PV2DF): Ditto.
12982         (V16SI_FTYPE_PV2SI): Ditto.
12983         (V16SF_FTYPE_PV2SF): Ditto.
12984         (V8DI_FTYPE_PV4DI): Ditto.
12985         (V8DF_FTYPE_PV4DF): Ditto.
12986         (V8SF_FTYPE_FLOAT): Ditto.
12987         (V4SF_FTYPE_FLOAT): Ditto.
12988         (V4DF_FTYPE_DOUBLE): Ditto.
12989         (V8SF_FTYPE_PV4SF): Ditto.
12990         (V8SI_FTYPE_PV4SI): Ditto.
12991         (V4SI_FTYPE_PV2SI): Ditto.
12992         (V8SF_FTYPE_PV2SF): Ditto.
12993         (V8SI_FTYPE_PV2SI): Ditto.
12994         (V16SF_FTYPE_PV8SF): Ditto.
12995         (V16SI_FTYPE_PV8SI): Ditto.
12996         (V8DI_FTYPE_V8SF): Ditto.
12997         (V4DI_FTYPE_V4SF): Ditto.
12998         (V2DI_FTYPE_V4SF): Ditto.
12999         (V64QI_FTYPE_QI): Ditto.
13000         (V32HI_FTYPE_HI): Ditto.
13001         (V8UHI_FTYPE_V8UHI): Ditto.
13002         (V16UHI_FTYPE_V16UHI): Ditto.
13003         (V32UHI_FTYPE_V32UHI): Ditto.
13004         (V2UDI_FTYPE_V2UDI): Ditto.
13005         (V4UDI_FTYPE_V4UDI): Ditto.
13006         (V8UDI_FTYPE_V8UDI): Ditto.
13007         (V4USI_FTYPE_V4USI): Ditto.
13008         (V8USI_FTYPE_V8USI): Ditto.
13009         (V16USI_FTYPE_V16USI): Ditto.
13010         (V2DF_FTYPE_V2DF_UINT64): Ditto.
13011         (V2DI_FTYPE_V2DF_V2DF): Ditto.
13012         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13013         (V8DF_FTYPE_V8DF_V8DI): Ditto.
13014         (V4SF_FTYPE_V4SF_UINT64): Ditto.
13015         (V4SI_FTYPE_V4SF_V4SF): Ditto.
13016         (V16SF_FTYPE_V16SF_V16SI): Ditto.
13017         (V64QI_FTYPE_V32HI_V32HI): Ditto.
13018         (V32HI_FTYPE_V16SI_V16SI): Ditto.
13019         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13020         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13021         (V32HI_FTYPE_V64QI_V64QI): Ditto.
13022         (V32HI_FTYPE_V32HI_V32HI): Ditto.
13023         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13024         (V16SI_FTYPE_V16SI_V4SI): Ditto.
13025         (V16SI_FTYPE_V16SI_V16SI): Ditto.
13026         (V16SI_FTYPE_V32HI_V32HI): Ditto.
13027         (V16SI_FTYPE_V16SI_SI): Ditto.
13028         (V8DI_FTYPE_V8DI_V8DI): Ditto.
13029         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13030         (V8DI_FTYPE_V16SI_V16SI): Ditto.
13031         (V8DI_FTYPE_V8DI_V2DI): Ditto.
13032         (QI_FTYPE_QI): Ditto.
13033         (SI_FTYPE_SI): Ditto.
13034         (DI_FTYPE_DI): Ditto.
13035         (QI_FTYPE_QI_QI): Ditto.
13036         (QI_FTYPE_QI_INT): Ditto.
13037         (HI_FTYPE_HI_INT): Ditto.
13038         (SI_FTYPE_SI_INT): Ditto.
13039         (DI_FTYPE_DI_INT): Ditto.
13040         (HI_FTYPE_V16QI_V16QI): Ditto.
13041         (SI_FTYPE_V32QI_V32QI): Ditto.
13042         (DI_FTYPE_V64QI_V64QI): Ditto.
13043         (QI_FTYPE_V8HI_V8HI): Ditto.
13044         (HI_FTYPE_V16HI_V16HI): Ditto.
13045         (SI_FTYPE_V32HI_V32HI): Ditto.
13046         (QI_FTYPE_V4SI_V4SI): Ditto.
13047         (QI_FTYPE_V8SI_V8SI): Ditto.
13048         (QI_FTYPE_V2DI_V2DI): Ditto.
13049         (QI_FTYPE_V4DI_V4DI): Ditto.
13050         (QI_FTYPE_V8DI_V8DI): Ditto.
13051         (HI_FTYPE_V16SI_V16SI): Ditto.
13052         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13053         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13054         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13055         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13056         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13057         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13058         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13059         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13060         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13061         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13062         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13063         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13064         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13065         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13066         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13067         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13068         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13069         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13070         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13071         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13072         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13073         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13074         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13075         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13076         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13077         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13078         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13079         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13080         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13081         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13082         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13083         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13084         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13085         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13086         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13087         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13088         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13089         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13090         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13091         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13092         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13093         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13094         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13095         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13096         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13097         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13098         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13099         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13100         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13101         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13102         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13103         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13104         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13105         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13106         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13107         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13108         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13109         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13110         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13111         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13112         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13113         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13114         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13115         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13116         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13117         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13118         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13119         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13120         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13121         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13122         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13123         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13124         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13125         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13126         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13127         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13128         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13129         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13130         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13131         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13132         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13133         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13134         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13135         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13136         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13137         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13138         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13139         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13140         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13141         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13142         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13143         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13144         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13145         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13146         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13147         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13148         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13149         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13150         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13151         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13152         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13153         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13154         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13155         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13156         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13157         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13158         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13159         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13160         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13161         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13162         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13163         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13164         (HI_FTYPE_HI): Ditto.
13165         (HI_FTYPE_V16QI): Ditto.
13166         (SI_FTYPE_V32QI): Ditto.
13167         (DI_FTYPE_V64QI): Ditto.
13168         (QI_FTYPE_V8HI): Ditto.
13169         (HI_FTYPE_V16HI): Ditto.
13170         (SI_FTYPE_V32HI): Ditto.
13171         (QI_FTYPE_V4SI): Ditto.
13172         (QI_FTYPE_V8SI): Ditto.
13173         (HI_FTYPE_V16SI): Ditto.
13174         (QI_FTYPE_V2DI): Ditto.
13175         (QI_FTYPE_V4DI): Ditto.
13176         (QI_FTYPE_V8DI): Ditto.
13177         (V16QI_FTYPE_HI): Ditto.
13178         (V32QI_FTYPE_SI): Ditto.
13179         (V64QI_FTYPE_DI): Ditto.
13180         (V8HI_FTYPE_QI): Ditto.
13181         (V16HI_FTYPE_HI): Ditto.
13182         (V32HI_FTYPE_SI): Ditto.
13183         (V4SI_FTYPE_QI): Ditto.
13184         (V4SI_FTYPE_HI): Ditto.
13185         (V8SI_FTYPE_QI): Ditto.
13186         (V8SI_FTYPE_HI): Ditto.
13187         (V2DI_FTYPE_QI): Ditto.
13188         (V4DI_FTYPE_QI): Ditto.
13189         (HI_FTYPE_HI_HI): Ditto.
13190         (SI_FTYPE_SI_SI): Ditto.
13191         (DI_FTYPE_DI_DI): Ditto.
13192         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13193         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13194         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13195         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13196         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13197         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13198         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13199         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13200         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13201         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13202         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13203         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13204         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13205         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13206         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13207         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13208         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13209         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13210         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13211         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13212         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13213         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13214         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13215         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13216         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13217         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13218         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13219         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13220         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13221         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13222         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13223         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13224         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13225         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13226         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13227         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13228         (V16SI_FTYPE_HI): Ditto.
13229         (V8DI_FTYPE_QI): Ditto.
13230         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13231         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13232         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13233         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13234         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13235         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13236         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13237         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13238         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13239         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13240         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13241         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13242         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13243         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13244         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13245         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13246         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13247         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13248         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13249         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13250         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13251         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13252         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13253         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13254         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13255         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13256         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13257         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13258         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13259         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13260         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13261         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13262         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13263         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13264         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13265         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13266         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13267         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13268         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13269         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13270         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13271         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13272         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13273         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13274         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13275         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13276         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13277         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13278         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13279         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13280         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13281         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13282         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13283         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13284         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13285         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13286         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13287         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13288         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13289         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13290         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13291         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13292         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13293         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13294         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13295         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13296         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13297         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13298         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13299         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13300         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13301         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13302         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13303         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13304         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13305         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13306         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13307         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13308         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13309         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13310         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13311         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13312         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13313         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13314         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13315         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13316         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13317         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13318         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13319         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13320         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13321         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13322         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13323         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13324         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13325         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13326         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13327         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13328         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13329         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13330         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13331         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13332         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13333         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13334         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13335         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13336         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13337         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13338         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13339         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13340         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13341         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13342         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13343         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13344         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13345         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13346         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13347         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13348         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13349         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13350         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13351         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13352         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13353         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13354         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13355         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13356         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13357         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13358         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13359         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13360         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13361         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13362         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13363         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13364         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13365         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13366         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13367         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13368         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13369         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13370         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13371         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13372         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13373         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13374         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13375         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13376         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13377         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13378         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13379         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13380         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13381         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13382         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13383         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13384         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13385         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13386         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13387         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13388         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13389         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13390         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13391         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13392         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13393         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13394         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13395         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13396         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13397         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13398         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13399         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13400         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13401         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13402         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13403         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13404         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13405         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13406         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13407         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13408         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13409         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13410         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13411         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13412         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13413         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13414         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13415         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13416         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13417         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13418         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13419         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13420         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13421         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13422         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13423         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13424         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13425         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13426         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13427         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13428         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13429         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13430         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13431         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13432         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13433         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13434         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13435         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13436         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13437         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13438         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13439         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13440         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13441         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
13442         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
13443         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
13444         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
13445         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
13446         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
13447         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
13448         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
13449         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
13450         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
13451         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
13452         (QI_FTYPE_V8DF_INT_QI): Ditto.
13453         (QI_FTYPE_V4DF_INT_QI): Ditto.
13454         (QI_FTYPE_V2DF_INT_QI): Ditto.
13455         (HI_FTYPE_V16SF_INT_HI): Ditto.
13456         (QI_FTYPE_V8SF_INT_QI): Ditto.
13457         (QI_FTYPE_V4SF_INT_QI): Ditto.
13458         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
13460 2015-07-31  Richard Biener  <rguenther@suse.de>
13462         * gimple-fold.c (fold_gimple_assign): Remove folding of
13463         GIMPLE_BINARY_RHS.
13465 2015-07-31  Tom de Vries  <tom@codesourcery.com>
13467         PR tree-optimization/66846
13468         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
13469         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
13470         (expand_omp_target) [ENABLE_CHECKING]: Same.
13471         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
13472         cfun if !LOOPS_NEED_FIXUP.
13473         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
13474         that omp_for already has its own loop struct.
13475         * tree-parloops.c (create_phi_for_local_result)
13476         (create_call_for_reduction): Handle simple latch bb.
13477         (create_parallel_loop): Add simple latch bb to preserve
13478         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
13479         (gen_parallel_loop): Remove call to cancel_loop_tree.
13480         (parallelize_loops): Skip loops that are inner loops of parallelized
13481         loops.
13482         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
13483         verify_loop_structure.
13485 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
13487         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
13488         * config/v850/v850.md (RV_REGNUM): New constants.
13489         * config/v850/v850.c (v850_libcall_value): New functions.
13490         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
13491         (TARGET_LIBCALL_VALUE): Define.
13493 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
13495         * rtl.h (lowpart_subreg): Move in file.
13496         * loop-iv.c (lowpart_subreg): Move to...
13497         * simplify-rtx.c (lowpart_subreg): ...here.
13498           (simplify_binary_operation_1): Use lowpart_subreg instead of
13499           simplify_gen_subreg.
13500         * expr.c (expand_expr_real_2): Ditto.
13501         * emit-rtl.c (gen_lowpart_common): Ditto.
13502         * combine.c (gen_lowpart_for_combine): Ditto.
13503         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
13504           expand_debug_source_expr): Ditto.
13506 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
13508         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
13509         (expand_builtin_atomic_clear): Remove support for atomic_clear
13510         pattern.
13512 2015-07-30  Richard Biener  <rguenther@suse.de>
13514         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
13515         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
13516         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
13517         redundant operand canonicalization.
13519 2015-07-30  David Sherwood  <david.sherwood@arm.com>
13521         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
13522         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
13523         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
13524         * config/arm/arm.c (neon_valid_immediate): Likewise.
13525         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
13526         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
13527         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
13528         (expand_vec_perm_vpshufb2_vpermq): Likewise.
13529         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
13530         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
13531         * config/i386/sse.md
13532         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
13533         (*ssse3_palignr<mode>_perm): Likewise.
13534         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
13535         * config/spu/spu.c (arith_immediate_p): Likewise.
13536         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13537         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
13539 2015-07-30  Richard Biener  <rguenther@suse.de>
13541         * genmatch.c (decision_tree::gen_gimple): Merge with ...
13542         (decision_tree::gen_generic): ... this into ...
13543         (decision_tree::gen): ... this.
13544         (main): Adjust callers.
13546 2015-07-30  Richard Biener  <rguenther@suse.de>
13548         * genmatch.c (verbose): New global.
13549         (warning_at): Add overload with source_location.
13550         (capture_info::capture_info): Add bool whether generating gimple
13551         or generic.  Add gimple member.
13552         (capture_info::cinfo): Add capture member.
13553         (capture_info::walk_match): Record capture.  Warn on
13554         non-captured leafs.
13555         (capture_info::walk_c_expr): Add more fragments captures cannot
13556         escape through.  Warn on escaped captures.
13557         (dt_simplify::gen_1): Warn on operands we force to have no
13558         side-effects.
13559         (main): Initialize verbose.
13560         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
13562 2015-07-30  Richard Biener  <rguenther@suse.de>
13564         PR middle-end/67053
13565         * match.pd: Allow both operands to independently have conversion
13566         when simplifying compares of addresses.
13568 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
13570         PR target/66217
13571         PR target/67045
13572         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
13573         around those cases that need one.
13575 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
13577         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
13579 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13581         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
13582         New.  Copied from config/i386/gnu-user.h.
13583         (ASM_COMMENT_START): Likewise.
13584         (DBX_REGISTER_NUMBER): Likewise.
13586 2015-07-29  Richard Biener  <rguenther@suse.de>
13588         * gimple-fold.c (fold_gimple_cond): Remove.
13589         (fold_stmt_1): Do not call it.
13591 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
13593         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
13594         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
13596         * config/aarch64/aarch64-modes.def: Add HFmode.
13598         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13599         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
13601         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
13602         aarch64_promoted_type): New.
13604         (aarch64_float_const_representable_p): Disable HFmode.
13605         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
13606         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
13607         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
13609         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
13610         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
13612         * config/aarch64/iterators.md (GPF_F16): New.
13614 2015-07-29  Richard Biener  <rguenther@suse.de>
13616         * match.pd: Merge address comparison patterns and make them
13617         handle some more cases.
13619 2015-07-29  Richard Biener  <rguenther@suse.de>
13621         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
13622         (parser::parse_capture): Add bool argument on whether to reject
13623         unknown captures.
13624         (parser::parse_expr): Adjust.
13625         (parser::parse_op): Likewise.
13626         (parser::parse_pattern): Likewise.
13628 2015-07-29  Richard Biener  <rguenther@suse.de>
13630         * gimple-fold.c (has_use_on_stmt): New function.
13631         (replace_stmt_with_simplification): Use it to allow
13632         abnormals originally referenced in the stmt.
13633         (fold_stmt_1): Canonicalize operand order.
13635 2015-07-28  David Sherwood  <david.sherwood@arm.com>
13637         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
13638         GET_MODE_INNER unconditionally.
13639         * config/spu/spu.c (arith_immediate_p): Likewise.
13640         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
13641         * expmed.c (synth_mult): Remove check for VOIDmode result from
13642         GET_MODE_INNER.
13643         (expand_mult_const): Likewise.
13644         * fold-const.c (fold_binary_loc): Replace call to element_precision
13645         with call to GET_MODE_PRECISION.
13646         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
13647         m->name.
13648         (emit_mode_inner): Likewise.
13649         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
13650         result check.
13651         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
13652         (GET_MODE_UNIT_PRECISION): Likewise.
13653         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
13654         * simplify-rtx.c (simplify_immed_subreg): Likewise.
13655         * stor-layout.c (bitwise_type_for_mode): Update assert.
13656         (element_precision): Remove.
13658 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13660         * target-insns.def (reload_load_address): New targetm instruction
13661         pattern.
13662         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
13664 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13666         * target-insns.def (atomic_test_and_set): New targetm instruction
13667         pattern.
13668         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
13669         HAVE_*/gen_* interface.
13671 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13673         * target-insns.def (can_extend, ptr_extend): New targetm instruction
13674         patterns.
13675         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
13676         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13677         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13678         * rtlanal.c (nonzero_bits1): Likewise.
13679         (num_sign_bit_copies1): Likewise.
13681 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13683         * target-insns.def (eh_return): New targetm instruction pattern.
13684         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
13685         interface.
13686         * function.c (thread_prologue_and_epilogue_insns): Remove
13687         preprocessor condition.
13689 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13691         * target-insns.def (indirect_jump): New targetm instruction pattern.
13692         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
13693         interface.
13695 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13697         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
13698         instead of nonimmediate_operand.  Remove C condiition.
13700 2015-07-28  Richard Biener  <rguenther@suse.de>
13702         * match.pd: Add more simplification of address comparisons.
13704 2015-07-28  Richard Biener  <rguenther@suse.de>
13706         * match.pd: Re-order two cases in comparison with max/min
13707         value simplification to make it apply for bools.
13709 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13711         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
13712         Handle simple SIGN_EXTEND or ZERO_EXTEND.
13713         (aarch64_rtx_costs): Properly strip extend or extract before
13714         passing down to rtx costs again.
13716 2015-07-28  Nick Clifton  <nickc@redhat.com>
13718         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
13719         Optimizes the case where -mes0 is active and a constant symbolic
13720         address is used.
13721         * config/rl78/rl78-protos.h: Prototype the new function.
13722         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
13724 2015-07-28  Tom de Vries  <tom@codesourcery.com>
13726         * tree-parloops.c (reduc_stmt_res): New function.
13727         (initialize_reductions, add_field_for_reduction)
13728         (create_phi_for_local_result, create_loads_for_reductions)
13729         (create_stores_for_reduction, build_new_reduction): Handle case that
13730         reduc_stmt is a phi.
13731         (gather_scalar_reductions): Allow double_reduc reductions.
13733 2015-07-28  Richard Biener  <rguenther@suse.de>
13735         * fold-const.c (fold_comparison): Remove equality folding
13736         of decl addresses ...
13737         * match.pd: ... here and merge with existing pattern.
13739 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13741         PR tree-optimization/66828
13742         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
13743         from int64_t to uint64_t.
13745 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13747         * opts-common.c (read_cmdline_option): List DriverOnly enum values
13748         as valid only in the error message of the driver, not in the
13749         messages of the language compilers.
13751 2015-07-27  Tom de Vries  <tom@codesourcery.com>
13753         * tree-parloops.c (gather_scalar_reductions): Simplify function
13754         structure.
13756 2015-07-27  Marek Polacek  <polacek@redhat.com>
13758         * ipa-devirt.c (types_same_for_odr): Fix typo.
13760 2015-07-27  Jason Merrill  <jason@redhat.com>
13762         PR debug/66468
13763         * dwarf2out.c (gen_inlined_subroutine_die): Check
13764         cgraph_function_possibly_inlined_p.
13766 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
13768         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
13769         Place integer variant first.
13770         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13772 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
13774         PR/63870
13775         * config/arm/arm-builtins.c (enum arm_builtins):
13776         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
13777         (ARM_BUILTIN_NEON_BASE): Rename macro to....
13778         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
13779         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
13780         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
13782 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
13784         PR/63870
13785         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
13786         Add qualifier_lane_index.
13787         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
13788         (arm_getlane_qualifiers): Use qualifier_lane_index.
13789         (arm_lanemac_qualifiers): Rename to...
13790         (arm_mac_n_qualifiers): ...this.
13791         (LANEMAC_QUALIFIERS): Rename to...
13792         (MAC_N_QUALIFIERS): ...this.
13793         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
13794         (arm_setlane_qualifiers): Use qualifier_lane_index.
13795         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
13796         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
13797         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
13798         (arm_expand_neon_builtin): Handle qualifier_lane_index.
13800         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
13801         * config/arm/arm.c (bounds_check): Likewise, improve error message.
13802         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
13803         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
13804         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
13805         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
13806         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
13807         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
13808         qualifiers to TERNOP_IMM.
13809         (vdup_lane): Change qualifiers to GETLANE.
13810         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
13811         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
13812         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
13813         vqdmlsl_n): Change qualifiers to MAC_N.
13815         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
13816         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
13817         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
13818         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
13819         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
13820         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
13821         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
13822         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
13823         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
13824         Remove call to neon_lane_bounds.
13826 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
13828         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13829         Place integer variant first.
13831 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
13833         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
13834         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
13835         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
13836         for armv6kz targets.
13837         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
13838         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
13839         (FL_FOR_ARCH6ZK): Remove.
13840         (FL_FOR_ARCH6KZ): New.
13841         (arm_arch6zk): New declaration.
13842         * config/arm/arm-tables.opt: Regenerate.
13843         * config/arm/arm.c (arm_arch6kz): New.
13844         (arm_option_override): Set arm_arch6kz.
13845         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
13846         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
13847         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
13849 2015-07-27  Marek Polacek  <polacek@redhat.com>
13851         PR c++/66555
13852         PR c/54979
13853         * doc/invoke.texi: Document -Wtautological-compare.
13855 2015-07-27  Richard Biener  <rguenther@suse.de>
13857         * genmatch.c (decision_tree::gen_gimple): Split out large
13858         subtrees into separate functions.
13859         (decision_tree::gen_generic): Likewise.
13861 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
13863         * config/alpha/alpha.c: Use SUBREG_P predicate.
13864         * config/alpha/predicates.md: Ditto.
13866 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13868         * config.host (s390*-*-*): Include driver-native.c only when
13869         building with s390* as host *and* target.
13871 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
13873         PR target/66930
13874         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
13875         T bit register modified_between_p check.
13877 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
13879         * config/i386/i386.c: Use SUBREG_P predicate.
13880         * config/i386/i386.md: Ditto.
13881         * config/i386/sse.md: Ditto.
13882         * config/i386/predicates.md: Ditto.
13884 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
13886         PR target/67004
13887         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
13888         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
13890 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
13892         * Makefile.in: Remove use of TREEBROWSER.
13893         * config.in: Regenerated.
13894         * configure: Regenerated.
13895         * configure.ac: Remove definition of TREEBROWSER.
13896         * tree-browser.c: Removed.
13897         * tree-browser.def: Removed.
13899 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
13901         * graphite-scop-detection.c: Include gimple-pretty-print.h.
13902         (stmt_simple_for_scop_p): Print when a stmt is not handled in
13903         Graphite.
13904         (scopdet_basic_block_info): Print when a loop or bb cannot be
13905         represented in Graphite.
13907 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
13909         PR target/66648
13910         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
13911         execution guard when min_size is less than size_needed.
13913 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
13915         * doc/install.texi: Document supported versions of ISL.
13917 2015-07-25  Jeff Law  <law@redhat.com>
13919         Revert:
13920         PR lto/66752
13921         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13922         unable to find X NE 0 in the tables, return X as the simplified
13923         condition.
13924         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13925         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13926         to VISISTED_BBS.  */
13927         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13928         after removing the control flow statement and unnecessary edges.
13930 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
13932         Revert:
13933         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
13935         PR rtl-optimization/64164
13936         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13937         * tree-ssa-copyrename.c: Removed.
13938         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13939         -ftree-coalesce-vars.
13940         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13941         * common.opt (ftree-copyrename): Ignore.
13942         (ftree-coalesce-inlined-vars): Likewise.
13943         * doc/invoke.texi: Remove the ignored options above.
13944         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13945         * tree-ssa-coalesce.h: ... here.
13946         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13947         headers required by it.
13948         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13949         across variables when flag_tree_coalesce_vars.  Check register
13950         use and promoted modes to allow coalescing.  Moved to
13951         tree-ssa-coalesce.c.
13952         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13953         with its member functions to tree-ssa-coalesce.c.
13954         (var_map_base_init): Likewise.  Renamed to
13955         compute_samebase_partition_bases.
13956         (partition_view_normal): Drop want_bases parameter.
13957         (partition_view_bitmap): Likewise.
13958         * tree-ssa-live.h: Adjust declarations.
13959         * tree-ssa-coalesce.c: Include explow.h.
13960         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13961         default defs at the entry point.
13962         (dump_part_var_map): New.
13963         (compute_optimized_partition_bases): New, called by...
13964         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13965         of compute_samebase_partition_bases.  Adjust.
13966         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13967         * cfgexpand.c (leader_merge): New.
13968         (get_rtl_for_parm_ssa_default_def): New.
13969         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13970         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13971         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13972         redundant MEM attr setting.
13973         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13974         from...
13975         (expand_one_stack_var): ... this.  New wrapper to check and
13976         skip already expanded SSA partitions.
13977         (record_alignment_for_reg_var): New, factored out of...
13978         (expand_one_var): ... this.
13979         (expand_one_ssa_partition): New.
13980         (adjust_one_expanded_partition_var): New.
13981         (expand_one_register_var): Check and skip already expanded SSA
13982         partitions.
13983         (expand_used_vars): Don't create DECLs for anonymous SSA
13984         names.  Expand all SSA partitions, then adjust all SSA names.
13985         (pass::execute): Replace the loops that set
13986         SA.partition_to_pseudo from partition leaders and cleared
13987         DECL_RTL for multi-location variables, and that which used to
13988         rename vars and set attrs, with one that clears DECL_RTL and
13989         checks that PARMs and RESULTs default_defs match DECL_RTL.
13990         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13991         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13992         * explow.c (promote_ssa_mode): New.
13993         * explow.h (promote_ssa_mode): Declare.
13994         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13995         * function.c: Include cfgexpand.h.
13996         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13997         (use_register_for_parm_decl): Wrapper for the above to
13998         special-case the result_ptr.
13999         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14000         (split_complex_args): Take assign_parm_data_all argument.
14001         Pass it to rtl_for_parm.  Set up rtl and context for split
14002         args.
14003         (assign_parms_augmented_arg_list): Adjust.
14004         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14005         multiple locations.  Recognize split complex args.
14006         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14007         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14008         (assign_parm_setup_block): Prefer SSA-assigned location.
14009         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14010         if stack_parm is NULL.
14011         (assign_parm_setup_stack): Prefer SSA-assigned location.
14012         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14013         rtl before testing for pointer bounds.  Special-case result_ptr.
14014         (expand_function_start): Maybe reset DECL_RTL of result.
14015         Prefer SSA-assigned location for result and static chain.
14016         Factor out DECL_RESULT and SET_DECL_RTL.
14017         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14018         anonymous SSA names.  Use promote_ssa_mode.
14019         (get_temp_reg): Likewise.
14020         (remove_ssa_form): Adjust.
14021         * stor-layout.c (layout_decl): Don't set mem attributes of
14022         non-MEMs.
14023         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14024         and get its reg_usage for reg invalidation.
14025         (compute_bb_dataflow): Pass it insn.
14026         (emit_notes_in_bb): Likewise.
14028 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14030         * config/i386/i386.c (ix86_va_start): Remove
14031         unneeded !TARGET_64BIT check.
14032         (ix86_gimplify_va_arg): Ditto.
14034 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14036         * graphite-sese-to-poly.c (build_poly_scop): Always call
14037         rewrite_commutative_reductions_out_of_ssa.
14039 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14041         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14042         flag_associative_math to FLOAT_TYPE_P.  Honour
14043         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14045 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14047         PR c++/64079
14048         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14049         and "%qD" in warning_at instead of "%q+D" in warning.
14051 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14053         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14054         (ix86_function_abi): Cleanup.
14056 2015-07-24  Michael Darling  <darlingm@gmail.com>
14058         PR other/66259
14059         * acinclude.m4: Reflects renaming of configure.in to configure.ac
14060         * configure: Likewise
14061         * configure.ac: Likewise
14062         * doc/install.texi: Likewise
14063         * doc/tm.texi: Likewise
14064         * doc/tm.texi.in: Likewise
14066 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14068         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14069         manually swapping values.
14070         * cse.c (fold_rtx): Likewise.
14071         * lra-eliminations.c (form_sum): Likewise.
14073 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14075         PR target/64003
14076         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14077         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14078         (*jcc_1, *jcc_2, jump, simple_return_internal)
14079         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14080         Set length_nobnd attribute instead of length attribute.
14081         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14082         (length_nobnd): Remove attribute.
14083         (length): Remove length_nobnd processing.
14085 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
14087         * gimplify.c (omp_default_clause): New function.  Reorganize flow
14088         for clarity. Broken out of ...
14089         (omp_notice_variable): ... here.
14091 2015-07-24  Gary Funck  <gary@intrepid.com>
14093         PR middle-end/66984
14094         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14095         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14097 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14099         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14100         exit-first loop transform.
14102 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14104         PR 66714
14105         * tree-cfg.c (struct replace_decls_d): New struct.
14106         (replace_block_vars_by_duplicates_1): New function.
14107         (replace_block_vars_by_duplicates): Use it to replace the decls
14108         in the value exprs by duplicates.
14110 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14112         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14113         -shared, -symbolic, -rdynamic.
14115 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14117         PR target/65711
14118         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14119         -dynamic-linker within %{!static %{!shared, and -rdynamic within
14120         %{!static.
14122 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
14124         PR ipa/66566
14125         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14126         edge summary is available.
14128 2015-07-24  Richard Biener  <rguenther@suse.de>
14130         * genmatch.c (struct dt_node): Add statistic fields.
14131         (dt_node::analyze): New method.
14132         (decision_tree::gen_gimple): Call analyze on the root node
14133         and print statistics to stderr.
14134         (decision_tree::gen_generic): Likewise.
14136 2015-07-24  Richard Biener  <rguenther@suse.de>
14138         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14139         against the highest or lowest possible integer ...
14140         * match.pd: ... as patterns here.
14142 2015-07-24  Richard Biener  <rguenther@suse.de>
14144         * genmatch.c (struct capture_info): Add same_as field.
14145         (capture_info::capture_info): Initialize same_as.
14146         (capture_info::walk_match): Compute same_as.
14147         (capture_info::walk_result): Compute stuff for the leader.
14148         (capture_info::walk_c_expr): Likewise.
14149         (dt_simplify::gen_1): Only look at leaders when deciding
14150         to force no side-effects or emit side-effects of omitted operands.
14152 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14154         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14155         reg note to the GPR -> FPR save instructions.
14157 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14159         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14160         cheaper.
14161         (s390_expand_insv): Don't generate risbg pattern for constant zero
14162         sources.
14163         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14164         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
14165         splitters.
14167 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14169         * config/s390/s390.c (s390_reorg): Clean up handling of processors
14170         with
14171         -mtune=
14172         (s390_issue_rate): Likewise.
14173         (s390_sched_reorder): Likewise.
14174         (s390_sched_variable_issue): Likewise.
14175         (s390_loop_unroll_adjust): Likewise.
14176         (s390_option_override):  Likewise.
14178 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14180         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14181         processor capabilities with -march=native.
14182         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14183         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
14184         (S390_TARGET_BITS_STRING): Macro to simplify specs.
14186 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14188         * config/s390/s390.c (s390_issue_rate): Handle
14189         PROCESSOR_2094_Z9_EC.
14190         (s390_option_override): Likewise.
14191         (s390_adjust_priority): Likewise.
14193 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14195         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14196         when cross compiling.
14198 2015-07-24  Richard Biener  <rguenther@suse.de>
14200         * fold-const.c (maybe_canonicalize_comparison_1): Move
14201         A code CST canonicalization ...
14202         * match.pd: ... to a pattern here.
14204 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
14206         Revert:
14207         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
14208         PR target/63521
14209         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14210         (HONOR_REG_ALLOC_ORDER): Define.
14212 2015-07-24  Richard Biener  <rguenther@suse.de>
14214         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14215         * fold-const.c (fold_comparison): Move parameter does not
14216         alias &local simplification ...
14217         * match.pd: ... as a pattern here.
14219 2015-07-24  Richard Biener  <rguenther@suse.de>
14221         * gimple-fold.c (replace_stmt_with_simplification): Special-case
14222         valueizing call operands.
14223         * gimple-match-head.c (maybe_push_res_to_seq): Take
14224         number of call arguments from ops array.
14225         (do_valueize): New function.
14226         (gimple_simplify): Return true if valueization changed
14227         any operand even if the result didn't simplify further.
14229 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14231         PR middle-end/25530
14232         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14234 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14236         PR middle-end/25529
14237         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14239 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14241         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14242         instruction.
14244 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14246         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14247         clean up.
14249 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
14251         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14252         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
14253         targets here.
14254         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14255         ms_va_list_type_node initialization.
14257 2015-07-23  Jeff Law  <law@redhat.com>
14259         PR lto/66752
14260         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14261         unable to find X NE 0 in the tables, return X as the simplified
14262         condition.
14263         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14264         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14265         to VISISTED_BBS.  */
14266         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14267         after removing the control flow statement and unnecessary edges.
14269 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14271         * tree-pass.h (get_current_pass_name): Removed.
14273 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
14275         PR rtl-optimization/64164
14276         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14277         * tree-ssa-copyrename.c: Removed.
14278         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14279         -ftree-coalesce-vars.
14280         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14281         * common.opt (ftree-copyrename): Ignore.
14282         (ftree-coalesce-inlined-vars): Likewise.
14283         * doc/invoke.texi: Remove the ignored options above.
14284         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14285         * tree-ssa-coalesce.h: ... here.
14286         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14287         headers required by it.
14288         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14289         across variables when flag_tree_coalesce_vars.  Check register
14290         use and promoted modes to allow coalescing.  Moved to
14291         tree-ssa-coalesce.c.
14292         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14293         with its member functions to tree-ssa-coalesce.c.
14294         (var_map_base_init): Likewise.  Renamed to
14295         compute_samebase_partition_bases.
14296         (partition_view_normal): Drop want_bases parameter.
14297         (partition_view_bitmap): Likewise.
14298         * tree-ssa-live.h: Adjust declarations.
14299         * tree-ssa-coalesce.c: Include explow.h.
14300         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14301         default defs at the entry point.
14302         (dump_part_var_map): New.
14303         (compute_optimized_partition_bases): New, called by...
14304         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14305         of compute_samebase_partition_bases.  Adjust.
14306         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14307         * cfgexpand.c (leader_merge): New.
14308         (get_rtl_for_parm_ssa_default_def): New.
14309         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14310         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14311         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14312         redundant MEM attr setting.
14313         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14314         from...
14315         (expand_one_stack_var): ... this.  New wrapper to check and
14316         skip already expanded SSA partitions.
14317         (record_alignment_for_reg_var): New, factored out of...
14318         (expand_one_var): ... this.
14319         (expand_one_ssa_partition): New.
14320         (adjust_one_expanded_partition_var): New.
14321         (expand_one_register_var): Check and skip already expanded SSA
14322         partitions.
14323         (expand_used_vars): Don't create DECLs for anonymous SSA
14324         names.  Expand all SSA partitions, then adjust all SSA names.
14325         (pass::execute): Replace the loops that set
14326         SA.partition_to_pseudo from partition leaders and cleared
14327         DECL_RTL for multi-location variables, and that which used to
14328         rename vars and set attrs, with one that clears DECL_RTL and
14329         checks that PARMs and RESULTs default_defs match DECL_RTL.
14330         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14331         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14332         * explow.c (promote_ssa_mode): New.
14333         * explow.h (promote_ssa_mode): Declare.
14334         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14335         * function.c: Include cfgexpand.h.
14336         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14337         (use_register_for_parm_decl): Wrapper for the above to
14338         special-case the result_ptr.
14339         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14340         (split_complex_args): Take assign_parm_data_all argument.
14341         Pass it to rtl_for_parm.  Set up rtl and context for split
14342         args.
14343         (assign_parms_augmented_arg_list): Adjust.
14344         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14345         multiple locations.  Recognize split complex args.
14346         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14347         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14348         (assign_parm_setup_block): Prefer SSA-assigned location.
14349         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14350         if stack_parm is NULL.
14351         (assign_parm_setup_stack): Prefer SSA-assigned location.
14352         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14353         rtl before testing for pointer bounds.  Special-case result_ptr.
14354         (expand_function_start): Maybe reset DECL_RTL of result.
14355         Prefer SSA-assigned location for result and static chain.
14356         Factor out DECL_RESULT and SET_DECL_RTL.
14357         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14358         anonymous SSA names.  Use promote_ssa_mode.
14359         (get_temp_reg): Likewise.
14360         (remove_ssa_form): Adjust.
14361         * stor-layout.c (layout_decl): Don't set mem attributes of
14362         non-MEMs.
14363         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14364         and get its reg_usage for reg invalidation.
14365         (compute_bb_dataflow): Pass it insn.
14366         (emit_notes_in_bb): Likewise.
14368 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
14370         PR target/66217
14371         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14372         prototype.
14373         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14374         (rs6000_emit_2insn_and): Handle dot forms.
14375         * config/rs6000/rs6000.md (and<mode>3): Adjust.
14376         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
14377         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14379 2015-07-23  Richard Biener  <rguenther@suse.de>
14381         * generic-match-head.c: Include cgraph.h.
14382         * gimple-match-head.c: Likewise.
14383         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14384         SSA names.
14385         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14386         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
14387         pattern.
14389 2015-07-23  Richard Biener  <rguenther@suse.de>
14391         * gimple-fold.c (fold_gimple_cond): Do not require folding
14392         results to pass valid_gimple_rhs_p.
14393         * tree-cfg.h (fold_cond_expr_cond): Remove.
14394         * tree-cfg.c (fold_cond_expr_cond): Likewise.
14395         (make_edges): Do not call it.
14396         * tree-inline.c (tree_function_versioning): Likewise.
14398 2015-07-23  Tom de Vries  <tom@codesourcery.com>
14400         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14401         vect_force_simple_reduction.
14402         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14403         (vect_is_simple_reduction_1): Add and handle
14404         need_wrapping_integral_overflow parameter.
14405         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14406         need_wrapping_integral_overflow parameter.
14407         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14408         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14409         decl.
14411 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
14413         PR tree-optimization/66926,66951
14414         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14415         INNER_LOOP and fix up condition for renaming virtual operands.
14417 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14419         * combine.c (try_combine): Use std::swap instead of manually
14420         swapping.
14422 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
14424         * config/mips/i6400.md: New file.
14425         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14426         (mips64r6): Likewise.
14427         (i6400): Define.
14428         * config/mips/mips-tables.opt: Regenerate.
14429         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14430         (mips_issue_rate): Add support for i6400.
14431         (mips_multipass_dfa_lookahead): Likewise.
14432         * config/mips/mips.h (TUNE_I6400): Define.
14433         * config/mips/mips.md: Include i6400.md.
14434         (processor): Add i6400.
14435         * doc/invoke.texi (-march=@var{arch}): Add i6400.
14437 2015-07-23  Richard Biener  <rguenther@suse.de>
14439         PR middle-end/66916
14440         * match.pd: Guard widen and sign-change comparison simplification
14441         with single_use.
14443 2015-07-23  Richard Biener  <rguenther@suse.de>
14445         PR tree-optimization/66945
14446         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
14447         ::before_dom_children): Force the propagators idea of
14448         non-executable edges to materialize, not what the folder
14449         chooses.
14451 2015-07-23  Richard Biener  <rguenther@suse.de>
14453         * gimple.h (gimple_cond_make_false): Use 0 != 0.
14454         (gimple_cond_make_true): Use 1 != 0.
14456 2015-07-22  DJ Delorie  <dj@redhat.com>
14458         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
14459         slashes.
14461         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
14462         (ashrhi3): Likewise.
14463         (lshrhi3): Likewise.
14464         (movhi): Take advantage of zero-extend to load small constants.
14465         (movpsi): Likewise.
14466         (and<mode>3): Likewise.
14467         (zero_extendqihi2): Likewise.
14468         (zero_extendqisi2): New.
14469         * config/msp430/constraints.md (N,O): New.
14470         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
14472 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
14474         PR target/66954
14475         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
14476         to enum feature_priority and feature_list.
14477         (fold_builtin_cpu): Add F_AES to enum processor_features
14478         and isa_names_table.
14480 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
14482         PR driver/66737
14483         * config/i386/linux-common.h (MPX_SPEC): Use linker option
14484         for 64bit target only.
14486 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14488         * config/nvptx/nvptx.c: Expand some comments.
14490 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
14492         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
14493         (cortex_a53_advsimd): ...This.
14495 2015-07-22  Richard Biener  <rguenther@suse.de>
14497         * genmatch.c (expr::gen_transform): Clarify error message
14498         and display location.
14500 2015-07-22  Richard Biener  <rguenther@suse.de>
14502         * genmatch.c (struct operand): Add location member.
14503         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
14504         constructors.
14505         (struct simplify): Remove match_location and result_location
14506         members.
14507         (elsehwere): Adjust.
14509 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
14511         * config/mips/m5100.md: New file.
14512         * config/mips/mips-cpus.def (m5100, m5101): Define.
14513         * config/mips/mips-tables.opt: Regenerate.
14514         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
14515         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
14516         -march=m5101 to -mips32r5.
14517         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
14518         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
14519         !-msoft-float.
14520         * config/mips/mips.md: Include m5100.md.
14521         (processor): Add m5100.
14522         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
14524 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
14526         * config/mips/mips-cpus.def (interaptiv): Define.
14527         * config/mips/mips-tables.opt: Regenerate.
14528         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
14529         -mips32r2.
14530         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
14531         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
14533 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
14535         PR target/63521
14536         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14537         (HONOR_REG_ALLOC_ORDER): Define.
14539 2015-07-22  Richard Biener  <rguenther@suse.de>
14541         PR tree-optimization/66952
14542         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
14543         blocks we end up executing unconditionally reset all SSA
14544         info such as range and alignment.
14545         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
14546         * tree-ssanames.c (reset_flow_sensitive_info): New function.
14548 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
14550         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
14551         typo in attribute.
14553 2015-07-22  Richard Biener  <rguenther@suse.de>
14555         * genmatch.c (parser::parse_result): Properly handle
14556         match with result operands and conditions.
14558 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
14560         PR target/63870
14561         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14562         Add qualifier_struct_load_store_lane_index.
14563         (aarch64_types_loadstruct_lane_qualifiers): Use
14564         qualifier_struct_load_store_lane_index for lane index argument for
14565         last argument.
14566         (aarch64_types_storestruct_lane_qualifiers): Ditto.
14567         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14568         (aarch64_simd_expand_args): Add new argument describing mode of
14569         builtin. Check lane bounds for arguments with
14570         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14571         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
14572         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14573         (aarch64_simd_expand_builtin): Handle arguments with
14574         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
14575         aarch64_simd_expand_args.
14576         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
14577         vst[234]_lane with BUILTIN_VALLDIF.
14578         * config/aarch64/aarch64-simd.md:
14579         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
14580         endianness reversal on lane index.
14581         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
14582         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
14583         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
14584         (vec_store_lanesci_lane<mode>): Ditto.
14585         (vec_store_lanesxi_lane<mode>): Ditto.
14586         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
14587         reversal of lane index.
14588         (aarch64_ld3_lane<mode>): Ditto.
14589         (aarch64_ld4_lane<mode>): Ditto.
14590         (aarch64_st2_lane<mode>): Ditto.
14591         (aarch64_st3_lane<mode>): Ditto.
14592         (aarch64_st4_lane<mode>): Ditto.
14593         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
14594         to qmode. Add new mode parameter. Update uses.
14595         (__LD3_LANE_FUNC): Ditto.
14596         (__LD4_LANE_FUNC): Ditto.
14597         (__ST2_LANE_FUNC): Ditto.
14598         (__ST3_LANE_FUNC): Ditto.
14599         (__ST4_LANE_FUNC): Ditto.
14601 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
14603         * doc/invoke.texi (Language Independent Options): Rename node to
14604         Diagnostic Message Formatting Options.
14606 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
14608         PR ipa/66424.
14609         * lra-remat.c (operand_to_remat): Prevent using insns with input
14610         subregs processed separately by IRA.
14612 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
14614         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
14615         straight loops.
14616         (single_imm_use): Check for iterator node.
14617         (num_imm_uses): Likewise.
14618         * tree-ssa-operands.c (has_zero_uses_1): Delete.
14619         (single_imm_use_1): Check for iterator node.
14621 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14622             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14624         * configure.ac: Add check for new options in isl-0.15.
14625         * config.in, configure: Rebuilt.
14626         * graphite-blocking.c: Include <isl/constraint.h>
14627         * graphite-interchange.c,  graphite-poly.c: Likewise.
14628         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
14629         * graphite.c: Likewise.
14630         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
14631         <isl/union_set.h>.
14632         * graphite-dependences.c: Include <isl/constraint.h>.
14633         (max_number_of_out_dimensions): Returns isl_stat.
14634         (extend_schedule_1): Likewise
14635         (extend_schedule): Corresponding changes.
14636         * graphite-optimize-isl.c: Include <isl/constraint.h> and
14637         <isl/union_set.h>.
14638         (getSingleMap): Change return type of isl_stat.
14639         (optimize_isl): Conditionally use
14640         isl_options_set_schedule_serialize_sccs.
14641         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
14642         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
14644 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
14646         PR target/66956
14647         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
14648         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
14650 2015-07-21  Richard Biener  <rguenther@suse.de>
14652         PR tree-optimization/66948
14653         * genmatch.c (capture_info::walk_match): Also recurse to
14654         captures.  Properly compute expr state from captures of
14655         captures.
14656         * match.pd: Add single-use guards to
14657         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
14659 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14661         * config/nvptx/mkoffload.c (process): Add static destructor call.
14663 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14665         PR middle-end/66915
14666         * match.pd (A - B -> A + (-B)): Don't allow folding
14667         when type if a fixed-point type.
14669 2015-07-20  DJ Delorie  <dj@redhat.com>
14671         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
14672         (iorqi3_real): Likewise for set1.
14674 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
14676         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
14677         for !TARGET_64BIT.
14679 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
14681         * graphite-isl-ast-to-gimple.c:
14682         Refactor so that each function can access 'region'. This will help
14683         maintain a parameter rename_map within a region.
14685 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14687         * config/rs6000/rs6000.md (*lt0_disi): New.
14689 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14691         PR target/66217
14692         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
14693         "available letters" comment.
14694         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
14695         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
14696         and_2rld_operand):  Delete.
14697         (and_operand): Adjust.
14698         (rotate_mask_operator): New.
14699         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
14700         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
14701         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
14702         extract_ME): Delete.
14703         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14704         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
14705         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
14706         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14707         rs6000_emit_2insn_and): New.
14708         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
14709         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
14710         includes_rldic_lshift_p, includes_rldicr_lshift_p,
14711         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
14712         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14713         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
14714         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
14715         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14716         rs6000_emit_2insn_and): New.
14717         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
14718         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
14719         handling.
14720         <NOT>: Don't fall through to next case.
14721         <AND>: Handle the various rotate-and-mask cases directly.
14722         <IOR>: Always cost as one insn.
14723         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
14724         (and<mode>3): Adjust expander for the new patterns.
14725         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
14726         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
14727         (*and<mode>3_imm_dot_shifted): New.
14728         (*and<mode>3_mask): Delete, rewrite as ...
14729         (and<mode>3_mask): ... New.
14730         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
14731         (andsi3_internal0_nomc): Delete.
14732         (*andsi3_internal6): Delete.
14733         (*and<mode>3_2insn): New.
14734         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14735         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14736         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
14737         *insvdi_internal3): Delete.
14738         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
14739         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
14740         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
14741         *ior<mode>_mask): New.
14742         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
14743         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14744         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14745         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14746         Delete.
14747         (ashr<mode>3): Delete expander.
14748         (*ashr<mode>3): Rename to ...
14749         (ashr<mode>3): ... This.
14750         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
14751         (*rotldi3_internal4, *rotldi3_internal5 and split,
14752         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
14753         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
14754         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
14755         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
14756         (splitter for loading a mask): Adjust.
14757         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
14759 2015-07-20  Marek Polacek  <polacek@redhat.com>
14761         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
14762         output_add_clobbers, output_added_clobbers_hard_reg_p,
14763         gen_rtx_scratch): Remove declarations.
14765 2015-07-20  Marek Polacek  <polacek@redhat.com>
14767         PR c++/55095
14768         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
14770 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14772         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
14773         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
14775 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14777         * combine.c (combine_simplify_rtx): Move simplification step
14778         before various transformations/substitutions.
14780 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
14782         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
14783         (struct int_traits): Likewise.
14785 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14787         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
14788         function to vmsdbgout_function_decl.
14790 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
14792         PR target/66922
14793         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
14794         from misaligned positions.
14795         (ix86_expand_pinsr): Reject insertions to misaligned positions.
14797 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
14799         PR middle-end/46851
14800         PR middle-end/60340
14801         * Makefile.in: Removed omega.o.
14802         * common.opt: Document flag fcheck-data-deps as deprecated.
14803         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
14804         its associated params: omega-max-vars, omega-max-geqs,
14805         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
14806         omega-max-keys, omega-eliminate-redundant-constraints.
14807         * doc/loop.texi: Remove all the section on Omega.
14808         * graphite-blocking.c: Include missing params.h: it used to be
14809         included through tree-data-ref.h and omega.h.
14810         * graphite-isl-ast-to-gimple.c: Same.
14811         * graphite-optimize-isl.c: Same.
14812         * graphite-sese-to-poly.c: Same.
14813         * graphite.c: Same.
14814         * omega.c: Remove.
14815         * omega.h: Remove.
14816         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
14817         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
14818         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
14819         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
14820         * passes.def: Remove pass_check_data_deps.
14821         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
14822         (dump_conflict_function): Same.
14823         (dump_subscript): Same.
14824         (print_direction_vector): Same.
14825         (print_dir_vectors): Same.
14826         (print_lambda_vector): Same.
14827         (print_dist_vectors): Same.
14828         (dump_data_dependence_relation): Same.
14829         (dump_data_dependence_relations): Same.
14830         (dump_dist_dir_vectors): Same.
14831         (dump_ddrs): Same.
14832         (init_omega_eq_with_af): Removed.
14833         (omega_extract_distance_vectors): Removed.
14834         (omega_setup_subscript): Removed.
14835         (init_omega_for_ddr_1): Removed.
14836         (init_omega_for_ddr): Removed.
14837         (ddr_consistent_p): Removed.
14838         (compute_affine_dependence): Do not use omega to check data
14839         dependences.
14840         (compute_data_dependences_for_bb): Removed.
14841         (analyze_all_data_dependences): Removed.
14842         (tree_check_data_deps): Removed.
14843         * tree-data-ref.h: Do not include omega.h.
14844         (compute_data_dependences_for_bb): Removed.
14845         (tree_check_data_deps): Removed.
14846         * tree-ssa-loop.c (pass_check_data_deps): Removed.
14847         (make_pass_check_data_deps): Removed.
14848         * tree-ssa-phiopt.c: Include params.h.
14849         * tree-vect-data-refs.c: Same.
14850         * tree-vect-slp.c: Same.
14852 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
14854         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
14855         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
14856         (mem->fpreg splitters): Ditto.
14857         (general_operand->nonimmediate_operand splitter): Use explicit modes.
14858         Disable DFmode for TARGET_64BIT.
14860 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
14862         PR target/66906
14863         * config/i386/i386.c (ix86_expand_prologue): Replicate static
14864         chain on the stack.
14866 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14868         * config/nvptx/mkoffload.c (process): Constify host data.
14869         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14870         Constify host data.
14871         (generate_host_descr_file): Likewise.
14873 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
14874             Sebastian Pop  <s.pop@samsung.com>
14876         PR middle-end/61929
14877         * graphite-dependences.c (add_pdr_constraints): Renamed
14878         pdr->extent to pdr->subscript_sizes.
14879         * graphite-interchange.c (build_linearized_memory_access): Add
14880         back all gcc_assert's that the "isl_int to isl_val conversion"
14881         patch has removed.  Refactored.
14882         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
14883         * graphite-poly.c (new_poly_dr): Same.
14884         (free_poly_dr): Same.
14885         * graphite-poly.h (struct poly_dr): Same.
14886         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
14887         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
14888         * graphite-scop-detection.h: Fix space.
14889         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
14890         back all gcc_assert's removed by a previous patch.
14891         (wrap): Remove the_isl_ctx global variable that the same patch has
14892         added.
14893         (build_loop_iteration_domains): Same.
14894         (add_param_constraints): Same.
14895         (pdr_add_data_dimensions): Same.  Refactored.
14896         (build_poly_dr): Renamed extent to subscript_sizes.
14898 2015-07-17  Marek Polacek  <polacek@redhat.com>
14900         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
14901         * match.pd: ... here.
14903 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14905         * config/nvptx/mkoffload.c (process): Constify target data.
14906         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14907         Constify target data.
14908         (generate_target_offloadend_file): Likewise.
14910 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14912         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
14913         to allow renaming of PHI arguments on edges incoming from outer
14914         loop header, add corresponding check before start PHI iterator.
14915         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
14916         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
14917         with true force_vectorize.  Set-up dominator for outer loop too.
14918         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
14919         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
14920         was marked with force_vectorize and has restricted cfg.
14921         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
14922         inner loop.
14923         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14924         do peeling for outer loops.
14926 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
14927             Matthias Klose  <doko@ubuntu.com>
14929         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
14930         build-sysroot, sysroot from the `Miscenalleous configure options' to
14931         the `Directories' section and strip trailing `/' from with_sysroot.
14932         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
14933         * configure: Regenerated.
14935 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
14937         PR target/66824
14938         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
14939         (TARGET_HARD_DF_REGS): Ditto.
14940         (TARGET_HARD_XF_REGS): Ditto.
14941         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
14942         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
14943         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
14944         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
14945         (*movsf_internal): Add alternatives 16 and 17. Enable
14946         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
14948 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
14950         PR rtl-optimization/66891
14951         * calls.c (expand_call): Wrap precompute_register_parameters with
14952         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
14954 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14956         * config/nvptx/mkoffload.c (process): Constify mapping variables.
14957         Define target data struct and initialize it.
14959 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
14961         PR rtl-optimization/66626
14962         * ira.h (emit-rtl.h): Include.
14963         (non_spilled_static_chain_regno_p): New.
14964         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
14965         unless it is non spilled static chain pseudo.
14966         (assign_hard_rego): Spill memory profitable allocno unless it is
14967         non spilled static chain pseudo.
14968         (allocno_spill_priority_compare): Put non spilled static chain
14969         pseudo at the end of sorted array.
14970         (improve_allocation): Do nothing if we have static chain and
14971         non-local goto.
14972         (allocno__priority_compare_func): Put non spilled static chain
14973         pseudo at the beginning of sorted array.
14974         (move_spill_restore): Ignore non spilled static chain pseudo.
14975         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
14976         to non spilled static chain pseudo.
14977         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
14978         pseudo at the beginning of sorted array.
14979         (spill_for): Spill non spilled static chain pseudo last.
14980         * lra-constraints.c (lra_constraints): Remove static chain pseudo
14981         check for equivalence.
14983 2015-07-16  Martin Liska  <mliska@suse.cz>
14985         PR ipa/66896.
14986         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
14987         dst_ctx if it does not exist.
14989 2015-07-16  Martin Liska  <mliska@suse.cz>
14991         * hash-set.h (remove): New function.
14992         (iterator): New iteration class for hash_set.
14994 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14996         * genattrtab.c (make_canonical): Add a file_location parameter.
14997         Use fatal_at rather than fatal.
14998         (get_attr_value): Likewise.  Update call to make_canonical.
14999         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15000         (make_internal_attr): Update calls accordingly.
15002 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15004         * read-md.h (message_with_line, error_with_line): Delete.
15005         * read-md.c (message_with_line, error_with_line): Delete.
15006         * gensupport.h: Include read-md.h.
15007         (md_rtx_info): New structure.
15008         (read_md_rtx): Use it.  Return a bool success value.
15009         * gensupport.c (read_md_rtx): Likewise.
15010         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15011         (main): Update after interface changes.
15012         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15013         (main): Update after interface changes.
15014         * genattrtab.c (insn_code_number): Delete.
15015         (optimize_attrs): Add a max_insn_code parameter and use it instead
15016         of insn_code_number.
15017         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15018         Use *_at rather than *_with_line functions.
15019         (gen_insn): Likewise.
15020         (gen_delay): Likewise.
15021         (gen_insn_reserv): Likewise.
15022         (gen_bypass): Take an md_rtx_info rather than an rtx.
15023         (main): Update after interface changes.  Use a local max_insn_code
15024         variable instead of insn_code_number.
15025         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15026         an rtx.  Use fatal_at rather than fatal.
15027         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15028         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15029         (gen_absence_set, gen_final_absence_set, gen_automaton)
15030         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15031         (main): Update after interface changes.
15032         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15033         and code number.
15034         (main): Update after interface changes.
15035         * genconditions.c (main): Use new read_md_rtx interface.
15036         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15037         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15038         (main): Update after interface changes.
15039         * genemit.c (insn_code_number, insn_index_number): Delete.
15040         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15041         Use fatal_at rather than fatal.
15042         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
15043         rather than fatal.
15044         (gen_split): Likewise.
15045         (main): Update after interface changes.
15046         * genextract.c (line_no): Delete.
15047         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15048         Update call to walk_rtx.
15049         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
15050         rather than message_with_line.
15051         (walk_rtx): Add an md_rtx_info argument.  Update call to
15052         VEC_safe_set_locstr.
15053         (main): Update after interface changes.
15054         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15055         and lineno.  Use error_at rather than separate message_with_line
15056         calls and have_error assignments.
15057         (main): Update after interface changes.
15058         * genmddump.c (main): Use new read_md_rtx interface.
15059         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15060         (main): Update after interface changes.
15061         * genoutput.c (next_code_number): Delete.
15062         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15063         (gen_peephole, gen_expand, gen_split): Likewise.
15064         (note_constraint): Likewise.  Use *_at rather than *_with_line
15065         functions.
15066         (main): Update after interface changes.
15067         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15068         rtx and lineno.
15069         (main): Update after interface changes.
15070         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15071         than an rtx and lineno.
15072         (process_define_constraint): Likewise.
15073         (process_define_register_constraint): Likewise.
15074         (main): Update after interface changes.
15075         * genrecog.c (next_insn_code, pattern_lineno): Delete.
15076         (validate_pattern): Replace top-level rtx with an md_rtx_info.
15077         Use *_at rather than *_with_line functions.
15078         (match_pattern_2): Likewise.
15079         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15080         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15081         Use *_at rather than *_with_line functions.
15082         * gentarget-def.c (add_insn): New function.
15083         (main): Use it.  Use new read_md_rtx interface.
15085 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15087         * gensupport.h (compute_test_codes): Take a file_location rather
15088         than a line number.
15089         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
15090         rather than *_with_line functions.
15091         (process_define_predicate): Update call to compute_test_codes.
15092         * genpreds.c (validate_exp): Take a file_location rather than a
15093         line number.  Use *_at functions rather than *_with_line functions.
15094         (process_define_predicate): Update call to validate_exp.
15095         (constraint_data): Replace lineno field with a file_location.
15096         (add_constraint): Take a file_location rather than a line number.
15097         Use *_at functions rather than *_with_line functions.  Fix error
15098         message for address constraints.  Update after changes to
15099         validate_exp, constraint_data and compute_test_codes.
15100         (process_define_constraint): Update accordingly.
15101         (process_define_register_constraint): Likewise.
15103 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15105         * genoutput.c (data): Use a file_location to record the source
15106         position.
15107         (nothing): Delete.
15108         (idata, idata_end): Remove initialization.
15109         (constraint_data): Replace lineno with a file_location.
15110         (output_insn_data): Update after changes to data.
15111         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15112         (scan_operands): Likewise, using *_at rather than *_with_line
15113         functions.
15114         (process_template): Likewise.
15115         (validate_insn_alternatives): Likewise.
15116         (validate_insn_operands): Likewise.
15117         (validate_optab_operands): Likewise.
15118         (init_insn_for_nothing): Initialize idata and idata_end.
15119         (note_constraint): Update after changes to constraint_data,
15120         using at rather than with_line functions.
15121         (mdep_constraint_len): Take a file_location rather than a
15122         line number.  Use at rather than with_line functions.
15124 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15126         * read-md.h (fatal_at): Declare.
15127         * read-md.c (fatal_at): New function.
15128         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15129         to record the source position.
15130         (check_attr_test): Take a file_location instead of a line number.
15131         Use fatal_at instead of fatal.
15132         (check_attr_value): Update after above changes, using "at"
15133         rather than "with_line" reporting functions.
15134         (convert_set_attr_alternative): Likewise.
15135         (gen_attr): Likewise.
15136         (check_defs): Likewise.  Don't assign to read_md_filename.
15137         (gen_insn): Update initialization after above changes.
15138         (gen_delay): Likewise.
15139         (write_insn_cases): Print the filename for a define_peephole.
15140         (gen_insn_reserv): Take a line number as argument and update
15141         the call to check_attr_test.
15142         (main): Pass a line number to gen_insn_reserv.
15144 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15146         * read-md.h (file_location): New structure.
15147         (directive_handler_t): Take a file_location rather than a line number.
15148         (message_at, error_at): Declare.
15149         (read_skip_construct): Delete.
15150         * read-md.c (message_with_line_1): Replace with...
15151         (message_at_1): ...this new function.
15152         (message_at, error_at): New functions.
15153         (message_with_line, error_with_line): Update to use message_at_1.
15154         (handle_enum): Take a file_location rather than a line number
15155         and use error_at for error reporting.
15156         (handle_include): Likewise.
15157         (read_skip_construct): Likewise.  Make static.
15158         (handle_file): Update after above changes.  Pass a file_location
15159         rather than a line number to handle_directive.
15160         * gensupport.c (queue_elem): Replace separate filename and lineno
15161         with a file_location.
15162         (queue_pattern): Replace filename and lineno arguments with a
15163         file_location.  Update after change to queue_elem.
15164         (process_define_predicate): Replace lineno argument with a
15165         file_location and use error_at for error reporting.  Update
15166         after above changes.
15167         (process_rtx): Likewise.
15168         (subst_pattern_match): Likewise.
15169         (get_alternatives_number): Likewise.
15170         (alter_predicate_for_insn): Likewise.
15171         (rtx_handle_directive): Likewise.
15172         (is_predicable): Update after above changes, using error_at rather
15173         than error_with_line.
15174         (has_subst_attribute): Likewise.
15175         (identify_predicable_attribute): Likewise.
15176         (alter_attrs_for_subst_insn): Likewise.
15177         (process_one_cond_exec): Likewise.
15178         (process_substs_on_one_elem): Likewise.
15179         (process_define_subst): Likewise.
15180         (check_define_attr_duplicates): Likewise.
15181         (read_md_rtx): Update after change to queue_elem.
15183 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15185         * genoutput.c (next_index_number): Delete.
15186         (data): Remove index_number.
15187         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15188         (main): Remove manipulation of next_index_number.
15190 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15192         * genattrtab.c (check_attr_value): Remove handling of null attrs.
15193         (make_canonical): Likewise.
15195 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
15197         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15198         instead of adjust_address_nv.
15199         (restore_stack_nonlocal): Likewise.
15200         (nonlocal_goto): Likewise.
15202 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15204         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15205         not have a corresponding loop header phi.
15207 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15209         * tree-parloops.c (create_loads_for_reductions): Handle case that
15210         reduction is unused.
15212 2015-07-16  Richard Biener  <rguenther@suse.de>
15214         PR tree-optimization/66894
15215         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15216         about deriving NE_EXPR from truncated values.
15218 2015-07-16  Martin Liska  <mliska@suse.cz>
15220         * alloc-pool.h
15221         (object_allocator): Add new class.
15222         (pool_allocator::initialize): Use the underlying class.
15223         (pool_allocator::allocate): Likewise.
15224         (pool_allocator::remove): Likewise.
15225         (operator new): A new generic allocator.
15226         * asan.c (struct asan_mem_ref): Remove unused members.
15227         (asan_mem_ref_new): Replace new operator with
15228         object_allocator::allocate.
15229         (free_mem_ref_resources): Change deallocation.
15230         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15231         with object_allocator.
15232         * config/sh/sh.c (add_constant): Replace new operator with
15233         object_allocator::allocate.
15234         (sh_reorg): Change call to a release method.
15235         * cselib.c (struct elt_list): Remove unused members.
15236         (new_elt_list): Replace new operator with
15237         object_allocator::allocate.
15238         (new_elt_loc_list): Likewise.
15239         (new_cselib_val): Likewise.
15240         (unchain_one_elt_list): Change delete operator with remove method.
15241         (unchain_one_elt_loc_list): Likewise.
15242         (unchain_one_value): Likewise.
15243         (cselib_finish): Release newly added static allocators.
15244         * cselib.h (struct cselib_val): Remove unused members.
15245         (struct elt_loc_list): Likewise.
15246         * df-problems.c (df_chain_alloc): Replace pool_allocator with
15247         object_allocator.
15248         * df-scan.c (struct df_scan_problem_data): Likewise.
15249         (df_scan_alloc): Likewise.
15250         * df.h (struct dataflow): Likewise.
15251         * dse.c (struct read_info_type): Likewise.
15252         (struct insn_info_type): Likewise.
15253         (struct dse_bb_info_type): Likewise.
15254         (struct group_info): Likewise.
15255         (struct deferred_change): Likewise.
15256         (get_group_info): Likewise.
15257         (delete_dead_store_insn): Likewise.
15258         (free_read_records): Likewise.
15259         (replace_read): Likewise.
15260         (check_mem_read_rtx): Likewise.
15261         (scan_insn): Likewise.
15262         (dse_step1): Likewise.
15263         (dse_step7): Likewise.
15264         * et-forest.c (struct et_occ): Remove unused members.
15265         (et_new_occ): Use allocate instead of new operator.
15266         (et_new_tree): Likewise.
15267         (et_free_tree): Call release method explicitly.
15268         (et_free_tree_force): Likewise.
15269         (et_free_pools): Likewise.
15270         (et_split): Use remove instead of delete operator.
15271         * et-forest.h (struct et_node): Remove unused members.
15272         * ipa-cp.c: Change pool_allocator to object_allocator.
15273         * ipa-inline-analysis.c: Likewise.
15274         * ipa-profile.c: Likewise.
15275         * ipa-prop.c: Likewise.
15276         * ipa-prop.h: Likewise.
15277         * ira-build.c (initiate_cost_vectors): Cast return value.
15278         (ira_allocate_cost_vector): Likewise.
15279         * ira-color.c (struct update_cost_record): Remove unused members.
15280         * lra-int.h (struct lra_live_range): Likewise.
15281         (struct lra_copy): Likewise.
15282         (struct lra_insn_reg): Likewise.
15283         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15284         * lra.c (new_insn_reg): Replace new operator with allocate method.
15285         (free_insn_regs): Same for operator delete.
15286         (finish_insn_regs): Release new static allocator.
15287         (finish_insn_recog_data): Likewise.
15288         (lra_free_copies): Replace delete operator with remove method.
15289         (lra_create_copy): Replace operator new with allocate method.
15290         (invalidate_insn_data_regno_info): Same for remove method.
15291         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15292         (free_debug_insn_changes): Replace delete operator with remove method.
15293         (replace_oldest_value_reg): Replace operator new with allocate method.
15294         (pass_cprop_hardreg::execute): Release new static variable.
15295         * sched-deps.c (sched_deps_init): Change pool_allocator to
15296         object_allocator.
15297         * sel-sched-ir.c: Likewise.
15298         * sel-sched-ir.h: Likewise.
15299         * stmt.c (expand_case): Likewise.
15300         (expand_sjlj_dispatch_table): Likewise.
15301         * tree-sra.c (struct access): Remove unused members.
15302         (struct assign_link): Likewise.
15303         (sra_deinitialize): Release newly added static pools.
15304         (create_access_1):Replace operator new with allocate method.
15305         (build_accesses_from_assign): Likewise.
15306         (create_artificial_child_access): Likewise.
15307         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15308         pool_allocator to object_allocator.
15309         * tree-ssa-pre.c: Likewise.
15310         * tree-ssa-reassoc.c: Likewise.
15311         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15312         * tree-ssa-strlen.c: Likewise.
15313         * tree-ssa-structalias.c: Likewise.
15314         * var-tracking.c (onepart_pool_allocate): New function.
15315         (unshare_variable): Use the newly added function.
15316         (variable_merge_over_cur): Likewise.
15317         (variable_from_dropped): Likewise.
15318         (variable_was_changed): Likewise.
15319         (set_slot_part): Likewise.
15320         (emit_notes_for_differences_1): Likewise.
15321         (vt_finalize): Release newly added static pools.
15323 2015-07-16  Martin Jambor  <mjambor@suse.cz>
15325         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
15326         all uses.  Fix two typos in its general comment.
15327         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
15329 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
15331         * config/i386/linux-common.h (LINK_MPX): New.
15332         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15333         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15334         indicating '-z bndplt' support by linker.
15335         * configure: Regenerate.
15336         * config.in: Regenerate.
15338 2015-07-16  Richard Biener  <rguenther@suse.de>
15340         * fold-const.c (fold_widened_comparison): Remove.
15341         (fold_sign_changed_comparison): Likewise.
15342         (fold_comparison): Move widened and sign-changed comparison
15343         simplification ...
15344         * match.pd: ... to patterns here.
15345         * generic-match-head.c: Include target.h.
15346         * gimple-match-head.c: Likewise.
15348 2015-07-16  Richard Biener  <rguenther@suse.de>
15350         * tree-ssa-dom.c (dom_valueize): New function.
15351         (record_temporary_equivalences): Also record equivalences
15352         for dominating stmts that have uses of equivalences we are
15353         about to record.
15355 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
15357         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15358         add_autoinc_candidates.
15359         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15360         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15361         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15362         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15363         Call new function.
15364         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15365         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15366         Remove parameter struct iv*.  Call add_autoinc_candidates here.
15367         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15368         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15369         Call new function.
15370         (find_iv_candidates): Call new functions.
15372 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
15374         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15375         uninitialized-variable warning.
15377 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
15379         PR target/65249
15380         * config/sh/sh.md (movdi): Split simple reg move to two movsi
15381         when the destination is R0.
15383 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
15385         PR target/66866
15386         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15387         * config/i386/i386.c (ix86_expand_pextr): New function.
15388         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
15389         for non-lowpart subregs.
15390         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15391         (insv<mode>): Use SWI248 mode iterator.
15392         (insv<mode>_1): Ditto.
15394 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15395             Sebastian Pop  <s.pop@samsung.com>
15397         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15398         iterator to use_stmt.
15400 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15401             Sebastian Pop <s.pop@samsung.com>
15403         * graphite-scop-detection.c (build_scops_1): Discard scops for
15404         which entry==exit.
15406 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15407             Sebastian Pop <s.pop@samsung.com>
15409         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15410         case of a return statement in scop.
15412 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15413             Sebastian Pop <s.pop@samsung.com>
15415         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15416         INTEGER_TYPE parameters.
15417         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15418         VECTOR_CST in scan_tree_for_params.
15419         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15421 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
15423         * gimple-pretty-print.h: Don't include pretty-print.h.
15424         * tree-streamer.h: Don't include lto-streamer.h.
15425         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15426         * gimple-streamer-in.c: Remove redundant includes.
15427         * gimple-streamer-out.c: Likewise.
15428         * ipa-devirt.c: Likewise.
15429         * ipa-icf.c: Likewise.
15430         * ipa-inline-analysis.c: Likewise.
15431         * ipa-polymorphic-call.c: Likewise.
15432         * ipa-profile.c: Likewise.
15433         * ipa-prop.c: Likewise.
15434         * ipa-pure-const.c: Likewise.
15435         * lto-cgraph.c: Likewise.
15436         * lto-streamer-in.c: Likewise.
15437         * lto-streamer-out.c: Likewise.
15438         * lto-streamer.c: Likewise.
15439         * tree-streamer-in.c: Likewise.
15440         * tree-streamer-out.c: Likewise.
15441         * tree-streamer.c: Likewise.
15443 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
15445         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
15446         include input.h.
15447         * opts.c: Remove multiline #include comment.
15449 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
15451         * config/nvptx/mkoffload.c (process): Add C++ protection to
15452         emitted code.
15454 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15456         PR target/66854
15457         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
15458         null before IEEE 128-bit floating point support patch.
15460 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15462         * simplify-rtx.c (simplify_ternary_operation): Add simplification
15463         for (!c) != {0,...,0} ? a : b for vector modes.
15465 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
15466             Martin Jambor  <mjambor@suse.cz>
15468         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
15469         struct func_body_info* instead of struct ipa_node_params*, expecting
15470         fbi->info to be filled in.  Replace throughout.  Adjust call to
15471         ipa_load_from_parm_agg.
15472         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
15473         instead of struct ipa_node_params*.  Adjust calls to other functions
15474         so that they pass either fbi or fbi->info.
15475         (set_switch_stmt_execution_predicate): Likewise.
15476         (will_be_nonconstant_predicate): Likewise.
15477         (compute_bb_predicates): Likewise.
15478         (estimate_function_body_sizes): Move asserts earlier.  Fill in
15479         struct func_body_info, replace parms_info with fbi.info.  Adjust
15480         calls to functions that now accept struct func_body_info.
15481         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
15482         (struct func_body_info): Likewise.
15483         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
15484         remove static.  Adjust callers.
15485         (ipa_load_from_parm_agg): Remove.
15486         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
15487         (func_body_info): Likewise.
15488         (ipa_load_from_parm_agg): Adjust prototype.
15490 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15492         * gensupport.c (rtx_handle_directive): Adjust.
15493         * read-rtl.c (apply_iterators): Take vector to add rtxs to
15494         instead of expr list rtx.
15495         (add_define_attr_for_define_subst): Likewise.
15496         (add_define_subst_attr): Likewise.
15497         (read_subst_mapping): Likewise.
15498         (read_rtx): Likewise.
15499         * rtl.h (read_rtx): Adjust.
15501 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15503         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
15505 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15507         PR target/58066
15508         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
15509         (*tls_local_dynamic_base_64_<mode>): Ditto.
15510         (*tls_local_dynamic_base_64_largepic): Ditto.
15511         (tls_global_dynamic_64_<mode>): Update expander pattern.
15512         (tls_local_dynamic_base_64_<mode>): Ditto.
15514 2015-07-15  Richard Biener  <rguenther@suse.de>
15516         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
15517         and bool_var == 1 -> bool_var simplifications ...
15518         * match.pd: ... to patterns here.  Factor out negate_expr_p
15519         cases from the A - B -> A + (-B) patterns as negate_expr_p
15520         predicate and add a -(A + B) -> (-B) - A pattern.
15522 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
15524         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
15526 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
15527             Robert Suchanek  <robert.suchanek@imgtec.com>
15529         * config/mips/mips.c (mips_int_mask): New enum.
15530         (mips_shadow_set): Likewise.
15531         (int_mask): New variable.
15532         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
15533         (machine_function): Add int_mask and use_shadow_register_set.
15534         (mips_attribute_table): Add attribute handlers for interrupt and
15535         use_shadow_register_set.
15536         (mips_interrupt_mask): New static function.
15537         (mips_handle_interrupt_attr): Likewise.
15538         (mips_handle_use_shadow_register_set_attr): Likewise.
15539         (mips_use_shadow_register_set): Change return type to enum
15540         mips_shadow_set.  Add argument handling for use_shadow_register_set
15541         attribute.
15542         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
15543         compare with mips_shadow_set enum.
15544         (mips_compute_frame_info): Add interrupt mask and
15545         use_shadow_register_set to per-function information structure.
15546         Add a stack slot for EPC unconditionally.
15547         (mips_expand_prologue): Compare use_shadow_register_set value
15548         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
15549         masked interrupt register but in EIC mode use K0 and save Cause in K0.
15550         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
15551         copying the stack pointer from the shadow register set.
15552         * config/mips/mips.h (SR_IM0): New define.
15553         * config/mips/mips.md (mips_rdpgpr): Rename to...
15554         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
15555         * doc/extend.texi (Declaring Attributes of Functions): Document
15556         optional arguments for interrupt and use_shadow_register_set
15557         attributes.
15559 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
15561         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
15562         interrupt attribute.
15563         (mips_expand_prologue): Disable the floating point unit in an ISR.
15564         * config/mips/mips.h (SR_COP1): New define.
15566 2015-07-15  Richard Biener  <rguenther@suse.de>
15568         * genmatch.c (parser::peek, parser::peek_ident): Add argument
15569         to tell how many tokens to peek ahead (default 1).
15570         (parser::eat_token, parser::eat_ident): Return token consumed.
15571         (parser::parse_result): Parse new switch statement.
15572         * match.pd: Use case statements where appropriate.
15574 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15576         PR rtl-optimization/58066
15577         * calls.c (expand_call): Precompute register parameters before stack
15578         alignment is performed.
15580 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15582         PR rtl-optimization/66838
15583         * postreload.c (reload_cse_move2add): Also process
15584         CALL_INSN_FUNCTION_USAGE when resetting information of
15585         call-clobbered registers.
15587 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15588             Cesar Philippidis  <cesar@codesourcery.com>
15589             Chung-Lin Tang  <cltang@codesourcery.com>
15591         * config/nios2/constraints.md (U, v): New constraints.
15592         * config/nios2/predicates.md (rdprs_dcache_operand): New.
15593         (ldstex_memory_operand): New.
15594         * config/nios2/sync.md: New file.
15595         * config/nios2/nios2.md (unspecv): Add new builtin function
15596         UNSPECV codes.
15597         (rdprs, flushd, flushda, wrpie, eni): New patterns.
15598         (top-level): Include sync.md.
15599         * config/nios2/nios2.c (N2_FTYPES): Add function types for
15600         new builtins.
15601         (N2_BUILTINS): Add arch field setting, add new builtins.
15602         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
15603         for arch field.
15604         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
15605         Also handle ldex/stex/ldsex/stsex builtins.
15606         (nios2_expand_rdprs_builtin): New function.
15607         (nios2_expand_cache_builtin): New function.
15608         (nios2_expand_wrpie_builtin): New function.
15609         (nios2_expand_eni_builtin): New function.
15610         (nios2_expand_builtin): Add arch field handling and new builtin
15611         cases.
15612         * doc/extend.texi (Altera Nios II Built-in Functions): Document
15613         new builtins.
15614         * doc/md.texi (Machine Constraints): Document U and v constraints.
15616 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15617             Cesar Philippidis  <cesar@codesourcery.com>
15618             Chung-Lin Tang  <cltang@codesourcery.com>
15620         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
15621         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
15622         callee_save_reg_size and uses_anonymous_args fields.
15623         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
15624         (nios2_create_cfa_notes): New function.
15625         (nios2_adjust_stack): New function for adjusting stack.
15626         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
15627         Use nios2_adjust_stack.
15628         (nios2_expand_epilogue): Likewise.
15629         (nios2_expand_return): New function.
15630         (nios2_can_use_return_insn): Update for CDX pop.n usage.
15631         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
15632         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
15633         * config/nios2/nios2.md (return): Use nios2_expand_return.
15635 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15636             Cesar Philippidis  <cesar@codesourcery.com>
15637             Chung-Lin Tang  <cltang@codesourcery.com>
15639         * config/nios2/predicates.md (pop_operation): New.
15640         (ldwm_operation, stwm_operation): New.
15641         (nios2_hard_register_operand): New.
15642         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
15643         (ldstwm_operation_p): Declare.
15644         (gen_ldstwm_peep): Declare.
15645         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
15646         (base_reg_adjustment_p): New.
15647         (pop_operation_p): New.
15648         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
15649         (nios2_ldstwm_regset_p): New.
15650         (ldstwm_operation_p): New.
15651         (gen_ldst): New.
15652         (nios2_ldst_parallel): New.
15653         (struct ldswm_operand): Declare.
15654         (compare_ldstwm_operands): New.
15655         (can_use_cdx_ldstw): New.
15656         (gen_ldstwm_peep): New.
15657         * config/nios2/nios2-ldstwm.sml: New.
15658         * config/nios2/nios2.md: Include ldstwm.md.
15659         * config/nios2/ldstwm.md: Generated.
15661 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15662             Cesar Philippidis  <cesar@codesourcery.com>
15663             Chung-Lin Tang  <cltang@codesourcery.com>
15665         * config/nios2/nios2.h (LABEL_ALIGN): Define.
15666         (REG_ALLOC_ORDER): Define.
15667         (ADJUST_REG_ALLOC_ORDER): Define.
15668         (HONOR_REG_ALLOC_ORDER): Define.
15669         (CDX_REG_P): Define.
15670         (ANDCLEAR_INT): Define.
15671         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
15672         (nios2_label_align): Declare.
15673         (nios2_cdx_narrow_form_p): Declare.
15674         (nios2_adjust_reg_alloc_order): Declare.
15675         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
15676         operation.
15677         (nios2_large_unspec_reloc_p): New function, split from...
15678         (nios2_legitimate_pic_operand_p): ...here.
15679         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
15680         (nios2_print_operand_punct_valid_p): New.
15681         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
15682         (split_mem_address): New.
15683         (split_alu_insn): New.
15684         (cdxreg): New.
15685         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
15686         (enum nios2_add_insn_kind): New.
15687         (nios2_add_insn_names, nios2_add_insn_narrow): New.
15688         (nios2_add_insn_classify): New.
15689         (nios2_add_insn_asm): New.
15690         (nios2_cdx_narrow_form_p): New.
15691         (label_align, min_labelno, max_labelno): New.
15692         (nios2_reorg): New.
15693         (nios2_label_align): New.
15694         (nios2_adjust_reg_alloc_order): New.
15695         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15696         (TARGET_MACHINE_DEPENDENT_REORG): Define.
15697         * config/nios2/constraints.md (P): New constraint.
15698         * config/nios2/predicates.md (const_and_operand): New.
15699         (and_operand): New.
15700         (stack_memory_operand): New.
15701         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
15702         (length): Update to use nios2_cdx_narrow_form_p().
15703         (type): Add new insn type values.
15704         (control, alu, st, ld, shift): Update insn reservations with
15705         new insn type values.
15706         (*high, *lo_sum): Define new insn patterns for constant generation.
15707         (movqi_internal, movhi_internal, movsi_internal): Reduce
15708         alternatives, update asm template to handle CDX variants, update
15709         type attributes.
15710         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
15711         template, update type attributes.
15712         (extendhisi2, extendqi<mode>2): Likewise.
15713         (addsi3): Change to use function for asm string.
15714         (subsi3): Add CDX notation to asm template, update type attributes.
15715         (negsi3, one_cmplsi3): Likewise.
15716         (andsi3): New pattern, specialized from logical patterns.
15717         (<code>si3): Remove and case, combine alternatives, update asm
15718         template.
15719         (<shift_op>si3): Add CDX notation, update type attributes.
15720         (rotrsi3): Update type attribute.
15721         (*merge, extzv, insv): New insn patterns.
15722         (return): Change to define_expand.
15723         (simple_return): Add CDX notation, update type attributes.
15724         (indirect_jump): Add CDX notation.
15725         (jump): Update asm cases, update length attribute expression.
15726         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
15727         (nios2_cbranch): Update asm cases and length attribute expression
15728         to handle CDX variants.
15729         (nios2_cmp<code>): Update asm template.
15730         (nop): Add CDX notation, update type attributes.
15731         (trap): Add CDX notation.
15732         (ctrapsi4): Update asm cases and length attribute expression to
15733         handle CDX variant.
15734         * doc/md.texi (Machine Constraints): Document P constraint.
15736 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15737             Cesar Philippidis  <cesar@codesourcery.com>
15738             Chung-Lin Tang  <cltang@codesourcery.com>
15740         * config/nios2/nios2.h (SMALL_INT12): New macro.
15741         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
15742         (nios2_valid_addr_expr_p): Use it.
15743         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
15744         with implicit "io" instructions on R2.
15745         * config/nios2/constraints.md (w): New constraint.
15746         * config/nios2/predicates.md (ldstio_memory_operand): New.
15747         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
15748         operand predicate and constraint.
15749         (ld<bh>io_signed, st<bhw>io>): Likewise.
15750         * doc/md.texi (Machine Constraints): Document w constraint.
15752 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15753             Cesar Philippidis  <cesar@codesourcery.com>
15754             Chung-Lin Tang  <cltang@codesourcery.com>
15756         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
15757         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
15758         Nios II architecture level.
15759         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
15760         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
15761         (OPTION_DEFAULT_SPECS): Define.
15762         (ASM_SPEC): Add -march= spec strings.
15763         * config/nios2/nios2.c (nios2_option_override): Check for
15764         conflicts involving new options.
15765         * config.gcc (nios2*-*-*): Support --with-arch=.
15766         * doc/invoke.texi (Option Summary, Nios II Options): Document
15767         -march=, -mbmx, and -mcdx.
15769 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
15771         PR rtl-optimization/66626
15772         * lra-constraints.c (lra_constraints): Prevent equivalence
15773         substitution for static chain pseudo in functions with nonlocal
15774         goto.
15776 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15778         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
15779         (nios2_emit_stack_limit_check): Add size parameter.  Handle
15780         -fstack-limit-symbol as well as -fstack-limit-register.
15781         (nios2_expand_prologue): Emit only a single stack limit check,
15782         even if multiple stack adjustments are required.
15783         (nios2_option_override): Diagnose unsupported combination of -fpic
15784         and -stack-limit-symbol.
15786 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
15788         * Makefile.in (top_srcdir): New.
15789         * configure.ac: Use AM_ZLIB.
15790         * configure: Regeneated.
15792 2015-07-14  Matthias Klose  <doko@ubuntu.com>
15794         PR target/66840
15795         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
15797 2015-07-14  Richard Biener  <rguenther@suse.de>
15799         PR tree-optimization/66863
15800         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
15801         what we record for conversion use stmt lhs inequalities.
15803 2015-07-14  Richard Biener  <rguenther@suse.de>
15805         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
15806         (decision_tree::gen_gimple): Likewise.
15808 2015-07-14  Tom de Vries  <tom@codesourcery.com>
15810         * gcc.c (greater_than_spec_func): Declare forward.
15811         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
15812         -ftree-parallelize-loops={0,1}.
15813         (static_spec_functions): Add greater_than_spec_func function with name
15814         "gt".
15815         (greater_than_spec_func): New function.
15817 2015-07-14  Richard Biener  <rguenther@suse.de>
15819         * tree-ssa-dom.c (record_temporary_equivalences): Merge
15820         wideing type conversion case from record_equivalences_from_incoming_edge
15821         and use record_equality to record equivalences.
15822         (record_equivalences_from_incoming_edge): Call
15823         record_temporary_equivalences.
15825 2015-07-14  Richard Biener  <rguenther@suse.de>
15827         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
15828         (struct if_expr): New.
15829         (struct with_expr): Likewise.
15830         (is_a_helper): Add helpers for if_expr and with_expr.
15831         (struct simplify): Add simplify_kind enum and member.  Remove
15832         ifexpr_vec member.
15833         (simplify::simplify): Adjust.
15834         (lower_commutative): Adjust.
15835         (lower_opt_convert): Likewise.
15836         (lower_cond): Likewise.
15837         (replace_id): Handle with_expr and if_expr.
15838         (lower_for): Adjust.
15839         (dt_simplify::gen_1): New recursive worker, split out from ...
15840         (dt_simplify::gen): ... here.  Deal with if and with expansion
15841         recursively.
15842         (capture_info::capture_info): Take context argument
15843         (capture_info::walk_result): Only analyze specific result.
15844         (parser::parse_result): New function.
15845         (parser::parse_simplify): Adjust to parse ifs with then end
15846         else case.
15847         (parser::parse_if): Simplify.
15848         (parser::parse_pattern): Pass down simplify kind.
15849         * match.pd: Convert if structure to new syntax.
15851 2015-07-13  Marek Polacek  <polacek@redhat.com>
15853         * rtl.c (rtx_equal_p_cb): Fix typo.
15855 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
15857         * omega.h: Don't include config.h, don't include params.h again if
15858         omega.h has already been included.
15859         * graphite-poly.h: Include sese.h.
15860         * graphite.c: Don't include sese.h, remove needless includes and
15861         minimize includes outside #ifdef HAVE_isl block.
15862         * graphite-blocking.c: Don't include sese.h, remove needless includes,
15863         and wrap entire file in #ifdef HAVE_isl
15864         * graphite-dependences.c: Likewise.
15865         * graphite-interchange.c: Likewise.
15866         * graphite-isl-ast-to-gimple.c: Likewise.
15867         * graphite-optimize-isl.c: Likewise.
15868         * graphite-poly.c: Likewise.
15869         * graphite-scop-detection.c: Likewise.
15870         * graphite-sese-to-poly.c: Likewise.
15872 2015-07-13  Tom de Vries  <tom@codesourcery.com>
15874         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
15876 2015-07-13  Renlin Li  <renlin.li@arm.com>
15878         PR rtl/66556
15879         * simplify-rtx.c (simplify_const_relational_operation): Add
15880         side_effects_p checks.
15882 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
15884         * bitmap.h: Fix double word typos.
15885         * builtins.c: Same.
15886         * calls.c: Same.
15887         * cfgloopmanip.c: Same.
15888         * cgraph.c: Same.
15889         * cgraph.h: Same.
15890         * cgraphclones.c: Same.
15891         * combine.c: Same.
15892         * config/aarch64/aarch64-protos.h: Same.
15893         * config/aarch64/aarch64.c: Same.
15894         * config/aarch64/aarch64.md: Same.
15895         * config/arm/arm.md: Same.
15896         * config/arm/arm1020e.md: Same.
15897         * config/arm/arm1026ejs.md: Same.
15898         * config/arm/arm926ejs.md: Same.
15899         * config/arm/fa526.md: Same.
15900         * config/arm/fa606te.md: Same.
15901         * config/arm/fa626te.md: Same.
15902         * config/arm/fa726te.md: Same.
15903         * config/arm/fmp626.md: Same.
15904         * config/darwin.c: Same.
15905         * config/epiphany/epiphany.c: Same.
15906         * config/frv/frv.c: Same.
15907         * config/ft32/ft32.c: Same.
15908         * config/gnu-user.h: Same.
15909         * config/h8300/constraints.md: Same.
15910         * config/i386/i386.c: Same.
15911         * config/i386/i386.md: Same.
15912         * config/iq2000/iq2000.md: Same.
15913         * config/mips/mips.c: Same.
15914         * config/mmix/mmix.md: Same.
15915         * config/moxie/moxie.c: Same.
15916         * config/nds32/nds32.md: Same.
15917         * config/pa/pa.h: Same.
15918         * config/rs6000/aix.h: Same.
15919         * config/rs6000/rs6000.h: Same.
15920         * config/sh/sh.c: Same.
15921         * config/tilegx/tilegx.md: Same.
15922         * config/tilepro/gen-mul-tables.cc: Same.
15923         * cse.c: Same.
15924         * dbxout.c: Same.
15925         * doc/invoke.texi: Same.
15926         * dse.c: Same.
15927         * dwarf2out.c: Same.
15928         * final.c: Same.
15929         * gcc.c: Same.
15930         * genmatch.c: Same.
15931         * gimplify.c: Same.
15932         * hash-table.h: Same.
15933         * internal-fn.c: Same.
15934         * ipa-cp.c: Same.
15935         * ipa-devirt.c: Same.
15936         * ipa-icf.c: Same.
15937         * ipa-icf.h: Same.
15938         * ipa-profile.c: Same.
15939         * ipa-prop.c: Same.
15940         * ipa-prop.h: Same.
15941         * ira.c: Same.
15942         * omp-low.c: Same.
15943         * reg-stack.c: Same.
15944         * regcprop.c: Same.
15945         * reorg.c: Same.
15946         * rtl.h: Same.
15947         * sbitmap.h: Same.
15948         * tree-eh.c: Same.
15949         * tree-inline.c: Same.
15950         * tree-sra.c: Same.
15951         * tree-ssa-dom.c: Same.
15952         * tree-ssa-loop-ivopts.c: Same.
15953         * tree-ssa-structalias.c: Same.
15954         * tree-ssa-tail-merge.c: Same.
15955         * tree-ssa-ter.c: Same.
15956         * tree-ssa-threadupdate.c: Same.
15957         * tree-ssa-uninit.c: Same.
15958         * tree-ssanames.c: Same.
15959         * tree-vect-loop-manip.c: Same.
15960         * tree-vrp.c: Same.
15961         * tree.c: Same.
15962         * valtrack.c: Same.
15963         * vec.h: Same.
15965 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15967         PR middle-end/66726
15968         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
15969         tree_ssa_phiopt_worker): Call it.
15971 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15973         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
15974         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
15975         REG_EQUAL note.
15977 2015-07-11  Marek Polacek  <polacek@redhat.com>
15979         PR middle-end/66353
15980         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
15981         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
15982         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
15983         rather than bb_has_abnormal_call_pred.
15984         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
15985         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
15986         rather than bb_has_abnormal_call_pred.
15988 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
15990         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15991         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
15992         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15993         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
15994         v850_legitimate_address_p): New functions.
15995         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15997 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
15999         PR target/66819
16000         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16001         indirect sibcall with register arguments if register available
16002         for argument passing.
16003         (init_cumulative_args): Set cfun->machine->arg_reg_available
16004         to (cum->nregs > 0) or to true if function has a variable
16005         argument list.
16006         (function_arg_advance_32): Set cfun->machine->arg_reg_available
16007         to false if cum->nregs <= 0.
16008         * config/i386/i386.h (machine_function): Add arg_reg_available.
16010 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
16012         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16013         and gen_higpart instead of gen_rtx_SUBREG.
16014         * config/i386/i386.md
16015         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16016         (read-modify peephole2): Use gen_lowpart instead of
16017         gen_rtx_SUBREG for operand 5.
16019 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16021         * config/tilepro/gen-mul-tables.cc (main): Change include list for
16022         generated files.
16023         * config/tilepro/mul-tables.c: Regenerate.
16024         * config/tilegx/mul-tables.c: Regenerate.
16026 2015-07-10  Richard Biener  <rguenther@suse.de>
16028         * fold-const.c (distribute_bit_expr): Remove.
16029         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16030         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16031         to A & (B | C) and simplifying A << C1 << C2 to ...
16032         * match.pd: ... patterns here.
16034 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
16036         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16037         Mark mem as READONLY and NOTRAP for PIC symbol.
16039 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16041         * gimple-predict.h: New file.
16042         (gimple_predict_predictor, gimple_predict_set_predictor,
16043         gimple_predict_outcome, gimple_predict_set_outcome,
16044         gimple_build_predict): Relocate here.
16045         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16046         gimple_predict_outcome, gimple_predict_set_outcome): Move to
16047         gimple-predict.h.
16048         * gimple.c (gimple_build_predict): Move to gimple-predict.h
16049         * basic-block.h: Don't include cfghooks.h.
16050         * backend.h: Don't include predict.h.
16051         * cfghooks.h: Include predict.h.
16052         * gimple-pretty-print.c: Include gimple-predict.h.
16053         * gimplify.c: Likwise.
16054         * predict.c: Adjust includes.
16055         * tree-inline.c: Likewise.
16056         * asan.c: Likewise.
16057         * auto-inc-dec.c: Likewise.
16058         * auto-profile.c: Likewise.
16059         * bb-reorder.c: Likewise.
16060         * builtins.c: Likewise.
16061         * caller-save.c: Likewise.
16062         * calls.c: Likewise.
16063         * cfganal.c: Likewise.
16064         * cfgbuild.c: Likewise.
16065         * cfg.c: Likewise.
16066         * cfgcleanup.c: Likewise.
16067         * cfgexpand.c: Likewise.
16068         * cfghooks.c: Likewise.
16069         * cfgloopanal.c: Likewise.
16070         * cfgloop.c: Likewise.
16071         * cfgloopmanip.c: Likewise.
16072         * cfgrtl.c: Likewise.
16073         * cgraph.c: Likewise.
16074         * cgraphunit.c: Likewise.
16075         * combine.c: Likewise.
16076         * cprop.c: Likewise.
16077         * cse.c: Likewise.
16078         * dce.c: Likewise.
16079         * dojump.c: Likewise.
16080         * dse.c: Likewise.
16081         * except.c: Likewise.
16082         * expmed.c: Likewise.
16083         * expr.c: Likewise.
16084         * final.c: Likewise.
16085         * fold-const.c: Likewise.
16086         * function.c: Likewise.
16087         * fwprop.c: Likewise.
16088         * gcc-plugin.h: Likewise.
16089         * gcse.c: Likewise.
16090         * genattrtab.c: Likewise.
16091         * genemit.c: Likewise.
16092         * gengtype.c: Likewise.
16093         * genopinit.c: Likewise.
16094         * genoutput.c: Likewise.
16095         * genpreds.c: Likewise.
16096         * genrecog.c: Likewise.
16097         * gimple-fold.c: Likewise.
16098         * gimple-iterator.c: Likewise.
16099         * gimple-ssa-isolate-paths.c: Likewise.
16100         * gimple-ssa-strength-reduction.c: Likewise.
16101         * graph.c: Likewise.
16102         * graphite-blocking.c: Likewise.
16103         * graphite.c: Likewise.
16104         * graphite-dependences.c: Likewise.
16105         * graphite-interchange.c: Likewise.
16106         * graphite-isl-ast-to-gimple.c: Likewise.
16107         * graphite-optimize-isl.c: Likewise.
16108         * graphite-poly.c: Likewise.
16109         * graphite-scop-detection.c: Likewise.
16110         * graphite-sese-to-poly.c: Likewise.
16111         * haifa-sched.c: Likewise.
16112         * ifcvt.c: Likewise.
16113         * internal-fn.c: Likewise.
16114         * ipa-cp.c: Likewise.
16115         * ipa-profile.c: Likewise.
16116         * ipa-split.c: Likewise.
16117         * ipa-utils.c: Likewise.
16118         * ira-build.c: Likewise.
16119         * ira-color.c: Likewise.
16120         * ira-conflicts.c: Likewise.
16121         * ira-costs.c: Likewise.
16122         * ira-emit.c: Likewise.
16123         * ira-lives.c: Likewise.
16124         * jump.c: Likewise.
16125         * loop-doloop.c: Likewise.
16126         * loop-init.c: Likewise.
16127         * loop-invariant.c: Likewise.
16128         * loop-unroll.c: Likewise.
16129         * lower-subreg.c: Likewise.
16130         * lra-assigns.c: Likewise.
16131         * lra.c: Likewise.
16132         * lra-coalesce.c: Likewise.
16133         * lra-constraints.c: Likewise.
16134         * lra-lives.c: Likewise.
16135         * lto-cgraph.c: Likewise.
16136         * lto-streamer-in.c: Likewise.
16137         * mode-switching.c: Likewise.
16138         * modulo-sched.c: Likewise.
16139         * omp-low.c: Likewise.
16140         * optabs.c: Likewise.
16141         * passes.c: Likewise.
16142         * postreload.c: Likewise.
16143         * postreload-gcse.c: Likewise.
16144         * profile.c: Likewise.
16145         * recog.c: Likewise.
16146         * regstat.c: Likewise.
16147         * reload1.c: Likewise.
16148         * reorg.c: Likewise.
16149         * rtlanal.c: Likewise.
16150         * sched-ebb.c: Likewise.
16151         * sel-sched-ir.c: Likewise.
16152         * sese.c: Likewise.
16153         * shrink-wrap.c: Likewise.
16154         * simplify-rtx.c: Likewise.
16155         * stmt.c: Likewise.
16156         * store-motion.c: Likewise.
16157         * tracer.c: Likewise.
16158         * trans-mem.c: Likewise.
16159         * tree-call-cdce.c: Likewise.
16160         * tree-cfg.c: Likewise.
16161         * tree-cfgcleanup.c: Likewise.
16162         * tree-chkp.c: Likewise.
16163         * tree-complex.c: Likewise.
16164         * tree-eh.c: Likewise.
16165         * tree-if-conv.c: Likewise.
16166         * tree-loop-distribution.c: Likewise.
16167         * tree-outof-ssa.c: Likewise.
16168         * tree-parloops.c: Likewise.
16169         * tree-predcom.c: Likewise.
16170         * tree-pretty-print.c: Likewise.
16171         * tree-profile.c: Likewise.
16172         * tree-sra.c: Likewise.
16173         * tree-ssa.c: Likewise.
16174         * tree-ssa-coalesce.c: Likewise.
16175         * tree-ssa-dce.c: Likewise.
16176         * tree-ssa-dom.c: Likewise.
16177         * tree-ssa-forwprop.c: Likewise.
16178         * tree-ssa-ifcombine.c: Likewise.
16179         * tree-ssa-loop-ch.c: Likewise.
16180         * tree-ssa-loop-im.c: Likewise.
16181         * tree-ssa-loop-ivcanon.c: Likewise.
16182         * tree-ssa-loop-ivopts.c: Likewise.
16183         * tree-ssa-loop-manip.c: Likewise.
16184         * tree-ssa-loop-prefetch.c: Likewise.
16185         * tree-ssa-loop-unswitch.c: Likewise.
16186         * tree-ssa-math-opts.c: Likewise.
16187         * tree-ssa-phiopt.c: Likewise.
16188         * tree-ssa-pre.c: Likewise.
16189         * tree-ssa-reassoc.c: Likewise.
16190         * tree-ssa-sink.c: Likewise.
16191         * tree-ssa-tail-merge.c: Likewise.
16192         * tree-ssa-threadedge.c: Likewise.
16193         * tree-ssa-threadupdate.c: Likewise.
16194         * tree-switch-conversion.c: Likewise.
16195         * tree-tailcall.c: Likewise.
16196         * tree-vect-data-refs.c: Likewise.
16197         * tree-vect-loop.c: Likewise.
16198         * tree-vect-loop-manip.c: Likewise.
16199         * tree-vectorizer.c: Likewise.
16200         * tree-vrp.c: Likewise.
16201         * ubsan.c: Likewise.
16202         * value-prof.c: Likewise.
16203         * varasm.c: Likewise.
16204         * var-tracking.c: Likewise.
16205         * config/aarch64/aarch64-builtins.c: Likewise.
16206         * config/aarch64/aarch64.c: Likewise.
16207         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16208         * config/alpha/alpha.c: Likewise.
16209         * config/arc/arc.c: Likewise.
16210         * config/arm/arm.c: Likewise.
16211         * config/avr/avr.c: Likewise.
16212         * config/bfin/bfin.c: Likewise.
16213         * config/c6x/c6x.c: Likewise.
16214         * config/cr16/cr16.c: Likewise.
16215         * config/cris/cris.c: Likewise.
16216         * config/darwin.c: Likewise.
16217         * config/darwin-c.c: Likewise.
16218         * config/epiphany/epiphany.c: Likewise.
16219         * config/epiphany/mode-switch-use.c: Likewise.
16220         * config/epiphany/resolve-sw-modes.c: Likewise.
16221         * config/fr30/fr30.c: Likewise.
16222         * config/frv/frv.c: Likewise.
16223         * config/ft32/ft32.c: Likewise.
16224         * config/h8300/h8300.c: Likewise.
16225         * config/i386/i386.c: Likewise.
16226         * config/i386/winnt.c: Likewise.
16227         * config/ia64/ia64.c: Likewise.
16228         * config/iq2000/iq2000.c: Likewise.
16229         * config/lm32/lm32.c: Likewise.
16230         * config/m32c/m32c.c: Likewise.
16231         * config/m32r/m32r.c: Likewise.
16232         * config/m68k/m68k.c: Likewise.
16233         * config/mcore/mcore.c: Likewise.
16234         * config/mep/mep.c: Likewise.
16235         * config/microblaze/microblaze.c: Likewise.
16236         * config/mips/mips.c: Likewise.
16237         * config/mmix/mmix.c: Likewise.
16238         * config/mn10300/mn10300.c: Likewise.
16239         * config/moxie/moxie.c: Likewise.
16240         * config/msp430/msp430.c: Likewise.
16241         * config/nds32/nds32.c: Likewise.
16242         * config/nds32/nds32-cost.c: Likewise.
16243         * config/nds32/nds32-fp-as-gp.c: Likewise.
16244         * config/nds32/nds32-intrinsic.c: Likewise.
16245         * config/nds32/nds32-isr.c: Likewise.
16246         * config/nds32/nds32-md-auxiliary.c: Likewise.
16247         * config/nds32/nds32-memory-manipulation.c: Likewise.
16248         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16249         * config/nds32/nds32-predicates.c: Likewise.
16250         * config/nios2/nios2.c: Likewise.
16251         * config/nvptx/nvptx.c: Likewise.
16252         * config/pa/pa.c: Likewise.
16253         * config/pdp11/pdp11.c: Likewise.
16254         * config/rl78/rl78.c: Likewise.
16255         * config/rs6000/rs6000.c: Likewise.
16256         * config/rx/rx.c: Likewise.
16257         * config/s390/s390.c: Likewise.
16258         * config/sh/sh.c: Likewise.
16259         * config/sh/sh-mem.cc: Likewise.
16260         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16261         * config/sh/sh_treg_combine.cc: Likewise.
16262         * config/sparc/sparc.c: Likewise.
16263         * config/spu/spu.c: Likewise.
16264         * config/stormy16/stormy16.c: Likewise.
16265         * config/tilegx/tilegx.c: Likewise.
16266         * config/tilepro/tilepro.c: Likewise.
16267         * config/v850/v850.c: Likewise.
16268         * config/vax/vax.c: Likewise.
16269         * config/visium/visium.c: Likewise.
16270         * config/xtensa/xtensa.c: Likewise.
16272 2015-07-10  Richard Biener  <rguenther@suse.de>
16274         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16275         (decision_tree::gen_gimple): Likewise.
16276         (decision_tree::gen_generic): Likewise.
16278 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
16280         PR target/66813
16281         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16282         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16284 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
16286         PR middle-end/66820
16287         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16288         or ORT_TASK contexts.
16289         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16290         is non-zero.
16292 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16294         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16295         above function.
16297 2015-07-10  Tom de Vries  <tom@codesourcery.com>
16299         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16300         insert nit + 1 bound.
16302 2015-07-10  Richard Biener  <rguenther@suse.de>
16304         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16305         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16306         (if_convertible_loop_p_1): For this always compute bb predicates.
16307         (if_convertible_loop_p): And free them.
16309 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16311         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16312         in dump message.
16314 2015-07-10  Richard Biener  <rguenther@suse.de>
16316         PR tree-optimization/66823
16317         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16318         inverted predicate.
16320 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
16322         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16323         to handle mips[32|64]r3 and mips[32|64]r5.
16325 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
16327         PR middle-end/66633
16328         * tree-nested.c (get_static_chain): Or in a flag into
16329         info->static_chain_added.
16330         (get_frame_field, get_nonlocal_debug_decl): Likewise.
16331         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16332         2015-07-01 changes.
16333         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16334         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16335         add it to clauses.
16337         PR tree-optimization/66718
16338         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16339         field.
16340         (vect_simd_lane_linear): New function.
16341         (vectorizable_simd_clone_call): Support using linear arguments for
16342         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16344 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16346         PR target/66821
16347         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16349 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16351         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16352         Use machine mode, not enum machine_mode in the prototype.
16354         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16355         classify 128-bit floating point support.
16356         (FLOAT128_IBM_P): Likewise.
16357         (FLOAT128_VECTOR_P): Likewise.
16358         (FLOAT128_2REG_P): Likewise.
16359         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16360         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16361         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16362         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16364         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16365         tests against TFmode/TDmode, since those modes do not use VSX
16366         addresses.
16367         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16368         support.
16369         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16370         tests against TFmode, etc.
16371         (invalid_e500_subreg): Add tests against IFmode/KFmode.
16372         (reg_offset_addressing_ok_p): Likewise.
16373         (rs6000_legitimate_offset_address_p): Likewise.
16374         (rs6000_legitimize_address): Likewise.
16375         (rs6000_legitimize_reload_address): Likewise.
16376         (rs6000_legitimate_address_p): Clean up tests against TFmode and
16377         TDmode to use the new helper macros, which will include IFmode and
16378         KFmode.
16379         (rs6000_emit_move): Likewise.
16380         (rs6000_darwin64_record_arg_recurse): Likewise.
16381         (print_operand): Likewise.
16382         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16383         that uses a single vector register as a vector and not as a
16384         floating point register in terms of the calling sequence.
16385         (rs6000_discover_homogeneous_aggregate): Likewise.
16386         (rs6000_return_in_memory): Likewise.
16387         (init_cumulative_args): Likewise.
16388         (rs6000_function_arg_boundary): Likewise.
16389         (rs6000_function_arg_advance_1): Likewise.
16390         (rs6000_function_arg): Likewise.
16391         (rs6000_pass_by_reference): Likewise.
16392         (rs6000_gimplify_va_arg): Likewise.
16393         (rs6000_secondary_reload_memory): Use machine_mode not enum
16394         machine mode.
16395         (rs6000_split_multireg_move): Use new helper macros.
16396         (spe_func_has_64bit_regs_p): Likewise.
16397         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16398         (output_toc): Use new helper macros.
16399         (rs6000_register_move_cost): Likewise.
16400         (rs6000_function_value): Add IEEE 128-bit floating point calling
16401         sequence support.
16402         (rs6000_libcall_value): Likewise.
16403         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16404         floating point support.
16405         (rs6000_vector_mode_supported_p): Likewise.
16407 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
16409         PR rtl-optimization/66782
16410         * lra-int.h (struct lra_insn_recog_data): Add comment about
16411         clobbered hard regs for arg_hard_regs.
16412         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16413         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16414         Add condition for processing used hard regs.
16415         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16416         Process clobbered hard regs.
16418 2015-07-09  Michael Matz  <matz@suse.de>
16420         * genmatch.c (fprintf_indent): New function.
16421         (operand::gen_transform): Add indent parameter.
16422         (expr::gen_transform, c_expr::gen_transform,
16423         capture::gen_transform): Ditto and use fprintf_indent.
16424         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16425         (dt_operand::gen, dt_operand::gen_predicate,
16426         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16427         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16428         (decision_tree::gen_gimple): Adjust calls and indent generated
16429         code.
16430         (decision_tree::gen_generic): Ditto.
16431         (write_predicate): Ditto.
16433 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
16435         PR target/66814
16436         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16437         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16438         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16439         {GENERAL,SSE,MMX}_REG_P where appropriate.
16441 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
16443         * lto-streamer.h: Don't include target.h and alloc-pool.h.
16444         * builtins.c: Adjust includes.
16445         * gimple.c: Likewise.
16446         * ipa-icf.c: Likewise.
16447         * lto-opts.c: Likewise.
16448         * ipa-reference.c: Likewise.
16449         * lto-section-out.c: Likewise.
16450         * lto-streamer-in.c: Likewise.
16451         * lto-streamer-out.c: Likewise.
16452         * opts-global.c: Likewise.
16453         * symtab.c: Likewise.
16454         * tree-chkp.c: Likewise.
16455         * tree-ssa-live.c: Likewise.
16456         * tree-streamer-in.c: Likewise.
16457         * tree-streamer-out.c: Likewise.
16458         * config/darwin.c: Likewise.
16459         * config/i386/winnt.c: Likewise.
16461 2015-07-09  Richard Biener  <rguenther@suse.de>
16463         * genmatch.c (struct expr): Add force_single_use flag.
16464         (expr::expr): Add copy constructor.
16465         (capture_info::walk_match): Gather force_single_use captures.
16466         (expr::gen_transform): Use possibly NULLified sequence.
16467         (dt_simplify::gen): Apply single-use restrictions by NULLifying
16468         seq if any constrained expr is not single-use.
16469         (parser::parse_expr): Refactor to allow multiple flags.  Handle
16470         's' flag to force an expression have a single-use if the pattern
16471         simplifies to more than one statement.
16472         * match.pd: Convert most single_use conditionals to :s flags.
16474 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16476         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
16477         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16478         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
16480 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
16482         * flags.h: Don't include flag-types.h or options.h.
16483         * opts-common.c: Adjust includes.
16484         * opts-global.c: Likewise.
16485         * common/config/epiphany/epiphany-common.c: Likewise.
16487 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16489         PR target/66818
16490         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
16491         for IA MCU.
16493 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16495         PR target/66817
16496         * config/i386/i386.c (ix86_return_in_memory): Return true
16497         if int_size_in_bytes returns negative for IA MCU.
16499 2015-07-09  Marek Polacek  <polacek@redhat.com>
16501         PR tree-optimization/66718
16502         * Makefile.in (OBJS): Add gimple-laddress.o.
16503         * passes.def: Schedule pass_laddress.
16504         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
16505         * tree-pass.h (make_pass_laddress): Declare.
16506         * gimple-laddress.c: New file.
16508 2015-07-09  Richard Biener  <rguenther@suse.de>
16510         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
16512 2015-07-09  Richard Biener  <rguenther@suse.de>
16514         PR tree-optimization/66807
16515         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
16517 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
16519         * function.c (stack_protect_epilogue): Use if rather than switch for
16520         check targetm.have_stack_protect_test.
16522 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16524         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
16525         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
16526         * config/arc/arc.h: Likewise.
16527         * config/arm/arm.h: Likewise.
16528         * config/bfin/bfin.h: Likewise.
16529         * config/epiphany/epiphany.h: Likewise.
16530         * config/frv/frv.h: Likewise.
16531         * config/ia64/ia64.h: Likewise.
16532         * config/iq2000/iq2000.h: Likewise.
16533         * config/lm32/lm32.h: Likewise.
16534         * config/m32r/m32r.h: Likewise.
16535         * config/mcore/mcore.h: Likewise.
16536         * config/mep/mep.h: Likewise.
16537         * config/microblaze/microblaze.h: Likewise.
16538         * config/mips/mips.h: Likewise.
16539         * config/mmix/mmix.h: Likewise.
16540         * config/mn10300/mn10300.h: Likewise.
16541         * config/nds32/nds32.h: Likewise.
16542         * config/nios2/nios2.h: Likewise.
16543         * config/pa/pa.h: Likewise.
16544         * config/rl78/rl78.h: Likewise.
16545         * config/sh/sh.h: Likewise.
16546         * config/sparc/sparc.h: Likewise.
16547         * config/stormy16/stormy16.h: Likewise.
16548         * config/tilegx/tilegx.h: Likewise.
16549         * config/tilepro/tilepro.h: Likewise.
16550         * config/v850/v850.h: Likewise.
16551         * config/xtensa/xtensa.h: Likewise.
16552         * doc/tm.texi: Regenerate.
16553         * doc/tm.texi.in: Adjust.
16554         * combine.c (simplify_set): Likewise.
16555         (simplify_comparison): Likewise.
16556         * expr.c (store_constructor): Likewise.
16557         * internal-fn.c (expand_arith_overflow): Likewise.
16558         * reload.c (push_reload): Likewise.
16559         (find_reloads): Likewise.
16560         (find_reloads_subreg_address): Likewise.
16561         * reload1.c (eliminate_regs_1): Likewise.
16562         * rtlanal.c (nonzero_bits1): Likewise.
16563         (num_sign_bit_copies1): Likewise.
16564         * simplify-rtx.c (simplify_truncation): Likewise.
16566 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16568         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
16569         of AUTO_INC_DEC with the preprocessor.
16570         * combine.c (combine_instructions): Likewise.
16571         (can_combine_p): Likewise.
16572         (try_combine): Likewise.
16573         * emit-rtl.c (try_split): Likewise.
16574         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16575         * lower-subreg.c (resolve_simple_move): Likewise.
16576         * lra.c (update_inc_notes): Likewise.
16577         * recog.c (asm_operand_ok): Likewise.
16578         (constrain_operands): Likewise.
16579         * regrename.c (scan_rtx_address): Likewise.
16580         * reload.c (update_auto_inc_notes): Likewise.
16581         (reg_inc_found_and_valid_p): Likewise.
16582         * reload1.c (reload): Likewise.
16583         (emit_input_reload_insns): Likewise.
16584         (delete_output_reload): Likewise.
16585         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16586         * valtrack.c (cleanup_auto_inc_dec): Likewise.
16588 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16590         * rtl.h: Always define AUTO_INC_DEC.
16591         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
16592         * combine.c (combine_instructions): Likewise.
16593         (can_combine_p): Likewise.
16594         (try_combine): Likewise.
16595         * emit-rtl.c (try_split): Likewise.
16596         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16597         * lower-subreg.c (resolve_simple_move): Likewise.
16598         * lra.c (update_inc_notes): Likewise.
16599         * recog.c (asm_operand_ok): Likewise.
16600         (constrain_operands): Likewise.
16601         * regrename.c (scan_rtx_address): Likewise.
16602         * reload.c (update_auto_inc_notes): Likewise.
16603         (find_equiv_reg): Likewise.
16604         * reload1.c (reload): Likewise.
16605         (reload_as_needed): Likewise.
16606         (choose_reload_regs): Likewise.
16607         (emit_input_reload_insns): Likewise.
16608         (delete_output_reload): Likewise.
16609         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16610         * valtrack.c (cleanup_auto_inc_dec): Likewise.
16612 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16614         * combine.c (can_combine_def_p): Don't check the value of
16615         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
16616         (combinable_i3pat): Likewise.
16617         (mark_used_regs_combine): Likewise.
16618         * regrename.c (rename_chains): Likewise.
16619         * reload.c (find_reloads_address): Likewise.
16620         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16622 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16624         * combine.c (update_rsp_from_reg_equal): Don't check if
16625         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
16626         (reg_nonzero_bits_for_combine): Likewise.
16627         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
16628         1.
16629         * config/frv/frv.h: Likewise.
16630         * config/lm32/lm32.h: Likewise.
16631         * config/mep/mep.h: Likewise.
16632         * config/mips/mips.h: Likewise.
16633         * config/rs6000/rs6000.h: Likewise.
16634         * config/sh/sh.h: Likewise.
16635         * config/tilegx/tilegx.h (enum reg_class): Likewise.
16636         * config/tilepro/tilepro.h: Likewise.
16637         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
16638         * doc/tm.texi: Regenerate.
16639         * doc/tm.texi.in: Adjust.
16640         * rtlanal.c (nonzero_bits1): Likewise.
16642 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16644         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
16645         with the preprocessor.
16646         (combine_instructions): Likewise.
16647         (try_combine): Likewise.
16648         (subst): Likewise.
16649         (distribute_notes): Likewise.
16651 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16653         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
16654         defined.
16655         (simplify_set): Likewise.
16656         * cse.c (cse_insn): Likewise.
16657         * fold-const.c (fold_single_bit_test): Likewise.
16658         (fold_unary_loc): Likewise.
16659         * postreload.c (reload_cse_simplify_set): Likewise.
16660         (reload_cse_simplify_operands): Likewise.
16662 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
16664         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
16665         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
16667 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
16669         PR target/66746
16670         * config/i386/x86intrin.h: Include <adxintrin.h> even if
16671         __iamcu__ is defined.
16673 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
16675         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
16677 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
16679         PR target/66523
16680         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
16681         names from preservation.
16683 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
16685         PR target/66806
16686         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
16687         change for IAMCU.
16688         (function_arg_advance_32): Don't pass vectors in registers for
16689         IAMCU.
16690         (function_arg_32): Likewise.
16691         (ix86_return_in_memory): Don't return vectors in registers for
16692         IAMCU.
16694 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
16696         PR middle-end/66334
16697         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
16698         hard regno live at the start of BB with incoming abnormal edges.
16699         * lra-lives.c (process_bb_lives): Ditto.
16701 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
16703         PR libgomp/65099
16704         * config/nvptx/mkoffload.c (main): Create an offload image only in
16705         64-bit configurations.
16707 2015-07-08  Martin Liska  <mliska@suse.cz>
16709         PR bootstrap/66744
16710         * tree-sra.c (create_access_1): Call ctor without brackets.
16711         (create_artificial_child_access): Likewise.
16713 2015-07-08  Richard Biener  <rguenther@suse.de>
16715         PR tree-optimization/66793
16716         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
16717         Properly split the block after stmts ending it.
16719 2015-07-08  Richard Biener  <rguenther@suse.de>
16721         PR tree-optimization/66794
16722         * passes.c (execute_function_todo): Assert that post-dominators
16723         are not computed.
16724         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
16725         Free post-dominators.
16727 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16729         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
16730         with early exit.
16732 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
16734         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
16735         more than or equal 8 and less than 32 when optimizing for size.
16737 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16739         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
16740         COSTS_N_INSNS (1) and increment it appropriately throughout the
16741         function.
16743 2015-07-08  Richard Biener  <rguenther@suse.de>
16745         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
16747 2015-07-08  Alan Modra  <amodra@gmail.com>
16749         * target.def (rtx_costs): Remove "code" param, add "mode".
16750         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
16751         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
16752         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
16753         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
16754         call.  Track mode when given in rtx.
16755         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
16756         (default_address_cost): Pass Pmode to rtx_cost.
16757         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
16758         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
16759         with NULL set.
16760         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
16761         (notreg_cost): Add mode param.  Use it.
16762         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
16763         mode param and pass to set_src_cost.  Update all calls.
16764         (hash_scan_set): Formatting.
16765         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
16766         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
16767         * hooks.h: Ditto.
16768         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
16769         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
16770         emit_store_flag): Update set_src_cost and rtx_cost calls.
16771         * auto-inc-dec.c (attempt_change): Likewise.
16772         * calls.c (precompute_register_parameters): Likewise.
16773         * combine.c (expand_compound_operation, make_extraction,
16774         force_to_mode, distribute_and_simplify_rtx): Likewise.
16775         * dojump.c (prefer_and_bit_test): Likewise.
16776         * dse.c (find_shift_sequence): Likewise.
16777         * expr.c (compress_float_constant): Likewise.
16778         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
16779         * ifcvt.c (noce_try_sign_mask): Likewise.
16780         * loop-doloop.c (doloop_optimize): Likewise.
16781         * loop-invariant.c (create_new_invariant): Likewise.
16782         * lower-subreg.c (shift_cost, compute_costs): Likewise.
16783         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
16784         lshift_cheap_p): Likewise.
16785         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
16786         try_replace_in_use, reload_cse_move2add): Likewise.
16787         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
16788         Likewise.
16789         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16790         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16791         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
16792         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16793         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
16794         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
16795         to rtx_cost calls.
16796         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
16797         * config/arc/arc.c (arc_rtx_costs): Likewise.
16798         * config/arm/arm.c (arm_rtx_costs): Likewise.
16799         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
16800         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
16801         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
16802         * config/cris/cris.c (cris_rtx_costs): Likewise.
16803         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
16804         * config/frv/frv.c (frv_rtx_costs): Likewise.
16805         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
16806         * config/i386/i386.c (ix86_rtx_costs): Likewise.
16807         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
16808         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
16809         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
16810         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
16811         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
16812         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
16813         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
16814         * config/mep/mep.c (mep_rtx_cost): Likewise.
16815         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
16816         * config/mips/mips.c (mips_rtx_costs): Likewise.
16817         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
16818         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
16819         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
16820         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
16821         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
16822         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
16823         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
16824         * config/pa/pa.c (hppa_rtx_costs): Likewise.
16825         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
16826         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
16827         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
16828         * config/s390/s390.c (s390_rtx_costs): Likewise.
16829         * config/sh/sh.c (sh_rtx_costs): Likewise.
16830         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
16831         * config/spu/spu.c (spu_rtx_costs): Likewise.
16832         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
16833         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
16834         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
16835         * config/v850/v850.c (v850_rtx_costs): Likewise.
16836         * config/vax/vax.c (vax_rtx_costs): Likewise.
16837         * config/visium/visium.c (visium_rtx_costs): Likewise.
16838         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
16839         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
16840         "code" param, and pass as outer_code to first rtx_cost call.  Pass
16841         mode to rtx_cost calls.
16842         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
16843         calls.
16844         (aarch64_rtx_costs_wrapper): Update.
16845         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
16846         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
16847         rtx_cost calls.
16848         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
16849         and rtx_cost calls.
16850         (avr_operand_rtx_cost): Similarly.
16851         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
16852         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
16853         * config/mips/mips.c (mips_stack_address_p): Comment typo.
16854         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
16855         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
16856         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
16857         rtx_cost.
16858         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
16859         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
16860         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
16861         * doc/tm.texi: Regenerate.
16863 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
16865         * tree-core.h: Include symtab.h.
16866         * rtl.h: Include hard-reg-set.h but not flags.h.
16867         (HARD_CONST): Remove condition compilation involving HARD_CONST since
16868         hard-reg-set.h is always included.
16869         * regs.h: Don't include hard-reg-set.h or rtl.h.
16870         * cfg.h: Include dominance.h.
16871         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
16872         * backend.h: New.  Aggregate commonly used backend header files.
16873         * gimple-ssa.h: Don't include tree-hasher.h.
16874         * ssa.h: New.  Aggregate commonly used SSA header files.
16875         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
16876         * sel-sched-ir.h: Flatten includes.
16877         * lra-int.h: Flatten completely.
16878         * sel-sched-dump.h: Flatten includes.
16879         * ira-int.h: Flatten includes.
16880         * gimple-streamer.h: Remove all includes.
16881         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
16882         * resource.h: Flatten hard-reg-set.h and df.h.
16883         * sched-int.h: Flatten insn-arrt.h and df.h.
16884         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
16885         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
16886         * genattrtab.c (write_header): Adjust generated includes.
16887         * genautomata.c (main): Likewise.
16888         * genconditions.c (write-header): Likewise.
16889         * genemit.c (main): Likewise.
16890         * gengtype.c (open_base_files): Likewise.
16891         * genopinit.c (main): Likewise.
16892         * genoutput.c (output_prologue): Likewise.
16893         * genpeep.c (main): Likewise.
16894         * genpreds.c (write_insn_preds_c): Likewise.
16895         * genrecog.c (write_header): Likewise.
16896         * alias.c: Adjust includes.
16897         * asan.c: Likewise.
16898         * attribs.c: Likewise.
16899         * auto-inc-dec.c: Likewise.
16900         * auto-profile.c: Likewise.
16901         * bb-reorder.c: Likewise.
16902         * bt-load.c: Likewise.
16903         * builtins.c: Likewise.
16904         * caller-save.c: Likewise.
16905         * calls.c: Likewise.
16906         * ccmp.c: Likewise.
16907         * cfg.c: Likewise.
16908         * cfganal.c: Likewise.
16909         * cfgbuild.c: Likewise.
16910         * cfgcleanup.c: Likewise.
16911         * cfgexpand.c: Likewise.
16912         * cfghooks.c: Likewise.
16913         * cfgloop.c: Likewise.
16914         * cfgloopanal.c: Likewise.
16915         * cfgloopmanip.c: Likewise.
16916         * cfgrtl.c: Likewise.
16917         * cgraph.c: Likewise.
16918         * cgraphbuild.c: Likewise.
16919         * cgraphclones.c: Likewise.
16920         * cgraphunit.c: Likewise.
16921         * cilk-common.c: Likewise.
16922         * combine-stack-adj.c: Likewise.
16923         * combine.c: Likewise.
16924         * compare-elim.c: Likewise.
16925         * convert.c: Likewise.
16926         * coverage.c: Likewise.
16927         * cppbuiltin.c: Likewise.
16928         * cprop.c: Likewise.
16929         * cse.c: Likewise.
16930         * cselib.c: Likewise.
16931         * data-streamer-in.c: Likewise.
16932         * data-streamer-out.c: Likewise.
16933         * data-streamer.c: Likewise.
16934         * dbxout.c: Likewise.
16935         * dce.c: Likewise.
16936         * ddg.c: Likewise.
16937         * debug.c: Likewise.
16938         * df-core.c: Likewise.
16939         * df-problems.c: Likewise.
16940         * df-scan.c: Likewise.
16941         * dfp.c: Likewise.
16942         * dojump.c: Likewise.
16943         * dominance.c: Likewise.
16944         * domwalk.c: Likewise.
16945         * double-int.c: Likewise.
16946         * dse.c: Likewise.
16947         * dumpfile.c: Likewise.
16948         * dwarf2asm.c: Likewise.
16949         * dwarf2cfi.c: Likewise.
16950         * dwarf2out.c: Likewise.
16951         * emit-rtl.c: Likewise.
16952         * et-forest.c: Likewise.
16953         * except.c: Likewise.
16954         * explow.c: Likewise.
16955         * expmed.c: Likewise.
16956         * expr.c: Likewise.
16957         * final.c: Likewise.
16958         * fixed-value.c: Likewise.
16959         * fold-const.c: Likewise.
16960         * function.c: Likewise.
16961         * fwprop.c: Likewise.
16962         * gcc-plugin.h: Likewise.
16963         * gcse-common.c: Likewise.
16964         * gcse.c: Likewise.
16965         * generic-match-head.c: Likewise.
16966         * ggc-page.c: Likewise.
16967         * gimple-builder.c: Likewise.
16968         * gimple-expr.c: Likewise.
16969         * gimple-fold.c: Likewise.
16970         * gimple-iterator.c: Likewise.
16971         * gimple-low.c: Likewise.
16972         * gimple-match-head.c: Likewise.
16973         * gimple-pretty-print.c: Likewise.
16974         * gimple-ssa-isolate-paths.c: Likewise.
16975         * gimple-ssa-strength-reduction.c: Likewise.
16976         * gimple-streamer-in.c: Likewise.
16977         * gimple-streamer-out.c: Likewise.
16978         * gimple-walk.c: Likewise.
16979         * gimple.c: Likewise.
16980         * gimplify-me.c: Likewise.
16981         * gimplify.c: Likewise.
16982         * godump.c: Likewise.
16983         * graph.c: Likewise.
16984         * graphite-blocking.c: Likewise.
16985         * graphite-dependences.c: Likewise.
16986         * graphite-interchange.c: Likewise.
16987         * graphite-isl-ast-to-gimple.c: Likewise.
16988         * graphite-optimize-isl.c: Likewise.
16989         * graphite-poly.c: Likewise.
16990         * graphite-scop-detection.c: Likewise.
16991         * graphite-sese-to-poly.c: Likewise.
16992         * graphite.c: Likewise.
16993         * haifa-sched.c: Likewise.
16994         * hw-doloop.c: Likewise.
16995         * ifcvt.c: Likewise.
16996         * init-regs.c: Likewise.
16997         * internal-fn.c: Likewise.
16998         * ipa-chkp.c: Likewise.
16999         * ipa-comdats.c: Likewise.
17000         * ipa-cp.c: Likewise.
17001         * ipa-devirt.c: Likewise.
17002         * ipa-icf-gimple.c: Likewise.
17003         * ipa-icf.c: Likewise.
17004         * ipa-inline-analysis.c: Likewise.
17005         * ipa-inline-transform.c: Likewise.
17006         * ipa-inline.c: Likewise.
17007         * ipa-polymorphic-call.c: Likewise.
17008         * ipa-profile.c: Likewise.
17009         * ipa-prop.c: Likewise.
17010         * ipa-pure-const.c: Likewise.
17011         * ipa-ref.c: Likewise.
17012         * ipa-reference.c: Likewise.
17013         * ipa-split.c: Likewise.
17014         * ipa-utils.c: Likewise.
17015         * ipa-visibility.c: Likewise.
17016         * ipa.c: Likewise.
17017         * ira-build.c: Likewise.
17018         * ira-color.c: Likewise.
17019         * ira-conflicts.c: Likewise.
17020         * ira-costs.c: Likewise.
17021         * ira-emit.c: Likewise.
17022         * ira-lives.c: Likewise.
17023         * ira.c: Likewise.
17024         * jump.c: Likewise.
17025         * langhooks.c: Likewise.
17026         * lcm.c: Likewise.
17027         * loop-doloop.c: Likewise.
17028         * loop-init.c: Likewise.
17029         * loop-invariant.c: Likewise.
17030         * loop-iv.c: Likewise.
17031         * loop-unroll.c: Likewise.
17032         * lower-subreg.c: Likewise.
17033         * lra-assigns.c: Likewise.
17034         * lra-coalesce.c: Likewise.
17035         * lra-constraints.c: Likewise.
17036         * lra-eliminations.c: Likewise.
17037         * lra-lives.c: Likewise.
17038         * lra-remat.c: Likewise.
17039         * lra-spills.c: Likewise.
17040         * lra.c: Likewise.
17041         * lto-cgraph.c: Likewise.
17042         * lto-compress.c: Likewise.
17043         * lto-opts.c: Likewise.
17044         * lto-section-in.c: Likewise.
17045         * lto-section-out.c: Likewise.
17046         * lto-streamer-in.c: Likewise.
17047         * lto-streamer-out.c: Likewise.
17048         * lto-streamer.c: Likewise.
17049         * mcf.c: Likewise.
17050         * mode-switching.c: Likewise.
17051         * modulo-sched.c: Likewise.
17052         * omega.c: Likewise.
17053         * omp-low.c: Likewise.
17054         * optabs.c: Likewise.
17055         * opts-global.c: Likewise.
17056         * passes.c: Likewise.
17057         * plugin.c: Likewise.
17058         * postreload-gcse.c: Likewise.
17059         * postreload.c: Likewise.
17060         * predict.c: Likewise.
17061         * print-rtl.c: Likewise.
17062         * print-tree.c: Likewise.
17063         * profile.c: Likewise.
17064         * real.c: Likewise.
17065         * realmpfr.c: Likewise.
17066         * recog.c: Likewise.
17067         * ree.c: Likewise.
17068         * reg-stack.c: Likewise.
17069         * regcprop.c: Likewise.
17070         * reginfo.c: Likewise.
17071         * regrename.c: Likewise.
17072         * regstat.c: Likewise.
17073         * reload.c: Likewise.
17074         * reload1.c: Likewise.
17075         * reorg.c: Likewise.
17076         * resource.c: Likewise.
17077         * rtl-chkp.c: Likewise.
17078         * rtlanal.c: Likewise.
17079         * rtlhooks.c: Likewise.
17080         * sanopt.c: Likewise.
17081         * sched-deps.c: Likewise.
17082         * sched-ebb.c: Likewise.
17083         * sched-rgn.c: Likewise.
17084         * sched-vis.c: Likewise.
17085         * sdbout.c: Likewise.
17086         * sel-sched-dump.c: Likewise.
17087         * sel-sched-ir.c: Likewise.
17088         * sel-sched.c: Likewise.
17089         * sese.c: Likewise.
17090         * shrink-wrap.c: Likewise.
17091         * simplify-rtx.c: Likewise.
17092         * stack-ptr-mod.c: Likewise.
17093         * stmt.c: Likewise.
17094         * stor-layout.c: Likewise.
17095         * store-motion.c: Likewise.
17096         * stringpool.c: Likewise.
17097         * symtab.c: Likewise.
17098         * target-globals.c: Likewise.
17099         * targhooks.c: Likewise.
17100         * toplev.c: Likewise.
17101         * tracer.c: Likewise.
17102         * trans-mem.c: Likewise.
17103         * tree-affine.c: Likewise.
17104         * tree-browser.c: Likewise.
17105         * tree-call-cdce.c: Likewise.
17106         * tree-cfg.c: Likewise.
17107         * tree-cfgcleanup.c: Likewise.
17108         * tree-chkp-opt.c: Likewise.
17109         * tree-chkp.c: Likewise.
17110         * tree-chrec.c: Likewise.
17111         * tree-complex.c: Likewise.
17112         * tree-data-ref.c: Likewise.
17113         * tree-dfa.c: Likewise.
17114         * tree-diagnostic.c: Likewise.
17115         * tree-dump.c: Likewise.
17116         * tree-eh.c: Likewise.
17117         * tree-emutls.c: Likewise.
17118         * tree-if-conv.c: Likewise.
17119         * tree-inline.c: Likewise.
17120         * tree-into-ssa.c: Likewise.
17121         * tree-iterator.c: Likewise.
17122         * tree-loop-distribution.c: Likewise.
17123         * tree-nested.c: Likewise.
17124         * tree-nrv.c: Likewise.
17125         * tree-object-size.c: Likewise.
17126         * tree-outof-ssa.c: Likewise.
17127         * tree-parloops.c: Likewise.
17128         * tree-phinodes.c: Likewise.
17129         * tree-predcom.c: Likewise.
17130         * tree-pretty-print.c: Likewise.
17131         * tree-profile.c: Likewise.
17132         * tree-scalar-evolution.c: Likewise.
17133         * tree-sra.c: Likewise.
17134         * tree-ssa-address.c: Likewise.
17135         * tree-ssa-alias.c: Likewise.
17136         * tree-ssa-ccp.c: Likewise.
17137         * tree-ssa-coalesce.c: Likewise.
17138         * tree-ssa-copy.c: Likewise.
17139         * tree-ssa-copyrename.c: Likewise.
17140         * tree-ssa-dce.c: Likewise.
17141         * tree-ssa-dom.c: Likewise.
17142         * tree-ssa-dse.c: Likewise.
17143         * tree-ssa-forwprop.c: Likewise.
17144         * tree-ssa-ifcombine.c: Likewise.
17145         * tree-ssa-live.c: Likewise.
17146         * tree-ssa-loop-ch.c: Likewise.
17147         * tree-ssa-loop-im.c: Likewise.
17148         * tree-ssa-loop-ivcanon.c: Likewise.
17149         * tree-ssa-loop-ivopts.c: Likewise.
17150         * tree-ssa-loop-manip.c: Likewise.
17151         * tree-ssa-loop-niter.c: Likewise.
17152         * tree-ssa-loop-prefetch.c: Likewise.
17153         * tree-ssa-loop-unswitch.c: Likewise.
17154         * tree-ssa-loop.c: Likewise.
17155         * tree-ssa-math-opts.c: Likewise.
17156         * tree-ssa-operands.c: Likewise.
17157         * tree-ssa-phiopt.c: Likewise.
17158         * tree-ssa-phiprop.c: Likewise.
17159         * tree-ssa-pre.c: Likewise.
17160         * tree-ssa-propagate.c: Likewise.
17161         * tree-ssa-reassoc.c: Likewise.
17162         * tree-ssa-sccvn.c: Likewise.
17163         * tree-ssa-scopedtables.c: Likewise.
17164         * tree-ssa-sink.c: Likewise.
17165         * tree-ssa-strlen.c: Likewise.
17166         * tree-ssa-structalias.c: Likewise.
17167         * tree-ssa-tail-merge.c: Likewise.
17168         * tree-ssa-ter.c: Likewise.
17169         * tree-ssa-threadedge.c: Likewise.
17170         * tree-ssa-threadupdate.c: Likewise.
17171         * tree-ssa-uncprop.c: Likewise.
17172         * tree-ssa-uninit.c: Likewise.
17173         * tree-ssa.c: Likewise.
17174         * tree-ssanames.c: Likewise.
17175         * tree-stdarg.c: Likewise.
17176         * tree-streamer-in.c: Likewise.
17177         * tree-streamer-out.c: Likewise.
17178         * tree-streamer.c: Likewise.
17179         * tree-switch-conversion.c: Likewise.
17180         * tree-tailcall.c: Likewise.
17181         * tree-vect-data-refs.c: Likewise.
17182         * tree-vect-generic.c: Likewise.
17183         * tree-vect-loop-manip.c: Likewise.
17184         * tree-vect-loop.c: Likewise.
17185         * tree-vect-patterns.c: Likewise.
17186         * tree-vect-slp.c: Likewise.
17187         * tree-vect-stmts.c: Likewise.
17188         * tree-vectorizer.c: Likewise.
17189         * tree-vrp.c: Likewise.
17190         * tree.c: Likewise.
17191         * tsan.c: Likewise.
17192         * ubsan.c: Likewise.
17193         * valtrack.c: Likewise.
17194         * value-prof.c: Likewise.
17195         * var-tracking.c: Likewise.
17196         * varasm.c: Likewise.
17197         * varpool.c: Likewise.
17198         * vmsdbgout.c: Likewise.
17199         * vtable-verify.c: Likewise.
17200         * web.c: Likewise.
17201         * wide-int.cc: Likewise.
17202         * xcoffout.c: Likewise.
17203         * config/aarch64/aarch64-builtins.c: Likewise.
17204         * config/aarch64/aarch64.c: Likewise.
17205         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17206         * config/alpha/alpha.c: Likewise.
17207         * config/arc/arc.c: Likewise.
17208         * config/arm/aarch-common.c: Likewise.
17209         * config/arm/arm-builtins.c: Likewise.
17210         * config/arm/arm-c.c: Likewise.
17211         * config/arm/arm.c: Likewise.
17212         * config/avr/avr-c.c: Likewise.
17213         * config/avr/avr-log.c: Likewise.
17214         * config/avr/avr.c: Likewise.
17215         * config/bfin/bfin.c: Likewise.
17216         * config/c6x/c6x.c: Likewise.
17217         * config/cr16/cr16.c: Likewise.
17218         * config/cris/cris.c: Likewise.
17219         * config/darwin-c.c: Likewise.
17220         * config/darwin.c: Likewise.
17221         * config/epiphany/epiphany.c: Likewise.
17222         * config/epiphany/mode-switch-use.c: Likewise.
17223         * config/epiphany/resolve-sw-modes.c: Likewise.
17224         * config/fr30/fr30.c: Likewise.
17225         * config/frv/frv.c: Likewise.
17226         * config/ft32/ft32.c: Likewise.
17227         * config/h8300/h8300.c: Likewise.
17228         * config/i386/i386-c.c: Likewise.
17229         * config/i386/i386.c: Likewise.
17230         * config/i386/msformat-c.c: Likewise.
17231         * config/i386/winnt-cxx.c: Likewise.
17232         * config/i386/winnt-stubs.c: Likewise.
17233         * config/i386/winnt.c: Likewise.
17234         * config/ia64/ia64-c.c: Likewise.
17235         * config/ia64/ia64.c: Likewise.
17236         * config/iq2000/iq2000.c: Likewise.
17237         * config/lm32/lm32.c: Likewise.
17238         * config/m32c/m32c-pragma.c: Likewise.
17239         * config/m32c/m32c.c: Likewise.
17240         * config/m32r/m32r.c: Likewise.
17241         * config/m68k/m68k.c: Likewise.
17242         * config/mcore/mcore.c: Likewise.
17243         * config/mep/mep-pragma.c: Likewise.
17244         * config/mep/mep.c: Likewise.
17245         * config/microblaze/microblaze-c.c: Likewise.
17246         * config/microblaze/microblaze.c: Likewise.
17247         * config/mips/mips.c: Likewise.
17248         * config/mmix/mmix.c: Likewise.
17249         * config/mn10300/mn10300.c: Likewise.
17250         * config/moxie/moxie.c: Likewise.
17251         * config/msp430/msp430-c.c: Likewise.
17252         * config/msp430/msp430.c: Likewise.
17253         * config/nds32/nds32-cost.c: Likewise.
17254         * config/nds32/nds32-fp-as-gp.c: Likewise.
17255         * config/nds32/nds32-intrinsic.c: Likewise.
17256         * config/nds32/nds32-isr.c: Likewise.
17257         * config/nds32/nds32-md-auxiliary.c: Likewise.
17258         * config/nds32/nds32-memory-manipulation.c: Likewise.
17259         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17260         * config/nds32/nds32-predicates.c: Likewise.
17261         * config/nds32/nds32.c: Likewise.
17262         * config/nios2/nios2.c: Likewise.
17263         * config/nvptx/nvptx.c: Likewise.
17264         * config/pa/pa.c: Likewise.
17265         * config/pdp11/pdp11.c: Likewise.
17266         * config/rl78/rl78-c.c: Likewise.
17267         * config/rl78/rl78.c: Likewise.
17268         * config/rs6000/rs6000-c.c: Likewise.
17269         * config/rs6000/rs6000.c: Likewise.
17270         * config/rx/rx.c: Likewise.
17271         * config/s390/s390-c.c: Likewise.
17272         * config/s390/s390.c: Likewise.
17273         * config/sh/sh-c.c: Likewise.
17274         * config/sh/sh-mem.cc: Likewise.
17275         * config/sh/sh.c: Likewise.
17276         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17277         * config/sh/sh_treg_combine.cc: Likewise.
17278         * config/sol2-c.c: Likewise.
17279         * config/sol2-cxx.c: Likewise.
17280         * config/sol2-stubs.c: Likewise.
17281         * config/sol2.c: Likewise.
17282         * config/sparc/sparc-c.c: Likewise.
17283         * config/sparc/sparc.c: Likewise.
17284         * config/spu/spu-c.c: Likewise.
17285         * config/spu/spu.c: Likewise.
17286         * config/stormy16/stormy16.c: Likewise.
17287         * config/tilegx/mul-tables.c: Likewise.
17288         * config/tilegx/tilegx-c.c: Likewise.
17289         * config/tilegx/tilegx.c: Likewise.
17290         * config/tilepro/mul-tables.c: Likewise.
17291         * config/tilepro/tilepro-c.c: Likewise.
17292         * config/tilepro/tilepro.c: Likewise.
17293         * config/v850/v850-c.c: Likewise.
17294         * config/v850/v850.c: Likewise.
17295         * config/vax/vax.c: Likewise.
17296         * config/visium/visium.c: Likewise.
17297         * config/vms/vms-c.c: Likewise.
17298         * config/vms/vms.c: Likewise.
17299         * config/vxworks.c: Likewise.
17300         * config/xtensa/xtensa.c: Likewise.
17302 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
17304         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17305         Remove operand constraints.  Change operand 2 predicate to
17306         nonmemory operand.  Limit const_int values to mode bitsize.  Only
17307         allow const_int values less than 32 when optimizing for size.
17308         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17309         Remove operand constraints.
17310         (*bt<mode>): Use SImode for const_int values less than 32.
17311         (regmode): Remove mode attribute.
17313 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
17315         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17316         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17317           moxie_legitimate_address_p): New functions.
17318           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17320 2015-07-07  Tom de Vries  <tom@codesourcery.com>
17322         PR tree-optimization/66642
17323         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17324         header comment.  Rename split_edge variable to edge_at_split.  Split
17325         exit edge to create new loop exit bb.  Insert loop exit phis in new
17326         loop exit bb.
17328 2015-07-07  Tom de Vries  <tom@codesourcery.com>
17330         * tree-cfg.c (get_virtual_phi): New function.
17331         * tree-cfg.h (get_virtual_phi): Declare.
17332         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17333         (rewrite_virtuals_into_loop_closed_ssa): New function.
17334         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17335         Declare.
17336         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17337         (transform_to_exit_first_loop_alt): Use
17338         rewrite_virtuals_into_loop_closed_ssa.
17340 2015-07-07  Richard Biener  <rguenther@suse.de>
17342         * fold-const.c (fold_binary_loc): Move
17343         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17344         * match.pd: ... here.
17345         Add (X * C1) % C2 -> 0 simplification pattern derived from
17346         extract_muldiv_1.
17348 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17350         PR target/66780
17351         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17352         change for target/65249.
17354 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
17356         * symtab.c (address_matters_1): Fix typo in comment above.
17357         (can_increase_alignment_p): Likewise.
17359 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17361         * function.c (free_after_compilation): Clear PROP_cfg in
17362         f->curr_properties.
17364 2015-07-07  Richard Biener  <rguenther@suse.de>
17366         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17367         add which use to.
17368         (add_control_edge): Remove excessive vertical space in dumping.
17369         (process_ssa_edge_worklist): Simulate at most one statement and
17370         return whether we did.  Do not simulate PHIs if they are in a
17371         BB not yet simulated.
17372         (ssa_propagate): Adjust to always drain the BB worklist whenever
17373         a BB is available there, likewise the VARYING edges list before
17374         the interesting edge list.
17376 2015-07-07  Christian Bruel  <christian.bruel@st.com>
17378         PR target/52144
17379         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17381 2015-07-07  Richard Biener  <rguenther@suse.de>
17383         PR middle-end/66739
17384         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17385         A - B.
17387 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
17389         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
17390         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
17391         Copy operand 0 to a temporary if !ext_register_operand.  Remove
17392         ancient extract_bit_field workaround.
17393         (insv<mode>_1): Rename from mov<mode>_insv_1.
17394         (*insvqi): Rename from *movqi_insv_2.
17395         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17396         for renamed insvsi_1.
17397         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17399 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17401         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
17402         call to nvptx_reorg_subreg.
17404 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
17406         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17407         * graphite-dependencies.c, graphite-interchange.c,
17408         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17409         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17410         Likewise.
17412 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
17414         * match.pd: Remove element_mode inside HONOR_*.
17415         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17416         (~X | X -> -1, ~X ^ X -> -1): Merge.
17417         * tree.c (build_each_one_cst): New function.
17418         * tree.h (build_each_one_cst): Likewise.
17420 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17422         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17423         PROCESSOR_IAMCU.
17425 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
17427         * config.gcc <mips*-*-*>: Add fused-madd.opt.
17428         * config/mips/mips.opt (mfused-madd): Remove.
17429         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17430         * config/mips/mips.h (TARGET_MIPS8000): New.
17431         (ISA_HAS_FP_MADD4_MSUB4): Remove.
17432         (ISA_HAS_FP_MADDF_MSUBF): Remove.
17433         (ISA_HAS_FP_MADD3_MSUB3): Remove.
17434         (ISA_HAS_NMADD4_NMSUB4): Remove.
17435         (ISA_HAS_NMADD3_NMSUB3): Remove.
17436         (ISA_HAS_FUSED_MADD4): New.
17437         (ISA_HAS_UNFUSED_MADD4): New.
17438         (ISA_HAS_FUSED_MADDF): New.
17439         (ISA_HAS_FUSED_MADD3): New.
17440         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17441         (*fma<mode>4_madd3) New.
17442         (*fma<mode>4_madd4) New.
17443         (*fma<mode>4_maddf) New.
17444         (fms<mode>4) New.
17445         (*fms<mode>4_msub3) New.
17446         (*fms<mode>4_msub4) New.
17447         (fnma<mode>4) New.
17448         (*fnma<mode>4_nmadd3) New.
17449         (*fnma<mode>4_nmadd4) New.
17450         (fnms<mode>4) New.
17451         (*fnms<mode>4_nmsub3) New.
17452         (*fnms<mode>4_nmsub4) New.
17453         (*madd4<mode>) Modify to be unfused only.
17454         (*msub4<mode>) Modify to be unfused only.
17455         (*nmadd4<mode>) Modify to be unfused only.
17456         (*nmsub4<mode>) Modify to be unfused only.
17457         (*madd3<mode>) Remove.
17458         (*msub3<mode>) Remove.
17459         (*nmadd3<mode>) Remove.
17460         (*nmsub3<mode>) Remove.
17461         (*nmadd3<mode>_fastmath) Remove.
17462         (*nmsub3<mode>_fastmath) Remove.
17463         (*nmadd4<mode>_fastmath) Update condition.
17464         (*nmsub4<mode>_fastmath) Update condition.
17466 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
17468         PR target/65956
17469         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
17470         alignment attribute, exploring one level down for records and arrays.
17472 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
17474         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
17475         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
17476         Copy operand 1 to a temporary if !ext_register_operand.  Remove
17477         ancient extract_bit_field workaround.
17478         (*extv<mode>): Rename from *mov<mode>_extv_1.
17479         (*extvqi): Rename from *movqi_extv_1.
17480         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
17481         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
17482         to a temporary if !ext_register_operand.  Remove ancient
17483         extract_bit_field workaround.
17484         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
17485         (*extzvqi): Rename from *movqi_extzv_2.
17486         (*testqi_ext_3): Remove modes from const_int_operand predicated
17487         operands.  Add "n" constraint.
17488         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
17489         operand.  Add "J" constraint.
17490         (*btsq, *btrq, *btcq peephole2s): Remove mode from
17491         const_0_to_63 predicated operand.
17492         (regmode): New insn attribute.
17493         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
17494         to nonmemory_operand.  Use regmode insn attribute.
17495         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
17496         (*jcc_bt<mode>_mask): Remove mode from operand 3.
17497         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
17498         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
17499         operands.  Use "N" constraint instead of "n".
17501 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
17503         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
17505 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17507         PR target/66749
17508         * config/i386/i386.c (iamcu_cost): New.
17509         (m_IAMCU): Likewise.
17510         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
17511         (processor_target_table): Add an entry for "iamcu".
17512         (processor_alias_table): Likewise.
17513         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
17514         (ix86_adjust_cost): Likewise.
17515         (ia32_multipass_dfa_lookahead): Likewise.
17516         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
17517         * config/i386/x86-tune.def: Updated for m_IAMCU.
17519 2015-07-06  Richard Biener  <rguenther@suse.de>
17521         PR tree-optimization/66772
17522         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
17523         values are available in the PHI node BB when there are
17524         still unexecutable edges.
17526 2015-07-06  Richard Biener  <rguenther@suse.de>
17528         PR tree-optimization/66767
17529         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17530         Make sure to build the alignment test on a SSA name without
17531         final alignment info valid only if the alignment test
17532         evaluates to true.
17534 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
17536         PR target/66620
17537         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
17538         loop start when inserting LSETUP.
17540 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17542         PR target/53383
17543         * config/i386/i386.c (ix86_option_override_internal): Allow
17544         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
17546 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17548         * read-md.c (decimal_string): Rename to ...
17549         (md_decimal_string): ... this.
17550         (handle_enum): Reflect this.
17552 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17554         PR target/66731
17555         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
17557 2015-07-06  Richard Biener  <rguenther@suse.de>
17559         PR middle-end/66759
17560         * match.pd: Add missing constraint of y to REAL_CST in
17561         REAL_CST - x CMP y to y - CST CMP x simplification.
17563 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
17565         PR tree-optimization/66757
17566         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
17568 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
17569             Sandra Loosemore <sandra@codesourcery.com>
17571         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
17572         Delete extern declaration.
17573         (gprel_constant_p): Add extern declaration.
17574         * config/nios2/constraints.md ("S"): Use gprel_constant_p
17575         instead of nios2_symbol_ref_in_small_data_p.
17576         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
17577         (nios2_symbol_ref_in_small_data_p): Make static.
17578         (gprel_constant_p): Make non-static.
17580 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
17582         * doc/fragments.texi (Target Fragment): Convert debian.org
17583         link to use https.
17584         * doc/install.texi (Configuration): Ditto.
17586 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
17588         PR tree-optimization/66718
17589         * tree-vect-stmts.c (vectorizable_call): Replace uses of
17590         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
17592         PR tree-optimization/66718
17593         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
17594         vectorizable_load, vectorizable_condition): Move vectype,
17595         nunits, ncopies computation after checking what kind of statement
17596         stmt is.
17598 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17600         * target-insns.def (extv, extzv, insv): New targetm instruction
17601         patterns.
17602         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
17603         interface.
17604         * recog.c (simplify_while_replacing): Likewise.
17606 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17608         * target-insns.def (doloop_begin, doloop_end): New targetm
17609         instruction patterns.
17610         * loop-init.c: Include target.h.
17611         (pass_loop2::gate): Use the new targetm patterns instead of
17612         HAVE_*/gen_* interface.
17613         (pass_rtl_doloop::gate): Likewise.
17614         (pass_rtl_doloop::execute): Remove preprocessor condition.
17615         * hw-doloop.c: Build unconditionally.
17616         * loop-doloop.c: Likewise.
17617         (doloop_optimize): Use the new targetm patterns instead of
17618         HAVE_*/gen_* interface.
17619         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
17620         * modulo-sched.c (doloop_register_get): Likewise.
17622 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17624         * target-insns.def (clear_cache): New targetm instruction pattern.
17625         * builtins.c (expand_builtin___clear_cache): Use it instead of
17626         HAVE_*/gen_* interface.
17628 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17630         * target-insns.def (allocate_stack, check_stack, probe_stack)
17631         (probe_stack_address, split_stack_prologue, split_stack_space_check):
17632         New targetm instruction patterns.
17633         * explow.c (allocate_dynamic_stack_space): Use them instead of
17634         HAVE_*/gen_* interface.
17635         (emit_stack_probe): Likewise.
17636         (probe_stack_range): Likewise.
17637         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17639 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17641         * target-insns.def (stack_protect_set, stack_protect_test): New
17642         targetm instruction patterns.
17643         * cfgexpand.c (stack_protect_prologue): Use them instead of
17644         HAVE_*/gen_* interface.
17645         * function.c (stack_protect_epilogue): Likewise.
17647 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17649         * expr.h (gen_move_insn_uncast): Delete.
17650         * expr.c (gen_move_insn_uncast): Delete.
17652 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17654         * target-insns.def (restore_stack_block, restore_stack_function)
17655         (restore_stack_nonlocal, save_stack_block, save_stack_function)
17656         (save_stack_nonlocal): New targetm instruction patterns.
17657         * builtins.c (expand_builtin_apply): Use them instead of
17658         HAVE_*/gen_* interface.
17659         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
17661 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17663         * target-insns.def (trap): New targetm instruction pattern.
17664         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
17665         interface.
17666         * explow.c (allocate_dynamic_stack_space): Likewise.
17667         * ifcvt.c (find_if_header): Likewise.
17669 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17671         * target-insns.def (prefetch): New targetm instruction pattern.
17672         * tree-ssa-loop-prefetch.c: Include targeth.
17673         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
17674         of HAVE_*/gen_* interface.
17675         * builtins.c (expand_builtin_prefetch): Likewise.
17676         * toplev.c (process_options): Likewise.
17678 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17680         * target-insns.def (untyped_call, untyped_return): New targetm
17681         instruction patterns.
17682         * builtins.c (expand_builtin_apply): Use them instead of
17683         HAVE_*/gen_* interface.
17684         (result_vector): Define unconditionally.
17686 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17688         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
17689         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
17690         (nonlocal_goto_receiver): New targetm instruction patterns.
17691         * builtins.c (expand_builtin_setjmp_setup): Use them instead
17692         of HAVE_*/gen_* interface.
17693         (expand_builtin_setjmp_receiver): Likewise.
17694         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
17695         * except.c (expand_dw2_landing_pad_for_region): Likewise.
17697 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17699         * target.def: Add code_for_* hooks.
17700         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
17701         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
17702         * target-insns.def (casesi, tablejump): New targetm instruction
17703         patterns.
17704         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
17705         (do_tablejump): Likewise.
17706         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
17707         (expand_sjlj_dispatch_table): Likewise.
17708         * targhooks.c (default_case_values_threshold): Likewise.
17710 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
17712         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
17713         Use rtx_insn * instead of rtx.
17714         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
17715         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
17716         (nios2_call_tls_get_addr): Likewise.
17717         (nios2_emit_expensive_div): Likewise.
17718         (nios2_emit_move_sequence): Change return type to bool.
17719         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
17720         Change return type to bool.
17722 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17724         PR target/66747
17725         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
17727 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
17729         PR target/66114
17730         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
17731         of register_operand.  Remove constraint.
17733 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
17735         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
17736         the first argument.
17738 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
17740         * attribs.c (decl_attributes): Guard inform with the return value
17741         of the preceding warning.
17743 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
17745         * doc/invoke.texi (moverride): Move to correct section.
17747 2015-07-03  Richard Biener  <rguenther@suse.de>
17749         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
17750         Copy from tree.c
17751         (dt_operand::gen_gimple_expr): After valueizing operands
17752         re-canonicalize operand order for commutative tree codes.
17754 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
17756         PR target/66746.
17757         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
17758         is defined.
17759         (__crc32w): Likewise.
17760         (__crc32d): Likewise.
17761         (__rdpmc): Likewise.
17762         (__rdtscp): Likewise.
17763         (_rdpmc): Likewise.
17764         (_rdtscp): Likewise.
17765         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
17766         is defined.
17768 2015-07-03  Richard Biener  <rguenther@suse.de>
17770         * fold-const.c (fold_mathfn_compare): Remove.
17771         (fold_inf_compare): Likewise.
17772         (fold_comparison): Move floating point comparison simplifications...
17773         * match.pd: ... to patterns here.  Introduce simple_comparisons
17774         operator list and use it for patterns formerly in fold_comparison.
17776 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
17778         PR tree-optimization/66119
17779         * toplev.c (process_options): Don't set up default values for
17780         the sra_max_scalarization_size_{speed,size} parameters.
17781         * tree-sra (analyze_all_variable_accesses): If no values
17782         have been set for the sra_max_scalarization_size_{speed,size}
17783         parameters, call get_move_ratio to get target defaults.
17785 2015-07-03  Richard Biener  <rguenther@suse.de>
17787         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
17788         * match.pd: ... here.
17790 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
17792         PR target/37072
17793         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
17794         is not actually the default on FreeBSD.
17796 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17798         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
17799         definition.
17800         (CMPGE_8HI): Likewise.
17801         (CMPGE_4SI): Likewise.
17802         (CMPGE_2DI): Likewise.
17803         (CMPGE_U16QI): Likewise.
17804         (CMPGE_U8HI): Likewise.
17805         (CMPGE_U4SI): Likewise.
17806         (CMPGE_U2DI): Likewise.
17807         (CMPLE_16QI): Likewise.
17808         (CMPLE_8HI): Likewise.
17809         (CMPLE_4SI): Likewise.
17810         (CMPLE_2DI): Likewise.
17811         (CMPLE_U16QI): Likewise.
17812         (CMPLE_U8HI): Likewise.
17813         (CMPLE_U4SI): Likewise.
17814         (CMPLE_U2DI): Likewise.
17815         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17816         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
17817         ALTIVEC_BUILTIN_VEC_CMPLE.
17818         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
17819         floating-point vector modes.
17820         (vector_nlt<mode>): New define_expand.
17821         (vector_nltu<mode>): Likewise.
17822         (vector_ngt<mode>): Likewise.
17823         (vector_ngtu<mode>): Likewise.
17825 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
17827         PR rtl-optimization/66706
17828         * combine.c (make_compound_operation): If an AND of SUBREG of
17829         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
17831 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
17833         * tree-pass.h (make_pass_ch_vect): New.
17834         * passes.def: Add pass_ch_vect just before pass_if_conversion.
17836         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
17837         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
17838         make_pass_ch_vect): New.
17839         (pass_ch): Extend ch_base.
17841         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
17842         (ch_base::copy_headers): ...here.
17844 2015-07-02  Richard Biener  <rguenther@suse.de>
17846         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
17847         * fold-const.c (get_pointer_modulus_and_residue): Remove.
17848         (fold_binary_loc): Implement (T)ptr & CST in terms of
17849         get_pointer_alignment_1.
17850         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
17851         Make sure to build the alignment test on a SSA name without
17852         final alignment info valid only after the prologue.
17854 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
17856         * config/cris/cris.md ("epilogue"): Remove condition.
17857         ("prologue"): Ditto.
17859 2015-07-02  Richard Biener  <rguenther@suse.de>
17861         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
17862         parameter to record a condition that is false.
17863         (record_conditions): When recording an extra NE_EXPR that is
17864         true also record a EQ_EXPR that is false.
17866 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
17868         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
17869         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
17870         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
17871         (set_iv, find_interesting_uses_address, add_candidate_1): New
17872         argument to alloc_iv.
17873         (find_interesting_uses_op, find_interesting_uses_cond): Don't
17874         duplicate struct iv.
17875         (free_loop_data): Don't free struct iv explicitly.
17876         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
17878 2015-07-01  DJ Delorie  <dj@redhat.com>
17880         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
17881         (LIB_SPEC): Add.
17882         (SUPPORTS_DISCRIMINATOR): Define.
17884 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
17886         PR bootstrap/66685
17887         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
17888         there are no CALLs in the same pattern.
17890 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17892         PR rtl-optimization/61047
17893         * rtlanal.c (get_initial_register_offset): New function.
17894         (rtx_addr_can_trap_p_1): Check offsets of stack references.
17896 2015-07-01  Richard Biener  <rguenther@suse.de>
17898         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
17899         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
17900         ~X CMP C -> X CMP' ~C to ...
17901         * match.pd: ... patterns here.
17903 2015-07-01  Nick Clifton  <nickc@redhat.com>
17905         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
17906         a 16-bit value into a 20-bit memory slot.
17908 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
17910         * doc/sourcebuild.texi (AArch64-specific attributes): Document
17911         "aarch64_tiny", "aarch64_small", "aarch64_large",
17912         "aarch64_little_endian", "aarch64_big_endian".
17914 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
17916         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
17917         Document "aarch64_small_fpic".
17919 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
17921         * configure.ac: Add check for aarch64 assembler -fpic relocation
17922         modifier support.
17923         * configure: Regenerate.
17924         * config.in: Regenerate.
17925         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
17926         to -fPIC if not support of -fpic relocation modifier in assembler.
17928 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
17930         PR bootstrap/66685
17931         * rtl.c (classify_insn): Handle returns in PARALLELs.
17933 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
17935         PR middle-end/66633
17936         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
17937         to true if the function is nested and if not optimizing.
17938         (convert_local_omp_clauses): Initialize need_frame to true if the
17939         function contains nested functions and if not optimizing.
17941 2015-07-01  Richard Biener  <rguenther@suse.de>
17943         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
17944         (X & Y) ^ Y -> ~X & Y transforms to ...
17945         * match.pd: ... here.
17947 2015-07-01  Richard Biener <rguenther@suse.de>
17949         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
17950         of converts to avoid uninteresting noise from the conversion
17951         simplifying patterns.
17953 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
17955         * config/c6x/c6x.c (try_rename_operands): Do not depend on
17956         gcc_assert evaluating its argument for side-effect.
17958 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
17960         PR target/64833
17961         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
17962         flag_pic is set.
17964 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17966         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
17967         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
17968         (hash_scc): Add this_ref_p and ref_p parameters and pass them
17969         to the inner DFS walk.
17971 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
17973         * target-insns.def (jump): New targetm instruction pattern.
17974         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
17975         instead of gen_jump.
17976         (fix_up_crossing_landing_pad): Likewise.
17977         (add_labels_and_missing_jumps): Likewise.
17978         (fix_crossing_conditional_branches): Likewise.
17979         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17980         (force_nonfallthru_and_redirect): Likewise.
17981         * cse.c (cse_insn): Likewise.
17982         * expmed.c (expand_divmod): Likewise.
17983         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
17984         * haifa-sched.c (init_before_recovery): Likewise.
17985         (sched_create_recovery_edges): Likewise.
17986         * ifcvt.c (find_cond_trap): Likewise.
17987         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
17988         (expand_float, expand_fix): Likewise.
17989         * stmt.c (emit_jump): Likewise.
17991 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
17993         * defaults.h (HAVE_load_multiple, gen_load_multiple)
17994         (HAVE_store_multiple, gen_store_multiple): Delete.
17995         * target-insns.def (load_multiple, store_multiple): New targetm
17996         instruction patterns.
17997         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
17998         of HAVE_*/gen_* interface.
18000 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18002         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18003         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18004         (gen_mem_signal_fence): Delete.
18005         * target-insns.def (mem_signal_fence, mem_thread_fence)
18006         (memory_barrier): New targetm instruction patterns.
18007         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18008         interface.
18009         (expand_mem_signal_fence): Likewise.
18011 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18013         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18014         * target-insns.def (epilogue, prologue, sibcall_prologue): New
18015         targetm instruction patterns.
18016         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18017         interface.
18018         * calls.c (expand_call): Likewise.
18019         * cfgrtl.c (cfg_layout_finalize): Likewise.
18020         * df-scan.c (df_get_entry_block_def_set): Likewise.
18021         (df_get_exit_block_use_set): Likewise.
18022         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18023         * final.c (final_start_function): Likewise.
18024         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18025         (reposition_prologue_and_epilogue_notes): Likewise.
18026         * reorg.c (find_end_label): Likewise.
18027         * toplev.c (process_options): Likewise.
18029 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
18031         * typed-splay-tree.h: New file.
18033 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
18035         PR debug/66691
18036         * lra-int.h (lra_substitute_pseudo): Add a parameter.
18037         (lra_substitute_pseudo_within_insn): Ditto.
18038         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
18039         of constant.
18040         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
18041         to lra_substitute_pseudo.
18042         * lra-lives.c (process_bb_lives): Add an argument to
18043         lra_substitute_pseudo_within_insn call.
18044         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18045         argument to lra_substitute_pseudo and
18046         lra_substitute_pseudo_within_insn calls.
18047         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18049 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18051         * configure: Regenerated.
18053 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18055         * config.gcc: Support i[34567]86-*-elfiamcu target.
18056         * config/i386/iamcu.h: New.
18057         * config/i386/i386.opt: Add -miamcu.
18058         * doc/invoke.texi: Document -miamcu.
18059         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
18060         off x87/MMX/SSE/AVX codegen for -miamcu.
18061         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18062         __iamcu/__iamcu__ for -miamcu.
18063         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18064         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18065         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18066         * config/i386/i386.c (ix86_option_override_internal): Ignore and
18067         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
18068         MCU by default.  Default long double to 64-bit for Intel MCU.
18069         Turn on -freg-struct-return for Intel MCU.  Issue an error when
18070         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18071         AVX is turned on.
18072         (function_arg_advance_32): Pass value whose size is no larger
18073         than 8 bytes in registers for Intel MCU.
18074         (function_arg_32): Likewise.
18075         (ix86_return_in_memory): Return value whose size is no larger
18076         than 8 bytes in registers for Intel MCU.
18077         (iamcu_alignment): New function.
18078         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18079         true.
18080         (ix86_local_alignment): Don't increase alignment for Intel MCU.
18081         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18082         true.
18084 2015-06-30  Marek Polacek  <polacek@redhat.com>
18086         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
18087         both operands of the resulting expression.
18089         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
18090         the final expression with the operand's type and then convert
18091         it to the type of the expression.
18093 2015-06-30  Richard Biener  <rguenther@suse.de>
18095         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18096         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18097         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18098         * match.pd: ... to patterns here.
18100 2015-06-30  Richard Biener  <rguenther@suse.de>
18102         PR tree-optimization/66704
18103         * tree-vect-data-refs.c (vect_setup_realignment): Use
18104         make_ssa_name for non-SSA name source.
18106 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
18108         PR middle-end/66702
18109         * omp-low.c (simd_clone_adjust): Handle addressable linear
18110         or uniform parameters or non-gimple type uniform parameters.
18112 2015-06-30  Richard Biener  <rguenther@suse.de>
18114         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18115         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18116         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18117         * match.pd: ... here.
18118         Add a few cases of A - B -> A + (-B) when B "easily" negates.
18119         Move (x & y) | x -> x and friends before
18120         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18122 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
18124         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18125         -mfix-ut699 is not specified.
18126         (leon3_load): Rename into...
18127         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
18128         is specified.
18130 2015-06-30  Marek Polacek  <polacek@redhat.com>
18132         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18133         * match.pd: ... here.
18135 2015-06-30  Richard Biener  <rguenther@suse.de>
18137         * target-insns.def (canonicalize_funcptr_for_compare): Add.
18138         * fold-const.c (build_range_check): Replace uses of
18139         HAVE_canonicalize_funcptr_for_compare.
18140         (fold_widened_comparison): Likewise.
18141         (fold_sign_changed_comparison): Likewise.
18142         * dojump.c: Include "target.h".
18143         (do_compare_and_jump): Replace uses of
18144         HAVE_canonicalize_funcptr_for_compare and
18145         gen_canonicalize_funcptr_for_compare.
18146         * expr.c (do_store_flag): Likewise.
18148 2015-06-30  Tom de Vries  <tom@codesourcery.com>
18150         PR tree-optimization/66652
18151         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18152         max_loop_iterations to determine if nit + 1 overflows.
18154 2015-06-30  Richard Biener  <rguenther@suse.de>
18156         * tree-vrp.c (register_edge_assert_for_2): Also register
18157         asserts for dominating conversion results.
18159 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
18161         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18162         field in struct iv.
18164 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
18166         PR target/66509
18167         * configure.ac: Fix filds and fildq test for 64-bit.
18168         * configure: Regenerated.
18170 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
18172         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18173         (nvptx_reorg): Here.  Keep the non-subreg pieces.
18175 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
18177         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18178         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18180 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
18182         * config/i386/i386.md (*jcc_1): Use %! in asm template.
18183         Set attribute "length_nobnd" instead of "length".
18184         (*jcc_2): Ditto.
18185         (jump): Ditto.
18186         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18188 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
18190         * config/nios2/nios2.c (nios2_delegitimize_address): Make
18191         assert less restrictive.
18193 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18195         PR fortran/66605
18196         * cgraphunit.c (cgraph_node::finalize_function): Do not call
18197         do_warn_unused_parameter.
18198         * function.c (do_warn_unused_parameter): Move from here.
18199         * function.h (do_warn_unused_parameter): Do not declare.
18201 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18203         PR target/65697
18204         * gcc.target/arm/armv-sync-comp-swap.c: New.
18205         * gcc.target/arm/armv-sync-op-acquire.c: New.
18206         * gcc.target/arm/armv-sync-op-full.c: New.
18207         * gcc.target/arm/armv-sync-op-release.c: New.
18209 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18211         PR target/65697
18212         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18213         initial acquire barrier with final barrier.
18215 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18217         PR target/65697
18218         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18219         initial acquire barrier with final barrier.
18221 2015-06-29  Richard Henderson  <rth@redhat.com>
18223         * config/i386/constraints.md (Bf): New constraint.
18224         * config/i386/i386-c.c (ix86_target_macros): Define
18225         __GCC_ASM_FLAG_OUTPUTS__.
18226         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18227         as flags outputs.
18228         * doc/extend.texi (FlagOutputOperands): Document them.
18230 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
18232         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18233         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18234         unspec name.
18235         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18236         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18237         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18238         (aarch64_symbol_context): Ditto.
18239         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18240         and use new pattern name.
18241         (aarch64_expand_mov_immediate): Ditto.
18242         (aarch64_print_operand): Ditto.
18243         (aarch64_classify_tls_symbol): Ditto.
18245 2015-06-29  Marek Polacek  <polacek@redhat.com>
18246             Marc Glisse  <marc.glisse@inria.fr>
18248         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18249         * match.pd: ... pattern here.
18251 2015-06-29  Tom de Vries  <tom@codesourcery.com>
18253         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18254         function structure.
18256 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18258         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18259         feature description, split out the native option, add a link to
18260         the feature documentation, rearrange and slightly rewrite text.
18261         (Aarch64 options, -mcpu): Likewise.
18262         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
18263         +rdma implies Adv. SIMD.
18265 2015-06-29  Marek Polacek  <polacek@redhat.com>
18267         PR c/66322
18268         * function.c (stack_protect_epilogue): Remove a cast to int.
18269         * doc/invoke.texi: Update -Wswitch-bool description.
18271 2015-06-29  Richard Biener  <rguenther@suse.de>
18273         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18274         * fold-const.c (fold_binary_loc): Move &A - &B simplification
18275         via ptr_difference_const ...
18276         * match.pd: ... here.
18277         When matching (X ^ Y) == Y also match with swapped operands.
18279 2015-06-29  Richard Biener  <rguenther@suse.de>
18281         * lto-streamer.h (LTO_major_version): Bump to 5.
18283 2015-06-29  Richard Biener  <rguenther@suse.de>
18285         PR tree-optimization/66677
18286         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18287         STMT_VINFO_VEC_STMT clobbering less strict.
18289 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
18291         PR middle-end/64130
18292         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18293         division, compute max and min when value ranges for dividend and
18294         divisor are available.
18296 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
18297             Sandra Loosemore <sandra@codesourcery.com>
18299         * regrename.h (regrename_do_replace): Change to return bool.
18300         * regrename.c (rename_chains): Check return value of
18301         regname_do_replace.
18302         (regrename_do_replace): Re-validate the modified insns and
18303         return bool status.
18304         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18305         Update to match rename_chains changes.
18306         * config/c6x/c6x.c (try_rename_operands): Assert that
18307         regrename_do_replace returns true.
18309 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
18311         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18312         operand 2 here.  Use copy_addr_to_reg to copy non-index
18313         register operand 2 to a temporary.
18314         (<mode>_stx): Ditto for operand 1.
18315         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18316         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18317         (ix86_store_bounds): Ditto.
18319 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
18321         * print-tree.c (print_node) [TREE_VEC]: Print its length.
18323 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
18325         * gimple.c (gimple_call_set_fndecl): Remove.
18326         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18327         build1_loc directly instead of build_fold_addr_expr_loc.
18329 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
18331         * hash-map.h (hash_map::traverse): Use the definition of the
18332         Key typedef rather than the typedef itself.
18334 2015-06-26  Martin Jambor  <mjambor@suse.cz>
18336         PR debug/66301
18337         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18338         NULL instead of calling dump_enabled_p.
18340 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18342         * config/aarch64/aarch64.opt: (override): New.
18343         * doc/invoke.texi (override): Document.
18344         * config/aarch64/aarch64.c (aarch64_flag_desc): New
18345         (aarch64_fusible_pairs): Likewise.
18346         (aarch64_tuning_flags): Likewise.
18347         (aarch64_tuning_override_function): Likewise.
18348         (aarch64_tuning_override_functions): Likewise.
18349         (aarch64_parse_one_option_token): Likewise.
18350         (aarch64_parse_boolean_options): Likewise.
18351         (aarch64_parse_fuse_string): Likewise.
18352         (aarch64_parse_tune_string): Likewise.
18353         (aarch64_parse_one_override_token): Likewise.
18354         (aarch64_parse_override_string): Likewise.
18355         (aarch64_override_options): Parse the -override string if it
18356         is present.
18358 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18360         * config/aarch64/aarch64-protos.h (tune_params): Remove
18361         const from members.
18362         (aarch64_tune_params): Remove const, change to no longer be
18363         a pointer.
18364         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18365         change to no longer be a pointer, initialize to generic_tunings.
18366         (aarch64_min_divisions_for_recip_mul): Change dereference of
18367         aarch64_tune_params to member access.
18368         (aarch64_reassociation_width): Likewise.
18369         (aarch64_rtx_mult_cost): Likewise.
18370         (aarch64_address_cost): Likewise.
18371         (aarch64_branch_cost): Likewise.
18372         (aarch64_rtx_costs): Likewise.
18373         (aarch64_register_move_cost): Likewise.
18374         (aarch64_memory_move_cost): Likewise.
18375         (aarch64_sched_issue_rate): Likewise.
18376         (aarch64_builtin_vectorization_cost): Likewise.
18377         (aarch64_override_options): Take a copy of the selected tuning
18378         struct in to aarch64_tune_params, rather than just setting
18379         a pointer, change dereferences of aarch64_tune_params to member
18380         accesses.
18381         (aarch64_override_options_after_change): Change dereferences of
18382         aarch64_tune_params to member access.
18383         (aarch64_macro_fusion_p): Likewise.
18384         (aarch_macro_fusion_pair_p): Likewise.
18385         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18387 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18389         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18390         (aarch64_tune_flags): Likewise.
18391         (AARCH64_TUNE_FMA_STEERING): Likewise.
18392         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18393         to AARCH64_FL_USE_FMA_STEERING_PASS.
18394         (cortex-a57.cortex-a53): Likewise.
18395         (cortex-a72): Use cortexa72_tunings.
18396         (cortex-a72.cortex-a53): Likewise.
18397         (exynos-m1): Likewise.
18398         * config/aarch64/aarch64-protos.h (tune_params): Add
18399         a field: extra_tuning_flags.
18400         * config/aarch64/aarch64-tuning-flags.def: New.
18401         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18402         (aarch64_extra_tuning_flags): Likewise.
18403         (aarch64_tune_params): Declare here.
18404         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18405         (cortexa53_tunings): Likewise.
18406         (cortexa57_tunings): Likewise.
18407         (thunderx_tunings): Likewise.
18408         (xgene1_tunings): Likewise.
18409         (cortexa72_tunings): New.
18410         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18411          (gate): Check against aarch64_tune_params.
18412         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18413         aarch64-protos.h.
18415 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18417         * config/aarch64/aarch64-fusion-pairs.def: New.
18418         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18419         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18420         aarch64_fusion_pairs.
18421         (AARCH64_FUSE_MOV_MOVK): Likewise.
18422         (AARCH64_FUSE_ADRP_ADD): Likewise.
18423         (AARCH64_FUSE_MOVK_MOVK): Likewise.
18424         (AARCH64_FUSE_ADRP_LDR): Likewise.
18425         (AARCH64_FUSE_CMP_BRANCH): Likewise.
18427 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
18429         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18430         SYMBOL_SMALL_GOT_28K.
18431         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18432         relocation modifiers.
18433         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18434         (ldr_got_small_28k_<mode>): New.
18435         (ldr_got_small_28k_sidi): New.
18436         * config/aarch64/iterators.md (got_modifier): New mode iterator.
18437         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18438         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18439         SYMBOL_SMALL_GOT_28K.
18440         (aarch64_rtx_costs): Add costs for new instruction sequences.
18441         (initialize_aarch64_code_model): Initialize new model.
18442         (aarch64_classify_symbol): Recognize new model and new symbol classification.
18443         (aarch64_asm_preferred_eh_data_format): Support new model.
18444         (aarch64_load_symref_appropriately): Generate new instruction
18445         sequences for -fpic.
18446         (TARGET_USE_PSEUDO_PIC_REG): New definition.
18447         (aarch64_use_pseudo_pic_reg): New function.
18449 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
18451         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18452         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
18453         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
18454         (aarch64_expand_mov_immediate): Ditto.
18455         (aarch64_print_operand): Ditto.
18456         (aarch64_classify_symbol): Ditto.
18458 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
18460         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
18462 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
18464         PR bootstrap/66638
18465         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
18466         assertion failed.  Remove assertion itself.
18468 2015-06-26  Richard Biener  <rguenther@suse.de>
18470         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
18471         and -A CMP CST -> A CMP -CST which is redundant with a pattern
18472         in match.pd.
18473         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
18474         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
18475         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
18476         * match.pd: ... patterns here.
18478 2015-06-26  Marek Polacek  <polacek@redhat.com>
18480         * match.pd ((x | y) & ~(x & y) -> x ^ y,
18481         (x | y) & (~x ^ y) -> x & y): New patterns.
18483 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
18485         * rtl.h (emit): Add an optional boolean parameter to control
18486         whether barriers are emitted.
18487         * emit-rtl.c (emit): Likewise.
18488         * gensupport.c (get_emit_function): Return null rather than "emit".
18489         * genemit.c (gen_emit_seq): Handle the null return value.
18490         Don't emit barriers after the final instruction in the sequence.
18491         * gentarget-def.c (main): Don't emit barriers after the instruction.
18493 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18495         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
18496         TARGET_UNIFIED_ASM.
18498 2015-06-26  Richard Biener  <rguenther@suse.de>
18500         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
18502 2015-06-26  Richard Biener  <rguenther@suse.de>
18504         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
18505         irrespective on whether the inner operation has a single use
18506         of both off are constant.
18508 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
18509             Segher Boessenkool  <segher@kernel.crashing.org>
18511         PR target/66412
18512         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
18513         before doing PUT_MODE or PUT_CODE on operands to avoid
18514         in-place RTX modification.
18516 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18518         * gentarget-def.c (def_target_insn): Cast return of strtol to
18519         unsigned int.
18521 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18523         * gimple.h (gimple_call_set_fn): Move inline function.
18524         * gimple.c (gimple_call_set_fn): Relocate here.
18526 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
18528         PR target/65979
18529         PR target/66611
18530         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
18531         the replacement insn will work.
18533 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18535         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
18536         by default.
18538 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18540         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
18541         * cgraph.h: Include ipa-ref.h and plugin-api.h.
18542         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
18543         (symtab_node::address_can_be_compared_p): Move function.
18544         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
18545         definition here.
18546         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
18547         * auto-profile.c: Likewise.
18548         * bb-reorder.c: Likewise.
18549         * builtins.c: Likewise.
18550         * calls.c: Likewise.
18551         * cfgexpand.c: Likewise.
18552         * cgraphbuild.c: Likewise.
18553         * cgraphclones.c: Likewise.
18554         * cgraphunit.c: Likewise.
18555         * combine.c: Likewise.
18556         * coverage.c: Likewise.
18557         * data-streamer-in.c: Likewise.
18558         * data-streamer-out.c: Likewise.
18559         * data-streamer.c: Likewise.
18560         * dbxout.c: Likewise.
18561         * dwarf2out.c: Likewise.
18562         * except.c: Likewise.
18563         * expr.c: Likewise.
18564         * final.c: Likewise.
18565         * fold-const.c: Likewise.
18566         * ggc-page.c: Likewise.
18567         * gimple-fold.c: Likewise.
18568         * gimple-iterator.c: Likewise.
18569         * gimple-pretty-print.c: Likewise.
18570         * gimple-streamer-in.c: Likewise.
18571         * gimple-streamer-out.c: Likewise.
18572         * gimple.c: Likewise.
18573         * gimplify.c: Likewise.
18574         * ipa-chkp.c: Likewise.
18575         * ipa-comdats.c: Likewise.
18576         * ipa-cp.c: Likewise.
18577         * ipa-devirt.c: Likewise.
18578         * ipa-icf-gimple.c: Likewise.
18579         * ipa-icf.c: Likewise.
18580         * ipa-inline-analysis.c: Likewise.
18581         * ipa-inline-transform.c: Likewise.
18582         * ipa-inline.c: Likewise.
18583         * ipa-polymorphic-call.c: Likewise.
18584         * ipa-profile.c: Likewise.
18585         * ipa-prop.c: Likewise.
18586         * ipa-pure-const.c: Likewise.
18587         * ipa-ref.c: Likewise.
18588         * ipa-reference.c: Likewise.
18589         * ipa-split.c: Likewise.
18590         * ipa-utils.c: Likewise.
18591         * ipa-visibility.c: Likewise.
18592         * ipa.c: Likewise.
18593         * langhooks.c: Likewise.
18594         * lto-cgraph.c: Likewise.
18595         * lto-compress.c: Likewise.
18596         * lto-opts.c: Likewise.
18597         * lto-section-in.c: Likewise.
18598         * lto-section-out.c: Likewise.
18599         * lto-streamer-in.c: Likewise.
18600         * lto-streamer-out.c: Likewise.
18601         * lto-streamer.c: Likewise.
18602         * omp-low.c: Likewise.
18603         * opts-global.c: Likewise.
18604         * passes.c: Likewise.
18605         * predict.c: Likewise.
18606         * print-tree.c: Likewise.
18607         * profile.c: Likewise.
18608         * ree.c: Likewise.
18609         * sanopt.c: Likewise.
18610         * stor-layout.c: Likewise.
18611         * symtab.c: Likewise.
18612         * toplev.c: Likewise.
18613         * trans-mem.c: Likewise.
18614         * tree-cfg.c: Likewise.
18615         * tree-chkp.c: Likewise.
18616         * tree-eh.c: Likewise.
18617         * tree-emutls.c: Likewise.
18618         * tree-inline.c: Likewise.
18619         * tree-nested.c: Likewise.
18620         * tree-parloops.c: Likewise.
18621         * tree-pretty-print.c: Likewise.
18622         * tree-profile.c: Likewise.
18623         * tree-sra.c: Likewise.
18624         * tree-ssa-alias.c: Likewise.
18625         * tree-ssa-live.c: Likewise.
18626         * tree-ssa-loop-ivcanon.c: Likewise.
18627         * tree-ssa-loop-ivopts.c: Likewise.
18628         * tree-ssa-pre.c: Likewise.
18629         * tree-ssa-sccvn.c: Likewise.
18630         * tree-ssa-strlen.c: Likewise.
18631         * tree-ssa-structalias.c: Likewise.
18632         * tree-streamer-in.c: Likewise.
18633         * tree-streamer-out.c: Likewise.
18634         * tree-streamer.c: Likewise.
18635         * tree-switch-conversion.c: Likewise.
18636         * tree-tailcall.c: Likewise.
18637         * tree-vect-data-refs.c: Likewise.
18638         * tree-vect-stmts.c: Likewise.
18639         * tree-vectorizer.c: Likewise.
18640         * tree.c: Likewise.
18641         * tsan.c: Likewise.
18642         * ubsan.c: Likewise.
18643         * value-prof.c: Likewise.
18644         * varasm.c: Likewise.
18645         * varpool.c: Likewise.
18646         * config/arm/arm.c: Likewise.
18647         * config/bfin/bfin.c: Likewise.
18648         * config/c6x/c6x.c: Likewise.
18649         * config/cris/cris.c: Likewise.
18650         * config/darwin-c.c: Likewise.
18651         * config/darwin.c: Likewise.
18652         * config/i386/i386.c: Likewise.
18653         * config/i386/winnt.c: Likewise.
18654         * config/microblaze/microblaze.c: Likewise.
18655         * config/mips/mips.c: Likewise.
18656         * config/rs6000/rs6000.c: Likewise.
18657         * config/rx/rx.c: Likewise.
18658         * config/s390/s390.c: Likewise.
18659         * config/tilegx/mul-tables.c: Likewise.
18661 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18663         * config/aarch64/aarch64.c, config/alpha/alpha.c,
18664         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
18665         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
18666         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
18667         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18668         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18669         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18670         config/microblaze/microblaze.c, config/mips/mips.c,
18671         config/mmix/mmix.c, config/mn10300/mn10300.c,
18672         config/moxie/moxie.c, config/msp430/msp430.c,
18673         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18674         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18675         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18676         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18677         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18678         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18679         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
18680         target-def.h include.
18681         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
18683 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18685         * Makefile.in (TARGET_DEF): Add target-insns.def.
18686         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
18687         (build/gentarget-def.o): New rule.
18688         (genprogrtl): Add target-def.
18689         * target-insns.def, gentarget-def.c: New files.
18690         * target.def: Add targetm.have_* and targetm.gen_* hooks,
18691         based on the contents of target-insns.def.
18692         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
18693         (HAVE_return, gen_return): Delete.
18694         * target-def.h: Include insn-target-def.h.
18695         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
18696         instead of direct calls.  Rely on them to do the appropriate assertions.
18697         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
18698         (convert_jumps_to_returns): Use targetm interface instead of
18699         direct calls.
18700         (thread_prologue_and_epilogue_insns): Likewise.
18701         * reorg.c (find_end_label, dbr_schedule): Likewise.
18702         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
18703         * shrink-wrap.c (convert_to_simple_return): Likewise.
18704         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
18706 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18708         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
18709         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18710         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
18711         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
18712         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18713         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18714         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18715         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
18716         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
18717         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18718         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18719         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18720         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18721         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18722         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18723         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
18724         includes to end.
18726 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18728         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
18729         (unbounded_int_hashmap_traits::key_type): Likewise.
18730         * hash-map.h (hash_map): Get the key type from the traits.
18731         * hash-traits.h (default_hash_traits): By default, inherit from the
18732         template parameter.
18733         * alias.c (alias_set_traits): Delete.
18734         (alias_set_entry_d::children): Use alias_set_hash as the first
18735         template parameter.
18736         (record_alias_subset): Update accordingly.
18737         * except.c (tree_hash_traits): Delete.
18738         (type_to_runtime_map): Use tree_hash as the first template parameter.
18739         (init_eh): Update accordingly.
18740         * genmatch.c (capture_id_map_hasher): Delete.
18741         (cid_map_t): Use nofree_string_hash as first template parameter.
18742         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
18743         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18744         Use symbol_compare_hash as the first template parameter in
18745         subdivide_hash_map.
18746         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
18747         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
18748         template parameter.
18749         * passes.c (pass_registry_hasher): Delete.
18750         (name_to_pass_map): Use nofree_string_hash as the first template
18751         parameter.
18752         (register_pass_name): Update accordingly.
18753         * sanopt.c (sanopt_tree_map_traits): Delete.
18754         (sanopt_tree_triplet_map_traits): Delete.
18755         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
18756         template parameter.
18757         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
18758         the first template parameter.
18759         * sese.c (rename_map_hasher): Delete.
18760         (rename_map_type): Use tree_ssa_name_hash as the first template
18761         parameter.
18762         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
18763         (function_summary::m_map): Use map_hash as the first template
18764         parameter.
18765         (function_summary::release): Update accordingly.
18766         * tree-if-conv.c (phi_args_hash_traits): Delete.
18767         (predicate_scalar_phi): Use tree_operand_hash as the first template
18768         parameter to phi_arg_map.
18769         * tree-inline.h (dependence_hasher): Delete.
18770         (copy_body_data::dependence_map): Use dependence_hash as the first
18771         template parameter.
18772         * tree-inline.c (remap_dependence_clique): Update accordingly.
18773         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
18774         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
18775         parameter.
18776         (addr_stridxptr): Update accordingly.
18777         * value-prof.c (profile_id_traits): Delete.
18778         (cgraph_node_map): Use profile_id_hash as the first template
18779         parameter.
18780         (init_node_map): Update accordingly.
18781         * config/alpha/alpha.c (string_traits): Delete.
18782         (machine_function::links): Use nofree_string_hash as the first
18783         template parameter.
18784         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
18785         * config/m32c/m32c.c (pragma_traits): Delete.
18786         (pragma_htab): Use nofree_string_hash as the first template parameter.
18787         (m32c_note_pragma_address): Update accordingly.
18788         * config/mep/mep.c (pragma_traits): Delete.
18789         (pragma_htab): Use nofree_string_hash as the first template parameter.
18790         (mep_note_pragma_flag): Update accordingly.
18791         * config/mips/mips.c (mips16_flip_traits): Delete.
18792         (mflip_mips16_htab): Use nofree_string_hash as the first template
18793         parameter.
18794         (mflip_mips16_use_mips16_p): Update accordingly.
18795         (local_alias_traits): Delete.
18796         (mips16_local_aliases): Use nofree_string_hash as the first template
18797         parameter.
18798         (mips16_local_alias): Update accordingly.
18800 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18802         * hash-map-traits.h (default_hashmap_traits): Delete.
18804 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18806         * hash-map-traits.h (unbounded_hashmap_traits): New class.
18807         (unbounded_int_hashmap_traits): Likewise.
18808         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
18810 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18812         * ipa-icf.h (symbol_compare_hash): New class.
18813         (symbol_compare_hashmap_traits): Use it.
18814         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
18815         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
18816         (mem_alloc_description::reverse_mem_map_t): Remove redundant
18817         default_hashmap_traits.
18818         * sanopt.c (sanopt_tree_triplet_hash): New class.
18819         (sanopt_tree_triplet_map_traits): Use it.
18821 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18823         * gengtype-parse.c (require_template_declaration): Allow '+' in
18824         template parameters.  Consolidate cases.
18825         * hash-traits.h (int_hash): New class.
18826         * alias.c (alias_set_hash): New structure.
18827         (alias_set_traits): Use it.
18828         * symbol-summary.h (function_summary::map_hash): New class.
18829         (function_summary::summary_hashmap_traits): Use it.
18830         * tree-inline.h (dependence_hash): New class.
18831         (dependence_hasher): Use it.
18832         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
18833         * value-prof.c (profile_id_hash): New class.
18834         (profile_id_traits): Use it.
18836 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18838         * config/mips/mips.c (mips16_flip_traits): Use it.
18839         (local_alias_traits, mips16_local_aliases): Convert from a map of
18840         rtxes to a map of symbol names.
18841         (mips16_local_alias): Update accordingly.
18843 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18845         * hash-traits.h (string_hash, nofree_string_hash): New classes.
18846         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
18847         * passes.c (pass_registry_hasher): Likewise.
18848         * config/alpha/alpha.c (string_traits): Likewise.
18849         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
18850         * config/m32c/m32c.c (pragma_traits): Likewise.
18851         * config/mep/mep.c (pragma_traits): Likewise.
18853 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18855         * tree-hash-traits.h (tree_hash): New class.
18856         * except.c: Include tree-hash-traits.h.
18857         (tree_hash_traits): Use tree_hash.
18859 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18861         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
18862         * sese.c: Include tree-hash-traits.h.
18863         (rename_map_hasher): Use tree_ssa_name_hasher.
18865 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18867         * tree-hash-traits.h (tree_decl_hash): New class.
18868         * tree-ssa-strlen.c: Include tree-hash-traits.h.
18869         (stridxlist_hash_traits): Use tree_decl_hash.
18871 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18873         * tree-hash-traits.h: New file.
18874         (tree_operand_hash): New class.
18875         * sanopt.c: Include tree-hash-traits.h.
18876         (sanopt_tree_map_traits): Use tree_operand_hash.
18877         * tree-if-conv.c: Include tree-hash-traits.h.
18878         (phi_args_hash_traits): Use tree_operand_hash.
18879         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
18880         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
18882 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18884         * hash-map-traits.h: Include hash-traits.h.
18885         (simple_hashmap_traits): New class.
18886         * mem-stats.h (hash_map): Change the default traits to
18887         simple_hashmap_traits<default_hash_traits<Key> >.
18889 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18891         * hash-table.h: Update comments.
18893 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18895         * hash-traits.h (default_hash_traits): New structure.
18896         * hash-set.h (default_hashset_traits): Delete.
18897         (hash_set): Use default_hash_traits<Key> instead of
18898         default_hashset_traits.  Delete hash_entry type and use Key directly.
18899         * ipa-devirt.c (pair_traits): Delete.
18900         (default_hash_traits <type_pair>): Override.
18901         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
18902         (odr_types_equivalent_p, add_type_duplicate): Likewise.
18904 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18906         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
18908 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18910         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
18911         (has_is_empty, is_empty_helper): Delete.
18912         (has_mark_deleted, mark_deleted_helper): Delete.
18913         (has_mark_empty, mark_empty_helper): Delete.
18914         (hash_table::is_deleted): Call the Descriptor unconditionally.
18915         (hash_table::is_empty): Likewise.
18916         (hash_table::mark_deleted): Likewise.
18917         (hash_table::mark_empty): Likewise.
18919 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18921         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
18922         redundant typedefs and members.
18923         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
18924         redundant typedefs.
18925         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
18926         * ipa-devirt.c (odr_name_hasher): Likewise.
18927         (polymorphic_call_target_hasher): Likewise.
18928         * ira-costs.c (cost_classes_hasher): Likewise.
18929         * statistics.c (stats_counter_hasher): Likewise.
18930         * trans-mem.c (log_entry_hasher): Likewise.
18931         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18932         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
18933         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
18934         * var-tracking.c (variable_hasher): Likewise.
18935         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
18936         Remove redundant typedefs and members.
18938 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18940         * hash-traits.h (ggc_cache_hasher): Rename to...
18941         (ggc_cache_remove): ...this and remove typedefs.
18942         (ggc_cache_ptr_hash): New class.
18943         * hash-table.h: Update commentary.
18944         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
18945         rather than ggc_cache_hasher.
18946         (const_wide_int_hasher, reg_attr_hasher): Likewise.
18947         (const_double_hasher, const_fixed_hasher): Likewise.
18948         * function.c (insn_cache_hasher): Likewise.
18949         * trans-mem.c (tm_wrapper_hasher): Likewise.
18950         * tree.h (tree_decl_map_cache_hasher): Likewise.
18951         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
18952         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
18953         * ubsan.c (tree_type_map_cache_hasher): Likewise.
18954         * varasm.c (tm_clone_hasher): Likewise.
18955         * config/i386/i386.c (dllimport_hasher): Likewise.
18956         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
18957         (tree_hasher): Likewise.
18959 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18961         * hash-traits.h (ggc_hasher): Rename to...
18962         (ggc_remover): ...this and remove typedefs.
18963         (ggc_cache_hasher): Update accordingly.  Add typedefs.
18964         (ggc_ptr_hash): New class.
18965         * hash-table.h: Update comment.
18966         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
18967         ggc_hasher.
18968         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
18969         (tree_descriptor_hasher): Likewise.
18970         * cgraph.c (function_version_hasher): Likewise.
18971         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
18972         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
18973         (dw_loc_list_hasher, addr_hasher): Likewise.
18974         * function.h (used_type_hasher): Likewise.
18975         * function.c (temp_address_hasher): Likewise.
18976         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
18977         * libfuncs.h (libfunc_hasher): Likewise.
18978         * lto-streamer.h (decl_state_hasher): Likewise.
18979         * optabs.c (libfunc_decl_hasher): Likewise.
18980         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
18981         * varasm.c (section_hasher, object_block_hasher): Likewise.
18982         (const_rtx_desc_hasher): Likewise.
18983         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
18984         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
18986 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18988         * hash-traits.h (free_ptr_hash): New class.
18989         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
18990         rather than typed_free_remove.  Remove redudant typedefs.
18991         (external_ref_hasher): Likewise.
18992         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
18993         (ehspec_hasher): Likewise.
18994         * ggc-common.c (saving_hasher): Likewise.
18995         * gimplify.c (gimplify_hasher): Likewise.
18996         * haifa-sched.c (delay_i2_hasher): Likewise.
18997         * loop-invariant.c (invariant_expr_hasher): Likewise.
18998         * loop-iv.c (biv_entry_hasher): Likewise.
18999         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19000         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19001         * tree-cfg.c (locus_discrim_hasher): Likewise.
19002         * tree-eh.c (finally_tree_hasher): Likewise.
19003         * tree-into-ssa.c (var_info_hasher): Likewise.
19004         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19005         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19006         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19007         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19008         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19009         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19010         (shared_bitmap_hasher): Likewise.
19011         * tree-ssa-threadupdate.c (redirection_data): Likewise.
19012         * tree-vectorizer.h (peel_info_hasher): Likewise.
19013         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19014         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19016 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19018         * hash-table.h: Update comments.
19019         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19020         (nofree_ptr_hash): New class.
19021         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19022         than typed_noop_remove.  Remove redudant typedefs.
19023         * attribs.c (attribute_hasher): Likewise.
19024         * cfg.c (bb_copy_hasher): Likewise.
19025         * cselib.c (cselib_hasher): Likewise.
19026         * dse.c (invariant_group_base_hasher): Likewise.
19027         * dwarf2cfi.c (trace_info_hasher): Likewise.
19028         * dwarf2out.c (macinfo_entry_hasher): Likewise.
19029         (comdat_type_hasher, loc_list_hasher): Likewise.
19030         * gcse.c (pre_ldst_expr_hasher): Likewise.
19031         * genmatch.c (id_base): Likewise.
19032         * genrecog.c (test_pattern_hasher): Likewise.
19033         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19034         * haifa-sched.c (delay_i1_hasher): Likewise.
19035         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19036         * ipa-icf.h (congruence_class_group_hash): Likewise.
19037         * ipa-profile.c (histogram_hash): Likewise.
19038         * ira-color.c (allocno_hard_regs_hasher): Likewise.
19039         * lto-streamer.h (string_slot_hasher): Likewise.
19040         * lto-streamer.c (tree_entry_hasher): Likewise.
19041         * plugin.c (event_hasher): Likewise.
19042         * postreload-gcse.c (expr_hasher): Likewise.
19043         * store-motion.c (st_expr_hasher): Likewise.
19044         * tree-sra.c (uid_decl_hasher): Likewise.
19045         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19046         (ssa_name_var_hash): Likewise.
19047         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19048         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19049         * tree-ssa-pre.c (pre_expr_d): Likewise.
19050         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19051         * vtable-verify.h (registration_hasher): Likewise.
19052         * vtable-verify.c (vtbl_map_hasher): Likewise.
19053         * config/arm/arm.c (libcall_hasher): Likewise.
19054         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19055         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19056         * config/sol2.c (comdat_entry_hasher): Likewise.
19057         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19058         (print_fold_checksum, fold_checksum_tree): Likewise.
19059         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19060         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19061         (fold_build_call_array_loc): Likewise.
19062         * tree-ssa-ccp.c (gimple_htab): Likewise.
19063         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19064         rather than pointer_type.
19066 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19068         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19069         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19071 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19073         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19074         (ggc_hasher::ggc_mx): Likewise.
19075         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
19076         that duplicate ggc_hasher ones.
19078 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19080         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19081         (gt_cleare_cache): Check here for deleted and empty entries.
19082         Replace handle_cache_entry with a call to keep_cache_entry.
19083         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19084         (ggc_cache_hasher::keep_cache_entry): New function.
19085         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19086         (tm_wrapper_hasher::keep_cache_entry): New function.
19087         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19088         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19089         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19090         (type_cache_hasher::keep_cache_entry): New function.
19091         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19092         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19093         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19094         (tree_type_map_cache_hasher::keep_cache_entry): New function.
19095         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19096         (tm_clone_hasher::keep_cache_entry): New function.
19097         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19098         (dllimport_hasher::keep_cache_entry): New function.
19100 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19102         * hash-table.h: Include hash-traits.h.
19103         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19104         (ggc_cache_hasher): Move to...
19105         * hash-traits.h: ...this new file.
19107 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19109         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19110         struct cl_optimization.
19111         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19112         * tree.c (make_node_stat): Allocate cl_optimization struct.
19113         (copy_node_stat): Allocate and copy cl_optimization struct.
19115 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19117         * function.h (struct incoming_args): Move struct.
19118         (pass_by_reference, reference_callee_copied): Remove prototypes.
19119         * emit-rtl.h (struct incoming_args): Relocate struct here.
19120         * calls.h (pass_by_reference, reference_callee_copied): Relocate
19121         prototypes here.
19122         * function.c (pass_by_reference, reference_callee_copied): Move.
19123         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19124         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19125         * ipa-chkp.c: Include calls.h.
19127 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
19129         * alias.h (alias_set_type): Move typedef.
19130         * coretypes.h (alias_set_type): Relocate typedef here.
19131         * rtl.h: Don't include alias.h.
19133 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19135         * cgraph.h (cgraph_rtl_info): Move to rtl.h
19136         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19137         and instance.
19138         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19139         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19140         doesn't exist.
19141         * calls.c: Include hard-reg-set.h before rtl.h.
19142         * ira.c: Likewise.
19144 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19145             Vladimir Makarov  <vmakarov@redhat.com>
19147         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19148         Add assert.
19150 2015-06-25  Richard Biener  <rguenther@suse.de>
19152         * fold-const.c (fold_binary_loc): Move simplification of
19153         (X <<>> C1) & C2 ...
19154         * match.pd: ... here.
19156 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
19158         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19160 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19162         * match.pd: Add patterns for vec_conds between 1 and 0.
19164 2015-06-25  Richard Biener  <rguenther@suse.de>
19166         * tree-vect-stmts.c (vectorizable_conversion): Do not set
19167         STMT_VINFO_VEC_STMT for SLP.
19168         (vectorizable_store): Likewise.
19169         (vectorizable_load): Likewise.
19170         (vect_transform_stmt): Catch SLP vectorization clobbering
19171         STMT_VINFO_VEC_STMT.
19173 2015-06-25  Richard Biener  <rguenther@suse.de>
19175         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19176         dumping.
19177         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19178         cleanup resulting dead code and parameters.
19179         (vect_transform_slp_perm_load): Adjust.
19181 2015-06-25  Nick Clifton  <nickc@redhat.com>
19183         * config/bfin/bfin.c (bfin_expand_prologue): Set
19184         current_function_static_stack_size if flag_stack_usage_info is set.
19185         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19186         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19187         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19188         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19190 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19192         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19193         comment that the generated IV is unsigned.
19195 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19197         PR target/29693
19198         * config/arm/arm.c (arm_dbx_register_number): Return
19199         DWARF_FRAME_REGISTERS by default.
19201 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19203         * dominance.c (calculate_dominance_info): Fix verify_dominators call
19204         argument.  Call verify_dominator when reusing dominator info.
19206 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
19208         PR target/66563
19209         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19210         an additional element of the unspec vector.  Modify indices
19211         of operands.
19212         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19213         * config/sh/sh.c (prepare_move_operands): Pass incremented
19214         const_int to gen_GOTaddr2picreg.
19215         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19217 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19219         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19220         Condition on TARGET_FLOAT.
19222 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19224         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19225         and (no)crypto.
19227 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19229         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19231         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19232         aarch64_err_no_fpadvsimd.
19234         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19235         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19236         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19237         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19238         Turn error into assert, test TARGET_FLOAT.
19239         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19240         TARGET_FLOAT.
19242 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
19244         PR debug/66482
19245         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19247 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19249         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19251 2015-06-24  Renlin Li <renlin.li@arm.com>
19253         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19254         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19256 2015-06-24  Richard Biener  <rguenther@suse.de>
19258         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19259         (main): Likewise.
19260         (lower_opt_convert): Support lowering of conditional view_convert.
19261         (parser::parse_operation): Likewise.
19262         (parser::parse_for): Likewise.
19264 2015-06-24  Renlin Li  <renlin.li@arm.com>
19266         * varasm.c (emit_local): Use unsigned int for align variable.
19268 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19270         PR target/63408
19271         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19272         for negative numbers.
19274 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19276         PR rtl-optimization/66306
19277         * reload.c (find_reloads): Swap the match_dup info for
19278         commutative operands.
19280 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19282         * config/s390/vx-builtins.md
19283         ("vec_scatter_element<mode>_<non_vec_int>")
19284         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19285         attribute with bhfgq.
19287 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19289         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19291 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19293         * config/s390/s390-builtin-types.def: Add flag to indicate the
19294         options under which the function type is needed.
19295         * config/s390/s390-builtins.def: Add flag to indicate the options
19296         under which the builtin is enabled.
19297         * config/s390/s390-builtins.h: Add flags parameter to macro
19298         definitions.
19299         (bflags_for_builtin): New function.
19300         (flags_for_builtin): Renamed to ...
19301         (opflags_for_builtin): ... this.
19302         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19303         flags_for_builtin to bflags_for_builtin and
19304         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19305         * config/s390/s390.c: Add initialization of bflags_builtin and
19306         opflags_builtin arrays.
19307         Remove code for flags_builtin.
19308         (s390_init_builtins): Only create builtin function types if one of
19309         their flags is active.
19310         Only create builtins if all of their flags are active.
19311         (s390_expand_builtin): Rename flags_for_builtin to
19312         opflags_for_builtin.
19314 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19316         * config/s390/vecintrin.h: Remove internal builtins.
19318 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19320         * config/s390/s390.c (s390_secondary_reload): Fix check for
19321         GENERAL_REGS register class.
19323 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19325         * config/s390/s390.c (s390_support_vector_misalignment): Call
19326         default implementation for !TARGET_VX.
19328 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19330         * config/s390/s390.c (s390_legitimate_constant_p): Add
19331         TARGET_VX check.
19333 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19335         * config/s390/s390.c (s390_vector_abi): New variable definition.
19336         (s390_check_type_for_vector_abi): New function.
19337         (TARGET_ASM_FILE_END): New macro definition.
19338         (s390_asm_file_end): New function.
19339         (s390_function_arg): Call s390_check_type_for_vector_abi.
19340         (s390_gimplify_va_arg): Likewise.
19341         * configure: Regenerate.
19342         * configure.ac: Check for .gnu_attribute Binutils feature.
19344 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
19346         PR target/65803
19347         * config/bfin/bfin.c (hwloop_optimize): Initialize
19348         JUMP_LABEL for newly created jump.
19350 2015-06-23  Tristan Gingold  <gingold@adacore.com>
19352         * collect-utils.c (collect_wait): Unlink the response file here
19353         instead of...
19354         (do_wait): ...here.
19355         (utils_cleanup): ...and here.
19357 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
19359         * df-scan.c: Don't include target-def.h.
19360         * targhooks.c: Likewise.
19361         * config/arm/arm-c.c: Likewise.
19362         * config/i386/i386-c.c: Likewise.
19363         * config/nds32/nds32-cost.c: Likewise.
19364         * config/nds32/nds32-fp-as-gp.c: Likewise.
19365         * config/nds32/nds32-intrinsic.c: Likewise.
19366         * config/nds32/nds32-isr.c: Likewise.
19367         * config/nds32/nds32-md-auxiliary.c: Likewise.
19368         * config/nds32/nds32-memory-manipulation.c: Likewise.
19369         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19370         * config/nds32/nds32-predicates.c: Likewise.
19372 2015-06-23  Richard Biener  <rguenther@suse.de>
19374         PR tree-optimization/66636
19375         * tree-vect-stmts.c (vectorizable_store): Properly compute the
19376         def type for further defs for strided stores.
19378 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
19380         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19381         conditional selects.
19382         (setcc_int<mode>, setcc_float<mode>): Reformat.
19384 2015-06-23  Marek Polacek  <polacek@redhat.com>
19386         * match.pd ((x + y) - (x | y) -> x & y,
19387         (x + y) - (x & y) -> x | y): New patterns.
19389 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
19391         PR 65711
19392         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19393         '-dynamic-linker' within %{!shared: ...}.
19395 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
19397         PR target/66560
19398         * config/i386/predicates.md (addsub_vm_operator): New predicate.
19399         (addsub_vs_operator): Ditto.
19400         (addsub_vs_parallel): Ditto.
19401         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19402         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19403         Put minus RTX before plus and adjust vec_merge selector.
19404         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19405         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19406         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19407         (addsub vec_merge splitters): New combiner splitters.
19408         (addsub vec_select/vec_concat splitters): Ditto.
19410 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
19412         PR tree-optimization/66449
19413         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19414         POINTER_PLUS_EXPR for pointers.
19416 2015-06-23  Alan Modra  <amodra@gmail.com>
19418         * rtlanal.c (commutative_operand_precedence): Correct comments.
19419         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19420         declaration.  Return an int.  Distinguish REG,REG return from
19421         others.
19422         (struct simplify_plus_minus_op_data): Make local to function.
19423         (simplify_plus_minus): Don't set canonicalized if merely sorting
19424         registers.  Avoid packing ops if nothing changes.  White space fixes.
19426 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
19428         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19429         -fdump-ada-spec is passed but not if -fsyntax-only is.
19431 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
19433         PR bootstrap/63740
19434         * lra-lives.c (process_bb_lives): Check insn copying the same
19435         reload pseudo and don't create a copy for it.
19437 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19439         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19440         for cond_stmt.
19442 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19444         * builtins.def (DEF_GOMP_BUILTIN): Test
19445         'flag_tree_parallelize_loops > 1' instead of
19446         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
19448 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19450         * dominance.c (calculate_dominance_info): Verify dominators if
19451         early-out.
19453 2015-06-22  Marek Polacek  <polacek@redhat.com>
19455         * match.pd ((x ^ y) ^ (x | y) -> x & y,
19456         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
19457         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
19458         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
19460 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
19462         PR target/65871
19463         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
19464         cost of embedded comparison.
19466 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19468         PR target/65914
19469         * config/rs6000/predicates.md (altivec_register_operand): Permit
19470         virtual stack registers.
19471         (vsx_register_operand): Likewise.
19472         (vfloat_operand): Likewise.
19473         (vint_operand): Likewise.
19474         (vlogical_operand): Likewise.
19476 2015-06-22  Richard Biener  <rguenther@suse.de>
19478         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
19479         and single_scalar_iteration_cost members.
19480         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
19481         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
19482         (vect_get_single_scalar_iteration_cost): Remove.
19483         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19484         Use LOOP_VINFO_SCALAR_ITERATION_COST.
19485         * tree-vect-loop.c (destroy_loop_vec_info): Free
19486         scalar_cost_vec.
19487         (vect_get_single_scalar_iteration_cost): Compute result into
19488         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
19489         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
19490         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
19491         (vect_estimate_min_profitable_iters): Use them.
19493 2015-06-22  Christian Bruel  <christian.bruel@st.com>
19495         PR target/52144
19496         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
19497         (TARGET_INSERT_ATTRIBUTES): Define.
19498         (thumb_flipper): New var.
19499         * config/arm/arm.opt (-mflip-thumb): New switch.
19501 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
19502             Martin Liska  <mliska@suse.cz>
19504         PR ipa/65908
19505         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
19506         construction of arg_types.
19507         (sem_function::sem_function): Likewise.
19508         (sem_function::~sem_function): Remove destruction of arg_types.
19509         (sem_function::compatible_parm_types_p): New function.
19510         (sem_function::equals_wpa): Reorg matching of return values
19511         and parameter types.
19512         (sem_function::equals_private): Reorg mathcing of argument types.
19513         (sem_function::parse_tree_args): Remove.
19514         * ipa-icf.h (init_wpa): Do not call it.
19515         (parse_tree_args): Remove.
19516         (compatible_parm_types_p): Declare.
19517         (result_type): Remove.
19518         (arg_types): Remove.
19520 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
19522         PR ipa/66351
19523         * ipa-polymorphic-call.c
19524         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
19525         initializing alias oracle; fix formating; set base_alias_set if it
19526         is known.
19528 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
19530         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
19531         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
19532         (find_inc): Likewise.
19533         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
19534         swapping.
19535         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19536         * df-scan.c (df_swap_refs): Remove.
19537         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
19538         * dominance.c (link_roots): Use std::swap instead of manually swapping.
19539         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
19540         * fold-const.c (fold_relational_const): Likewise.
19541         * genattrtab.c (simplify_test_exp): Likewise.
19542         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
19543         gimple_simplify): Likewise.
19544         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
19545         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
19546         * ipa-devirt.c (add_type_duplicate): Likewise.
19547         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
19548         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
19549         * lra.c (lra_create_copy): Likewise.
19550         * lto-streamer-out.c (DFS::DFS): Likewise.
19551         * modulo-sched.c (get_sched_window): Likewise.
19552         * omega.c (omega_pretty_print_problem): Likewise.
19553         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
19554         * reload1.c (reloads_unique_chain_p): Likewise.
19555         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
19556         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
19557         use std::swap.
19558         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
19559         manually swapping.
19560         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
19561         predicate_mem_writes): Likewise.
19562         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
19563         * tree-predcom.c (combine_chains): Likewise.
19564         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
19565         refs_may_alias_p_1): Likewise.
19566         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
19567         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19568         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
19569         number_of_iterations_cond): Likewise.
19570         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19571         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19572         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
19573         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
19574         * tree-vrp.c (extract_range_from_binary_expr_1,
19575         extract_range_from_unary_expr_1): Likewise.
19577 2015-06-20  Marek Polacek  <polacek@redhat.com>
19579         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
19581 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
19583         PR target/66591
19584         * config/sh/sh.c (prepare_move_operands): Replace subreg
19585         index term with R0 for base and index addressing.
19587 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
19589         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
19590         op1 is an fp zero.
19591         (movsf_aarch64): Change condition from register_operand to
19592         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
19593         load1.  Change type for alternative 7 to store1.
19594         (movdf_aarch64): Likewise.
19596 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
19598         * config/vax/vax.md: Adjust sign/zero extend patterns to
19599         handle SUBREGs in operands[1].
19601 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19603         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
19604         of manually swapping.
19605         (expand_vec_perm_interleave2): Likewise.
19607 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
19609         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
19610         reuse bounds created for abnormal ssa names.
19612 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
19614         * config/nvptx/nvptx.md (allocate_stack): Rename to...
19615         (allocate_stack_<mode>): ... this, and add :P on both
19616         match_operand and unspec.
19617         (allocate_stack): New expander.
19619 2015-06-19  Christian Bruel  <christian.bruel@st.com>
19621         PR target/66541
19622         PR target/52144
19623         * config/arm/arm.c (arm_set_current_function): Handle
19624         explicit default options.
19626 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
19628         * config/i386/i386.md (*movsicc_noc_zext): New insn.
19629         (zero-extended cmove with mem peephole2): New pattern.
19630         (cmove with mem peephole2): Merge patterns.
19632 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
19634         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
19636 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
19638         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
19639         * config/mips/mips.md (*madd4<mode>): Ditto.
19640         (*nmadd3<mode>) Ditto.
19641         (*nmadd4<mode>_fastmath): Ditto.
19642         (*nmadd3<mode>_fastmath): Ditto.
19643         (*nmsub4<mode>): Ditto.
19644         (*nmsub3<mode>): Ditto.
19645         (*nmsub4<mode>_fastmath): Ditto.
19646         (*nmsub3<mode>_fastmath): Ditto.
19648 2015-06-18  Michael Matz  <matz@suse.de>
19650         PR middle-end/66253
19651         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
19652         grouped strided stores.
19653         (vectorizable_load): Don't use the DR from first_stmt in
19654         the non-SLP grouped strided case.
19656 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19658         PR target/66569
19659         * function.c (assign_bounds): Add arguments assign_regs,
19660         assign_special, assign_bt.
19661         (assign_parms): For vararg functions handle bounds in BT
19662         and special slots after incoming vararg bounds.
19664 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19666         PR middle-end/66568
19667         * cfgexpand.c (expand_return): Handle missing bounds.
19668         (expand_gimple_stmt_1): Likewise.
19669         * tree-chkp.c (chkp_expand_zero_bounds): New.
19670         * tree-chkp.h (chkp_expand_zero_bounds): New.
19672 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19674         PR middle-end/66567
19675         * ipa-chkp.c (chkp_maybe_create_clone): Require
19676         functions to be instrumentable.
19677         * tree-chkp.c (chkp_replace_function_pointer): Use
19678         chkp_instrumentable_p instead of attribute check.
19680 2015-06-18  Richard Biener  <rguenther@suse.de>
19682         PR tree-optimization/66510
19683         * tree-vect-stmts.c (vectorizable_load): Properly compute the
19684         number of vector loads for SLP permuted loads.
19685         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
19686         check the stride for loop vectorization.
19687         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
19688         vectorization factor.
19689         (vect_analyze_group_access): If the group size is not a power
19690         of two require a epilogue loop.
19691         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
19692         compute and optimizing and alias test pruning after final
19693         vectorization factor computation.
19694         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
19695         vector alignment.
19696         (vect_transform_slp_perm_load): Properly compute the original
19697         number of vector load stmts.
19699 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
19701         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
19702         "unlikely character , in @var" warning.
19704 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
19706         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
19707         (ix86_function_arg_advance): Ditto.
19708         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
19710 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
19712         * function.h (struct rtl_data): Remove struct and accessor macros.
19713         * emit-rtl.h (struct rtl_data): Relocate to here.
19714         * Makefile.in (GTFILES): Add emit-rtl.h.
19715         * df-core.c: Include emit-rtl.h.
19716         * genattrtab.c: Likewise.
19717         * genconditions.c: Likewise.
19718         * genpreds.c: Likewise.
19719         * genrecog.c: Likewise.
19720         * regcprop.c: Likewise.
19721         * resource.c: Likewise.
19722         * sched-rgn.c: Likewise.
19723         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19724         * config/i386/winnt.c: Likewise.
19726 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
19728         PR middle-end/66429
19729         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
19730         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
19731         and has_force_vectorize_loops flags from cfun into
19732         child_cfun.
19733         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
19734         if simduid is non-NULL.
19735         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
19736         * passes.def (pass_simduid_cleanup): Add new pass after loop
19737         passes.
19738         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
19739         indirection from htab argument's type.
19740         (shrink_simd_arrays): New function.
19741         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
19742         Don't call adjust_simduid_builtins if there are no loops.
19743         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
19744         (pass_simduid_cleanup::execute): New method.
19745         (make_pass_simduid_cleanup): New function.
19747 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
19749         * tree-core.h (tree_target_option): Make opts field a pointer to a
19750         cl_target_option instead of an instance of the struct.
19751         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
19752         the structure.
19753         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
19754         TARGET_OPTION_NODE.
19755         (copy_node_stat): Allocate and copy struct cl_target_option.
19757 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
19759         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
19760         Remove conditional exposure of prototypes.
19761         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
19762         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
19763         definitions in tree.h with functions.
19764         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
19765         anon_aggrname_p.
19766         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
19768 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
19770         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
19771         (*cmp<mode>_signed): ... this.
19772         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
19773         (*cmp<mode>_unsigned): ... this.  Remove %b.
19775 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
19777         * coretypes.h: Include input.h and as-a.h.
19778         * rtl.h: Include input.h and as-a.h for generator files.
19779         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
19780         * vec.c: Don't include diagnostic-core.h.
19781         * alias.c: Do not include input.h, line-map.h or is-a.h.
19782         * asan.c: Likewise.
19783         * attribs.c: Likewise.
19784         * auto-inc-dec.c: Likewise.
19785         * auto-profile.c: Likewise.
19786         * bb-reorder.c: Likewise.
19787         * bt-load.c: Likewise.
19788         * builtins.c: Likewise.
19789         * caller-save.c: Likewise.
19790         * calls.c: Likewise.
19791         * ccmp.c: Likewise.
19792         * cfg.c: Likewise.
19793         * cfganal.c: Likewise.
19794         * cfgbuild.c: Likewise.
19795         * cfgcleanup.c: Likewise.
19796         * cfgexpand.c: Likewise.
19797         * cfghooks.c: Likewise.
19798         * cfgloop.c: Likewise.
19799         * cfgloop.h: Likewise.
19800         * cfgloopanal.c: Likewise.
19801         * cfgloopmanip.c: Likewise.
19802         * cfgrtl.c: Likewise.
19803         * cgraph.c: Likewise.
19804         * cgraphbuild.c: Likewise.
19805         * cgraphclones.c: Likewise.
19806         * cgraphunit.c: Likewise.
19807         * cilk-common.c: Likewise.
19808         * combine-stack-adj.c: Likewise.
19809         * combine.c: Likewise.
19810         * compare-elim.c: Likewise.
19811         * convert.c: Likewise.
19812         * coverage.c: Likewise.
19813         * cppbuiltin.c: Likewise.
19814         * cprop.c: Likewise.
19815         * cse.c: Likewise.
19816         * cselib.c: Likewise.
19817         * data-streamer-in.c: Likewise.
19818         * data-streamer-out.c: Likewise.
19819         * data-streamer.c: Likewise.
19820         * dbxout.c: Likewise.
19821         * dce.c: Likewise.
19822         * ddg.c: Likewise.
19823         * debug.c: Likewise.
19824         * df-core.c: Likewise.
19825         * df-problems.c: Likewise.
19826         * df-scan.c: Likewise.
19827         * df.h: Likewise.
19828         * dfp.c: Likewise.
19829         * diagnostic-core.h: Likewise.
19830         * diagnostic.c: Likewise.
19831         * dojump.c: Likewise.
19832         * dominance.c: Likewise.
19833         * domwalk.c: Likewise.
19834         * double-int.c: Likewise.
19835         * dse.c: Likewise.
19836         * dumpfile.c: Likewise.
19837         * dumpfile.h: Likewise.
19838         * dwarf2asm.c: Likewise.
19839         * dwarf2cfi.c: Likewise.
19840         * dwarf2out.c: Likewise.
19841         * emit-rtl.c: Likewise.
19842         * et-forest.c: Likewise.
19843         * except.c: Likewise.
19844         * explow.c: Likewise.
19845         * expmed.c: Likewise.
19846         * expr.c: Likewise.
19847         * final.c: Likewise.
19848         * fixed-value.c: Likewise.
19849         * fold-const.c: Likewise.
19850         * function.c: Likewise.
19851         * fwprop.c: Likewise.
19852         * gcc-plugin.h: Likewise.
19853         * gcse.c: Likewise.
19854         * generic-match-head.c: Likewise.
19855         * ggc-page.c: Likewise.
19856         * gimple-builder.c: Likewise.
19857         * gimple-expr.c: Likewise.
19858         * gimple-fold.c: Likewise.
19859         * gimple-iterator.c: Likewise.
19860         * gimple-low.c: Likewise.
19861         * gimple-match-head.c: Likewise.
19862         * gimple-pretty-print.c: Likewise.
19863         * gimple-ssa-isolate-paths.c: Likewise.
19864         * gimple-ssa-strength-reduction.c: Likewise.
19865         * gimple-streamer-in.c: Likewise.
19866         * gimple-streamer-out.c: Likewise.
19867         * gimple-streamer.h: Likewise.
19868         * gimple-walk.c: Likewise.
19869         * gimple.c: Likewise.
19870         * gimplify-me.c: Likewise.
19871         * gimplify.c: Likewise.
19872         * godump.c: Likewise.
19873         * graph.c: Likewise.
19874         * graphite-blocking.c: Likewise.
19875         * graphite-dependences.c: Likewise.
19876         * graphite-interchange.c: Likewise.
19877         * graphite-isl-ast-to-gimple.c: Likewise.
19878         * graphite-optimize-isl.c: Likewise.
19879         * graphite-poly.c: Likewise.
19880         * graphite-scop-detection.c: Likewise.
19881         * graphite-sese-to-poly.c: Likewise.
19882         * graphite.c: Likewise.
19883         * haifa-sched.c: Likewise.
19884         * hw-doloop.c: Likewise.
19885         * ifcvt.c: Likewise.
19886         * init-regs.c: Likewise.
19887         * input.c: Likewise.
19888         * internal-fn.c: Likewise.
19889         * ipa-chkp.c: Likewise.
19890         * ipa-comdats.c: Likewise.
19891         * ipa-cp.c: Likewise.
19892         * ipa-devirt.c: Likewise.
19893         * ipa-icf-gimple.c: Likewise.
19894         * ipa-icf.c: Likewise.
19895         * ipa-inline-analysis.c: Likewise.
19896         * ipa-inline-transform.c: Likewise.
19897         * ipa-inline.c: Likewise.
19898         * ipa-polymorphic-call.c: Likewise.
19899         * ipa-profile.c: Likewise.
19900         * ipa-prop.c: Likewise.
19901         * ipa-pure-const.c: Likewise.
19902         * ipa-ref.c: Likewise.
19903         * ipa-reference.c: Likewise.
19904         * ipa-split.c: Likewise.
19905         * ipa-utils.c: Likewise.
19906         * ipa-visibility.c: Likewise.
19907         * ipa.c: Likewise.
19908         * ira-build.c: Likewise.
19909         * ira-color.c: Likewise.
19910         * ira-conflicts.c: Likewise.
19911         * ira-costs.c: Likewise.
19912         * ira-emit.c: Likewise.
19913         * ira-lives.c: Likewise.
19914         * ira.c: Likewise.
19915         * jump.c: Likewise.
19916         * langhooks.c: Likewise.
19917         * lcm.c: Likewise.
19918         * loop-doloop.c: Likewise.
19919         * loop-init.c: Likewise.
19920         * loop-invariant.c: Likewise.
19921         * loop-iv.c: Likewise.
19922         * loop-unroll.c: Likewise.
19923         * lower-subreg.c: Likewise.
19924         * lra-assigns.c: Likewise.
19925         * lra-coalesce.c: Likewise.
19926         * lra-constraints.c: Likewise.
19927         * lra-eliminations.c: Likewise.
19928         * lra-lives.c: Likewise.
19929         * lra-remat.c: Likewise.
19930         * lra-spills.c: Likewise.
19931         * lra.c: Likewise.
19932         * lto-cgraph.c: Likewise.
19933         * lto-compress.c: Likewise.
19934         * lto-opts.c: Likewise.
19935         * lto-section-in.c: Likewise.
19936         * lto-section-out.c: Likewise.
19937         * lto-streamer-in.c: Likewise.
19938         * lto-streamer-out.c: Likewise.
19939         * lto-streamer.c: Likewise.
19940         * mcf.c: Likewise.
19941         * mode-switching.c: Likewise.
19942         * modulo-sched.c: Likewise.
19943         * omega.c: Likewise.
19944         * omp-low.c: Likewise.
19945         * optabs.c: Likewise.
19946         * opts-global.c: Likewise.
19947         * opts.h: Likewise.
19948         * passes.c: Likewise.
19949         * plugin.c: Likewise.
19950         * postreload-gcse.c: Likewise.
19951         * postreload.c: Likewise.
19952         * predict.c: Likewise.
19953         * pretty-print.h: Likewise.
19954         * print-rtl.c: Likewise.
19955         * print-tree.c: Likewise.
19956         * profile.c: Likewise.
19957         * real.c: Likewise.
19958         * realmpfr.c: Likewise.
19959         * recog.c: Likewise.
19960         * ree.c: Likewise.
19961         * reg-stack.c: Likewise.
19962         * regcprop.c: Likewise.
19963         * reginfo.c: Likewise.
19964         * regrename.c: Likewise.
19965         * regstat.c: Likewise.
19966         * reload.c: Likewise.
19967         * reload1.c: Likewise.
19968         * reorg.c: Likewise.
19969         * resource.c: Likewise.
19970         * rtl-chkp.c: Likewise.
19971         * rtl-error.c: Likewise.
19972         * rtlanal.c: Likewise.
19973         * rtlhooks.c: Likewise.
19974         * sanopt.c: Likewise.
19975         * sched-deps.c: Likewise.
19976         * sched-ebb.c: Likewise.
19977         * sched-rgn.c: Likewise.
19978         * sched-vis.c: Likewise.
19979         * sdbout.c: Likewise.
19980         * sel-sched-dump.c: Likewise.
19981         * sel-sched-ir.c: Likewise.
19982         * sel-sched.c: Likewise.
19983         * sese.c: Likewise.
19984         * shrink-wrap.c: Likewise.
19985         * simplify-rtx.c: Likewise.
19986         * stack-ptr-mod.c: Likewise.
19987         * statistics.c: Likewise.
19988         * stmt.c: Likewise.
19989         * stor-layout.c: Likewise.
19990         * store-motion.c: Likewise.
19991         * streamer-hooks.c: Likewise.
19992         * stringpool.c: Likewise.
19993         * symtab.c: Likewise.
19994         * target-globals.c: Likewise.
19995         * targhooks.c: Likewise.
19996         * toplev.c: Likewise.
19997         * tracer.c: Likewise.
19998         * trans-mem.c: Likewise.
19999         * tree-affine.c: Likewise.
20000         * tree-browser.c: Likewise.
20001         * tree-call-cdce.c: Likewise.
20002         * tree-cfg.c: Likewise.
20003         * tree-cfgcleanup.c: Likewise.
20004         * tree-chkp-opt.c: Likewise.
20005         * tree-chkp.c: Likewise.
20006         * tree-chrec.c: Likewise.
20007         * tree-complex.c: Likewise.
20008         * tree-data-ref.c: Likewise.
20009         * tree-dfa.c: Likewise.
20010         * tree-diagnostic.c: Likewise.
20011         * tree-dump.c: Likewise.
20012         * tree-eh.c: Likewise.
20013         * tree-emutls.c: Likewise.
20014         * tree-if-conv.c: Likewise.
20015         * tree-inline.c: Likewise.
20016         * tree-into-ssa.c: Likewise.
20017         * tree-iterator.c: Likewise.
20018         * tree-loop-distribution.c: Likewise.
20019         * tree-nested.c: Likewise.
20020         * tree-nrv.c: Likewise.
20021         * tree-object-size.c: Likewise.
20022         * tree-outof-ssa.c: Likewise.
20023         * tree-parloops.c: Likewise.
20024         * tree-phinodes.c: Likewise.
20025         * tree-predcom.c: Likewise.
20026         * tree-pretty-print.c: Likewise.
20027         * tree-profile.c: Likewise.
20028         * tree-scalar-evolution.c: Likewise.
20029         * tree-sra.c: Likewise.
20030         * tree-ssa-address.c: Likewise.
20031         * tree-ssa-alias.c: Likewise.
20032         * tree-ssa-ccp.c: Likewise.
20033         * tree-ssa-coalesce.c: Likewise.
20034         * tree-ssa-copy.c: Likewise.
20035         * tree-ssa-copyrename.c: Likewise.
20036         * tree-ssa-dce.c: Likewise.
20037         * tree-ssa-dom.c: Likewise.
20038         * tree-ssa-dse.c: Likewise.
20039         * tree-ssa-forwprop.c: Likewise.
20040         * tree-ssa-ifcombine.c: Likewise.
20041         * tree-ssa-live.c: Likewise.
20042         * tree-ssa-loop-ch.c: Likewise.
20043         * tree-ssa-loop-im.c: Likewise.
20044         * tree-ssa-loop-ivcanon.c: Likewise.
20045         * tree-ssa-loop-ivopts.c: Likewise.
20046         * tree-ssa-loop-manip.c: Likewise.
20047         * tree-ssa-loop-niter.c: Likewise.
20048         * tree-ssa-loop-prefetch.c: Likewise.
20049         * tree-ssa-loop-unswitch.c: Likewise.
20050         * tree-ssa-loop.c: Likewise.
20051         * tree-ssa-math-opts.c: Likewise.
20052         * tree-ssa-operands.c: Likewise.
20053         * tree-ssa-phiopt.c: Likewise.
20054         * tree-ssa-phiprop.c: Likewise.
20055         * tree-ssa-pre.c: Likewise.
20056         * tree-ssa-propagate.c: Likewise.
20057         * tree-ssa-reassoc.c: Likewise.
20058         * tree-ssa-sccvn.c: Likewise.
20059         * tree-ssa-scopedtables.c: Likewise.
20060         * tree-ssa-sink.c: Likewise.
20061         * tree-ssa-strlen.c: Likewise.
20062         * tree-ssa-structalias.c: Likewise.
20063         * tree-ssa-tail-merge.c: Likewise.
20064         * tree-ssa-ter.c: Likewise.
20065         * tree-ssa-threadedge.c: Likewise.
20066         * tree-ssa-threadupdate.c: Likewise.
20067         * tree-ssa-uncprop.c: Likewise.
20068         * tree-ssa-uninit.c: Likewise.
20069         * tree-ssa.c: Likewise.
20070         * tree-ssanames.c: Likewise.
20071         * tree-stdarg.c: Likewise.
20072         * tree-streamer-in.c: Likewise.
20073         * tree-streamer-out.c: Likewise.
20074         * tree-streamer.c: Likewise.
20075         * tree-switch-conversion.c: Likewise.
20076         * tree-tailcall.c: Likewise.
20077         * tree-vect-data-refs.c: Likewise.
20078         * tree-vect-generic.c: Likewise.
20079         * tree-vect-loop-manip.c: Likewise.
20080         * tree-vect-loop.c: Likewise.
20081         * tree-vect-patterns.c: Likewise.
20082         * tree-vect-slp.c: Likewise.
20083         * tree-vect-stmts.c: Likewise.
20084         * tree-vectorizer.c: Likewise.
20085         * tree-vrp.c: Likewise.
20086         * tree.c: Likewise.
20087         * tsan.c: Likewise.
20088         * ubsan.c: Likewise.
20089         * valtrack.c: Likewise.
20090         * value-prof.c: Likewise.
20091         * var-tracking.c: Likewise.
20092         * varasm.c: Likewise.
20093         * varpool.c: Likewise.
20094         * vmsdbgout.c: Likewise.
20095         * vtable-verify.c: Likewise.
20096         * web.c: Likewise.
20097         * wide-int.cc: Likewise.
20098         * xcoffout.c: Likewise.
20099         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20100         * common/common-targhooks.c: Likewise.
20101         * config/aarch64/aarch64-builtins.c: Likewise.
20102         * config/aarch64/aarch64.c: Likewise.
20103         * config/alpha/alpha.c: Likewise.
20104         * config/arc/arc.c: Likewise.
20105         * config/arm/aarch-common.c: Likewise.
20106         * config/arm/arm-builtins.c: Likewise.
20107         * config/arm/arm-c.c: Likewise.
20108         * config/arm/arm.c: Likewise.
20109         * config/avr/avr-c.c: Likewise.
20110         * config/avr/avr-log.c: Likewise.
20111         * config/avr/avr.c: Likewise.
20112         * config/bfin/bfin.c: Likewise.
20113         * config/c6x/c6x.c: Likewise.
20114         * config/cr16/cr16.c: Likewise.
20115         * config/cris/cris.c: Likewise.
20116         * config/darwin-c.c: Likewise.
20117         * config/darwin.c: Likewise.
20118         * config/default-c.c: Likewise.
20119         * config/epiphany/epiphany.c: Likewise.
20120         * config/epiphany/mode-switch-use.c: Likewise.
20121         * config/epiphany/resolve-sw-modes.c: Likewise.
20122         * config/fr30/fr30.c: Likewise.
20123         * config/frv/frv.c: Likewise.
20124         * config/ft32/ft32.c: Likewise.
20125         * config/glibc-c.c: Likewise.
20126         * config/h8300/h8300.c: Likewise.
20127         * config/i386/i386-c.c: Likewise.
20128         * config/i386/i386.c: Likewise.
20129         * config/i386/msformat-c.c: Likewise.
20130         * config/i386/winnt-cxx.c: Likewise.
20131         * config/i386/winnt-stubs.c: Likewise.
20132         * config/i386/winnt.c: Likewise.
20133         * config/ia64/ia64-c.c: Likewise.
20134         * config/ia64/ia64.c: Likewise.
20135         * config/iq2000/iq2000.c: Likewise.
20136         * config/lm32/lm32.c: Likewise.
20137         * config/m32c/m32c-pragma.c: Likewise.
20138         * config/m32c/m32c.c: Likewise.
20139         * config/m32r/m32r.c: Likewise.
20140         * config/m68k/m68k.c: Likewise.
20141         * config/mcore/mcore.c: Likewise.
20142         * config/mep/mep-pragma.c: Likewise.
20143         * config/mep/mep.c: Likewise.
20144         * config/microblaze/microblaze-c.c: Likewise.
20145         * config/microblaze/microblaze.c: Likewise.
20146         * config/mips/mips.c: Likewise.
20147         * config/mmix/mmix.c: Likewise.
20148         * config/mn10300/mn10300.c: Likewise.
20149         * config/moxie/moxie.c: Likewise.
20150         * config/msp430/msp430-c.c: Likewise.
20151         * config/msp430/msp430.c: Likewise.
20152         * config/nds32/nds32-cost.c: Likewise.
20153         * config/nds32/nds32-fp-as-gp.c: Likewise.
20154         * config/nds32/nds32-intrinsic.c: Likewise.
20155         * config/nds32/nds32-isr.c: Likewise.
20156         * config/nds32/nds32-md-auxiliary.c: Likewise.
20157         * config/nds32/nds32-memory-manipulation.c: Likewise.
20158         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20159         * config/nds32/nds32-predicates.c: Likewise.
20160         * config/nds32/nds32.c: Likewise.
20161         * config/nios2/nios2.c: Likewise.
20162         * config/nvptx/nvptx.c: Likewise.
20163         * config/pa/pa.c: Likewise.
20164         * config/pdp11/pdp11.c: Likewise.
20165         * config/rl78/rl78-c.c: Likewise.
20166         * config/rl78/rl78.c: Likewise.
20167         * config/rs6000/rs6000-c.c: Likewise.
20168         * config/rs6000/rs6000.c: Likewise.
20169         * config/rx/rx.c: Likewise.
20170         * config/s390/s390-c.c: Likewise.
20171         * config/s390/s390.c: Likewise.
20172         * config/sh/sh-c.c: Likewise.
20173         * config/sh/sh-mem.cc: Likewise.
20174         * config/sh/sh.c: Likewise.
20175         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20176         * config/sh/sh_treg_combine.cc: Likewise.
20177         * config/sol2-c.c: Likewise.
20178         * config/sol2-cxx.c: Likewise.
20179         * config/sol2-stubs.c: Likewise.
20180         * config/sol2.c: Likewise.
20181         * config/sparc/sparc-c.c: Likewise.
20182         * config/sparc/sparc.c: Likewise.
20183         * config/spu/spu-c.c: Likewise.
20184         * config/spu/spu.c: Likewise.
20185         * config/stormy16/stormy16.c: Likewise.
20186         * config/tilegx/mul-tables.c: Likewise.
20187         * config/tilegx/tilegx-c.c: Likewise.
20188         * config/tilegx/tilegx.c: Likewise.
20189         * config/tilepro/mul-tables.c: Likewise.
20190         * config/tilepro/tilepro-c.c: Likewise.
20191         * config/tilepro/tilepro.c: Likewise.
20192         * config/v850/v850-c.c: Likewise.
20193         * config/v850/v850.c: Likewise.
20194         * config/vax/vax.c: Likewise.
20195         * config/visium/visium.c: Likewise.
20196         * config/vms/vms-c.c: Likewise.
20197         * config/vms/vms.c: Likewise.
20198         * config/vxworks.c: Likewise.
20199         * config/winnt-c.c: Likewise.
20200         * config/xtensa/xtensa.c: Likewise.
20202 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
20204         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20205         function.
20206         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20208 2015-06-17  Richard Biener  <rguenther@suse.de>
20210         PR tree-optimization/66251
20211         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20212         stmts for SLP strided stores.
20214         Revert
20215         2015-05-22  Richard Biener  <rguenther@suse.de>
20217         PR tree-optimization/66251
20218         * tree-vect-stmts.c (vectorizable_conversion): Properly
20219         set STMT_VINFO_VEC_STMT even for the SLP case.
20221         2015-05-26  Michael Matz  <matz@suse.de>
20223         PR middle-end/66251
20224         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20225         STMT_VINFO_VEC_STMT, also with SLP.
20227 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
20229         PR target/56766
20230         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20231         (*avx_addsubv4df3_1s): Ditto.
20232         (*sse3_addsubv2df3_1): Ditto.
20233         (*sse3_addsubv2df3_1s): Ditto.
20234         (*avx_addsubv8sf3_1): Ditto.
20235         (*avx_addsubv8sf3_1s): Ditto.
20236         (*sse3_addsubv4sf3_1): Ditto.
20237         (*sse3_addsubv4sf3_1s): Ditto.
20239 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
20241         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20242         (SYSROOT_SUFFIX_SPEC): Update.
20243         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20244         (STARTFILE_PREFIX_SPEC): Update.
20245         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20246         (MULTILIB_REQUIRED): New.
20247         (MULTILIB_OSDIRNAMES): New.
20248         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20249         (MULTILIB_REQUIRED): New.
20250         (MULTILIB_OSDIRNAMES): New.
20252 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
20254         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20255         * config/aarch64/aarch64-options-extensions.def: Update "fP",
20256         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
20257         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20258         (AARCH64_FL_PAN): New.
20259         (AARCH64_FL_LOR): New.
20260         (AARCH64_FL_RDMA): New.
20261         (AARCH64_FL_FOR_ARCH8_1): New.
20262         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20263         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20265 2015-06-16  Martin Liska  <mliska@suse.cz>
20267         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20268         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20269         guard.
20271 2015-06-16  Richard Biener  <rguenther@suse.de>
20273         * tree-vect-stmts.c (vectorizable_store): Adjust.
20274         (vectorizable_load): Likewise.
20275         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20276         Simplify.
20277         (vect_create_data_ref_ptr): Likewise.
20278         (bump_vector_ptr): Adjust.
20280 2015-06-16  Richard Biener  <rguenther@suse.de>
20282         * tree-vect-stmts.c (vectorizable_load): Properly start loads
20283         with the first element if this is grouped loads.
20285 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
20287         * config/arm/arm-protos.h (struct tune_params): Rename
20288         log_op_non_sc to log_op_non_short_circuit, and rename enum
20289         values to expand SC to SHORT_CIRCUIT.
20290         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20291         to LOG_OP_NON_SHORT_CIRCUIT.
20292         (arm_fastmul_tune):Likewise
20293         (arm_strongarm_tune): Likewise.
20294         (arm_xscale_tune): Likewise.
20295         (arm_9e_tune): Likewise.
20296         (arm_marvell_pj4_tune): Likewise.
20297         (arm_v6t2_tune): Likewise.
20298         (arm_cortex_tune): Likewise.
20299         (arm_cortex_a8_tune): Likewise.
20300         (arm_cortex_a7_tune): Likewise.
20301         (arm_cortex_a15_tune): Likewise.
20302         (arm_cortex_a53_tune): Likewise.
20303         (arm_cortex_a57_tune): Likewise.
20304         (arm_xgene1_tune): Likewise.
20305         (arm_cortex_a5_tune): Likewise.
20306         (arm_cortex_a9_tune): Likewise.
20307         (arm_cortex_a12_tune): Likewise.
20308         (arm_v7m_tune): Likewise.
20309         (arm_cortex_m7_tune): Likewise.
20310         (arm_v6m_tune): Likewise.
20311         (arm_fa726te_tune): Likewise.
20313 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
20315         * altivec.md: Delete UNSPEC_VMLADDUHM.
20316         (mulv4si3_p8): New pattern.
20317         (mulv4si3): Use it for POWER8.
20318         (mulv8hi3): Use vmladduhm with zero addend.
20319         (altivec_vmladduhm): Descriptive RTL.
20321 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
20323         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20324         to use neon_move instead of mov_imm.
20325         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20326         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20328         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20329         aarch64_float_const_zero_rtx_p check before TFmode check.
20330         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20331         an fp zero.
20332         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
20333         code and attributes to match.  Change condition from register_operand
20334         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
20335         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
20336         to store2.
20338 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
20340         PR debug/66535
20341         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20342         there is no parent.
20344 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
20346         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20347         HOST_WIDE_INT parameter.
20349 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
20351         PR ipa/66181
20352         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20353         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20354         TYPE_NO_FORCE_BLK.
20355         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20357 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
20359         * rtl.h (classify_insn): Declare.
20360         * emit-rtl.c (classify_insn): Move to...
20361         * rtl.c: ...here and add generator support.
20362         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20363         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20364         * genemit.c (gen_emit_seq): New function.
20365         (gen_expand, gen_split): Use it.
20367 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
20369         * tree.c (make_vector_stat): Fix comment to state that the
20370         function returns a VECTOR_CST.
20372 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
20374         * gensupport.h (add_implicit_parallel): Declare.
20375         * genrecog.c (add_implicit_parallel): Move to...
20376         * gensupport.c (add_implicit_parallel): ...here.
20377         (process_one_cond_exec): Use it.
20378         * genemit.c (gen_insn): Likewise.
20380 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
20382         PR bootstrap/66448
20383         * passes.c (rest_of_decl_compilation): Do not register globals for
20384         early debug if they are declared in built-ins.
20386 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
20388         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20390 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20392         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20393         manually swapping.
20394         (noce_try_cmove_arith): Likewise.
20395         (noce_get_alt_condition): Likewise.
20397 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20399         * common/config/i386/i386-common.c
20400         (OPTION_MASK_ISA_MWAITX_SET): New.
20401         (ix86_handle_option): Handle mwaitx.
20402         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20403         (x86_64-*-*): Likewise.
20404         * config/i386/mwaitxintrin.h: New header.
20405         * config/i386/cpuid.h (bit_MWAITX):  Define.
20406         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20407         MWAITX support.
20408         * config/i386/i386.opt (mwaitx): New.
20409         * config/i386/i386-builtin-types.def
20410         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20411         * config/i386/i386-c.c: Define __MWAITX__ if needed.
20412         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20413         (PTA_MWAITX): New.
20414         (ix86_option_override_internal): Handle new option.
20415         (processor_alias_table): Added PTA_MWAITX.
20416         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20417         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20418         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20419         IX86_BUILTIN_MONITORX  built-ins.
20420         * config/i386/i386.h (TARGET_MWAITX): New.
20421         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20422         UNSPEC_MONITORX.
20423         (mwaitx):  New pattern.
20424         (monitorx_<mode>): New pattern.
20425         * config/i386/x86intrin.h: Include mwaitxintrin.h.
20426         * doc/extend.texi: Document monitorx and mwaitx builtins.
20427         * doc/invoke.texi: Document -mmwaitx option.
20429 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
20431         * emit-rtl.c (need_atomic_barrier_p): Mask model with
20432         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
20434 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
20436         * dbxout.c (xcoff_debug_hooks): Provide a function for
20437         register_main_translation_unit hook.
20439 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
20441         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
20442         variants cases from switch.
20443         (rs6000_post_atomic_barrier): Same.
20444         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
20445         (rs6000_expand_atomic_exchange): Same.
20446         (rs6000_expand_atomic_op): Same.
20447         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
20448         SYNC variants cases from switch.
20449         (atomic_load): Same.
20450         (atomic_store): Same.
20452 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
20454         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
20455         CONST_INT for goto.
20457 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
20459         PR bootstrap/66448
20460         * dwarf2out.c (check_die): Check for common duplicate attributes.
20461         (add_location_or_const_value_attribute): Do not add duplicate
20462         attributes.
20463         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
20464         time around.
20465         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
20466         (gen_type_die_with_usage): Call check_die.
20467         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
20469 2015-06-11  Jason Merrill  <jason@redhat.com>
20471         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
20472         dies.
20474 2015-06-11  Marek Polacek  <polacek@redhat.com>
20476         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
20478 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
20480         PR bootstrap/66252
20481         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
20482         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
20483         (*addx_extend_sp32): Fix pasto.
20484         (*subx_extend): Rename into...
20485         (*subx_extend_sp32): ...this.
20486         (*adddi3_extend_sp32): Add earlyclobber.
20487         (*subdi3_insn_sp32): Likewise.
20488         (*subdi3_extend_sp32): Likewise.
20489         (*and_not_di_sp32): Likewise.
20490         (*or_not_di_sp32): Likewise.
20491         (*xor_not_di_sp32): Likewise.
20492         (*negdi2_sp32): Likewise.
20493         (*one_cmpldi2_sp32): Likewise.
20495 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
20497         * debug.h (struct gcc_debug_hooks): Add a
20498         register_main_translation_unit hook.
20499         * debug.c (do_nothing_debug_hooks): Provide a function for this
20500         new hook.
20501         * dbxout.c (dbx_debug_hooks): Likewise.
20502         * sdbout.c (sdb_debug_hooks): Likewise.
20503         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20504         * dwarf2out.c (main_translation_unit): New global variable.
20505         (dwarf2out_register_main_translation_unit): New function
20506         implementing the new hook.
20507         (dwarf2_debug_hooks): Assign
20508         dwarf2out_register_main_translation_unit to this new hook.
20509         (dwarf2out_init): Associate any main translation unit to
20510         comp_unit_die ().
20512 2015-06-11  Marek Polacek  <polacek@redhat.com>
20514         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
20516 2015-06-11  Marek Polacek  <polacek@redhat.com>
20518         * match.pd: Use single_use throughout.
20520 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20522         * config/arm/arm.c (arm_option_params_internal): When optimising
20523         for speed set max_insns_skipped when arm_restrict_it.
20525 2015-06-11  Christian Bruel  <christian.bruel@st.com>
20527         PR target/52144
20528         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
20529          macros in ...
20530         (arm_cpu_builtins): New function.
20531         (arm_pragma_target_parse): Call arm_cpu_builtins.
20532         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
20533         (arm_register_target_pragmas): Likewise.
20534         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
20535          Call arm_register_target_pragmas.
20536         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
20537         (arm_pragma_target_parse): Likewise.
20539 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
20541         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
20542         of the second operand.
20544 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
20546         PR target/66473
20547         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
20548         to prepare mask operand for AVX512 modes.
20550 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
20552         PR target/66474
20553         * doc/md.texi (Machine Constraints): Document that on the PowerPC
20554         if you use a constraint that targets a VSX register, you must use
20555         %x<n> in the template.
20557 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
20559         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
20560         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
20561         (define_insn "trap"): New definition.
20563 2015-06-10  Richard Biener  <rguenther@suse.de>
20565         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
20566         out from ...
20567         (vect_supported_load_permutation_p): ... here.  Handle
20568         supportable permutations in reductions.
20569         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
20570         for vectorizing strided group loads.
20572 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
20574         PR target/66470
20575         * config/i386/i386.c (ix86_split_long_move): For collisions
20576         involving direct tls segment refs, move the UNSPEC_TP possibly
20577         wrapped in ZERO_EXTEND out of the address for lea, to each of
20578         the memory loads.
20580 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20582         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
20583         dmb sy. Adjust tabs.
20585 2015-06-10  Tom de Vries  <tom@codesourcery.com>
20587         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
20589 2015-06-10  Martin Liska  <mliska@suse.cz>
20591         PR bootstrap/66471
20592         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
20593         all enum values in mem_alloc_origin.
20594         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
20595         name.
20596         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
20597         * bitmap.c (bitmap_register): Likewise.
20598         (dump_bitmap_statistics): Likewise.
20599         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
20600         (ggc_record_overhead): Likewise.
20601         * hash-map.h: Likewise.
20602         * hash-set.h: Likewise.
20603         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
20604         * hash-table.h: Likewise.
20605         * vec.c (vec_prefix::register_overhead): Likewise.
20606         (vec_prefix::release_overhead): Likewise.
20607         (dump_vec_loc_statistics): Likewise.
20609 2015-06-09  Christian Bruel  <christian.bruel@st.com>
20611         PR target/52144
20612         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
20613         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
20614         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
20615         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
20616         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
20617         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
20618         (arm_valid_target_attribute_p): Likewise.
20619         (arm_set_current_function, arm_can_inline_p): Likewise.
20620         (arm_valid_target_attribute_rec): Likewise.
20621         (arm_previous_fndecl): New variable.
20622         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20623         (TARGET_CAN_INLINE_P): Define.
20624         (arm_asm_trampoline_template): Emit mode.
20625         (arm_file_start): Don't set unified syntax.
20626         (arm_declare_function_name): Set unified syntax and mode.
20627         (arm_option_override): Init target_option_default_node.
20628         and target_option_current_node.
20629         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
20630         (*call_symbol): Likewise.
20631         * doc/extend.texi: Document ARM/Thumb target attribute.
20632         * doc/invoke.texi: Likewise.
20634 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20636         Revert:
20637         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20638         PR rtl-optimization/64164
20639         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20640         * tree-ssa-copyrename.c: Removed.
20641         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20642         -ftree-coalesce-vars.
20643         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20644         * common.opt (ftree-copyrename): Ignore.
20645         (ftree-coalesce-inlined-vars): Likewise.
20646         * doc/invoke.texi: Remove the ignored options above.
20647         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20648         * tree-ssa-coalesce.h: ... here.
20649         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20650         headers required by it.
20651         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20652         across variables when flag_tree_coalesce_vars.  Check register
20653         use and promoted modes to allow coalescing.  Moved to
20654         tree-ssa-coalesce.c.
20655         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20656         with its member functions to tree-ssa-coalesce.c.
20657         (var_map_base_init): Likewise.  Renamed to
20658         compute_samebase_partition_bases.
20659         (partition_view_normal): Drop want_bases parameter.
20660         (partition_view_bitmap): Likewise.
20661         * tree-ssa-live.h: Adjust declarations.
20662         * tree-ssa-coalesce.c: Include explow.h.
20663         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20664         default defs at the entry point.
20665         (dump_part_var_map): New.
20666         (compute_optimized_partition_bases): New, called by...
20667         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20668         of compute_samebase_partition_bases.  Adjust.
20669         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20670         * cfgexpand.c (leader_merge): New.
20671         (get_rtl_for_parm_ssa_default_def): New.
20672         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20673         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20674         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20675         redundant MEM attr setting.
20676         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20677         from...
20678         (expand_one_stack_var): ... this.  New wrapper to check and
20679         skip already expanded SSA partitions.
20680         (record_alignment_for_reg_var): New, factored out of...
20681         (expand_one_var): ... this.
20682         (expand_one_ssa_partition): New.
20683         (adjust_one_expanded_partition_var): New.
20684         (expand_one_register_var): Check and skip already expanded SSA
20685         partitions.
20686         (expand_used_vars): Don't create DECLs for anonymous SSA
20687         names.  Expand all SSA partitions, then adjust all SSA names.
20688         (pass::execute): Replace the loops that set
20689         SA.partition_to_pseudo from partition leaders and cleared
20690         DECL_RTL for multi-location variables, and that which used to
20691         rename vars and set attrs, with one that clears DECL_RTL and
20692         checks that PARMs and RESULTs default_defs match DECL_RTL.
20693         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20694         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20695         * explow.c (promote_ssa_mode): New.
20696         * explow.h (promote_ssa_mode): Declare.
20697         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20698         * function.c: Include cfgexpand.h.
20699         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20700         (use_register_for_parm_decl): Wrapper for the above to
20701         special-case the result_ptr.
20702         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20703         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20704         multiple locations.
20705         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20706         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20707         (assign_parm_setup_block): Prefer SSA-assigned location.
20708         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20709         if stack_parm is NULL.
20710         (assign_parm_setup_stack): Prefer SSA-assigned location.
20711         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20712         rtl before testing for pointer bounds.  Special-case result_ptr.
20713         (expand_function_start): Maybe reset DECL_RTL of result.
20714         Prefer SSA-assigned location for result and static chain.
20715         Factor out DECL_RESULT and SET_DECL_RTL.
20716         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20717         anonymous SSA names.  Use promote_ssa_mode.
20718         (get_temp_reg): Likewise.
20719         (remove_ssa_form): Adjust.
20720         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20721         and get its reg_usage for reg invalidation.
20722         (compute_bb_dataflow): Pass it insn.
20723         (emit_notes_in_bb): Likewise.
20724         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20725         fail assert on conversion between unsigned types.
20727 2015-06-09  Tom de Vries  <tom@codesourcery.com>
20729         PR tree-optimization/65460
20730         * omp-low.c (expand_omp_target): Set parallelized_function on
20731         cgraph_node for child_fn.
20733 2015-06-09  Tom de Vries  <tom@codesourcery.com>
20735         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
20736         parallelized_function before add_new_function.
20738 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
20740         * gcc-plugin.h: Move decls to plugin.h and include it.
20741         * plugin.h: Relocate decls from gcc-plugin.h
20742         * ggc-page.c: Include required header files.
20743         * passes.c: Likewise.
20744         * cgraphunit.c: Likewise.
20746 2015-06-09  Tom de Vries  <tom@codesourcery.com>
20748         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
20750 2015-06-09  Jason Merrill  <jason@redhat.com>
20752         PR bootstrap/66448
20753         * toplev.c (check_global_declaration): Don't warn about a clone.
20755 2015-06-09  Marek Polacek  <polacek@redhat.com>
20757         PR tree-optimization/66299
20758         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
20759         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
20760         patterns.
20762 2015-06-09  Richard Biener  <rguenther@suse.de>
20764         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
20765         (vect_analyze_slp_instance): Instead do not falsely drop
20766         load permutations.
20768 2015-06-09  Richard Biener  <rguenther@suse.de>
20770         PR middle-end/66423
20771         * match.pd: Handle A % (unsigned)(1 << B).
20773 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
20775         * varasm.c (output_object_block_htab): Remove.
20776         (output_object_block_compare): New.
20777         (output_object_blocks): Sort named object_blocks before outputting
20778         them.
20780 2015-06-09  Richard Biener  <rguenther@suse.de>
20782         PR tree-optimization/66419
20783         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
20784         consider GROUP_GAP when detecting a perfect subchain.
20786 2015-06-09  Nick Clifton  <nickc@redhat.com>
20788         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
20789         place read only data in the .frodata section.
20791 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
20793         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
20794         (atomic_store<mode>): Likewise.
20796 2015-06-09  Richard Biener  <rguenther@suse.de>
20798         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
20800 2015-06-09  Richard Biener  <rguenther@suse.de>
20802         PR middle-end/66413
20803         * tree-inline.c (insert_init_debug_bind): Unshare value.
20805 2015-06-09  Richard Biener  <rguenther@suse.de>
20807         PR tree-optimization/66396
20808         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
20809         Rename virtual operands.
20811 2015-06-09  Tom de Vries  <tom@codesourcery.com>
20813         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
20814         always return false.
20816 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20818         PR rtl-optimization/64164
20819         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20820         * tree-ssa-copyrename.c: Removed.
20821         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20822         -ftree-coalesce-vars.
20823         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20824         * common.opt (ftree-copyrename): Ignore.
20825         (ftree-coalesce-inlined-vars): Likewise.
20826         * doc/invoke.texi: Remove the ignored options above.
20827         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20828         * tree-ssa-coalesce.h: ... here.
20829         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20830         headers required by it.
20831         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20832         across variables when flag_tree_coalesce_vars.  Check register
20833         use and promoted modes to allow coalescing.  Moved to
20834         tree-ssa-coalesce.c.
20835         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20836         with its member functions to tree-ssa-coalesce.c.
20837         (var_map_base_init): Likewise.  Renamed to
20838         compute_samebase_partition_bases.
20839         (partition_view_normal): Drop want_bases parameter.
20840         (partition_view_bitmap): Likewise.
20841         * tree-ssa-live.h: Adjust declarations.
20842         * tree-ssa-coalesce.c: Include explow.h.
20843         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20844         default defs at the entry point.
20845         (dump_part_var_map): New.
20846         (compute_optimized_partition_bases): New, called by...
20847         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20848         of compute_samebase_partition_bases.  Adjust.
20849         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20850         * cfgexpand.c (leader_merge): New.
20851         (get_rtl_for_parm_ssa_default_def): New.
20852         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20853         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20854         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20855         redundant MEM attr setting.
20856         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20857         from...
20858         (expand_one_stack_var): ... this.  New wrapper to check and
20859         skip already expanded SSA partitions.
20860         (record_alignment_for_reg_var): New, factored out of...
20861         (expand_one_var): ... this.
20862         (expand_one_ssa_partition): New.
20863         (adjust_one_expanded_partition_var): New.
20864         (expand_one_register_var): Check and skip already expanded SSA
20865         partitions.
20866         (expand_used_vars): Don't create DECLs for anonymous SSA
20867         names.  Expand all SSA partitions, then adjust all SSA names.
20868         (pass::execute): Replace the loops that set
20869         SA.partition_to_pseudo from partition leaders and cleared
20870         DECL_RTL for multi-location variables, and that which used to
20871         rename vars and set attrs, with one that clears DECL_RTL and
20872         checks that PARMs and RESULTs default_defs match DECL_RTL.
20873         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20874         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20875         * explow.c (promote_ssa_mode): New.
20876         * explow.h (promote_ssa_mode): Declare.
20877         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20878         * function.c: Include cfgexpand.h.
20879         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20880         (use_register_for_parm_decl): Wrapper for the above to
20881         special-case the result_ptr.
20882         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20883         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20884         multiple locations.
20885         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20886         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20887         (assign_parm_setup_block): Prefer SSA-assigned location.
20888         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20889         if stack_parm is NULL.
20890         (assign_parm_setup_stack): Prefer SSA-assigned location.
20891         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20892         rtl before testing for pointer bounds.  Special-case result_ptr.
20893         (expand_function_start): Maybe reset DECL_RTL of result.
20894         Prefer SSA-assigned location for result and static chain.
20895         Factor out DECL_RESULT and SET_DECL_RTL.
20896         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20897         anonymous SSA names.  Use promote_ssa_mode.
20898         (get_temp_reg): Likewise.
20899         (remove_ssa_form): Adjust.
20900         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20901         and get its reg_usage for reg invalidation.
20902         (compute_bb_dataflow): Pass it insn.
20903         (emit_notes_in_bb): Likewise.
20904         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20905         fail assert on conversion between unsigned types.
20907 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20909         PR debug/58315
20910         * tree-inline.c (reset_debug_binding): New.
20911         (reset_debug_bindings): Likewise.
20912         (expand_call_inline): Call it.
20914 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
20916         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
20917         TYPE_STRING_FLAG.
20919 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
20921         * lto-streamer-out.c (lto_output_location): Stream
20922         reserved locations correctly.
20923         * lto-streamer-in.c (lto_output_location): Likewise.
20925 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
20927         * coretypes.h: Include hash-table.h and hash-set.h for host files.
20928         * ggc.h: Don't include statistics.h>
20929         * hash-map.h: Remove all includes.
20930         * hash-set.h: Likewise.
20931         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
20932         the include list. Remove <new>.
20933         * inchash.h: Remove all includes.
20934         * mem-stats.h: Likewise.
20935         * vec.h: No special processing for generators or ggc.
20936         * alias.c : Adjust include files.
20937         * alloc-pool.c : Likewise.
20938         * alloc-pool.h : Likewise.
20939         * asan.c : Likewise.
20940         * attribs.c : Likewise.
20941         * auto-inc-dec.c : Likewise.
20942         * auto-profile.c : Likewise.
20943         * bb-reorder.c : Likewise.
20944         * bitmap.c : Likewise.
20945         * bitmap.h : Likewise.
20946         * bt-load.c : Likewise.
20947         * builtins.c : Likewise.
20948         * caller-save.c : Likewise.
20949         * calls.c : Likewise.
20950         * ccmp.c : Likewise.
20951         * cfg.c : Likewise.
20952         * cfganal.c : Likewise.
20953         * cfgbuild.c : Likewise.
20954         * cfgcleanup.c : Likewise.
20955         * cfgexpand.c : Likewise.
20956         * cfghooks.c : Likewise.
20957         * cfgloop.c : Likewise.
20958         * cfgloop.h : Likewise.
20959         * cfgloopanal.c : Likewise.
20960         * cfgloopmanip.c : Likewise.
20961         * cfgrtl.c : Likewise.
20962         * cgraph.c : Likewise.
20963         * cgraphbuild.c : Likewise.
20964         * cgraphclones.c : Likewise.
20965         * cgraphunit.c : Likewise.
20966         * cilk-common.c : Likewise.
20967         * combine-stack-adj.c : Likewise.
20968         * combine.c : Likewise.
20969         * compare-elim.c : Likewise.
20970         * context.c : Likewise.
20971         * convert.c : Likewise.
20972         * coverage.c : Likewise.
20973         * cppbuiltin.c : Likewise.
20974         * cprop.c : Likewise.
20975         * cse.c : Likewise.
20976         * cselib.c : Likewise.
20977         * data-streamer-in.c : Likewise.
20978         * data-streamer-out.c : Likewise.
20979         * data-streamer.c : Likewise.
20980         * data-streamer.h : Likewise.
20981         * dbxout.c : Likewise.
20982         * dce.c : Likewise.
20983         * ddg.c : Likewise.
20984         * debug.c : Likewise.
20985         * df-core.c : Likewise.
20986         * df-problems.c : Likewise.
20987         * df-scan.c : Likewise.
20988         * df.h : Likewise.
20989         * dfp.c : Likewise.
20990         * dojump.c : Likewise.
20991         * dominance.c : Likewise.
20992         * domwalk.c : Likewise.
20993         * double-int.c : Likewise.
20994         * dse.c : Likewise.
20995         * dumpfile.c : Likewise.
20996         * dwarf2asm.c : Likewise.
20997         * dwarf2cfi.c : Likewise.
20998         * dwarf2out.c : Likewise.
20999         * emit-rtl.c : Likewise.
21000         * et-forest.c : Likewise.
21001         * except.c : Likewise.
21002         * except.h : Likewise.
21003         * explow.c : Likewise.
21004         * expmed.c : Likewise.
21005         * expr.c : Likewise.
21006         * final.c : Likewise.
21007         * fixed-value.c : Likewise.
21008         * fold-const.c : Likewise.
21009         * function.c : Likewise.
21010         * fwprop.c : Likewise.
21011         * gcc-plugin.h : Likewise.
21012         * gcc.c : Likewise.
21013         * gcse-common.c : Likewise.
21014         * gcse.c : Likewise.
21015         * genattrtab.c : Likewise.
21016         * genautomata.c : Likewise.
21017         * genconditions.c : Likewise.
21018         * genemit.c : Likewise.
21019         * generic-match-head.c : Likewise.
21020         * genextract.c : Likewise.
21021         * gengtype-state.c : Likewise.
21022         * gengtype.c : Likewise.
21023         * genhooks.c : Likewise.
21024         * genmatch.c : Likewise.
21025         * genmodes.c : Likewise.
21026         * genrecog.c : Likewise.
21027         * gensupport.c : Likewise.
21028         * ggc-common.c : Likewise.
21029         * ggc-internal.h : Likewise.
21030         * ggc-none.c : Likewise.
21031         * ggc-page.c : Likewise.
21032         * gimple-builder.c : Likewise.
21033         * gimple-expr.c : Likewise.
21034         * gimple-fold.c : Likewise.
21035         * gimple-iterator.c : Likewise.
21036         * gimple-low.c : Likewise.
21037         * gimple-match-head.c : Likewise.
21038         * gimple-pretty-print.c : Likewise.
21039         * gimple-ssa-isolate-paths.c : Likewise.
21040         * gimple-ssa-strength-reduction.c : Likewise.
21041         * gimple-ssa.h : Likewise.
21042         * gimple-streamer-in.c : Likewise.
21043         * gimple-streamer-out.c : Likewise.
21044         * gimple-streamer.h : Likewise.
21045         * gimple-walk.c : Likewise.
21046         * gimple.c : Likewise.
21047         * gimplify-me.c : Likewise.
21048         * gimplify.c : Likewise.
21049         * godump.c : Likewise.
21050         * graph.c : Likewise.
21051         * graphds.c : Likewise.
21052         * graphite-blocking.c : Likewise.
21053         * graphite-dependences.c : Likewise.
21054         * graphite-interchange.c : Likewise.
21055         * graphite-isl-ast-to-gimple.c : Likewise.
21056         * graphite-optimize-isl.c : Likewise.
21057         * graphite-poly.c : Likewise.
21058         * graphite-scop-detection.c : Likewise.
21059         * graphite-sese-to-poly.c : Likewise.
21060         * graphite.c : Likewise.
21061         * haifa-sched.c : Likewise.
21062         * hard-reg-set.h : Likewise.
21063         * hw-doloop.c : Likewise.
21064         * ifcvt.c : Likewise.
21065         * inchash.c : Likewise.
21066         * incpath.c : Likewise.
21067         * init-regs.c : Likewise.
21068         * input.c : Likewise.
21069         * internal-fn.c : Likewise.
21070         * ipa-chkp.c : Likewise.
21071         * ipa-comdats.c : Likewise.
21072         * ipa-cp.c : Likewise.
21073         * ipa-devirt.c : Likewise.
21074         * ipa-icf-gimple.c : Likewise.
21075         * ipa-icf.c : Likewise.
21076         * ipa-inline-analysis.c : Likewise.
21077         * ipa-inline-transform.c : Likewise.
21078         * ipa-inline.c : Likewise.
21079         * ipa-polymorphic-call.c : Likewise.
21080         * ipa-profile.c : Likewise.
21081         * ipa-prop.c : Likewise.
21082         * ipa-pure-const.c : Likewise.
21083         * ipa-ref.c : Likewise.
21084         * ipa-reference.c : Likewise.
21085         * ipa-split.c : Likewise.
21086         * ipa-utils.c : Likewise.
21087         * ipa-visibility.c : Likewise.
21088         * ipa.c : Likewise.
21089         * ira-build.c : Likewise.
21090         * ira-color.c : Likewise.
21091         * ira-conflicts.c : Likewise.
21092         * ira-costs.c : Likewise.
21093         * ira-emit.c : Likewise.
21094         * ira-lives.c : Likewise.
21095         * ira.c : Likewise.
21096         * jump.c : Likewise.
21097         * langhooks.c : Likewise.
21098         * lcm.c : Likewise.
21099         * libfuncs.h : Likewise.
21100         * lists.c : Likewise.
21101         * loop-doloop.c : Likewise.
21102         * loop-init.c : Likewise.
21103         * loop-invariant.c : Likewise.
21104         * loop-iv.c : Likewise.
21105         * loop-unroll.c : Likewise.
21106         * lower-subreg.c : Likewise.
21107         * lra-assigns.c : Likewise.
21108         * lra-coalesce.c : Likewise.
21109         * lra-constraints.c : Likewise.
21110         * lra-eliminations.c : Likewise.
21111         * lra-lives.c : Likewise.
21112         * lra-remat.c : Likewise.
21113         * lra-spills.c : Likewise.
21114         * lra.c : Likewise.
21115         * lto-cgraph.c : Likewise.
21116         * lto-compress.c : Likewise.
21117         * lto-opts.c : Likewise.
21118         * lto-section-in.c : Likewise.
21119         * lto-section-out.c : Likewise.
21120         * lto-streamer-in.c : Likewise.
21121         * lto-streamer-out.c : Likewise.
21122         * lto-streamer.c : Likewise.
21123         * lto-streamer.h : Likewise.
21124         * mcf.c : Likewise.
21125         * mode-switching.c : Likewise.
21126         * modulo-sched.c : Likewise.
21127         * omega.c : Likewise.
21128         * omp-low.c : Likewise.
21129         * optabs.c : Likewise.
21130         * opts-global.c : Likewise.
21131         * opts.h : Likewise.
21132         * passes.c : Likewise.
21133         * plugin.c : Likewise.
21134         * postreload-gcse.c : Likewise.
21135         * postreload.c : Likewise.
21136         * predict.c : Likewise.
21137         * print-rtl.c : Likewise.
21138         * print-tree.c : Likewise.
21139         * profile.c : Likewise.
21140         * read-md.c : Likewise.
21141         * read-md.h : Likewise.
21142         * read-rtl.c : Likewise.
21143         * real.c : Likewise.
21144         * realmpfr.c : Likewise.
21145         * recog.c : Likewise.
21146         * ree.c : Likewise.
21147         * reg-stack.c : Likewise.
21148         * regcprop.c : Likewise.
21149         * reginfo.c : Likewise.
21150         * regrename.c : Likewise.
21151         * regstat.c : Likewise.
21152         * reload.c : Likewise.
21153         * reload1.c : Likewise.
21154         * reorg.c : Likewise.
21155         * resource.c : Likewise.
21156         * rtl-chkp.c : Likewise.
21157         * rtl.c : Likewise.
21158         * rtl.h : Likewise.
21159         * rtlanal.c : Likewise.
21160         * rtlhash.c : Likewise.
21161         * rtlhash.h : Likewise.
21162         * rtlhooks.c : Likewise.
21163         * sanopt.c : Likewise.
21164         * sched-deps.c : Likewise.
21165         * sched-ebb.c : Likewise.
21166         * sched-rgn.c : Likewise.
21167         * sched-vis.c : Likewise.
21168         * sdbout.c : Likewise.
21169         * sel-sched-dump.c : Likewise.
21170         * sel-sched-ir.c : Likewise.
21171         * sel-sched-ir.h : Likewise.
21172         * sel-sched.c : Likewise.
21173         * sese.c : Likewise.
21174         * shrink-wrap.c : Likewise.
21175         * shrink-wrap.h : Likewise.
21176         * simplify-rtx.c : Likewise.
21177         * stack-ptr-mod.c : Likewise.
21178         * statistics.c : Likewise.
21179         * stmt.c : Likewise.
21180         * stor-layout.c : Likewise.
21181         * store-motion.c : Likewise.
21182         * stringpool.c : Likewise.
21183         * symtab.c : Likewise.
21184         * target-globals.c : Likewise.
21185         * targhooks.c : Likewise.
21186         * tlink.c : Likewise.
21187         * toplev.c : Likewise.
21188         * tracer.c : Likewise.
21189         * trans-mem.c : Likewise.
21190         * tree-affine.c : Likewise.
21191         * tree-affine.h : Likewise.
21192         * tree-browser.c : Likewise.
21193         * tree-call-cdce.c : Likewise.
21194         * tree-cfg.c : Likewise.
21195         * tree-cfgcleanup.c : Likewise.
21196         * tree-chkp-opt.c : Likewise.
21197         * tree-chkp.c : Likewise.
21198         * tree-chrec.c : Likewise.
21199         * tree-complex.c : Likewise.
21200         * tree-data-ref.c : Likewise.
21201         * tree-dfa.c : Likewise.
21202         * tree-diagnostic.c : Likewise.
21203         * tree-dump.c : Likewise.
21204         * tree-eh.c : Likewise.
21205         * tree-eh.h : Likewise.
21206         * tree-emutls.c : Likewise.
21207         * tree-hasher.h : Likewise.
21208         * tree-if-conv.c : Likewise.
21209         * tree-inline.c : Likewise.
21210         * tree-inline.h : Likewise.
21211         * tree-into-ssa.c : Likewise.
21212         * tree-iterator.c : Likewise.
21213         * tree-loop-distribution.c : Likewise.
21214         * tree-nested.c : Likewise.
21215         * tree-nrv.c : Likewise.
21216         * tree-object-size.c : Likewise.
21217         * tree-outof-ssa.c : Likewise.
21218         * tree-parloops.c : Likewise.
21219         * tree-phinodes.c : Likewise.
21220         * tree-predcom.c : Likewise.
21221         * tree-pretty-print.c : Likewise.
21222         * tree-profile.c : Likewise.
21223         * tree-scalar-evolution.c : Likewise.
21224         * tree-sra.c : Likewise.
21225         * tree-ssa-address.c : Likewise.
21226         * tree-ssa-alias.c : Likewise.
21227         * tree-ssa-ccp.c : Likewise.
21228         * tree-ssa-coalesce.c : Likewise.
21229         * tree-ssa-copy.c : Likewise.
21230         * tree-ssa-copyrename.c : Likewise.
21231         * tree-ssa-dce.c : Likewise.
21232         * tree-ssa-dom.c : Likewise.
21233         * tree-ssa-dse.c : Likewise.
21234         * tree-ssa-forwprop.c : Likewise.
21235         * tree-ssa-ifcombine.c : Likewise.
21236         * tree-ssa-live.c : Likewise.
21237         * tree-ssa-loop-ch.c : Likewise.
21238         * tree-ssa-loop-im.c : Likewise.
21239         * tree-ssa-loop-ivcanon.c : Likewise.
21240         * tree-ssa-loop-ivopts.c : Likewise.
21241         * tree-ssa-loop-manip.c : Likewise.
21242         * tree-ssa-loop-niter.c : Likewise.
21243         * tree-ssa-loop-prefetch.c : Likewise.
21244         * tree-ssa-loop-unswitch.c : Likewise.
21245         * tree-ssa-loop.c : Likewise.
21246         * tree-ssa-math-opts.c : Likewise.
21247         * tree-ssa-operands.c : Likewise.
21248         * tree-ssa-phiopt.c : Likewise.
21249         * tree-ssa-phiprop.c : Likewise.
21250         * tree-ssa-pre.c : Likewise.
21251         * tree-ssa-propagate.c : Likewise.
21252         * tree-ssa-reassoc.c : Likewise.
21253         * tree-ssa-sccvn.c : Likewise.
21254         * tree-ssa-scopedtables.c : Likewise.
21255         * tree-ssa-sink.c : Likewise.
21256         * tree-ssa-strlen.c : Likewise.
21257         * tree-ssa-structalias.c : Likewise.
21258         * tree-ssa-tail-merge.c : Likewise.
21259         * tree-ssa-ter.c : Likewise.
21260         * tree-ssa-threadedge.c : Likewise.
21261         * tree-ssa-threadupdate.c : Likewise.
21262         * tree-ssa-uncprop.c : Likewise.
21263         * tree-ssa-uninit.c : Likewise.
21264         * tree-ssa.c : Likewise.
21265         * tree-ssanames.c : Likewise.
21266         * tree-stdarg.c : Likewise.
21267         * tree-streamer-in.c : Likewise.
21268         * tree-streamer-out.c : Likewise.
21269         * tree-streamer.c : Likewise.
21270         * tree-streamer.h : Likewise.
21271         * tree-switch-conversion.c : Likewise.
21272         * tree-tailcall.c : Likewise.
21273         * tree-vect-data-refs.c : Likewise.
21274         * tree-vect-generic.c : Likewise.
21275         * tree-vect-loop-manip.c : Likewise.
21276         * tree-vect-loop.c : Likewise.
21277         * tree-vect-patterns.c : Likewise.
21278         * tree-vect-slp.c : Likewise.
21279         * tree-vect-stmts.c : Likewise.
21280         * tree-vectorizer.c : Likewise.
21281         * tree-vectorizer.h : Likewise.
21282         * tree-vrp.c : Likewise.
21283         * tree.c : Likewise.
21284         * tsan.c : Likewise.
21285         * ubsan.c : Likewise.
21286         * valtrack.c : Likewise.
21287         * valtrack.h : Likewise.
21288         * value-prof.c : Likewise.
21289         * var-tracking.c : Likewise.
21290         * varasm.c : Likewise.
21291         * varpool.c : Likewise.
21292         * vec.c: Likewise.
21293         * vmsdbgout.c : Likewise.
21294         * vtable-verify.c : Likewise.
21295         * vtable-verify.h : Likewise.
21296         * web.c : Likewise.
21297         * wide-int.cc : Likewise.
21298         * xcoffout.c : Likewise.
21299         * config/aarch64/aarch64-builtins.c : Likewise.
21300         * config/aarch64/aarch64.c : Likewise.
21301         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21302         * config/alpha/alpha.c : Likewise.
21303         * config/arc/arc.c : Likewise.
21304         * config/arm/aarch-common.c : Likewise.
21305         * config/arm/arm-builtins.c : Likewise.
21306         * config/arm/arm-c.c : Likewise.
21307         * config/arm/arm.c : Likewise.
21308         * config/avr/avr-c.c : Likewise.
21309         * config/avr/avr-log.c : Likewise.
21310         * config/avr/avr.c : Likewise.
21311         * config/bfin/bfin.c : Likewise.
21312         * config/c6x/c6x.c : Likewise.
21313         * config/cr16/cr16.c : Likewise.
21314         * config/cris/cris.c : Likewise.
21315         * config/darwin-c.c : Likewise.
21316         * config/darwin.c : Likewise.
21317         * config/default-c.c : Likewise.
21318         * config/epiphany/epiphany.c : Likewise.
21319         * config/epiphany/mode-switch-use.c : Likewise.
21320         * config/epiphany/resolve-sw-modes.c : Likewise.
21321         * config/fr30/fr30.c : Likewise.
21322         * config/frv/frv.c : Likewise.
21323         * config/ft32/ft32.c : Likewise.
21324         * config/glibc-c.c : Likewise.
21325         * config/h8300/h8300.c : Likewise.
21326         * config/i386/i386-c.c : Likewise.
21327         * config/i386/i386.c : Likewise.
21328         * config/i386/msformat-c.c : Likewise.
21329         * config/i386/winnt-cxx.c : Likewise.
21330         * config/i386/winnt-stubs.c : Likewise.
21331         * config/i386/winnt.c : Likewise.
21332         * config/ia64/ia64-c.c : Likewise.
21333         * config/ia64/ia64.c : Likewise.
21334         * config/iq2000/iq2000.c : Likewise.
21335         * config/lm32/lm32.c : Likewise.
21336         * config/m32c/m32c-pragma.c : Likewise.
21337         * config/m32c/m32c.c : Likewise.
21338         * config/m32r/m32r.c : Likewise.
21339         * config/m68k/m68k.c : Likewise.
21340         * config/mcore/mcore.c : Likewise.
21341         * config/mep/mep-pragma.c : Likewise.
21342         * config/mep/mep.c : Likewise.
21343         * config/microblaze/microblaze-c.c : Likewise.
21344         * config/microblaze/microblaze.c : Likewise.
21345         * config/mips/mips.c : Likewise.
21346         * config/mmix/mmix.c : Likewise.
21347         * config/mn10300/mn10300.c : Likewise.
21348         * config/moxie/moxie.c : Likewise.
21349         * config/msp430/msp430-c.c : Likewise.
21350         * config/msp430/msp430.c : Likewise.
21351         * config/nds32/nds32-cost.c : Likewise.
21352         * config/nds32/nds32-fp-as-gp.c : Likewise.
21353         * config/nds32/nds32-intrinsic.c : Likewise.
21354         * config/nds32/nds32-isr.c : Likewise.
21355         * config/nds32/nds32-md-auxiliary.c : Likewise.
21356         * config/nds32/nds32-memory-manipulation.c : Likewise.
21357         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21358         * config/nds32/nds32-predicates.c : Likewise.
21359         * config/nds32/nds32.c : Likewise.
21360         * config/nios2/nios2.c : Likewise.
21361         * config/nvptx/nvptx.c : Likewise.
21362         * config/pa/pa.c : Likewise.
21363         * config/pdp11/pdp11.c : Likewise.
21364         * config/rl78/rl78-c.c : Likewise.
21365         * config/rl78/rl78.c : Likewise.
21366         * config/rs6000/rs6000-c.c : Likewise.
21367         * config/rs6000/rs6000.c : Likewise.
21368         * config/rx/rx.c : Likewise.
21369         * config/s390/s390-c.c : Likewise.
21370         * config/s390/s390.c : Likewise.
21371         * config/sh/sh-c.c : Likewise.
21372         * config/sh/sh-mem.cc : Likewise.
21373         * config/sh/sh.c : Likewise.
21374         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21375         * config/sh/sh_treg_combine.cc : Likewise.
21376         * config/sol2-c.c : Likewise.
21377         * config/sol2-cxx.c : Likewise.
21378         * config/sol2-stubs.c : Likewise.
21379         * config/sol2.c : Likewise.
21380         * config/sparc/sparc-c.c : Likewise.
21381         * config/sparc/sparc.c : Likewise.
21382         * config/spu/spu-c.c : Likewise.
21383         * config/spu/spu.c : Likewise.
21384         * config/stormy16/stormy16.c : Likewise.
21385         * config/tilegx/mul-tables.c : Likewise.
21386         * config/tilegx/tilegx-c.c : Likewise.
21387         * config/tilegx/tilegx.c : Likewise.
21388         * config/tilepro/mul-tables.c : Likewise.
21389         * config/tilepro/tilepro-c.c : Likewise.
21390         * config/tilepro/tilepro.c : Likewise.
21391         * config/v850/v850-c.c : Likewise.
21392         * config/v850/v850.c : Likewise.
21393         * config/vax/vax.c : Likewise.
21394         * config/visium/visium.c : Likewise.
21395         * config/vms/vms-c.c : Likewise.
21396         * config/vms/vms.c : Likewise.
21397         * config/vxworks.c : Likewise.
21398         * config/winnt-c.c : Likewise.
21399         * config/xtensa/xtensa.c : Likewise.
21401 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21403         PR lto/65378
21404         * ipa-utils.h (warn_types_mismatch): Update prototype.
21405         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21406         parameters.
21407         (type_mismatch_p): New function.
21408         (warn_types_mismatch): Reorg to work better on non-C++ types.
21409         (odr_types_equivalent_p): Add loc1/loc2 parameters.
21410         (add_type_duplicate): Update.
21412 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21414         PR rtl-optimization/66444
21415         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21416         call_used_regs.
21418 2015-06-08  Richard Biener  <rguenther@suse.de>
21420         PR tree-optimization/66422
21421         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21422         block after inserted gcc_unreachable.
21424 2015-06-08  Nick Clifton  <nickc@redhat.com>
21426         * config/rx/rx.c (rx_function_value): Do not promote vector types.
21427         (rx_promote_function_mode): Likewise.
21428         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21430 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
21432         * genattrtab.c (insn_alternatives): Change type from int *
21433         to uint64_t *.
21434         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21435         (get_attr_value): Change type of num_alt to uint64_t.
21436         (compute_alternative_mask): Change return type from
21437         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21438         (make_alternative_compare, mk_attr_alt): Change argument type
21439         from int to uint64_t.
21440         (simplify_test_exp): Change type of i from int to uint64_t.
21441         Shift ((uint64_t) 1) instead of 1 up.
21442         (main): Adjust oballocvec first argument from int to uint64_t.
21443         Shift ((uint64_t) 1) instead of 1 up.
21445 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
21447         PR other/65366
21448         * gdbhooks.py: Import sys.
21449         (intptr): New function.  Replace int(...) by intptr(...).
21451 2015-06-08  Richard Biener  <rguenther@suse.de>
21453         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
21454         adjustment for gaps at the end of a SLP load group properly.
21455         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
21456         all permutations we can generate.
21457         (vect_transform_slp_perm_load): Use the correct group-size.
21459 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
21461         * genmatch.c (expr::gen_transform): For conditions, guess the type
21462         from the second operand.
21464 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21466         PR tree-optimization/66442
21467         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
21468         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
21469         if the loop latch is not a singleton.  Use
21470         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
21472 2015-06-08  Marek Polacek  <polacek@redhat.com>
21474         PR sanitizer/66452
21475         * toplev.c (check_global_declaration): Don't warn about artificial
21476         decls.
21478 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21480         PR tree-optimization/66436
21481         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
21482         dump file.
21483         * gimplify.c: Add tree-dump.h include.
21484         (gimplify_function_tree): Dump function to gimple dump file.
21485         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
21486         dump file.
21488 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21490         PR tree-optimization/66435
21491         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
21492         function.
21494 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
21496         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
21497         of ptr_type_node to not be ptr_to_node.
21498         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
21499         TREE_TYPE of pointers.
21500         * gimple-expr.c (useless_type_conversion): Reorder the check for
21501         function pointers and TYPE_CANONICAL.
21503 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
21505         PR bootstrap/66319
21506         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
21507         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
21508         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
21509         later.
21510         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
21511         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
21512         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
21513         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
21514         and non iso if unix2003.
21516 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
21518         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
21520 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
21522         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
21523         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
21524         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
21525         except.c, final.c, function.c, gcse-common.c, genemit.c,
21526         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
21527         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
21528         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
21529         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
21530         more derived ones.
21532 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
21534         * combine.c (combine_split_insns): Remove cast.
21535         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
21536         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
21537         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
21538         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
21539         * genemit.c (gen_split): Change return type of generated functions to
21540         rtx_insn.
21541         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
21542         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
21543         gen_peephole2_* functions.
21544         (print_subroutine, main): Likewise.
21545         * recog.c (peephole2_optimize): Remove cast.
21546         (peep2_next_insn): Promote return type to rtx_insn.
21547         * recog.h (peep2_next_insn): Fix prototype.
21548         * rtl.h (try_split, split_insns): Likewise.
21550 2015-06-06  DJ Delorie  <dj@redhat.com>
21552         * config/msp430/msp430.c (msp430_asm_integer): Support addition
21553         and subtraction too.
21555 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
21557         PR target/66410
21558         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
21559         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
21560         instead of Snd.  Disparage Sid/z alternative with '^'.
21562 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
21564         * dwarf2out.c: Remove deferred_locations*.
21565         (dwarf2_debug_hooks): Add early_finish hook.
21566         Remove global_decl hook.
21567         Add early_global_decl and late_global_decl hook.
21568         New global early_dwarf.
21569         New structure set_early_dwarf.
21570         (output_die): Indicate whether a DIE was generated early
21571         when generating assembly with -dA.
21572         (struct limbo_die_struct): Document created_for field.
21573         Remove file_table_last_lookup.
21574         (remove_AT): Return TRUE if successful.
21575         (remove_child_TAG): Clear die_parent.
21576         (reparent_child): New function abstracted from...
21577         (splice_child_die): ...here.
21578         (new_die): ICE if a DIE ends up in limbo too late.
21579         (check_die): New.
21580         (defer_location): Remove.
21581         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
21582         (fill_variable_array_bounds): New.
21583         (decl_start_label): Call fill_variable_array_bounds.
21584         (gen_formal_parameter_die): Rewrite to reuse previously generated
21585         DIEs.
21586         (gen_subprogram_die): Same.
21587         (gen_variable_die): Same.
21588         (gen_const_die): Same.
21589         (gen_label_die): Same.
21590         (gen_lexical_block_die): Same.
21591         (decl_will_get_specification_p): New.
21592         (local_function_static): New.
21593         (gen_struct_or_union_type_die): Fill in variable-length fields.
21594         (gen_typedef_die): Fill in variable-length typedefs.
21595         (gen_tagged_type_die): Gracefully return on error_mark_node.
21596         Handle re-entrancy.
21597         (gen_type_die_with_usage): Handle variable-length types.
21598         Remove duplicate code for ARRAY_TYPE case.
21599         (process_scope_var): Only process imported modules during early
21600         dwarf.
21601         (dwarf2out_early_global_decl): New.
21602         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
21603         (dwarf2out_type_decl): Set early_dwarf while calling
21604         dwarf2out_decl.
21605         (dwarf2out_decl): Verify that we did not recreate a previously
21606         generated DIE.
21607         Do not return on DECL_EXTERNALs in VAR_DECLs.
21608         Abstract some code to local_function_static.
21609         (lookup_filename): Remove use of file_table_last_lookup.
21610         Gracefully exit on missing file_name.
21611         (dwarf2out_finish): Verify limbo list.
21612         Remove deferred_locations_list use.
21613         Move deferred_asm_name and limbo flushing to...
21614         (dwarf2out_early_finish): ...here.  New.
21615         (dwarf2out_c_finalize): Remove set of deferred_location_list,
21616         deferred_asm_name, and file_table_last_lookup.
21617         * cgraph.h (referred_to_p): Add default argument.
21618         * cgraphunit.c (referred_to_p): Add and handle include_self
21619         argument.
21620         (analyze_functions): Add first_time argument.
21621         Call check_global_declaration for all symbols.
21622         Call late_global_decl for nodes for moribund nodes.
21623         (finalize_compilation_unit): Add new argument to
21624         analyze_functions.
21625         Call early_global_decl for functions.
21626         Call early_finish debug hook.
21627         * dbxout.c (dbxout_early_global_decl): New.
21628         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
21629         (dbx_debug_hooks): Add new hooks.
21630         (xcoff_debug_hooks): Same.
21631         * debug.c (do_nothing_debug_hooks): Add early_finish field.
21632         Add early and late debug hooks.
21633         Remove global_decl hook.
21634         * debug.h (struct gcc_debug_hooks): Add early_finish,
21635         early_global_decl, and late_global_decl fields.
21636         Remove global_decl field.
21637         Document gcc_debug_hooks.
21638         * gengtype.c (output_typename): Remove.
21639         * godump.c (go_early_global_decl): New.
21640         (go_late_global_decl): New.
21641         (go_global_decl): Remove.
21642         (dump_go_spec_init): Remove global_decl.  Add
21643         {early,late}_global_decl.
21644         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
21645         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
21646         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
21647         (write_global_declarations): Remove.
21648         (global_decl_processing): New.
21649         * langhooks.h (struct lang_hooks_for_decls): Remove
21650         final_write_globals field.
21651         Add post_compilation_parsing_cleanups field.
21652         * passes.c (rest_of_decl_compilation): Call early_global_decl.
21653         * sdbout.c: Add early and late_global_decl hooks.  Remove
21654         sdbout_global_decl hook.
21655         Add early_finish field for sdb_debug_hooks.
21656         (sdbout_global_decl): Remove.
21657         (sdbout_early_global_decl): New.
21658         (sdbout_late_global_decl): New.
21659         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
21660         * toplev.c (check_global_declaration): Rename from
21661         check_global_declaration_1.
21662         Adapt to use symtab infrastructure.
21663         (check_global_declarations): Remove.
21664         (emit_debug_global_declarations): Remove.
21665         (compile_file): Remove call to final_write_globals langhook.
21666         Run the actual compilation process.
21667         Perform any post compilation parser cleanups.
21668         Generate late debug info.
21669         * toplev.h (check_global_declaration): New.
21670         (check_global_declaration_1): Remove.
21671         (check_global_declarations): Remove.
21672         (write_global_declarations): Remove.
21673         (emit_debug_global_declarations): Remove.
21674         (global_decl_processing): New.
21675         * tree-core.h (struct tree_block): Add DIE field.
21676         * tree.h (BLOCK_DIE): New.
21677         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
21678         throughout.
21679         (vmsdbgout_early_global_decl): New.
21680         (vmsdbgout_late_global_decl): New.
21681         Add early_finish debug hook field to vmsdbg_debug_hooks.
21682         Remove vmsdbgout_decl to vmsdbgout_function_decl.
21683         Add early and late_global_decl debug hooks.
21685 2015-06-05  Julian Brown  <julian@codesourcery.com>
21686             Sandra Loosemore  <sandra@codesourcery.com>
21688         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
21689         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
21690         to print-sysroot-suffix.sh script.
21692 2015-06-05  Tom de Vries  <tom@codesourcery.com>
21694         merge from gomp4 branch:
21695         2015-05-28  Tom de Vries  <tom@codesourcery.com>
21697         PR tree-optimization/65443
21698         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
21699         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
21700         (try_transform_to_exit_first_loop_alt): New function.
21701         (transform_to_exit_first_loop): Use
21702         try_transform_to_exit_first_loop_alt.
21704 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
21706         * builtins.c (expand_builtin_atomic_compare_exchange): Call
21707         emit_cmp_and_jump_insns with the mode of target.
21709 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21711         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
21713 2015-06-04  DJ Delorie  <dj@redhat.com>
21715         * config/msp430/msp430.md (movsi_s): New.  Special case for
21716         storing a 20-bit symbol into a 32-bit register.
21717         * config/msp430/msp430.c (msp430_subreg): Add support for it.
21718         * config/msp430/predicates.md (msp430_symbol_operand): New.
21720 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
21722         * c-family/c-common.c (noplt): New attribute.
21723         (handle_noplt_attribute): New handler.
21724         * calls.c (prepare_call_address): Check for noplt
21725         attribute.
21726         * config/i386/i386.c (ix86_expand_call): Check
21727         for noplt attribute.
21728         (ix86_nopic_noplt_attribute_p): New function.
21729         (ix86_output_call_insn): Output indirect call for non-pic
21730         no plt calls.
21731         * doc/extend.texi (noplt): Document new attribute.
21732         * doc/invoke.texi: Document new attribute.
21734 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
21736         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
21737         real.h, and fixed-value.h when included in host source files.
21738         * double-int.h: Remove redundant #includes listed above.
21739         * fixed-value.h: Likewise.
21740         * real.h: Likewise.
21741         * wide-int.h: Likewise.
21742         * inchash.h: Likewise.
21743         * rtl.h: Add some include files When included from a generator file.
21744         * target.h: Remove wide-int.h and insn-modes.h from the include list.
21745         * internal-fn.h: Don't include coretypes.h.
21746         * alias.c: Adjust includes for restructured coretypes.h.
21747         * asan.c: Likewise.
21748         * attribs.c: Likewise.
21749         * auto-inc-dec.c: Likewise.
21750         * auto-profile.c: Likewise.
21751         * bb-reorder.c: Likewise.
21752         * bt-load.c: Likewise.
21753         * builtins.c: Likewise.
21754         * caller-save.c: Likewise.
21755         * calls.c: Likewise.
21756         * ccmp.c: Likewise.
21757         * cfg.c: Likewise.
21758         * cfganal.c: Likewise.
21759         * cfgbuild.c: Likewise.
21760         * cfgcleanup.c: Likewise.
21761         * cfgexpand.c: Likewise.
21762         * cfghooks.c: Likewise.
21763         * cfgloop.c: Likewise.
21764         * cfgloop.h: Likewise.
21765         * cfgloopanal.c: Likewise.
21766         * cfgloopmanip.c: Likewise.
21767         * cfgrtl.c: Likewise.
21768         * cgraph.c: Likewise.
21769         * cgraphbuild.c: Likewise.
21770         * cgraphclones.c: Likewise.
21771         * cgraphunit.c: Likewise.
21772         * cilk-common.c: Likewise.
21773         * combine-stack-adj.c: Likewise.
21774         * combine.c: Likewise.
21775         * compare-elim.c: Likewise.
21776         * convert.c: Likewise.
21777         * coverage.c: Likewise.
21778         * cppbuiltin.c: Likewise.
21779         * cprop.c: Likewise.
21780         * cse.c: Likewise.
21781         * cselib.c: Likewise.
21782         * data-streamer-in.c: Likewise.
21783         * data-streamer-out.c: Likewise.
21784         * data-streamer.c: Likewise.
21785         * dbxout.c: Likewise.
21786         * dce.c: Likewise.
21787         * ddg.c: Likewise.
21788         * debug.c: Likewise.
21789         * df-core.c: Likewise.
21790         * df-problems.c: Likewise.
21791         * df-scan.c: Likewise.
21792         * df.h: Likewise.
21793         * dfp.c: Likewise.
21794         * dojump.c: Likewise.
21795         * dominance.c: Likewise.
21796         * domwalk.c: Likewise.
21797         * double-int.c: Likewise.
21798         * dse.c: Likewise.
21799         * dumpfile.c: Likewise.
21800         * dwarf2asm.c: Likewise.
21801         * dwarf2cfi.c: Likewise.
21802         * dwarf2out.c: Likewise.
21803         * dwarf2out.h: Likewise.
21804         * emit-rtl.c: Likewise.
21805         * et-forest.c: Likewise.
21806         * except.c: Likewise.
21807         * explow.c: Likewise.
21808         * expmed.c: Likewise.
21809         * expr.c: Likewise.
21810         * final.c: Likewise.
21811         * fixed-value.c: Likewise.
21812         * fold-const.c: Likewise.
21813         * function.c: Likewise.
21814         * fwprop.c: Likewise.
21815         * gcc-plugin.h: Likewise.
21816         * gcse.c: Likewise.
21817         * generic-match-head.c: Likewise.
21818         * ggc-page.c: Likewise.
21819         * gimple-builder.c: Likewise.
21820         * gimple-expr.c: Likewise.
21821         * gimple-fold.c: Likewise.
21822         * gimple-iterator.c: Likewise.
21823         * gimple-low.c: Likewise.
21824         * gimple-match-head.c: Likewise.
21825         * gimple-pretty-print.c: Likewise.
21826         * gimple-ssa-isolate-paths.c: Likewise.
21827         * gimple-ssa-strength-reduction.c: Likewise.
21828         * gimple-streamer-in.c: Likewise.
21829         * gimple-streamer-out.c: Likewise.
21830         * gimple-streamer.h: Likewise.
21831         * gimple-walk.c: Likewise.
21832         * gimple.c: Likewise.
21833         * gimplify-me.c: Likewise.
21834         * gimplify.c: Likewise.
21835         * godump.c: Likewise.
21836         * graph.c: Likewise.
21837         * graphite-blocking.c: Likewise.
21838         * graphite-dependences.c: Likewise.
21839         * graphite-interchange.c: Likewise.
21840         * graphite-isl-ast-to-gimple.c: Likewise.
21841         * graphite-optimize-isl.c: Likewise.
21842         * graphite-poly.c: Likewise.
21843         * graphite-scop-detection.c: Likewise.
21844         * graphite-sese-to-poly.c: Likewise.
21845         * graphite.c: Likewise.
21846         * haifa-sched.c: Likewise.
21847         * hooks.h: Likewise.
21848         * hw-doloop.c: Likewise.
21849         * ifcvt.c: Likewise.
21850         * incpath.c: Likewise.
21851         * init-regs.c: Likewise.
21852         * internal-fn.c: Likewise.
21853         * ipa-chkp.c: Likewise.
21854         * ipa-comdats.c: Likewise.
21855         * ipa-cp.c: Likewise.
21856         * ipa-devirt.c: Likewise.
21857         * ipa-icf-gimple.c: Likewise.
21858         * ipa-icf.c: Likewise.
21859         * ipa-inline-analysis.c: Likewise.
21860         * ipa-inline-transform.c: Likewise.
21861         * ipa-inline.c: Likewise.
21862         * ipa-polymorphic-call.c: Likewise.
21863         * ipa-profile.c: Likewise.
21864         * ipa-prop.c: Likewise.
21865         * ipa-pure-const.c: Likewise.
21866         * ipa-ref.c: Likewise.
21867         * ipa-reference.c: Likewise.
21868         * ipa-split.c: Likewise.
21869         * ipa-utils.c: Likewise.
21870         * ipa-visibility.c: Likewise.
21871         * ipa.c: Likewise.
21872         * ira-build.c: Likewise.
21873         * ira-color.c: Likewise.
21874         * ira-conflicts.c: Likewise.
21875         * ira-costs.c: Likewise.
21876         * ira-emit.c: Likewise.
21877         * ira-lives.c: Likewise.
21878         * ira.c: Likewise.
21879         * jump.c: Likewise.
21880         * langhooks.c: Likewise.
21881         * lcm.c: Likewise.
21882         * loop-doloop.c: Likewise.
21883         * loop-init.c: Likewise.
21884         * loop-invariant.c: Likewise.
21885         * loop-iv.c: Likewise.
21886         * loop-unroll.c: Likewise.
21887         * lower-subreg.c: Likewise.
21888         * lra-assigns.c: Likewise.
21889         * lra-coalesce.c: Likewise.
21890         * lra-constraints.c: Likewise.
21891         * lra-eliminations.c: Likewise.
21892         * lra-lives.c: Likewise.
21893         * lra-remat.c: Likewise.
21894         * lra-spills.c: Likewise.
21895         * lra.c: Likewise.
21896         * lto-cgraph.c: Likewise.
21897         * lto-compress.c: Likewise.
21898         * lto-opts.c: Likewise.
21899         * lto-section-in.c: Likewise.
21900         * lto-section-out.c: Likewise.
21901         * lto-streamer-in.c: Likewise.
21902         * lto-streamer-out.c: Likewise.
21903         * lto-streamer.c: Likewise.
21904         * mcf.c: Likewise.
21905         * mode-switching.c: Likewise.
21906         * modulo-sched.c: Likewise.
21907         * omega.c: Likewise.
21908         * omp-low.c: Likewise.
21909         * optabs.c: Likewise.
21910         * opts-global.c: Likewise.
21911         * passes.c: Likewise.
21912         * plugin.c: Likewise.
21913         * postreload-gcse.c: Likewise.
21914         * postreload.c: Likewise.
21915         * predict.c: Likewise.
21916         * print-rtl.c: Likewise.
21917         * print-tree.c: Likewise.
21918         * profile.c: Likewise.
21919         * real.c: Likewise.
21920         * realmpfr.c: Likewise.
21921         * realmpfr.h: Likewise.
21922         * recog.c: Likewise.
21923         * ree.c: Likewise.
21924         * reg-stack.c: Likewise.
21925         * regcprop.c: Likewise.
21926         * reginfo.c: Likewise.
21927         * regrename.c: Likewise.
21928         * regs.h: Likewise.
21929         * regstat.c: Likewise.
21930         * reload.c: Likewise.
21931         * reload1.c: Likewise.
21932         * reorg.c: Likewise.
21933         * resource.c: Likewise.
21934         * rtl-chkp.c: Likewise.
21935         * rtlanal.c: Likewise.
21936         * rtlhooks.c: Likewise.
21937         * sanopt.c: Likewise.
21938         * sched-deps.c: Likewise.
21939         * sched-ebb.c: Likewise.
21940         * sched-rgn.c: Likewise.
21941         * sched-vis.c: Likewise.
21942         * sdbout.c: Likewise.
21943         * sel-sched-dump.c: Likewise.
21944         * sel-sched-ir.c: Likewise.
21945         * sel-sched.c: Likewise.
21946         * sese.c: Likewise.
21947         * shrink-wrap.c: Likewise.
21948         * shrink-wrap.h: Likewise.
21949         * simplify-rtx.c: Likewise.
21950         * stack-ptr-mod.c: Likewise.
21951         * statistics.c: Likewise.
21952         * stmt.c: Likewise.
21953         * stor-layout.c: Likewise.
21954         * store-motion.c: Likewise.
21955         * stringpool.c: Likewise.
21956         * symtab.c: Likewise.
21957         * target-globals.c: Likewise.
21958         * targhooks.c: Likewise.
21959         * toplev.c: Likewise.
21960         * tracer.c: Likewise.
21961         * trans-mem.c: Likewise.
21962         * tree-affine.c: Likewise.
21963         * tree-affine.h: Likewise.
21964         * tree-browser.c: Likewise.
21965         * tree-call-cdce.c: Likewise.
21966         * tree-cfg.c: Likewise.
21967         * tree-cfgcleanup.c: Likewise.
21968         * tree-chkp-opt.c: Likewise.
21969         * tree-chkp.c: Likewise.
21970         * tree-chrec.c: Likewise.
21971         * tree-complex.c: Likewise.
21972         * tree-data-ref.c: Likewise.
21973         * tree-dfa.c: Likewise.
21974         * tree-diagnostic.c: Likewise.
21975         * tree-dump.c: Likewise.
21976         * tree-eh.c: Likewise.
21977         * tree-emutls.c: Likewise.
21978         * tree-if-conv.c: Likewise.
21979         * tree-inline.c: Likewise.
21980         * tree-into-ssa.c: Likewise.
21981         * tree-iterator.c: Likewise.
21982         * tree-loop-distribution.c: Likewise.
21983         * tree-nested.c: Likewise.
21984         * tree-nrv.c: Likewise.
21985         * tree-object-size.c: Likewise.
21986         * tree-outof-ssa.c: Likewise.
21987         * tree-parloops.c: Likewise.
21988         * tree-phinodes.c: Likewise.
21989         * tree-predcom.c: Likewise.
21990         * tree-pretty-print.c: Likewise.
21991         * tree-pretty-print.h: Likewise.
21992         * tree-profile.c: Likewise.
21993         * tree-scalar-evolution.c: Likewise.
21994         * tree-sra.c: Likewise.
21995         * tree-ssa-address.c: Likewise.
21996         * tree-ssa-alias.c: Likewise.
21997         * tree-ssa-ccp.c: Likewise.
21998         * tree-ssa-coalesce.c: Likewise.
21999         * tree-ssa-copy.c: Likewise.
22000         * tree-ssa-copyrename.c: Likewise.
22001         * tree-ssa-dce.c: Likewise.
22002         * tree-ssa-dom.c: Likewise.
22003         * tree-ssa-dse.c: Likewise.
22004         * tree-ssa-forwprop.c: Likewise.
22005         * tree-ssa-ifcombine.c: Likewise.
22006         * tree-ssa-live.c: Likewise.
22007         * tree-ssa-loop-ch.c: Likewise.
22008         * tree-ssa-loop-im.c: Likewise.
22009         * tree-ssa-loop-ivcanon.c: Likewise.
22010         * tree-ssa-loop-ivopts.c: Likewise.
22011         * tree-ssa-loop-manip.c: Likewise.
22012         * tree-ssa-loop-niter.c: Likewise.
22013         * tree-ssa-loop-prefetch.c: Likewise.
22014         * tree-ssa-loop-unswitch.c: Likewise.
22015         * tree-ssa-loop.c: Likewise.
22016         * tree-ssa-loop.h: Likewise.
22017         * tree-ssa-math-opts.c: Likewise.
22018         * tree-ssa-operands.c: Likewise.
22019         * tree-ssa-phiopt.c: Likewise.
22020         * tree-ssa-phiprop.c: Likewise.
22021         * tree-ssa-pre.c: Likewise.
22022         * tree-ssa-propagate.c: Likewise.
22023         * tree-ssa-reassoc.c: Likewise.
22024         * tree-ssa-sccvn.c: Likewise.
22025         * tree-ssa-scopedtables.c: Likewise.
22026         * tree-ssa-sink.c: Likewise.
22027         * tree-ssa-strlen.c: Likewise.
22028         * tree-ssa-structalias.c: Likewise.
22029         * tree-ssa-tail-merge.c: Likewise.
22030         * tree-ssa-ter.c: Likewise.
22031         * tree-ssa-threadedge.c: Likewise.
22032         * tree-ssa-threadupdate.c: Likewise.
22033         * tree-ssa-uncprop.c: Likewise.
22034         * tree-ssa-uninit.c: Likewise.
22035         * tree-ssa.c: Likewise.
22036         * tree-ssanames.c: Likewise.
22037         * tree-stdarg.c: Likewise.
22038         * tree-streamer-in.c: Likewise.
22039         * tree-streamer-out.c: Likewise.
22040         * tree-streamer.c: Likewise.
22041         * tree-switch-conversion.c: Likewise.
22042         * tree-tailcall.c: Likewise.
22043         * tree-vect-data-refs.c: Likewise.
22044         * tree-vect-generic.c: Likewise.
22045         * tree-vect-loop-manip.c: Likewise.
22046         * tree-vect-loop.c: Likewise.
22047         * tree-vect-patterns.c: Likewise.
22048         * tree-vect-slp.c: Likewise.
22049         * tree-vect-stmts.c: Likewise.
22050         * tree-vectorizer.c: Likewise.
22051         * tree-vrp.c: Likewise.
22052         * tree.c: Likewise.
22053         * tsan.c: Likewise.
22054         * ubsan.c: Likewise.
22055         * valtrack.c: Likewise.
22056         * value-prof.c: Likewise.
22057         * var-tracking.c: Likewise.
22058         * varasm.c: Likewise.
22059         * varpool.c: Likewise.
22060         * vmsdbgout.c: Likewise.
22061         * vtable-verify.c: Likewise.
22062         * web.c: Likewise.
22063         * wide-int-print.cc: Likewise.
22064         * wide-int-print.h: Likewise.
22065         * wide-int.cc: Likewise.
22066         * xcoffout.c: Likewise.
22067         * config/aarch64/aarch64-builtins.c: Likewise.
22068         * config/aarch64/aarch64.c: Likewise.
22069         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22070         * config/alpha/alpha.c: Likewise.
22071         * config/arc/arc.c: Likewise.
22072         * config/arm/aarch-common.c: Likewise.
22073         * config/arm/arm-builtins.c: Likewise.
22074         * config/arm/arm-c.c: Likewise.
22075         * config/arm/arm.c: Likewise.
22076         * config/avr/avr-c.c: Likewise.
22077         * config/avr/avr-log.c: Likewise.
22078         * config/avr/avr.c: Likewise.
22079         * config/bfin/bfin.c: Likewise.
22080         * config/c6x/c6x.c: Likewise.
22081         * config/cr16/cr16.c: Likewise.
22082         * config/cris/cris.c: Likewise.
22083         * config/darwin-c.c: Likewise.
22084         * config/darwin.c: Likewise.
22085         * config/default-c.c: Likewise.
22086         * config/epiphany/epiphany.c: Likewise.
22087         * config/epiphany/mode-switch-use.c: Likewise.
22088         * config/epiphany/resolve-sw-modes.c: Likewise.
22089         * config/fr30/fr30.c: Likewise.
22090         * config/frv/frv.c: Likewise.
22091         * config/ft32/ft32.c: Likewise.
22092         * config/glibc-c.c: Likewise.
22093         * config/h8300/h8300.c: Likewise.
22094         * config/i386/i386-c.c: Likewise.
22095         * config/i386/i386.c: Likewise.
22096         * config/i386/msformat-c.c: Likewise.
22097         * config/i386/winnt-cxx.c: Likewise.
22098         * config/i386/winnt-stubs.c: Likewise.
22099         * config/i386/winnt.c: Likewise.
22100         * config/ia64/ia64-c.c: Likewise.
22101         * config/ia64/ia64.c: Likewise.
22102         * config/iq2000/iq2000.c: Likewise.
22103         * config/lm32/lm32.c: Likewise.
22104         * config/m32c/m32c-pragma.c: Likewise.
22105         * config/m32c/m32c.c: Likewise.
22106         * config/m32r/m32r.c: Likewise.
22107         * config/m68k/m68k.c: Likewise.
22108         * config/mcore/mcore.c: Likewise.
22109         * config/mep/mep-pragma.c: Likewise.
22110         * config/mep/mep.c: Likewise.
22111         * config/microblaze/microblaze-c.c: Likewise.
22112         * config/microblaze/microblaze.c: Likewise.
22113         * config/mips/mips.c: Likewise.
22114         * config/mmix/mmix.c: Likewise.
22115         * config/mn10300/mn10300.c: Likewise.
22116         * config/moxie/moxie.c: Likewise.
22117         * config/msp430/msp430-c.c: Likewise.
22118         * config/msp430/msp430.c: Likewise.
22119         * config/nds32/nds32-cost.c: Likewise.
22120         * config/nds32/nds32-fp-as-gp.c: Likewise.
22121         * config/nds32/nds32-intrinsic.c: Likewise.
22122         * config/nds32/nds32-isr.c: Likewise.
22123         * config/nds32/nds32-md-auxiliary.c: Likewise.
22124         * config/nds32/nds32-memory-manipulation.c: Likewise.
22125         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22126         * config/nds32/nds32-predicates.c: Likewise.
22127         * config/nds32/nds32.c: Likewise.
22128         * config/nios2/nios2.c: Likewise.
22129         * config/nvptx/nvptx.c: Likewise.
22130         * config/pa/pa.c: Likewise.
22131         * config/pdp11/pdp11.c: Likewise.
22132         * config/rl78/rl78-c.c: Likewise.
22133         * config/rl78/rl78.c: Likewise.
22134         * config/rs6000/rs6000-c.c: Likewise.
22135         * config/rs6000/rs6000.c: Likewise.
22136         * config/rx/rx.c: Likewise.
22137         * config/s390/s390-c.c: Likewise.
22138         * config/s390/s390.c: Likewise.
22139         * config/sh/sh-c.c: Likewise.
22140         * config/sh/sh-mem.cc: Likewise.
22141         * config/sh/sh.c: Likewise.
22142         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22143         * config/sh/sh_treg_combine.cc: Likewise.
22144         * config/sol2-c.c: Likewise.
22145         * config/sol2-cxx.c: Likewise.
22146         * config/sol2-stubs.c: Likewise.
22147         * config/sol2.c: Likewise.
22148         * config/sparc/sparc-c.c: Likewise.
22149         * config/sparc/sparc.c: Likewise.
22150         * config/spu/spu-c.c: Likewise.
22151         * config/spu/spu.c: Likewise.
22152         * config/stormy16/stormy16.c: Likewise.
22153         * config/tilegx/mul-tables.c: Likewise.
22154         * config/tilegx/tilegx-c.c: Likewise.
22155         * config/tilegx/tilegx.c: Likewise.
22156         * config/tilepro/mul-tables.c: Likewise.
22157         * config/tilepro/tilepro-c.c: Likewise.
22158         * config/tilepro/tilepro.c: Likewise.
22159         * config/v850/v850-c.c: Likewise.
22160         * config/v850/v850.c: Likewise.
22161         * config/vax/vax.c: Likewise.
22162         * config/visium/visium.c: Likewise.
22163         * config/vms/vms-c.c: Likewise.
22164         * config/vms/vms.c: Likewise.
22165         * config/vxworks.c: Likewise.
22166         * config/winnt-c.c: Likewise.
22167         * config/xtensa/xtensa.c: Likewise.
22168         * common/config/bfin/bfin-common.c: Likewise.
22170 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
22172         * tree.h (tree_code_for_canonical_type_merging): New function.
22173         * tree.c (gimple_canonical_types_compatible_p): Use
22174         tree_code_for_canonical_type_merging..
22176 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22178         PR c++/66192
22179         PR target/66200
22180         * doc/tm.texi: Regenerate.
22181         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22182         * target.def (TARGET_RELAXED_ORDERING): Likewise.
22183         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22184         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22185         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22186         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22187         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22188         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22189         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22191 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22193         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22194         register fma steering pass.
22195         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22196         AARCH64_TUNE_FMA_STEERING.
22198 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
22200         * tree.c (verify_type_variant): Verify that type and variant is
22201         compatible.
22202         (gimple_canonical_types_compatible_p): Look for main variants.
22204 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22206         * config.gcc (powerpc*-*-*): Add support for a new configure
22207         option --with-advance-toolchain=<xxx> which overrides using the
22208         default header files, libraries and dynamic linker.
22210         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22211         specs to support the configure --with-advance-toolchain=<xxx>
22212         option.
22213         (INCLUDE_EXTRA_SPEC): Likewise.
22214         (LINK_OS_EXTRA_SPEC32): Likewise.
22215         (LINK_OK_EXTRA_SPEC64): Likewise.
22216         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22217         (DYNAMIC_LINKER_PREFIX): Likewise.
22218         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22219         toolchain support.
22220         (GLIBC_DYNAMIC_LINKER32): Likewise.
22221         (GLIBC_DYNAMIC_LINKER64): Likewise.
22222         (LINK_OS_LINUX_SPEC32): Likewise.
22223         (LINK_OS_LINUX_SPEC64): Likewise.
22225         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22226         configuration option.
22228 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
22230         PR target/66275
22231         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22232         to determine current function ABI.
22233         (ix86_function_value_regno_p): Ditto.
22235 2015-06-03  Martin Liska  <mliska@suse.cz>
22237         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22238         * bitmap.h (struct bitmap_usage): Likewise.
22239         * ggc-common.c (struct ggc_usage): Likewise.
22240         * mem-stats.h (struct mem_location): Likewise.
22241         (struct mem_usage): Likewise.
22242         * vec.c (struct vec_usage): Likewise.
22244 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
22246         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22247         -Bsymbolic.
22249 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
22251         * doc/plugins.texi (enum plugin_event): New event.
22252         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22253         and PLUGIN_FINISH_FUNCTION.
22254         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22255         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22257 2015-06-03  Richard Biener  <rguenther@suse.de>
22259         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22260         compute GROUP_GAP for the first element.
22261         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22262         on in-group gaps.
22264 2015-06-03  Nick Clifton  <nickc@redhat.com>
22266         * config/rl78/rl78-real.md: Add peepholes to avoid a register
22267         copy when calling a function.
22268         * config/rl78/rl78.c (need_to_save): Do not push the frame
22269         pointer in an interrupt handler prologue if it is never used.
22271 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22273         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22275 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
22277         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22278         reference when cloning alias node.
22280 2015-06-03  Martin Liska  <mliska@suse.cz>
22282         * alloc-pool.h (struct pool_usage): Correct space padding.
22283         * ggc-page.c (ggc_print_statistics): Align columns in a report.
22284         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22285         * tree.c (dump_tree_statistics): Align columns in a report.
22287 2015-06-03  Martin Liska  <mliska@suse.cz>
22289         * alloc-pool.c (allocate_pool_descriptor): Remove.
22290         (struct pool_output_info): Likewise.
22291         (print_alloc_pool_statistics): Likewise.
22292         (dump_alloc_pool_statistics): Likewise.
22293         * alloc-pool.h (struct pool_usage): New struct.
22294         (pool_allocator::initialize): Change usage of memory statistics
22295         to a new interface.
22296         (pool_allocator::release): Likewise.
22297         (pool_allocator::allocate): Likewise.
22298         (pool_allocator::remove): Likewise.
22299         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22300         for a pool allocator.
22301         * mem-stats.h (struct mem_location): Add new ctor.
22302         (struct mem_usage): Add counter for number of
22303         instances.
22304         (mem_alloc_description::register_descriptor): New overload of
22305         * mem-stats.h (mem_location::to_string): New function.
22306         * bitmap.h (struct bitmap_usage): Use this new function.
22307         * ggc-common.c (struct ggc_usage): Likewise.
22308         the function.
22310 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
22312         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22313         of GCC_INSN_FLAGS_H block.
22315 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22317         * explow.c (plus_constant): Update check after force_const_mem call
22318         to see if the value returned is not a NULL_RTX.
22320 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
22322         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22323         remove instumentation thunks calling reachable functions.
22324         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22325         * lto/lto-partition.c (privatize_symbol_name_1): New.
22326         (privatize_symbol_name): Privatize both decl and orig_decl
22327         names for instrumented functions.
22328         * cgraph.c (cgraph_node::verify_node): Add transparent
22329         alias chain check for instrumented node.
22331 2015-06-03  Marek Polacek  <polacek@redhat.com>
22333         PR c/64223
22334         PR c/29358
22335         * tree.c (attribute_value_equal): Handle attribute format.
22336         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22338 2015-06-03  Richard Biener  <rguenther@suse.de>
22340         PR tree-optimization/63916
22341         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22342         Forward-propagate non-invariant addresses by splicing their
22343         reference ops if the result isn't going to be used by PRE.
22344         (vn_reference_lookup_3): Remove pointless assert.
22346 2015-06-03  Richard Biener  <rguenther@suse.de>
22348         PR tree-optimization/66375
22349         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22350         add to the evolution before following SSA edges.
22352 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
22354         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22355         (dump_use, dump_cand, find_induction_variables): Pass new argument
22356         to dump_iv.
22357         (record_use): Preserve the ssa name information in IV.
22359 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
22361         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22362         NO_MODE_TEST.
22363         (add_mode_tests): Don't add mode tests if the predicate only
22364         accepts scalar constant integers.  Otherwise, allow the mode
22365         of "op" to be VOIDmode if the predicate does accept such integers.
22367 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
22369         PR target/66258
22370         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22371         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22372         (aarch64_secondary_reload): Likewise
22373         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22374         to !TARGET_FLOAT.
22375         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22376         Likewise.
22378 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
22379             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22381         PR target/65768
22382         * cprop.c (try_replace_reg): Check cost of constants before propagating.
22384 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22386         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22387         provide access to the IBM extended double floating point mode if
22388         long double is IEEE 128-bit floating point.
22389         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22390         point if long double is the IBM extended double type.
22392         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22393         enable adding IEEE 128-bit floating point support.
22394         (-mfloat128-software): Likewise.
22395         (-mfloat128-sw): Likewise.
22397         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22398         128-bit floating point types to occupy any register if
22399         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
22400         -mfloat128-software is enabled.
22401         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22402         support.
22403         (rs6000_option_override_internal): Add -mfloat128-* support.
22404         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22406         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22407         and float128 type nodes.
22408         (ieee128_float_type_node): Likewise.
22409         (ibm128_float_type_node): Likewise.
22411 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22413         PR target/66136
22414         * config/aarch64/geniterators.sh: Rewrite in awk.
22416 2015-06-02  Martin Liska  <mliska@suse.cz>
22418         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22419         values to avoid -Wmaybe-uninitialized errors.
22421 2015-06-02  Richard Biener  <rguenther@suse.de>
22423         PR debug/65549
22424         * dwarf2out.c (lookup_context_die): New function.
22425         (resolve_addr): Avoid forcing a full DIE for the
22426         target of a DW_TAG_GNU_call_site during late compilation.
22427         Instead create a stub DIE without a type if we have a
22428         context DIE present.
22430 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
22432         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22434 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
22436         PR tree-optimization/48052
22437         * cfgloop.h (struct control_iv): New.
22438         (struct loop): New field control_ivs.
22439         * tree-ssa-loop-niter.c : Include "stor-layout.h".
22440         (number_of_iterations_lt): Set no_overflow information.
22441         (number_of_iterations_exit): Init control iv in niter struct.
22442         (record_control_iv): New.
22443         (estimate_numbers_of_iterations_loop): Call record_control_iv.
22444         (loop_exits_before_overflow): New.  Interface factored out of
22445         scev_probably_wraps_p.
22446         (scev_probably_wraps_p): Factor loop niter related code into
22447         loop_exits_before_overflow.
22448         (free_numbers_of_iterations_estimates_loop): Free control ivs.
22449         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
22451 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
22453         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
22454         the target doesn't belong to the current function.
22456 2015-06-02  Marek Polacek  <polacek@redhat.com>
22458         PR middle-end/66345
22459         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
22460         get_maxval_strlen does not produce an INTEGER_CST.
22462 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
22464         * config/arc/constraints.md: Use lower-case names in match_code.
22465         * config/mmix/constraints.md: Likewise.
22467 2015-06-02  Richard Biener  <rguenther@suse.de>
22469         PR tree-optimization/65961
22470         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
22471         check and clarify dump message.
22472         (vect_build_slp_tree): If all children are built up from scalars
22473         build up the parent from scalars instead.
22474         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
22476 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22478         PR other/65366
22479         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
22480         instead of print ... .
22482 2015-06-02  Alan Modra  <amodra@gmail.com>
22484         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
22485         2014-08-11 change.
22487 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
22489         PR tree-optimization/52563
22490         PR tree-optimization/62173
22491         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
22492         (alloc_iv, set_iv): New parameter.
22493         (determine_biv_step): Delete.
22494         (find_bivs): Inline original determine_biv_step.  Pass new
22495         argument to set_iv.
22496         (idx_find_step): Use no_overflow information for conversion.
22497         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
22498         resolve_mixers handle folded_casts.
22499         (instantiate_scev_name): Change bool parameter to bool pointer.
22500         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
22501         (instantiate_array_ref, instantiate_scev_not): Ditto.
22502         (instantiate_scev_3, instantiate_scev_2): Ditto.
22503         (instantiate_scev_1, instantiate_scev_r): Ditto.
22504         (instantiate_scev_convert, ): Change parameter.  Pass argument
22505         to chrec_convert_aggressive.
22506         (instantiate_scev): Change argument.
22507         (resolve_mixers): New parameter and set it.
22508         (scev_const_prop): New argument.
22509         * tree-scalar-evolution.h (resolve_mixers): New parameter.
22510         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
22511         of chrec_conert_1.
22512         (chrec_convert): New parameter.  Move definition below.
22513         (chrec_convert_aggressive): New parameter and set it.  Call
22514         convert_affine_scev.
22515         * tree-chrec.h (chrec_convert): New parameter.
22516         (chrec_convert_aggressive): Ditto.
22518 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
22520         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
22521         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
22522         the LHS of a no-return call if its type has variable size.
22523         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22524         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
22526 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
22528         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
22529         * config.in: Regenerate.
22531 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22533         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
22534         consecutive accesses within outer-loop with force_vectorize
22535         for references with zero step in inner-loop.
22537 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
22539         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
22540         rather than from gcc/build directory.
22542 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
22544         PR target/65697
22545         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
22546         for __sync memory models, emit initial loads and final barriers as
22547         appropriate.
22549 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
22551         PR target/65697
22552         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
22553         (aarch64_split_atomic_op): Check for __sync memory models, emit
22554         appropriate initial loads and final barriers.
22556 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
22558         * Makefile.in: Fix gcov dependencies that should
22559         not point to a build folder.
22561 2015-06-01  Richard Biener  <rguenther@suse.de>
22563         Revert
22564         2015-05-29  Richard Biener  <rguenther@suse.de>
22566         PR tree-optimization/66314
22567         * tree-ssa-threadupdate.c (create_block_for_threading): Add
22568         parameter that says which loop the new block belongs to.
22569         (ssa_create_duplicates): Blocks duplicated for the threaded
22570         path belong to the loop of the thread destination.
22572 2015-06-01  Martin Liska  <mliska@suse.cz>
22574         * sched-deps.c: Include pool-alloc.h before
22575         cselib.h header file is included.
22577 2015-06-01  Richard Biener  <rguenther@suse.de>
22579         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
22580         functions.
22582 2015-06-01  Martin Liska  <mliska@suse.cz>
22584         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
22585         a function local variable.
22587 2015-06-01  Martin Liska  <mliska@suse.cz>
22589         * alloc-pool.c (create_alloc_pool): Remove.
22590         (empty_alloc_pool): Likewise.
22591         (free_alloc_pool): Likewise.
22592         (free_alloc_pool_if_empty): Likewise.
22593         (pool_alloc): Likewise.
22594         (pool_free): Likewise.
22595         * alloc-pool.h: Remove old declarations.
22597 2015-06-01  Martin Liska  <mliska@suse.cz>
22599         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
22600         (ira_create_object): Likewise.
22601         (ira_create_allocno): Likewise.
22602         (ira_create_live_range): Likewise.
22603         (copy_live_range): Likewise.
22604         (ira_finish_live_range): Likewise.
22605         (ira_free_allocno_costs): Likewise.
22606         (finish_allocno): Likewise.
22607         (finish_allocnos): Likewise.
22608         (initiate_prefs): Likewise.
22609         (ira_create_pref): Likewise.
22610         (finish_pref): Likewise.
22611         (finish_prefs): Likewise.
22612         (initiate_copies): Likewise.
22613         (ira_create_copy): Likewise.
22614         (finish_copy): Likewise.
22615         (finish_copies): Likewise.
22616         (finish_prefs): Likewise.
22618 2015-06-01  Martin Liska  <mliska@suse.cz>
22620         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
22621         (allocate_and_init_ipcp_value): Likewise.
22622         (ipcp_lattice::add_value): Likewise.
22623         (merge_agg_lats_step): Likewise.
22624         (ipcp_driver): Likewise.
22625         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
22626         (ipa_free_all_structures_after_iinln): Likewise.
22627         * ipa-prop.h: Likewise.
22629 2015-06-01  Martin Liska  <mliska@suse.cz>
22631         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
22632         pool allocator.
22633         (set_hint_predicate): Likewise.
22634         (inline_summary_alloc): Likewise.
22635         (reset_inline_edge_summary): Likewise.
22636         (reset_inline_summary): Likewise.
22637         (set_cond_stmt_execution_predicate): Likewise.
22638         (set_switch_stmt_execution_predicate): Likewise.
22639         (compute_bb_predicates): Likewise.
22640         (estimate_function_body_sizes): Likewise.
22641         (inline_free_summary): Likewise.
22643 2015-06-01  Martin Liska  <mliska@suse.cz>
22645         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
22646         (ipa_edge_duplication_hook): Likewise.
22647         (ipa_free_all_structures_after_ipa_cp): Likewise.
22648         (ipa_free_all_structures_after_iinln): Likewise.
22650 2015-06-01  Martin Liska  <mliska@suse.cz>
22652         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
22653         (ipa_profile_generate_summary): Likewise.
22654         (ipa_profile_read_summary): Likewise.
22655         (ipa_profile): Likewise.
22657 2015-06-01  Martin Liska  <mliska@suse.cz>
22659         * tree-ssa-structalias.c (new_var_info): Use new type-based
22660         pool allocator.
22661         (new_constraint): Likewise.
22662         (init_alias_vars): Likewise.
22663         (delete_points_to_sets): Likewise.
22665 2015-06-01  Martin Liska  <mliska@suse.cz>
22667         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
22668         (free_strinfo): Likewise.
22669         (pass_strlen::execute): Likewise.
22671 2015-06-01  Martin Liska  <mliska@suse.cz>
22673         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
22674         pool allocator.
22675         (vn_reference_insert_pieces): Likewise.
22676         (vn_phi_insert): Likewise.
22677         (visit_reference_op_call): Likewise.
22678         (copy_phi): Likewise.
22679         (copy_reference): Likewise.
22680         (process_scc): Likewise.
22681         (allocate_vn_table): Likewise.
22682         (free_vn_table): Likewise.
22684 2015-06-01  Martin Liska  <mliska@suse.cz>
22686         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
22687         pool allocator.
22688         (add_repeat_to_ops_vec): Likewise.
22689         (get_ops): Likewise.
22690         (maybe_optimize_range_tests): Likewise.
22691         (init_reassoc): Likewise.
22692         (fini_reassoc): Likewise.
22694 2015-06-01  Martin Liska  <mliska@suse.cz>
22696         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
22697         pool allocator.
22698         (bitmap_set_new): Likewise.
22699         (get_or_alloc_expr_for_constant): Likewise.
22700         (get_or_alloc_expr_for): Likewise.
22701         (phi_translate_1): Likewise.
22702         (compute_avail): Likewise.
22703         (init_pre): Likewise.
22704         (fini_pre): Likewise.
22706 2015-06-01  Martin Liska  <mliska@suse.cz>
22708         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
22709         (delete_dep_node): Likewise.
22710         (create_deps_list): Likewise.
22711         (free_deps_list): Likewise.
22712         (sched_deps_init): Likewise.
22713         (sched_deps_finish): Likewise.
22715 2015-06-01  Martin Liska  <mliska@suse.cz>
22717         * regcprop.c (free_debug_insn_changes): Use new type-based
22718         pool allocator.
22719         (replace_oldest_value_reg): Likewise.
22720         (pass_cprop_hardreg::execute): Likewise.
22722 2015-06-01  Martin Liska  <mliska@suse.cz>
22724         * ira-build.c (initiate_cost_vectors): Use new type-based
22725         pool allocator.
22726         (ira_allocate_cost_vector): Likewise.
22727         (ira_free_cost_vector): Likewise.
22728         (finish_cost_vectors): Likewise.
22730 2015-06-01  Martin Liska  <mliska@suse.cz>
22732         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
22733         pool allocator.
22734         (free_sched_pools): Likewise.
22735         * sel-sched-ir.h (_list_alloc): Likewise.
22736         (_list_remove): Likewise.
22738 2015-06-01  Martin Liska  <mliska@suse.cz>
22740         * stmt.c (add_case_node): Use new type-based pool allocator.
22741         (expand_case): Likewise.
22742         (expand_sjlj_dispatch_table): Likewise.
22744 2015-06-01  Martin Liska  <mliska@suse.cz>
22746         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
22747         (free_bb): Likewise.
22748         (pass_cse_reciprocals::execute): Likewise.
22750 2015-06-01  Martin Liska  <mliska@suse.cz>
22752         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
22753         (sra_deinitialize) Likewise.
22754         (create_access_1) Likewise.
22755         (build_accesses_from_assign) Likewise.
22756         (create_artificial_child_access) Likewise.
22758 2015-06-01  Martin Liska  <mliska@suse.cz>
22760         * dse.c (get_group_info):Use new type-based pool allocator.
22761         (dse_step0) Likewise.
22762         (free_store_info) Likewise.
22763         (delete_dead_store_insn) Likewise.
22764         (free_read_records) Likewise.
22765         (record_store) Likewise.
22766         (replace_read) Likewise.
22767         (check_mem_read_rtx) Likewise.
22768         (scan_insn) Likewise.
22769         (dse_step1) Likewise.
22770         (dse_step7) Likewise.
22772 2015-06-01  Martin Liska  <mliska@suse.cz>
22774         * df-scan.c (struct df_scan_problem_data):Use new type-based
22775         pool allocator.
22776         (df_scan_free_internal) Likewise.
22777         (df_scan_alloc) Likewise.
22778         (df_grow_reg_info) Likewise.
22779         (df_free_ref) Likewise.
22780         (df_insn_create_insn_record) Likewise.
22781         (df_mw_hardreg_chain_delete) Likewise.
22782         (df_insn_info_delete) Likewise.
22783         (df_free_collection_rec) Likewise.
22784         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
22785         (df_sort_and_compress_mws) Likewise.
22786         (df_ref_create_structure) Likewise.
22787         (df_ref_record) Likewise.
22789 2015-06-01  Martin Liska  <mliska@suse.cz>
22791         * df-problems.c (df_chain_create):Use new type-based pool allocator.
22792         (df_chain_unlink_1) Likewise.
22793         (df_chain_unlink) Likewise.
22794         (df_chain_remove_problem) Likewise.
22795         (df_chain_alloc) Likewise.
22796         (df_chain_free) Likewise.
22797         * df.h (struct dataflow) Likewise.
22799 2015-06-01  Martin Liska  <mliska@suse.cz>
22801         * cselib.c (new_elt_list):Use new type-based pool allocator.
22802         (new_elt_loc_list) Likewise.
22803         (unchain_one_elt_list) Likewise.
22804         (unchain_one_elt_loc_list) Likewise.
22805         (unchain_one_value) Likewise.
22806         (new_cselib_val) Likewise.
22807         (cselib_init) Likewise.
22808         (cselib_finish) Likewise.
22810 2015-06-01  Martin Liska  <mliska@suse.cz>
22812         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
22813         (sh_reorg) Likewise.
22815 2015-06-01  Martin Liska  <mliska@suse.cz>
22817         * cfg.c (initialize_original_copy_tables):Use new type-based
22818         pool allocator.
22819         (free_original_copy_tables) Likewise.
22820         (copy_original_table_clear) Likewise.
22821         (copy_original_table_set) Likewise.
22823 2015-06-01  Martin Liska  <mliska@suse.cz>
22825         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
22826         pool allocator.
22827         (asan_mem_ref_new) Likewise.
22828         (free_mem_ref_resources) Likewise.
22830 2015-06-01  Martin Liska  <mliska@suse.cz>
22832         * var-tracking.c (variable_htab_free):Use new type-based
22833         pool allocator.
22834         (attrs_list_clear) Likewise.
22835         (attrs_list_insert) Likewise.
22836         (attrs_list_copy) Likewise.
22837         (shared_hash_unshare) Likewise.
22838         (shared_hash_destroy) Likewise.
22839         (unshare_variable) Likewise.
22840         (var_reg_delete_and_set) Likewise.
22841         (var_reg_delete) Likewise.
22842         (var_regno_delete) Likewise.
22843         (drop_overlapping_mem_locs) Likewise.
22844         (variable_union) Likewise.
22845         (insert_into_intersection) Likewise.
22846         (canonicalize_values_star) Likewise.
22847         (variable_merge_over_cur) Likewise.
22848         (dataflow_set_merge) Likewise.
22849         (remove_duplicate_values) Likewise.
22850         (variable_post_merge_new_vals) Likewise.
22851         (dataflow_set_preserve_mem_locs) Likewise.
22852         (dataflow_set_remove_mem_locs) Likewise.
22853         (variable_from_dropped) Likewise.
22854         (variable_was_changed) Likewise.
22855         (set_slot_part) Likewise.
22856         (clobber_slot_part) Likewise.
22857         (delete_slot_part) Likewise.
22858         (loc_exp_insert_dep) Likewise.
22859         (notify_dependents_of_changed_value) Likewise.
22860         (emit_notes_for_differences_1) Likewise.
22861         (vt_emit_notes) Likewise.
22862         (vt_initialize) Likewise.
22863         (vt_finalize) Likewise.
22865 2015-06-01  Martin Liska  <mliska@suse.cz>
22867         * ira-color.c (init_update_cost_records):Use new type-based
22868         pool allocator.
22869         (get_update_cost_record) Likewise.
22870         (free_update_cost_record_list) Likewise.
22871         (finish_update_cost_records) Likewise.
22872         (initiate_cost_update) Likewise.
22874 2015-06-01  Martin Liska  <mliska@suse.cz>
22876         * lra.c (init_insn_regs): Use new type-based pool allocator.
22877         (new_insn_reg) Likewise.
22878         (free_insn_reg) Likewise.
22879         (free_insn_regs) Likewise.
22880         (finish_insn_regs) Likewise.
22881         (init_insn_recog_data) Likewise.
22882         (init_reg_info) Likewise.
22883         (finish_reg_info) Likewise.
22884         (lra_free_copies) Likewise.
22885         (lra_create_copy) Likewise.
22886         (invalidate_insn_data_regno_info) Likewise.
22888 2015-06-01  Martin Liska  <mliska@suse.cz>
22890         * lra-lives.c (free_live_range): Use new type-based pool allocator.
22891         (free_live_range_list) Likewise.
22892         (create_live_range) Likewise.
22893         (copy_live_range) Likewise.
22894         (lra_merge_live_ranges) Likewise.
22895         (remove_some_program_points_and_update_live_ranges) Likewise.
22896         (lra_live_ranges_init) Likewise.
22897         (lra_live_ranges_finish) Likewise.
22899 2015-06-01  Martin Liska  <mliska@suse.cz>
22901         * et-forest.c (et_new_occ): Use new type-based pool allocator.
22902         (et_new_tree): Likewise.
22903         (et_free_tree): Likewise.
22904         (et_free_tree_force): Likewise.
22905         (et_free_pools): Likewise.
22906         (et_split): Likewise.
22908 2015-06-01  Martin Liska  <mliska@suse.cz>
22910         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
22911         to header file.
22912         * alloc-pool.h (pool_allocator::pool_allocator): New function.
22913         (pool_allocator::release): Likewise.
22914         (inline pool_allocator::release_if_empty): Likewise.
22915         (inline pool_allocator::~pool_allocator): Likewise.
22916         (pool_allocator::allocate): Likewise.
22917         (pool_allocator::remove): Likewise.
22919 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
22921         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
22922         in comment.
22924 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
22926         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
22927         to fusible_ops.
22928         * config/arm/arm.c (arm_print_tune_info): Likewise.
22929         (arm_macro_fusion_p): Likewise.
22930         (arm_macro_fusion_pair_p): Likewise.
22932 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
22934         * config/aarch64/aarch64-protos.h (tune_params): Rename
22935         fuseable_ops to fusible_ops.
22936         * config/aarch64/aarch64.c (generic_tunings): Rename
22937         fuseable_ops to fusible_ops.
22938         (cortexa53_tunings): Likewise.
22939         (cortexa57_tunings): Likewise.
22940         (thunderx_tunings): Likewise.
22941         (xgene1_tunings): Likewise.
22942         (aarch64_macro_fusion_p): Likewise.
22943         (aarch64_macro_fusion_pair_p): Likewise.
22945 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22947         * config/s390/driver-native.c: New file.
22948         * config/s390/x-native: New file.
22949         * config.host: Add new files for s390.
22950         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
22951         and -march=native
22952         * config.gcc: Likewise.
22953         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
22954         * config/s390/s390-opts.h (enum processor_type): Ditto.
22955         * config/s390/s390.c (s390_option_override): Catch unhandled
22956         PROCESSOR_NATIVE
22958 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
22960         PR target/65527
22961         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
22962         redirection for instrumented calls.
22963         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
22964         (append_compiler_options): Append -fcheck-pointer-bounds.
22965         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
22966         (chkp_redirect_edge): New.
22967         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
22968         (chkp_redirect_edge): New.
22970 2015-06-01  Richard Biener  <rguenther@suse.de>
22972         PR tree-optimization/66280
22973         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
22974         def-use walking.
22976 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22978         * config/aarch64/aarch64.md
22979         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
22980         logic_shift_imm.
22982 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
22984         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
22985         Remove obsolete kludge.
22987 2015-06-01  Richard Biener  <rguenther@suse.de>
22989         * tree-ssa-reassoc.c (get_rank): Simplify.
22991 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22993         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
22994         * configure: Regenerated.
22996 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
22998         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
22999         issue (add space between string literal and macro).
23000         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23002 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
23004         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23005         implict or explicit -fPIE or -fpie.
23007 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
23009         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23011 2015-05-28  DJ Delorie  <dj@redhat.com>
23013         * expmed.c (extract_bit_field_1): Avoid clobbering a
23014         yet-to-be-used base/index register.
23016 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
23018         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23019         (alias_stats): Add num_universal.
23020         (alias_set_subset_of): Special case pointers; be ready for NULL
23021         children.
23022         (alias_sets_conflict_p): Special case pointers; be ready for NULL
23023         children.
23024         (init_alias_set_entry): Break out from ...
23025         (record_alias_subset): ... here; propagate new fields;
23026         allocate children only when really needed.
23027         (get_alias_set): Do less generous pointer globbing.
23028         (dump_alias_stats_in_alias_c): Update statistics.
23030 2015-05-30  Alan Modra  <amodra@gmail.com>
23032         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23033         correct block for use of r12.
23034         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23036 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23038         PR target/66215
23039         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23040         with -mhotpatch=.
23042 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
23044         PR tree-optimization/66142
23045         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23046         virtual phis that feed themselves.
23048 2015-05-29  Richard Biener  <rguenther@suse.de>
23050         PR tree-optimization/66314
23051         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23052         parameter that says which loop the new block belongs to.
23053         (ssa_create_duplicates): Blocks duplicated for the threaded
23054         path belong to the loop of the thread destination.
23056 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23058         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23059         to cleanup-saved-temps.
23060         * doc/sourcebuild.texi (Clean up generated test files): Expand
23061         introduction.
23062         (dg-keep-saved-temps): Document new proc.
23063         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23064         cleanup-saved-temps): Remove.
23066 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
23068         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23069         gcc_AC_CHECK_DECLS.
23070         * configure: Regenerate.
23072 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23074         * config/nios2/linux.h (CPP_SPEC): Define.
23076 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23078         * config/microblaze/linux.h (CPP_SPEC): Define.
23080 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23082         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23083         -pthread is specified.
23085 2015-05-28  Richard Biener  <rguenther@suse.de>
23087         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23088         (vect_fixup_scalar_cycles_with_patterns): Likewise.
23089         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23090         after pattern recog.
23091         (vect_create_epilog_for_reduction): Properly handle reductions
23092         with patterns.
23093         (vectorizable_reduction): Likewise.
23094         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23095         reduction chains.
23096         (vect_get_constant_vectors): Create the correct number of
23097         initial values for reductions.
23098         (vect_schedule_slp_instance): Handle reduction chains that are
23099         type changing properly.
23100         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23102 2015-05-28  Richard Biener  <rguenther@suse.de>
23104         PR tree-optimization/66142
23105         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23106         values better in memcpy destination handling.  Handle non-aliasing
23107         we discover here.
23109 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
23111         PR target/63810
23112         * config/darwin-c.c (version_components): New global enum.
23113         (parse_version, version_as_legacy_macro)
23114         (version_as_modern_macro, macosx_version_as_macro): New functions.
23115         (version_as_macro): Remove.
23116         (darwin_cpp_builtins): Use new function.
23118 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23120         * builtins.c (expand_builtin_acc_on_device): Mark parameters
23121         with ATTRIBUTE_UNUSED.
23123 2015-05-28  Julian Brown  <julian@codesourcery.com>
23125         PR libgomp/65742
23127         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23128         sequence for !ACCEL_COMPILER.
23130 2015-05-28  Nick Clifton  <nickc@redhat.com>
23132         * config/rx/rx.c (push_regs): New function.  Extracts code from...
23133         (rx_expand_prologue): ... here.  Use push_regs to push even small
23134         spans of registers.
23135         (pop_regs): New function.
23136         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
23137         registers.
23139 2015-05-28  Richard Biener  <rguenther@suse.de>
23141         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23142         member.
23143         (SLP_INSTANCE_BODY_COST_VEC): Remove.
23144         (vect_update_slp_costs_according_to_vf): Likewise.
23145         (vect_slp_analyze_operations): Update prototype.
23146         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23147         vect_update_slp_costs_according_to_vf, adjust.
23148         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23149         (vect_analyze_slp_cost_1): Likewise.
23150         (vect_analyze_slp_cost): Likewise.  Properly deal with
23151         widening reduction ops.  Commit body costs.
23152         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
23153         cost for loops from here.
23154         (vect_slp_analyze_operations): But do it from here when
23155         the vectorization factor is known and stmts are analyzed.
23156         (vect_bb_vectorization_profitable_p): Simplify.
23157         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23158         (vect_update_slp_costs_according_to_vf): Remove.
23160 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
23161             H.J. Lu  <hongjiu.lu@intel.com>
23163         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23164         (BUILD_CFLAGS): Likewise.
23165         (BUILD_CXXFLAGS): Likewise.
23166         (LINKER): Add @NO_PIE_FLAG@.
23167         (BUILD_LDFLAGS): Likewise.
23168         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23169         --enable-default-pie.
23170         * common.opt (fPIE): Initialize to -1.
23171         (fpie): Likewise.
23172         (no-pie): New option.
23173         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23174         * configure.ac: Add --enable-default-pie.
23175         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
23176         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
23177         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
23178         * gcc.c (NO_PIE_SPEC): New.
23179         (PIE_SPEC): Likewise.
23180         (NO_FPIE1_SPEC): Likewise.
23181         (FPIE1_SPEC): Likewise.
23182         (NO_FPIE2_SPEC): Likewise.
23183         (FPIE2_SPEC): Likewise.
23184         (NO_FPIE2_SPEC): Likewise.
23185         (FPIE_SPEC): Likewise.
23186         (NO_FPIE_SPEC): Likewise.
23187         (NO_FPIC1_SPEC): Likewise.
23188         (FPIC1_SPEC): Likewise.
23189         (NO_FPIC2_SPEC): Likewise.
23190         (FPIC2_SPEC): Likewise.
23191         (NO_FPIC2_SPEC): Likewise.
23192         (FPIC_SPEC): Likewise.
23193         (NO_FPIC_SPEC): Likewise.
23194         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23195         (FPIE1_OR_FPIC1_SPEC): Likewise.
23196         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23197         (FPIE2_OR_FPIC2_SPEC): Likewise.
23198         (NO_FPIE_AND_FPIC_SPEC): Likewise.
23199         (FPIE_OR_FPIC_SPEC): Likewise.
23200         (LD_PIE_SPEC): Likewise.
23201         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
23202         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23203         * config/darwin.h (PIE_SPEC): Renamed to ...
23204         (DARWIN_PIE_SPEC): This.
23205         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23206         * config/darwin9.h (PIE_SPEC): Renamed to ...
23207         (DARWIN_PIE_SPEC): This.
23208         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23209         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23210         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23211         FPIE2_OR_FPIC2_SPEC.
23212         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23213         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23214         * config/sol2.h (ASM_PIC_SPEC): Likewise.
23215         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23216         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23217         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23218         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23219         * config/m32r/m32r.h (ASM_SPEC): Likewise.
23220         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23221         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23222         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23223         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23224         * config/sparc/linux.h (ASM_SPEC): Likewise.
23225         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23226         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23227         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23228         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23229         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23230         * config/sparc/sparc.h (ASM_SPEC): Likewise.
23231         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23232         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23233         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23234         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23235         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23236         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23237         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23238         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23239         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23240         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23241         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23242         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23243         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23244         * config/vax/linux.h (ASM_SPEC): Likewise.
23245         * doc/install.texi: Document --enable-default-pie.
23246         * doc/invoke.texi: Document -no-pie.
23247         * config.in: Regenerated.
23248         * configure: Likewise.
23250 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23252         PR rtl-optimization/66168
23253         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23254         can_move_invariant_reg.
23256 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
23258         PR target/66148
23259         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23260         REG_EQUAL note when doing insert.
23262         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23263         instead of "%d" for 'o' operand.
23265 2015-05-27  Nathan Sidwell  <nathan@acm.org>
23267         PR c++/66270
23268         * tree.c (build_pointer_type_for_mode): Canonical type does not
23269         inherit can_alias_all.
23270         (build_reference_type_for_mode): Likewise.
23272 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23274         * expr.h (array_at_struct_end_p): Move to...
23275         (array_ref_element_size): Likewise.
23276         (component_ref_field_offset): Likewise.
23277         * tree.h (array_ref_element_size): ...here.
23278         (array_at_struct_end_p): Likewise.
23279         (component_ref_field_offset): Likewise.
23280         * expr.c (array_ref_element_size): Move to...
23281         (array_ref_low_bound): Likewise.
23282         (array_at_struct_end_p): Likewise.
23283         (array_ref_up_bound): Likewise.
23284         (component_ref_field_offset): Likewise.
23285         * tree.c (array_ref_element_size): ...here.
23286         (array_ref_low_bound): Likewise.
23287         (array_ref_up_bound): Likewise.
23288         (array_at_struct_end_p): Likewise.
23289         (component_ref_field_offset): Likewise.
23291 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
23292             Szabolcs Nagy  <szabolcs.nagy@arm.com>
23294         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23296 2015-05-27  Jason Merrill  <jason@redhat.com>
23298         PR bootstrap/66304
23299         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23300         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23301         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23303 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
23305         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23306         is true.
23308         * statistics.c (statistics_fini_pass): Print pass name.
23310 2015-05-27  Richard Biener  <rguenther@suse.de>
23312         PR tree-optimization/66272
23313         Revert parts of
23314         2014-08-15  Richard Biener  <rguenther@suse.de>
23316         PR tree-optimization/62031
23317         * tree-data-ref.c (dr_analyze_indices): Do not set
23318         DR_UNCONSTRAINED_BASE.
23319         (dr_may_alias_p): All indirect accesses have to go the
23320         formerly DR_UNCONSTRAINED_BASE path.
23321         * tree-data-ref.h (struct indices): Remove
23322         unconstrained_base member.
23323         (DR_UNCONSTRAINED_BASE): Remove.
23325 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
23327         * dwarf2out.c: Remove block_map.
23328         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23329         (gen_lexical_block_die): Same.
23330         (dwarf2out_function_decl): Remove block_map use.
23331         (dwarf2out_c_finalize): Same.
23332         * tree-core.h (struct tree_block): Add die field.
23333         * tree.h (BLOCK_DIE): New.
23335 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23337         PR target/65358
23338         * expr.c (memory_load_overlap): New function.
23339         (emit_push_insn): When pushing partial args to the stack would
23340         clobber the register part load the overlapping part into a pseudo
23341         and put it into the hard reg after pushing.  Change return type
23342         to bool.  Add bool argument.
23343         * expr.h (emit_push_insn): Change return type to bool.
23344         Add bool argument.
23345         * calls.c (expand_call): Cancel sibcall optimization when encountering
23346         partial argument on targets with ARGS_GROW_DOWNWARD and
23347         !STACK_GROWS_DOWNWARD.
23348         (emit_library_call_value_1): Update callsite of emit_push_insn.
23349         (store_one_arg): Likewise.
23351 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
23353         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23355 2015-05-27  Martin Liska  <mliska@suse.cz>
23357         * Makefile.in: Add additional dependencies related to memory report
23358         enhancement.
23359         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23360         * bitmap.c (struct bitmap_descriptor_d): Remove.
23361         (struct loc): Likewise.
23362         (struct bitmap_desc_hasher): Likewise.
23363         (bitmap_desc_hasher::hash): Likewise.
23364         (bitmap_desc_hasher::equal): Likewise.
23365         (get_bitmap_descriptor): Likewise.
23366         (bitmap_register): User new memory descriptor API.
23367         (register_overhead): Likewise.
23368         (bitmap_find_bit): Register nsearches and search_iter statistics.
23369         (struct bitmap_output_info): Remove.
23370         (print_statistics): Likewise.
23371         (dump_bitmap_statistics): Use new memory descriptor.
23372         * bitmap.h (struct bitmap_usage): New class.
23373         * genmatch.c: Extend header file inclusion.
23374         * genpreds.c: Likewise.
23375         * ggc-common.c (struct ggc_usage): New class.
23376         (struct ggc_loc_desc_hasher): Remove.
23377         (ggc_loc_desc_hasher::hash): Likewise.
23378         (ggc_loc_desc_hasher::equal): Likewise.
23379         (struct ggc_ptr_hash_entry): Likewise.
23380         (struct ptr_hash_hasher): Likewise.
23381         (ptr_hash_hasher::hash): Likewise.
23382         (ptr_hash_hasher::equal): Likewise.
23383         (make_loc_descriptor): Likewise.
23384         (ggc_prune_ptr): Likewise.
23385         (dump_ggc_loc_statistics): Use new memory descriptor.
23386         (ggc_record_overhead): Likewise.
23387         (ggc_free_overhead): Likewise.
23388         (final_cmp_statistic): Remove.
23389         (cmp_statistic): Likewise.
23390         (ggc_add_statistics): Liekwise.
23391         (ggc_prune_overhead_list): Likewise.
23392         * hash-map-traits.h: New file.
23393         * hash-map.h (struct default_hashmap_traits): Move the traits to a
23394         separate header file.
23395         * hash-set.h: Pass memory statistics info to ctor.
23396         * hash-table.c (void dump_hash_table_loc_statistics): New function.
23397         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23398         (hash_table::~hash_table): Register memory release operation.
23399         (hash_table::alloc_entries): Handle memory allocation operation.
23400         (hash_table::expand): Likewise.
23401         * inchash.c (iterative_hash_hashval_t): Move implementation to header
23402         file.
23403         (iterative_hash_host_wide_int): Likewise.
23404         * inchash.h (class hash): Likewise.
23405         * mem-stats-traits.h: New file.
23406         * mem-stats.h: New file.
23407         (mem_location): Add new class.
23408         (mem_usage): Likewise.
23409         (mem_alloc_description): Likewise.
23410         * sese.c: Add new header file inclusision.
23411         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23412         and hash_set.
23413         * tree-sra.c: Add new header file inclusision.
23414         * vec.c (struct vec_descriptor): Remove.
23415         (hash_descriptor): Likewise.
23416         (struct vec_usage): Likewise.
23417         (struct ptr_hash_entry): Likewise.
23418         (hash_ptr): Likewise.
23419         (eq_ptr): Likewise.
23420         (vec_prefix::register_overhead): Use new memory descriptor API.
23421         (vec_prefix::release_overhead): Likewise.
23422         (add_statistics): Remove.
23423         (dump_vec_loc_statistics): Use new memory descriptor API.
23424         * vec.h (struct vec_prefix): Likewise.
23425         (va_heap::reserve): Likewise.
23426         (va_heap::release): Likewise.
23427         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23429 2015-05-27  Richard Biener  <rguenther@suse.de>
23431         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23432         earlier and remove ??? comment.
23433         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23434         and got called from loop analysis bail out.  Always pass the SLP
23435         node to the vectorizable_* functions.
23436         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23437         the premature SLP check here.
23438         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23439         detected SLP stmts.
23440         (vect_detect_hybrid_slp_1): Likewise.
23442 2015-05-26  Jeff Law  <law@redhat.com>
23444         * combine.c (find_split_point): Verify that the shift count is a
23445         constant when choosing (plus (ashift ...)) as a split point.
23447         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
23448         No functional changes.
23450 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
23452         * ipa-polymorphic-call.c
23453         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
23454         case when call target is already known.
23456 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
23458         PR target/65979
23459         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
23460         take into account the case that operands[1] and operands[2]
23461         are the same register.
23463 2015-05-26  Michael Matz  <matz@suse.de>
23465         PR middle-end/66251
23467         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
23468         stores.
23469         (vect_create_vectorized_demotion_stmts): Always set
23470         STMT_VINFO_VEC_STMT, also with SLP.
23471         (vectorizable_store): Handle strided group stores.
23473 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23475         PR target/66049
23476         * config/aarch64/aarch64.md
23477         (*adds_shift_imm_<mode>):  New pattern.
23478         (*subs_shift_imm_<mode>):  Likewise.
23479         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
23480         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23481         (*add_uxt<mode>_shift2): Likewise.
23482         (*add_uxtsi_shift2_uxtw): Likewise.
23483         (*sub_uxt<mode>_shift2): Likewise.
23484         (*sub_uxtsi_shift2_uxtw): Likewise.
23486 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
23488         * config/rs6000/constraints.md (Y, U): Use match_test.
23490 2015-05-26  Christian Bruel  <christian.bruel@st.com>
23492         PR target/52144
23493         * config/arm/arm.c (arm_option_check_internal)
23494         (arm_option_params_internal): Check opts->target_flags to set macros.
23495         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23496         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
23497         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23498         (builtin_define): Replaced with def_or_undef_macro.
23499         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23500         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
23501         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23502         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
23503         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
23504         (TARGET_ARM_FEATURE_LDREX_P)
23505         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
23506         * config/arm/arm-c.c (def_or_undef_macro): New function.
23507         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
23509 2015-05-26  Christian Bruel  <christian.bruel@st.com>
23511         * c-common.h (builtin_define_with_int_value)
23512         (builtin_define_type_sizeof): Declare.
23513         * c-cppbuiltin.c (builtin_define_with_int_value)
23514         (builtin_define_type_sizeof): Externalize.
23515         (builtin_define_std): Cleanup declaration.
23516         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
23517         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
23518         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
23519         (builtin_define, builtin_assert): New macros.
23521 2015-05-26  Richard Biener  <rguenther@suse.de>
23523         PR tree-optimization/66142
23524         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
23525         MEM_REFs for the same base address.
23527 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23529         PR ipa/66181
23530         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
23532 2015-05-26  Jason Merrill  <jason@redhat.com>
23534         * configure.ac: Set CXXFLAGS for ISL test.
23535         * configure: Regenerate.
23537         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
23538         strstr and basename.
23539         * configure: Regenerate.
23541 2015-05-26  Richard Biener  <rguenther@suse.de>
23543         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
23544         X % C -> X & (C - 1) for C being a power-of two to ...
23545         * match.pd: ... patterns.
23547 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
23549         * match.pd (swapped_tcc_comparison): New operator list.
23550         (-A CMP -B): New simplification.
23551         * fold-const.c (fold_comparison): Remove corresponding code.
23553 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
23555         * caller-save.c (init_caller_save): Base temporary register numbers
23556         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
23557         * cfgloopanal.c (init_set_costs): Likewise.
23558         * dojump.c (prefer_and_bit_test): Likewise.
23559         * expr.c (init_expr_target): Likewise.
23560         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23561         * lower-subreg.c (init_lower_subreg): Likewise.
23562         * postreload.c (reload_cse_regs_1): Likewise.
23564 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
23566         * gensupport.h (compute_test_codes): Declare.
23567         * gensupport.c (compute_predicate_codes): Rename to...
23568         (compute_test_codes): ...this.  Generalize error message.
23569         (process_define_predicate): Update accordingly.
23570         * genpreds.c (compute_maybe_allows): Delete.
23571         (add_constraint): Use compute_test_codes to determine whether
23572         something can accept a SUBREG, REG or MEM.
23574 2015-05-26  Torvald Riegel  <triegel@redhat.com>
23576         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
23577         'memory model' to align with C++11; fix description of memory orders;
23578         fix a few typos.
23580 2015-05-26  Richard Biener  <rguenther@suse.de>
23582         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
23583         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
23584         detect whether we apply SLP.  Remove call to
23585         vect_update_slp_costs_according_to_vf.
23586         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
23587         vect_update_slp_costs_according_to_vf from here.  Dispatch
23588         to vect_slp_analyze_operations to analyze SLP stmts.
23589         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
23590         unused bb_vec_info parameter, adjust assert.
23591         (vect_slp_analyze_operations): Pass in the slp instance tree
23592         instead of bb_vec_info.
23593         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
23594         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
23596 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
23598         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
23599         Q_REGS.  Expand comment.
23600         (REG_CLASS_NAMES): Ditto.
23601         (REG_CLASS_CONTENTS): Ditto.
23603 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
23605         PR target/66274
23606         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
23607         when LEGACY_INT_REGNO_P is processed.
23609 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
23611         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
23613 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23615         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
23616         register if not marked dead/unused, before return.
23618 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23620         PR lto/66180
23621         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
23622         is set; check for assembler name at LTO time.
23623         (type_in_anonymous_namespace): Remove hacks, check that all
23624         anonymous types are called "<anon>"
23625         (odr_type_p): Simplify; add check for "<anon>"
23626         (odr_subtypes_equivalent): Add odr_type_p check.
23627         * tree.c (need_assembler_name_p): Even anonymous namespace needs
23628         assembler name.
23630 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23632         * ipa-utils.h (method_class_type): Remove.
23633         * cgraphunit.c (walk_polymorphic_call_targets): Use
23634         TYPE_METHOD_BASETYPE.
23635         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
23636         on main variants only.
23637         (method_class_type): Remove.
23638         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
23639         (build_type_inheritance_graph): Likewise.
23640         * ipa-icf.c (sem_function::equals_wpa): Likewise.
23641         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
23642         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
23644 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23646         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
23647         is_typedef_decl, typedef_variant_p): Constify.
23648         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
23649         is_typedef_decl, typedef_variant_p): Constify.
23651 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23653         * defaults.h (gen_tablejump): New function.
23654         (HAVE_tablejump): Add default value.
23655         * expr.c: Adjust.
23656         * stmt.c: Likewise.
23658 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23660         * defaults.h (gen_store_multiple): New function.
23661         (HAVE_store_multiple): Add default value.
23662         * expr.c (move_block_from_reg): Adjust.
23664 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23666         * defaults.h (gen_load_multiple): New function.
23667         (HAVE_load_multiple): Add default value.
23668         * expr.c (move_block_to_reg): Adjust.
23670 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23672         * defaults.h (gen_mem_signal_fence): New function.
23673         (HAVE_mem_signal_fence): Add default value.
23674         * optabs.c: Adjust.
23676 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23678         * defaults.h (gen_memory_barrier): New function.
23679         (HAVE_memory_barrier): Add default value.
23680         * optabs.c: Adjust.
23682 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23684         * defaults.h (gen_mem_thread_fence): New function.
23685         (HAVE_mem_thread_fence): Add default definition.
23686         * optabs.c: Adjust.
23688 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23690         * combine.c (find_split_point): Check the value of HAVE_lo_sum
23691         instead of if it is defined.
23692         (combine_simplify_rtx): Likewise.
23693         * lra-constraints.c (process_address_1): Likewise.
23694         * config/darwin.c: Adjust.
23695         * genconfig.c (main): Always define HAVE_lo_sum.
23697 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23699         * genmatch.c (parser::parse_operation): Reject expanding
23700         operator-list inside 'for'.
23702 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23704         * genmatch.c (parser::parse_for): Reject iterator if used as
23705         operator-list.
23707 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23709         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
23710         after end of id-list.
23712 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
23714         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
23715         we do not try to compute canonical type for type that does not need
23716         alias set.
23717         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
23718         FUNCITON_TYPE.
23719         * tree.h (type_with_alias_set_p): New.
23721 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
23723         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
23724         function attributes.
23725         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
23727 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
23729         * Makefile.in (check_gcc_parallelize): Delete.
23730         (lang_checks_parallelized): Update comment.
23732 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
23734         PR rtl-optimization/66237
23735         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
23736         location of an "as_a" cast.
23738 2015-05-22  Jeff Law  <law@redhat.com>
23740         * config/pa/pa.md (non-canonical shift-add insns): Remove.
23741         (peepholes with non-canonical RTL sources): Remove.
23742         (peepholes for indexed stores of FP regs in integer modes): Match and
23743         generate canonical RTL.
23745 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
23747         PR tree-optimization/63387
23748         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
23749         ((x ord x) & (y ord y) -> (x ord y),
23750         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
23751         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
23752         vectors like scalars.
23754 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
23756         * convert.c (convert_to_integer, convert_to_vector): Include the
23757         types in the error message.
23759 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
23761         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
23762         simplifications.
23764 2015-05-22  Jeff Law  <law@redhat.com>
23766         * config/pa/pa.md (integer_indexed_store splitters): Use
23767         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
23768         insns -- adjusting the constant 2nd operand accordingly.
23770         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
23771         (plus (ashift X log2) Y) if it is a split point.
23773         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
23774         out of hppa_legitimize_address to handle both forms of a multiply
23775         by 2, 4 or 8.
23776         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
23777         Always generate the ASHIFT variant as the result is not directly
23778         used in a MEM.  Update comments and refactor slightly to improve
23779         readability.
23781 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23783         PR target/65491
23784         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
23785         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
23786         (aarch64_composite_type_p): Return false if given type and mode are
23787         for a short vector.
23789 2015-05-22  Richard Biener  <rguenther@suse.de>
23791         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
23792         member.
23793         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
23794         patterns when determining whether SLP is pure.
23795         (vect_is_slp_reduction): Remove check for pattern stmts.
23796         (vect_is_simple_reduction_1): Remove dead code.
23797         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
23798         (vect_get_and_check_slp_defs): Pass in the stmt number.
23799         Allow the first def in a reduction to be not a pattern stmt when
23800         the rest of the stmts def are patterns.
23801         (vect_build_slp_tree_1): Allow tcc_expression codes like
23802         SAD_EXPR and DOT_PROD_EXPR.
23803         (vect_build_slp_tree): Adjust.
23804         (vect_analyze_slp): Refactor and move BB vect error message ...
23805         (vect_slp_analyze_bb_1): ... here.
23807 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
23809         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
23810         for CSWTCH temporary.
23812 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23814         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
23815         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
23816         unknown unspecs.
23818 2015-05-22  Richard Biener  <rguenther@suse.de>
23820         PR tree-optimization/66251
23821         * tree-vect-stmts.c (vectorizable_conversion): Properly
23822         set STMT_VINFO_VEC_STMT even for the SLP case.
23824 2015-05-22  Marek Polacek  <polacek@redhat.com>
23826         * doc/extend.texi: Use @pxref instead of @xref.
23828 2015-05-22  hiraditya  <hiraditya@msn.com>
23830         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
23831         redundant if.
23833 2015-05-22  Richard Biener  <rguenther@suse.de>
23835         PR tree-optimization/65701
23836         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23837         Move peeling cost models into one place.  Peel for alignment
23838         for single loads only if an aligned load is cheaper than
23839         an unaligned load.
23841 2015-05-22  Marek Polacek  <polacek@redhat.com>
23843         PR c/47043
23844         * doc/extend.texi (Enumerator Attributes): New section.
23845         Document syntax of enumerator attributes.
23847 2015-05-22  Richard Biener  <rguenther@suse.de>
23849         * tree-vect-loop.c (get_reduction_op): New function.
23850         (vect_model_reduction_cost): Use it, add reduc_index parameter.
23851         Make ready for BB reductions.
23852         (vect_create_epilog_for_reduction): Use get_reduction_op.
23853         (vectorizable_reduction): Init reduc_index to a valid value.
23854         Adjust vect_model_reduction_cost call.
23855         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
23856         operand for reduction defaults.  Add SAD_EXPR support.
23857         Assert we have a neutral op for SLP reductions.
23858         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
23859         walking pattern stmt ops only recurse to SSA names.
23861 2015-05-22  Richard Biener  <rguenther@suse.de>
23863         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
23864         assert with guard, remove check on detected reduction.
23865         (vect_recog_sad_pattern): Likewise.
23866         (vect_recog_widen_sum_pattern): Likewise.
23868 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23870         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
23871         __always_inline__ attribute.
23872         (vaesdq_u8): Likewise.
23873         (vaesmcq_u8): Likewise.
23874         (vaesimcq_u8): Likewise.
23875         (vsha1cq_u32): Likewise.
23876         (vsha1mq_u32): Likewise.
23877         (vsha1pq_u32): Likewise.
23878         (vsha1h_u32): Likewise.
23879         (vsha1su0q_u32): Likewise.
23880         (vsha1su1q_u32): Likewise.
23881         (vsha256hq_u32): Likewise.
23882         (vsha256h2q_u32): Likewise.
23883         (vsha256su0q_u32): Likewise.
23884         (vsha256su1q_u32): Likewise.
23885         (vmull_p64): Likewise.
23886         (vmull_high_p64): Likewise.
23888 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23890         * final.c (final_scan_insn): Don't check HAVE_peephole with the
23891         preprocessor.
23892         * output.h: Likewise.
23893         * genconfig.c (main): Alwways define HAVE_peephole.
23894         * genpeep.c: Don't emit checks of HAVE_peephole.
23896 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23898         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
23899         check HAVE_conditional_move with the preprocessor.
23901 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23903         * genconfig.c (main): Always define HAVE_conditional_move.
23904         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
23905         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
23906         is defined.
23908 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23910         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
23911         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
23912         and FRAME_POINTER_REGNUM with the preprocessor.
23914 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23916         * defaults.h: Add default for STACK_PUSH_CODE.
23917         * expr.c: Don't redefine STACK_PUSH_CODE.
23918         * recog.c: Likewise.
23920 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23922         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
23923         sched-deps.c: Use if instead of preprocessor checks with
23924         STACK_GROWS_DOWNWARD.
23926 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23928         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
23929         is defined.
23930         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
23931         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
23932         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
23933         * doc/tm.texi: Regenerate.
23935 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23937         PR target/66232
23938         * config/i386/constraints.md (Bg): New constraint for GOT memory
23939         operand.
23940         * config/i386/i386.md (*call_got_x32): New pattern.
23941         (*call_value_got_x32): Likewise.
23942         * config/i386/predicates.md (GOT_memory_operand): New predicate.
23944 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
23946         PR tree-optimization/66233
23947         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
23948         Simplify.
23950 2015-05-21  Jeff Law  <law@redhat.com>
23952         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
23953         than MULT for shadd sequences.
23955 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
23957         * alias.c (alias_stats): New static var.
23958         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
23959         (dump_alias_stats_in_alias_c): New function.
23960         * alias.h (dump_alias_stats_in_alias_c): Declare.
23961         * tree-ssa-alias.c (dump_alias_stats): Call it.
23963 2015-05-08  Michael Matz  <matz@suse.de>
23965         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
23966         to strided_p.
23967         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
23968         (STMT_VINFO_STRIDED_P): ... this.
23969         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
23970         (vect_verify_datarefs_alignment): Likewise.
23971         (vect_enhance_data_refs_alignment): Likewise.
23972         (vect_analyze_data_ref_access): Likewise.
23973         (vect_analyze_data_refs): Accept strided stores.
23974         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
23975         (vect_model_load_cost): Adjust for macro rename.
23976         (vectorizable_mask_load_store): Likewise.
23977         (vectorizable_load): Likewise.
23978         (vectorizable_store): Open code strided stores.
23980 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23982         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
23983         Document sqrt_insn.
23985 2015-05-21  Richard Biener  <rguenther@suse.de>
23987         PR c++/66211
23988         * match.pd: Guard pattern optimzing (int)(float)int
23989         conversions to apply only on GIMPLE.
23991 2015-05-21  Jeff Law  <law@redhat.com>
23993         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
23994         multiply-accumulate/shift-add insn generation.
23996 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
23998         PR target/54236
23999         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24000         operands[1] are the same.
24002 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
24004         PR middle-end/66221
24005         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24006         build_distinct_type_copy to copy bounds.
24008 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
24010         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24011         Change to unsigned int.
24013 2015-05-20  Jeff Law  <law@redhat.com>
24015         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24016         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24017         (pa_shadd_constant_p): Allow constants for shadd insns rather
24018         than valid scaling constants for memory addresses.
24019         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24020         * config/pa/predicates.md (mem_shadd_operand): New predicate.
24021         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24022         (shift-add insns using ASHIFT): New patterns.
24024 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
24026         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24027         feasible.
24028         (fix_up_fall_thru_edges): Likewise.
24029         (fix_crossing_conditional_branches): Likewise. Promote jump targets
24030         from to rtx_insn to rtx_code_label where feasible.
24031         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24032         gen_move_insn (returned type changed to rtx_insn).
24033         * builtins.c (expand_errno_check): Fix arguments of
24034         do_compare_rtx_and_jump (now expects rtx_code_label).
24035         (expand_builtin_acc_on_device): Likewise.
24036         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24037         invert_jump (now exprects rtx_jump_insn).
24038         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24039         (construct_init_block): Use rtx_code_label.
24040         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24041         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24042         calling redirect_jump.
24043         (patch_jump_insn): Likewise.
24044         (redirect_branch_edge): Likewise.
24045         (force_nonfallthru_and_redirect): Likewise.
24046         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24047         when suitable.
24048         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24049         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24050         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24051         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24052         to store the value retured by gen_label_rtx.
24053         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24054         rtx_jump_insn.
24055         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24056         (split_branches): Fix calls of redirect_jump.
24057         * dojump.c (jumpifnot): Promote argument type from rtx to
24058         rtx_code_label.
24059         (jumpifnot_1): Likewise.
24060         (jumpif): Likewise.
24061         (jumpif_1): Likewise.
24062         (do_jump_1): Likewise.
24063         (do_jump): Likewise. Use rtx_code_label when feasible.
24064         (do_jump_by_parts_greater_rtx): Likewise.
24065         (do_jump_by_parts_zero_rtx): Likewise.
24066         (do_jump_by_parts_equality_rtx): Likewise.
24067         (do_compare_rtx_and_jump): Likewise.
24068         * dojump.h: Update function prototypes.
24069         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24070         returns rtx_insn).
24071         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24072         rtx_jump_insn.
24073         (emit_label_before): Likewise.
24074         (emit_jump_insn_after_noloc): Likewise.
24075         (emit_jump_insn_after_setloc): Likewise.
24076         (emit_jump_insn_after): Likewise
24077         (emit_jump_insn_before_setloc): Likewise.
24078         (emit_jump_insn_before): Likewise.
24079         (emit_label_before): Promote return type to rtx_code_label.
24080         (emit_label): Likewise.
24081         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24082         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24083         gen_move_insn.
24084         (emit_stack_restore): Likewise.
24085         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24086         (do_cmp_and_jump): Likewise.
24087         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24088         from rtx to rtx_code_label.
24089         (gen_move_insn_uncast): New function.
24090         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24091         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24092         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24093         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24094         invert_jump_1 and redirect_jump_1.
24095         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24096         do_compare_rtx_and_jump.
24097         (expand_addsub_overflow): Likewise.
24098         (expand_neg_overflow): Likewise.
24099         (expand_mul_overflow): Likewise.
24100         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24101         return value of gen_move_insn.
24102         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24103         * loop-doloop.c (add_test): Use rtx_code_label.
24104         (doloop_modify): Likewise.
24105         (doloop_optimize): Likewise.
24106         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24107         * lra-constraints.c (emit_spill_move): Remove cast of value returned
24108         by gen_move_insn.
24109         (inherit_reload_reg): Add cast when calling dump_insn_slim.
24110         (split_reg): Likewise.
24111         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24112         gen_move_insn.
24113         * optabs.c (expand_binop_directly): Remove casts of values returned by
24114         maybe_gen_insn.
24115         (expand_unop_direct): Likewise.
24116         (expand_abs): Likewise.
24117         (maybe_emit_unop_insn): Likewise.
24118         (maybe_gen_insn): Promote return type to rtx_insn.
24119         * optabs.h: Update prototype of maybe_gen_insn.
24120         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24121         redundant cast.
24122         * recog.c (struct peep2_insn_data): Promote type of insn field to
24123         rtx_insn.
24124         (peep2_reinit_state): Use NULL instead of NULL_RTX.
24125         (peep2_attempt): Remove casts of insn in peep2_insn_data.
24126         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24127         * recog.h (struct insn_gen_fn): Promote return types of function
24128         pointers and operator ().from rtx to rtx_insn.
24129         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24130         (fill_eager_delay_slots): Likewise.
24131         (relax_delay_slots): Likewise.
24132         (make_return_insns): Likewise.
24133         (dbr_schedule): Likewise.
24134         (optimize_skips): Likewise.
24135         (reorg_redirect_jump): Likewise.
24136         (fill_slots_from_thread): Likewise.
24137         * reorg.h: Update prototypes.
24138         * resource.c (find_dead_or_set_registers): Use dyn_cast to
24139         rtx_jump_insn instead of check.  Use it's jump_target method.
24140         * rtl.h (rtx_jump_insn::jump_label): Define new method.
24141         (rtx_jump_insn::jump_target): Define new method.
24142         (rtx_jump_insn::set_jump_target): Define new method.
24143         * rtlanal.c (tablejump_p): Promote type of one local variable.
24144         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24145         (sched_analyze_insn): Likewise.
24146         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24147         (print_insn): Likewise.
24148         * stmt.c (label_rtx): Promote return type to rtx_insn.
24149         (force_label_rtx): Likewise.
24150         (jump_target_rtx): Define new function.
24151         (expand_label): Use it, get rid of one cast.
24152         (expand_naked_return): Promote rtx to rtx_code_label.
24153         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24154         (expand_case): Use rtx_code_label instread of rtx where feasible.
24155         (expand_sjlj_dispatch_table): Likewise.
24156         (emit_case_nodes): Likewise.
24157         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
24158         * store-motion.c (insert_store): Make use of new return type of
24159         gen_move_insn and remove a cast.
24160         (replace_store_insn): Likewise.
24162 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
24164         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24165         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24167 2015-05-20  Jeff Law  <law@redhat.com>
24169         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24170         dispose of the jump thread path when the jump threading
24171         opportunity is cancelled.
24173 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24175         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24176         when printing the caret character.
24178 2015-05-20  Marek Polacek  <polacek@redhat.com>
24180         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24182 2015-05-20  Marek Polacek  <polacek@redhat.com>
24184         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24185         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24186         * gimple-fold.c (canonicalize_bool): Likewise.
24187         (same_bool_result_p): Likewise.
24188         * tree-if-conv.c (parse_predicate): Likewise.
24190 2015-05-20  Marek Polacek  <polacek@redhat.com>
24192         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24193         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24195 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24197         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24198         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24199         values.
24201 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
24203         * config/mips/mips.h (micromips_globals): Declare.
24205 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
24207         * timevar.def (TV_INITIALIZE_RTL): New.
24208         * toplev.c (initialize_rtl): Use an auto_timevar to account this
24209         function's time to TV_INITIALIZE_RTL.
24211 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24213         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24214         gimple_build_nop calls.
24215         (chkp_find_bounds_for_elem): Likewise.
24216         (chkp_get_zero_bounds): Likewise.
24217         (chkp_get_none_bounds): Likewise.
24218         (chkp_get_bounds_by_definition): Likewise.
24219         (chkp_generate_extern_var_bounds): Likewise.
24220         (chkp_get_bounds_for_decl_addr): Likewise.
24221         (chkp_get_bounds_for_string_cst): Likewise.
24223 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
24225         PR tree-optimization/65447
24226         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24227         (dump_use, dump_uses): Support to dump sub use.
24228         (record_use): New parameters to support sub use.  Remove call to
24229         dump_use.
24230         (record_sub_use, record_group_use): New functions.
24231         (compute_max_addr_offset, split_all_small_groups): New functions.
24232         (group_address_uses, rewrite_use_address): New functions.
24233         (strip_offset): New declaration.
24234         (find_interesting_uses_address): Call record_group_use.
24235         (add_candidate): New assertion.
24236         (infinite_cost_p): Move definition forward.
24237         (add_costs): Check INFTY cost and return immediately.
24238         (get_computation_cost_at): Clear setup cost and dependent bitmap
24239         for sub uses.
24240         (determine_use_iv_cost_address): Compute cost for sub uses.
24241         (rewrite_use_address_1): Rename from old rewrite_use_address.
24242         (free_loop_data): Free sub uses.
24243         (tree_ssa_iv_optimize_loop): Call group_address_uses.
24245 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24246             Jim Wilson  <jim.wilson@linaro.org>
24248         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24249         new  fields loadv and storev.
24250         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24251         Initialize loadv and storev.
24252         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24253         (cortexa53_extra_costs): Likewise.
24254         (cortexa57_extra_costs): Likewise.
24255         (xgene1_extra_costs): Likewise.
24256         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24257         rtx_costs.
24259 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24261         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24262          storev.
24263         (cortexa8_extra_costs): Likewise.
24264         (cortexa5_extra_costs): Likewise.
24265         (cortexa7_extra_costs): Likewise.
24266         (cortexa12_extra_costs): Likewise.
24267         (cortexa15_extra_costs): Likewise.
24268         (v7m_extra_costs): Likewise.
24270 2015-05-20  Jeff Law  <law@redhat.com>
24272         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24273         instead of open-coded version.  Also delete the jump thread created
24274         within this function.
24276 2015-05-20  Alan Modra  <amodra@gmail.com>
24278         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24279         stack adjusting insn.  Formatting.
24280         (rs6000_emit_prologue): Track stack adjusting insn, and use of
24281         r12.  If possible, emit first -fsplit-stack arg pointer insn
24282         before stack adjust.  Don't use r12 to save cr if split-stack.
24284 2015-05-20  Alan Modra  <amodra@gmail.com>
24286         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24287         Define.
24288         (rs6000_supports_split_stack): New function.
24289         * config/rs6000/rs6000.c (machine_function): Add
24290         split_stack_arg_pointer.
24291         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24292         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24293         rather than virtual_incoming_args_rtx.
24294         (rs6000_va_start): Likewise.
24295         (split_stack_arg_pointer_used_p): New function.
24296         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24297         (morestack_ref): New var.
24298         (gen_add3_const, rs6000_expand_split_stack_prologue,
24299         rs6000_internal_arg_pointer, rs6000_live_on_entry,
24300         rs6000_split_stack_space_check): New functions.
24301         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24302         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24303         (UNSPECV_SPLIT_STACK_RETURN): Define.
24304         (split_stack_prologue, load_split_stack_limit,
24305         load_split_stack_limit_di, load_split_stack_limit_si,
24306         split_stack_return, split_stack_space_check): New expands and insns.
24307         * config/rs6000/rs6000-protos.h
24308         (rs6000_expand_split_stack_prologue): Declare.
24309         (rs6000_split_stack_space_check): Declare.
24311 2015-05-20  Alan Modra  <amodra@gmail.com>
24313         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24314         (direct_return): Test vrsave_size rather than vrsave_mask.
24315         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
24316         (rs6000_emit_epilogue): Likewise.
24318 2015-05-20  Alan Modra  <amodra@gmail.com>
24320         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24321         when not saving registers.
24322         (debug_stack_info): Adjust to omit printing unused offsets,
24323         as before.
24324         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24325         expression.
24327 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24329         PR c++/65835
24330         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24331         value_type to const char *.
24333 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
24335         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24336         to build a biarch toolchain again.
24338 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
24340         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24341         or implicit declarations.
24342         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24343         into it.
24344         (get_odr_type): Check type has linkage before adding bases.
24345         (register_odr_type): Check that type has linkage before adding it.
24346         (type_known_to_have_no_deriavations_p): Rename to ..
24347         (type_known_to_have_no_derivations_p): This one.
24348         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24349         (type_known_to_have_no_derivations_p): This one.
24350         * ipa-polymorphic-call.c
24351         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24352         type has linkage.
24354 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24356         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24357         (layout_type): Use RECORD_OR_UNION_TYPE_P.
24359 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24361         * config/s390/s390.c (s390_vector_bool_type_p): New function.
24362         (s390_invalid_binary_op): New function.
24363         (TARGET_INVALID_BINARY_OP): Define macro.
24365 2015-05-19  David Sherwood  <david.sherwood@arm.com>
24367         * loop-invariant.c (create_new_invariant): Don't calculate address cost
24368         if mode is not a scalar integer.
24369         (get_inv_cost): Increase computational cost for unused invariants.
24371 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24373         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
24374         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
24375         * config/s390/s390-builtin-types.def: New file.
24376         * config/s390/s390-builtins.def: New file.
24377         * config/s390/s390-builtins.h: New file.
24378         * config/s390/s390-c.c: New file.
24379         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24380         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24381         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24382         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24383         prototypes.
24384         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24385         Include.
24386         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24387         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24388         variable definitions.
24389         (s390_const_operand_ok): New function.
24390         (s390_expand_builtin): Rewrite.
24391         (s390_init_builtins): New function.
24392         (s390_handle_vectorbool_attribute): New function.
24393         (s390_attribute_table): Add s390_vector_bool attribute.
24394         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24395         (s390_branch_condition_mask): Generate masks for new modes.
24396         (s390_expand_vec_compare_cc): New function.
24397         (s390_mangle_type): Add mangling for vector bool types.
24398         (enum s390_builtin): Remove.
24399         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24400         efpc builtins.
24401         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24402         s390_cpu_cpp_builtins.
24403         (REGISTER_TARGET_PRAGMAS): New macro.
24404         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24405         (insn_cmp mode attribute): Add new CC modes.
24406         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24407         (lcbb): New pattern definition.
24408         * config/s390/s390intrin.h: Include vecintrin.h.
24409         * config/s390/t-s390: New file.
24410         * config/s390/vecintrin.h: New file.
24411         * config/s390/vector.md: Include vx-builtins.md.
24412         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24413         support.
24415 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24417         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24418         CCVFHE.
24419         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24420         (s390_select_ccmode): Likewise.
24421         (s390_canonicalize_comparison): Swap operands if necessary.
24422         (s390_expand_vec_compare_scalar): Expand DFmode compare using
24423         single element vector instructions.
24424         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24425         (s390_branch_condition_mask): Generate CC masks for the new modes.
24426         * config/s390/s390.md (v0, vf, vd): New mode attributes.
24427         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24428         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24429         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24430         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24431         (*extend<DSF:mode><BFP:mode>2): New insn definition.
24432         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24433         (extend<DSF:mode><BFP:mode>2): Turn into expander.
24434         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24435         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24436         (sqrt<mode>2): Add vector instruction.
24438 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24440         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24441         constraints.
24442         * config/s390/predicates.md (const0_operand, constm1_operand)
24443         (constable_operand): Accept vector operands.
24444         * config/s390/s390-modes.def: Add supported vector modes.
24445         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
24446         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
24447         (s390_bytemask_vector_p, s390_expand_vec_strlen)
24448         (s390_expand_vec_compare, s390_expand_vcond)
24449         (s390_expand_vec_init): Add prototypes.
24450         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
24451         (s390_vector_mode_supported_p): New function.
24452         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
24453         (s390_contiguous_bitmask_vector_p): New function.
24454         (s390_bytemask_vector_p): New function.
24455         (s390_split_ok_p): Vector regs don't work either.
24456         (regclass_map): Add VEC_REGS.
24457         (s390_legitimate_constant_p): Handle vector constants.
24458         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
24459         (legitimate_reload_vector_constant_p): New function.
24460         (s390_preferred_reload_class): Handle CONST_VECTOR.
24461         (s390_reload_symref_address):  Likewise.
24462         (s390_secondary_reload): Vector memory instructions only support
24463         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
24464         (s390_emit_ccraw_jump): New function.
24465         (s390_expand_vec_strlen): New function.
24466         (s390_expand_vec_compare): New function.
24467         (s390_expand_vcond): New function.
24468         (s390_expand_vec_init): New function.
24469         (s390_dwarf_frame_reg_mode): New function.
24470         (print_operand): Handle addresses with 'O' and 'R' constraints.
24471         (NR_C_MODES, constant_modes): Add vector modes.
24472         (s390_output_pool_entry): Handle vector constants.
24473         (s390_hard_regno_mode_ok): Handle vector registers.
24474         (s390_class_max_nregs): Likewise.
24475         (s390_cannot_change_mode_class): New function.
24476         (s390_invalid_arg_for_unprototyped_fn): New function.
24477         (s390_function_arg_vector): New function.
24478         (s390_function_arg_float): Remove size variable.
24479         (s390_pass_by_reference): Handle vector arguments.
24480         (s390_function_arg_advance): Likewise.
24481         (s390_function_arg): Likewise.
24482         (s390_return_in_memory): Vector values are returned in a VR if
24483         possible.
24484         (s390_function_and_libcall_value): Handle vector arguments.
24485         (s390_gimplify_va_arg): Likewise.
24486         (s390_call_saved_register_used): Consider the arguments named.
24487         (s390_conditional_register_usage): Disable v16-v31 for non-vec
24488         targets.
24489         (s390_preferred_simd_mode): New function.
24490         (s390_support_vector_misalignment): New function.
24491         (s390_vector_alignment): New function.
24492         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
24493         (TARGET_VECTOR_MODE_SUPPORTED_P)
24494         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
24495         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24496         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
24497         (TARGET_VECTOR_ALIGNMENT): Define target macro.
24498         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
24499         (FIRST_PSEUDO_REGISTER): Increase value.
24500         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
24501         (VECTOR_REG_P): Define macros.
24502         (FIXED_REGISTERS, CALL_USED_REGISTERS)
24503         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
24504         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
24505         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
24506         Add vector registers.
24507         (CANNOT_CHANGE_MODE_CLASS): Call C function.
24508         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
24509         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
24510         memory.
24511         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
24512         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
24513         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
24514         (VR*_REGNUM): New constants.
24515         (ALL): New mode iterator.
24516         (INTALL): Remove mode iterator.
24517         Include vector.md.
24518         (movti): Implement TImode moves for VRs.
24519         Disable TImode splitter for VR targets.
24520         Implement splitting TImode GPR<->VR moves.
24521         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
24522         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
24523         reload<mode>_la_in, reload<mode>_la_out.
24524         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
24525         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
24526         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
24527         (mov<mode> SF SD): Prefer lder, lde for loading.
24528         Add lrl and strl instructions.
24529         Add vector instructions.
24530         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
24531         Call s390_expand_vec_strlen on z13.
24532         (*cc_to_int): Change predicate to nonimmediate_operand.
24533         (addti3): Rename to *addti3.  New expander.
24534         (subti3): Rename to *subti3.  New expander.
24535         * config/s390/vector.md: New file.
24537 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24539         * common/config/s390/s390-common.c (processor_flags_table): Add
24540         z13.
24541         * config.gcc: Add z13.
24542         * config/s390/s390-opts.h (enum processor_type): Add
24543         PROCESSOR_2964_Z13.
24544         * config/s390/s390.c (s390_adjust_priority): Check for
24545         PROCESSOR_2964_Z13.
24546         (s390_reorg): Likewise.
24547         (s390_sched_reorder): Likewise.
24548         (s390_sched_variable_issue): Likewise.
24549         (s390_loop_unroll_adjust): Likewise.
24550         (s390_option_override): Likewise. Default to -mvx when available.
24551         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
24552         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
24553         (TARGET_VX_ABI): Define macros.
24554         macros.
24555         (TARGET_DEFAULT): Add MASK_OPT_VX.
24556         * config/s390/s390.md ("cpu" attribute): Add z13.
24557         ("cpu_facility" attribute): Add vec.
24558         * config/s390/s390.opt (processor_type): Add z13.
24559         (mvx): New options.
24560         * doc/invoke.texi: Add z13 option for -march.
24562 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24564         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
24565         mode check to make sure that only scalar integer values are
24566         accepted.
24568 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
24570         * tree.c (verify_type_variant): Fix #undef.
24571         (gimple_canonical_types_compatible_p): Move here from lto.c
24572         (verify_type): Verify TYPE_CANONICAL compatibility.
24573         * tree.h (gimple_canonical_types_compatible_p): Declare.
24575 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
24577         PR middle-end/66199
24578         * tree.h (OMP_TEAMS_COMBINED): Define.
24579         * gimplify.c (enum gimplify_omp_var_data): Add
24580         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
24581         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
24582         (omp_notice_variable): Accept both ORT_TEAMS
24583         and ORT_COMBINED_TEAMS.  Don't recurse if
24584         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
24585         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
24586         GOVD_FIRSTPRIVATE.
24587         (omp_no_lastprivate): New function.
24588         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
24589         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
24590         notice_outer and set appropriate bits, otherwise make
24591         sure default(none) combined constructs won't complain.
24592         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
24593         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
24594         omp_no_lastprivate either remove the clause or turn it
24595         into OMP_CLAUSE_PRIVATE.
24596         (gimplify_omp_for): Fix up handling of implicit
24597         lastprivate or linear iterators.
24598         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
24599         ORT_COMBINED_TEAMS.
24600         * omp-low.c (lower_omp_for_lastprivate): For combined
24601         for simd use fd.loop.n2 from the for rather than simd.
24603 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24605         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
24606         instead of gen_rtx_raw_REG.
24607         (cris_expand_epilogue): Likewise.
24608         * config/microblaze/microblaze.c (microblaze_classify_address):
24609         Likewise.
24610         * config/sparc/sparc.md: Likewise.
24612 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
24614         * config/alpha/alpha.c (alpha_legitimize_reload_address)
24615         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
24616         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
24617         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
24618         Use CASE_CONST_SCALAR_INT.
24619         (print_operand) <case 'M'>: Use mode_width_operand to check the
24620         value of the constant.
24621         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
24622         * config/alpha/predicates.md (input_operand): Use general_operand
24623         instead of match_code as operand check.
24624         (symbolic_operand): Use match_code with subexpression digits.
24625         * config/alpha/constraints.md (Q): Ditto.
24627 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24629         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
24631 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24633         * config/s390/s390.c (s390_secondary_reload): Fix check for
24634         load/store relative.
24636 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24638         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
24639         alternative_mask to uint64_t.
24641 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
24643         PR tree-optimization/66187
24644         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
24645         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
24646         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
24648 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
24650         * diagnostic.c (diagnostic_report_current_module): Strengthen
24651         local "new_map" from const line_map * to
24652         const line_map_ordinary *.
24653         * genmatch.c (error_cb): Likewise for local "map".
24654         (output_line_directive): Likewise for local "map".
24655         * input.c (expand_location_1): Likewise for local "map".
24656         Pass NULL rather than &map to
24657         linemap_unwind_to_first_non_reserved_loc, since the value is never
24658         read from there, and the value written back not read from here.
24659         (is_location_from_builtin_token): Strengthen local "map" from
24660         const line_map * to const line_map_ordinary *.
24661         (dump_location_info): Strengthen locals "map" from
24662         line_map *, one to const line_map_ordinary *, the other
24663         to const line_map_macro *.
24664         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
24665         const line_map * to const line_map_macro *.
24666         (maybe_unwind_expanded_macro_loc): Add a call to
24667         linemap_check_macro when writing to the "map" field of the
24668         loc_map_pair.
24669         Introduce local const line_map_ordinary * "ord_map", using it in
24670         place of "map" in the part of the function where we know we have
24671         an ordinary map.  Strengthen local "m" from const line_map * to
24672         const line_map_ordinary *.
24674 2015-05-19  Nick Clifton  <nickc@redhat.com>
24676         PR target/66156
24677         * config/msp430/msp430.md (zero_extendhisi2): Add support for
24678         separate source and destination registers.
24680 2015-05-19  Richard Biener  <rguenther@suse.de>
24682         PR tree-optimization/66165
24683         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
24684         for no load permutation.
24686         PR tree-optimization/66185
24687         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
24688         when building the SLP node from scalars.
24690 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24691             Tristan Gingold  <gingold@adacore.com>
24693         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
24694         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
24695         (expand_stack_restore): Call record_new_stack_level.
24696         (expand_stack_save): Do not call do_pending_stack_adjust.
24697         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
24698         * calls.c (expand_call): Call record_new_stack_level for alloca.
24699         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
24700         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
24701         (update_sjlj_context): New global function.
24702         * except.h (update_sjlj_context): Declare.
24703         * explow.c (record_new_stack_level): New global function.
24704         (allocate_dynamic_stack_space): Call record_new_stack_level.
24705         * explow.h (record_new_stack_level): Declare.
24706         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
24707         * cfgrtl.c (duplicate_insn_chain): Likewise.
24709 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24711         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
24712         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
24713         STACK_GROWS_DOWNWARD as normal if.
24714         (expand_call): Likewise.
24716 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
24718         PR target/54236
24719         * config/sh/sh.md (*round_int_even): New insn_and_split and
24720         accompanying new unnamed split.
24722 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24724         * bitmap.c (bitmap_set_range): Handle count==1 specially.
24725         (bitmap_clear_range): Likewise.
24726         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
24727         bitmap_set_range unconditionally.
24728         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24729         * df-scan.c (df_mark_reg): Likewise.
24730         * haifa-sched.c (setup_ref_regs): Likewise.
24731         * sched-rgn.c (update_live_1): Likewise.
24733 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24735         * regs.h (END_HARD_REGNO): Delete.
24736         (END_REGNO): Move to...
24737         * rtl.h: ...here.
24738         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
24739         * caller-save.c (mark_set_regs): Likewise.
24740         * combine.c (move_deaths, distribute_notes): Likewise.
24741         * cse.c (invalidate, invalidate_for_call): Likewise.
24742         * df-scan.c (df_ref_record): Likewise.
24743         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
24744         (record_last_reg_set_info): Likewise.
24745         * reg-stack.c (convert_regs_exit): Likewise.
24746         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
24747         * resource.c (update_live_status): Likewise.
24748         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
24750 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24752         * rtl.h (reg_info): Add an nregs field.
24753         (REG_NREGS): Use it.
24754         (SET_REGNO_RAW): Delete.
24755         (set_regno_raw): New function.
24756         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
24757         (END_REGNO): Redefine in terms of REG_NREGS.
24758         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
24759         SET_REGNO_RAW.
24760         * emit-rtl.c (set_mode_and_regno): Likewise.
24761         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
24762         instead of SET_REGNO_RAW.
24764 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24766         * rtl.h (PUT_MODE_RAW): New macro.
24767         (PUT_REG_NOTE_KIND): Use it.
24768         (set_mode_and_regno): Declare.
24769         (gen_raw_REG): Change regno to "unsigned int".
24770         (gen_rtx_REG): Change "unsigned" to "unsigned int".
24771         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
24772         use set_mode_and_regno to change the mode of registers.
24773         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
24774         * emit-rtl.c (set_mode_and_regno): New function.
24775         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
24776         * caller-save.c (reg_save_code): Use set_mode_and_regno.
24777         * expr.c (init_expr_target): Likewise.
24778         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24779         * postreload.c (reload_cse_simplify_operands): Likewise.
24781 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24783         * caller-save.c (init_caller_save): Use word_mode and
24784         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
24785         * expr.c (init_expr_target): Likewise.
24786         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24787         * postreload.c (reload_cse_regs_1): Likewise.
24789 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24791         * rtl.def (REG): Change format to "r".
24792         * rtl.h (rtunion): Remove rt_reg.
24793         (reg_info): New structure.
24794         (rtx_def): Add reg field to main union.
24795         (X0REGATTR): Delete.
24796         (REG_CHECK): New macro.
24797         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
24798         * rtl.c (rtx_format): Document "r".
24799         (rtx_code_size): Handle REG specially.
24800         * gengenrtl.c (special_format): Return true for formats
24801         that include 'r'.
24802         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
24803         Deal with REG_ATTRS after the field loop.
24804         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
24805         * expmed.c (init_expmed): Call gen_raw_REG instead of
24806         gen_rtx_raw_REG.
24807         * expr.c (init_expr_target): Likewise.
24808         * regcprop.c (maybe_mode_change): Likewise.
24809         * varasm.c (make_decl_rtl): Likewise.
24810         * final.c (leaf_renumber_regs_insn): Return early after
24811         handling REGs.
24812         * genemit.c (gen_exp): Handle 'r' fields.
24813         * genpeep.c (match_rtx): Likewise.
24814         * gensupport.c (subst_pattern_match): Likewise.
24815         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
24816         (alter_constraints, subst_dup): Likewise.
24817         * read-rtl.c (read_rtx_code): Likewise.
24818         * print-rtl.c (print_rtx): Likewise.
24819         * genrecog.c (find_operand, find_matching_operand): Likewise.
24820         (validate_pattern, match_pattern_2): Likewise.
24821         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
24822         (rtx_test::regno_field): New function.
24823         (operator ==, safe_to_hoist_p, transition_parameter_type)
24824         (parameter_type_string, print_parameter_value)
24825         (print_nonbool_test, print_test): Handle new enum values.
24826         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
24827         * lra-constraints.c (operands_match_p): Likewise.
24829 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24831         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
24832         Change type of new_regno to unsigned int.
24833         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
24834         new_regno to unsigned int.
24835         (df_ref_change_reg_with_loc): Remove old_regno parameter.
24836         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
24837         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
24838         (SET_REGNO_RAW): Add space after ",".
24840 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24842         * rtl.h (REG_NREGS): New macro
24843         * alias.c (record_set): Use it.
24844         * cfgcleanup.c (mark_effect): Likewise.
24845         * combine.c (likely_spilled_retval_1): Likewise.
24846         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
24847         (move_deaths, distribute_notes): Likewise.
24848         * cselib.c (cselib_record_set): Likewise.
24849         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24850         * df-scan.c (df_mark_reg): Likewise.
24851         * dse.c (look_for_hardregs): Likewise.
24852         * dwarf2out.c (reg_loc_descriptor): Likewise.
24853         (multiple_reg_loc_descriptor): Likewise.
24854         * expr.c (write_complex_part, read_complex_part): Likewise.
24855         (emit_move_complex): Likewise.
24856         * haifa-sched.c (setup_ref_regs): Likewise.
24857         * ira-lives.c (mark_hard_reg_live): Likewise.
24858         * lra.c (lra_set_insn_recog_data): Likewise.
24859         * mode-switching.c (create_pre_exit): Likewise.
24860         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
24861         (reload_combine_recognize_pattern): Likewise.
24862         (reload_combine_note_use, move2add_record_mode): Likewise.
24863         (reload_cse_move2add): Likewise.
24864         * reg-stack.c (subst_stack_regs_pat): Likewise.
24865         * regcprop.c (kill_value, copy_value): Likewise.
24866         (copyprop_hardreg_forward_1): Likewise.
24867         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
24868         (build_def_use): Likewise.
24869         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
24870         (deps_analyze_insn): Likewise.
24871         * sched-rgn.c (check_live_1, update_live_1): Likewise.
24872         * sel-sched.c (count_occurrences_equiv): Likewise.
24873         * valtrack.c (dead_debug_insert_temp): Likewise.
24875 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24877         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
24878         * dse.c (note_add_store): Likewise.
24879         * ira-lives.c (mark_hard_reg_dead): Likewise.
24880         * loop-invariant.c (mark_reg_store): Likewise.
24881         (mark_reg_death): Likewise.
24882         * postreload.c (reload_combine): Likewise.
24883         (reload_combine_note_store): Likewise.
24884         (reload_combine_note_use): Likewise.
24885         * recog.c (peep2_reg_dead_p): Likewise.
24887 2015-05-19  Alan Modra  <amodra@gmail.com>
24889         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
24890         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
24891         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
24892         unused predicates.
24893         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
24894         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
24895         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
24896         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
24898 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
24900         * config/mips/mips.md (JOIN_MODE): New mode iterator.
24901         (join2_load_Store<JOIN_MODE:mode>): New pattern.
24902         (join2_loadhi): Likewise.
24903         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
24904         load-load and store-stores.
24905         * config/mips/mips.opt (mload-store-pairs): New option.
24906         (TARGET_LOAD_STORE_PAIRS): New macro.
24907         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
24908         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
24909         * config/mips/mips.c (mips_load_store_bonding_p): New function.
24911 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
24913         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
24914         explicit swaps.
24915         * dojump.c (do_compare_rtx_and_jump): Likewise.
24916         * expmed.c (emit_store_flag_1): Likewise.
24917         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
24918         * final.c (sprint_ul): Use std::reverse for reversing a string.
24919         * fold-const.c (extract_muldiv_1): Use std::swap.
24920         * genmodes.c (emit_mode_int_n): Likewise.
24921         * ifcvt.c (dead_or_predicable): Likewise.
24922         * ira-build.c (ira_merge_live_ranges): Likewise.
24923         (swap_allocno_copy_ends_if_necessary): Likewise.
24924         * ira.c (ira_setup_alts): Likewise.
24925         * loop-iv.c (iv_analyze_expr): Likewise.
24926         (implies_p): Likewise.
24927         (canon_condition): Likewise.
24928         * lra-constraints.c (swap_operands): Likewise.
24929         * lra-lives.c (lra_merge_live_ranges): Likewise.
24930         * omega.c (swap): Remove.
24931         (bswap): Remove.
24932         (omega_unprotect_1): Use std::swap.
24933         (omega_solve_geq): Likewise.
24934         * optabs.c (expand_binop_directly): Likewise.
24935         (expand_binop): Likewise.
24936         (emit_conditional_move): Likewise.
24937         (emit_conditional_add): Likewise.
24938         * postreload.c (reload_cse_simplify_operands): Likewise.
24939         * reg-stack.c (emit_swap_insn): Likewise.
24940         (swap_to_top): Likewise.
24941         (compare_for_stack_reg): Likewise.
24942         (subst_asm_stack_regs): Likewise.
24943         * reload.c (find_reloads): Likewise.
24944         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
24945         * sel-sched.c (invoke_reorder_hooks): Likewise.
24946         (create_block_for_bookkeeping): Likewise.
24947         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
24948         (lambda_matrix_right_hermite): Use std::swap.
24949         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
24950         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
24951         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
24952         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
24953         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
24954         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
24955         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
24956         * tree-vrp.c (compare_ranges): Likewise.
24957         * var-tracking.c (add_with_sets): Likewise.
24958         (vt_find_locations): Likewise.
24960 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
24962         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
24963         pie executables.
24964         (FBSD_ENDFILE_SPEC): Likewise.
24965         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
24966         config/freebsd-spec.h.
24967         (ENDFILE_SPEC): Likewise.
24969 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
24970             Richard Henderson  <rth@redhat.com>
24972         PR target/57032
24973         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
24974         Check for a memory location that is not a reference (using an AND)
24975         to an unaligned location here.
24976         * config/alpha/predicates.md (normal_memory_operand): Remove.
24978 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
24980         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
24981         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
24983 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
24985         * config/mips/mips.c (micromips_globals): New variable.
24986         (mips_set_compression_mode): Save and reinitialize target-dependent
24987         state for microMIPS.
24989 2015-05-18  Martin Liska  <mliska@suse.cz>
24991         * dbgcnt.def: Add new counter.
24992         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
24994 2015-05-18  Martin Liska  <mliska@suse.cz>
24996         * dbgcnt.def: Sort counters.
24997         * opts.c (common_handle_option): Do not compile if
24998         -fdbg-cnt-list is enabled.
25000 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25002         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25003         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
25004         address operator to va_list operand.
25005         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25006         unconditionally.
25007         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25008         operand.
25009         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25010         * config/s390/s390.c (s390_gimplify_va_arg): Same.
25011         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25013 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25015         * tree-ssa-tail-merge.c: Fix whitespace.
25017 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
25019         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25020         cortex-a17, and cortex-a17.cortex-a7.
25022 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
25024         PR target/54236
25025         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25027 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
25029         PR target/66174
25030         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25031         QImode inner modes for TARGET_AVX512BW.  Force mask operand
25032         to a register for AVX512F modes.
25034 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25036         * toplev.c (emit_debug_global_declarations): Do not output debug info
25037         when doing slim LTO objects.
25039 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25041         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25042         odr_types_equivalent_p): Declare.
25043         (odr_type_p): Use gcc_checking_assert.
25044         (type_in_anonymous_namespace_p) Declare.
25045         (type_with_linkage_p): Declare.
25046         * common.opt (Wlto-type-mismatch): New warning.
25047         * ipa-devirt.c (compound_type_base): New function.
25048         (odr_or_derived_type_p): New function.
25049         (odr_types_equivalent_p): New function.
25050         (add_type_duplicate): Simplify.
25051         (type_with_linkage_p): Add hack to prevent false positives on C types
25052         (type_in_anonymous_namespace_p): Likewise.
25053         * tree.c (need_assembler_name_p): Use type_with_linkage.
25054         * tree.h (type_in_anonymous_namespace_p): Remove.
25055         * doc/invoke.texi (-Wlto-type-mismatch): Document
25057 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25059         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25060         (verify_type): Verify STRING_FLAG.
25062 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25064         PR fortran/44054
25065         * tree-pretty-print.c (percent_K_format): Replace locus pointer
25066         with accessor function.
25067         * tree-diagnostic.c (diagnostic_report_current_function): Use
25068         diagnostic_location function.
25069         (maybe_unwind_expanded_macro_loc): Likewise.
25070         (virt_loc_aware_diagnostic_finalizer): Likewise.
25071         (default_tree_printer): Replace locus pointer with accessor function.
25072         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25073         (diagnostic_set_info_translated): Initialize second location.
25074         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25075         (diagnostic_show_locus): Handle two locations. Call
25076         diagnostic_print_caret_line.
25077         (diagnostic_print_caret_line): New.
25078         (default_diagnostic_starter): Use diagnostic_location function.
25079         (diagnostic_report_diagnostic): Use diagnostic_location function.
25080         (verbatim): Do not set text.locus.
25081         * diagnostic.h (struct diagnostic_info): Remove location field.
25082         (struct diagnostic_context): Make caret_chars an array of two.
25083         (diagnostic_location): New inline.
25084         (diagnostic_expand_location): Handle two locations.
25085         (diagnostic_same_line): New inline.
25086         (diagnostic_print_caret_line): Declare.
25087         (CARET_LINE_MARGIN): New constant.
25088         * pretty-print.c (pp_printf): Do not set text.locus.
25089         (pp_verbatim): Do not set text.locus.
25090         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25091         (struct text_info): Replace locus pointer with locations
25092         array. Add accessor functions.
25094 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
25095             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25097         PR target/65768
25098         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25099         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25100          large constants in register instead of splitting them.
25102 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
25104         PR target/66140
25105         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25106         replacements in memory addresses.
25107         (get_unaligned_address): Ditto.
25109 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
25111         * config/ft32/*: New files for FT32 port.
25112         * doc/install.texi: Add FT32 information.
25113         * doc/invoke.texi: Add FT32 information.
25114         * doc/md.texi: Add FT32 information.
25115         * doc/contrib.texi: Self added.
25117 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
25119         PR tree-optimization/64454
25120         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25121         (-1 - A -> ~A): Remove unnecessary condition.
25123 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
25125         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25126         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25127         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25129 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
25131         * ipa-chkp.h (chkp_wrap_function): New.
25132         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25133         (chkp_wrap_function_name): New.
25134         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25135         to get wrapper name.
25136         * lto-cgraph.c: Include ipa-chkp.h.
25137         (input_cgraph_1): Avoid alias chain for wrappers.
25139 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25141         PR middle-end/66134
25142         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25143         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25145 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25147         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25148         (AARCH64_FL_SLOWMUL): Delete.
25149         (AARCH64_FL_CRC): Redefine to 1<<3.
25150         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25152 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25154         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25155         casting.
25157 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25159         * config/alpha/alpha.md (extendqidi2): Use general_operand
25160         instead of some_operand for operand[1] predicate.
25161         (extendhidi2): Ditto.
25162         (cbranchdi4): Use general_operand instead of some_operand
25163         for operand[1] and operands[2] predicates.
25164         (cstoredi4): Ditto.
25165         * config/alpha/predicates.md (some_operand): Remove unused predicate.
25166         (some_ni_operand): Ditto.
25168 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25170         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25171         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
25172         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25173         low part of the constant using alpha_emit_set_const_1.
25174         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25176 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
25178         * varasm.c (output_constant_pool_1): Pass down alignment from
25179         constant pool entry's descriptor to output_constant_pool_2.
25180         (output_object_block): Add comment prior to call to
25181         output_constant_pool_1.
25183 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
25185         PR rtl-optimization/65862
25186         * target.def (ira_change_pseudo_allocno_class): New hook.
25187         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25188         value of the hook.
25189         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25190         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25191         hook.
25192         * ira-costs.c (find_costs_and_classes): Call the hook and change
25193         classes when it is necessary.
25194         * doc/tm.texi: Update.
25196 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
25198         * config/i386/i386.md (sibcall_memory): Check that register with
25199         callee address is not also used as one of the arguments, instead
25200         of checking that it is not live after the sibcall.
25201         (sibcall_pop_memory): Ditto.
25202         (sibcall_value_memory): Ditto.
25203         (sibcall_value_pop_memory): Ditto.
25205 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
25207         * generic-match-head.c (types_match): Handle non-types.
25208         * gimple-match-head.c (types_match): Likewise.
25209         * match.pd: Remove unnecessary TREE_TYPE for types_match.
25211 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
25213         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25214         (csneg3<mode>_insn): Enable expansion of pattern.
25216 2015-05-14  Nick Clifton  <nickc@redhat.com>
25218         * config/rl78/rl78.c (rl78_select_section): Select the correct
25219         default section based upon the category of the decl.
25221 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
25223         PR rtl-optimization/30967
25224         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25225         destination mode for the cost of scc patterns.
25227 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
25229         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25230         using SWIM248 mode iterator.
25231         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25232         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
25233         for operand[2] constraint.
25234         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25236 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
25238         PR middle-end/66133
25239         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25240         make sure it is never noreturn, even when the task body does not
25241         return.
25242         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25243         right before GIMPLE_OMP_RETURN.
25244         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25245         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
25246         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25248 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25250         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25251         * tree-ssa-math-opts.c: Include params.h
25252         (pow_synth_sqrt_info): New struct.
25253         (representable_as_half_series_p): New function.
25254         (get_fn_chain): Likewise.
25255         (print_nested_fn): Likewise.
25256         (dump_fractional_sqrt_sequence): Likewise.
25257         (dump_integer_part): Likewise.
25258         (expand_pow_as_sqrts): Likewise.
25259         (gimple_expand_builtin_pow): Use above to attempt to expand
25260         pow as series of square roots.  Removed now unused variables.
25262 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
25264         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25265         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25266         Remove *p0 and *p1 arguments.  Rewrite function.
25267         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25268         (alpha_split_const_mov): Update calls to alpha_extract_integer and
25269         alpha_emit_set_long_const.
25270         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25271         (alpha_output_mi_thunk_osf): Ditto.
25272         * config/alpha/alpha.md (movti): Do not check operands[1]
25273         for CONST_DOUBLE.
25275 2015-05-13  Richard Biener  <rguenther@suse.de>
25277         PR tree-optimization/66129
25278         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25279         commutative.
25280         (vect_schedule_slp_instance): Fix typo.
25282 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
25284         * common.opt (fdump-internal-locations): New option.
25285         * input.c: Include diagnostic-core.h.
25286         (get_end_location): New function.
25287         (write_digit): New function.
25288         (write_digit_row): New function.
25289         (dump_location_range): New function.
25290         (dump_labelled_location_range): New function.
25291         (dump_location_info): New function.
25292         * input.h (dump_location_info): New prototype.
25293         * toplev.c (compile_file): Handle flag_dump_locations.
25295 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
25297         * gimple-expr.h (is_gimple_constant): Reorder.
25298         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25300 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
25302         * combine.c (simplify_set): When generating a CC set, if the
25303         source already is in the correct mode, do not wrap it in a
25304         compare.  Simplify the rest of that code.
25306 2015-05-13  Richard Biener  <rguenther@suse.de>
25308         PR tree-optimization/66123
25309         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25310         a taken edge.
25312 2015-05-13  Richard Biener  <rguenther@suse.de>
25314         PR middle-end/66110
25315         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25316         specially.
25317         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25319 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
25321         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25322         * aclocal.m4: Regenerated with automake-1.11.6.
25324 2015-05-13  Tom de Vries  <tom@codesourcery.com>
25326         PR tree-optimization/66010
25327         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25328         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25329         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
25330         and rval based on do_deref.
25332 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25334         PR target/65103
25335         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25336         link time constants into adress expressions and therefore set
25337         their cost to 0.
25339 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
25341         PR target/66112
25342         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25343         Use SWI248 iterator instead of SWI.
25344         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
25345         Use eq_attr "alternative" "0" instead of match_test in
25346         length_immediate attribute computation.
25347         (*mulvhi4, *mulvhi4_1): New define_insns.
25349         PR target/66112
25350         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25351         SIGNED to get precision of non-negative value.
25353 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25355         PR target/66048
25356         * function.c (diddle_return_value_1): Process bounds first.
25357         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25358         register.
25360 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25362         PR rtl-optimization/64616
25363         * loop-invariant.c (can_move_invariant_reg): New.
25364         (move_invariant_reg): Call above new function to decide whether
25365         instruction can just be moved, skipping creation of temporary
25366         register.
25368 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25370         PR target/pr66047.c
25371         * i386.c (ix86_function_sseregparm): Only return -1 if local function
25372         with implied regparm is called from -mno-sse function.
25373         (init_cumulative_args): Output error if ix86_function_sseregparm
25374         return -1 and SSE register would be needed.
25375         (function_arg_advance_32): Likewise.
25376         (function_arg_32): Likewise.
25377         * i386.h (ix86_args): Add decl field.
25379 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25381         PR ipa/65873
25382         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25383         inlines across optimization boundary.
25385 2015-05-12  Jason Merrill  <jason@redhat.com>
25387         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25388         string literal and macro name.
25390 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
25392         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25393         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25394         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25396 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
25398         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25399         (-Wmisleading-indentation): New option.
25400         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25402 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
25404         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25405         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25406         (alpha_extract_integer): Ditto.
25407         (alpha_legitimate_constant_p): Ditto.
25408         (alpha_split_tmode_pair): Ditto.
25409         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25410         (alpha_expand_mov): Ditto.
25411         (print_operand): Remove handling of 'H' modifier.
25412         <case 'm'>: Remove CONST_DOUBLE handling.
25413         (summarize_insn): Handle CONST_WIDE_INT.
25414         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25415         (anddi3): Ditto.
25416         (movti): Handle CONST_WIDE_INT.
25417         * config/alpha/constraints.md ('H'): Remove constraint definition.
25418         ('G'): Do not match MODE_FLOAT class.
25419         * config/alpha/predicates.md (const0_operand): Also match
25420         const_wide_int.
25421         (non_add_const_operand): Ditto.
25422         (non_zero_const_operand): Ditto.
25423         (some_operand): Ditto.
25424         (input_operand): Ditto.  Handle CONST_WIDE_INT.
25425         (and_operand): Do not match const_double.
25426         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25428 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
25430         PR target/65697
25431         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25432         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25433         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25434         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25435         is_mm_seq_cst, is_mm_sync): New accessor functions.
25436         * builtins.c (expand_builtin_sync_operation,
25437         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25438         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25439         (get_memmodel,  expand_builtin_atomic_compare_exchange,
25440         expand_builtin_atomic_load, expand_builtin_atomic_store,
25441         expand_builtin_atomic_clear): Use new accessor routines.
25442         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
25443         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
25444         (maybe_emit_sync_lock_test_and_set): Use new accessors and
25445         MEMMODEL_SYNC_ACQUIRE.
25446         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
25447         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
25448         expand_atomic_store): Use new accessors.
25449         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
25450         * tsan.c (instrument_builtin_call): Update check for memory model beyond
25451         final enum to use MEMMODEL_LAST.
25452         * c-family/c-common.c: Use new accessor for memmodel_base.
25453         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
25454         accessors.
25455         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
25456         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
25457         mem_thread_fence, *dmb): Likewise.
25458         * config/alpha/alpha.c (alpha_split_compare_and_swap,
25459         alpha_split_compare_and_swap_12): Likewise.
25460         * config/arm/arm.c (arm_expand_compare_and_swap,
25461         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
25462         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
25463         atomic_loaddi): Likewise.
25464         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
25465         Likewise.
25466         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
25467         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
25468         use new accessors.
25469         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
25470         atomic_store<mode>, atomic_compare_and_swap<mode>,
25471         atomic_exchange<mode>): Use new accessors.
25472         * config/mips/mips.c (mips_process_sync_loop): Likewise.
25473         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
25474         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
25475         rs6000_post_atomic_barrier): Add new cases.
25476         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
25477         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
25478         (atomic_load<mode>): Add new cases and use new accessors.
25479         (store_quadpti): Add new cases.
25480         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
25481         accessors.
25482         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
25483         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
25484         model, not 8.
25486 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25488         * ipa-devirt.c (type_with_linkage_p): New function.
25489         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
25490         type has linkage.
25491         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
25492         (can_be_name_hashed_p): Simplify.
25493         (hash_odr_name): Check that type has linkage before checking if it is
25494         anonymous.
25495         (types_same_for_odr): Likewise.
25496         (odr_name_hasher::equal): Likewise.
25497         (odr_subtypes_equivalent_p): Likewise.
25498         (warn_types_mismatch): Likewise.
25499         (get_odr_type): Likewise.
25500         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
25501         * ipa-utils.h (odr_type_p): Move offline.
25502         * tree.c (need_assembler_name_p): Fix handling of types
25503         without linkages.
25504         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
25506 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
25508         * timevar.c (timevar_enable): Delete in favor of...
25509         (g_timer): New global.
25510         (struct timevar_def): Move to timevar.h inside class timer.
25511         (struct timevar_stack_def): Likewise.
25512         (timevars): Delete global in favor of field "m_timevars" within
25513         class timer in timevar.h
25514         (stack): Likewise, in favor of field "m_stack".
25515         (unused_stack_instances): Likewise, in favor of field
25516         "m_unused_stack_instances".
25517         (start_time): Likewise, in favor of field "m_start_time".
25518         (get_time): Eliminate check for timevar_enable.
25519         (timer::timer): New function, built from part of timevar_init.
25520         (timevar_init): Rewrite idempotency test from using
25521         "timevar_enable" bool to using dynamic allocation of "g_timer".
25522         Move rest of implementation into timer's constructor.
25523         (timevar_push_1): Rename to...
25524         (timer::push): ...this, adding "m_" prefixes to variables that
25525         are now fields of timer.
25526         (timevar_pop_1): Likewise, rename to...
25527         (timer::pop): ...this, and add "m_" prefixes.
25528         (timevar_start): Replace test for "timevar_enable" with one for
25529         "g_timer", and move bulk of implementation to...
25530         (timer::start): ...here, adding "m_" prefixes.
25531         (timevar_stop): Likewise, from here...
25532         (timer::stop): ...to here.
25533         (timevar_cond_start): Likewise, from here...
25534         (timer::cond_start): ...to here.
25535         (timevar_cond_stop): Likewise, from here...
25536         (timer::cond_stop): ...to here.
25537         (validate_phases): Rename to...
25538         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
25539         locals "total" and "tv" const.
25540         (timevar_print): Rename to...
25541         (timer::print): ...this, and add "m_" prefixes.  Make locals
25542         "total" and "tv" const.  Eliminate test for timevar_enable.
25543         * timevar.h (timevar_enable): Eliminate.
25544         (g_timer): New declaration.
25545         (timevar_push_1): Eliminate.
25546         (timevar_pop_1): Eliminate.
25547         (timevar_print): Eliminate.
25548         (class timer): New class.
25549         (timevar_push): Rewrite to use g_timer.
25550         (timevar_pop): Likewise.
25551         * toplev.c (toplev::~toplev): Likewise.
25553 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
25555         * arm-protos.h (arm_sched_autopref): Delete.
25556         (tune_params): Re-organize, use enums for flag values.
25557         (FUSE_OPS): New macro.
25558         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
25559         (ARM_PREFETCH_BENEFICIAL): Likewise.
25560         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
25561         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
25562         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
25563         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
25564         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
25565         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
25566         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
25567         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
25568         format.
25569         (arm_option_override, thumb2_reorg, arm_print_tune_info)
25570         (aarch_macro_fusion_pair_p): Update uses of current_tune.
25571         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
25573 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
25575         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
25576         "break".
25578 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
25579             Sandra Loosemore <sandra@codesourcery.com>
25581         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
25582         value.
25583         (REG_CLASS_NAMES): Add "IJMP_REGS".
25584         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
25585         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
25586         use new "c" register constraint.
25587         * config/nios2/constraint.md (c): New register constraint
25588         corresponding to IJMP_REGS.
25590 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25592         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
25593         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
25594         define_splits): Delete, revamp, transmogrify into ...
25595         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
25596         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
25597         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
25598         New.
25600 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25602         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
25603         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
25605 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25607         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
25608         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
25609         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
25610         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
25611         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
25612         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
25613         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
25614         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
25615         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
25616         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
25617         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
25618         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
25619         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
25620         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
25621         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
25622         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
25623         and 30 corresponding splitters): Delete.
25625 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25627         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
25628         zero_extract.
25630 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25632         * combine.c (recog_for_combine_1): New function, factored out
25633         from recog_for_combine.
25634         (change_zero_ext): New function.
25635         (recog_for_combine): If recog fails, try again with the pattern
25636         modified by change_zero_ext; if that still fails, restore the
25637         pattern.
25639 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25641         * combine.c (get_undo_marker): New function.
25642         (undo_to_marker): New function, largely factored out from ...
25643         (undo_all): ... this.  Adjust.
25645 2015-05-12  Richard Biener  <rguenther@suse.de>
25647         PR tree-optimization/66101
25648         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
25649         fixup if we turn a loop exit edge to a fallthru edge.
25651 2015-05-12  Richard Biener  <rguenther@suse.de>
25653         PR tree-optimization/37021
25654         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
25655         (SLP_TREE_TWO_OPERATORS): New define.
25656         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
25657         SLP_TREE_TWO_OPERATORS.
25658         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
25659         SLP node.
25660         (vect_build_slp_tree): Adjust.
25661         (vect_analyze_slp_cost_1): Likewise.
25662         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
25663         emitting two vector stmts and mixing the results.
25665 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25667         * call.c (print_z_candidates): Remove dead code.
25669 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25671         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
25672         and zEC12_simple_fp.
25673         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
25674         to 1.
25676 2015-05-12  Tom de Vries  <tom@codesourcery.com>
25678         PR tree-optimization/66010
25679         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
25680         ifn_va_arg.
25681         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
25682         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
25683         va_lists are passed, and remove corresponding handling.
25684         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
25685         do_deref argument to ifn_va_arg.
25686         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
25687         ifn_va_arg.
25689 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25691         PR target/65955
25692         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
25693         REG before taking its REGNO.
25695 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25697         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
25698         rsp->sign_bit_copies and rsp->nonzero_bits into ...
25699         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
25700         present to get more accurate information about the number of sign bit
25701         copies and non zero bits.
25703 2015-05-12  Richard Biener  <rguenther@suse.de>
25705         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
25706         do not allow unrolling.
25708 2015-05-11  Richard Henderson  <rth@redhat.com>
25710         * config/i386/i386-modes.def (CCP): New.
25711         * config/i386/i386.c (put_condition_code): Handle it.
25712         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
25714 2015-05-11  Richard Henderson  <rth@redhat.com>
25716         * target.def (md_asm_clobbers): Replace with...
25717         (md_asm_adjust): this.
25718         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
25719         (TARGET_MD_ASM_ADJUST): New.
25720         * tm.texi: Rebuild.
25721         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
25722         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
25723         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
25725         * cfgexpand.c (check_operand_nalternatives): Accept vector of
25726         constraints instead of lists of outputs and inputs.
25727         (expand_asm_stmt): Save and restore input_location around the
25728         body of the function.  Move asm data into vectors instead of
25729         building tree lists.  Generate cleanup sequences as needed,
25730         rather than waiting til the end.  Use new md_asm_adjust hook.
25732         * config/vxworks.c: Include vec.h before target.h.
25733         * gimple.c: Likewise.
25734         * incpath.c: Likewise.
25735         * mode-switching.c: Likewise.
25737         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
25738         (cris_md_asm_adjust): this.
25739         (TARGET_MD_ASM_CLOBBERS): Remove.
25740         (TARGET_MD_ASM_ADJUST): New.
25741         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
25742         (ix86_md_asm_adjust): this.
25743         (TARGET_MD_ASM_CLOBBERS): Remove.
25744         (TARGET_MD_ASM_ADJUST): New.
25745         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
25746         (mn10300_md_asm_adjust): this.
25747         (TARGET_MD_ASM_CLOBBERS): Remove.
25748         (TARGET_MD_ASM_ADJUST): New.
25749         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
25750         (rs6000_md_asm_adjust): this.
25751         (TARGET_MD_ASM_CLOBBERS): Remove.
25752         (TARGET_MD_ASM_ADJUST): New.
25753         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
25754         (visium_md_asm_adjust): this.
25755         (TARGET_MD_ASM_CLOBBERS): Remove.
25756         (TARGET_MD_ASM_ADJUST): New.
25758 2015-05-11  Richard Henderson  <rth@redhat.com>
25760         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
25761         if noutputs is zero.
25762         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
25764         * cfgexpand.c (expand_asm_operands): Merge into...
25765         (expand_asm_stmt): ... here.
25767         * cfgexpand.c (expand_asm_operands): Don't call
25768         resolve_asm_operand_names.
25769         * stmt.c (resolve_asm_operand_names): Clarify block comment.
25771 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
25773         * dwarf2out.c (gen_member_die): Sanity check that we access
25774         TYPE_MAIN_VARIANT for TYPE_METHODS.
25775         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
25776         checking TYPE_METHODS.
25777         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
25778         if non-null.
25779         (build_distinct_type_copy): Clear TYPE_METHODS.
25780         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
25781         (verify_type): Allow TYPE_METHODS to be error_mark_node.
25782         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
25784 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
25786         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
25787         (emit_pattern_before_setloc): Likewise.
25789 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
25791         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
25792         for define_peephole2s.
25793         (get_peephole2_pattern): New function.
25794         (main): Use it.  Call validate_pattern.
25796 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25798         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
25799         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
25800         (Last callee saved reg is different for AVR_TINY architecture)
25802 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
25804         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
25805         when looking for memory references.
25807 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
25809         PR target/65753
25810         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
25811         via function pointers.
25813 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
25815         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
25816         indirect call by forcing address into a pseudo with -fno-plt.
25817         * common.opt (flag_plt): New option.
25818         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
25819         ([-fno-plt]): Document.
25821 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
25823         PR bootstrap/66105
25824         * config/rs6000/option-defaults.h: Add space between string literal
25825         and macro name.
25827 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25829         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
25830         accross ARM targets.
25832 2015-05-11  Christian Bruel  <christian.bruel@st.com>
25834         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
25835         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
25837 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
25839         PR rtl-optimization/66076
25840         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
25841         Don't grow the heap array if it is already big enough from a
25842         previous iteration.
25844 2015-05-11  Christian Bruel  <christian.bruel@st.com>
25846         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
25847         (is_called_in_ARM_mode): Remove.
25848         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
25849         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
25850         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
25851          arm_declare_function_name.
25853 2015-05-11  Christian Bruel  <christian.bruel@st.com>
25855         * config/arm/arm.c (arm_option_override): Reoganized and split into :
25856         (arm_option_params_internal); New function.
25857         (arm_option_check_internal): New function.
25858         (arm_option_override_internal): New function.
25859         (thumb_code, thumb1_code): Remove.
25860         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
25861         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
25862         (thumb_code, thumb1_code): Remove.
25863         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
25865 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
25867         * config/alpha/alpha.c (alpha_emit_set_const_1)
25868         (alpha_emit_set_long_const, alpha_extract_integer)
25869         (alpha_legitimate_constant_p, alpha_split_const_mov)
25870         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
25871         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25872         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
25873         HOST_WIDE_INT_1U.
25874         * config/alpha/predicates.md (mode_mask_operand): Do not match
25875         const_double RTX.
25876         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25877         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
25878         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
25879         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25880         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
25882 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
25884         PR target/65780
25885         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
25886         default_binds_local_p_2.
25887         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
25888         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
25890 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
25892         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
25894 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
25896         Patch by Richard Biener
25897         * coverage.c (coverage_obj_init): Delay building of type variant
25898         until the type is finished.
25900 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
25902         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
25903         mismatch between C and C++ type; compoare correctly ARG_TYPES
25904         for non-prototypes and output correctly parameter index for METHOD_TYPE.
25905         (odr_types_equivalent_p): Fix wording of warning about attributes;
25906         it is OK to match prototype and non-prototype.
25908 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
25910         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
25911         TYPE_ARG_TYPES list.
25912         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
25913         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
25915 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
25917         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
25918         * tree.h (is_lang_specific): Constify.
25920 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
25922         PR tree-optimization/64454
25923         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
25924         Rewrite.
25926 2015-05-08  Jason Merrill  <jason@redhat.com>
25928         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
25929         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
25930         config/darwin.h, config/darwin9.h, config/elfos.h,
25931         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
25932         config/microblaze/microblaze.h, config/mips/mips.h,
25933         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
25934         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
25935         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
25936         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
25937         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
25938         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
25939         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
25940         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
25941         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
25942         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
25943         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
25944         between string literal and macro name.
25946 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25948         * jump.c: Change argument types to rtx_insn *.
25949         * rtl.h: Adjust.
25951 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25953         * lra-constraints.c: Change argument type to rtx_insn *.
25955 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25957         * df-problems.c: Change argument type to rtx_insn *.
25959 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25961         * combine.c: Change argument type to rtx_insn *.
25963 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25965         * rtl.h: Adjust.
25966         * rtlanal.c: Change argument type to rtx_insn *.
25968 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25970         * sched-deps.c: Change argument types to rtx_insn *.
25971         * sched-int.h: Adjust.
25973 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25975         * dwarf2cfi.c: Change argument type to rtx_insn *.
25977 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25979         * ira.c (decrease_live_ranges_number): Changetype of local
25980         variable to rtx_insn *.
25981         * recog.c: Change argument types to rtx_insn *.
25982         * recog.h: Adjust.
25984 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25986         * reorg.c: Change argument types to rtx_insn *.
25988 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25990         * ira-color.c: Change argument types to rtx_insn *.
25991         * lra-eliminations.c: Likewise.
25992         * ira.h: Adjust.
25994 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25996         * gcse.c: Change argument types to rtx_insn *.
25998 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26000         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26002 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26004         * emit-rtl.c (emit_debug_insn_before): Change argument type to
26005         rtx_insn *.
26006         * rtl.h: Adjust.
26008 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26010         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26011         * rtl.h: Adjust.
26013 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26015         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26016         * rtl.h: Adjust.
26018 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26020         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26021         * rtl.h: Adjust.
26023 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26025         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26026         * rtl.h: Adjust.
26028 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26030         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26031         to rtx_insn *.
26032         * rtl.h: Adjust.
26034 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26036         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26037         to rtx_insn *.
26038         * rtl.h: Likewise.
26040 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26042         * except.c (can_nonlocal_goto): Change type of argument to
26043         rtx_insn *.
26044         * rtl.h: Adjust.
26046 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26048         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26049         * rtl.h: Adjust.
26051 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26053         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26054         * cfgrtl.c (can_delete_label_p): Adjust.
26055         * rtl.h: likewise.
26057 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26059         * reorg.c (stop_search_p): Change argument to rtx_insn *.
26061 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26063         * except.c (make_reg_eh_region_note): Change argument to
26064         rtx_insn *.
26065         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26066         * except.h: Adjust.
26068 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26070         * mode-switching.c (commit_mode_sets): Change type of local
26071         variable from rtx to rtx_insn *.
26073 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
26075         * doc/install.texi (--enable-languages): Add missing jit and lto info.
26076         Add ^ to grep command.
26077         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26078         arg to last gimple_simplify declaration.  Add missing gimple_build
26079         declaration for built-in function case with four tree args.
26081 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26082             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26084         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26085         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26086         (GNU_USER_DYNAMIC_LINKERN32): Update.
26088 2015-05-08  Richard Biener  <rguenther@suse.de>
26090         PR tree-optimization/66036
26091         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26092         Handle strided group loads.
26093         (vect_verify_datarefs_alignment): Likewise.
26094         (vect_enhance_data_refs_alignment): Likewise.
26095         (vect_analyze_group_access): Likewise.
26096         (vect_analyze_data_ref_access): Likewise.
26097         (vect_analyze_data_ref_accesses): Likewise.
26098         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26099         (vectorizable_load): Likewise.
26101 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
26103         * config/rs6000/rs6000.md: Require operand inequality in one
26104         of the peepholes.
26106 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
26107             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26109         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26110         from (set ...).
26111         * config/rx/rx.md (movdi, movdf): Likewise.
26112         Likewise for define_peephole2s.
26114 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26116         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26117         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26118         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26119         vtst_u64): Rewrite using gcc vector extensions.
26121 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26123         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26124         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26126 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26128         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26130 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26132         * config/glibc-stdint.h (OPTION_MUSL): Define.
26133         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26134         Change the definition based on OPTION_MUSL for 64 bit targets.
26135         * config/linux.h (OPTION_MUSL): Redefine.
26136         * config/alpha/linux.h (OPTION_MUSL): Redefine.
26137         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26138         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26140 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26141             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26143         * config.gcc (LIBC_MUSL): New tm_defines macro.
26144         * config/linux.h (OPTION_MUSL): Define.
26145         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26146         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26147         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26148         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26149         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26150         * config/linux.opt (mmusl): New option.
26151         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26152         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26153         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26154         * configure: Regenerate.
26156 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
26157             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26159         PR target/48904
26160         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26161         * config/i386/knetbsd-gnu64.h: New file.
26163 2015-05-08  Marek Polacek  <polacek@redhat.com>
26165         PR c/64918
26166         * doc/invoke.texi: Document -Woverride-init-side-effects.
26168 2015-05-07  Marek Polacek  <polacek@redhat.com>
26170         PR c/65179
26171         * doc/invoke.texi: Document -Wshift-negative-value.
26173 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
26175         * gcov-tool.c (do_merge): Refactore to remove int ret.
26176         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26177         !type == FUNC to type != FUNC.
26178         * reload.h (struct target_reload): Changee to type of
26179         x_spill_indirect_levels from bool to unsigned char.
26181 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
26183         * rtl.h (always_void_p): New function.
26184         * gengenrtl.c (always_void_p): Likewise.
26185         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26186         with code foo are always VOIDmode.
26187         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26188         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26189         compare-elim.c, config/aarch64/aarch64.c,
26190         config/aarch64/aarch64.md, config/alpha/alpha.c,
26191         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26192         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26193         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26194         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26195         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26196         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26197         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26198         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26199         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26200         config/ia64/vect.md, config/iq2000/iq2000.c,
26201         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26202         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26203         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26204         config/mep/mep.c, config/microblaze/microblaze.c,
26205         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26206         config/mn10300/mn10300.c, config/msp430/msp430.c,
26207         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26208         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26209         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26210         config/rs6000/altivec.md, config/rs6000/rs6000.c,
26211         config/rs6000/rs6000.md, config/rs6000/vector.md,
26212         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26213         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26214         config/sh/sh.md, config/sh/sh_treg_combine.cc,
26215         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26216         config/spu/spu.md, config/stormy16/stormy16.c,
26217         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26218         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26219         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26220         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26221         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26222         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26223         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26224         var-tracking.c: Update calls accordingly.
26226 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26228         PR middle-end/192
26229         PR middle-end/54303
26230         * varasm.c (function_mergeable_rodata_prefix): New function.
26231         (mergeable_string_section): Use it.
26232         (mergeable_constant_section): Use it.
26234 2015-05-07  Jeff Law  <law@redhat.com>
26236         PR target/39726
26237         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26238         simplifier to narrow arithmetic.
26239         * generic-match-head.c: (types_match, single_use): New functions.
26240         * gimple-match-head.c: (types_match, single_use): New functions.
26242 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26244         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26245         rtx type.
26247 2015-05-07  Richard Biener  <rguenther@suse.de>
26249         PR tree-optimization/66002
26250         * passes.def: Schedule another pass_merge_phi after ifcombine, right
26251         before phiopt.
26253 2015-05-07  Marek Polacek  <polacek@redhat.com>
26254             Martin Uecker  <uecker@eecs.berkeley.edu>
26256         * doc/invoke.texi: Document -fsanitize=bounds-strict.
26257         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26258         into SANITIZE_NONDEFAULT.
26259         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26261 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
26263         PR target/66015
26264         * config/alpha/alpha.c (alpha_override_options_after_change): New.
26265         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26266         (alpha_override_options): Move align_loops, align_jumps and
26267         align_functions handling into alpha_override_options_after_change.
26269 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
26270             Chris Jones  <chrisj@nvidia.com>
26271             Joshua Conner  <jconner@nvidia.com>
26273         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26274         linking of crtfastmath.o.
26275         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26277 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
26279         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26280         (cstore<mode>4_unsigned_imm): New expander.
26281         (cstore<mode>4): Remove empty constraint strings.  Use the new
26282         expanders.
26284 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
26286         PR target/64208
26287         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26288         alternatives.
26290 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26292         * config/aarch64/geniterators.sh: Use standard BRE in sed.
26294 2015-05-06  Alan Modra  <amodra@gmail.com>
26296         PR target/66033
26297         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26298         (UNSPEC_NOP): Define.
26299         (reload_vsx_from_gpr<mode>): Add missing DONE.
26300         (reload_gpr_from_vsx<mode>): Likewise.
26301         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26302         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26304 2015-05-06  Christian Bruel  <christian.bruel@st.com>
26306         PR target/66015
26307         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26308         align_jumps, align_functions into aarch64_override_options_after_change.
26310 2015-05-06  Richard Biener  <rguenther@suse.de>
26312         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26313         vect_transform_slp_perm_load to check if we support a permutation
26314         for basic-block vectorization.
26316 2015-05-06  Nick Clifton  <nickc@redhat.com>
26318         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26319         used, even if it is not being used as a frame pointer.
26321 2015-05-05  Jason Merrill  <jason@redhat.com>
26323         * dwarf2out.c (gen_member_die): Don't emit anything for an
26324         anonymous class constructor.
26326 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
26328         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26329         that it reflects the block structure.
26330         (afdo_propagate_edge): Likewise.
26331         (afdo_calculate_branch_prob): Likewise.
26332         (afdo_annotate_cfg): Likewise.
26333         * cfgcleanup.c (equal_different_set_p): Likewise.
26334         (try_crossjump_to_edge): Likewise.
26335         * cgraph.c (cgraph_node::verify_node): Likewise.
26336         * cgraphunit.c (expand_all_functions): Likewise.
26337         * config/i386/i386.c (ix86_expand_copysign): Likewise.
26338         (exact_dependency_1): Likewise.
26339         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26340         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26341         * gensupport.c (process_define_subst): Likewise.
26342         * lto-wrapper.c (merge_and_complain): Likewise.
26343         * tree-if-conv.c (if_convertible_bb_p): Likewise.
26344         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26345         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26346         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26347         * tree-vect-loop.c (vectorizable_reduction): Likewise.
26348         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26349         * tree-vect-stmts.c (vectorizable_shift): Likewise.
26350         * tree-vrp.c (vrp_finalize): Likewise.
26351         * tree.c (variably_modified_type_p): Likewise.
26353 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
26355         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26356         on darwin12 and later.
26357         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26358         file to pass -rdynamic on darwin12 and later.
26359         * config/darwin.opt (rdynamic): Add.
26361 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26363         * doc/extend.texi (C Extensions): Update menu for moved Variable
26364         Attributes and Type Attributes sections.
26366 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26368         PR target/65990
26369         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26370         if rep_8byte stringop strategy was specified for 32-bit target.
26372 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
26374         PR target/65915
26375         * config/i386/i386.md (vector convert to float spltiter): Check for
26376         xmm16+, when splitting scalar float conversion.
26377         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26379 2015-05-05  Nick Clifton  <nickc@redhat.com>
26381         * config/msp430/msp430-opts.h (enum msp430_regions): New.
26382         * config/msp430/msp430.c (msp430_override_options): Complain if
26383         -mcode-region or -mdata-region is used on a non MSP430X.
26384         (msp430_section_attr): New function.  Checks lower, upper and
26385         either attributes.
26386         (msp430_attribute_table): Add lower, upper and either.
26387         (gen_prefix): New function.  Generates a prefix for a section
26388         name.
26389         (msp430_select_section): New function - handles the choice of
26390         section for an object.  Takes into account memory region
26391         attributes and options.
26392         (msp430_function_section): Use gen_prefix.
26393         (TARGET_SECTION_TYPE_FLAGS): Define.
26394         (msp430_section_type_flags): New function.
26395         (TARGET_ASM_UNIQUE_SECTION): Define.
26396         (msp430_unique_section): New function.
26397         (msp430_output_aligned_decl_common): New function.
26398         (msp430_do_not_relax_short_jumps): New function.
26399         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26400         Define.
26401         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26402         * config/msp430/msp430-protos.h
26403         (msp430_do_not_relax_short_jumps): New prototype.
26404         (msp430_output_aligned_decl_common): New prototype.
26405         * config/msp430/msp430.md (length): New attribute.
26406         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26407         then use a long code sequence for short jumps.
26408         * config/msp430/msp430.opt (mcode-region): New.
26409         (mdata-region): New.
26410         * doc/invoke.texi: Document new options.
26411         * doc/extend.texi: Document new attributes.
26413 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
26415         * config/aarch64-protos.h (struct cpu_branch_cost): New.
26416         (tune_params): Add field branch_costs.
26417         (aarch64_branch_cost): Declare.
26418         * config/aarch64.c (generic_branch_cost): New.
26419         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26420         (cortexa53_tunings): Likewise.
26421         (cortexa57_tunings): Likewise.
26422         (thunderx_tunings): Likewise.
26423         (xgene1_tunings): Likewise.
26424         (aarch64_branch_cost): Define.
26425         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26427 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26429         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26430         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26431         * config/i386/i386.md: Ditto.
26432         * config/i386/winnt.c: Ditto.
26434 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
26436         * doc/extend.texi (__atomic Builtins): Move implementation details
26437         to the end of the description, rewrite opening paragraphs, state
26438         difference with __sync builtins, state C11/C++11 assumptions,
26439         weaken itemized descriptions, add explanation of memory model
26440         behaviour, expand description of compare-exchange, simplify text.
26442 2015-05-05  Renlin Li  <renlin.li@arm.com>
26444         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
26446 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
26448         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
26449         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26450         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
26451         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26452         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
26453         * configure: Regenerate.
26454         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
26455         * doc/install.texi (aarch64*-*-*): Document new
26456         --enable-fix-cortex-a53-843419 option.
26457         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
26458         and -mno-fix-cortex-a53-843419 options.
26460 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26462         PR target/65871
26463         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
26465 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
26467         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
26468         fix overactive TYPE_MIN_VALUE check and add FIXME for type
26469         compatibility problems.
26471 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
26473         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
26474         constraints.
26475         (cbranchsi4_reg): New.
26476         * config/microblaze/microblaze.c
26477         (microblaze_expand_conditional_branch_reg): New.
26478         * config/microblaze/microblaze-protos.h
26479         (microblaze_expand_conditional_branch_reg): New prototype.
26481 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
26483         * config/microblaze/microblaze.md (peephole2): New.
26485 2015-05-04  Jeff Law  <law@redhat.com>
26487         Revert:
26488         2015-05-04  Jeff Law  <law@redhat.com>
26490         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26491         simplifier to narrow arithmetic.
26492         * generic-match-head.c: (types_match, single_use): New functions.
26493         * gimple-match-head.c: (types_match, single_use): New functions.
26495 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26497         PR target/65987
26498         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
26499         (split_branches): Likewise.
26501 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
26503         * common.opt (fdelete-null-pointer-checks): Init to -1.
26504         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
26505         override flag_delete_null_pointer_checks default.
26506         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
26507         behavior re address zero.  Better document target-specific behavior.
26508         (-fisolate-errneous-paths-dereference): Mention relationship to
26509         -fdelete-null-pointer-checks.
26511 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
26513         PR tree-optimization/65984
26514         * ubsan.c: Include tree-cfg.h.
26515         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
26516         stmt_could_throw_p test, rename can_throw variable to ends_bb.
26518 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
26520         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
26521         to CONST_DOUBLE_P predicate.
26522         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
26523         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
26524         allow only operands that satisfy standard_sse_constant_p predicate.
26525         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
26526         to CONST_DOUBLE_P predicate.
26528 2015-05-04  Jeff Law  <law@redhat.com>
26530         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26531         simplifier to narrow arithmetic.
26532         * generic-match-head.c: (types_match, single_use): New functions.
26533         * gimple-match-head.c: (types_match, single_use): New functions.
26535 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
26537         * config/arm/arm.c: Restore bootstrap.
26539 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
26541         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
26542         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
26543         as CONST_WIDE_INT, not CONST_DOUBLE.
26544         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
26545         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
26546         (ix86_find_base_term): Do not check for CONST_DOUBLE.
26547         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
26548         (ix86_build_signbit_mask): Rewrite using wide ints.
26549         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
26550         (ix86_rtx_costs): Handle CONST_WIDE_INT.
26551         (find_constant): Ditto.
26552         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
26553         using gen_int_mode.
26554         * config/i386/predicates.md (x86_64_immediate_operand)
26555         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26556         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
26557         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26558         (const0_operand): Also match const_wide_int.
26559         (constm1_operand): Ditto.
26560         (const1_operand): Ditto.
26562 2015-05-04  Richard Biener  <rguenther@suse.de>
26564         PR tree-optimization/65965
26565         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
26566         store groups at gaps.
26568 2015-05-04  Richard Biener  <rguenther@suse.de>
26570         PR tree-optimization/65935
26571         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
26572         then make sure to apply that swapping to the IL.
26574 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
26576         * Makefile.in (PATCHLEVEL_c): New variable.
26577         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
26578         expand the same way as if DEVPHASE_c was non-empty.
26580 2015-05-04  Kai Tietz  <ktietz@redhat.com>
26582         PR target/65559
26583         * lto-wrapper.c (run_gcc): Open filename
26584         in binary-mode.
26586 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
26588         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
26589         sections up in file, to immediately after the Function Attributes
26590         section.
26592 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
26594         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
26596 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26598         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
26599         (insert_partition_copy_on_edge): Adjust.
26600         (insert_rtx_to_part_on_edge): Likewise.
26601         (insert_part_to_rtx_on_edge): Likewise.
26603 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26605         * function.c (set_return_jump_label): Change type of argument to
26606         rtx_insn *.
26607         * function.h (set_return_jump_label): Adjust.
26609 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26611         * reload.h (struct reg_equivs_t): Change type of init to
26612         rtx_insn *.
26613         * ira.c (fix_reg_equiv_init): Adjust.
26614         * reload1.c (eliminate_regs_1): Likewise.
26615         (init_eliminable_invariants): Likewise.
26617 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26619         * cselib.c (fp_setter_insn): Take a rtx_insn *.
26620         * cselib.h (fp_setter_insn): Adjust.
26622 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26624         * recog.c (struct validate_replace_src_data): Change type of
26625         insn field to rtx_insn *.
26626         (validate_replace_src_group): Change type of argument to rtx_insn *.
26627         * recog.h (validate_replace_src_group): Adjust.
26629 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26631         * haifa-sched.c: Change the type of some variables to rtx_insn *.
26632         * sched-deps.c: Likewise.
26633         * sched-int.h: Likewise.
26634         * sched-rgn.c: Likewise.
26635         * sel-sched.c: Likewise.
26637 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26639         to rtx_insn *.
26640         * config/i386/i386.c: Change the type of some arguments to
26641         rtx_insn *.
26642         * config/arm/arm.c: Likewise.
26644 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26646         * lra-constraints.c: Change type of some arguments to rtx_insn *.
26648 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26650         * regcprop.c (kill_autoinc_value): Change type of argument to
26651         rtx_insn *.
26653 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26655         * genrecog.c (print_subroutine): Adjust.
26656         * recog.c (get_bool_attr_mask_uncached): Likewise.
26657         * recog.h (struct recog_data_d): Change the type of insn to
26658         rtx_insn *.
26660 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26662         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
26664 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26666         * df-problems.c (df_set_note): Change type of argument to
26667         rtx_insn *.
26669 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26671         * builtins.c (expand_builtin_trap): Change type of local
26672         variable to rtx_insn *.
26673         (add_sched_insns_for_speculation): Likewise.
26674         (ix86_emit_save_regs): Likewise.
26675         (get_scratch_register_on_entry): Likewise.
26676         (ix86_emit_restore_reg_using_pop): Likewise.
26677         (ix86_emit_leave): Likewise.
26678         (ix86_emit_restore_regs_using_mov): Likewise.
26679         (ix86_expand_epilogue): Likewise.
26680         Likewise.
26681         (rl78_alloc_physical_registers_umul): Likewise.
26682         * cselib.c (discard_useless_locs): Likewise.
26683         (cselib_invalidate_regno): Likewise.
26684         (cselib_invalidate_mem): Likewise.
26685         * function.c (expand_function_start): Likewise.
26686         (emit_use_return_register_into_block): Likewise.
26687         * gcse.c: Likewise.
26688         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
26689         * ifcvt.c (noce_get_alt_condition): Likewise.
26690         * loop-doloop.c (doloop_condition_get): Likewise.
26691         * lra-constraints.c (inherit_in_ebb): Likewise.
26692         * modulo-sched.c (sms_schedule_by_order): Likewise.
26693         * recog.c (next_insn_tests_no_inequality): Likewise.
26694         * reorg.c (emit_delay_sequence): Likewise.
26695         (update_reg_dead_notes): Likewise.
26696         (fix_reg_dead_note): Likewise.
26697         (fill_slots_from_thread): Likewise.
26698         (delete_computation): Likewise.
26700 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
26702         * doc/extend.texi (Variable Attributes): Add menu and proper
26703         @nodes to subsections.  Move Microsoft Windows attributes to
26704         their own subsection.
26705         (Type Attributes): Reorganize introduction to remove duplicate
26706         list of attributes.  Add menu and proper @nodes to subsections.
26707         Alphabetize the main table of common attributes.
26709 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26711         * match.pd: New simplification patterns.
26712         (x + (x & 1))  -> ((x + 1) & ~1)
26713         (x & ~(x & y)) -> ((x & ~y))
26714         (x | ~(x | y)) -> ((x | ~y))
26716 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26718         * target.def (attribute_table): Mention that struct attribute_spec
26719         is defined in tree-core.h rather than tree.h
26720         * doc/tm.texi: Regenerate.
26722 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
26724         * genrecog.c (test): Rename to rtx_test.  Update rest of file
26725         accordingly.
26727 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26729         PR translation/65959
26730         * params.h (DEFPARAM): Rename msgid to nocmsgid.
26732 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
26734         * config/aarch64/aarch64-protos.h (tune_params):
26735         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
26736         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
26737         Return value depending on target.
26738         (generic_tunings): Initialize new target settings.
26739         (cortexa53_tunings): Likewise.
26740         (cortexa57_tunings): Likewise.
26741         (thunderx_tunings): Likewise.
26742         (xgene1_tunings): Likewise.
26744 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
26746         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
26747         Make Cortex-A53 shift costs more accurate.
26749 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26751         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
26752         UNSIGNED_FLOAT.
26754 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
26756         * config/aarch64/aarch64.c (aarch64_rtx_costs):
26757         Calculate cost of op0 and op1 in PLUS and MINUS cases.
26759 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26761         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26762         Add cost of op0 in the compare-with-fpzero case.
26764 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
26766         * builtins.c (fold_builtin_1): Remove spurious second
26767         semicolon.
26768         * cgraph.h (symtab_node::get_availability): Likewise.
26769         * opts.c (common_handle_option): Remove spurious second semicolon.
26770         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26771         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
26773 2015-04-30  Caroline Tice  <cmtice@google.com>
26775         PR gcov-profile/65929
26776         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
26777         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
26778         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
26779         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
26780         * doc/tm.texi: Regenerate.
26781         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
26782         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
26783         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
26784         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
26786 2015-04-30  Marek Polacek  <polacek@redhat.com>
26788         * varasm.c (handle_cache_entry): Fix logic.
26790 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26792         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
26793         (*extrsi5_insn_uxtw_alt): Likewise.
26794         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
26795         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
26796         operations.
26798 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26800         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
26801         fabd in ABS case.
26803 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26805         * config/aarch64/aarch64.md
26806         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
26807         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
26808         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
26809         appropriately.  Handle alternative EON form.
26811 2015-04-30  Renlin Li  <renlin.li@arm.com>
26813         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
26814         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
26816 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
26818         PR ipa/65873
26819         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
26820         -fstrict-aliasing boundaries.
26822 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26824         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
26825         and [SU]MNEGL patterns.
26827 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26829         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
26830         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
26831         combined arithmetic-shift ops.  Properly handle all shift and extend
26832         operations that can occur in combination with PLUS/MINUS.
26833         Rename maybe_fma to compound_p.
26834         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
26835         arithmetic and shift operations.
26837 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26839         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
26840         rather than arith_shift cost when costing ADD/MINUS of an
26841         extended value.
26843 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
26845         PR lto/65948
26846         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
26847         to itself.
26849 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
26851         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
26852         are for the same position.
26854 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
26856         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
26857         vectorize_loops.
26858         (vectorize_loops): Use it.
26860 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
26862         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
26863         for aggregate types.
26864         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
26865         type to be non_ODR.
26866         * tree.c (need_assembler_name_p): Compute mangled name for
26867         non-fundamental types and integer types.
26869 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
26871         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
26872         manual swaps.
26873         * expr.c (expand_expr_real_2): Likewise.
26875 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
26877         * tree.c (build_common_builtin_nodes): Do not build
26878         __builtin_alloca_with_align as equivalent of library alloca.
26880 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
26882         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
26883         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
26884         bugus variants.
26885         * tree.c: Include print-tree.h and ipa-utils.h
26886         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
26887         (free_lang_data_in_cgraph): Call verify_type.
26888         (verify_type_variant): New function.
26889         (verify_type): New function.
26890         * tree.h (verify_type): Declare.
26892 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
26894         * config/mips/mips-cpus.def: (mips4): Change default processor
26895         from PROCESSOR_R8000 to PROCESSOR_R10000.
26897 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
26899         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
26900         la/jalr instead of jal.
26902 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
26904         PR target/65871
26905         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
26906         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
26907         (setcc+movzbl peephole2): Check also clobbered reg.
26908         (setcc+andl peephole2): Ditto.
26910 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
26912         PR libgomp/65099
26913         * config/nvptx/mkoffload.c (target_ilp32): New variable.
26914         (main): Set it depending on "-foffload-abi=[...]".
26915         (compile_native, main): Use it to pass "-m32" or "-m64" to the
26916         compiler.
26918 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
26920         PR target/65770
26921         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
26922         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
26923         Flip lane index back at assembly time for bigendian.
26925 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
26927         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
26928         * gimplify.c (gimplify_omp_workshare): Use it.
26930 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
26932         * Makefile.in (build/genrecog.o): Depend on inchash.h.
26933         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
26934         build/inchash.o
26935         * genrecog.c: Rewrite most of the code except for the third page.
26937 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
26939         * inchash.h, inchash.c: Include bconfig.h for build objects.
26940         * Makefile.in (build/inchash.o): New rule.
26942 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
26944         PR target/65924
26945         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
26946         number in type attribute expression.
26948 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
26950         * loop-iv.c (canon_condition): Generalize to all types of integer
26951         constant.
26953 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
26955         * gimple-walk.c: Prune duplicate or unneeded includes.
26956         (walk_gimple_asm): Only call parse_input_constraint or
26957         parse_output_constraint if their findings are used.
26958         Honour parse_input_constraint and parse_output_constraint
26959         result.
26961 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
26963         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
26965 2015-04-29  Tom de Vries  <tom@codesourcery.com>
26967         PR tree-optimization/65893
26968         * passes.def (pass_all_optimizations): Move pass_stdarg to after
26969         pass_dce.
26971 2015-04-29  Richard Biener  <rguenther@suse.de>
26973         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26974         compute GROUP_SIZE for basic-block SLP.
26975         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
26976         take into account gaps.
26977         (vect_get_mask_element): Properly reject references to previous
26978         vectors.
26979         (vect_transform_slp_perm_load): Likewise.
26981 2015-04-29  Christian Bruel  <christian.bruel@st.com>
26983         PR target/64835
26984         * config/i386/i386.c (ix86_default_align): New function.
26985         (ix86_override_options_after_change): Call ix86_default_align.
26986         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
26987         (ix86_override_options_after_change): New function.
26989 2015-04-28  Jeff Law  <law@redhat.com>
26991         * tree-ssa-dom.c (record_equality); Fix comment typos.
26993 2015-04-28  Tom de Vries  <tom@codesourcery.com>
26995         PR tree-optimization/65887
26996         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
26998 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
27000         * doc/extend.texi (Declaring Attributes of Functions): Split into
27001         subsections by target.  Alphabetize the table of common attributes.
27002         Rewrite some of the introductory text to reflect the new structure.
27003         Update some cross-references to point to the new subsections.
27004         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
27005         duplicate copies in the discussion of function, label, and type
27006         attributes.
27008 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
27010         PR bootstrap/65910
27011         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27013 2015-04-28  Jason Merrill  <jason@redhat.com>
27015         PR c++/65734
27016         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27017         (finalize_type_size): Respect TYPE_USER_ALIGN.
27018         (layout_type) [ARRAY_TYPE]: Likewise.
27020 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
27022         * config/arm/arm.md (*arm_movt): Fix type attribute.
27023         (*cmpsi_shiftsi): Likewise.
27024         (*cmpsi_shiftsi_swp): Likewise.
27025         (*movsicc_insn): Likewise.
27026         (*cond_move): Likewise.
27027         (*if_plus_move): Likewise.
27028         (*if_move_plus): Likewise.
27029         (*if_arith_move): Likewise.
27030         (*if_move_arith): Likewise.
27031         (*if_shift_move): Likewise.
27032         (*if_move_shift): Likewise.
27033         (*arm_movtas_ze): Likewise.
27034         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27035         redundancy and type attribute.
27036         (*thumb2_movsi_insn): Fix type attribute.
27037         (*thumb2_addsi_short): Likewise.
27038         (thumb2_addsi3_compare0): Likewise.
27039         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27040         attributes accordingly.
27042 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
27044         PR other/65911
27045         * function.c (pad_to_arg_alignment): Add parentheses.
27047 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
27049         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27050         libgcc/config/frv/elf-lib.h.
27052 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27054         * tree-call-cdce.c: Fix example in header comment.
27056 2015-04-28  Richard Biener  <rguenther@suse.de>
27058         PR tree-optimization/62283
27059         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27060         fails fatally and we are vectorizing a basic-block simply
27061         cause the child to be constructed piecewise.
27062         (vect_analyze_slp_cost_1): Adjust.
27063         (vect_detect_hybrid_slp_stmts): Likewise.
27064         (vect_bb_slp_scalar_cost): Likewise.
27065         (vect_get_constant_vectors): For piecewise constructed
27066         constants place them after the last def.
27067         (vect_get_slp_defs): Adjust.
27068         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27069         externals for basic-block vectorization.
27071 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27073         PR target/63503
27074         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27075         aarch64-*-*.
27076         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27077         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27078         (AARCH64_TUNE_FMA_STEERING): Likewise.
27079         * config/aarch64/aarch64-cores.def: Set
27080         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27081         FMUL/FMADD instructions.
27082         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27083         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
27084         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27085         * config/aarch64/cortex-a57-fma-steering.h: New file.
27086         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27088 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
27090         * gensupport.c (std_preds): Add missing codes to address_operand entry.
27092 2015-04-28  Richard Biener  <rguenther@suse.de>
27094         PR tree-optimization/65851
27095         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27096         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
27097         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
27098         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27099         (ccp_visit_phi_node): Adjust.
27100         (evaluate_stmt): For simplifications to SSA names return its
27101         lattice value if that isn't VARYING.  Return immediately when
27102         simplified to a constant.
27103         (visit_assignment): Adjust.
27104         (ccp_visit_stmt): Likewise.
27106 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27108         PR tree-optimization/65818
27109         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27110         evaluated.
27112 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27114         * calls.c (save_fixed_argument_area): Don't check
27115         ARGS_GROW_DOWNWARD with the preprocessor.
27116         (restore_fixed_argument_area): Likewise.
27117         (mem_overlaps_already_clobbered_arg_p): Likewise.
27118         (check_sibcall_argument_overlap): Likewise.
27119         (expand_call): Likewise.
27120         (emit_library_call_value_1): Likewise.
27121         (store_one_arg): Likewise.
27122         * function.c (assign_parms): Likewise.
27123         (locate_and_pad_parm): Likewise.
27124         (pad_to_arg_alignment): Likewise.
27125         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27127 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27129         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27130         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27131         * calls.c (save_fixed_argument_area): Don't chekc if
27132         ARGS_GROW_DOWNWARD is defined.
27133         (restore_fixed_argument_area): Likewise.
27134         (mem_overlaps_already_clobbered_arg_p): Likewise.
27135         (check_sibcall_argument_overlap): Likewise.
27136         (expand_call): Likewise.
27137         (emit_library_call_value_1): Likewise.
27138         (store_one_arg): Likewise.
27139         * function.c (assign_parms): Likewise.
27140         (locate_and_pad_parm): Likewise.
27141         (pad_to_arg_alignment): Likewise.
27142         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27144 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27146         * defaults.h (gen_epilogue): New function.
27147         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27148         defined.
27149         * cfgrtl.c (cfg_layout_finalize): Likewise.
27150         * df-scan.c: Likewise.
27151         * function.c (thread_prologue_and_epilogue_insns): Likewise.
27152         (reposition_prologue_and_epilogue_notes): Likewise.
27153         * reorg.c (find_end_label): Likewise.
27154         * toplev.c: Likewise.
27156 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27158         * bb-reorder.c (HAVE_return): Don't check if its undefined.
27159         * defaults.h (gen_simple_return): New function.
27160         (gen_simple_return): Likewise.
27161         (HAVE_return): Add default definition to false.
27162         (HAVE_simple_return): Likewise.
27163         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27164         HAVE_return and HAVE_simple_return are defined.
27165         * function.c (gen_return_pattern): Likewise.
27166         (convert_jumps_to_returns): Likewise.
27167         (thread_prologue_and_epilogue_insns): Likewise.
27168         * reorg.c (find_end_label): Likewise.
27169         (dbr_schedule): Likewise.
27170         * shrink-wrap.c: Likewise.
27171         * shrink-wrap.h: Likewise.
27173 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27175         * defaults.h (EPILOGUE_USES): Add default definition of false.
27176         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27177         * resource.c (init_resource_info): Likewise.
27179 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27181         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27182         to false.
27183         * dwarf2out.c (field_byte_offset): REmove check if
27184         PCC_BITFIELD_TYPE_MATTERS is defined.
27185         * stor-layout.c (layout_decl): Likewise.
27186         (update_alignment_for_field): Likewise.
27187         (place_field): Likewise.
27189 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27191         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27192         true.
27193         * regrename.c (check_new_reg_p): Remove check if
27194         HARD_REGNO_RENAME_OK is defined.
27195         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27197 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27199         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27200         * cse.c (fold_rtx): Likewise.
27201         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27202         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27203         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27204         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27205         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27206         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27207         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27208         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27209         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27210         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27211         * Likewise.
27212         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27213         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27214         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27215         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27216         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27217         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27218         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27219         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27220         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27221         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27222         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27223         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27224         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27225         * doc/tm.texi: Regenerate.
27226         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27227         either true or false.
27229 2015-04-27  Jeff Law  <law@redhat.com>
27231         PR tree-optimization/65217
27232         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27233         of them has a single use, make sure it is the LHS of the implied
27234         copy.
27236 2015-04-28  Alan Modra  <amodra@gmail.com>
27238         PR target/65810
27239         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27240         (offsettable_ok_by_alignment): Use minimum of decl and toc
27241         pointer alignment.  Replace dead code with assertion.
27242         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
27243         case if size exceeds toc pointer alignment.
27244         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27245         (rs6000_emit_move): Likewise.
27246         * configure.ac: Add linker toc pointer alignment check.
27247         * configure: Regenerate.
27248         * config.in: Regenerate.
27250 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
27252         * config.gcc: Add h8300-*-linux.
27253         * config/h8300/linux.h: New.
27254         * config/h8300/t-linux: New.
27255         * config/h8300/h8300.c (h8300_option_override): Normal mode
27256         is not supported for h8300-*-linux.
27257         (h8300_file_start): Target priority change.
27258         (get_shift_alg): Likewise.
27259         (h8300_shift_need_scratch_p): Likewise.
27260         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27261         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27263 2015-04-27  Caroline Tice  <cmtice@google.com>
27265         * final.c (final_scan_insn):  Output cold_function_name as function
27266         type.
27267         * varasm.c (cold_function_name):  Make global.
27268         (assemble_start_function):  Re-set cold_function_name.
27269         (assemble_end_function): Output cold partition size.
27270         * varasm.h (cold_function_name):  Declare global.
27272 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
27274         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27275         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27276         constraint.
27277         (*movxi_internal_avx512f): Ditto.
27278         (define_split): Check for xmm16+, when splitting scalar float_extend.
27279         (*extendsfdf2_mixed): Use "v" constraint.
27280         (define_split): Check for xmm16+, when splitting scalar float_truncate.
27281         (*truncdfsf_fast_sse): Use "v" constraint.
27282         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27283         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27284         (define_peephole2): Check for xmm16+, when converting scalar
27285         float_truncate.
27286         (define_peephole2): Check for xmm16+, when converting scalar
27287         float_extend.
27288         (*fop_<mode>_comm_mixed): Use "v" constraint.
27289         (*fop_<mode>_comm_sse): Ditto.
27290         (*fop_<mode>_1_mixed): Ditto.
27291         (*sqrt<mode>2_sse): Ditto.
27292         (*ieee_s<ieee_maxmin><mode>3): Ditto.
27294 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27296         * combine.c (simplify_if_then_else): Use std::swap instead
27297         of manually swapping.
27298         (known_cond): Likewise.
27299         (simplify_comparison): Likewise.
27301 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
27303         PR target/64579
27304         * config/rs6000/htm.md: Remove all define_expands.
27305         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27306         UNSPECV_HTM_TABORTWCI): Remove.
27307         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27308         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27309         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27310         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27311         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27312         tabortwci_internal): Remove define_insns.
27313         (tabort<wd>c, tabort<wd>ci): New define_insns.
27314         (tabort): Use gpc_reg_operand.
27315         (tcheck): Remove operand.
27316         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27317         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27318         expected value.
27319         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27320         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
27321         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27322         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27323         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27324         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27325         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27326         (tcheck): Remove builtin argument.
27327         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27328         not TARGET_64BIT.
27329         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
27330         tabortdc and tabortdci builtins when not in 64-bit mode.
27331         Modify code to handle the loss of the HTM define_expands.
27332         Emit code to copy the CR register to TARGET.
27333         (htm_init_builtins): Modify code to handle the loss of the HTM
27334         define_expands.
27335         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27336         (RS6000_BTC_64BIT): Likewise.
27337         (RS6000_BTC_CR): New macro.
27338         * doc/extend.texi: Update documentation for htm builtins.
27340 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27342         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27343         of manually swapping.
27344         (simplify_associative_operation): Likewise.
27345         (simplify_binary_operation): Likewise.
27346         (simplify_plus_minus): Likewise.
27347         (simplify_relational_operation): Likewise.
27348         (simplify_ternary_operation): Likewise.
27350 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
27352         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27353         (xs_hi_nonmemory_operand): Remove error.
27354         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27355         general_operand rather than xs_hi_general_operand.
27357 2015-04-27  Richard Biener  <rguenther@suse.de>
27359         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27360         (record_equivalences_from_stmt): Valueize rhs.
27361         (record_equality): Canonicalize x and y order via
27362         tree_swap_operands_p.  Do not swap operands for same loop depth.
27364 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
27366         PR target/65296
27367         PR target/65895
27368         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27369         Add hint how to use own spec file.
27371 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
27373         PR tree-optimization/65875
27374         * tree-vrp.c (update_value_range): If in is_new case setting
27375         old_vr to VR_VARYING, also set new_vr to it.  Remove
27376         old_vr->type == VR_VARYING test.
27377         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27378         SSA_PROP_INTERESTING if update_value_range returned true,
27379         but new range is VR_VARYING.
27381 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27383         * combine.c (sign_extend_short_imm): New.
27384         (set_nonzero_bits_and_sign_copies): Use above new function for sign
27385         extension of src short immediate.
27386         (reg_nonzero_bits_for_combine): Likewise for tem.
27388 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27390         * stor-layout.c (self_referential_component_ref_p): New predicate.
27391         (copy_self_referential_tree_r): Use it.
27392         (self_referential_size): Punt for simple operations directly involving
27393         self-referential component references.
27394         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27396 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27398         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27400 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
27402         * vec.h (vec): Make splice arguments const.  Update definitions
27403         accordingly.
27405 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
27407         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27408         alternatives.
27410 2015-04-26  Tom de Vries  <tom@codesourcery.com>
27412         PR tree-optimization/65826
27413         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27415 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
27417         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27418         (*madd3<mode>): Ditto.
27419         (*msub4<mode>): Ditto.
27420         (*msub3<mode>): Ditto.
27421         (*nmadd4<mode>): Ditto.
27422         (*nmadd3<mode>): Ditto.
27423         (*nmadd4<mode>_fastmath): Ditto.
27424         (*nmadd3<mode>_fastmath): Ditto.
27425         (*nmsub4<mode>): Ditto.
27426         (*nmsub3<mode>): Ditto.
27427         (*nmsub4<mode>_fastmath): Ditto.
27428         (*nmsub3<mode>_fastmath): Ditto.
27430 2015-04-24  Jason Merrill  <jason@redhat.com>
27432         PR c++/50800
27433         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27434         down when building TYPE_CANONICAL.
27435         (build_pointer_type_for_mode): Likewise.
27437 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
27439         * genrecog.c (validate_pattern): Check matching constraint refers
27440         to a lower numbered operand.
27442 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27444         PR target/65849
27445         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
27446         save to independent variables use the Save attribute.  This will
27447         allow these options to be modified with the #pragma/attribute
27448         target support.
27449         (-mallow-movmisalign): Likewise.
27450         (-mallow-df-permute): Likewise.
27451         (-msched-groups): Likewise.
27452         (-malways-hint): Likewise.
27453         (-malign-branch-targets): Likewise.
27454         (-mvectorize-builtins): Likewise.
27455         (-msave-toc-indirect): Likewise.
27457         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
27458         can be set via the #pragma/attribute target support.
27459         (rs6000_opt_vars): Likewise.
27460         (rs6000_inner_target_options): If VSX was set, also set
27461         -mno-avoid-indexed-addresses.
27463 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27465         * config/arm/iterators.md (shiftable_ops): Rename to...
27466         (SHIFTABLE_OPS): ... This.  Update use in comments.
27467         (ior_xor): Rename to...
27468         (IOR_XOR): ... This.
27469         (vqh_ops): Rename to...
27470         (VQH_OPS): ... This.
27471         (vqhs_ops): Rename to...
27472         (VQHS_OPS): ... This.
27473         (rshifts): Rename to...
27474         (RSHIFTS): ... This.
27475         (returns): Rename to...
27476         (RETURNS): ... This.
27477         * config/arm/arm.md: Update uses of the above.
27478         * config/arm/neon.md: Likewise.
27480 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27482         * config.host (case ${host}): Add aarch64*-*-linux case.
27483         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
27484         fields to all the cores.
27485         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
27486         Add MCPU_MTUNE_NATIVE_SPECS.
27487         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
27488         field to all extensions.
27489         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
27490         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
27491         Adjust definition of AARCH64_OPT_EXTENSION.
27492         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
27493         (MCPU_MTUNE_NATIVE_SPECS): Define.
27494         * config/aarch64/driver-aarch64.c: New file.
27495         * config/aarch64/x-arch64: New file.
27496         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
27497         -mtune and -march.
27499 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27500             Wei Mi  <wmi@google.com>
27502         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
27503         * config/i386/i386.c (extract_base_offset_in_addr): New function.
27504         (ix86_operands_ok_for_move_multiple): Ditto.
27505         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
27506         (movlpd/movhpd to movupd peephole2): Ditto.
27508 2015-04-24  Marek Polacek  <polacek@redhat.com>
27510         PR c/61534
27511         * input.h (from_macro_expansion_at): Define.
27513         PR c/63357
27514         * doc/invoke.texi: Update description of -Wlogical-op.
27516 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27518         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
27519         ternary operator in fprintf and harmonize spacing.
27521 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27523         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
27524         Mark operand1 commutative.
27526 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27528         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
27529         input operands in memory.
27530         (*vec_concatv2si_sse4_1): Ditto.
27531         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
27532         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
27533         register_operand.
27534         (vec_extract_hi_v32hi): Ditto.
27535         (vec_extract_hi_v64hi): Ditto.
27536         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
27538 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27539             Steven Bosscher <steven@gcc.gnu.org>
27541         PR rtl-optimization/34503
27542         * cprop.c (cprop_reg_p): New.
27543         (hash_scan_set): Use above function to check if register can be
27544         propagated.
27545         (find_avail_set): Return up to two sets, one whose source is a
27546         register and one whose source is a constant.  Sets are returned in an
27547         array passed as parameter rather than as a return value.
27548         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
27549         sets returned by find_avail_set, starting with the one whose source is
27550         a constant. Use cprop_reg_p to check if register can be propagated.
27551         (do_local_cprop): Use cprop_reg_p to check if register can be
27552         propagated.
27553         (implicit_set_cond_p): Likewise.
27555 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27557         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
27558         (sem_function::equals): IGNORED_NODES parameter is now unused;
27559         update call of equals_private.
27560         (sem_function::equals_private): Do not call equals_wpa; skip
27561         gimple body matching if there is no body.
27562         (sem_function::init): Add logic to hash tthunk info.
27563         (sem_function::parse): Also parse thunks.
27564         * ipa-icf.h (equals_private): Update declaration.
27566 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27568         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
27569         asterisk from name so this can be generated directly.
27570         (*altivec_stvx_<mode>_internal): Likewise.
27571         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
27572         that this is never called during or after reload/lra.
27573         (rs6000_frame_related): Remove split_reg
27574         argument and logic that references it.
27575         (emit_frame_save): Remove last parameter from call to
27576         rs6000_frame_related.
27577         (rs6000_emit_prologue): Remove last parameter from eight calls to
27578         rs6000_frame_related.  Force generation of stvx instruction for
27579         Altivec register saves.  Remove split_reg handling, which is no
27580         longer needed.
27581         (rs6000_emit_epilogue):  Force generation of lvx instruction for
27582         Altivec register restores.
27584 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27586         * config/rs6000/rs6000.opt (mcrypto): Change option description to
27587         match category changes in ISA 2.07B.
27589 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27591         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
27592         iterators.
27593         (cmp_op, cmp_type): New code attributes.
27594         (NEON_VCMP, NEON_VACMP): New int iterators.
27595         (cmp_op_unsp): New int attribute.
27596         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
27597         (neon_vceq<mode>): Delete.
27598         (neon_vc<cmp_op><mode>_insn): New pattern.
27599         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
27600         (neon_vcgeu<mode>): Delete.
27601         (neon_vcle<mode>): Likewise.
27602         (neon_vclt<mode>: Likewise.
27603         (neon_vcage<mode>): Likewise.
27604         (neon_vcagt<mode>): Likewise.
27605         (neon_vca<cmp_op><mode>): New define_expand.
27606         (neon_vca<cmp_op><mode>_insn): New pattern.
27607         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
27609 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27611         * tree.h (attribute_value_equal): Declare.
27612         * tree.c (attribute_value_equal): Export.
27614 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27616         * ipa-icf.c (sem_item::compare_attributes): New function.
27617         (sem_item::compare_referenced_symbol_properties): Compare variable
27618         attributes.
27619         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
27620         (sem_function::param_used_p): New function.
27621         (sem_function::equals_wpa): Fix attribute comparsion; match
27622         parameter type codes; do not compare paremter flags when
27623         they are not used; compare edge flags; compare indirect calls.
27624         (sem_item::update_hash_by_addr_refs): Hash reference type.
27625         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
27626         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
27627         reference use type.
27628         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
27629         * ipa-icf.h (compare_attributes, param_used_p): Declare.
27631 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27633         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
27634         cleanup.
27635         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
27636         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
27637         (sem_item::compare_referenced_symbol_properties): New.
27638         (sem_item::hash_referenced_symbol_properties): New.
27639         (sem_item::compare_cgraph_references): Rename to ...
27640         (sem_item::compare_symbol_references): ... this one; use
27641         compare_referenced_symbol_properties.
27642         (sem_function::equals_wpa): Do not compare
27643         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
27644         DECL_IS_OPERATOR_NEW; compare pointer sizes.
27645         (sem_item::update_hash_by_addr_refs): Call
27646         hash_referenced_symbol_properties.
27647         (sem_item::update_hash_by_local_refs): Cleanup.
27648         (sem_function::merge): Do not mix up symbol properties.
27649         (sem_variable::equals_wpa): Use compare_symbol_references.
27650         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
27651         (sem_item::hash_referenced_symbol_properties): New.
27652         (sem_item::compare_symbol_references): New.
27653         (sem_item::compare_cgraph_references): Remove.
27655 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
27657         PR target/26702
27658         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
27659         Emit size of local.
27661 2015-04-23  Nick Clifton  <nickc@redhat.com>
27663         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
27664         ATTRIBUTE_UNUSED to x parameter.
27665         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
27667 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27669         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
27670         TARGET_CRYPTO to TARGET_P8_VECTOR>
27671         (crypto_vpermxor_<mode>): Likewise.
27672         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
27673         (BU_CRYPTO_3A): Likewise.
27674         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
27675         (BU_CRYPTO_OVERLOAD_3A): New #define.
27676         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
27677         (VPMSUMH): Likewise.
27678         (VPMSUMW): Likewise.
27679         (VPMSUMD): Likewise.
27680         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
27681         (VPERMXOR_V4SI): Likewise.
27682         (VPERMXOR_V8HI): Likewise.
27683         (VPERMXOR_V16QI): Likewise.
27684         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
27685         BU_CRYPTO_OVERLOAD_2A.
27686         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
27687         BU_CRYPTO_OVERLOAD_3A.
27688         * config/rs6000/rs6000.opt (mcrypto): Change description of
27689         option.
27691 2015-04-23  Richard Biener  <rguenther@suse.de>
27693         * passes.def: Remove copy propagation passes run directly after CCP.
27694         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
27695         SSA names.
27696         (ccp_visit_phi_node): Rework to handle first executable edge
27697         specially.
27699 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
27701         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27702         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27703         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27704         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
27705         (thumb_legimitimize_reload_address): Remove.
27706         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
27707         Remove.
27708         (thumb_legimitimize_reload_address): Remove.
27710 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27712         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
27714 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27716         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
27717         MAX_LDM_STM_OPS.
27718         (store_multiple): Likewise.
27720 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27722         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
27723         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
27724         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
27725         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
27726         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
27727         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
27728         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
27729         Specify issue_rate value.
27730         (arm_issue_rate): Look up issue rate from tuning structs. Remove
27731         large switch statement.
27732         (arm_marvell_pj4_tune): New struct.
27733         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
27734         struct.
27736 2015-04-23  Richard Biener  <rguenther@suse.de>
27738         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
27739         (vect_find_last_store_in_slp_instance): Rename to ...
27740         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
27741         (vect_analyze_slp_cost_1): Use vector_load for constant defs
27742         and vec_construct for external defs when estimating prologue cost.
27743         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
27744         Compute costs here only when vectorizing loops.
27745         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
27746         have been determined.
27747         (vect_schedule_slp_instance): Simplify vectorized code placement
27748         and prepare for in-BB external defs.
27749         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
27750         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
27751         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
27752         guard.
27753         (vect_model_load_cost): Likewise.
27754         (vectorizable_store): Instead add it here.
27755         (vectorizable_load): Likewise.
27756         (vect_is_simple_use): Dump def type textually.
27758 2015-04-23  Richard Biener  <rguenther@suse.de>
27760         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
27761         * cfgloop.c (verify_loop_structure): Verify the root loop node.
27762         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
27763         instead of get_eh_region_from_lp_number.
27764         * loop-init.c (fix_loop_structure): If we removed a loop, reset
27765         the SCEV cache.
27767 2015-04-23  Anton Blanchard  <anton@samba.org>
27769         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
27770         need for -mprofile-kernel to save LR to stack.
27772 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27774         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
27775         adjustments.
27776         (insn_is_swappable_p): Return 1 for a convert from double to
27777         single precision when all of its uses are splats of BE element
27778         zero.
27780 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
27782         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
27784 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27786         PR target/65456
27787         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
27788         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
27789         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
27790         option.
27791         (rs6000_builtin_mask_for_load): Return 0 for targets with
27792         efficient unaligned VSX accesses so that the vectorizer will use
27793         direct unaligned loads.
27794         (rs6000_builtin_support_vector_misalignment): Always return true
27795         for targets with efficient unaligned VSX accesses.
27796         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
27797         stores on targets with efficient unaligned VSX accesses is almost
27798         always the same as the cost of an aligned load or store, so model
27799         it that way.
27800         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
27801         unaligned vectors if we have efficient unaligned VSX accesses.
27802         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
27803         undocumented option.
27805 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27807         Revert:
27808         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
27810         * config.gcc (LIBC_MUSL): New tm_defines macro.
27811         * config/linux.h (OPTION_MUSL): Define.
27812         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27813         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27814         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27816         * config/linux.opt (mmusl): New option.
27817         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27818         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27820         * configure: Regenerate.
27822 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
27824         * config.gcc (LIBC_MUSL): New tm_defines macro.
27825         * config/linux.h (OPTION_MUSL): Define.
27826         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27827         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27828         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27830         * config/linux.opt (mmusl): New option.
27831         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27832         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27834         * configure: Regenerate.
27836 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
27838         * doc/invoke.texi (-fsanitize-sections): Update description.
27839         * asan.c (set_sanitized_sections): Parse incoming arg.
27840         (section_sanitized_p): Support wildcards.
27842 2015-04-22  Tom de Vries  <tom@codesourcery.com>
27844         PR tree-optimization/65823
27845         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
27846         equality between ap_copy and ap.
27848 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27850         PR target/47098
27851         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
27853 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27855         PR target/47122
27856         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
27858 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27860         PR target/55144
27861         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
27862         remove already contained t-files.
27864 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27866         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
27867         Remove unneeded forward declarations.
27868         (suitable_for_tail_call_opt_p): Commentary typo fix.
27870 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27872         * varasm.c (emit_bss): Remove redundant guard.
27874 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27876         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
27878 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27880         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
27882 2015-04-22  Hale Wang  <hale.wang@arm.com>
27883             Terry Guo  <terry.guo@arm.com>
27885         PR rtl-optimization/64818
27886         * combine.c (can_combine_p): Don't combine user-specified
27887         register if it is in an asm input.
27889 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
27891         PR ipa/65076
27892         * passes.def (early_optimizations): Add pass_dse.
27894 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27896         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
27897         * reorg.c (redundant_insn): Remove ifdef
27898         INSN_REFERENCES_ARE_DELAYED.
27899         * resource.c (mark_referenced_resources): Likewise.
27901 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27903         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
27904         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
27905         * resource.c (mark_set_resources): Likewise.
27907 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27909         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
27910         * cfgcleanup.c (flow_find_cross_jump): Likewise.
27911         (flow_find_head_matching_sequence): Likewise.
27912         (try_head_merge_bb): Likewise.
27913         * combine.c (can_combine_p): Likewise.
27914         (try_combine): Likewise.
27915         (distribute_notes): Likewise.
27916         * df-problems.c (can_move_insns_across): Likewise.
27917         * final.c (final): Likewise.
27918         * gcse.c (insert_insn_end_basic_block): Likewise.
27919         * ira.c (find_moveable_pseudos): Likewise.
27920         * reorg.c (try_merge_delay_insns): Likewise.
27921         (fill_simple_delay_slots): Likewise.
27922         (fill_slots_from_thread): Likewise.
27923         * sched-deps.c (sched_analyze_2): Likewise.
27925 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27927         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
27928         PIC_OFFSET_TABLE_REGNUM.
27930 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27932         * alias.c (init_alias_target): Remove ifdef
27933         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
27934         * df-scan.c (df_insn_refs_collect): Likewise.
27935         (df_get_regular_block_artificial_uses): Likewise.
27936         (df_get_eh_block_artificial_uses): Likewise.
27937         (df_get_entry_block_def_set): Likewise.
27938         (df_get_exit_block_use_set): Likewise.
27939         * emit-rtl.c (gen_rtx_REG): Likewise.
27940         * ira.c (ira_setup_eliminable_regset): Likewise.
27941         * reginfo.c (init_reg_sets_1): Likewise.
27942         * regrename.c (rename_chains): Likewise.
27943         * reload1.c (reload): Likewise.
27944         (eliminate_regs_in_insn): Likewise.
27945         * resource.c (mark_referenced_resources): Likewise.
27946         (init_resource_info): Likewise.
27948 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27950         * defaults.h (MASK_RETURN_ADDR): New definition.
27951         * except.c (expand_builtin_extract_return_addr): Remove ifdef
27952         MASK_RETURN_ADDR.
27954 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27956         * defaults.h (RETURN_ADDR_OFFSET): New definition.
27957         * except.c (expand_builtin_extract_return_addr): Remove ifdef
27958         RETURN_ADDR_OFFSET.
27959         (expand_builtin_frob_return_addr): Likewise.
27961 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27963         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
27964         (try_redirect_by_replacing_jump): Likewise.
27965         (rtl_tidy_fallthru_edge): Likewise.
27966         * combine.c (insn_a_feeds_b): Likewise.
27967         (find_split_point): Likewise.
27968         (simplify_set): Likewise.
27969         * cprop.c (cprop_jump): Likewise.
27970         * cse.c (cse_extended_basic_block): Likewise.
27971         * df-problems.c (can_move_insns_across): Likewise.
27972         * function.c (emit_use_return_register_into_block): Likewise.
27973         * haifa-sched.c (sched_init): Likewise.
27974         * ira.c (find_moveable_pseudos): Likewise.
27975         * loop-invariant.c (find_invariant_insn): Likewise.
27976         * lra-constraints.c (curr_insn_transform): Likewise.
27977         * postreload.c (reload_combine_recognize_const_pattern):
27978         * Likewise.
27979         * reload.c (find_reloads): Likewise.
27980         * reorg.c (delete_scheduled_jump): Likewise.
27981         (steal_delay_list_from_target): Likewise.
27982         (steal_delay_list_from_fallthrough): Likewise.
27983         (redundant_insn): Likewise.
27984         (fill_simple_delay_slots): Likewise.
27985         (fill_slots_from_thread): Likewise.
27986         (delete_computation): Likewise.
27987         * sched-rgn.c (add_branch_dependences): Likewise.
27989 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27991         * genconfig.c (main): Always define HAVE_cc0.
27992         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
27993         HAVE_cc0.
27994         * cfgcleanup.c (flow_find_cross_jump): Likewise.
27995         (flow_find_head_matching_sequence): Likewise.
27996         (try_head_merge_bb): Likewise.
27997         * cfgrtl.c (rtl_merge_blocks): Likewise.
27998         (try_redirect_by_replacing_jump): Likewise.
27999         (rtl_tidy_fallthru_edge): Likewise.
28000         * combine.c (do_SUBST_MODE): Likewise.
28001         (insn_a_feeds_b): Likewise.
28002         (combine_instructions): Likewise.
28003         (can_combine_p): Likewise.
28004         (try_combine): Likewise.
28005         (find_split_point): Likewise.
28006         (subst): Likewise.
28007         (simplify_set): Likewise.
28008         (distribute_notes): Likewise.
28009         * cprop.c (cprop_jump): Likewise.
28010         * cse.c (cse_extended_basic_block): Likewise.
28011         * df-problems.c (can_move_insns_across): Likewise.
28012         * final.c (final): Likewise.
28013         (final_scan_insn): Likewise.
28014         * function.c (emit_use_return_register_into_block): Likewise.
28015         * gcse.c (insert_insn_end_basic_block): Likewise.
28016         * haifa-sched.c (sched_init): Likewise.
28017         * ira.c (find_moveable_pseudos): Likewise.
28018         * loop-invariant.c (find_invariant_insn): Likewise.
28019         * lra-constraints.c (curr_insn_transform): Likewise.
28020         * optabs.c (prepare_cmp_insn): Likewise.
28021         * postreload.c (reload_combine_recognize_const_pattern):
28022         * Likewise.
28023         * reload.c (find_reloads): Likewise.
28024         (find_reloads_address_1): Likewise.
28025         * reorg.c (delete_scheduled_jump): Likewise.
28026         (steal_delay_list_from_target): Likewise.
28027         (steal_delay_list_from_fallthrough): Likewise.
28028         (try_merge_delay_insns): Likewise.
28029         (redundant_insn): Likewise.
28030         (fill_simple_delay_slots): Likewise.
28031         (fill_slots_from_thread): Likewise.
28032         (delete_computation): Likewise.
28033         (relax_delay_slots): Likewise.
28034         * sched-deps.c (sched_analyze_2): Likewise.
28035         * sched-rgn.c (add_branch_dependences): Likewise.
28037 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28039         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28040         that is trivially ded on non cc0 targets.
28041         (simplify_set): Likewise.
28042         (mark_used_regs_combine): Likewise.
28043         * cse.c (new_basic_block): Likewise.
28044         (fold_rtx): Likewise.
28045         (cse_insn): Likewise.
28046         (cse_extended_basic_block): Likewise.
28047         (set_live_p): Likewise.
28048         * rtlanal.c (canonicalize_condition): Likewise.
28049         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28051 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28053         * conditions.h: Define macros even if HAVE_cc0 is undefined.
28054         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28055         * final.c: Likewise.
28056         * jump.c: Likewise.
28057         * recog.c: Likewise.
28058         * recog.h: Declare functions even when HAVE_cc0 is undefined.
28059         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28061 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28063         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28064         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28065         * builtins.c (expand_builtin): Remove check if
28066         EH_RETURN_DATA_REGNO is defined.
28067         * df-scan.c (df_bb_refs_collect): Likewise.
28068         (df_get_exit_block_use_set): Likewise.
28069         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28070         * ira-lives.c (process_bb_node_lives): Likewise.
28071         * lra-lives.c (process_bb_lives): Likewise.
28073 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28075         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28076         FIRST_PSEUDO_REG): New.
28077         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28078         (ARG_POINTER_REGNUM): Define to ARGP_REG.
28079         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28080         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28081         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28082         (FIRST_INT_REG): New.
28083         (LAST_INT_REG): New.
28084         (FIRST_*_REG): Define using *_REG.
28085         (LAST_*_REG): Ditto.
28086         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28087         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28088         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28090 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28092         * expmed.c: (synth_mult): Only assume overlapping
28093         shift with previous steps in alg_sub_t_m2 case.
28095 2015-04-21  Richard Biener  <rguenther@suse.de>
28097         PR tree-optimization/65650
28098         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28099         transitions involving copies.
28100         (set_lattice_value): Adjust for copy lattice state.
28101         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28102         if that doesn't dominate the merge point.
28103         (bit_value_unop): Adjust what we treat as varying mask.
28104         (bit_value_binop): Likewise.
28105         (bit_value_assume_aligned): Likewise.
28106         (evaluate_stmt): When we simplified to a SSA name record a copy
28107         instead of dropping to varying.
28108         (visit_assignment): Simplify.
28110         * gimple-match.h (gimple_simplify): Add another callback.
28111         * gimple-fold.c (fold_stmt_1): Adjust caller.
28112         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28113         for the 2nd callback.
28114         * gimple-match-head.c (gimple_simplify): Add a callback that is
28115         used to valueize the stmt operands and use it that way.
28117 2015-04-21  Richard Biener  <rguenther@suse.de>
28119         PR tree-optimization/65788
28120         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28122 2015-04-21  Richard Biener  <rguenther@suse.de>
28124         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28125         vec_construct cost by vec_stmt_cost.
28127 2015-04-21  Richard Biener  <rguenther@suse.de>
28129         * cfghooks.h (create_basic_block): Replace with two overloads
28130         for RTL and GIMPLE.
28131         (split_block): Likewise.
28132         * cfghooks.c (split_block): Rename to ...
28133         (split_block_1): ... this.
28134         (split_block): Add two type-safe overloads for RTL and GIMPLE.
28135         (split_block_after_labels): Call split_block_1.
28136         (create_basic_block): Rename to ...
28137         (create_basic_block_1): ... this.
28138         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28139         (create_empty_bb): Call create_basic_block_1.
28140         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28141         split_block_after_labels.
28142         * omp-low.c (expand_parallel_call): Likewise.
28143         (expand_omp_target): Likewise.
28144         (simd_clone_adjust): Likewise.
28145         * tree-chkp.c (chkp_get_entry_block): Likewise.
28146         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28147         create_basic_block overload.
28148         (cgraph_node::expand_thunk): Likewise.
28149         * tree-cfg.c (make_blocks): Likewise.
28150         (handle_abnormal_edges): Likewise.
28151         * tree-inline.c (copy_bb): Likewise.
28153 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28155         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28156         New pattern.
28157         (*xor_one_cmplsidi3_ze): Likewise.
28159 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28161         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28162         use df_remove_problem rather than manually removing problems, leaving
28163         holes in df->problems_in_order[].
28165 2015-04-21  Tom de Vries  <tom@codesourcery.com>
28167         PR tree-optimization/65802
28168         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28170 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28172         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28173         Increase to 128.
28174         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28175         at '.'.  Assert that there's enough space for everything.
28177 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28179         PR tree-optimization/64950
28180         Revert:
28181         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
28183         PR target/41089
28184         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28185         as volatile.
28187 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
28189         PR rtl-optimization/64916
28190         * cfgcleanup.c (values_equal_p): New function.
28191         (can_replace_by): Use it.
28193 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
28195         PR c++/65801
28196         * doc/invoke.texi ([-Wnarrowing]): Update.
28198 2015-04-20  Jeff Law  <law@redhat.com>
28200         PR tree-optimization/65658
28201         * tree-ssa-threadupdate.c (redirection_block_p): Remove
28202         redundant test for GIMPLE_ASSIGN in last change.
28204 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
28206         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28207         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28208         (legitimize_tls_address): Ditto.
28209         (ix86_expand_move): Ditto.
28210         (ix86_expand_binary_operator): Remove reload_in_progress checks.
28211         (ix86_expand_unary_operator): Ditto.
28212         * config/i386/predicates.md (index_register_operand): Ditto.
28214 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
28216         * reorg.c (try_merge_delay_insns): Improve correctness checking
28217         for targets with multiple delay slots.
28219 2015-04-20  Jeff Law  <law@redhat.com>
28221         PR tree-optimization/65658
28222         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28223         statements too.
28225 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
28227         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28228         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28229         Delete.
28231 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
28233         PR debug/65807
28234         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28236 2015-04-20  Richard Biener  <rguenther@suse.de>
28238         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28239         * gimple-fold.c (gimple_build_valueize): New function.
28240         (gimple_build): Always use gimple_build_valueize as valueize hook.
28242 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
28244         PR target/64134
28245         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28246         and overwrite variable parts if <= 1/2 the elements are variable.
28248 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28250         PR rtl-optimization/65805
28251         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28252         Don't use difference of offset and previous offset if
28253         update_sp_offset is non-zero.
28254         (eliminate_regs_in_insn): Ditto.
28255         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28256         lra_eliminate_regs_1 call.
28257         * lra-constraints.c (get_equiv_with_elimination): Ditto.
28259 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
28261         * hash-table.h: Remove version of hash_table that stored value_type *.
28262         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28263         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28264         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28265         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28266         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28267         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28268         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28269         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28270         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28271         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28272         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28273         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28274         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28275         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28276         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28277         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28279 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28280             Jakub Jelinek  <jakub@redhat.com>
28282         PR target/65787
28283         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28284         subsequent SH_NONE operand does not overwrite an existing *special
28285         value.
28286         (adjust_extract): Handle case where a vec_extract operation is
28287         wrapped in a PARALLEL.
28289 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28291         PR target/65780
28292         * config/i386/i386.c (ix86_binds_local_p): Define only if
28293         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28295 2015-04-17  Jeff Law  <law@redhat.com>
28297         PR tree-optimization/47679
28298         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28299         * tree-ssa-scopedtables.c: New file.
28300         * tree-ssa-scopedtables.h: New file.
28301         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28302         (const_and_copies): Change name/type.
28303         (record_const_or_copy): Move into tree-ssa-scopedtables.c
28304         (record_const_or_copy_1): Similarly.
28305         (restore_vars_to_original_value): Similarly.
28306         (pass_dominator::execute): Create and destroy const_and_copies table.
28307         (thread_across_edge): Update passing of const_and_copies.
28308         (record_temporary_equivalence): Use method calls rather than
28309         manipulating const_and_copies directly.
28310         (record_equality, cprop_into_successor_phis): Similarly.
28311         (dom_opt_dom_walker::before_dom_children): Similarly.
28312         (dom_opt_dom_walker::after_dom_children): Similarly.
28313         (eliminate_redundant_computations): Similarly.
28314         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28315         (record_temporary_equivalence): Likewise.
28316         (invalidate_equivalences): Likewise.
28317         (record_temporary_equivalences_from_phis): Update due to type
28318         change of const_and_copies.  Use method calls rather than
28319         manipulating the stack directly.
28320         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28321         (thread_through_normal_block, thread_across_edge): Likewise.
28322         (thread_across_edge): Likewise.
28323         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28324         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
28325         of equiv_stack.
28326         (identify_jump_threads): Update due to type change of equiv_stack.
28327         (finalize_jump_threads): Delete the equiv_stack when complete.
28329 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
28331         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28332         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28333         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28335 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
28337         PR target/65535
28338         * config.gcc: Exit with a comment when we do not have a major version
28339         number for the FreeBSD target.
28341 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28343         PR target/65689
28344         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28345         maybe_allows_mem bitfields.
28346         (maybe_allows_none_start, maybe_allows_none_end,
28347         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28348         maybe_allows_mem_end): New variables.
28349         (compute_maybe_allows): New function.
28350         (add_constraint): Use it to initialize maybe_allows_reg and
28351         maybe_allows_mem fields.
28352         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28353         is_address constraints such that those that allow neither mem nor
28354         reg come first, then those that only allow reg but not mem, then
28355         those that only allow mem but not reg, then the rest.
28356         (write_allows_reg_mem_function): New function.
28357         (write_tm_preds_h): Call it.
28358         * stmt.c (parse_output_constraint, parse_input_constraint): Use
28359         the generated insn_extra_constraint_allows_reg_mem function
28360         instead of always setting *allows_reg = true; *allows_mem = true;
28361         for unknown extra constraints.
28363 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28365         PR target/65780
28366         * output.h (default_binds_local_p_3): New.
28367         * varasm.c (default_binds_local_p_3): Make it public.  Take an
28368         argument to indicate if common symbol may be local.  If common
28369         symbol may be local, treat non-external variable as defined
28370         locally.
28371         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28372         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28373         * config/i386/i386.c (ix86_binds_local_p): New.
28374         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28375         ix86_binds_local_p.
28377 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28379         PR debug/65771
28380         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28381         trying mem_loc_descriptor on XEXP (rtl, 0).
28383 2015-04-17  Martin Liska  <mliska@suse.cz>
28385         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28386         Release symbol_compare_collection.
28387         * ipa-reference.c: Add TODO that a vector should be released.
28389 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28391         PR target/65296
28392         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28393         to new AVR-LibC file layout (bug #44574).
28394         (*avrlibc_devicelib): Same.
28395         * config/avr/avr-mcus.def: Adjust comments.
28396         * config/avr/avr.opt (nodevicelib): Adjust help.
28398 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
28400         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28402 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
28404         PR c++/64527
28405         * gimplify.c (gimplify_init_constructor): Always emit a
28406         side-effecting constructor.
28408 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28410         PR tree-optimization/64950
28411         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28412         in cfun->curr_properties.
28413         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28414         if we generate an IFN_VA_ARG.
28415         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28416         function if PROP_gimple_lva is not set in src function.
28418 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28419             Michael Matz  <matz@suse.de>
28421         PR tree-optimization/64950
28422         * gimple-iterator.c (update_modified_stmts): Remove static.
28423         * gimple-iterator.h (update_modified_stmts): Declare.
28424         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28425         (gimplify_va_arg_internal): New function.
28426         (gimplify_va_arg_expr): Use IFN_VA_ARG.
28427         * gimplify.h (gimplify_va_arg_internal): Declare.
28428         * internal-fn.c (expand_VA_ARG): New unreachable function.
28429         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28430         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28431         (expand_ifn_va_arg): New function.
28432         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28433         (pass_stdarg::execute): Call expand_ifn_va_arg.
28434         (pass_data_lower_vaarg): New pass_data.
28435         (pass_lower_vaarg): New gimple_opt_pass.
28436         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28437         (make_pass_lower_vaarg): New function.
28438         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28439         properties_required field.
28440         * passes.def (all_passes): Add pass_lower_vaarg.
28441         * tree-pass.h (PROP_gimple_lva): Add define.
28442         (make_pass_lower_vaarg): Declare.
28444 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28446         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
28447         * calls.c (call_expr_flags): Same.
28449 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28451         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
28452         (pass_stdarg::execute): ... here.
28454 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28455             Michael Matz  <matz@suse.de>
28457         * tree-cfg.c (make_blocks_1): Factor out of ...
28458         (make_blocks): ... here.
28459         (make_edges_bb): Factor out of ...
28460         (make_edges): ... here.
28461         (gimple_find_sub_bbs): New function.
28462         * tree-cfg.h (gimple_find_sub_bbs): Declare.
28464 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28466         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
28468 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
28470         * asan.c (set_sanitized_sections): New function.
28471         (section_sanitized_p): Ditto.
28472         (asan_protect_global): Optionally sanitize user-defined
28473         sections.
28474         * asan.h (set_sanitized_sections): Declare new function.
28475         * common.opt (fsanitize-sections): New option.
28476         * doc/invoke.texi (-fsanitize-sections): Document new option.
28477         * opts-global.c (handle_common_deferred_options): Handle new
28478         option.
28480 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28482         PR debug/65771
28483         * dwarf2out.c (loc_list_from_tree): Return NULL
28484         for DEBUG_EXPR_DECL.
28486 2015-04-17  Christian Bruel  <christian.bruel@st.com>
28488         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
28489         same attributes.
28491 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28493         * ira-color.c (setup_left_conflict_sizes_p): Do not process
28494         node itself when computing left conflict subnode size.
28496 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
28498         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
28499         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
28500         *fop_<mode>_1_sse using enabled attribute.  Use
28501         register_mixssei387nonimm_operand operand 1 predicate. Change
28502         alternative 3 constraints from "x" to "v".
28504 2015-04-16  Richard Biener  <rguenther@suse.de>
28506         PR tree-optimization/65774
28507         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
28508         bit-value tracking on.
28510 2015-04-16  Richard Biener  <rguenther@suse.de>
28512         PR tree-optimization/64277
28513         * tree-vrp.c (check_array_ref): Fix anti-range handling,
28514         simplify upper bound handling.
28515         (search_for_addr_array): Simplify.
28516         (check_array_bounds): Handle ADDR_EXPRs here.
28517         (check_all_array_refs): Simplify.
28519 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
28521         * config/i386/i386.c (print_reg): Rewrite function.
28523 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28525         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
28526         Invert the condition.
28528 2015-04-16  Renlin Li  <renlin.li@arm.com>
28530         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
28531         simplifications for UNSIGNED_FLOAT.
28533 2015-04-16  Nick Clifton  <nickc@redhat.com>
28535         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
28536         MUL_UNINIT.
28537         (enum rl78_cpu_type): New.
28538         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
28539         (umulhi3_shift_virt): Remove m constraint from operand 1.
28540         (umulqihi3_virt): Likewise.
28541         * config/rl78/rl78.c (rl78_option_override): Add code to process
28542         -mcpu and -mmul options.
28543         (rl78_alloc_physical_registers): Add code to handle divhi and
28544         divsi valloc attributes.
28545         (set_origin): Likewise.
28546         * config/rl78/rl78.h (RL78_MUL_G14): Define.
28547         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
28548         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
28549         __RL78_Gxx__.
28550         (ASM_SPEC): Pass -mcpu on to assembler.
28551         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
28552         (mulqi3_rl78): Likewise.
28553         (mulhi3_g13): Likewise.
28554         (mulhi3): Generate the G13 or G14 versions of the insn directly.
28555         (mulsi3): Likewise.
28556         (mulhi3_g14): Add clobbers of AX and BC.
28557         (mulsi3_g14): Likewise.
28558         (mulsi3_g13): Likewise.
28559         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
28560         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
28561         * config/rl78/rl78.opt (mmul): Initialise value to
28562         RL78_MUL_UNINIT.
28563         (mcpu): New option.
28564         (m13, m14, mrl78): New option aliases.
28565         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
28566         (MULTILIB_DIRNAMES): Add g13 and g14.
28567         * doc/invoke.texi: Document -mcpu and -mmul options.
28569 2015-04-16  Richard Biener  <rguenther@suse.de>
28571         * tree-ssa-ccp.c (likely_value): See if we have operands that
28572         are marked as never simulate again and return CONSTANT in this
28573         case.
28574         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
28575         not have any operands that will be simulated again as
28576         not being simulated again.
28578 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
28580         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
28581         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
28582         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
28583         attribute.
28584         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
28585         enabled attribute.
28586         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
28587         *float<SWI48:mode><MODEF:mode>2_sse.
28588         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
28589         enabled attribute.
28590         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
28591         enabled attribute.
28593 2015-04-15  Tom de Vries  <tom@codesourcery.com>
28595         PR other/65487
28596         * function.c (push_dummy_function): New function.
28597         (init_dummy_function_start): Use push_dummy_function.
28598         (pop_dummy_function): New function.  Factored out of ...
28599         (expand_dummy_function_end): ... here.
28600         * function.h (push_dummy_function, pop_dummy_function): Declare.
28601         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
28602         pop_dummy_function.
28603         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
28605 2015-04-15  Jeff Law  <law@redhat.com>
28607         PR tree-optimization/47679
28608         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
28609         need for forward declaration in upcoming changes.
28610         (record_conditions, record_edge_info): Likewise.
28612         PR rtl-optimization/42522
28613         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
28614         SIGN_EXTRACT as a whole object rather than simplifying
28615         its operand.
28617 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
28619         PR ipa/65765
28620         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
28621         and GIMPLE_PREDICT use break instead of return true. For
28622         GIMPLE_EH_DISPATCH, compare dispatch region.
28624 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
28626         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
28627         details about the implementation.  Make clear preference for
28628         __atomic builtins.  Reduce possibility of future change.
28630 2015-04-15  Nick Clifton  <nickc@redhat.com>
28632         * config/rx/rx.opt (mallow-string-insns): New option.
28633         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
28634         builtin if string instructions are denied.
28635         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
28636         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
28637         appropriate.
28638         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
28639         * config/rx/rx.md (movstr): Enable pattern only if string
28640         instructions are allowed.
28641         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
28642         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
28643         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
28644         (MULTILIB_DIRNAMES): Add no-strings.
28645         * doc/invoke.texi: Document -mno-allow-string-insns.
28647 2015-04-15  Alan Modra  <amodra@gmail.com>
28649         PR target/65408
28650         PR target/58744
28651         PR middle-end/36043
28652         * calls.c (load_register_parameters): Don't load past end of
28653         mem unless suitably aligned.
28655 2015-04-15  Nick Clifton  <nickc@redhat.com>
28657         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
28658         decrement instruction as being frame related.
28659         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
28660         based addresses.
28661         If zero extending a function address enclose the operation in
28662         %code(...).
28663         (rl78_preferred_reload_class): New function.
28664         (TARGET_PREFERRED_RELOAD_CLASS): Define.
28665         * config/rl78/rl78.md: Remove useless constraints in expanders.
28666         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
28667         (mulhi3_rl78): Likewise.
28668         (mulhi3_g13): Likewise.
28669         (mulsi3_rl78): Likewise.
28670         (es_addr): Move to before the multiply patterns.
28672 2015-04-15  Alan Modra  <amodra@gmail.com>
28674         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
28675         and sequence_stack.  Add seq.
28676         (seq_stack): Delete.
28677         * function.c (prepare_function_start): Don't access x_last_insn.
28678         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
28679         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
28680         * emit_rtl.c (start_sequence, push_topmost_sequence,
28681         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
28682         sequence accessors.
28683         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
28684         remove_insn): Likewise.  Simplify.
28685         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
28686         and pop_topmost_sequence.
28687         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
28688         debug insns.
28689         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
28691 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
28693         PR target/65729
28694         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
28695         the assertiion.
28697 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
28699         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
28700         (LEGACY_INT_REGNO_P): Ditto.
28701         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
28702         (ANY_MASK_REG_P): Remove.
28703         (BND_REG_P): Rename from ANY_BND_REG_P.
28704         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
28705         legacy integer registers.  Do not handle MMX_REG_P in a special way.
28706         Merge 64byte and 32byte SSE handling.
28708 2015-04-14  Nick Clifton  <nickc@redhat.com>
28710         * expr.c (expand_assignment): Force an address offset computation
28711         into a register before changing its mode.
28712         (expand_expr_real_1): Likewise.
28714 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
28716         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
28717         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
28718         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
28719         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
28720         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
28721         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
28722         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
28723         and __aarch64_vget_lane_any.
28725 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
28727         PR rtl-optimization/65761
28728         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
28729         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
28731 2015-04-14  Richard Biener  <rguenther@suse.de>
28733         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
28734         (graphite_can_represent_scev): Use POINTER_TYPE_P.
28736 2015-04-14  Richard Biener  <rguenther@suse.de>
28738         PR tree-optimization/65758
28739         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
28740         against -1.
28741         (ccp_lattice_meet): Likewise.
28742         (bit_value_unop): Likewise.
28743         (bit_value_binop): Likewise.
28744         (bit_value_assume_aligned): Likewise.
28746 2015-04-14  Christian Bruel  <christian.bruel@st.com>
28748         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
28749         function.
28751 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
28753         PR tree-optimization/63387
28754         * match.pd ((x unord x) | (y unord y) -> (x unord y),
28755         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
28757 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
28759         * config/i386/predicates.md (any_QIreg_operand): Rename from
28760         q_regs_operand.  Do not process subregs.
28761         (QIreg_operand): Use QI_REGNO_P predicate.
28762         (ext_QIreg_operand): Ditto.
28763         (ext_register_operand): Ditto.
28764         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
28765         (AND splitters): Ditto.
28766         (AND with -65536 splitter): Add SWI48 mode for operand 0.
28767         (AND with -256 splitter): Use any_QIreg_operand predicate and
28768         SWI248 mode for operand 0.
28769         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
28770         mode for operand 0.
28771         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
28773 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
28775         * doc/plugins.texi: Rewrite first introductory paragraph.
28777 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
28779         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
28780         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
28782 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
28784         * ipa-profie.c (ipa_profile): Check number of parameters
28785         and possible polymorphic call targets before
28786         devirtualizing.
28788 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
28790         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
28791         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
28793 2015-04-13  Richard Biener  <rguenther@suse.de>
28795         PR tree-optimization/65204
28796         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
28797         takens for bit-CCP.
28799 2015-04-13  Richard Biener  <rguenther@suse.de>
28801         PR target/65660
28802         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
28803         and cond_not_taken_branch_cost to 4 and 2.
28804         (bdver2_cost): Likewise.
28805         (bdver3_cost): Likewise.
28806         (bdver4_cost): Likewise.
28808 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
28810         * hash-table.h (hash_table constructor): Add mem stats.
28811         (alloc_entries): Likewise.
28813 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
28815         * ipa-cp.c (ipcp_driver): Relase prev_edge.
28816         * passes.c (execute_one_pass): Only add transform if pass has one.
28818 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
28820         * config/i386/i386.c (ix86_option_override_internal): Don't set
28821         -fprefetch-loop-arrays if optimizing for size.
28823 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
28824             Gerald Pfeifer  <gerald@pfeifer.com>
28826         * doc/contrib.texi (Contributors): Add Martin Jambor and
28827         Michael Matz.
28829 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
28831         * BASE-VER: Set to 6.0.0.
28833         PR tree-optimization/65747
28834         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
28835         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
28837 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
28839         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
28840         sentence.  Improve grammar.
28842 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
28844         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
28846 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
28848         PR ipa/65743
28849         * ipa-inline-transform.c (speculation_removed): Remove static var.
28850         (check_speculations): New function.
28851         (clone_inlined_nodes): Do not check spculations.
28852         (inline_call): Call check_speculations.
28853         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
28854         consider non-invariants.
28856 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
28857             Martin Liska  <mliska@suse.cz>
28859         PR ipa/65722
28860         * ipa-icf.c (sem_item::compare_cgraph_references): function and
28861         variable can not match.
28862         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
28863         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
28865 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
28867         PR tree-optimization/65735
28868         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
28869         Remove visited_phis argument, add visited_bbs, avoid recursing into the
28870         same bb rather than just into the same phi node.
28871         (thread_through_normal_block): Adjust caller.
28873 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
28875         * doc/contrib.texi (Contributors): Add Ira Rosen.
28877 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
28879         * gcov.c (find_source): Fix miswording in error message.
28880         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
28881         (ix86_expand_sse_comi_round): Fix typo in error message.
28883 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
28885         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
28887 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
28889         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
28891 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
28893         PR target/65710
28894         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
28895         Print bad_spills_num and insn_pseudos_num.
28897 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28899         PR target/65694
28900         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
28901         when creating +1 values for SImode.
28903 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
28905         PR target/65729
28906         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
28907         assert.
28909 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
28910             Iain Sandoe  <iain@codesourcery.com>
28912         PR target/65351
28913         * configure: Regenerate.
28915 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
28917         PR target/65671
28918         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
28920 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
28922         * doc/contrib.texi (Contributors): Add John Marino.
28924 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
28926         PR tree-optimization/65709
28927         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
28928         TREE_TYPE (TREE_TYPE (t)).
28930 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
28932         PR target/65710
28933         * lra-int.h (lra_bad_spill_regno_start): New.
28934         * lra.c (lra_bad_spill_regno_start): New.
28935         (lra): Set up lra_bad_spill_regno_start.  Set up
28936         lra_constraint_new_regno_start unconditionally.
28937         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
28938         spill preferences.
28940 2015-04-09  Marek Polacek  <polacek@redhat.com>
28941             Jakub Jelinek  <jakub@redhat.com>
28943         PR middle-end/65554
28944         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
28945         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
28946         of STRIP_NOPS.
28948 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
28950         PR rtl-optimization/65693
28951         * combine.c (is_parallel_of_n_reg_sets): Move outside of
28952         #ifndef HAVE_cc0.
28954 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
28956         PR target/65296
28957         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
28958         device specs file if "device-specs%s" didn't resolve to a path.
28960 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
28962         PR target/65676
28963         * config/i386/i386.c (fixup_modeless_constant): New.
28964         (ix86_expand_args_builtin): Fixup modeless constant operand.
28965         (ix86_expand_round_builtin): Ditto.
28966         (ix86_expand_special_args_builtin): Ditto.
28967         (ix86_expand_builtin): Ditto.
28969 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
28971         PR target/65693
28972         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
28973         any pow2 integer in between 2 and 0x80000000U inclusive.
28975 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
28977         PR rtl-optimization/65693
28978         * combine.c (is_parallel_of_n_reg_sets): Change first argument
28979         from an rtx_insn * to an rtx.
28980         (try_combine): Adjust both callers.  Use it once more.
28982 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
28984         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
28985         (chkp_make_static_const_bounds): Search existing
28986         symbol by assembler name.  Use make_decl_one_only.
28987         (chkp_get_zero_bounds_var): Remove node search which
28988         is now performed in chkp_make_static_const_bounds.
28989         (chkp_get_none_bounds_var): Likewise.
28991 2015-04-08  Michael Witten  <mfwitten@gmail.com>
28993         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
28994         to an example.
28996 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28998         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29000 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29002         * doc/extend.texi (__sync Builtins): Fix grammar.
29004 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29006         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29008 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29010         * varasm.c (emit_local): Move definition of align.
29012 2015-04-08  Julian Brown  <julian@codesourcery.com>
29014         * config/nvptx/mkoffload.c (process): Support variable mapping.
29016 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
29018         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29019         alpha_links **.
29020         (alpha_write_one_linkage): Correct typo.
29022 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29024         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29026 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29028         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29030 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29032         * tree-chkp.h (chkp_insert_retbnd_call): New.
29033         * tree-chkp.c (chkp_insert_retbnd_call): New.
29034         * ipa-split.c (insert_bndret_call_after): Remove.
29035         (split_function): Use chkp_insert_retbnd_call.
29036         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29037         bounds for instrumented functions.
29039 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
29041         PR ipa/65540
29042         * calls.c (initialize_argument_information): When producing tail
29043         call also turn SSA_NAMES passed by references to original PARM_DECLs
29045 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
29047         PR target/65648
29048         * lra-remat.c (do_remat): Process input and non-input insn
29049         registers separately.
29051 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29053         PR debug/65678
29054         * valtrack.c (debug_lowpart_subreg): New function.
29055         (dead_debug_insert_temp): Use it.
29057         PR middle-end/65680
29058         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29059         into signed HOST_WIDE_INT the same as negative bit_offset.
29061 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
29063         * ipa-comdats.c (ipa_comdats): Visit all thunks
29064         to set proper comdat group.
29066 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29068         PR target/65489
29069         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29070         on constants for NEON VSTRUCT modes.
29072 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29073             Iain Sandoe  <iain@codesourcery.com>
29075         PR target/65351
29076         * configure: Regenerate.
29078 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29080         PR target/65614
29081         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29082         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29083         that LFD is used to load double constants instead of LFS.  Add
29084         defaults for all costs structures.  Add comments for missing
29085         initialization fields.
29086         (size32_cost): Likewise.
29087         (size64_cost): Likewise.
29088         (rs64a_cost): Likewise.
29089         (mpccore_cost): Likewise.
29090         (ppc403_cost): Likewise.
29091         (ppc405_cost): Likewise.
29092         (ppc440_cost): Likewise.
29093         (ppc476_cost): Likewise.
29094         (ppc601_cost): Likewise.
29095         (ppc603_cost): Likewise.
29096         (ppc604_cost): Likewise.
29097         (ppc604e_cost): Likewise.
29098         (ppc620_cost): Likewise.
29099         (ppc630_cost): Likewise.
29100         (ppccell_cost): Likewise.
29101         (ppc750_cost): Likewise.
29102         (ppc7450_cost): Likewise.
29103         (ppc8540_cost): Likewise.
29104         (ppce300c2c3_cost): Likewise.
29105         (ppce500mc_cost): Likewise.
29106         (ppce500mc64_cost): Likewise.
29107         (ppce5500_cost): Likewise.
29108         (ppce6500_cost): Likewise.
29109         (titan_cost): Likewise.
29110         (power4_cost): Likewise.
29111         (power6_cost): Likewise.
29112         (power7_cost): Likewise.
29113         (power8_cost): Likewise.
29114         (ppca2_cost): Likewise.
29115         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29117         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29118         instead of XXLOR to copy SFmode to clear out dirty bits created
29119         when SFmode denormals are generated.
29120         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29121         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29123 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29125         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29126         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29127         * config/aarch64/aarch64-tune.md: Regenerate.
29129 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29131         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29132         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29133         * config/arm/arm-cores.def (exynos-m1): New core.
29134         * config/arm/arm-tune.md: Regenerate.
29135         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29136         * config/arm/bpabi.h: Likewise.
29138 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29140         * ipa-cp (set_single_call_flag): Remove too
29141         restrictive assert.
29143 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
29145         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29146         GOMP_offload_unregister from the destructor.
29148 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29150         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29151         flags for instrumentation thunk.
29152         (chkp_produce_thunks): Likewise.
29154 2015-04-05  Martin Liska  <mliska@suse.cz>
29156         PR ipa/65665
29157         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29158         has computed data structure.
29159         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29161 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
29163         * invoke.texi (inline-unit-growth): Increase growth to 20%
29164         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29166 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
29168         PR target/65647
29169         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
29170         value checking.
29171         (lra_rematerialization_iter): New.
29172         * lra.c (lra): Initialize lra_rematerialization_iter.
29173         Stop updating lra_constraint_new_regno_start after switching of
29174         inheritance and rematerialization.
29175         * lra-remat.c (lra_rematerialization_iter): New.
29176         (lra_remat): Add printing pass iteration.  Do rematerialization
29177         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29179 2015-04-04  Richard Biener  <rguenther@suse.de>
29181         PR tree-optimization/64909
29182         PR tree-optimization/65660
29183         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29184         to take a cost vector for scalar iteration cost.
29185         (vect_get_single_scalar_iteration_cost): Likewise.
29186         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29187         Compute the scalar iteration cost into a cost vector.
29188         (vect_get_known_peeling_cost): Use the scalar cost vector to
29189         account for the cost of the peeled iterations.
29190         (vect_estimate_min_profitable_iters): Likewise.
29191         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29192         Likewise.
29194 2015-04-04  Alan Modra  <amodra@gmail.com>
29196         PR target/65576
29197         PR target/65240
29198         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29199         0.0 constant unless TARGET_VSX.
29200         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29201         alternative.
29203 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29205         PR ipa/65654
29206         * ipa-inline-transform.c (inline_call): Skip sanity check to work
29207         around the ICE
29209 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29211         PR ipa/65655
29212         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29213         speculative indirect edges to avoid ordering issue.
29215 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29217         PR ipa/65076
29218         * ipa-inline.c (edge_badness): Add combined size to the denominator.
29220 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
29222         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29223         TYPE_ARTIFICIAL on the .omp_data* types.
29225 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29227         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29228         instrumentation thunks.
29230 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29232         * config/i386/i386.c (ix86_expand_call): Avoid nested
29233         PARALLEL in returned call value.
29235 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29237         * lto-cgraph.c (input_cgraph_1): Always link instrumented
29238         assembler name with original one.
29240 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29242         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29244 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29246         Revert parts of r216820.
29247         * config/i386/i386.md (movqi_internal): Correct type calculation
29248         for alternatives 3 and 5.
29250 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
29252         PR preprocessor/61977
29253         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29254         predefine __vector/__bool/__pixel macros nor context sensitive
29255         macros for CLK_ASM.
29256         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29258 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
29260         * config/pa/pa.c (pa_output_move_double): Directly handle register
29261         indexed memory operand.  Simplify handling of scaled register indexed
29262         memory operands.
29264 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29266         PR driver/65444
29267         * config/i386/linux-common.h (MPX_SPEC): New.
29268         (CHKP_SPEC): Add MPX_SPEC.
29269         * doc/invoke.texi (-fcheck-pointer-boudns): Document
29270         possible issues with '-z bndplt' support in linker.
29272 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29274         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29275         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29276         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29277         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29278         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29280 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
29282         * config/i386/sync.md (UNSPEC_MOVA): Remove.
29283         (atomic_load<mode>): Change operand 0 predicate to
29284         nonimmediate_operand and fix up the destination when needed.
29285         Use UNSPEC_LDA.
29286         (atomic_loaddi_fpu): Use UNSPEC_LDA.
29287         (atomic_store<mode>): Change operand 1 predicate to
29288         nonimmendate_operand and move the source to register when needed.
29289         Use UNSPEC_STA.
29290         (atomic_store<mode>_1): Use UNSPEC_STA.
29291         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29292         Fix moves from memory operand.  Use UNSPEC_STA.
29294 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29296         * expmed.c (strict_volatile_bitfield_p): Check that the access will
29297         not cross a MODESIZE boundary.
29298         (store_bit_field, extract_bit_field): Added assertions in the
29299         strict volatile bitfields code path.
29301 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29303         PR target/65624
29304         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29305         Increase args array size by one to avoid buffer overflow.
29307 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
29309         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29310         split_part.
29311         * ipa-inline.c (edge_badness): Add wrapper penalty.
29312         (sum_callers): Move up.
29313         (inline_small_functions): Set single_caller.
29314         * ipa-inline.h (inline_summary): Add single_caller.
29315         * ipa-split.c (split_function): Set split_part.
29316         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29317         * cgraph.h (cgraph_node): Add split_part.
29319 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
29321         PR target/58945
29322         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29323         Do not split operands 0 and operands 2 to halfmode.
29324         (atomic_compare_and_swap<mode>): Update for
29325         atomic_compare_and_swap<dwi>_doubleword changes.
29327 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
29329         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29330         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29331         no caching is done.
29333 2015-03-31  Martin Liska  <mliska@suse.cz>
29335         PR ipa/65557
29336         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29337         has already filled up function summary.
29338         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29340 2015-03-31  Richard Biener  <rguenther@suse.de>
29342         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29343         of types.
29345 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29347         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29348         nested functions.
29349         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29350         (s390_asm_output_function_label): Adapt to new signature of
29351         s390_function_num_hotpatch_hw
29352         Optimise the code generating assembler output.
29353         Add comments to assembler file.
29355 2015-03-31  Richard Biener  <rguenther@suse.de>
29357         PR middle-end/65626
29358         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29359         of the noreturn call so it is last and cleanup_control_flow_bb
29360         can do the CFG part.
29362 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
29364         PR target/65531
29365         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29366         same_comdat_group for external symbols.
29367         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29368         infinite same_comdat_group traversal loop.
29370 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
29372         PR plugins/61176
29373         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29374         automatically to $headers.
29376 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
29378         PR ipa/65610
29379         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29380         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29381         function.
29382         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29383         Use it.
29384         * ipa-prop.c (param_type_may_change_p): Likewise.
29385         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29386         (remove_unused_scope_block_p): Add in_ctor_dtor_block
29387         argument.  Before inlining, preserve
29388         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29389         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
29390         recursive calls.
29391         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29393 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29395         PR ipa/65076
29396         * ipa-inline.c (edge_badness): Base denominator on callee's
29397         grwoth squared.
29399 2015-03-27  Martin Jambor  <mjambor@suse.cz>
29401         PR ipa/65478
29402         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29403         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29404         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29405         node_calling_single_call.
29406         * ipa-cp.c (count_callers): New function.
29407         (set_single_call_flag): Likewise.
29408         (initialize_node_lattices): Count callers and set single_flag_call if
29409         necessary.
29410         (incorporate_penalties): New function.
29411         (good_cloning_opportunity_p): Use it, dump new flags.
29412         (propagate_constants_topo): Set node_within_scc flag if appropriate.
29413         * doc/invoke.texi (ipa-cp-recursion-penalty,
29414         ipa-cp-single-call-pentalty): Document.
29416 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29418         PR ipa/65588
29419         * symtab.c (symtab_node::get_partitioning_class): Register vars
29420         are duplicated.
29421         * varpool.c (symbol_table::output_variables) Do not assemble unefined
29422         decls for non-symbols.
29424 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
29426         PR target/65248
29427         * output.h (default_binds_local_p_2): New.
29428         * varasm.c (default_binds_local_p_2): Renamed to ...
29429         (default_binds_local_p_3): This.  Don't return true on protected
29430         data symbol if protected data may be external.
29431         (default_binds_local_p): Use default_binds_local_p_3.
29432         (default_binds_local_p_1): Likewise.
29433         (default_binds_local_p_2): New.
29434         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29435         default_binds_local_p_2 if TARGET_MACHO is undefined.
29437 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
29439         PR target/65593
29440         * config/i386/i386.c (legitimize_pic_address): If base
29441         is SYMBOL_REF or LABEL_REF using %rip addressing, force
29442         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
29444 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29446         PR target/65531
29447         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
29448         comdat groups.
29450 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29452         PR ipa/65600
29453         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
29454         of optimized out indirect call.
29455         (redirect_to_unreachable): Always build symbol table node for
29456         BUILT_IN_UNREACHABLE
29458 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
29460         PR target/65407
29461         * ira-costs.c (record_reg_classes): Process all constraint string
29462         containing 0-9.
29464 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
29466         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
29467         memory_operand.
29469         PR target/65052
29470         * config/c6x/constraints.md (S3): New constraint.
29471         * config/c6x/c6x.md (real_jump): Use it.
29473 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29475         PR middle-end/65595
29476         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
29477         do redirection if the call is not optimized out.
29479 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
29481         PR target/65495
29482         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
29483         (fchkp-check-incomplete-type): Add LTO.
29484         (fchkp-zero-input-bounds-for-main): Likewise.
29485         (fchkp-first-field-has-own-bounds): Likewise.
29486         (fchkp-narrow-bounds): Likewise.
29487         (fchkp-narrow-to-innermost-array): Likewise.
29488         (fchkp-use-static-bounds): Likewise.
29489         (fchkp-use-static-const-bounds): Likewise.
29490         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29492 2015-03-27  Marek Polacek  <polacek@redhat.com>
29494         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
29496 2015-03-27  Marek Polacek  <polacek@redhat.com>
29498         PR sanitizer/65583
29499         * ubsan.c (ubsan_create_edge): New function.
29500         (instrument_bool_enum_load): Call it.
29501         (instrument_nonnull_arg): Likewise.
29502         (instrument_nonnull_return): Likewise.
29503         (instrument_object_size): Likewise.
29505 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29507         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
29508         auto_vec.
29510 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29512         PR lto/65536
29513         * lto-streamer.h (class lto_location_cache): New.
29514         (struct data_in): Add location_cache.
29515         (lto_input_location): Update prototype.
29516         (stream_input_location_now): New.
29517         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
29518         pointer to location.
29519         (stream_input_location): Update.
29520         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
29521         (warn_odr): Apply location cache before warning.
29522         (lto_input_location): Update prototype.
29523         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
29524         Use stream_input_location_now.
29525         * lto-streamer-in.c (lto_location_cache::current_cache): New static
29526         variable.
29527         (lto_location_cache::cmp_loc): New function.
29528         (lto_location_cache::apply_location_cache): New function.
29529         (lto_location_cache::accept_location_cache): New function.
29530         (lto_location_cache::revert_location_cache): New function.
29531         (lto_location_cache::input_location): New function.
29532         (lto_input_location): Do location caching.
29533         (stream_input_location_now): New function.
29534         (input_eh_region, input_struct_function_base): Use
29535         stream_input_location_now.
29536         (lto_data_in_create): use new.
29537         (lto_data_in_delete): Use delete.
29538         * tree-streamer-in.c (unpack_ts_block_value_fields,
29539         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
29540         lto_input_ts_exp_tree_pointers): Update for cached location api.
29542 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29544         PR ipa/65076
29545         * passes.def: Add pass_nothrow.
29546         * ipa-pure-const.c: (pass_data_nothrow): New.
29547         (pass_nothrow): New.
29548         (pass_nothrow::execute): New.
29549         (make_pass_nothrow): New.
29550         * tree-pass.h (make_pass_nothrow): Declare.
29552 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29554         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
29555         edge to change by speculation resolution or redirection.
29556         (edge_set_predicate): Likewise.
29557         (inline_summary_t::duplicate): Likewise.
29558         (remap_edge_summaries): Likewise.
29560 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29562         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
29563         New macros.
29564         (can_inline_edge_p): Relax option matching for always inline functions.
29566 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
29568         PR target/65561
29569         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
29570         Check operand 4 and operand 0 for equality.
29571         (avx512f_vextract<shuffletype>32x4_1_maskm):
29572         Check operand 6 and operand 0 for equality.
29573         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
29574         for equality.
29575         (vec_extract_hi_<mode>_maskm): Ditto.
29577 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29579         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
29580         dead calls back to live.
29581         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
29582         cross check to ...
29583         (cgraph_node::verify_node): ... here; verify only callee edges,
29584         not caller.
29585         * cif-code.def (CILK_SPAWN): New code.
29587 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29589         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
29590         (edge_set_predicate): Use it to mark unreachable edges.
29591         (inline_summary_t::duplicate): Remove unnecesary code.
29592         (remap_edge_summaries): Likewise.
29593         (dump_inline_summary): Report contains_cilk_spawn.
29594         (compute_inline_parameters): Compute contains_cilk_spawn.
29595         (inline_read_section, inline_write_summary): Stream
29596         contains_cilk_spawn.
29597         * ipa-inline.c (can_inline_edge_p): Do not touch
29598         DECL_STRUCT_FUNCTION that may not be available;
29599         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
29600         remove check for callee_fun->can_throw_non_call_exceptions and
29601         replace it by optimization attribute check; check for flag_exceptions.
29602         * ipa-inline-transform.c (inline_call): Maintain
29603         DECL_FUNCTION_PERSONALITY
29604         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
29606 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
29608         PR tree-optimization/65551
29609         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
29610         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
29612 2015-03-26  Richard Biener  <rguenther@suse.de>
29614         PR middle-end/65555
29615         * tree-cfg.c (verify_gimple_call): Do not require a call to
29616         have no LHS if it wasn't recognized as control altering yet.
29618 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
29620         PR tree-optimization/64715
29621         * passes.def: Add another instance of pass_object_sizes before ccp1.
29622         * tree-object-size.c (pass_object_sizes::execute): In
29623         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
29624         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
29625         __bos result and the computed constant.  Remove redundant
29626         checks, obsoleted by gimple_call_builtin_p test.
29628         * var-tracking.c (variable_tracking_main_1): Don't track
29629         variables for targetm.no_register_allocation targets.
29631 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
29633         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
29634         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
29636 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
29638         PR target/65569
29639         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
29640         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
29641         0.0 is correctly setup.
29642         (extenddftf2_internal): Likewise.
29644 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
29646         PR tree-optimization/65177
29647         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
29648         (bb_in_bbs): New.
29649         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
29650         edges not adjacent on the path to the original code.
29652 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
29654         PR bootstrap/65537
29655         * doc/install.texi (Building a native compiler): Document new
29656         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
29657         configuration assumes that the host supports the linker plugin.
29659 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
29661         PR target/65508
29662         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
29663         chain for generated call.
29665 2015-03-25  Richard Biener  <rguenther@suse.de>
29667         * passes.c (pass_manager::execute_early_local_passes): Guard
29668         execution of pass_chkp_instrumentation_passes with
29669         flag_check_pointer_bounds.
29670         (pass_chkp_instrumentation_passes::gate): Likewise.
29672 2015-03-25  Martin Liska  <mliska@suse.cz>
29674         PR tree-optimization/65538
29675         * symbol-summary.h (function_summary::~function_summary):
29676         Relese memory for allocated summaries.
29677         (function_summary::release): New function.
29679 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
29681         PR lto/65515
29682         * lto-streamer-out.c (DFS::worklist): New struct.
29683         (DFS::worklist_vec): New data member.
29684         (DFS::next_dfs_num): Remove.
29685         (DFS::DFS): Rewritten using worklist instead of recursion,
29686         using most of code from DFS::DFS_write_tree.
29687         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
29688         pass it to DFS_write_tree calls.
29689         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
29690         quick initial checks push it into worklist_vec and return.
29692 2015-03-25  Richard Biener  <rguenther@suse.de>
29694         PR middle-end/65519
29695         * genmatch.c (expr::gen_transform): Re-write to avoid
29696         using gimple_build.
29698 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
29700         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
29702 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
29704         * config/arm/arm.opt (print_tune_info): New option.
29705         * config/arm/arm.c (arm_print_tune_info): New function.
29706         (arm_file_start): Call arm_print_tune_info.
29707         * config/arm/arm-protos.h (struct tune_params): Add comment.
29708         * doc/invoke.texi (@item -mprint-tune-info): New item.
29709         (-mtune): mention it in ARM Option Summary.
29711 2015-03-25  DJ Delorie  <dj@redhat.com>
29713         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
29714         correct clause.
29716 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
29717             Martin Liska  <mliska@suse.cz>
29719         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
29720         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
29721         (sem_item::add_type): New function.
29722         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
29723         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
29724         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
29725         (sem_function::equals_wpa): Fix typo.
29726         * ipa-icf.h (sem_item::add_type): New function.
29727         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
29728         order.
29730 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
29732         PR tree-optimization/65533
29733         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
29734         with swapped operands, call vect_free_slp_tree on
29735         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
29736         vector.
29738 2015-03-24  Richard Biener  <rguenther@suse.de>
29740         PR middle-end/65517
29741         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
29742         for fixup if necessary.
29744 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
29746         * doc/extend.texi (Function Attributes): Add @cindex entries
29747         for all attributes and regularize their format.  Delete text
29748         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
29749         information about "eightbit_data", "tiny_data", and "model"
29750         variable attributes to the Variable Attributes section.  Fix
29751         some obvious typos and copy-editing issues.
29752         (Variable Attributes, Type Attributes): Likewise add/fix
29753         @cindex entries for all attributes.
29755 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
29757         PR target/65523
29758         * tree-chkp.c (chkp_build_returned_bound): Ignore
29759         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
29761 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
29763         PR target/65505
29764         * config/sh/predicates.md (simple_mem_operand,
29765         displacement_mem_operand): Add test for reg.
29766         (short_displacement_mem_operand): Test for displacement_mem_operand
29767         before invoking sh_disp_addr_displacement.
29768         * config/sh/constraints.md (Sdd, Sra): Simplify.
29769         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
29770         Remove redundant displacement_mem_operand tests.
29772 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
29774         PR target/65296
29775         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
29776         the same -mmcu=MCU more than once.
29778 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
29780         PR bootstrap/65522
29781         * ipa-devirt.c: Remove duplicate demangle.h include.
29783         PR target/65504
29784         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
29785         on the pseudo.
29786         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
29787         REG_POINTER on *destptr after adjusting it for prologue size.
29789         PR ipa/65521
29790         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
29791         ultimate_alias_target ()->order ints instead of
29792         ultimate_alias_target () pointers.
29794 2015-03-23  Richard Biener  <rguenther@suse.de>
29796         PR tree-optimization/65518
29797         * tree-vect-stmts.c (vectorizable_load): Reject single-element
29798         interleaving cases we generate absymal code for.
29800 2015-03-23  Richard Biener  <rguenther@suse.de>
29802         PR tree-optimization/65494
29803         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
29804         matches here.
29805         (vect_analyze_slp_instance): But do that here, always and once.
29807 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29809         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
29810         adding T or multiplying by T+1 and subracting T.
29812 2015-03-22  Jeff Law  <law@redhat.com>
29814         PR rtl-optimization/64317
29815         * Makefile.in (OBJS): Add gcse-common.c
29816         * gcse.c: Include gcse-common.h
29817         (struct modify_pair_s): Move structure definition to gcse-common.h
29818         (compute_transp): Move function to gcse-common.c.
29819         (canon_list_insert): Similarly.
29820         (record_last_mem_set_info): Break out some code and put it into
29821         gcse-common.c.  Call into the new common code.
29822         (compute_local_properties): Pass additional arguments to compute_transp.
29823         * postreload-gcse.c: Include gcse-common.h and df.h
29824         (modify_mem_list_set, blocks_with_calls): New variables.
29825         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
29826         (get_bb_avail_insn): Pass in the expression index too.
29827         (alloc_mem): Allocate memory for the new bitmaps and lists.
29828         (free_mem): Free memory for the new bitmaps and lists.
29829         (insert_expr_in_table): Record a bitmap index for each entry we
29830         add to the table.
29831         (record_last_mem_set_info): Call into common code in gcse-common.c.
29832         (get_bb_avail_insn): If no available insn was found in the requested
29833         BB.  If BB has a single predecessor, see if the expression is
29834         transparent in BB and available in that single predecessor.
29835         (compute_expr_transp): New wrapper for compute_transp.
29836         (eliminate_partially_redundant_load): Pass expression's bitmap_index
29837         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
29838         (gcse_after_reload_main): If there are elements in the hash table,
29839         then compute transparency for all the elements in the hash table.
29840         * gcse-common.h: New file.
29841         * gcse-common.c: New file.
29843 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
29845         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
29846         as an adjective.
29847         (System Headers): Likewise.
29848         (Ifdef): Likewise.
29849         (Traditional macros): Likewise.
29850         (Invocation): Likewise.
29851         (Option Index): Likewise.
29852         * doc/cppopts.texi (-M): Likewise.
29853         (-finput-charset): Likewise.
29854         (--help): Likewise.
29855         * doc.invoke.texi (AVR Options): Likewise.
29856         (V850 Options): Likewise.
29858 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
29860         PR ipa/65475
29861         * ipa-devirt.c: Include demangle.h
29862         (odr_type_d): Add field rtti_broken.
29863         (odr_subtypes_equivalent_p): Do not require name to match.
29864         (compare_virtual_tables): Fix typo; if type already has ODR violation,
29865         bypass the tests; be ready for function referneces in vtables that are
29866         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
29867         (warn_odr): Give up for nameless types.
29868         (warn_types_mismatch): Report mismatch in mangled names;
29869         report mismatch in anonymous namespaces; look into component types to
29870         give useful error; report when mismatch is dragged in from other ODR
29871         type.
29872         (odr_types_equivalent_p): Match types for being polymorphic; avoid
29873         duplicated diagnostics.
29874         (add_type_duplicate): Reorder checks so more informative ones come
29875         first; fix typo; do not output "the extra base is defined here" when
29876         we did not warn.
29877         (BINFO_N_BASE_BINFOS): Relax sanity check.
29879 2015-03-22  Martin Liska  <mliska@suse.cz>
29880             Jakub Jelinek  <jakub@redhat.com>
29882         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
29883         masks that can potentially include a builtin.
29884         (ix86_add_new_builtins): Introduce fast filter for isa values
29885         that cannot trigger builtin inclusion.
29887 2015-03-22  Martin Liska  <mliska@suse.cz>
29889         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
29890         (sem_item::update_hash_by_local_refs): Likewise.
29891         (sem_variable::get_hash): Empty line is fixed.
29892         (sem_item_optimizer::execute): Include adding of hash references.
29893         (sem_item_optimizer::update_hash_by_addr_refs): New function.
29894         (sem_item_optimizer::build_hash_based_classes): Use local hash.
29895         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
29896         (sem_item::update_hash_by_local_refs): Likewise.
29898 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
29900         PR ipa/65502
29901         * ipa-comdats.c (enqueue_references): Walk through thunks.
29902         (ipa_comdats): Likewise.
29903         (set_comdat_group_1): New function.
29905 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
29907         PR ipa/65475
29908         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
29909         non-polymorphic
29911 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
29912             Gerald Pfeifer  <gerald@pfeifer.com>
29914         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
29916 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
29917             Sandra Loosemore  <sandra@codesourcery.com>
29919         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
29920         function parameter declaration.
29921         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
29922         Update arguments to nios2_adjust_call_address().
29923         (sibcall_internal): Rename from *sibcall.
29924         (sibcall_value_internal): Rename from *sibcall_value.
29925         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
29926         (nios2_large_got_address): Add target temp reg parameter.
29927         (nios2_got_address): Adjust call to nios2_large_got_address, add
29928         force_reg around it.
29929         (nios2_load_pic_address): Add target temp reg parameter, replace call
29930         to nios2_got_address with corresponding code.
29931         (nios2_legitimize_constant_address): Update call to
29932         nios2_load_pic_address.
29933         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
29934         to use temp reg for PIC loading purposes.
29935         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
29936         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29937         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
29939 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
29941         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
29942         usage of "the @option{...}".
29943         (-Wopenmp-simd): Likewise.
29944         (-fsanitize-recover): Likewise.
29945         (-fsanitize-undefined-trap-on-error): Likewise.
29946         (-flto): Likewise.
29947         (tracer-dynamic-coverage-feedback): Likewise.
29948         (reorder-block-duplicate-feedback): Likewise.
29949         (loop-unroll-jam-size): Likewise.
29950         (-B): Likewise.
29951         (-I-): Likewise.
29952         (-mabs=legacy): Likewise.
29953         (-mupper-regs-df): Likewise.
29954         (-mupper-regs-sf): Likewise.
29955         (-mpointers-to-nested-functions): Likewise.
29957 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
29959         * doc/extend.texi (Cilk Plus Builtins): Add markup.
29961 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
29963         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
29964         additional index entries and cross-references.
29965         (-fchkp-check-incomplete-type): Likewise.
29966         (-fchkp-first-field-has-own-bounds): Likewise.
29967         (-fchkp-narrow-to-innermost-array): Likewise.
29968         (-fchkp-use-fast-string-functions): Likewise.
29969         (-fchkp-use-nochk-string-functions): Likewise.
29970         (-fchkp-use-static-const-bounds): Likewise.
29971         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29972         (-fchkp-instrument-marked-only): Likewise.
29973         (-fchkp-use-wrappers): Likewise.
29974         (-static-libmpx): Likewise.
29975         (-static-libmpxwrappers): Likewise.
29976         * doc/extend.texi (bnd_legacy): Likewise.
29977         (bnd_instrument): Likewise.
29978         (bnd_variable_size): Likewise.
29979         (Pointer Bounds Checker builtins): Likewise.
29981 2015-03-21  Tom de Vries  <tom@codesourcery.com>
29983         PR tree-optimization/65458
29984         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
29985         * cgraph.h (cgraph_node): Add parallelized_function field.
29986         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
29987         (input_overwrite_node): Read parallelized_function field.
29988         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
29989         parallelized_function on cgraph_node for child_fn.
29990         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
29991         Remove include of gt-tree-parloops.h.
29992         (parallelized_functions): Remove static variable.
29993         (parallelized_function_p): Rewrite using parallelized_function field of
29994         cgraph_node.
29995         (create_loop_fn): Remove adding to parallelized_functions.
29996         * Makefile.in (GTFILES): Remove tree-parloops.c
29998 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
30000         PR rtl-optimization/64366
30001         * lra.c (lra_update_insn_regno_info): Consider regs in
30002         CALL_INSN_FUNCTION_USAGE memory.
30004 2015-03-20  Richard Biener  <rguenther@suse.de>
30006         PR middle-end/64715
30007         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30008         for type comparison and gcc_checking_assert.
30009         (chrec_fold_plus_poly_poly): Likewise.
30010         (chrec_fold_multiply_poly_poly): Likewise.
30011         (chrec_convert_1): Likewise.
30012         * gimplify.c (gimplify_expr): Remove premature folding of
30013         &X + CST to &MEM[&X, CST].
30015 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30017         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30018         already is final.
30019         (ipa_inline): Recompute inline_failed codes.
30020         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30021         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30022         CIF_FINAL_ERROR.
30024 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
30026         PR rtl-optimization/60851
30027         * recog.c (constrain_operands): Accept a pseudo register before reload
30028         for LRA enabled targets.
30030 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
30032         PR target/65240
30033         * config/rs6000/predicates.md (easy_fp_constant): Remove special
30034         -ffast-math handling that kept non-0 constants live in the RTL
30035         until reload.  Remove logic testing the number of instructions it
30036         took to create a constant in a GPR that was never used, due to a
30037         test for soft-float earlier.
30038         (memory_fp_constant): Delete, no longer used.
30040         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30041         alternatives for loading non-0 constants into GPRs for hard
30042         floating point that is no longer needed due to changes in
30043         easy_fp_constant.  Add support for loading 0.0 into GPRs.
30044         (mov<mode>_hardfloat32): Likewise.
30045         (mov<mode>_hardfloat64): Likewise.
30046         (mov<mode>_64bit_dm): Likewise.
30047         (movtd_64bit_nodm): Likewise.
30048         (pre-reload move FP constant define_split): Delete define_split,
30049         since it is no longer used.
30050         (extenddftf2_internal): Remove GHF constraints that are not valid
30051         for extenddftf2.
30053 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
30055         PR rtl-optimization/63491
30056         * lra-constraints.c (check_and_process_move): Use src instead of
30057         sreg.  Remove some dead code.
30059 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
30061         PR ipa/65380
30062         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30063         (sem_variable::merge): Likewise.
30065 2015-03-19  Martin Liska  <mliska@suse.cz>
30067         PR ipa/65465
30068         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30069         all fields of cgraph_thunk_info.
30071 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30073         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30074         clone instrumented thunks.
30076 2015-03-19  Richard Biener  <rguenther@suse.de>
30078         Revert
30079         2015-03-10  Richard Biener  <rguenther@suse.de>
30081         PR middle-end/63155
30082         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30083         * tree-ssa-coalesce.c: Include timevar.h.
30084         (attempt_coalesce): Handle graph being NULL.
30085         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30086         Split out abnormal coalescing to ...
30087         (perform_abnormal_coalescing): ... this function.
30088         (coalesce_ssa_name): Perform abnormal coalescing without computing
30089         live/conflict.
30090         (verify_ssa_coalescing_worker): New function.
30091         (verify_ssa_coalescing): Likewise.
30093 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30094             Jakub Jelinek  <jakub@redhat.com>
30096         PR sanitizer/65400
30097         * tsan.c (instrument_gimple): Clear tail call flag on
30098         calls.
30100 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
30102         PR sanitizer/65400
30103         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30104         call in the return bb.
30105         (find_split_points): Add RETURN_BB argument, don't call
30106         find_return_bb.
30107         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
30108         if true append TSAN_FUNC_EXIT internal call after the call to
30109         the split off function.
30110         (execute_split_functions): Call find_return_bb here.
30111         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30112         Adjust find_split_points and split_function calls.
30114 2015-03-18  DJ Delorie  <dj@redhat.com>
30116         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30117         (iorqi3_virt): Likewise.
30119 2015-03-18  Tom de Vries  <tom@codesourcery.com>
30121         * tree-parloops.c (parallelize_loops): Make static.
30122         * tree-parloops.h (parallelize_loops): Remove extern declaration.
30124 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
30126         PR middle-end/64491
30127         Revert:
30128         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
30130         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30131         condition would be removed due to undefined behaviour.
30133 2015-03-18  Martin Liska  <mliska@suse.cz>
30135         PR ipa/65432
30136         * cgraph.c (cgraph_node::get_create): Remove unnecessary
30137         xstrdup_for_dump wrapper.
30138         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30139         sem_item::name.
30140         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30141         with xstrdup_for_dump.
30142         (sem_variable::equals): Likewise.
30143         (sem_item_optimizer::read_section): Use symtab_node::name instead of
30144         sem_item::name.
30145         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30146         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30147         symtab_node::asm_name with xstrdup_for_dump.
30148         (congruence_class::dump): Use symtab_node::name instead of
30149         sem_item::name.
30150         * ipa-icf.h (symtab_node::name): Remove.
30151         (symtab_node::asm_name): Likewise.
30153 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30155         PR tree-optimization/65450
30156         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30157         function.
30158         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30159         it instead of duplicate_ssa_name_ptr_info.
30161         PR target/65222
30162         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30164 2015-03-18  Richard Biener  <rguenther@suse.de>
30166         * tree-data-ref.h (struct access_matrix): Remove.
30167         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30168         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30169         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30170         (am_vector_index_for_loop): Likewise.
30171         (struct data_reference): Remove access_matrix member.
30172         (DR_ACCESS_MATRIX): Remove.
30173         (lambda_vector_new): Add comment.
30174         (lambda_matrix_new): Use XOBNEWVEC.
30176 2015-03-18  Richard Biener  <rguenther@suse.de>
30178         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30179         (pass_ch::execute): Cleanup the CFG only if we did sth.
30180         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30182 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30184         * expmed.c (synth_mult): Use std::swap instead of manually
30185         swapping algorithms.
30187 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30189         PR target/65078
30190         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30192 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
30194         PR target/65296
30195         * config/avr/avr.opt (-nodevicelib): New option.
30196         * doc/invoke.texi (AVR Options): Document it.
30197         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30198         libgcc.a, libc.a, libm.a.
30199         * config/avr/specs.h: Same.
30200         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30201         which don't (directly) depend on the device.  Print more help.
30202         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30203         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30204         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30205         case of an error.
30206         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30207         for specs file name.
30208         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30209         * config/avr/avr-mcus.def: Adjust initializers and comments.
30211 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
30213         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30214         DECL_ONE_ONLY to check if decl is one only.
30215         * ipa-split.c (consider_split): Limit splitt of one only functions.
30217 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
30219         PR tree-optimization/65427
30220         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30221         functions.
30222         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30224 2015-03-16  Marek Polacek  <polacek@redhat.com>
30226         * cgraph.h (add_new_static_var): Remove declaration.
30227         * varpool.c (add_new_static_var): Remove function.
30229 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
30231         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30232         instead of vec<tree> * with vec_alloc and release for args.
30233         Adjust all users.
30235         PR middle-end/65431
30236         * omp-low.c (delete_omp_context): Only splay_tree_delete
30237         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30238         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
30240 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30242         PR sanitizer/64820
30243         * cfgexpand.c (align_base): New function.
30244         (alloc_stack_frame_space): Call it.
30245         (expand_stack_vars): Align prev_frame to be sure
30246         data->asan_vec elements aligned properly.
30248 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
30250         PR middle-end/65409
30251         * expr.c (store_field): Do not do a direct block copy if the source is
30252         a PARALLEL with BLKmode.
30254 2015-03-16  Tom de Vries  <tom@codesourcery.com>
30256         PR middle-end/65414
30257         Revert:
30258         2015-03-12  Tom de Vries  <tom@codesourcery.com>
30260         PR rtl-optimization/64895
30261         * lra-lives.c (check_pseudos_live_through_calls): Use
30262         actual_call_used_reg_set instead of call_used_reg_set, if available.
30264 2015-03-16  Alan Modra  <amodra@gmail.com>
30266         PR target/63150
30267         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30268         Modify Z->r bswapdi splitter to use dest in place of scratch.
30269         In r->Z and Z->r bswapdi splitter rename word_high, word_low
30270         to word1, word2 and rearrange logic to suit.
30271         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30272         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
30273         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30274         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
30275         early clobber.
30277 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
30279         PR tree-optimization/65369
30280         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30281         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30282         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30284         PR tree-optimization/65418
30285         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30286         are casts in the first PLUS_EXPR operand, ensure tbias and
30287         *totallowp are in the inner type.
30289         PR rtl-optimization/65401
30290         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30291         argument.  If true, adjust_address_nv of x with big-endian
30292         correction for the mode widening to GET_MODE (y).
30293         (make_field_assignment): Don't do MEM mode widening here.
30294         Use MEM_P instead of GET_CODE == MEM.
30296 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
30298         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30299         the external decls.
30301 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30303         PR target/64600
30304         * config/arm/arm.c (arm_gen_constant, AND case): Use
30305         ARM_SIGN_EXTEND when constructing AND mask.
30307 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30309         * graph.c (print_graph_cfg): Make function names visible and append
30310         parenthesis to it.  Also make groups of basic blocks belonging to the
30311         same function visible.
30313 2015-03-12  Richard Biener  <rguenther@suse.de>
30315         PR middle-end/44563
30316         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30317         to avoid quadratic behavior with inline expansion splitting blocks.
30318         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30319         with the successor if the predecessor will be merged with it.
30320         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30321         entry block with its successor.
30323 2015-03-13  Richard Biener  <rguenther@suse.de>
30325         PR middle-end/44563
30326         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30327         (cleanup_tree_cfg_1): Do not call it.
30328         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30329         (fixup_noreturn_call): Mark the stmt as control altering.
30330         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30331         here.
30332         (pass_data_fixup_cfg): Produce a dump file.
30333         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30334         (need_noreturn_fixup): New global.
30335         (pass_dominator::execute): Fixup queued noreturn calls.
30336         (optimize_stmt): Queue calls that became noreturn for fixup.
30337         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30338         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30339         (el_to_fixup): New global.
30340         (eliminate_dom_walker::before_dom_childre): Queue calls that
30341         became noreturn for fixup.
30342         (eliminate): Fixup queued noreturn calls.
30343         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30344         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30345         (substitute_and_fold_dom_walker::before_dom_children): Queue
30346         alls that became noreturn for fixup.
30347         (substitute_and_fold): Fixup queued noreturn calls.
30349 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
30351         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30352         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30353         are building; for methods check ODR type of class they belong to if
30354         they may lead to a polymorphic call.
30355         (sem_function::compare_polymorphic_p): Be bit smarter about testing
30356         when function may lead to a polymorphic call.
30357         (sem_function::compare_type_list): Remove.
30358         (sem_variable::equals): Update use of compatible_types_p.
30359         (sem_variable::parse_tree_refs): Remove.
30360         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30361         cdtor.
30362         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30363         matching here.
30364         (func_checker::compatible_polymorphic_types_p): Break out from ...
30365         (unc_checker::compatible_types_p): ... here.
30366         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30367         Declare.
30368         (unc_checker::compatible_types_p): Update.
30369         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30370         Remove.
30372 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30374         PR rtl-optimization/65235
30375         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30376         When first element of vec_concat is const_int, calculate its size
30377         using second element.
30379 2015-03-12  Richard Biener  <rguenther@suse.de>
30381         PR middle-end/65270
30382         * fold-const.c (operand_equal_p): Fix ordering of resetting
30383         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30385 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30387         * config/s390/s390.c (s390_reorg): Move code to output nops after label
30388         to s390_reorg ().
30389         (s390_asm_output_function_label): Likewise.
30390         * config/s390/s390.c (s390_asm_output_function_label):
30391         Fix function label alignment with -mhtopatch.
30392         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30393         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30394         ("nop_2_byte"): New define_insn.
30395         ("nop_4_byte"): Likewise.
30396         ("nop_6_byte"): Likewise.
30397         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30398         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30400 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
30402         PR target/65103
30403         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30404         register.
30406 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
30408         PR target/65044
30409         * toplev.c (process_options): Restrict Pointer Bounds Checker
30410         usage with Address Sanitizer.
30412 2015-03-12  Richard Biener  <rguenther@suse.de>
30414         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30415         to split on.
30416         * omp-low.c (expand_omp_taskreg): Split block before removing
30417         the stmt.
30418         (expand_omp_target): Likewise.
30419         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30420         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30421         stmt to split_block.
30423 2015-03-12  Tom de Vries  <tom@codesourcery.com>
30425         PR rtl-optimization/64895
30426         * lra-lives.c (check_pseudos_live_through_calls): Use
30427         actual_call_used_reg_set instead of call_used_reg_set, if available.
30429 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
30431         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30432         (cgraph_node::remove): Likewise.
30433         (cgraph_node::get_untransformed_body): Likewise.
30434         * varpool.c (varpool_node::remove): Likewise.
30435         (varpool_node::get_constructor): Add sanity check.
30437 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
30439         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30440         old GCC versions.
30441         (-fabi-compat-version): Likewise.
30442         (-ffriend-injection): Likewise.
30443         (-Wdeclaration-after-statement): Likewise.
30444         (-fomit-frame-pointer): Likewise.
30445         (-ftree-coalesce-inlined-vars): Likewise.
30446         (-fvisibility=): Likewise.
30447         * doc/extend.texi (Typeof): Likewise.
30448         (Zero Length): Likewise.
30449         (Escaped Newlines): Likewise.
30450         (Compound Literals): Likewise.
30451         (Function Attributes): Likewise.
30452         (Label Attributes): Likewise.
30453         (Type Attributes): Likewise.
30454         (Function Names): Likewise.
30455         (Other Builtins): Likewise.
30456         (Function Specific Option Pragmas): Likewise.
30457         (C++ Interface): Likewise.
30459 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
30461         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
30463 2015-03-11  Marek Polacek  <polacek@redhat.com>
30465         PR tree-optimization/65388
30466         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
30468 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
30470         PR target/65296
30471         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
30472         * configure: Regenerate.
30473         * config.in: Regenerate.
30474         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
30475         [-mn-flash]: Document it.
30476         [__AVR_ARCH__]: Document avrtiny.
30478         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
30479         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
30480         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
30482 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30484         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
30486 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30488         PR target/65242
30489         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
30490         allow reloads of PLUS in floating point/VSX registers.
30492 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
30494         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
30495         crypto_sha256_fast.
30496         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
30498 2015-03-11  Richard Biener  <rguenther@suse.de>
30500         PR tree-optimization/65310
30501         * tree-sra.c (build_ref_for_offset): Also preserve larger
30502         alignment.
30504 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
30506         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
30508 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
30510         PR target/65368
30511         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
30512         new define_expand.
30513         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
30515 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
30517         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
30518         (sem_function::equals_wpa): ... here.
30520 2015-03-10  Marek Polacek  <polacek@redhat.com>
30521             Jakub Jelinek  <jakub@redhat.com>
30523         PR sanitizer/65367
30524         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
30525         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
30526         separately.
30528 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
30530         PR target/65286
30531         * config/rs6000/t-linux: For powerpc64* target set
30532         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
30534 2015-03-10  Richard Biener  <rguenther@suse.de>
30536         PR middle-end/44563
30537         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
30538         for redirect_all_calls.
30540 2015-03-10  Marek Polacek  <polacek@redhat.com>
30542         * gdbinit.in (pcfun): Define and document.
30544 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
30546         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
30547         of libgomp-plugin.h.
30548         (find_target_compiler): Support a case when the path to gcc is
30549         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30550         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
30551         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
30552         libgomp-plugin.h.
30553         (main): Use GCC_INSTALL_NAME as target_driver_name.
30554         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
30555         define.
30556         (mkoffload.o): Remove obsolete include path and defines.
30557         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
30559 2015-03-10  Richard Biener  <rguenther@suse.de>
30561         PR middle-end/63155
30562         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30563         * tree-ssa-coalesce.c: Include timevar.h.
30564         (attempt_coalesce): Handle graph being NULL.
30565         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30566         Split out abnormal coalescing to ...
30567         (perform_abnormal_coalescing): ... this function.
30568         (coalesce_ssa_name): Perform abnormal coalescing without computing
30569         live/conflict.
30570         (verify_ssa_coalescing_worker): New function.
30571         (verify_ssa_coalescing): Likewise.
30573 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
30575         PR target/65296
30576         * config.gcc (extra_options) [avr]: Remove.
30577         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
30578         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
30579         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
30581         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
30582         (-mmcu=): Add Var and MissingArgError properties.
30583         (-march=): Remove.
30584         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
30585         * config/avr/t-multilib: Regenerate.
30586         * config/avr/specs.h: New file.
30587         * config/avr/driver-avr.c: New file.
30588         * config/avr/genopt.sh: Remove file.
30589         * config/avr/avr-tables.opt: Remove file.
30590         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
30591         * config/avr/avr-c.c: Same.
30592         * avr-arch.h: Same.
30593         (avr_current_device): Remove proto.
30594         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
30595         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
30596         (EXTRA_SPEC_FUNCTIONS): Define.
30597         (avr_devicespecs_file): New specs function proto.
30598         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
30599         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
30600         (avr_current_device): Remove definition and usage.
30601         (avr_set_core_architecture): New static function.
30602         (avr_option_override): Use it.
30603         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
30604         (mcu_name): New static array.
30605         (comparator, avr_archs_str, avr_mcus_str): New static functions.
30606         (avr_inform_devices, avr_inform_core_architectures): New functions.
30607         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
30608         (avrlibc.h) [WITH_AVRLIBC]: Include.
30609         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
30610         (print_mcu): Rewrite from scratch.
30611         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
30612         Forward to avr-specific specs defined in device-specs file.
30613         * config/avr/t-avr (driver-avr.o): New rule.
30614         (avr-devices.o): Depend on avr-arch.h.
30615         (avr-mcus): No more depend on avr-tables.opt.
30616         (avr-tables.opt): Remove rule.
30617         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
30619 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30621         * c-family/c.opt (fchkp-use-wrappers): New.
30622         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
30623         (chkp_wrap_function): New.
30624         (chkp_build_instrumented_fndecl): Support wrapped
30625         functions.
30626         * doc/invoke.texi (-fcheck-pointer-bounds): New.
30627         (-fchkp-check-incomplete-type): New.
30628         (-fchkp-first-field-has-own-bounds): New.
30629         (-fchkp-narrow-bounds): New.
30630         (-fchkp-narrow-to-innermost-array): New.
30631         (-fchkp-optimize): New.
30632         (-fchkp-use-fast-string-functions): New.
30633         (-fchkp-use-nochk-string-functions): New.
30634         (-fchkp-use-static-bounds): New.
30635         (-fchkp-use-static-const-bounds): New.
30636         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
30637         (-fchkp-check-read): New.
30638         (-fchkp-check-write): New.
30639         (-fchkp-store-bounds): New.
30640         (-fchkp-instrument-calls): New.
30641         (-fchkp-instrument-marked-only): New.
30642         (-fchkp-use-wrappers): New.
30643         (-static-libmpx): New.
30644         (-static-libmpxwrappers): New.
30646 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30648         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
30649         (CHKP_SPEC): Add wrappers library.
30650         * c-family/c.opt (static-libmpxwrappers): New.
30652 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30654         * config/i386/linux-common.h (LIBMPX_LIBS): New.
30655         (LIBMPX_SPEC): New.
30656         (CHKP_SPEC): New.
30657         * gcc.c (CHKP_SPEC): New.
30658         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
30659         * c-family/c.opt (static-libmpx): New.
30661 2015-03-10  Richard Biener  <rguenther@suse.de>
30663         PR middle-end/44563
30664         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
30665         for compare_type.
30666         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
30667         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
30668         (cgraph_add_edge_to_call_site_hash): Likewise.
30669         (cgraph_node::get_edge): Likewise.
30670         (cgraph_edge::set_call_stmt): Likewise.
30671         (cgraph_edge::remove_caller): Likewise.
30673 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
30675         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
30676         (callee_saved_gpr_regs_size): ... this.
30677         (callee_saved_regs_first_regno): Rename to ...
30678         (callee_saved_first_gpr_regno): ... this.
30679         (callee_saved_regs_last_regno) Rename to ...
30680         (callee_saved_last_gpr_regno): ... this.
30681         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
30682         variables.
30683         (nds32_initial_elimination_offset): Likewise.
30684         (nds32_expand_prologue): Likewise.
30685         (nds32_expand_epilogue): Likewise.
30686         (nds32_expand_prologue_v3push): Likewise.
30687         (nds32_expand_epilogue_v3pop): Likewise.
30688         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
30689         Adjust renamed variables.
30690         (nds32_output_stack_pop): Likewise.
30692 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30694         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
30695         code in comment.
30697 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
30699         PR rtl-optimization/65321
30700         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
30701         than shift mode.
30702         * var-tracking.c (use_narrower_mode): Likewise.
30704 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
30706         PR tree-optimization/65355
30707         * varasm.c (notice_global_symbol): Do not produce RTL.
30708         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
30709         anchor.
30710         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
30711         check for section anchors.
30713 2015-03-10  Alan Modra  <amodra@gmail.com>
30715         PR target/65286
30716         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
30717         to be single-arch by default.  Set cpu_is_64bit for powerpc64
30718         given --with-cpu=native.
30719         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
30720         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
30721         and powerpc64le.
30722         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
30723         rs6000_isa_flags rather than TARGET_64BIT.
30725 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
30726             Kaz Kojima  <kkojima@gcc.gnu.org>
30728         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
30730 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
30732         PR lto/65361
30733         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
30734         on a TREE_BINFO, instead use BINFO_TYPE.
30736 2015-03-09  Richard Biener  <rguenther@suse.de>
30738         PR middle-end/65270
30739         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
30740         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
30741         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
30742         of that.  When comparing dereferences compare alignment.
30743         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
30745 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
30747         * ipa-inline-analysis.c (check_callers): Check
30748         node->can_remove_if_no_direct_calls_and_refs_p.
30749         (growth_likely_positive): Reorganize to call
30750         can_remove_if_no_direct_calls_p later.
30751         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
30752         will_be_removed_from_program_if_no_direct_calls_p): Add
30753         will_inline parameter.
30754         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
30755         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30756         Handle inliner case correctly.
30758 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30760         PR tree-optimization/63743
30761         * cfgexpand.c (reorder_operands): Also reorder if only second operand
30762         had its definition forwarded by TER.
30764 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
30766         PR lto/65316
30767         * ipa-utils.h (types_odr_comparable): Add strict argument.
30768         * ipa-devirt.c: Fix whitespace;
30769         (odr_hasher): Remove.
30770         (odr_name_hasher, odr_vtable_hasher): New hashers.
30771         (can_be_name_hashed_p): New predicate.
30772         (hash_type_name): remove.
30773         (hash_odr_name): New.
30774         (odr_name_hasher::hash): new.
30775         (can_be_vtable_hashed_p): New.
30776         (hash_odr_vtable): New.
30777         (odr_vtable_hasher::hash): New.
30778         (types_same_for_odr): Add strict parameter.
30779         (types_odr_comparable): Likewise.
30780         (odr_name_hasher::equal): New.
30781         (odr_vtable_hasher::equal): New.
30782         (odr_name_hasher::remove): New.
30783         (odr_hash_type): Change to hash_table<odr_name_hasher>.
30784         (odr_vtable_hash_type): New.
30785         (odr_vtable_hash): New.
30786         (odr_subtypes_equivalent_p): Do strict comparsion.
30787         (add_type_duplicate): Merge type names; cleanup; avoid type
30788         duplicates.
30789         (register_odr_type): Initialize vtable hash.
30790         (build_type_inheritance_graph): Likewise
30791         (get_odr_type): Reorg to use two hashes.
30792         (dump_possible_polymorphic_call_targets): Move sanity check after debug
30793         output.
30794         (ipa_devirt): Dump type_inheritance_graph.
30795         (types_same_for_odr): Add strict mode.
30797 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
30799         PR ipa/65334
30800         * cgraph.h (symtab_node): Add definition_alignment,
30801         can_increase_alignment_p and increase_alignment.
30802         * symtab.c (symtab_node::can_increase_alignment_p,
30803         increase_alignment_1, symtab_node::increase_alignment,
30804         symtab_node::definition_alignment): New.
30805         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
30806         can_increase_alignment_p.
30807         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
30808         * tree-vect-stmts.c (ensure_base_align): Likewise.
30809         * varasm.c (function_section_1): Use definition_alignment.
30810         (assemble_start_function): Likewise.
30811         (emit_local): likewise.
30812         (build_constant_desc): Likewsie.
30813         (output_constant_def_contents): Likewise.
30814         (place_block_symbol): Likewise.
30815         (output_object_block): Likewise.
30817 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
30819         PR ipa/65316
30820         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
30821         when outputting debug.
30823 2015-03-07  Marek Polacek  <polacek@redhat.com>
30824             Martin Uecker  <uecker@eecs.berkeley.edu>
30826         PR sanitizer/65280
30827         * doc/invoke.texi: Update description of -fsanitize=bounds.
30829 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
30831         * tree-ssa-phiopt.c (neg_replacement): Remove.
30832         (tree_ssa_phiopt_worker): Remove negate optimization.
30834 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
30836         PR ipa/65302
30837         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
30839 2015-03-06  Richard Biener  <rguenther@suse.de>
30841         PR middle-end/64928
30842         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
30843         and liveout_obstack members.
30844         (calculate_live_on_exit): Remove.
30845         (calculate_live_ranges): Change declaration.
30846         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
30847         (new_tree_live_info): Adjust.
30848         (calculate_live_ranges): Delete livein when not wanted.
30849         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
30850         Deal with partly deleted live info.
30851         (loe_visit_block): Remove temporary bitmap by using
30852         bitmap_ior_and_compl_into.
30853         (live_worklist): Adjust accordingly.
30854         (calculate_live_on_exit): Make static.
30855         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
30856         we do not need livein.
30858 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
30860         * real.c (real_from_string): Fix typo in assertion.
30862 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
30864         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
30865         the patch.
30867 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
30869         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
30871 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
30873         PR target/64342
30874         * lra-assigns.c (find_hard_regno_for): Rename to
30875         find_hard_regno_for_1.  Add a new parameter.
30876         (find_hard_regno_for): New function using find_hard_regno_for_1.
30878 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30880         PR rtl-optimization/65067
30881         * expmed.c (store_bit_field, extract_bit_field): Reworked the
30882         strict volatile bitfield handling.
30884 2015-03-05  Martin Liska  <mliska@suse.cz>
30886         PR ipa/65318
30887         * ipa-icf.c (sem_variable::equals): Compare variables types.
30889 2015-03-05  Richard Henderson  <rth@redhat.com>
30891         PR target/65121
30892         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
30893         correctly check weak symbol binding.
30895 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
30897         PR middle-end/65315
30898         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
30899         needed alignment.
30901 2015-03-05  Martin Liska  <mliska@suse.cz>
30903         * ipa-inline.c (inline_small_functions): Set default value to
30904         prevent warning during bootstrap.
30905         * tree.h: Add pragma guard that ignores false positives during
30906         bootstrap.
30908 2015-03-05  Richard Biener  <rguenther@suse.de>
30910         PR tree-optimization/65310
30911         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30912         Properly preserve alignment of the base of the access.
30914 2015-03-05  Richard Biener  <rguenther@suse.de>
30916         PR ipa/65270
30917         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
30918         Compare dependence info.
30920 2015-03-05  Richard Biener  <rguenther@suse.de>
30922         PR middle-end/65233
30923         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
30924         tree-into-ssa.h.
30925         (walk_ssa_copies): Revert last chage.  Instead do not walk
30926         SSA names registered for SSA update.
30928 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
30930         PR ipa/65270
30931         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
30932         vtable references for their containing type.
30933         (sem_function::equals_wpa): Compare TYPE_RESTRICT
30934         and type attributes.
30936 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
30938         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
30939         before negating it.
30940         * stor-layout.c (finalize_record_size): Revert latest change.
30942 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
30944         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
30946 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
30948         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
30949         for correct comdat handling.
30950         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30951         Likewise.
30952         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
30953         (used_from_object_file_p_worker): Remove.
30954         (cgraph_node::only_called_directly_or_alised): Add
30955         used_from_object_file_p.
30956         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
30957         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
30958         can_remove_if_no_direct_calls_and_refs_p.
30960 2015-03-04  Nick Clifton  <nickc@redhat.com>
30962         * config/rl78/rl78.h (enum reg_class): Remove real registers from
30963         General register class.
30964         * config/rl78/rl78-real.md: Replace general register constraints
30965         with real+virtual register constraints.
30967 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30969         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
30970         from checking for -mhtm option.
30972 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
30974         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
30975         (struct ipa_sra_check_caller_data): Add has_thunk field.
30976         (ipa_sra_check_caller): Check for thunk.
30977         (ipa_sra_preliminary_function_checks): Give up on function with
30978         thunks.
30979         (ipa_early_sra): Use call_for_symbol_and_aliases.
30981 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
30983         PR target/65249
30984         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
30985         called for __stack_chk_guard symbol.
30987 2015-03-03  DJ Delorie  <dj@redhat.com>
30989         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
30990         inc/dec.
30991         (*addhi3_real): Likewise.
30992         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
30993         pattern to match incrementing memory.
30994         * config/rl78/predicates.md (rl78_1_2_operand): New.
30995         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
30996         it's the same and only mem.
30997         (rl78_alloc_physical_registers_op2): If there's effectively only
30998         one MEM, transcode it into HL.
30999         (rl78_far_p): Reject addresses that aren't legitimate.
31001 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31003         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31004         negating it.
31006         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31008 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31010         Implement call0 ABI for xtensa
31011         * config/xtensa/constraints.md ("a" constraint): Include stack
31012         pointer in case of call0 ABI.
31013         ("q" constraint): Make empty in case of call0 ABI.
31014         ("D" constraint): Include stack pointer in case of call0 ABI.
31015         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31016         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31017         prototypes.
31018         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31019         variable.
31020         (xtensa_regno_to_class): Make it a local variable in the
31021         function xtensa_regno_to_class.
31022         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31023         macro, function prototype and implementation.
31024         (reg_nonleaf_alloc_order): Make it a local variable in the
31025         function order_regs_for_local_alloc.
31026         (xtensa_conditional_register_usage): New function.
31027         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31028         (xtensa_valid_move): Allow direct moves to stack pointer
31029         register in call0 ABI.
31030         (xtensa_setup_frame_addresses): Only spill register windows in
31031         windowed ABI.
31032         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31033         call0 ABI respectively.
31034         (xtensa_function_arg_1): Only mark a7 register for copying in
31035         windowed ABI.
31036         (xtensa_call_save_reg): New function.
31037         (compute_frame_size): Add space for callee saved register
31038         storage to the frame size in call0 ABI.
31039         (xtensa_expand_prologue): Generate code to set up stack frame
31040         and save callee-saved registers in call0 ABI.
31041         (xtensa_expand_epilogue): New function.
31042         (xtensa_set_return_address): New function.
31043         (xtensa_return_addr): Calculate return address in call0 ABI.
31044         (xtensa_builtin_saveregs): Only mark a7 register for copying and
31045         emit copying code in windowed ABI.
31046         (order_regs_for_local_alloc): Add preferred register allocation
31047         order for non-leaf function in call0 ABI.
31048         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31049         (xtensa_asm_trampoline_template): Add trampoline generation for
31050         call0 ABI.
31051         (xtensa_trampoline_init): Add trampoline initialization for
31052         call0 ABI.
31053         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31054         functions.
31055         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31056         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31057         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31058         ABI call-used registers.
31059         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31060         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31061         call0 ABI.
31062         (REG_CLASS_CONTENTS): Include all registers into the preferred
31063         reload registers set, adjust the set in the
31064         xtensa_conditional_register_usage.
31065         (xtensa_regno_to_class): Drop variable declaration.
31066         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31067         function.
31068         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31069         respectively.
31070         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31071         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31072         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31073         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31074         location in call0 ABI.
31075         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31076         stack adjustment size when handling exception.
31077         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31078         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31079         definitions.
31080         ("return" pattern): Generate ret.n/ret in call0 ABI.
31081         ("epilogue" pattern): Expand epilogue.
31082         ("nonlocal_goto" pattern): Use default in call0 ABI.
31083         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31084         emit eh_set_a0_* depending on ABI.
31085         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31086         ("eh_set_a0_call0", "blockage"): New patterns.
31088 2015-03-03  Martin Liska  <mliska@suse.cz>
31090         PR ipa/65287
31091         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31093 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
31095         PR 65138/target
31096         * config/rs6000/rs6000-tables.opt: Regenerate table.
31098 2015-03-03  Renlin Li  <renlin.li@arm.com>
31100         * doc/md.texi (@item ^): Change ? into ^.
31102 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31104         * doc/tm.texi: Regenerated.
31106 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31108         * builtins.c (expand_builtin_return_addr): Add
31109         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31110         surrounding #ifdef.
31111         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31112         definition to 1.
31113         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31114         Likewise.
31115         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31116         undefined.
31117         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31118         paragraph.
31120 2015-03-03  Martin Jambor  <mjambor@suse.cz>
31121             Eric Botcazou  <ebotcazou@adacore.com>
31123         * tree-sra.c (ipa_sra_check_caller_data): New type.
31124         (has_caller_p): Removed.
31125         (ipa_sra_check_caller): New function.
31126         (ipa_sra_preliminary_function_checks): Use it.
31128 2015-03-03  Martin Liska  <mliska@suse.cz>
31130         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31131         instead of if branch.
31133 2015-03-03  Martin Liska  <mliska@suse.cz>
31135         PR ipa/65282
31136         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31138 2015-03-23  Jeff Law  <law@redhat.com>
31140         PR tree-optimization/65241
31141         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31142         hash table if INSERT is true.
31144 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31146         PR target/65296
31147         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31149 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31151         PR target/64331
31152         * config/avr/avr.c (context.h, tree-pass.h): Include them.
31153         (avr_pass_data_recompute_notes): New static variable.
31154         (avr_pass_recompute_notes): New class.
31155         (avr_register_passes): New static function.
31156         (avr_option_override): Call it.
31158 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31160         Fix various problems with specs file generation.
31162         PR target/65296
31163         * config.gcc (extra_gcc_objs) [avr]: Remove.
31164         * config/avr/driver-avr.c: Remove file.
31165         * config/avr/t-avr (driver-avr.o): Remove rule.
31166         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31167         INCLUDES to build.  Depend on TM_H.
31168         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
31169         build warnings.  Fix non-matching types and non-existing %-codes.
31170         (tm.h): Include.
31171         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31172         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31173         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31174         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31175         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31176         (LIBGCC_SPEC): Remove definitions.
31178 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31180         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31181         to create a register in testing mode.
31183 2015-03-03  Martin Liska  <mliska@suse.cz>
31184             Jan Hubicka  <hubicka@ucw.cz>
31186         PR ipa/65263
31187         * cgraph.c (cgraph_node::has_thunk_p): New function.
31188         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31189         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31190         (sem_function::merge): Assert is changed.
31192 2015-03-03  Martin Liska  <mliska@suse.cz>
31193             Martin Jambor  <mjambor@suse.cz>
31195         PR ipa/65087
31196         * ipa-icf.c (sem_item_optimizer::execute): Change function
31197         return value to boolean.
31198         (sem_item_optimizer::merge_classes): Likewise.
31199         (ipa_icf_driver): Return TODO_remove_functions in case there's
31200         a merge operation processed.
31201         * ipa-icf.h: Change function return value to boolean.
31203 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
31205         PR 65138/target
31206         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31207         processor type for 64-bit little endian PowerPC.
31209         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31210         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
31211         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
31212         printing built-in mask so it does not pass NULL pointers.
31214         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31215         -mcpu=powerpc64le.
31217 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
31219         PR target/58158
31220         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31221         !ISA_HAS_FP_CONDMOVE.
31223 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
31225         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31226         reload_completed.
31228 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
31230         * doc/invoke.texi (Options for Code Generation Conventions):
31231         Fix URL of DSO paper.
31233 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31235         PR ipa/65130
31236         * ipa-inline.c (check_callers): Looks for recursion.
31237         (inline_to_all_callers): Give up on uninlinable or recursive edges.
31238         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31239         summary of inline clones.
31240         (do_estimate_growth_1): Fix recursion check.
31242 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31244         PR ipa/64988
31245         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31246         comdat groups.
31248 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31249             Aldy Hernandez  <aldyh@redhat.com>
31251         PR lto/65276
31252         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31253         when checking TYPE_BINFO.
31255 2015-03-02  Richard Biener  <rguenther@suse.de>
31257         PR ipa/65270
31258         * ipa-icf-gimple.c: Include builtins.h.
31259         (func_checker::compare_memory_operand): Compare base alignment.
31261 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31263         PR target/65184
31264         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31265         passed by reference.
31267 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31269         PR target/65183
31270         * tree-chkp.c (chkp_check_lower): Don't check against
31271         zero bounds for already instrumented functions.
31272         (chkp_check_upper): Likewise.
31273         (chkp_fini): Clean pass local data to avoid wrong reusage.
31275 2015-02-28  Martin Liska  <mliska@suse.cz>
31276             Jan Hubicka  <hubicka@ucw.cz>
31278         * ipa-icf.c (sem_variable::equals): Improve debug output;
31279         get variable constructor.
31280         (sem_variable::parse): Do not filter out too early; give up on
31281         volatile and register vars.
31282         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31283         variables.
31284         * ipa-icf.h (sem_variable::init): Do not set ctor.
31285         (sem_variable::ctor): Remove.
31287 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
31289         PR middle-end/65233
31290         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31292 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31294         * ipa-icf.c: Include stor-layout.h
31295         (sem_function::compare_cgraph_references): Rename to ...
31296         (sem_item::compare_cgraph_references): ... this one.
31297         (sem_variable::equals_wpa): New function
31298         (sem_variable::equals): Do not check stuff already verified by
31299         equals_wpa.
31300         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31301         * ipa-icf.h (sem_item): Add compare_cgraph_references.
31302         (sem_function): Remove compare_cgraph_references.
31303         (sem_variable): Turns equals_wpa into non-inline.
31305 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31307         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31308         (sem_item::add_expr): New function.
31309         (sem_function::hash_stmt): Handle operands of most statements.
31310         (sem_variable::get_hash): Hash the actual constructor.
31311         * ipa-icf.h (sem_item): Add add_expr.
31312         (sem_function): Update prototype of hash_stmt
31314 2015-02-28  Martin Liska  <mliska@suse.cz>
31315             Jan Hubicka  <hubicka@ucw.cz>
31317         PR ipa/65245
31318         * ipa-icf-gimple.c (func_checker::compare_function_decl):
31319         Remove.
31320         (func_checker::compare_variable_decl): Skip symtab vars.
31321         (func_checker::compare_cst_or_decl): Update.
31322         * ipa-icf.c (sem_function::parse): Do not consider aliases.
31323         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31324         use correct symtab predicates.
31325         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31326         (sem_variable::parse):  Update comment.
31327         (sem_item_optimizer::build_graph): Consider ultimate aliases
31328         for references.
31330 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31332         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31333         of OBJ_TYPE_REF.
31335 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31337         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31338         (sem_variable::merge) Likewise.
31340 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31342         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31343         target; also match flag_ipa_devirt.
31345 2015-03-01  Martin Liska  <mliska@suse.cz>
31346             Jan Hubicka  <hubicka@ucw.cz>
31348         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31349         Validate variable alignment.
31350         * ipa-icf.c (sem_function::equals_private): Be more precise
31351         about non-common function attributes.
31352         (sem_variable::equals): Likewise.
31354 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31356         PR ipa/65237
31357         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31358         across COMDAT group boundary.
31360 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31362         PR ipa/65232
31363         * ipa-icf.c (clear_decl_rtl): New function.
31364         (sem_function::merge): Clear RTL before forming alias.
31365         (sem_variable::merge): Clear RTL before forming alias.
31367 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31369         PR ipa/65236
31370         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31372 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
31374         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31375         to neon_to_gp<q>.
31377 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31379         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31380         a typo in the description.
31382 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31384         PR target/64317
31385         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31386         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31387         * lra-constraints.c: Include "params.h".
31388         (EBB_PROBABILITY_CUTOFF): Use
31389         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31390         (lra_inheritance): Use '<' instead of '<=' for
31391         EBB_PROBABILITY_CUTOFF.
31392         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31393         Document change.
31395 2015-02-27  Martin Liska  <mliska@suse.cz>
31397         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31398         vector length condition.
31400 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
31402         * doc/extend.texi (x86 transactional memory intrinsics):
31403         Reorganize discussion of _xbegin.  Clarify that the return
31404         value is a bit mask.  Expand example and move to end of section.
31406 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31407             Aldy Hernandez  <aldyh@redhat.com>
31409         PR rtl-optimization/65220
31410         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31412 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31414         PR target/65032
31415         * lra-remat.c (update_scratch_ops): New.
31416         (do_remat): Call it.
31417         * lra.c (lra_register_new_scratch_op): New. Take code from ...
31418         (remove_scratches): ... here.
31419         * lra-int.h (lra_register_new_scratch_op): New prototype.
31421 2015-02-27  Marek Polacek  <polacek@redhat.com>
31423         PR c/65040
31424         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31425         -Wformat-signedness anymore.
31427 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31429         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31430         function.
31431         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31433 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31435         * config/s390/s390.c (enum s390_builtin):
31436         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31437         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31438         (s390_init_builtins): Generate new builtin functions.
31439         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31440         (s390_sfpc, s390_efpc): New pattern definitions.
31442 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31444         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
31445         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
31446         (s390_builtin_decls): New array.
31447         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
31448         (s390_builtin_decl): New function.
31449         (TARGET_BUILTIN_DECL): Define macro.
31451 2015-02-27  Richard Biener  <rguenther@suse.de>
31453         PR middle-end/63175
31454         * builtins.c (get_object_alignment_2): Make sure to re-apply
31455         the ANDed mask after recursing to its operand gets us a new
31456         misalignment bit position.
31458 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
31459             Martin Liska  <mliska@suse.cz>
31461         PR bootstrap/65150
31462         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
31463         Use address_matters_p.
31464         (redirect_all_callers, set_addressable): New functions.
31465         (sem_function::merge): Reorganize and fix merging issues.
31466         (sem_variable::merge): Likewise.
31467         (sem_variable::compare_sections): Remove.
31468         * common.opt (fmerge-all-constants, fmerge-constants): Remove
31469         Optimization flag.
31470         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
31471         redirect them.
31472         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
31473         decl is used.
31474         (address_matters_1): New function.
31475         (symtab_node::address_matters_p): New function.
31476         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
31477         check for merged flag.
31478         * cgraph.h (address_matters_p): Declare.
31479         (symtab_node::address_taken_from_non_vtable_p): Remove.
31480         (symtab_node::address_can_be_compared_p): New method.
31481         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
31482         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
31483         Remove.
31484         (comdat_can_be_unshared_p_1) Use address_matters_p.
31485         (update_vtable_references): Fix formating.
31486         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
31487         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
31488         * cgraphclones.c: Preserve merged and icf_merged flags.
31490 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
31492         * doc/extend.texi (Function Attributes): Fix spelling and typos.
31493         (Label Attributes): Likewise.
31494         (Cilk Plus Builtins): Likewise.
31495         (ARC SIMD Built-in Functions): Likewise.
31496         (ARM C Language Extensions (ACLE)): Likewise.
31497         (PowerPC Built-in Functions): Likewise.
31498         (PowerPC Hardware Transactional Memory Built-in Functions):
31499         Likewise.
31501 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31503         PR tree-optimization/65216
31504         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
31505         new stmt and new SSA_NAME for lhs whenever the arguments have
31506         changed and weren't just swapped.  Fix comment typo.
31508         PR tree-optimization/65215
31509         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
31510         for PDP endian targets.
31511         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
31512         Fix up formatting issues.
31513         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
31514         size is smaller than the original, adjust MEM_REF offset by the
31515         difference of sizes.  Use is_gimple_mem_ref_addr instead of
31516         is_gimple_min_invariant test to avoid adding address temporaries.
31518 2015-02-26  Martin Liska  <mliska@suse.cz>
31519             Jan Hubicka  <hubicka@ucw.cz>
31521         PR ipa/64693
31522         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
31523         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
31524         (sem_item_optimizer::process_cong_reduction): Include division by
31525         sensitive references.
31526         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
31527         * ipa-ref.c (ipa_ref::address_matters_p): New function.
31528         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
31530 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
31532         PR target/65192
31533         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
31534         Remove.
31535         * config/avr/avr.c: Same.
31536         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
31537         Refuse any constant address not in 0..0xbf.
31538         * config/avr/avr.md (*mov<mode>, *movsf): Remove
31539         tiny_valid_direct_memory_access_range from insn conditions.
31540         (mov<mode>): Don't special-case expansion of avrtiny addresses.
31542 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
31544         PR target/61142
31545         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
31546         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
31547         * config/sh/predicates.md (const_logical_operand): New predicate.
31548         * config/sh/sh.md: Add new peephole2 patterns.
31550 2015-02-26  Marek Polacek  <polacek@redhat.com>
31552         PR ipa/65008
31553         * ipa-inline.c (early_inliner): Recompute inline parameters.
31555 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31557         PR target/65171
31558         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
31559         instructions with TImode operands are included in the analysis.
31561 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
31563         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
31564         of an EDGE_FSM_THREAD.
31566 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31568         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
31570 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
31572         PR debug/46102
31573         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
31575 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
31577         PR tree-optimization/65048
31578         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
31579         (thread_through_all_blocks): Call valid_jump_thread_path.
31580         Remove invalid FSM jump-thread paths.
31582 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31584         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
31585         (ipa_write_optimization_summaries): Likewise.
31586         * tree-streamer.h: Include data-streamer.h.
31587         (streamer_mode_table): Declare extern variable.
31588         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
31589         * lto-streamer-out.c (lto_output_init_mode_table,
31590         lto_write_mode_table): New functions.
31591         (produce_asm_for_decls): Call lto_write_mode_table when streaming
31592         offloading LTO.
31593         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
31594         (lto_create_simple_input_block): Add mode_table argument to the
31595         lto_input_block constructors.
31596         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
31597         Likewise.
31598         * data-streamer-in.c (string_for_index): Likewise.
31599         * ipa-inline-analysis.c (inline_read_section): Likewise.
31600         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
31601         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
31602         * lto-streamer-in.c (lto_read_body_or_constructor,
31603         lto_input_toplevel_asms): Likewise.
31604         (lto_input_mode_table): New function.
31605         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
31606         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
31607         Use bp_pack_machine_mode.
31608         * real.h (struct real_format): Add name field.
31609         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
31610         (class lto_input_block): Add mode_table member.
31611         (lto_input_block::lto_input_block): Add mode_table_ argument,
31612         initialize mode_table.
31613         (struct lto_file_decl_data): Add mode_table field.
31614         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
31615         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
31616         unpack_ts_decl_common_value_fields,
31617         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
31618         * tree-streamer.c (streamer_mode_table): New variable.
31619         * real.c (ieee_single_format, mips_single_format,
31620         motorola_single_format, spu_single_format, ieee_double_format,
31621         mips_double_format, motorola_double_format,
31622         ieee_extended_motorola_format, ieee_extended_intel_96_format,
31623         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
31624         ibm_extended_format, mips_extended_format, ieee_quad_format,
31625         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
31626         decimal_single_format, decimal_double_format, decimal_quad_format,
31627         ieee_half_format, arm_half_format, real_internal_format): Add name
31628         field.
31629         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
31631 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
31633         PR target/65161
31634         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
31635         reordering for selective scheduling.
31637 2015-02-26  Terry Guo  <terry.guo@arm.com>
31639         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
31640         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
31641         (arm_arch_no_volatile_ce): Declare new global variable.
31642         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
31643         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
31644         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
31645         (TARGET_NO_VOLATILE_CE): New macro.
31646         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
31647         volatile memory access in IT block
31649 2015-02-25  Kai Tietz  <ktietz@redhat.com>
31651         PR tree-optimization/61917
31652         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
31653         that reduc_def_stmt is null.
31655 2015-02-25  Martin Liska  <mliska@suse.cz>
31657         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
31658         hard register variables.
31660 2015-02-25  Kai Tietz  <ktietz@redhat.com>
31662         PR target/64212
31663         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
31664         (symtab::noninterposable_alias): Likewise.
31666 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
31668         PR target/65167
31669         * config/i386/i386.c (ix86_function_arg_regno_p): Support
31670         bounds registers.
31671         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
31673 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
31675         PR target/64997
31676         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
31677         as split condition; force split via '#' in output pattern.
31679 2015-02-25  Richard Biener  <rguenther@suse.de>
31680             Kai Tietz  <ktietz@redhat.com>
31682         PR tree-optimization/61917
31683         * tree-vect-loop.c (vectorizable_reduction): Allow
31684         vect_internal_def without reduction to exit graceful.
31686 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
31688         PR target/65196
31689         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
31690         only with NONDEBUG_INSN_P.
31692 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
31694         Use variadic macros with avr-log.c.
31696         * config/avr/avr-protos.h (avr_vdump): New prototype.
31697         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
31698         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
31699         * config/avr/avr-log.c: Adjust comments.
31700         (avr_vdump): New function.
31701         (avr_vadump): Pass caller as 2nd argument instead of format string.
31702         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
31703         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
31705 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
31707         PR lto/64374
31708         * target.def (target_option_stream_in): New target hook.
31709         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
31710         targetm.target_option.post_stream_in if non-NULL.
31711         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
31712         * doc/tm.texi: Updated.
31713         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
31714         function.
31715         (TARGET_OPTION_POST_STREAM_IN): Redefine.
31717 2015-02-24  Jeff Law  <law@redhat.com>
31719         PR target/65117
31720         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
31721         of operand 0 and operand 2.
31722         (zero_cost_loop_end, loop_end): Similarly.
31724 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
31726         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
31727         CXX_MEM_STAT_INFO.
31729 2015-02-24  DJ Delorie  <dj@redhat.com>
31731         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
31732         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
31733         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
31734         instead of hardcoding SImode.
31736 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
31738         * omp-low.c (create_omp_child_function): Tag entrypoint
31739         functions with a special attribute.
31741 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31743         PR target/65058
31744         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
31746 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
31748         PR rtl-optimization/65123
31749         * lra-remat.c (operand_to_remat): Check hard regs in insn
31750         definition too.
31752 2015-02-24  Nick Clifton  <nickc@redhat.com>
31754         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
31755         to the assembler.
31757 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
31759         PR libgomp/64625
31760         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
31761         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
31762         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
31763         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
31764         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
31765         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
31766         (BUILT_IN_GOACC_PARALLEL): Specify as
31767         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
31768         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
31769         * builtin-types.def
31770         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31771         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31772         Remove function types.
31773         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
31774         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31775         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31776         New function types.
31778 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
31780         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
31782 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
31784         PR tree-optimization/65170
31785         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
31786         if val[1] < 0, clear also val[2] and return 3.
31788 2015-02-24  Alan Modra  <amodra@gmail.com>
31790         PR target/65172
31791         * config/rs6000/rs6000.c (get_memref_parts): Only return true
31792         when *base is a reg.  Handle nested plus addresses.  Simplify
31793         pre_modify test.
31795 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
31797         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
31798         use natural alignment when optimizing for size.
31800 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
31802         PR target/65153
31803         * config/sh/sh.md (movsicc_true+3): Remove peephole.
31804         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
31805         * config/sh/sh.c (replace_n_hard_rtx): Remove.
31807 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
31809         PR fortran/63427
31810         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
31811         too big for a wide_int.  Implement missing wrapping operation.
31813 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
31815         PR target/65163
31816         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
31817         instead of const_int 4294901760.
31819 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
31821         * config/avr/t-avr: Fix typo in comment.
31823 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
31825         * doc/rtl.texi (fma): Clarify documentation.
31827 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
31829         PR debug/58123
31830         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
31831         over input_location.
31833 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
31835         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
31836         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
31837         restrict alignments to absolute_biggest_alignment.
31838         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
31839         Define.
31840         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
31841         * doc/tm.texi: Regenerate.
31842         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
31844 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
31846         PR target/64172
31847         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
31849 2015-02-20  Richard Biener  <rguenther@suse.de>
31851         PR tree-optimization/65136
31852         * tree-ssa-propagate.c: Include cfgloop.h.
31853         (replace_phi_args_in): Avoid replacing loop latch edge PHI
31854         arguments with constants.
31856 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
31857             Martin Liska  <mliska@suse.cz>
31859         PR target/63892
31860         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
31861         don't try to create_thunk if stdarg_p.  If
31862         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
31863         redirect_callers if possible.
31864         (sem_item_optimizer::execute): Call unregister_hooks here...
31865         (ipa_icf_driver): ... instead of here.
31867 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31869         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
31870         Mark operand 0 as earlyclobber in 2nd alternative.
31871         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
31872         Write negated shift amount into QI lowpart operand 0 and use it
31873         in the shift step.
31874         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
31876 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
31878         * cgraph.h (clone_function_name_1): Declare.
31879         * cgraphclones.c (clone_function_name_1): New function.
31880         (clone_function_name): Use it.
31881         * lto-partition.c: Include "stringpool.h".
31882         (must_not_rename, maybe_rewrite_identifier)
31883         (validize_symbol_for_target): New static functions.
31884         (privatize_symbol_name): Use must_not_rename.
31885         (promote_symbol): Call validize_symbol_for_target.
31886         (lto_promote_cross_file_statics): Likewise.
31887         (lto_promote_statics_nonwpa): Likewise.
31889 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
31891         PR target/64452
31892         * config/avr/avr.md (pushhi_insn): New insn.
31893         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
31895 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
31896             Jakub Jelinek  <jakub@redhat.com>
31898         * tree-streamer.c (preload_common_nodes): Don't preload
31899         TI_VA_LIST* for offloading.
31900         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
31901         in_lto_p.
31903 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
31905         * config/pa/pa.c (pa_emit_move_sequence): Always force
31906         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
31907         note on insn.
31909         * config/pa/pa.c (pa_reloc_rw_mask): New function.
31910         (TARGET_ASM_RELOC_RW_MASK): Define.
31911         (pa_cannot_force_const_mem): Revert previous change.
31913 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
31914             Jan Hubicka  <hubicka@ucw.cz>
31916         PR ipa/65028
31917         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
31918         across jump functions.
31920 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
31922         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
31924 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
31926         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
31928 2015-02-19  Richard Henderson  <rth@redhat.com>
31930         PR middle-end/65074
31931         * varasm.c (default_binds_local_p_2): Don't test node->definition;
31932         test DECL_EXTERNAL independent of symtab_node.
31934 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
31936         PR lto/65012
31937         * varpool.c (varpool_node::get_constructor): Return early
31938         if this->lto_file_data is NULL.
31940 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31942         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
31943         (rank_for_schedule_debug): Update.
31944         (ready_sort): Make static.  Move sorting logic to ...
31945         (ready_sort_debug, ready_sort_real): New static functions.
31946         (schedule_block): Sort both debug insns and real insns in preparation
31947         for ready list trimming.  Improve debug output.
31948         * sched-int.h (ready_sort): Remove global declaration.
31950 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
31952         * ipa-icf.c (sem_function::equals_private): Adjust.
31953         (sem_function::bb_dict_test): Take a vec<int> * instead of
31954         auto_vec<int>.
31955         * ipa-icf.h (bb_dict_test): Likewise.
31957 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
31959         PR gcov-profile/64634
31960         * tree-eh.c (frob_into_branch_around): Fix up typos
31961         in function comment.
31962         (lower_catch): Put eh_seq resulting from EH lowering of
31963         the cleanup sequence after the cleanup rather than before it.
31965 2015-02-18  Tom de Vries  <tom@codesourcery.com>
31967         * common.opt (fstdarg-opt): New option.
31968         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
31969         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
31970         (@item -fstdarg-opt): New item.
31972 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
31974         PR target/65064
31975         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
31976         for common symbols.
31978 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
31980         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
31981         insn-modes.h.
31982         (ALL_HOST_OBJS): Add mkoffload.o.
31983         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
31985 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
31987         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
31988         (compare_virtual_tables): Be smarter about skipping typeinfos;
31989         do sane output on virtual table table mismatch.
31990         (warn_odr): Be ready for forward declarations of enums;
31991         output sane info on base mismatch and virtual table mismatch.
31992         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
31993         when only one type is polymorphic.
31994         (get_odr_type): Fix hashtable corruption.
31995         (dump_odr_type): Dump mangled names.
31997 2015-02-18  Richard Biener  <rguenther@suse.de>
31999         PR tree-optimization/65063
32000         * tree-predcom.c (determine_unroll_factor): Return 1 if we
32001         have replaced looparound PHIs.
32003 2015-02-18  Martin Liska  <mliska@suse.cz>
32005         * lto-streamer.c (lto_streamer_init): Encapsulate
32006         streamer_check_handled_ts_structures with checking macro.
32008 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32010         PR ipa/65087
32011         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32012         section if !implicit_section.
32013         (cgraph_node::create_version_clone_with_body): Likewise.
32014         * trans-mem.c (ipa_tm_create_version): Likewise.
32016 2015-02-18  Richard Biener  <rguenther@suse.de>
32018         PR tree-optimization/62217
32019         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32020         into BIVs.
32022 2015-02-18  Marek Polacek  <polacek@redhat.com>
32024         PR sanitizer/65081
32025         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32026         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32027         is in range [-16K, -1].  Don't issue run-time error if
32028         (ptr > ptr + offset).
32030 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
32032         * doc/install.texi (nvptx-*-none): New section.
32033         * doc/invoke.texi (Nvidia PTX Options): Likewise.
32034         * config/nvptx/nvptx.opt: Update.
32036         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32037         (access_check): New functions, copied from
32038         config/i386/intelmic-mkoffload.c.
32039         (main): For non-installed testing, look in all COMPILER_PATHs for
32040         GCC_INSTALL_NAME.
32042         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32044 2015-02-18  Andrew Pinski  <apinski@cavium.com>
32045             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32047         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32048         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32050 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32052         * ipa-visibility.c (function_and_variable_visibility): Only
32053         check locality if node is not already local.
32054         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32055         call_for_symbol_and_aliases instead of
32056         call_for_symbol_thunks_and_aliases.
32057         (ipa_inline): Likewise.
32058         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32059         first walk aliases.
32060         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32061         call_for_symbol_and_aliases.
32062         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32063         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32064         (ipa_propagate_frequency): Update.
32065         (ipa_profile): Add opt_for_fn gueards.
32067 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32069         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32070         * doc/invoke.texi (SH options): Document it.
32071         * config/sh/sh.c (sh_insn_length_adjustment): Check
32072         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32074 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
32076         * common.opt (fipa-cp-alignment): New.
32077         * ipa-cp.c (ipcp_store_alignment_results): Check
32078         flag_ipa_cp_alignment.
32079         * opts.c (default_options_table): Enable -fipa-cp-alignment for
32080         -O2.
32081         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32082         * doc/invoke.texi: Document -fipa-cp-alignment.
32084 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32086         PR target/64793
32087         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32088         to nil.  Adjust comments.
32090 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32092         * ipa-visibility.c (function_and_variable_visibility): Only
32093         check locality if node is not already local.
32094         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32095         call_for_symbol_and_aliases instead of
32096         call_for_symbol_thunks_and_aliases.
32097         (ipa_inline): Likewise.
32098         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32099         first walk aliases.
32100         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32101         call_for_symbol_and_aliases.
32102         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32103         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32104         (ipa_propagate_frequency): Update.
32105         (ipa_profile): Add opt_for_fn guards.
32107 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
32109         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32110         skipping of "strange" tokens.
32112 2015-02-17  Jeff Law  <law@redhat.com>
32114         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
32115         obsolete comment.
32117 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
32119         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32120         as forcing a HARD_DEP between instructions, thereby
32121         disallowing rewriting to break dependencies.
32123 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32125         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32126         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32127         variables in boundary that have no inlitalizer encoded and are
32128         not aliases.
32129         * varasm.c (default_binds_local_p_2): External definitions do not
32130         count as definitions here.
32132 2015-02-16  Jeff Law  <law@redhat.com>
32134         PR tree-optimization/64823
32135         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32136         statements.
32137         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32138         threading through blocks with PHIs, but no statements.
32139         (thread_through_normal_block): Distinguish between blocks where
32140         we did not process all the statements and blocks with no statements.
32142 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
32143             James Greenhalgh  <james.greenhalgh@arm.com>
32145         PR ipa/64963
32146         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32147         section if not linkonce.  Fix up formatting.
32148         (cgraph_node::create_version_clone_with_body): Copy section.
32149         * trans-mem.c (ipa_tm_create_version): Likewise.
32151 2015-02-16  Richard Biener  <rguenther@suse.de>
32153         PR tree-optimization/65077
32154         * tree-ssa-structalias.c (get_constraint_for_1): Handle
32155         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32156         (find_func_aliases): Allow float values to carry pointers again.
32158 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
32160         * doc/install.texi (Specific): Reorder targets list to put
32161         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
32162         from the top menu.
32164 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
32165             David Edelsohn  <dje.gcc@gmail.com>
32167         PR target/65058
32168         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32169         mapping class to external variable or function reference.
32170         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32171         mapping class.
32173 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
32175         PR target/53348
32176         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32177         ASM_WEAKEN_DECL if defined.
32179 2015-02-16  Richard Biener  <rguenther@suse.de>
32181         PR lto/65015
32182         * varasm.c (default_file_start): For LTO produced units
32183         emit <artificial> as file directive.
32185 2015-02-16  Richard Biener  <rguenther@suse.de>
32187         PR tree-optimization/63593
32188         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32189         stmts and releasing SSA names until...
32190         (execute_pred_commoning): ... after processing all chains.
32192 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32194         PR ipa/65059
32195         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32196         external functions.
32198 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
32200         * doc/bugreport.texi: Adjust section titles throughout the file
32201         to use "Title Case".
32202         * doc/extend.texi: Likewise.
32203         * doc/gcov.texi: Likewise.
32204         * doc/implement-c.texi: Likewise.
32205         * doc/implement-cxx.texi: Likewise.
32206         * doc/invoke.texi: Likewise.
32207         * doc/objc.texi: Likewise.
32208         * doc/standards.texi: Likewise.
32209         * doc/trouble.texi: Likewise.
32211 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
32213         * cgraph.h (symtab_node::has_aliases_p): Simplify.
32214         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32215         * tree.c (lookup_binfo_at_offset): Make static.
32216         (get_binfo_at_offset): Do not shadow offset; add explanatory
32217         comment.
32219 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
32221         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32222         for all floading point loads and stores except those using a register
32223         index address.
32224         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32225         to a register.
32227 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
32229         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32230         (do_estimate_growth_1): Record if any uninlinable edge was seen.
32231         (estimate_growth): Handle uninlinable edges correctly.
32232         (check_callers): New.
32233         (growth_likely_positive): Handle aliases correctly.
32235 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
32237         * ipa-chkp.c: Use iterate_direct_aliases.
32238         * symtab.c (resolution_used_from_other_file_p): Move inline.
32239         (symtab_node::create_reference): Fix formating.
32240         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32241         (symtab_node::iterate_reference): Move inline.
32242         (symtab_node::iterate_referring): Move inline.
32243         (symtab_node::iterate_direct_aliases): Move inline.
32244         (symtab_node::used_from_object_file_p_worker): Inline into ...
32245         (symtab_node::used_from_object_file_p): ... this one; move inline.
32246         (symtab_node::call_for_symbol_and_aliases): Move inline;
32247         use iterate_direct_aliases.
32248         (symtab_node::call_for_symbol_and_aliases_1): New method.
32249         (cgraph_node::call_for_symbol_and_aliases): Move inline;
32250         use iterate_direct_aliases.
32251         (cgraph_node::call_for_symbol_and_aliases_1): New method.
32252         (varpool_node::call_for_node_and_aliases): Rename to ...
32253         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32254         use iterate_direct_aliases.
32255         (varpool_node::call_for_symbol_and_aliases_1): New method.
32256         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32257         (ipa_discover_readonly_nonaddressable_var): Update.
32258         * ipa-devirt.c: Fix formating.
32259         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32260         Move inline.
32261         (cgraph_node::call_for_symbol_and_aliases): Move inline.
32262         (cgraph_node::call_for_symbol_and_aliases_1): New function..
32263         * cgraph.h (used_from_object_file_p_worker): Remove.
32264         (resolution_used_from_other_file_p): Move inline.
32265         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32266         (symtab_node::iterate_reference): Move inline.
32267         (symtab_node::iterate_referring): Move inline.
32268         (symtab_node::iterate_direct_aliases): Move inline.
32269         (symtab_node::used_from_object_file_p_worker): Inline into ...
32270         (symtab_node::used_from_object_file_p): Move inline.
32271         * tree-emutls.c (ipa_lower_emutls): Update.
32272         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32273         (varpool_node::call_for_node_and_aliases): Remove.
32275 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
32277         PR tree-optimization/62209
32278         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32279         op == range->exp, insert seq and gimplified code after labels
32280         instead of after the phi.
32282 2015-02-13  Jeff Law  <law@redhat.com>
32284         PR bootstrap/65060
32285         Revert my change for tree-optimization/64823.
32287 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
32289         PR tree-optimization/65053
32290         * tree-ssa-phiopt.c (value_replacement): When moving assign before
32291         cond, either reset VR on lhs or set it to phi result VR.
32293 2015-02-13  Jeff Law  <law@redhat.com>
32295         PR tree-optimization/64823
32296         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32297         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32298         threading through blocks with PHIs, but no statements.
32299         (thread_through_normal_block): Distinguish between blocks where
32300         we did not process all the statements and blocks with no statements.
32302         PR rtl-optimization/47477
32303         * match.pd (convert (plus/minus (convert @0) (convert @1): New
32304         simplifier to narrow arithmetic.
32306 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
32308         PR ipa/65028
32309         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32310         polymorphic call info when type is not known to be preserved.
32312 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
32314         PR ipa/65028
32315         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32316         (inline_call): Use it.
32318 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
32320         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32321         GOMP_DEVICE_NVIDIA_PTX.
32323 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
32325         PR ipa/65034
32326         * stmt.c (emit_case_nodes): Use void_type_node instead of
32327         NULL_TREE as LABEL_DECL type.
32329 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
32331         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32332         constraints.
32333         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32334         symbolic references to data to be forced to constant memory on the
32335         SOM target.
32337 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
32339         PR tree-optimization/65002
32340         * tree-cfg.c (pass_data_fixup_cfg): Don't update
32341         SSA on start.
32342         * tree-sra.c (some_callers_have_no_vuse_p): New.
32343         (ipa_early_sra): Reject functions whose callers
32344         assume function is read only.
32346 2015-02-13  Richard Biener  <rguenther@suse.de>
32348         PR lto/65015
32349         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32350         for LTO produced CUs.
32352 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
32354         PR tree-optimization/64705
32355         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32356         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32357         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32358         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32359         expand_simple_operations.
32361 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32362             Richard Henderson  <rth@redhat.com>
32364         PR rtl/32219
32365         * cgraphunit.c (cgraph_node::finalize_function): Set definition
32366         before notice_global_symbol.
32367         (varpool_node::finalize_decl): Likewise.
32368         * varasm.c (default_binds_local_p_2): Rename from
32369         default_binds_local_p_1, add weak_dominate argument.  Use direct
32370         returns instead of assigning to local variable.  Unify varpool and
32371         cgraph paths via symtab_node.  Reject undef weak variables before
32372         testing visibility.  Reorder tests for simplicity.
32373         (default_binds_local_p): Use default_binds_local_p_2.
32374         (default_binds_local_p_1): Likewise.
32375         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32376         via symtab_node.
32377         (default_elf_asm_output_external): Emit visibility when specified.
32379 2015-02-13  Alan Modra  <amodra@gmail.com>
32381         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32382         code setting up r11 for out-of-line fp restore.
32384 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
32386         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32387         (muser-mode): Likewise.
32389 2015-02-13  Alan Modra  <amodra@gmail.com>
32391         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32392         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32394 2015-02-12  David Howells  <dhowells@redhat.com>
32396         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32397         warning.
32398         * tree-ssa-uninit.c (dump_predicates): Likewise.
32399         * opts.c (print_filtered_help): Likewise.
32401 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
32403         * dwarf2out.c (output_die): Use "%s", name instead of name to
32404         avoid -Wformat-security warning.
32406         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32407         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32408         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32409         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32411 2015-02-12  Jason Merrill  <jason@redhat.com>
32413         * common.opt (-flifetime-dse): New.
32415 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
32417         PR sanitizer/65019
32418         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32420         PR tree-optimization/65014
32421         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32422         use original second operand of arg0 or arg1 instead of
32423         that adjusted by STRIP_NOPS.
32425 2015-02-11  Jeff Law  <law@redhat.com>
32427         PR target/63347
32428         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32429         that needs to be queued, just queue it for a single cycle.
32431 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
32433         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32434         bodies of thunks; comment on why.
32435         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32436         symbols are extern.
32438 2015-02-11  Richard Henderson  <rth@redhat.com>
32440         PR sanitize/65000
32441         * tree-eh.c (mark_reachable_handlers): Mark source and destination
32442         regions of __builtin_eh_copy_values.
32444 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
32446         PR middle-end/65003
32447         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
32448         ultimate alias is MEM with SYMBOL_REF satisfying
32449         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
32450         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
32452 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
32454         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
32455         "diagnostic-core.h".
32456         (main): Initialize progname, and call diagnostic_initialize.
32458         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
32459         instead of __OPENMP_TARGET__.
32461         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
32462         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
32463         hard-coding PTX_ID.
32465 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
32467         * doc/sourcebuild.texi (pie_enabled): Document.
32469 2015-02-11  Martin Liska  <mliska@suse.cz>
32471         PR ipa/64813
32472         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
32473         a return value for call to a function that is noreturn.
32475 2015-02-11  Richard Biener  <rguenther@suse.de>
32477         PR lto/65015
32478         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
32479         and -fresolution.
32481 2015-02-11  Andrew Pinski  <apinski@cavium.com>
32483         PR target/64893
32484         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
32485         Change the first argument type to size_type_node and add another
32486         size_type_node.
32487         (aarch64_simd_expand_builtin): Handle the new argument to
32488         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
32489         print an out when the first two arguments are not
32490         nonzero integer constants.
32491         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
32492         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
32494 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
32496         PR target/61925
32497         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
32498         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
32499         (ix86_set_current_function): Rewritten.
32500         (ix86_add_new_builtins): Temporarily clear current_target_pragma
32501         when creating builtin fndecls.
32503 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32505         PR ipa/65005
32506         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
32507         function.
32508         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
32509         have no comdat group.
32510         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
32511         (lto_output_varpool_node): Always output alias info.
32512         (output_refs): Output refs of boundary aliases, too.
32513         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
32514         (output_symtab): Output call eges in thunks in boundary.
32515         (get_alias_symbol): Remove.
32516         (input_node, input_varpool_node): Do not special case weakrefs.
32517         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
32518         alias and thunks targets in the boundary; do not take removed symbols
32519         from their comdat groups.
32520         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
32521         (cgraph_node::global_info): Remove.
32522         (cgraph_node::rtl_info): Look through aliases and thunks.
32523         * cgrpah.h (global_info): Remove.
32524         (non_local_p): Remove.
32526 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32527             Sandra Loosemore  <sandra@codesourcery.com>
32529         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
32530         to inline asm.  List dialects in proper order.
32532 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32533             Sandra Loosemore  <sandra@codesourcery.com>
32535         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
32537 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32539         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
32540         modified) reference to Solaris.
32542 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
32544         * doc/extend.texi (Extended Asm): Fix typos.
32546 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
32548         PR sanitizer/65004
32549         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
32551 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
32553         PR target/64661
32554         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
32555         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
32556         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
32557         * config/sh/constraints.md (Ara, Add): New constraints.
32558         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
32559         predicates.
32560         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
32561         atomic_mem_operand_0.  Don't use force_reg on the memory address.
32562         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
32563         Sra constraint.  Convert to insn_and_split.  Add workaround for
32564         PR 64974.
32565         (atomic_compare_and_swap<mode>_hard): Copy to
32566         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
32567         Use atomic_mem_operand_0 predicate.
32568         (atomic_compare_and_swap<mode>_soft_gusa,
32569         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
32570         AraAdd constraints.
32571         (atomic_compare_and_swap<mode>_soft_tcb,
32572         atomic_compare_and_swap<mode>_soft_imask,
32573         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
32574         atomic_mem_operand_0 predicate and SraSdd constraints.
32575         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
32576         constraint.
32577         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
32578         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
32579         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
32580         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
32581         force_reg on the memory address.
32582         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
32583         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
32584         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
32585         atomic_mem_operand_1 predicate and Sra constraint.
32586         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
32587         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
32588         Use atomic_mem_operand_1 predicate.
32589         (atomic_<fetchop_name><mode>_hard): Copy to
32590         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
32591         Use atomic_mem_operand_1 predicate.
32592         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
32593         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
32594         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
32595         insn_and_split.  Use atomic_mem_operand_1 predicate.
32596         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
32597         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
32598         Use atomic_mem_operand_1 predicate.
32599         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
32600         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
32601         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
32602         in generated insn with original mem operand before emitting the insn.
32603         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
32604         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
32605         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
32606         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
32607         Use atomic_mem_operand_1 predicate and AraAdd constraints.
32608         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
32609         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
32610         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
32611         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
32612         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
32613         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
32614         atomic_not_fetch<mode>_soft_tcb,
32615         atomic_<fetchop_name>_fetch<mode>_soft_imask,
32616         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
32617         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
32618         Use atomic_mem_operand_1 predicate and SraSdd constraints.
32620 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
32622         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
32623         and 3 earlyclobber operands.
32625 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32627         * common.opt (fstack-reuse): Mark as optimization.
32629 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32631         PR ipa/64982
32632         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
32634 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
32636         PR tree-optimization/64326
32637         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
32639 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
32641         PR gcov-profile/61889
32642         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
32644 2015-02-10  Richard Biener  <rguenther@suse.de>
32646         PR tree-optimization/64995
32647         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
32648         value we use is final.
32649         (visit_reference_op_store): Always valueize op.
32650         (visit_use): Properly valueize vuses.
32652 2015-02-10  Richard Biener  <rguenther@suse.de>
32654         PR tree-optimization/64909
32655         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
32656         pass a scalar-stmt count estimate to the cost model.
32657         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
32659 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
32661         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
32662         enabled by default together with var-tracking.
32664 2015-02-10  Nick Clifton  <nickc@redhat.com>
32666         * config/rl78/rl78.c: Remove DIV attribute code accidentally
32667         included in previous rl78 commit.
32669 2015-02-10  Richard Biener  <rguenther@suse.de>
32671         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
32672         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
32673         return the bitpack.
32675 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
32677         PR gcov-profile/61889
32678         * config.in: regenerate.
32679         * configure.in: Likewise.
32680         * configure.ac: Check for ftw.h.
32681         * gcov-tool.c: Check for ftw.h before using nftw.
32683 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
32685         PR lto/64076
32686         * ipa-visibility.c (update_visibility_by_resolution_info): Only
32687         assert when not in lto mode.
32689 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32691         * ira-color.c (setup_left_conflict_sizes_p): Simplify
32692         initialization/assignment of conflict_size.
32694 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
32696         PR ipa/64978
32697         * ipa-cp.c (gather_caller_stats): Skip thunks.
32698         (propagate_constants_topo): Skip aliases.
32700 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
32702         PR target/64761
32703         * config/sh/sh.c (sh_option_override): Don't change
32704         -freorder-blocks-and-partition to -freorder-blocks even when
32705         unwinding is enabled.
32706         (sh_can_follow_jump): Return false if the followee jump is
32707         a crossing jump when -freorder-blocks-and-partition is specified.
32708         * config/sh/sh.md (*jump_compact_crossing): New insn.
32710 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
32711             Kaz Kojima  <kkojima@gcc.gnu.org>
32713         PR target/64761
32714         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
32715         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
32716         (sh_can_redirect_branch): Rename to ...
32717         (sh_can_follow_jump): ... this.  Constify argument types.
32718         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
32719         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
32720         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
32721         * doc/tm.texi: Regenerate.
32723 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
32725         PR sanitizer/64981
32726         * builtins.c (expand_builtin): Call targetm.expand_builtin
32727         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
32729 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32731         PR ipa/61548
32732         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
32734 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32736         PR ipa/63566
32737         * ipa-icf.c (set_local): New function.
32738         (sem_function::merge): Use it.
32740 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32742         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
32743         (add_type_duplicate): Fix comparison of BINFOs.
32745 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32747         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
32748         on getting VOID pointer.
32750 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
32752         PR target/64979
32753         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
32754         va_list escapes.
32756 2015-02-09  Richard Biener  <rguenther@suse.de>
32758         * genmatch.c (replace_id): Copy expr_type.
32760 2015-02-09  Richard Biener  <rguenther@suse.de>
32762         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
32763         (streamer_write_tree_bitfields): Declare.
32764         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
32765         properly unpack padding.
32766         (unpack_value_fields): Inline ...
32767         (streamer_read_tree_bitfields): ... here.
32768         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
32769         and properly add padding bits.
32770         (streamer_pack_tree_bitfields): Fold into ...
32771         (streamer_write_tree_bitfields): ... this new function,
32772         exposing the bitpack object.
32773         * lto-streamer-out.c (lto_write_tree_1): Call
32774         streamer_write_tree_bitfields.
32776 2015-02-09  Richard Biener  <rguenther@suse.de>
32778         PR tree-optimization/54000
32779         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
32780         (struct ivopts_data): Add loop_loc member.
32781         (tree_ssa_iv_optimize_loop): Dump loop location.
32782         (create_new_ivs): Likewise, also dump number of IVs generated.
32784 2015-02-09  Martin Liska  <mliska@suse.cz>
32786         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
32787         just if not yet registered.
32788         (ipa_icf_generate_summary): Register callgraph hooks.
32790 2015-02-08  Andrew Pinski  <apinski@cavium.com>
32792         * config/aarch64/aarch64.c (gty_dummy): Delete.
32794 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32796         PR ipa/63566
32797         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
32798         (cgraph_node::local_p): Remove thunk related FIXME.
32800 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32802         PR ipa/63566
32803         * i386.c (ix86_function_regparm): Look through aliases to see if callee
32804         is local and optimized.
32805         (ix86_function_sseregparm): Likewise; also use target's SSE math
32806         settings; error out instead of silently generating wrong code
32807         on mismatches.
32808         (init_cumulative_args): Look through aliases.
32810 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32812         PR ipa/63566
32813         * ipa-split.c (execute_split_functions): Split if function has aliases.
32815 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
32817         PR ipa/63566
32818         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
32819         aliases before trying to expand it.
32820         (cgraph_node::expand_thunk): Fix formating.
32822 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
32824         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
32825         (Using Assembly Language with C): Expand introduction.
32826         (Basic Asm): Copy-edit.  Add more information about uses of
32827         basic asm.
32828         (Extended Asm): Copy-edit.  Document new escape syntax and
32829         %l[label] syntax.
32830         (Global Reg Vars): Copy-edit.
32831         (Local Reg Vars): Likewise.
32833 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
32835         PR debug/2714
32836         PR bootstrap/64256
32837         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
32838         (DBX_CONTIN_CHAR): Define.
32840 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
32841             Brian Rzycki  <b.rzycki@samsung.com>
32843         PR tree-optimization/64878
32844         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
32845         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
32846         Stop recursion at loop phi nodes after having visited a loop phi node.
32848 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
32850         * toplev.c (process_options): Change flag_ipa_ra before creating
32851         optimization_{default,current}_node.
32853         PR ipa/64896
32854         * cgraphunit.c (cgraph_node::expand_thunk): If
32855         restype is not is_gimple_reg_type nor the thunk_fndecl
32856         returns aggregate_value_p, set restmp to a temporary variable
32857         instead of resdecl.
32859 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
32861         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
32863 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32865         PR target/64205
32866         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
32867         add a general secondary reload handler for SDmode, unless we have
32868         both read/write support for SDmode.
32870 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
32872         PR middle-end/64937
32873         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
32874         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
32875         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
32876         1 before, push it to abstract_vec.
32877         (dwarf2out_abstract_function): Adjust caller.  Don't call
32878         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
32879         DECL_ABSTRACT_P flags for all abstract_vec elts.
32881 2015-02-06  Renlin Li  <renlin.li@arm.com>
32883         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
32884         complex gimple.
32885         * tree-ssa.c (execute_update_addresses_taken): Likewise.
32887 2015-02-06  Jeff Law  <law@redhat.com>
32889         PR target/64889
32890         * config/h8300/h8300.c (push): New argument "in_prologue".
32891         Pass "in_prologue" along to "F".
32892         (h8300_push_pop): Corresponding changes.
32893         (h8300_expand_prologue): Likewise.
32894         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
32896 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
32898         PR rtl-optimization/64957
32899         PR debug/64817
32900         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
32901         IOR rather than for AND.
32903 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
32905         PR target/62631
32906         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
32907         of shift-add and (add + shift) operations.  Rename local variable.
32909 2015-02-05  Jeff Law  <law@redhat.com>
32911         PR target/17306
32912         * config/h8300/constraints.md (U): Correctly dectect
32913         "eightbit_data" memory addresses.
32914         * config/h8300/h8300.c (eightbit_constant_address_p): Also
32915         handle (const (plus (symbol_ref (x)))) where x is declared
32916         as an 8-bit data memory address.
32917         * config/h8300/h8300.md (call, call_value): Correctly detect
32918         "funcvec" functions.
32920         PR target/43264
32921         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
32922         24 to 28 bits for the H8/300.
32924 2015-02-06  Alan Modra  <amodra@gmail.com>
32926         PR target/64876
32927         * config/rs6000/rs6000.c (chain_already_loaded): New function.
32928         (rs6000_call_aix): Use it.
32930 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
32932         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
32933         check.
32935 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
32937         * config/h8300/constraints.md ("U" constraint): Use strict
32938         variant of REG_OK_FOR_BASE_P after reload has started.
32940 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
32942         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
32943         define to zero if !TARGET_NEON.
32944         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
32946 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32947             Trevor Saunders  <tsaunders@mozilla.com>
32949         PR ipa/61548
32950         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
32952 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32954         PR ipa/61548
32955         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
32956         when removing varpool nodes.
32958 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32960         PR ipa/61548
32961         * varpool.c (varpool_node::remove): Fix order of variables.
32963 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32965         PR ipa/64686
32966         * ipa-inline.c (inline_small_functions): Fix ordering issue between
32967         speculation resolution and key updates.
32969 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32971         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
32972         about not letting any speculative edges unupdated.
32974 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32976         PR gcov/64123
32977         * gcov-io.c (gcov_var): Export.
32979 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
32981         PR middle-end/64922
32982         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
32983         edges that become speculative.
32985 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
32987         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
32988         or DW_LANG_Fortran08.
32989         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
32990         DW_LANG_Fortran08.
32991         (gen_compile_unit_die): Handle "GNU Fortran2003" and
32992         "GNU Fortran2008" language strings.
32993         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
32994         * langhooks.h (lang_GNU_Fortran): New prototype.
32995         * langhooks.c (lang_GNU_Fortran): New function.
32996         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
32997         lang_GNU_Fortran.
32999 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33001         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33002         (RTX_OK_FOR_OLO10_P): Likewise.
33004 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33006         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33008 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33010         PR middle-end/64922
33011         * gimple.c: Include gimple-ssa.h.
33012         (maybe_remove_unused_call_args): New function.
33013         * gimple.h (maybe_remove_unused_call_args): Declare.
33014         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33015         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33016         * gimple-fold.c (gimple_fold_call): Likewise.
33018 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
33020         PR rtl-optimization/64905
33021         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33022         pointer alignment if it isn't needed.
33024 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33026         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33027         cortex-a72.cortex-a53.
33028         * config/aarch64/aarch64-tune.md: Regenerate.
33029         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33031 2015-02-04  Nick Clifton  <nickc@redhat.com>
33033         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33034         inside a MEM.
33036 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
33038         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33039         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33040         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33041         of DEF_BUILTIN.
33042         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33043         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33044         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33045         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33046         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33047         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33048         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33049         * tree-core.h (enum built_in_function): In between
33050         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33051         for builtins that use DEF_BUILTIN_CHKP macro.
33053 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
33055         PR debug/64817
33056         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33057         operands for tcc_comparison exprs.  Fix typos.
33059         PR debug/64817
33060         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33061         of two XORs that have an intervening AND or IOR.
33063         PR debug/64817
33064         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33065         simplification of XOR of AND to not allocate new rtx before
33066         committing to a simplification.
33068 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33070         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33071         manual swaps in all peepholes.
33073 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33075         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33076         of manual swapping implementation.
33077         (aarch64_expand_vec_perm_const_1): Likewise.
33079 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
33081         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33082         (generic_addrcost_table): Remove NAMED_PARAM.
33083         (cortexa57_addrcost_table): Likewise.
33084         (xgene1_addrcost_table): Likewise.
33085         (generic_regmove_table): Likewise.
33086         (cortexa53_regmove_table): Likewise.
33087         (xgene1_regmove_table): Likewise.
33088         (generic_vector_table): Likewise.
33089         (cortexa57_vector_table): Likewise.
33090         (xgene1_vector_table): Likewise.
33091         (generic_tunings): Likewise.
33092         (cortexa53_tunings): Likewise.
33093         (cortexa57_tunings): Likewise.
33094         (xgene1_tunings): Likewise.
33096 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33098         * config/arm/arm-cores.def: Add cortex-a72 and
33099         cortex-a72.cortex-a53.
33100         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33101         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33102         * config/arm/arm-tune.md: Regenerate.
33103         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33104         "cortex-a72.cortex-a53".
33105         * doc/invoke.texi (ARM Options/-mtune): Likewise.
33107 2015-02-04  Nick Clifton  <nickc@redhat.com>
33109         PR target/64408
33110         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33111         of accepted codes.
33112         (nonimmediate_di_operand): Likewise.
33114         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33115         prefixes of known F5 using MSP430 MCUs.
33117 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33119         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33120         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33121         instead of __builtin_sqrt.
33123 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
33125         * varasm.c (do_assemble_alias): Follow transparent alias
33126         chain for target.
33127         (default_assemble_visibility): Follow transparent alias
33128         chain for decl name.
33130 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33132         PR middle-end/62103
33133         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33134         to compute size of referenced value in the constant case.
33136 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
33138         PR rtl-optimization/64756
33139         * cse.c (invalidate_dest): New function.
33140         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
33141         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33142         invalidate and do not record it.
33144 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
33146         PR target/64660
33147         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33148         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33149         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33150         atomic_nand<mode>_soft_tcb): New insns.
33151         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33152         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33153         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33154         Split into atomic_not_fetchsi_hard if operands[0] is unused.
33155         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33156         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33157         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
33158         atomic_not<mode>_hard if operands[0] is unused.
33159         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33160         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33161         if operands[0] is unused.
33162         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
33163         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33164         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33165         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33166         unused.
33167         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
33168         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33169         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33170         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33171         if operands[0] is unused.
33172         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
33173         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33174         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
33175         atomic_nand_fetchsi_hard if operands[0] is unused.
33176         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
33177         atomic_nand<mode>_hard if operands[0] is unused.
33178         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
33179         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33180         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
33181         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33182         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
33183         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33184         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33185         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33186         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
33187         atomic_not<mode>_hard if operands[0] is unused.
33188         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33189         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33190         unused.
33191         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33192         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33193         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
33194         atomic_nand<mode>_hard if operands[0] is unused.
33195         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33196         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33198 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
33200         PR jit/64810
33201         * Makefile.in (GCC_OBJS): Add gcc-main.o.
33202         * gcc-main.c: New file, containing "main" taken from gcc.c.
33203         * gcc.c (do_self_spec): Free decoded_options.
33204         (class driver): Move declaration to gcc.h.
33205         (main): Move declaration and implementation to new file
33206         gcc-main.c.
33207         (driver_get_configure_time_options): New function.
33208         * gcc.h (class driver): Move this declaration here, from
33209         gcc.c.
33210         (driver_get_configure_time_options): New declaration.
33212 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
33214         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33215         cross-module inlining.
33216         * cgraph.h (cgraph_node): Add flag merged.
33217         * ipa-icf.c (sem_function::merge): Maintain it.
33219 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
33221         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33222         instead of OBJECT_P.
33224 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
33226         PR target/62631
33227         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33228         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33229         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33230         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33232 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
33234         PR other/63504
33235         * combine.c (reg_n_sets_max): New variable.
33236         (can_change_dest_mode, reg_nonzero_bits_for_combine,
33237         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33238         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33239         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33240         (rest_of_handle_combine): Initialize reg_n_sets_max.
33242 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
33244         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33245         if some always_inline was inlined, apply changes before inlining
33246         heuristically.
33248 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
33250         PR jit/64810
33251         * config/arm/arm.c (arm_option_override): Set
33252         arm_selected_arch/cpu/tune to NULL on entry.
33254 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
33255             Andrew Pinski  <pinskia@gcc.gnu.org>
33256             Jakub Jelinek  <jakub@gcc.gnu.org>
33258         PR target/64231
33259         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33260         integer typing for small model. Use IN_RANGE.
33262 2015-02-02  Richard Biener  <rguenther@suse.de>
33264         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33265         * tree-vrp.c (vrp_valueize_1): Likewise.
33267 2015-02-02  Alan Modra  <amodra@gmail.com>
33269         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33270         than mem for toc_restore.
33271         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33272         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33273         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33275 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
33277         PR target/64047
33278         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33279         explicit default options.
33281 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
33283         PR ipa/64872
33284         * ipa-utils.c (ipa_merge_profiles): Add release argument.
33285         * ipa-icf.c (sem_function::merge): Do not release body when merging.
33286         * ipa-utils.h (ipa_merge_profiles): Update prototype.
33288 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
33290         PR debug/64817
33291         * cfgexpand.c (deep_ter_debug_map): New variable.
33292         (avoid_deep_ter_for_debug): New function.
33293         (expand_debug_expr): If TERed SSA_NAME is in
33294         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33295         instead of trying to expand SSA_NAME's def stmt.
33296         (expand_debug_locations): When expanding debug bind
33297         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33298         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33299         value.
33300         (pass_expand::execute): Call avoid_deep_ter_for_debug on
33301         all debug bind stmts.  Delete deep_ter_debug_map after
33302         expand_debug_location if non-NULL and clear it.
33304 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
33306         PR target/64851
33307         * config/sh/sync.md (atomic_fetch_notsi_hard,
33308         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33309         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33310         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33311         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33312         atomic_not_fetch<mode>_soft_imask): New insns.
33314 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33316         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33317         (rank_for_schedule_debug): Split from ...
33318         (rank_for_schedule): ... this.
33319         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33320         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33322 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
33324         * doc/md.texi (Machine Constraints): Alphabetize table by target.
33325         * doc/extend.texi (x86 Variable Attributes): Move section to
33326         correct alphabetization after renaming.
33327         (x86 Type Attributes): Likewise.
33328         (Target Builtins): Re-alphabetize menu.
33329         (x86 Built-in Functions): Move section to correct alphabetization
33330         after renaming.
33331         (x86 transactional memory intrinsics): Likewise.
33332         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33333         and x86 Windows Options in table and menu.
33334         (x86 Options): Move section to correct alphabetization after
33335         renaming.
33336         (x86 Windows Options): Likewise.
33338 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
33340         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33341         preferred names of the architecture and its 32- and 64-bit
33342         variants.
33343         * doc/invoke.texi: Likewise.
33344         * doc/md.texi: Likewise.
33346 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
33348         PR target/64882
33349         * config/i386/predicates.md (address_no_seg_operand): Reject
33350         non-CONST_INT_P operands in invalid mode.
33352 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
33354         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33355         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
33356         * config/i386/predicates.md (address_no_seg_operand): Call
33357         address_operand with VOIDmode.
33358         (vsib_address_operand): Ditto.
33359         (address_mpx_no_base_operand): Ditto.
33360         (address_mpx_no_index_operand): Ditto.
33362 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33364         PR target/64688
33365         * lra-constraints.c (original_subreg_reg_mode): New.
33366         (simplify_operand_subreg): Try to simplify subreg of const.  Use
33367         original_subreg_reg_mode for it.
33368         (swap_operands): Update original_subreg_reg_mode.
33369         (curr_insn_transform): Set up original_subreg_reg_mode.
33371 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33373         PR target/64617
33374         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33375         function.
33376         (process_alt_operands): Use it.
33377         (curr_insn_transform): Check the optional reload pseudo class is
33378         ok for the mode.
33380 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
33382         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33383         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33384         prototype.
33385         * toplev.h (init_asm_output): Update comment on use of
33386         UNKNOWN_LOCATION with fatal_error.
33387         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33388         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33389         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33390         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33391         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33392         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33393         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33394         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33395         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33396         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33397         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33398         fatal_error changed to pass input_location as first argument.
33400 2015-01-30  Martin Liska  <mliska@suse.cz>
33402         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33403         in #pragma GCC diagnostic guards.
33405 2015-01-30  Richard Biener  <rguenther@suse.de>
33407         PR tree-optimization/64829
33408         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33409         not add a widening conversion pattern but hand off extra
33410         widenings to callers.
33411         (vect_recog_widen_mult_pattern): Handle extra widening produced
33412         by vect_handle_widen_op_by_const.
33413         (vect_recog_widen_shift_pattern): Likewise.
33414         (vect_pattern_recog_1): Remove excess vertical space in dumping.
33415         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33416         (vect_init_vector_1): Likewise.
33417         (vect_get_vec_def_for_operand): Likewise.
33418         (vect_finish_stmt_generation): Likewise.
33419         (vectorizable_load): Likewise.
33420         (vect_analyze_stmt): Likewise.
33421         (vect_is_simple_use): Likewise.
33423 2015-01-29  Jeff Law  <law@redhat.com>
33425         * combine.c (try_combine): Fix typo in comment.
33427 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
33429         PR target/64580
33430         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33431         (rs6000_stack_info): Add assert.
33432         (rs6000_output_savres_externs): New function, split off from...
33433         (rs6000_output_function_prologue): ... here.  Do not call it for
33434         thunks.
33436 2015-01-29  Jeff Law  <law@redhat.com>
33438         PR target/15184
33439         * combine.c (try_combine): If I0 is a memory load and I3 a store
33440         to a related address, increase the "goodness" of doing a 4-insn
33441         combination with I0-I3.
33442         (make_field_assignment): Handle SUBREGs in the ior+and case.
33444 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
33446         PR tree-optimization/64746
33447         * tree-if-conv.c (mask_exists): New function.
33448         (predicate_mem_writes): Save created mask with given size for further
33449         use.
33450         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
33451         (ifcvt_repair_bool_pattern): Collect all statements that are root
33452         of bool pattern and use iterative algorithm to remove multiple uses
33453         of predicates, display number of required iterations.
33455 2015-01-29  Richard Biener  <rguenther@suse.de>
33457         PR tree-optimization/64853
33458         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
33459         stmt will get simulated again.
33460         * tree-ssa-ccp.c (valueize_op_1): Likewise.
33462 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33464         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
33465         return_in_pc.  Remove redundant assignments.
33466         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
33467         (arm_expand_epilogue): Don't compare boolean with true in if condition.
33469 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
33471         * config/i386/i386.c (ix86_mode_after): Make static.
33473 2015-01-29  Richard Biener  <rguenther@suse.de>
33475         PR tree-optimization/64844
33476         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
33477         dump cost model analysis.
33478         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33479         Do not register adjusted load/store costs here.
33481 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
33482             Uros Bizjak  <ubizjak@gmail.com>
33484         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
33485         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
33486         using x86_use_pseudo_pic_reg.
33487         * config/i386/i386.c (ix86_conditional_register_usage): Remove
33488         support for fixed PIC register.
33489         (ix86_use_pseudo_pic_reg): Not static any more.
33491 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
33493         PR middle-end/64805
33494         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
33495         to avoid error in cgraph node verification.
33497 2015-01-29  Marek Polacek  <polacek@redhat.com>
33499         * doc/standards.texi: Reflect that the default for C is gnu11.
33501 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
33503         PR target/64761
33504         * reorg.c (switch_text_sections_between_p): New function.
33505         (relax_delay_slots): Call it when testing if the jump insn
33506         is removable.  Use targetm.can_follow_jump when testing if
33507         the conditional branch can follow an unconditional jump.
33509 2015-01-27  Caroline Tice  <cmtice@google.com>
33511         Committing VTV Cywin/Ming patch for Patrick Wollgast
33512         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
33513         if -fvtable-verify=preinit/std is used.
33514         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
33515         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
33516         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
33517         if -fvtable-verify=preinit/std is used.
33518         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33519         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
33520         if -fvtable-verify=preinit/std is used.
33521         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
33522         * config/i386/mingw32.h (LIB_SPEC): Likewise.
33523         * varasm.c (assemble_variable): Add code to properly set the comdat
33524         section and name for the .vtable_map_vars section in case the
33525         target is PE or COFF.
33527 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
33529         PR ipa/64801
33530         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
33531         make sane BB profile.
33532         (cgraph_node::expand_thunk): Make sane BB profile.
33533         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
33534         * cgraph.h (init_lowered_empty_function): Update prototype.
33535         * config/i386/i386.c (make_resolver_func): Update call.
33536         * predict.c (gate): Disable branch prediction pass if
33537         profile is already there.
33539 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
33541         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
33542         * opth-gen.awk: Likewise.
33543         * common.opt: Mark flag_fp_contract_mode as Optimization.
33545 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33547         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
33548         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
33550 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
33552         PR target/64659
33553         * config/sh/predicates.md (atomic_arith_operand,
33554         atomic_logical_operand): Remove.
33555         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
33556         (atomic_arith_operand_0): New predicate.
33557         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
33558         Use atomic_arith_operand_0 for input values.
33559         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
33560         atomic_compare_and_swap<mode>_soft_gusa,
33561         atomic_compare_and_swap<mode>_soft_tcb,
33562         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
33563         arith_reg_operand instead of register_operand.
33564         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
33565         atomic_arith_operand_0 for newval input.
33566         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
33567         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
33568         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
33569         arith_reg_operand instead of register_operand.
33570         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
33571         fetchop_predicate_1, fetchop_constraint_1_llcs,
33572         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
33573         fetchop_constraint_1_imask): New code iterator attributes.
33574         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
33575         register_operand.  Use fetchop_predicate_1.
33576         (atomic_fetch_<fetchop_name>si_hard,
33577         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
33578         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
33579         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
33580         and arith_reg_operand instead of register_operand.  Use
33581         fetchop_predicate_1, fetchop_constraint_1_gusa.
33582         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
33583         and arith_reg_operand instead of register_operand.  Use
33584         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
33585         to allow R0 usage.
33586         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
33587         and arith_reg_operand instead of register_operand.  Use
33588         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
33589         to allow R0 usage.
33590         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
33591         register_operand.  Use atomic_logical_operand_1.
33592         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
33593         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
33594         arith_reg_operand instead of register_operand.
33595         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
33596         Use arith_reg_dest and arith_reg_operand instead of register_operand.
33597         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
33598         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
33599         register_operand.  Use fetchop_predicate_1.
33600         (atomic_<fetchop_name>_fetchsi_hard,
33601         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
33602         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33603         fetchop_constraint_1_llcs.
33604         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
33605         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33606         fetchop_constraint_1_gusa.
33607         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
33608         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33609         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
33610         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
33611         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33612         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
33613         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
33614         register_operand.  Use atomic_logical_operand_1.
33615         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
33616         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
33617         arith_reg_operand instead of register_operand.
33618         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
33619         arith_reg_operand instead of register_operand.  Use logical_operand
33620         and K08.  Adjust asm sequence to allow R0 usage.
33621         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
33622         arith_reg_operand instead of register_operand.  Use logical_operand
33623         and K08.
33625 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
33627         PR other/63504
33628         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
33629         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
33630         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
33631         only get_full_len HOST_WIDE_INTs from get_val () array rather than
33632         all bits in *val_wide.
33634 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
33636         * varpool.c (tls_model_names): Fix names.
33637         (varpool_node::dump): Dump tls- prefix for tls models.
33639 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
33640             Bernd Schmidt  <bernds@codesourcery.com>
33641             Nathan Sidwell  <nathan@codesourcery.com>
33643         * config/nvptx/mkoffload.c: New file.
33644         * config/nvptx/t-nvptx: Add build rules for it.
33645         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
33646         (extra_programs): Add mkoffload.
33647         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
33648         function.
33649         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
33651 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
33653         PR middle-end/64809
33654         * cfgexpand.c (reorder_operands): Skip debug gimples.
33656 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
33658         PR tree-optimization/64277
33659         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
33660         range info when possible to refine estimation.
33662 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33664         PR tree-optimization/64718
33665         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
33666         be a 16bit unsigned integer when n->range is 16.
33667         (bswap_replace): Convert src to that type if necessary for all bswap
33668         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
33669         set in pass_optimize_bswap::execute ().
33671 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
33673         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
33674         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
33675         integer and floating point variants.
33676         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
33678 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
33680         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
33681         for all vector modes.
33683 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
33685         PR bootstrap/64612
33686         * doc/sourcebuild.texi (comdat_group): Document.
33688 2015-01-28  Terry Guo  <terry.guo@arm.com>
33690         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
33692 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
33694         * toplev.c (print_version): Add param "show_global_state", and
33695         only print GGC and plugin information if it is true.
33696         (init_asm_output): Pass in "true" for the new param when calling
33697         print_version.
33698         (process_options): Likewise.
33699         (toplev::main): Likewise.
33700         * toplev.h (print_version): Add new param to decl.
33702 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
33704         PR ipa/60871
33705         PR ipa/64139
33706         * tree.c (lookup_binfo_at_offset): New function.
33707         (get_binfo_at_offset): Use it.
33709 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
33711         PR ipa/64282
33712         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
33713         on vtable being vtable.
33715 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33717         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
33718         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
33719         -mhotpatch= option.
33720         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
33721         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
33722         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
33723         Renamed.
33724         (s390_hotpatch_trampoline_halfwords_max): Renamed.
33725         (s390_hotpatch_hw_max): New name.
33726         (s390_hotpatch_trampoline_halfwords): Renamed.
33727         (s390_hotpatch_hw_before_label): New name.
33728         (get_hotpatch_attribute): Removed.
33729         (s390_hotpatch_hw_after_label): New name.
33730         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
33731         attribute.
33732         (s390_attribute_table): Ditto.
33733         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
33734         (s390_function_num_hotpatch_hw): New name.
33735         Remove special handling of inline functions and hotpatching.
33736         Return number of nops before and after the function label.
33737         (s390_can_inline_p): Removed.
33738         (s390_asm_output_function_label): Emit a configurable number of nops
33739         after the function label.
33740         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
33741         (TARGET_CAN_INLINE_P) Removed.
33742         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
33744 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33745             Jiong Wang  <jiong.wang@arm.com>
33747         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
33748         of scratch reg.
33749         (cb<optab><mode>1): Likewise.
33750         * config/aarch64/iterators.md (bcond): New define_code_attr.
33752 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33754         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
33755         memory accesses.
33757 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33759         * config/s390/s390.c (s390_register_move_cost): Increase costs for
33760         FPR->GPR moves.
33762 2015-01-27  Richard Biener  <rguenther@suse.de>
33764         * tree-vrp.c (update_value_range): Intersect the range with
33765         old recorded SSA name range information.
33767 2015-01-27  Nick Clifton  <nickc@redhat.com>
33769         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
33770         BC, DE and HL registers directly, not via AX.
33771         When decrementing the stack pointer by a large amount, transfer SP
33772         into AX and perform the subtraction there.
33773         (rl78_expand_epilogue): Perform the inverse of the above
33774         enhancements.
33776 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33778         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
33780 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
33781             Yury Gribov  <y.gribov@samsung.com>
33783         PR ubsan/64741
33784         * ubsan.c (ubsan_source_location): Refactor code.
33785         (ubsan_type_descriptor): Update type size. Refactor code.
33787 2015-01-27  Richard Biener  <rguenther@suse.de>
33789         PR tree-optimization/56273
33790         PR tree-optimization/59124
33791         PR tree-optimization/64277
33792         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
33793         from the first VRP pass.
33795 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
33797         PR ipa/64776
33798         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
33799         handle the first argument in the same loop as all the other arguments.
33801         PR rtl-optimization/61058
33802         * jump.c (cleanup_barriers): Update basic block boundaries
33803         if BLOCK_FOR_INSN is non-NULL on PREV.
33805 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
33807         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
33808         bounds narrowing, already instrumented calls and calls to
33809         not instrumentable functions.
33811 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
33813         PR tree-optimization/64807
33814         * wide-int.cc (wi::divmod_internal): Clear
33815         b_dividend[dividend_blocks_needed].
33817 2015-01-26  DJ Delorie  <dj@redhat.com>
33819         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
33820         volatile memory references.
33822 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
33824         PR target/49263
33825         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
33826         remove_insn.
33827         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
33828         shifts if it already fits into K08.
33830 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
33832         PR ipa/64730
33833         * ipa-inline.c (inline_small_functions): Print "unknown" even
33834         if edge->call_stmt is non-NULL, but has builtins or unknown
33835         location.
33837         PR middle-end/64421
33838         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
33839         with asterisk, skip the first character.
33841 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
33843         PR target/64806
33844         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
33845         order change.
33847 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
33849         PR target/64795
33850         * config/i386/i386.md (*movdi_internal): Also check operand 0
33851         to determine TYPE_LEA operand.
33852         (*movsi_internal): Ditto.
33854 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
33856         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
33857         OPTION_MASK_QUAD_MEMORY_ATOMIC.
33859 2015-01-26  Renlin Li  <renlin.li@arm.com>
33861         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
33862         the comment.
33863         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
33864         for higher part.
33866 2015-01-26  Richard Biener  <rguenther@suse.de>
33868         PR middle-end/64764
33869         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
33870         combining two BIT_AND_EXPR predicates.
33872 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
33874         PR bootstrap/64754
33875         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
33877 2015-01-26  Terry Guo  <terry.guo@arm.com>
33879         * config/arm/arm.c (arm_file_start): Update the assignment of
33880         Tag_ABI_HardFP_use.
33882 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
33884         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
33885         pipeline model.
33886         config/arm/arm.md: Include the new Cortex-A57 model.
33887         (generic_sched): Don't use generic_sched when tuning for
33888         Cortex-A57.
33890 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
33891             Uros Bizjak  <ubizjak@gmail.com>
33893         * config/i386/i386.c (get_builtin_code_for_version): Add
33894         support for BMI and BMI2 multiversion functions.
33896 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33898         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
33899         (extract_bit_field): Likewise.
33900         (extract_low_bits): Likewise.
33901         (expand_mult): Likewise.
33902         (expand_mult_highpart_adjust): Likewise.
33904 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33906         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
33907         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
33908         * config/i386/i386.c (processor_model): Add
33909         M_INTEL_COREI7_BROADWELL.
33910         (arch_names_table): Add "broadwell".
33912 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
33914         PR target/49263
33915         PR target/53987
33916         PR target/64345
33917         PR target/59533
33918         PR target/52933
33919         PR target/54236
33920         PR target/51244
33921         * config/sh/sh-protos.h
33922         (sh_extending_set_of_reg::can_use_as_unextended_reg,
33923         sh_extending_set_of_reg::use_as_unextended_reg,
33924         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
33925         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
33926         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
33927         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
33928         (sh_treg_insns): New class.
33929         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
33930         (scope_counter): New class.
33931         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
33932         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
33933         sh_extending_set_of_reg::can_use_as_unextended_reg,
33934         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
33935         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
33936         sh_split_treg_set_expr): New functions.
33937         (addsubcosts): Handle treg_set_expr.
33938         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
33939         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
33940         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
33941         (sh_insn_operands_modified_between_p): Make non-static.
33942         * config/sh/predicates.md (zero_extend_movu_operand): Allow
33943         simple_mem_operand in addition to displacement_mem_operand.
33944         (zero_extend_operand): Don't allow zero_extend_movu_operand.
33945         (treg_set_expr, treg_set_expr_not_const01,
33946         arith_reg_or_treg_set_expr): New predicates.
33947         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
33948         arith_or_int_operand instead of logical_operand.  Convert to
33949         insn_and_split.  Try to optimize constant operand in splitter.
33950         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
33951         (*tstqi_t_zero): Delete.
33952         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
33953         (tstsi_t_and_not): Delete.
33954         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
33955         Convert to insn_and_split.
33956         (unnamed split, tstsi_t_zero_extract_xor,
33957         tstsi_t_zero_extract_subreg_xor_little,
33958         tstsi_t_zero_extract_subreg_xor_big): Delete.
33959         (*tstsi_t_shift_mask): New insn_and_split.
33960         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
33961         to recombine with surrounding insns when splitting.
33962         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
33963         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
33964         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
33965         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
33966         (*cbranch_div0s: Delete.
33967         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
33968         Try to recombine with surrounding insns when splitting.  Add operand
33969         order variants.
33970         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
33971         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
33972         *addc_r_r_msb, *addc_2r_msb): Delete.
33973         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
33974         order variant.
33975         (*addc_negreg_t): New insn_and_split.
33976         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
33977         Try to recombine with surrounding insns when splitting.
33978         Add operand order variants.
33979         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
33980         insn_and_split patterns.
33981         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
33982         surrounding insns when splitting.
33983         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
33984         (*rotcl): Likewise.  Add zero_extract variant.
33985         (*ashrsi2_31): New insn_and_split.
33986         (*negc): Convert to insn_and_split.  Use treg_set_expr.
33987         (*zero_extend<mode>si2_disp_mem): Update comment.
33988         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
33989         condition.
33990         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
33991         with surrounding insns when splitting.
33992         (any_treg_expr_to_reg): New insn_and_split.
33993         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
33994         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
33995         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
33996         *zero_extract_2): New single bit zero extract patterns.
33997         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
33998         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
33999         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34000         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34001         set destination.
34002         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34003         register_operand for set source.
34005 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
34007         * i386.opt (prefetch_sse): New targetsave.
34008         * i386.c (ix86_function_specific_save): Save prefetch_sse.
34009         (ix86_function_specific_restore): Restore prefetch_sse and initialize
34010         ix86_cost/ix86_tune_cost.
34012 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34014         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34015         Support the JIT by using 0 as the language type.
34017 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34019         PR target/64317
34020         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
34021         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34022         (mark_regno_live, process_bb_lives): Pass new parameter value to
34023         make_hard_regno_born.
34025 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34027         PR rtl-optimization/63637
34028         PR rtl-optimization/60663
34029         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34030         if elt->cost is MAX_COST for ASM_OPERANDS.
34031         (find_sets_in_insn): Fix up comment typo.
34032         (cse_insn): Don't set src_volatile for all non-volatile
34033         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34034         or with "memory" clobber.  Set elt->cost to MAX_COST
34035         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
34036         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34038 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34040         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34041         alternative 1.
34043 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34045         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34046         libgcc/config/i386/elf-lib.h.
34048 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34050         PR driver/64737
34051         * gcc.c (print_configuration): Don't print a blank line at the end
34052         here...
34053         (run_attempt): ... but here unstead.
34055         PR middle-end/64734
34056         * omp-low.c (scan_sharing_clauses): Don't ignore
34057         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34058         on target data/update constructs.
34060 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34062         PR target/50928
34063         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34064         (DEBUG_RELOAD): Removed define.
34065         (m32c_limit_reload_class): Enable traces with if DEBUG0.
34066         (m32c_function_arg): Added a type cast.
34067         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34068         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34069         * config/m32c/bitops.md (andqi3_16): Likewise.
34070         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34071         (push_a01_l): Likewise.
34073 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34075         PR jit/64721
34076         * main.c (main): Construct toplev instances with init_signals=true.
34077         * toplev.c (general_init): Add param "init_signals", and use it to
34078         conditionalize the calls to signal and host_hooks.extra_signals.
34079         (toplev::toplev): Add param "init_signals".
34080         (toplev::main): When invoking general_init, pass m_init_signals
34081         to control whether signal-handlers are installed.
34082         * toplev.h (toplev::toplev): Add param "init_signals".
34083         (toplev::m_init_signals): New field.
34085 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34087         PR jit/64722
34088         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34089         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34090         latter may be affected by the former (e.g. on i686).
34092 2015-01-23  Martin Liska  <mliska@suse.cz>
34094         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34095         false positive during profiledbootstrap.
34097 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34099         PR libgomp/64672
34100         * lto-opts.c (lto_write_options): Output non-explicit conservative
34101         -fno-openacc.
34102         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34103         (append_compiler_options): Pass -fopenacc through.
34105 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34107         PR libgomp/64707
34108         * lto-opts.c (lto_write_options): Output non-explicit conservative
34109         -fno-openmp.
34110         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34111         (append_compiler_options): Pass -fopenmp through.
34113 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34115         PR debug/64511
34116         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34117         GTY markup.
34119         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34120         * diagnostic.def (DK_ICE_NOBT): New kind.
34121         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34122         like DK_ICE, but never print backtrace.
34123         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34124         (internal_error_no_backtrace): New function.
34125         * gcc.c (execute): Use internal_error_no_backtrace instead of
34126         internal_error.
34128 2015-01-22  Jeff Law  <law@redhat.com>
34130         PR target/52076
34131         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34132         improve code density for small immediate to memory case.
34133         (insv): Better handle bitfield assignments when the field is
34134         being set to all ones.
34135         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34136         operand predicate.
34138 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34139             Jakub Jelinek  <jakub@redhat.com>
34141         PR middle-end/64729
34142         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34143         for !TARGET_LIBC_PROVIDES_SSP version and
34144         -fstack-protector-{all,strong,explicit} otherwise.
34145         * config/freebsd.h (LINK_SSP_SPEC): Handle
34146         -fstack-protector-{strong,explicit}.
34148 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
34149             H.J. Lu  <hongjiu.lu@intel.com>
34151         PR ipa/64694
34152         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34153         heap.
34155 2015-01-22  Wei Mi  <wmi@google.com>
34157         PR rtl-optimization/64557
34158         * dse.c (record_store): Call get_addr for mem_addr.
34159         (check_mem_read_rtx): Likewise.
34161 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34163         * fold-const.c (const_binop): Add early return for non-tcc_binary.
34165 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
34167         * toplev.c (init_local_tick): Process the failure when read
34168         fails for random_seed.
34170         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34171         'pretty_name' to avoid memory overflow.
34173 2015-01-22  Richard Biener  <rguenther@suse.de>
34175         PR middle-end/64728
34176         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34177         abnormal coalescing on undefined SSA names.
34179 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
34181         PR target/64688
34182         PR target/64477
34183         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34184         for alternative 3.
34185         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34187 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
34189         PR middle-end/63325
34190         * fold-const.c (fold_checksum_tree): Don't include value of
34191         expr->decl_with_vis.symtab_node in the checksum.
34193 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34195         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34197 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34199         PR driver/64690
34200         * gcc.c (insert_comments): New function.
34201         (try_generate_repro): Call it.
34202         (append_text): Removed.
34204 2015-01-22  Richard Biener  <rguenther@suse.de>
34206         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34207         with IL incompatible options.  Properly honor user optimize
34208         attributes.
34210 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
34212         PR rtl-optimization/64682
34213         * combine.c (distribute_notes): When moving a death note for
34214         a register that is set in the new I2, make sure to put it
34215         before that new I2.
34217 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
34219         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34220         not TARGET_DEFAULT.
34222 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
34224         PR debug/64511
34225         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34226         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34227         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34229         PR sanitizer/64706
34230         * doc/invoke.texi (-fsanitize=vptr): Document.
34232         PR rtl-optimization/62078
34233         * dse.c: Include cfgcleanup.h.
34234         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34235         anything call purge_all_dead_edges and cleanup_cfg at the end
34236         of the pass.
34238 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
34240         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34241         edges.
34243 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34245         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34246         decl attribute.
34248 2015-01-21  David Sherwood  <david.sherwood@arm.com>
34249             Tejas Belagod <Tejas.Belagod@arm.com>
34251         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34252         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34253         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34254         Removed.
34256 2015-01-21  David Sherwood  <david.sherwood@arm.com>
34257             Tejas Belagod <Tejas.Belagod@arm.com>
34259         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34260         (aarch64_reverse_mask): New decls.
34261         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34262         (insn_count): New mode_attr.
34263         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34264         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34265         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34266         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34267         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34268         (aarch64_simd_st4): New patterns.
34269         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34270         (aarch64_reverse_mask): New functions.
34272 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
34274         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34275         Declare.
34276         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34277         addressing modes for BE.
34278         (aarch64_print_operand): Add 'R' specifier.
34279         (aarch64_simd_disambiguate_copy): Delete.
34280         (aarch64_simd_emit_reg_reg_move): New function.
34281         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34282         in define_splits for structural moves.
34283         (mov<mode>): Use less restrictive predicates.
34284         (*aarch64_mov<mode>): Simplify and only allow for LE.
34285         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34287 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
34289         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34291 2015-01-21  Richard Henderson  <rth@redhat.com>
34293         PR target/64669
34294         * ccmp.c (used_in_cond_stmt_p): Remove.
34295         (expand_ccmp_expr): Don't use it.
34297 2015-01-21  Nick Clifton  <nickc@redhat.com>
34299         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34300         PARALLELs.
34302 2015-01-21  Richard Biener  <rguenther@suse.de>
34304         PR middle-end/64313
34305         * tree-core.h (builtin_info, builtin_info_type): Turn from
34306         an object with two arrays into an array of an object with
34307         decl and two flags, implicit_p and declared_p.
34308         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34309         set_builtin_decl, set_builtin_decl_implicit_p,
34310         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34311         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34312         * builtins.c (builtin_info): Adjust.
34313         * gimplify.c (gimplify_addr_expr): References to builtins
34314         that have been declared by the user makes them eligible for
34315         use by the compiler.  Call set_builtin_decl_implicit_p on them.
34317 2015-01-20  Jeff Law  <law@redhat.com>
34319         PR target/59946
34320         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34321         allow pc-relative addresses in operand predicates or constraints.
34323 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
34325         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34326         neon on aarch32 processors for stringops.
34328 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34330         PR ipa/63576
34331         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34333 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34335         PR lto/45375
34336         * ipa-inline.c: Include lto-streamer.h
34337         (report_inline_failed_reason): Output source file differences and
34338         flags on optimization/target node mismatch.
34339         (can_inline_edge_p): Consider caller to be the outer inline function;
34340         be less restrictive about matching opimize and optimize_size attributes.
34341         (inline_account_function_p): Break out from ...
34342         (inline_small_functions): ... here.
34343         * ipa-inline-transform.c (clone_inlined_nodes): Use
34344         inline_account_function_p.
34345         (inline_call): Use optimize attribution; use inline_account_function_p.
34346         (inline_transform): Use opt_for_fn.
34347         * ipa-inline.h (inline_account_function_p): Declare.
34349 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
34351         PR debug/64663
34352         * dwarf2out.c (decl_piece_node): Don't put bitsize into
34353         mode if bitsize <= 0.
34354         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34355         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34356         sizes and positions.
34358 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
34360         * config/nios2/nios2.c (nios2_asm_file_end): Implement
34361         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34362         needed.
34363         (TARGET_ASM_FILE_END): Define.
34365 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34367         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34368         (struct tune_params): Use the enum.
34369         * arm.c (arm_*_tune): Update.
34370         (arm_option_override): Update.
34372 2015-01-20  Richard Biener  <rguenther@suse.de>
34374         PR ipa/64684
34375         * ipa-reference.c (add_static_var): Inline ...
34376         (analyze_function): ... here after splitting out from ...
34377         (is_proper_for_analysis): ... this.
34379 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
34381         PR target/64149
34382         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34383         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34384         replace the conditional with it's true branch.
34385         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34386         (arm_lra_p): Remove.
34388 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34390         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34392 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34394         * config/tilegx/mul-tables.c: Move symtab.h include after
34395         coretypes.h include.
34396         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34397         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34398         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34399         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34400         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34402 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34404         PR bootstrap/64676
34405         Revert:
34406         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
34408         PR rtl-optimization/64081
34409         * loop-iv.c (def_pred_latch_p): New function.
34410         (latch_dominating_def): Allow specific cases with non-single
34411         definitions.
34412         (iv_get_reaching_def): Likewise.
34413         (check_complex_exit_p): New function.
34414         (check_simple_exit): Use check_complex_exit_p to allow certain cases
34415         with exits not executing on any iteration.
34417 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34419         PR lto/45375
34420         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34421         to set branch cost.
34423 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34425         PR lto/45375
34426         * i386.c (gate): Check flag_expensive_optimizations and
34427         optimize_size.
34428         (ix86_option_override_internal): Drop optimize_size condition
34429         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34430         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34431         MASK_PREFER_AVX128.
34432         (ix86_avx256_split_vector_move_misalign,
34433         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34434         * sse.md (all uses of TARGET_PREFER_AVX128): Add
34435         optimize_insn_for_speed_p check.
34437 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
34439         * config/mips/mips.h (FP_ASM_SPEC): New define.
34440         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34441         instead.
34443 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
34445         PR target/53988
34446         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
34447         nullptr for insn when reaching the first insn.
34448         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
34449         (sh_insn_operands_modified_between_p): Add nullptr check.
34450         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
34451         sign extending mem load if the insn contains any UNSPEC or
34452         UNSPEC_VOLATILE.
34454 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34456         * params.def (inline-unit-growth): Drop to 15%.
34457         * invoke.texi (inline-unit-growth): Document change.
34459 2015-01-19  Martin Liska  <mliska@suse.cz>
34461         PR ipa/64668
34462         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
34463         function for second argument of OBJ_TYPE_REF.
34465 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34467         PR ipa/64218
34468         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
34469         whether function is an alias.
34471 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34473         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
34474         cases.
34476 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
34478         PR rtl-optimization/64671
34479         * lra-remat.c (operand_to_remat): Don't consider jump and call
34480         insns.
34482 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
34484         PR target/59828
34485         * config/rs6000/default64.h: Include rs6000-cpus.def.
34486         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
34487         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
34488         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
34489         and POWER8.
34490         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
34491         POWER8.
34492         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
34493         pseudo-op to specify assembler dialect.
34495 2015-01-19  Martin Liska  <mliska@suse.cz>
34497         PR ipa/64664
34498         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
34499         Handle safe potentially removed nodes during filtering.
34501 2015-01-19  Martin Liska  <mliska@suse.cz>
34503         * doc/extend.texi (no_icf): Add new attribute description.
34504         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
34505         where the pass attempts to merge a function with no_icf attribute.
34507 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34509         PR target/64532
34510         * doc/md.texi (ARM Options): Document register constraints.
34512 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
34513             Andrew Pinski  <apinski@cavium.com>
34515         PR target/64304
34516         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
34517         (ashl<mode>3): Don't expand if operands[2] is not constant.
34519 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34521         PR target/64448
34522         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
34523         Match xor-and-xor RTL pattern.
34525 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
34527         PR rtl-optimization/64081
34528         * loop-iv.c (def_pred_latch_p): New function.
34529         (latch_dominating_def): Allow specific cases with non-single
34530         definitions.
34531         (iv_get_reaching_def): Likewise.
34532         (check_complex_exit_p): New function.
34533         (check_simple_exit): Use check_complex_exit_p to allow certain cases
34534         with exits not executing on any iteration.
34536 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
34538         * common.opt (fgraphite): Fix a typo.
34540 2015-01-19  Felix Yang  <felix.yang@huawei.com>
34542         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
34543         pattern.
34544         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34545         uminp, smax_nanp, smin_nanp): New builtins.
34546         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
34547         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
34548         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
34549         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
34550         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
34551         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
34552         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
34553         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
34554         vpminnms_f32): Rewrite using builtin functions.
34556 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
34558         PR libgomp/64625
34559         * omp-low.c (offload_symbol_decl): Remove variable.
34560         (get_offload_symbol_decl): Remove function.
34561         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
34562         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
34563         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
34564         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
34565         BUILT_IN_GOACC_UPDATE don't pass it at all.
34567 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34569         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
34570         callers.
34572 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34574         * ipa-chkp.c (chkp_produce_thunks): Add early param
34575         to split thunks production into two passes.  Keep
34576         'always_inline' function bodies after the first pass.
34577         (pass_data_ipa_chkp_early_produce_thunks): New.
34578         (pass_ipa_chkp_early_produce_thunks): New.
34579         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
34580         chkp_produce_thunks signature.
34581         (make_pass_ipa_chkp_early_produce_thunks): New.
34582         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
34583         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
34584         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
34586 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34588         * cgraph.c (cgraph_node::dump): Dump profile flags.
34590 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
34592         PR target/64652
34593         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
34594         reg appear first in the parallel.
34596 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34598         * ipa-reference.c (set_reference_optimization_summary,
34599         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
34600         disabled.
34601         (ignore_module_statics): New static var.
34602         (propagate_bits): If ipa-reference is disabled, do not look into local
34603         properties.
34604         (analyze_function): Disable analysis when ipa_reference is disabled.
34605         (generate_summary): Do not dump when reference is disabled;
34606         collect vars accessed from functions with ipa-reference disabled.
34607         (get_read_write_all_from_node): When ipa-reference is disabled, use the
34608         node flags.
34609         (gate): Enable for LTO.
34610         (ignore_edge_p): New function.
34611         (propagate): Skip functions w/o ipa-reference analysis.
34612         * optc-save-gen.awk: Handle optimize_debug correctly.
34613         * opth-gen.awk: Likewise.
34614         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
34615         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
34616         fira-share-save-slots, fira-share-spill-slots,
34617         fmodulo-sched-allow-regmoves, fpartial-inlining,
34618         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
34619         ftracer, ftree-parallelize-loops, fassociative-math,
34620         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
34621         Optimization
34622         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
34623         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
34624         Optimization.
34625         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
34626         Fix for IPA.
34628 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34630         PR ipa/64378
34631         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
34632         flag correctly.
34633         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
34635 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
34637         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
34638         Remove duplicate option listings.
34640 2015-01-18  Felix Yang  <felix.yang@huawei.com>
34642         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
34643         (autofdo_source_profile::get_callsite_total_count,
34644         function_instance::get_function_instance_by_decl,
34645         string_table::get_index, string_table::get_index_by_decl,
34646         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
34647         Fix comment typos. Reformatting and minor code rearrangement.
34649 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34651         * config/rs6000/rs6000.md (probe_stack): Delete.
34652         (probe_stack_address): New.
34654 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34656         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
34657         to test for 32-bit ABIs, not !TARGET_POWERPC64.
34659 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34661         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
34662         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
34663         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
34664         snafu.
34665         (rs6000_libcall_value): Use the new function.
34667 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
34669         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
34671 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
34673         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
34674         implement a more precise life analysis for it during backward scan.
34676 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
34678         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
34680 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
34682         PR rtl-optimization/52773
34683         * calls.c (emit_library_call_value): When pushing arguments use
34684         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
34685         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
34686         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
34688 2015-01-17  Jeff Law  <law@redhat.com>
34690         PR rtl-optimization/32790
34691         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
34692         not ZERO_EXTEND in SET_DESTs.
34694 2015-01-17  Alan Modra  <amodra@gmail.com>
34696         * cprop.c (do_local_cprop): Revert last change.
34698 2015-01-16  DJ Delorie  <dj@redhat.com>
34699             Nick Clifton  <nickc@redhat.com>
34701         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
34702         (addhi3_real): Likewise.  Fix [HL+0] syntax.
34703         (subqi3_real): Likewise.
34704         (subhi3_real): Likewise.
34705         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
34706         (cbranchhi4_real): Likewise.
34707         (cbranchhi4_real_inverted): Likewise.
34708         (cbranchsi4_real_lt): Likewise.
34709         (cbranchsi4_real_ge): Likewise.
34710         (cbranchsi4_real_ge): Likewise.
34711         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
34712         (sub<mode>3_virt): Likewise.
34713         (cbranchqi4_virt): Likewise.
34714         (cbranchhi4_virt): Likewise.
34715         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
34716         always use '[reg+imm]' even when imm is zero.
34717         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
34718         (rl78_general_operand): New.
34719         (rl78_nonimmediate_operand): New.
34720         (rl78_nonfar_operand): Use them.
34721         (rl78_nonfar_nonimm_operand): Likewise.
34722         (rl78_stack_based_mem): Fix.
34723         * config/rl78/constraints.md (Ibqi): New.
34724         (IBqi): New.
34725         (Wsa): New.
34726         (Wsf): New.
34727         (Cs1): Fix.
34728         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
34729         (iorqi3): Likewise.
34730         (xorqi3): Likewise.
34731         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
34733         * config/rl78/constrains (Qs8): New constraint.
34734         * config/rl78/rl78.c (rl78_flags_already_set): New function.
34735         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
34736         * config/rl78/rl78-real.md (update_Z): New attribute.
34737         Update patterns to set it.
34738         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
34739         shorter compare and branch sequence can be used.
34740         (cbranchhi4_real): Likewise.
34741         (cbranchhi4_real_inverted): Likewise.
34743         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
34744         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
34745         address space.
34746         * config/rl78/rl78.c (rl78_get_name_encoding): New.
34747         (rl78_option_override): Allow -mes0 only if C.
34748         (characterize_address): Support subregs of symbol_refs.
34749         (rl78_addr_space_address_mode): Move.  Add __near.
34750         (rl78_far_p): Likewise.
34751         (rl78_addr_space_pointer_mode): Likewise.
34752         (rl78_as_legitimate_address): Likewise.
34753         (rl78_addr_space_subset_p): Likewise.
34754         (rl78_addr_space_convert): Likewise.
34755         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
34756         symbols with -mes0.
34757         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
34758         addressing.
34759         (rl78_alloc_physical_registers_op1): Change logic to prefer
34760         symbol[BC] addressing.
34761         (frodata_section): New.
34762         (rl78_asm_init_sections): Initialize it.
34763         (rl78_select_section): Put __far readonly symbols in .frodata.
34764         (rl78_make_type_far): New.
34765         (rl78_insert_attributes): Force all readonly symbols to be
34766         __far when -mes0.
34767         (rl78_asm_out_integer): New.
34768         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
34769         * config/rl78/rl78.opt (-mes0): New.
34771         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
34772         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
34773         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
34774         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
34775         (rl78_saddr_p): New.
34776         (rl78_output_aligned_common): New.
34777         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
34778         (rl78_handle_saddr_attribute): New.
34779         (rl78_handle_naked_attribute): New.
34780         (rl78_attribute_table): Add saddr.
34781         (rl78_print_operand_1): Don't print '!' on saddr operands.
34782         (rl78_print_operand_1): Strip encodings.
34783         (rl78_sfr_p): New.
34784         (rl78_strip_name_encoding): New.
34785         (rl78_attrlist_to_encoding): New.
34786         (rl78_encode_section_info): New.
34787         (rl78_asm_init_sections): New.
34788         (rl78_select_section): New.
34789         (rl78_output_labelref): New.
34790         (rl78_output_aligned_common): New.
34791         (rl78_asm_out_integer): New.
34792         (rl78_asm_ctor_dtor): New.
34793         (rl78_asm_constructor): New.
34794         (rl78_asm_destructor): New.
34796         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
34797         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
34798         (transcode_memory_rtx): Update.
34799         (rl78_expand_epilogue): Use A_REG instead of 0.
34801 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34803         * config/arm/arm-protos.h (struct tune_params): New field
34804         sched_autopref_queue_depth.
34805         * config/arm/arm.c (sched-int.h): Include header.
34806         (arm_first_cycle_multipass_dfa_lookahead_guard,)
34807         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
34808         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
34809         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
34810         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
34811         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
34812         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
34813         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
34814         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
34815         * config/arm/t-arm (arm.o): Update.
34816         * haifa-sched.c (update_insn_after_change): Update.
34817         (rank_for_schedule): Use auto-prefetcher model, if requested.
34818         (autopref_multipass_init): New static function.
34819         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
34820         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
34821         variable for debug dumps.
34822         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
34823         (autopref_multipass_dfa_lookahead_guard): New global function that
34824         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
34825         (init_h_i_d): Update.
34826         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
34827         * sched-int.h (enum autopref_multipass_data_status): New const enum.
34828         (autopref_multipass_data_): Structure for auto-prefetcher data.
34829         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
34830         (struct _haifa_insn_data:autopref_multipass_data): New field.
34831         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
34832         (autopref_multipass_dfa_lookahead_guard): Declare.
34834 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34836         * rtlanal.c (get_base_term): Handle SCRATCH.
34838 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34840         * config/aarch64/aarch64.c
34841         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
34842         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34843         * config/arm/arm.c
34844         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
34845         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34847 2015-01-17  Alan Modra  <amodra@gmail.com>
34849         * cprop.c (do_local_cprop): Disallow replacement of fixed
34850         hard registers.
34852 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34854         PR target/62066
34855         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
34856         early return 0.
34858 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34860         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
34861         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
34863 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34865         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
34866         * config/arm/thumb1.md: ... Here.
34868 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
34870         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
34871         TImode for TARGET_32BIT.
34873 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
34875         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
34876         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
34877         as ...
34878         (rs6000_abi_word_mode): New function.
34880 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
34882         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
34883         instead of UNITS_PER_WORD to describe the size of stack slots.
34885 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
34887         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
34888         as rs6000_promote_function_mode.  Move comment to there.
34889         (rs6000_promote_function_mode): New function.
34891 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
34893         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
34894         -mpowerpc64 is active.
34896 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34898         PR middle-end/64353
34899         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
34900         virtuals on start.
34902 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
34904         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
34905         introduced in revision 219724.
34907 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34908             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34910         PR target/64263
34911         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
34912         destination is not a GP reg.
34913         (*movdi_aarch64): Likewise.
34915 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
34917         PR target/64623
34918         * config/rs6000/default64.h: Revert ISA change.
34920 2015-01-16  Richard Biener  <rguenther@suse.de>
34922         PR middle-end/64614
34923         * tree-ssa-uninit.c: Include tree-cfg.h.
34924         (MAX_SWITCH_CASES): New define.
34925         (convert_control_dep_chain_into_preds): Handle switch statements.
34926         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
34927         (normalize_one_pred_1): Do not split bit-manipulations.
34928         Record (x & CST).
34930 2015-01-16  Richard Biener  <rguenther@suse.de>
34932         PR tree-optimization/64568
34933         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
34934         complex load rewriting for TARGET_MEM_REFs.
34936 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
34938         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
34940 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
34942         PR target/64149
34943         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
34944         variable.
34945         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
34946         (aarch64_lra_p): Remove.
34948 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34950         PR target/64363
34951         * ipa-chkp.h (chkp_instrumentable_p): New.
34952         * ipa-chkp.c: Include tree-inline.h.
34953         (chkp_instrumentable_p): New.
34954         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
34955         Fix processing of not instrumentable functions.
34956         (chkp_versioning): Use chkp_instrumentable_p. Warn about
34957         not instrumentable functions.
34958         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
34959         chkp_instrumentable_p.
34960         * tree-inline.h (copy_forbidden): New.
34961         * tree-inline.c (copy_forbidden): Not static anymore.
34963 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34965         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
34966         ptr1, ptr2 unused.
34968 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
34970         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
34971         type OP_OUT to OP_INOUT.
34973 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
34975         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
34976         (high x) y) to y if x and y have the same base.
34978 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
34980         * config/arm/cortex-a57.md: New.
34981         * config/aarch64/aarch64.md: Include it.
34982         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
34983         * config/aarch64/aarch64-tune.md: Regenerate.
34985 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
34987         PR target/64015
34988         * ccmp.c (expand_ccmp_next): New function.
34989         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
34990         and compare insn sequence.
34991         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
34992         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
34993         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
34994         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
34995         (*ccmp_ior): Changed to ccmp_ior<mode>.
34996         (cmp<mode>): New pattern.
34997         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
34998         parameters.
34999         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35001 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
35003         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35004         _mm256_bsrli_epi128): New.
35005         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35007 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35009         * expmed.c (store_bit_field_using_insv): Improve warning message.
35010         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35012 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35014         PR rtl-optimization/64011
35015         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35016         there is partial overflow.
35018 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35020         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35021         prototype.
35022         (nds32_expand_epilogue_v3pop): Likewise.
35023         * config/nds32/nds32.md (sibcall): Define this for sibling call
35024         optimization.
35025         (sibcall_register): Likewise.
35026         (sibcall_immediate): Likewise.
35027         (sibcall_value): Likewise.
35028         (sibcall_value_register): Likewise.
35029         (sibcall_value_immediate): Likewise.
35030         (sibcall_epilogue): Likewise.
35031         (epilogue): Pass false to indicate this is not a sibcall epilogue.
35032         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35033         (nds32_expand_epilogue_v3pop): Likewise.
35035 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35037         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35038         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35039         (return_internal): New.
35040         (return): Define this named pattern.
35041         (simple_return): Define this named pattern.
35042         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35043         pattern instead of unspec_volatile_func_return.
35044         (nds32_expand_epilogue_v3pop): Likewise.
35045         (nds32_can_use_return_insn): New function.
35047 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35049         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35050         * config/nds32/nds32.md (pop25return): New.
35051         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35052         pop25return pattern.
35054 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35056         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35057         -mforbid-fp-as-gp, and -mex9 options.
35059 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35061         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35062         remove -mgp-direct option.
35064 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35066         * doc/invoke.texi (--param early-inlining-insns): Update default value.
35067         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35069 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35071         * ipa-inline.c (inline_small_functions): Work around hints
35072         cache issue.
35074 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
35076         PR target/59710
35077         * doc/invoke.texi (Option Summary): Document new Nios II
35078         -mgpopt= syntax.
35079         (Nios II Options): Likewise.
35080         * config/nios2/nios2.opt: Add -mgpopt= option support.
35081         Modify existing -mgpopt and -mno-gpopt options to be aliases.
35082         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35083         * config/nios2/nios2.c (nios2_option_override): Adjust
35084         -mgpopt defaulting.
35085         (nios2_in_small_data_p): Return true for explicit small data
35086         sections even with -G0.
35087         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35088         option choices.
35090 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35092         PR ipa/64612
35093         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35094         of comdat locals.
35095         (inline_call): Fix removal of aliases.
35097 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
35099         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35100         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35101         * opts.c (common_handle_option): Add -fsanitize=vptr.
35102         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35103         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35104         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35105         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35106         (ubsan_expand_vptr_ifn): New prototype.
35107         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35108         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35109         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35110         expand_LOOP_VECTORIZED): Make argument nameless, remove
35111         ATTRIBUTE_UNUSED.
35112         (expand_UBSAN_VPTR): New function.
35113         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35114         in fn spec.
35115         (UBSAN_VPTR): New internal function.
35116         * sanopt.c (tree_map_traits): Renamed to ...
35117         (sanopt_tree_map_traits): ... this.
35118         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35119         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35120         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
35121         (maybe_optimize_ubsan_vptr_ifn): New function.
35122         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35123         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
35124         -fsanitize=vptr.
35125         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35126         internal calls like pure functions for aliasing, even when they
35127         have other side-effects that prevent making them ECF_PURE.
35128         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35129         (ubsan_expand_vptr_ifn): New function.
35131 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35133         PR rtl-optimization/64110
35134         * stmt.c (parse_output_constraint): Process '^' and '$'.
35135         (parse_input_constraint): Ditto.
35136         * lra-constraints.c (process_alt_operands): Process the new
35137         constraints.
35138         * ira-costs.c (record_reg_classes): Process the new constraint
35139         '^'.
35140         * genoutput.c (indep_constraints): Add '^' and '$'.
35141         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35142         * doc/md.texi: Add description of the new constraints.
35144 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
35145             Bernd Schmidt  <bernds@codesourcery.com>
35146             Cesar Philippidis  <cesar@codesourcery.com>
35147             James Norris  <jnorris@codesourcery.com>
35148             Tom de Vries  <tom@codesourcery.com>
35149             Ilmir Usmanov  <i.usmanov@samsung.com>
35150             Dmitry Bocharnikov  <dmitry.b@samsung.com>
35151             Evgeny Gavrin  <e.gavrin@samsung.com>
35152             Jakub Jelinek  <jakub@redhat.com>
35154         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35155         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35156         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35157         New function types.
35158         * builtins.c: Include "gomp-constants.h".
35159         (expand_builtin_acc_on_device): New function.
35160         (expand_builtin, is_inexpensive_builtin): Handle
35161         BUILT_IN_ACC_ON_DEVICE.
35162         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35163         New macros.
35164         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35165         flag_openmp.
35166         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35167         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35168         i386/intelmic-offload.h.
35169         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35170         to libgomp and its dependencies.
35171         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35172         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35173         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35174         * config/ia64/hpux.h (LIB_SPEC): Likewise.
35175         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35176         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35177         * doc/generic.texi: Update for OpenACC changes.
35178         * doc/gimple.texi: Likewise.
35179         * doc/invoke.texi: Likewise.
35180         * doc/sourcebuild.texi: Likewise.
35181         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35182         GF_OMP_FOR_KIND_OACC_LOOP.
35183         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35184         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35185         GF_OMP_TARGET_KIND_OACC_UPDATE,
35186         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35187         Dump more data.
35188         * gimple.c: Update comments for OpenACC changes.
35189         * gimple.def: Likewise.
35190         * gimple.h: Likewise.
35191         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35192         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35193         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35194         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35195         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35196         appropriate place.
35197         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35198         * gimplify.c: Include "gomp-constants.h".
35199         Update comments for OpenACC changes.
35200         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35201         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35202         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35203         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35204         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35205         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35206         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35207         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35208         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35209         OMP_CLAUSE_SEQ.
35210         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35211         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
35212         OMP_CLAUSE_SET_MAP_KIND.
35213         (gimplify_oacc_cache): New function.
35214         (gimplify_omp_for): Handle OACC_LOOP.
35215         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35216         OACC_DATA.
35217         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35218         OACC_EXIT_DATA, OACC_UPDATE.
35219         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35220         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35221         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35222         (gimplify_body): Consider flag_openacc next to flag_openmp.
35223         * lto-streamer-out.c: Include "gomp-constants.h".
35224         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35225         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35226         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35227         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35228         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35229         (BUILT_IN_ACC_ON_DEVICE): New builtins.
35230         * omp-low.c: Include "gomp-constants.h".
35231         Update comments for OpenACC changes.
35232         (struct omp_context): Add reduction_map, gwv_below, gwv_this
35233         members.
35234         (extract_omp_for_data, use_pointer_for_field, install_var_field)
35235         (new_omp_context, delete_omp_context, scan_sharing_clauses)
35236         (create_omp_child_function, scan_omp_for, scan_omp_target)
35237         (check_omp_nesting_restrictions, lower_reduction_clauses)
35238         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35239         Update for OpenACC changes.
35240         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35241         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35242         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35243         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35244         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35245         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
35246         OMP_CLAUSE_MAP_*.
35247         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35248         Handle GF_OMP_FOR_KIND_OACC_LOOP.
35249         (expand_omp_target, lower_omp_target): Handle
35250         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35251         GF_OMP_TARGET_KIND_OACC_UPDATE,
35252         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35253         GF_OMP_TARGET_KIND_OACC_DATA.
35254         (pass_expand_omp::execute, execute_lower_omp)
35255         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35256         flag_openmp.
35257         (offload_symbol_decl): New variable.
35258         (oacc_get_reduction_array_id, oacc_max_threads)
35259         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35260         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35261         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35262         (oacc_gimple_assign, oacc_initialize_reduction_data)
35263         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35264         functions.
35265         (is_targetreg_ctx): Remove function.
35266         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35267         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35268         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35269         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35270         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35271         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35272         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35273         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35274         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35275         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35276         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35277         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35278         * tree-core.h: Update comments for OpenACC changes.
35279         (enum omp_clause_map_kind): Remove.
35280         (struct tree_omp_clause): Change type of map_kind member from enum
35281         omp_clause_map_kind to unsigned char.
35282         * tree-inline.c: Update comments for OpenACC changes.
35283         * tree-nested.c: Likewise.  Include "gomp-constants.h".
35284         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35285         (convert_tramp_reference_stmt, convert_gimple_call): Update for
35286         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
35287         OMP_CLAUSE_SET_MAP_KIND.
35288         * tree-pretty-print.c: Include "gomp-constants.h".
35289         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35290         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35291         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35292         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35293         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35294         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
35295         instead of OMP_CLAUSE_MAP_*.
35296         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35297         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35298         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35299         * tree-streamer-in.c: Include "gomp-constants.h".
35300         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35301         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
35302         * tree-streamer-out.c: Include "gomp-constants.h".
35303         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35304         OMP_CLAUSE_MAP_*.
35305         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35306         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35307         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35308         * tree.c (omp_clause_num_ops): Update accordingly.
35309         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35310         Likewise.
35311         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35312         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35313         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35314         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35315         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35316         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35317         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35318         (OMP_CLAUSE_SET_MAP_KIND): New macro.
35319         * varpool.c (varpool_node::get_create): Consider flag_openacc next
35320         to flag_openmp.
35321         * config/i386/intelmic-offload.h: New file.
35322         * config/nvptx/offload.h: Likewise.
35324 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35326         * explow.h: Remove duplicate contents.
35327         * dojump.h: Likewise.
35329 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
35331         * arm.c (arm_xgene_tune): Add default initializer for instruction
35332         fusion.
35334 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35336         PR ipa/64068
35337         PR ipa/64559
35338         * ipa.c (symbol_table::remove_unreachable_nodes):
35339         Do not put abstract origins into boundary.
35341 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
35343         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35344         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35346 2015-01-15  Steve Ellcey  <sellcey@mips.com>
35348         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35349         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35350         builtins.def, and chkp-builtins.def.
35352 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
35354         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35355         ISA 2.7 (POWER8).
35357 2015-01-15  Richard Biener  <rguenther@suse.de>
35359         PR tree-optimization/61743
35360         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35361         information on PHIs for some simple cases.
35363 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35365         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35366         Include xgene1.md.
35367         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35368         * config/arm/arm-cores.def (xgene1): New entry.
35369         * config/arm/arm-tables.opt: Regenerate.
35370         * config/arm/arm-tune.md: Regenerate.
35371         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35373 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
35375         * tree-if-conv.c: Include hash-map.h.
35376         (aggressive_if_conv): New variable.
35377         (fold_build_cond_expr): Add simplification of non-zero condition.
35378         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35379         destination block is not always executed.
35380         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35381         than two predecessors if AGGRESSIVE_IF_CONV is true.
35382         (if_convertible_stmt_p): Fix commentary.
35383         (all_preds_critical_p): New function.
35384         (has_pred_critical_p): New function.
35385         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35386         BB can have more than two predecessors and all incoming edges can be
35387         critical.
35388         (predicate_bbs): Skip predication for loop exit block, use build2_loc
35389         to compute predicate for true edge.
35390         (find_phi_replacement_condition): Delete this function.
35391         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35392         Allow interchange PHI arguments if EXTENDED is false.
35393         Change check that block containing reduction statement candidate
35394         is predecessor of phi-block since phi may have more than two arguments.
35395         (phi_args_hash_traits): New helper structure.
35396         (struct phi_args_hash_traits): New type.
35397         (phi_args_hash_traits::hash): New function.
35398         (phi_args_hash_traits::equal_keys): New function.
35399         (gen_phi_arg_condition): New function.
35400         (predicate_scalar_phi): Add handling of phi nodes with more than two
35401         arguments, delete COND and TRUE_BB arguments, insert body of
35402         find_phi_replacement_condition to predicate ordinary phi nodes.
35403         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35404         delete call of find_phi_replacement_condition and invoke
35405         predicate_scalar_phi with two arguments.
35406         (insert_gimplified_predicates): Add assert that non-predicated block
35407         don't have statements to insert.
35408         (ifcvt_split_critical_edges): New function.
35409         (ifcvt_split_def_stmt): Likewise.
35410         (ifcvt_walk_pattern_tree): Likewise.
35411         (stmt_is_root_of_bool_pattern): Likewise.
35412         (ifcvt_repair_bool_pattern): Likewise.
35413         (ifcvt_local_dce): Likewise.
35414         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35415         is copy of inner or outer loop force_vectorize field, invoke
35416         ifcvt_split_critical_edges, ifcvt_local_dce and
35417         ifcvt_repair_bool_pattern for aggressive if-conversion.
35419 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
35421         * config/aarch64/aarch64.md: Include xgene1.md.
35422         * config/aarch64/xgene1.md: New file.
35424 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35426         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35427         xgene1 (APM XGene-1) core definition.
35428         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35429         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35430         * doc/invoke.texi: Document -mcpu=xgene1.
35432 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35434         * dojump.h: New header file.
35435         * explow.h: Likewise.
35436         * expr.h: Remove includes.
35437         Move expmed.c prototypes to expmed.h.
35438         Move dojump.c prototypes to dojump.h.
35439         Move alias.c prototypes to alias.h.
35440         Move explow.c prototypes to explow.h.
35441         Move calls.c prototypes to calls.h.
35442         Move emit-rtl.c prototypes to emit-rtl.h.
35443         Move varasm.c prototypes to varasm.h.
35444         Move stmt.c prototypes to stmt.h.
35445         (saved_pending_stack_adjust): Move to dojump.h.
35446         (adjust_address): Move to explow.h.
35447         (adjust_address_nv): Move to emit-rtl.h.
35448         (adjust_bitfield_address): Likewise.
35449         (adjust_bitfield_address_size): Likewise.
35450         (adjust_bitfield_address_nv): Likewise.
35451         (adjust_automodify_address_nv): Likewise.
35452         * explow.c (expr_size): Move to expr.c.
35453         (int_expr_size): Likewise.
35454         (tree_expr_size): Likewise.
35455         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35456         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35457         * genemit.c (main): Generate includes statistics.h, real.h,
35458         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
35459         stmt.h.
35460         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
35461         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
35462         explow.h, emit-rtl.h, stmt.h.
35463         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
35464         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
35465         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
35466         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
35467         emit-rtl.h, varasm.h, stmt.h.
35468         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
35469         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
35470         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
35471         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
35472         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35473         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
35474         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
35475         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
35476         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
35477         tm.h tree.h varasm.h vec.h wide-int.h.
35478         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35479         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35480         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
35481         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
35482         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
35483         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
35484         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
35485         * loop-iv.c: Likewise.
35486         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
35487         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
35488         statistics.h stmt.h tree.h varasm.h wide-int.h.
35489         * lra-constraints.c: Likewise.
35490         * lra-eliminations.c: Likewise.
35491         * lra-lives.c: Likewise.
35492         * lra-remat.c: Likewise.
35493         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35494         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
35495         statistics.h stmt.h tree.h varasm.h wide-int.h.
35496         * hw-doloop.c: Likewise.
35497         * ira-color.c: Likewise.
35498         * ira-emit.c: Likewise.
35499         * loop-doloop.c: Likewise.
35500         * loop-invariant.c: Likewise.
35501         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35502         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
35503         statistics.h stmt.h tree.h varasm.h wide-int.h.
35504         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
35505         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
35506         statistics.h stmt.h tree.h varasm.h wide-int.h.
35507         * combine-stack-adj.c: Likewise.
35508         * cse.c: Likewise.
35509         * ddg.c: Likewise.
35510         * ifcvt.c: Likewise.
35511         * ira-costs.c: Likewise.
35512         * jump.c: Likewise.
35513         * lra-coalesce.c: Likewise.
35514         * lra-spills.c: Likewise.
35515         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35516         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
35517         stmt.h varasm.h wide-int.h.
35518         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35519         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35520         varasm.h.
35521         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
35522         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
35523         statistics.h stmt.h varasm.h wide-int.h.
35524         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
35525         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
35526         varasm.h wide-int.h.
35527         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
35528         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35529         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
35530         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
35531         statistics.h stmt.h.
35532         * config/tilepro/tilepro.c: Likewise.
35533         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
35534         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
35535         * config/pdp11/pdp11.c: Likewise.
35536         * config/xtensa/xtensa.c: Likewise.
35537         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
35538         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35539         varasm.h.
35540         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35541         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35542         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
35543         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35544         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35545         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
35546         * rtl-chkp.c: Likewise.
35547         * tree-chkp-opt.c: Likewise.
35548         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
35549         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35550         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
35551         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35552         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35553         statistics.h stmt.h.
35554         * tree-vect-data-refs.c: Likewise.
35555         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
35556         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35557         rtl.h statistics.h stmt.h varasm.h.
35558         * internal-fn.c: Likewise.
35559         * ipa-icf-gimple.c: Likewise.
35560         * lto-section-out.c: Likewise.
35561         * tree-data-ref.c: Likewise.
35562         * tree-nested.c: Likewise.
35563         * tree-outof-ssa.c: Likewise.
35564         * tree-predcom.c: Likewise.
35565         * tree-pretty-print.c: Likewise.
35566         * tree-scalar-evolution.c: Likewise.
35567         * tree-ssa-strlen.c: Likewise.
35568         * tree-vect-loop.c: Likewise.
35569         * tree-vect-patterns.c: Likewise.
35570         * tree-vect-slp.c: Likewise.
35571         * tree-vect-stmts.c: Likewise.
35572         * tsan.c: Likewise.
35573         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35574         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
35575         stmt.h.
35576         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
35577         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35578         statistics.h stmt.h varasm.h.
35579         * loop-unroll.c: Likewise.
35580         * ubsan.c: Likewise.
35581         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
35582         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
35583         stmt.h varasm.h.
35584         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35585         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
35586         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
35587         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35588         statistics.h stmt.h.
35589         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
35590         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35591         statistics.h stmt.h varasm.h.
35592         * gimple-match-head.c: Likewise.
35593         * lto-cgraph.c: Likewise.
35594         * lto-section-in.c: Likewise.
35595         * lto-streamer-in.c: Likewise.
35596         * lto-streamer-out.c: Likewise.
35597         * tree-affine.c: Likewise.
35598         * tree-cfg.c: Likewise.
35599         * tree-cfgcleanup.c: Likewise.
35600         * tree-if-conv.c: Likewise.
35601         * tree-into-ssa.c: Likewise.
35602         * tree-ssa-alias.c: Likewise.
35603         * tree-ssa-copyrename.c: Likewise.
35604         * tree-ssa-dse.c: Likewise.
35605         * tree-ssa-forwprop.c: Likewise.
35606         * tree-ssa-live.c: Likewise.
35607         * tree-ssa-math-opts.c: Likewise.
35608         * tree-ssa-pre.c: Likewise.
35609         * tree-ssa-sccvn.c: Likewise.
35610         * tree-tailcall.c: Likewise.
35611         * tree-vect-generic.c: Likewise.
35612         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35613         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
35614         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35615         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
35616         * varasm.c: Likewise.
35617         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35618         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
35619         varasm.h.
35620         * init-regs.c: Likewise.
35621         * ira.c: Likewise.
35622         * omp-low.c: Likewise.
35623         * stack-ptr-mod.c: Likewise.
35624         * tree-ssa-reassoc.c: Likewise.
35625         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35626         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
35627         varasm.h.
35628         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35629         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
35630         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35631         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
35632         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35633         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
35634         * tree-ssa-phiopt.c: Likewise.
35635         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35636         fixed-value.h hashtab.h real.h statistics.h stmt.h.
35637         * config/fr30/fr30.c: Likewise.
35638         * config/frv/frv.c: Likewise.
35639         * expr.c: Likewise.
35640         * final.c: Likewise.
35641         * optabs.c: Likewise.
35642         * passes.c: Likewise.
35643         * simplify-rtx.c: Likewise.
35644         * stmt.c: Likewise.
35645         * toplev.c: Likewise.
35646         * var-tracking.c: Likewise.
35647         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35648         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35649         * lower-subreg.c: Likewise.
35650         * postreload-gcse.c: Likewise.
35651         * ree.c: Likewise.
35652         * reginfo.c: Likewise.
35653         * store-motion.c: Likewise.
35654         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35655         fixed-value.h hashtab.h real.h stmt.h varasm.h.
35656         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35657         fixed-value.h hashtab.h statistics.h stmt.h.
35658         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35659         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35660         * except.c: Likewise.
35661         * explow.c: Likewise.
35662         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35663         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
35664         varasm.h.
35665         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35666         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
35667         * tree-ssa-structalias.c: Likewise.
35668         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35669         fixed-value.h insn-config.h real.h statistics.h.
35670         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35671         fixed-value.h insn-config.h real.h statistics.h stmt.h.
35672         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35673         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35674         * cfgbuild.c: Likewise.
35675         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35676         fixed-value.h real.h rtl.h statistics.h stmt.h.
35677         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35678         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35679         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35680         fixed-value.h real.h statistics.h stmt.h.
35681         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35682         fixed-value.h real.h statistics.h stmt.h varasm.h.
35683         * cprop.c: Likewise.
35684         * modulo-sched.c: Likewise.
35685         * postreload.c: Likewise.
35686         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35687         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
35688         statistics.h stmt.h varasm.h.
35689         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
35690         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35691         rtl.h statistics.h stmt.h varasm.h.
35692         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
35693         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
35694         varasm.h.
35695         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35696         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
35697         varasm.h.
35698         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
35699         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
35700         varasm.h.
35701         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
35702         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35703         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35704         function.h real.h statistics.h stmt.h varasm.h.
35705         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35706         insn-config.h real.h statistics.h stmt.h.
35707         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35708         statistics.h stmt.h.
35709         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
35710         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
35711         statistics.h stmt.h varasm.h.
35712         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
35713         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
35714         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35715         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
35716         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
35717         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35718         statistics.h stmt.h varasm.h.
35719         * ipa-polymorphic-call.c: Likewise.
35720         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
35721         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35722         statistics.h stmt.h.
35723         * config/c6x/c6x.c: Likewise.
35724         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
35725         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35726         statistics.h stmt.h varasm.h.
35727         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
35728         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
35729         stmt.h varasm.h.
35730         * ipa-split.c: Likewise.
35731         * tree-eh.c: Likewise.
35732         * tree-ssa-dce.c: Likewise.
35733         * tree-ssa-loop-niter.c: Likewise.
35734         * tree-vrp.c: Likewise.
35735         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
35736         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
35737         stmt.h.
35738         * config/nds32/nds32-fp-as-gp.c: Likewise.
35739         * config/nds32/nds32-intrinsic.c: Likewise.
35740         * config/nds32/nds32-isr.c: Likewise.
35741         * config/nds32/nds32-md-auxiliary.c: Likewise.
35742         * config/nds32/nds32-memory-manipulation.c: Likewise.
35743         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
35744         * config/nds32/nds32-predicates.c: Likewise.
35745         * config/nds32/nds32.c: Likewise.
35746         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
35747         fixed-value.h hashtab.h real.h statistics.h.
35748         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
35749         fixed-value.h hashtab.h real.h statistics.h stmt.h.
35750         * config/arm/arm.c: Likewise.
35751         * config/avr/avr.c: Likewise.
35752         * config/bfin/bfin.c: Likewise.
35753         * config/h8300/h8300.c: Likewise.
35754         * config/i386/i386.c: Likewise.
35755         * config/ia64/ia64.c: Likewise.
35756         * config/iq2000/iq2000.c: Likewise.
35757         * config/m32c/m32c.c: Likewise.
35758         * config/m32r/m32r.c: Likewise.
35759         * config/m68k/m68k.c: Likewise.
35760         * config/mcore/mcore.c: Likewise.
35761         * config/mep/mep.c: Likewise.
35762         * config/mips/mips.c: Likewise.
35763         * config/mn10300/mn10300.c: Likewise.
35764         * config/moxie/moxie.c: Likewise.
35765         * config/pa/pa.c: Likewise.
35766         * config/rl78/rl78.c: Likewise.
35767         * config/rx/rx.c: Likewise.
35768         * config/s390/s390.c: Likewise.
35769         * config/sh/sh.c: Likewise.
35770         * config/sparc/sparc.c: Likewise.
35771         * config/spu/spu.c: Likewise.
35772         * config/stormy16/stormy16.c: Likewise.
35773         * config/v850/v850.c: Likewise.
35774         * config/vax/vax.c: Likewise.
35775         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
35776         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35777         * config/msp430/msp430.c: Likewise.
35778         * predict.c: Likewise.
35779         * value-prof.c: Likewise.
35780         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
35781         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
35782         * config/microblaze/microblaze.c: Likewise.
35783         * config/nios2/nios2.c: Likewise.
35784         * config/rs6000/rs6000.c: Likewise.
35785         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35786         insn-config.h real.h rtl.h statistics.h stmt.h.
35787         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35788         insn-config.h real.h statistics.h stmt.h.
35789         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
35790         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35791         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
35792         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35793         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
35794         fixed-value.h real.h statistics.h stmt.h.
35795         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
35796         fixed-value.h statistics.h stmt.h.
35797         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
35798         stmt.h.
35800 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
35802         * gengtype.c (create_user_defined_type): Workaround
35803         -Wmaybe-uninitialized false positives.
35804         * cse.c (fold_rtx): Likewise.
35805         * loop-invariant.c (gain_for_invariant): Likewise.
35807 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
35809         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
35810         set the memory attributes in all cases but clear MEM_EXPR if need be.
35812 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
35814         PR tree-optimization/64434
35815         * cfgexpand.c (reorder_operands): New function.
35816         (expand_gimple_basic_block): Insert call of reorder_operands if
35817         optimized is true.
35819 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
35821         * config/mips/micromips.md (*swp): Remove explicit parallel.
35822         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
35823         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
35824         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
35825         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
35826         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
35827         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
35828         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
35829         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
35830         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
35831         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
35832         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
35833         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
35834         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
35835         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
35836         (mips_wrdsp): Likewise.
35837         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
35838         parallel.
35839         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
35840         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
35841         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
35842         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
35843         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
35844         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
35845         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
35846         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
35847         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
35849 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
35851         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
35852         (mips_print_operand): Support 'y' to print exact log2 in decimal
35853         of a const_int.
35854         * config/mips/mips.h (ISA_HAS_LSA): New define.
35855         (ISA_HAS_DLSA): Likewise.
35856         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
35857         * config/mips/predicates.md (const_immlsa_operand): New predicate.
35859 2015-01-15  Martin Liska  <mliska@suse.cz>
35861         PR target/64377
35862         * optc-save-gen.awk: Add support for array types.
35864 2015-01-15  Richard Biener  <rguenther@suse.de>
35866         PR middle-end/64365
35867         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
35868         for MEM_REF access functions with the same base can never partially
35869         overlap.
35871 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
35873         * common.opt: New option -fstack-protector-explicit.
35874         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
35875         (stack_protect_decl_phase): Handle stack_protect attribute for
35876         explicit stack protection requests.
35877         (expand_used_vars): Similarly.
35878         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
35879         * doc/extend.texi: Add documentation for "stack_protect" attribute.
35880         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
35882 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
35884         PR target/53988
35885         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
35886         reg-reg copies.
35887         (sh_extending_set_of_reg): New struct.
35888         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
35889         sh_remove_reg_dead_or_unused_notes): New Declarations.
35890         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
35891         sh_find_extending_set_of_reg, sh_split_tst_subregs,
35892         sh_extending_set_of_reg::use_as_extended_reg): New functions.
35893         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
35894         convert to insn_and_split and use new function sh_split_tst_subregs.
35896 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
35898         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
35899         option.
35900         (Optimization Options): Move -fuse-ld documentation to...
35901         (Link Options): ...here.
35903 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
35905         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
35906         offsets.
35907         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
35908         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
35909         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
35910         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
35911         instead of ZR for the memory operand of LL/SC.
35912         (compare_and_swap_12, sync_add<mode>): Likewise.
35913         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
35914         (sync_new_<optab>_12, sync_nand_12): Likewise.
35915         (sync_old_nand_12, sync_new_nand_12): Likewise.
35916         (sync_sub<mode>, sync_old_add<mode>): Likewise.
35917         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
35918         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
35919         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
35920         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
35921         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
35922         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
35923         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
35924         * doc/md.texi (ZC): Update description.
35926 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
35928         * builtins.c (expand_builtin_atomic_exchange): Remove error when
35929         memory model is CONSUME.
35930         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
35931         expand_builtin_atomic_store): Change invalid memory model errors to
35932         warnings.
35933         (expand_builtin_atomic_clear): Change invalid model errors to warnings
35934         and issue warning for CONSUME.
35936 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
35938         * lto-cgraph: Update function comments for
35939         lto_symtab_encoder_encode_*.
35941 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
35943         * Makefile.in (site.exp): Do not set ENABLE_LTO.
35945 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
35947         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
35948         * lto-cgraph.c (select_what_to_stream): Remove argument, use
35949         lto_stream_offload_p instead.
35950         * lto-streamer.h (select_what_to_stream): Remove argument.
35951         * passes.c (ipa_write_summaries): Likewise.
35952         * tree-pass.h (ipa_write_summaries): Likewise.
35954 2015-01-14  Richard Biener  <rguenther@suse.de>
35956         PR tree-optimization/59354
35957         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
35958         groups larger than the slp group size as having gaps.
35960 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
35962         PR middle-end/59448
35963         * builtins.c (get_memmodel): Promote consume to acquire always.
35965 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
35967         PR target/64386
35968         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
35969         V32HImode.
35971 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
35973         PR target/64393
35974         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
35975         Enable AVX512BW.
35976         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
35977         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
35978         AVX512VBMI, as it implies AVX512BW.
35980 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
35982         PR target/64387
35983         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
35984         (vec_unpacks_hi_v16sf): Ditto.
35986 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35988         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
35989         is not available.
35991 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35993         * doc/invoke.texi (mapcs): Mention deprecation.
35994         (mapcs-frame): Likewise.
35996 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35998         PR target/64453
35999         * config/arm/arm.c (callee_saved_reg_p): Define.
36000         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36001         register is callee saved instead of !call_used_regs[reg].
36002         (thumb1_compute_save_reg_mask): Likewise.
36004 2015-01-14  Hale Wang  <hale.wang@arm.com>
36006         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36007         Cortex-M7.
36009 2015-01-14  Richard Biener  <rguenther@suse.de>
36011         PR lto/64415
36012         * tree-inline.c (insert_debug_decl_map): Check destination
36013         function MAY_HAVE_DEBUG_STMTS.
36014         (insert_init_debug_bind): Likewise.
36015         (insert_init_stmt): Remove redundant check.
36016         (remap_gimple_stmt): Drop debug stmts if the destination
36017         function has var-tracking assignments disabled.
36019 2015-01-14  Martin Liska  <mliska@suse.cz>
36021         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36022         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36024 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36026         PR target/64460
36027         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36028         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36030 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36032         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36033         level from an ARCH; do not inject the default.
36034         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36035         MIPS_ISA_LEVEL_SPEC.
36036         (MIPS_ISA_NAN2008_SPEC): Update comment.
36037         (BASE_DRIVER_SELF_SPECS): Likewise.
36038         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36039         MIPS_DEFAULT_ISA_LEVEL_SPEC.
36040         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36041         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36042         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36044 2015-01-14  Richard Biener  <rguenther@suse.de>
36046         PR tree-optimization/64493
36047         PR tree-optimization/64495
36048         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36049         assign the proper vectorized PHI to the inner loop exit PHIs.
36051 2015-01-14  Joey Ye  <joey.ye@arm.com>
36053         * config/arm/arm.c (arm_compute_save_reg_mask):
36054         Do not save lr in case of tail call.
36055         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36057 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
36059         * tree-vrp.c (check_array_ref): Emit more warnings
36060         for warn_array_bounds >= 2.
36061         * common.opt: New option -Warray-bounds=.
36062         * doc/invoke.texi: Document -Warray-bounds=.
36064 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
36066         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36067         (mforbid-fp-as-gp): Remove.
36068         (mex9): Remove.
36069         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36070         (nds32_symbol_load_store_p): Remove.
36071         (nds32_fp_as_gp_check_available): Clean up implementation.
36072         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36073         cases.
36074         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36075         fp-as-gp and ex9 cases.
36077 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36079         * tree-profile.c (init_ic_make_global_vars): Drop workaround
36080         for bintuils bug 14342.
36081         (init_ic_make_global_vars): Likewise.
36082         (gimple_init_edge_profiler): Likewise.
36083         (gimple_gen_ic_func_profiler): Likewise.
36085 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36087         * ipa-inline.c (inline_small_functions): Swap the operands in
36088         enum.
36090 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36092         PR ipa/64481
36093         * ipa-inline-analysis.c (node_growth_cache): Remove.
36094         (initialize_growth_caches): Do not initialize it.
36095         (free_growth_caches): Do not free it.
36096         (do_estimate_growth): Rename to ...
36097         (estimate_growth): ... this one; drop growth cache code.
36098         (growth_likely_positive): Always go the heuristics way.
36099         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36100         (reset_edge_caches): Do not reset node growth.
36101         (heap_edge_removal_hook): Do not maintain cache.
36102         (inline_small_functions): Likewise; strenghten sanity check.
36103         (ipa_inline): Do not maintain caches.
36104         * ipa-inline.h (node_growth_cache): Remove.
36105         (do_estimate_growth): Remove to ...
36106         (estimate_growth): this one; remove inline version.
36107         (reset_node_growth_cache): Remove.
36109 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36111         PR ipa/64565
36112         * ipa-inline.c (inline_small_functions): Update callee keys after
36113         resolving speculation
36114         (inline_small_functions): Always check monotonicity of the queue.
36116 2015-01-13  Marek Polacek  <polacek@redhat.com>
36118         PR middle-end/64391
36119         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36121 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36123         PR rtl-optimization/64286
36124         * ree.c (combine_reaching_defs): Move part of comment earlier,
36125         remove !SCALAR_INT_MODE_P check.
36126         (add_removable_extension): Don't add vector mode
36127         extensions if all uses of the source register aren't the same
36128         vector extensions.
36130 2015-01-13  Renlin Li  <renlin.li@arm.com>
36132         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36133         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36135 2015-01-13  Martin Liska  <mliska@suse.cz>
36137         * ipa-icf.c (sem_function::equals_private): Call new functions
36138         cl_target_option_print_diff and cl_optimization_print_diff.
36139         * optc-save-gen.awk (cl_target_option_print_diff): New function.
36140         (cl_optimization_print_diff): Likewise.
36141         * opth-gen.awk: Likewise.
36143 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
36145         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36146         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36147         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36148         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36149         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36150         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36152 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36154         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36155         instead of src mode.
36157 2015-01-13  Richard Biener  <rguenther@suse.de>
36159         PR lto/64373
36160         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36161         DECL_CONTEXT.
36163 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36165         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36166         volatile mems.
36167         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36169 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36171         PR middle-end/63974
36172         * cfgexpand.c (expand_computed_goto): Don't call
36173         convert_memory_address here.
36175 2015-01-13  Richard Biener  <rguenther@suse.de>
36177         PR tree-optimization/64406
36178         * tree-loop-distibution.c (pass_loop_distribution::execute):
36179         Reset the SCEV hashtable if we distributed anything.
36181 2015-01-13  Richard Biener  <rguenther@suse.de>
36183         PR tree-optimization/64404
36184         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36185         SLP types for CSEd loads.
36187 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36189         PR tree-optimization/64436
36190         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36191         merge of two symbolic numbers for a bitwise OR to ...
36192         (perform_symbolic_merge): This. Also fix computation of the range and
36193         end of the symbolic number corresponding to the result of a bitwise OR.
36195 2015-01-13  Richard Biener  <rguenther@suse.de>
36197         PR tree-optimization/64568
36198         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36199         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36201 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36203         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36204         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36206 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36208         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36209         target-specific symbol_ref flag.
36210         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36211         resides in rodata section.
36212         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36213         (nds32_encode_section_info): New function.
36215 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36217         * config/nds32/nds32.md (call): Use pseudo instruction bal which
36218         clobbers TA_REGNUM if large code model is specified.
36219         (call_register): Likewise.
36220         (call_immediate): Likewise.
36221         (call_value): Likewise.
36222         (call_value_register): Likewise.
36223         (call_value_immediate): Likewise.
36225 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36227         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36228         (TARGET_CMODEL_MEDIUM): New macro.
36229         (TARGET_CMODEL_LARGE): New macro.
36230         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36231         code model setting in assembly code.
36233 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36235         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36236         Remove MASK_GP_DIRECT flag.
36237         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36238         one of the multilib default options.
36239         * config/nds32/nds32.opt (mgp-direct): Remove.
36240         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36241         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
36243 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36245         * config/nds32/nds32.opt (mcmodel): Add new option.
36246         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36247         to describe code model.
36249 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
36251         PR target/64479
36252         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36254 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
36256         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36257         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36258         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36259         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36260         __builtin_sh_set_fpscr.
36262 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
36264         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36265         after a funtion name just to indicate it is a function.
36266         ([-fsanitize-undefined-trap-on-error]): Likewise.
36267         ([-fdbg-cnt=]): Likewise.
36268         ([-mmemcpy]): Likewise.
36269         ([-mflush-func]): Likewise.
36270         ([-msynci]): Likewise.
36272 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
36274         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36275         example.
36277 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
36279         PR tree-optimization/64563
36280         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36281         instead of != VR_VARYING.
36283         PR target/64513
36284         * config/i386/i386.c (ix86_expand_prologue): Add
36285         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36287         PR tree-optimization/64454
36288         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36289         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36290         for signed or [0, op1 - 1] for unsigned modulo.
36291         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36292         even if op1 does not satisfy integer_pow2p.
36294         PR other/64370
36295         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36297 2015-01-12  Jeff Law  <law@redhat.com>
36299         PR target/64461
36300         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36301         (trunchiqi2, truncsihi2): Similarly.
36303         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36304         rather than calling F.
36306 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36308         * tsan.c (instrument_expr): Use force_gimple_operand.
36309         Use may_be_nonaddressable_p instead of is_gimple_addressable.
36311 2015-01-12  Richard Biener  <rguenther@suse.de>
36313         PR tree-optimization/64530
36314         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36315         back dr1.
36317 2015-01-12  Richard Biener  <rguenther@suse.de>
36319         PR middle-end/64357
36320         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36321         latches properly.
36323 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36325         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36326         Cortex-A17 tuning parameters.
36327         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36329 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36331         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36332         * config/arm/arm.c (arm_macro_fusion_p): New function.
36333         (arm_macro_fusion_pair_p): Likewise.
36334         (TARGET_SCHED_MACRO_FUSION_P): Define.
36335         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36336         (ARM_FUSE_NOTHING): Likewise.
36337         (ARM_FUSE_MOVW_MOVT): Likewise.
36338         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36339         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36340         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36341         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36342         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36343         arm_cortex_a5_tune): Specify fuseable_ops value.
36345 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
36347         PR bootstrap/64561
36348         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36349         test for PIE with copy reloc.
36350         * configure: Regenerated.
36352 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36354         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36355         in gen_rtx_REG.
36356         (arm_tls_descseq_addr): Likewise.
36357         (arm_gen_movmemqi): Likewise.
36358         (arm_expand_epilogue_apcs_frame): Likewise.
36359         (arm_expand_epilogue): Likewise.
36360         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
36361         in gen_rtx_REG.
36363 2015-01-12  Martin Liska  <mliska@suse.cz>
36365         PR ipa/64550
36366         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36367         volatility for correct operands.
36369 2015-01-12  Martin Liska  <mliska@suse.cz>
36371         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36372         indication that a function is not leaf.
36373         (sem_function::compare_polymorphic_p): Likewise.
36375 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36377         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36378         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36379         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36380         fold-const.h, tree-check.h.
36382 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
36384         PR ipa/63967
36385         PR ipa/64425
36386         * ipa-inline.c (compute_uninlined_call_time,
36387         compute_inlined_call_time): Use counts for extra precision when
36388         needed possible.
36389         (big_speedup_p): Fix formating.
36390         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36391         (relative_time_benefit): Remove.
36392         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36393         merge guessed and read profile paths.
36394         (inline_small_functions): Count only !optimize_size functions into
36395         initial size; be more lax about sanity check when profile is used;
36396         be sure to update inlined function profile when profile is read.
36398 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
36400         PR ipa/63470
36401         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36402         cost when edge becomes direct.
36403         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36404         is resolved or when introducing new speculation.
36406 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
36408         PR ipa/64551
36409         PR ipa/64552
36410         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36411         '||' to fix typo issue.
36413         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36414         accept and return NULL.
36416 2015-01-12  Martin Liska  <mliska@suse.cz>
36418         * cgraph.c (cgraph_edge::remove_callee): Move function to header
36419         file for being inlined.
36420         (cgraph_set_edge_callee): Delete.
36421         (cgraph_edge::redirect_callee): Move function to header file
36422         for being inlined.
36423         (cgraph_edge::make_direct): Use new function.
36424         (cgraph_edge::dump_edge_flags): New function created from
36425         static dump_edge_flags function.
36426         (cgraph_node::dump): Use new function.
36427         (cgraph_edge::verify_count_and_frequency): New function created
36428         from verify_edge_count_and_frequency.
36429         (cgraph_edge::verify_corresponds_to_fndecl): New function created
36430         from verify_edge_corresponds_to_fndecl.
36431         (verify_edge_corresponds_to_fndecl): Delete.
36432         (cgraph_node::verify_node): Use new function.
36433         * cgraph.h (cgraph_edge::set_callee): New function.
36434         (cgraph_edge::dump_edge_flags): Likewise.
36435         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36437 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
36439         * ipa-utils.c (estimate_function_body_sizes): Do not
36440         free node params when called late with early=true.
36442 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
36444         * doc/md.texi (Instruction Patterns): Rewrite text for
36445         clarity.
36446         (Example): Likewise.
36448 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
36450         * doc/invoke.texi (Option Summary): Break long lines.
36451         [(-fdiagnostics-color)]: Put long literal in @smallexample
36452         instead of inline.
36453         [(-fsanitize-recover)]: Likewise.
36454         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
36455         [(-ffast-math)]: Likewise.
36456         [(--param max-inline-insns-recursive)]: Likewise.
36457         [(--param max-inline-recursive-depth)]: Likewise.
36458         [(-mno-text-section-literals)]: Likewise.
36460 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
36462         * doc/install.texi: Update for libgomp being renamed from "GNU
36463         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
36464         Runtime Library".
36465         * doc/sourcebuild.texi: Likewise.
36467 2015-01-10  Anthony Green  <green@moxielogic.com>
36469         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
36470         mul.x availability for moxiebox configuration.
36472 2015-01-09  Anthony Green  <green@moxielogic.com>
36474         * config/moxie/moxie.md: Tabify assembly output.
36476 2015-01-09  Anthony Green  <green@moxielogic.com>
36478         * config/moxie/moxie.md (CC_REG): Correct register definition.
36480 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
36482         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
36483         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
36484         of log files.
36486 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36488         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
36490 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
36491             Jakub Jelinek  <jakub@redhat.com>
36493         PR middle-end/64412
36494         * lto-streamer.h (lto_stream_offload_p): New declaration.
36495         * lto-streamer.c (lto_stream_offload_p): New variable.
36496         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
36497         at the same time as section_name_prefix.
36498         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
36499         if lto_stream_offload_p.
36500         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
36501         stream TREE_TARGET_OPTION if lto_stream_offload_p.
36502         (write_ts_function_decl_tree_pointers): Don't
36503         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
36504         * tree-streamer-in.c (unpack_value_fields): Don't stream
36505         TREE_TARGET_OPTION in if ACCEL_COMPILER.
36506         (lto_input_ts_function_decl_tree_pointers): Don't stream
36507         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
36508         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
36509         instead of section_name_prefix string comparisons.
36511 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
36513         PR rtl-optimization/64536
36514         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
36515         tablejumps.
36517 2015-01-09  Michael Collison  <michael.collison@linaro.org>
36519         PR tree-optimization/64322
36520         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
36521         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
36523 2015-01-09  Tom de Vries  <tom@codesourcery.com>
36525         PR rtl-optimization/64539
36526         * regcprop.c (kill_clobbered_values): Factor out of ...
36527         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
36528         instead of note_stores with kill_clobbered_value.
36530 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36532          * ginclude/unwind-arm-common.h: Revert previous commit.
36534 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36536         * config.gcc (arm*-*-freebsd*): New configuration.
36537         * config/arm/freebsd.h: New file.
36538         * config.host: Add extra components for arm*-*-freebsd*.
36539         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
36540         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
36542 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36544         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
36545         for -mcpu=e6500.
36546         * config/rs6000/t-rtems: Add e6500 multilibs.
36548 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36550         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
36551         MPC8540.
36553 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36555         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
36556         MULTILIB_EXCEPTIONS.
36558 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36560         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
36561         MULTILIB_EXCEPTIONS.
36563 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36565         * config/arm/t-rtems-eabi: Rename to...
36566         * config/arm/t-rtems: ...this.
36567         * config/arm/rtems-eabi.h: Rename to...
36568         * config/arm/rtems.h: ...this.
36569         * config.gcc (arm*-*-rtems*): Reflect changes above.
36571 2015-01-09  Richard Biener  <rguenther@suse.de>
36573         PR tree-optimization/64410
36574         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
36575         on the LHS.
36576         (execute_update_addresses_taken): Deal with that.
36577         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
36578         loads/stores for complex variables.
36580 2015-01-09  Martin Liska  <mliska@suse.cz>
36582         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
36583         name comparison.
36584         (func_checker::compare_memory_operand): New function.
36585         (func_checker::compare_operand): Split case to newly
36586         added functions.
36587         (func_checker::compare_cst_or_decl): New function.
36588         (func_checker::compare_gimple_call): Identify
36589         memory operands.
36590         (func_checker::compare_gimple_assign): Likewise.
36591         * ipa-icf-gimple.h: New function.
36593 2015-01-09  Martin Liska  <mliska@suse.cz>
36595         PR ipa/64503
36596         * sreal.c (sreal::dump): Change unsigned format to signed for
36597         m_exp value.
36598         (sreal::to_double): Replace exp2 with scalbln.
36600 2015-01-09  Martin Liska  <mliska@suse.cz>
36602         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
36603         * ipa-icf.c (sem_function::equals_private): Add support for target and
36604         (sem_item_optimizer::merge_classes): Remove redundant function
36605         optimization flags comparison.
36606         * tree.h (target_opts_for_fn): New function.
36608 2015-01-09  Tom de Vries  <tom@codesourcery.com>
36610         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
36612 2015-01-09  Kito Cheng  <kito@0xlab.org>
36614         PR rtl-optimization/64348
36615         * lra-constraints.c (split_reg): Fix caller-save store/restore
36616         instruction generation.
36618 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
36620         PR gcov-profile/61790
36621         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
36622         long long.  Fallback to int64_t if host doesn't have long long and
36623         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
36625 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
36627         PR tree-optimization/63989
36628         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
36629         from 1000 to 10000.
36630         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
36631         (get_stridx): If we don't have a record for certain SSA_NAME,
36632         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
36633         constant offset, call get_stridx_plus_constant.
36634         (get_stridx_plus_constant): New function.
36635         (zero_length_string): Don't use get_stridx here.
36637         PR target/55023
36638         PR middle-end/64388
36639         * dse.c (struct insn_info): Mention frame_read set also
36640         before reload for tail calls on some targets.
36641         (scan_insn): Revert 2014-12-22 change.  Set frame_read
36642         also before reload for tail calls if
36643         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
36644         instead of add_non_frame_wild_read for non-const/memset
36645         tail calls after reload.
36647 2015-01-08  Jason Merrill  <jason@redhat.com>
36649         * ubsan.c (do_ubsan_in_current_function): New.
36650         (pass_ubsan::gate): Use it.
36651         * ubsan.h: Declare it.
36652         * convert.c (convert_to_integer): Use it.
36654 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
36656         PR target/64338
36657         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
36658         compare_code when it is unconditionally overwritten afterwards.
36659         Use ix86_reverse_condition instead of reverse_condition.  Don't
36660         change code if *reverse_condition* returned UNKNOWN and don't
36661         swap ct/cf and negate diff in that case.
36663 2015-01-08  Mike Stump  <mikestump@comcast.net>
36665         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
36666         (pass_tsan_O0::gate): Likewise.
36667         * extend.texi (Function Attributes): Add no_sanitize_thread
36668         documentation.
36670 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
36672         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
36673         for registering builtins.
36674         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
36675         add -fopenmp to the argv_obstack used when invoking
36676         compile_for_target.
36678         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
36679         add "-m32" or "-m64" to argv_obstack.
36680         (generate_host_descr_file): Likewise, when invoking host_compiler.
36681         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
36682         ld.
36684 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
36686         * config/sh/sh-mem.cc: Use constant as second operand when emitting
36687         tstsi_t insns.
36689 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
36691         PR target/55212
36692         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
36693         constant load if constant operand fits into I08.
36695 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
36697         PR sanitizer/64336
36698         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
36699         and TREE_THIS_VOLATILE for MEM_REFs.
36700         (build5_stat): Fix up initialization of TREE_READONLY and
36701         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
36703 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
36705         PR target/64533
36706         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
36707         of r for the second alternative of the destination operand.
36709 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
36711         PR target/36557
36712         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
36714 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
36716         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
36717         keywords.
36718         ([-fivar-visibility], [-fvisibility]): Likewise.
36720 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
36722         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
36723         the file where @code, @command, etc is more appropriate.
36725 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
36727         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
36728         of -mrecip= documentation.
36730 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36732         PR target/64505
36733         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
36734         correct reload handler if -m32 -mpowerpc64 is used.
36736 2015-01-06  Tom de Vries  <tom@codesourcery.com>
36738         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
36740 2015-01-08  Christian Bruel  <christian.bruel@st.com>
36742         PR target/64507
36743         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
36745 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36747         PR tree-optimization/63259
36748         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
36749         if optab exists for 16bit byteswap.
36751 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
36753         * opts.c (common_handle_option): Add support for
36754         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
36755         * doc/invoke.texi: Document -fno-sanitize=all,
36756         -f{,no-}sanitize-recover=all.  Document that
36757         -fsanitize=float-cast-overflow is not enabled
36758         by -fsanitize=undefined.  Fix up documentation
36759         of -f{,no-}sanitize-recover.
36761 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36763         * config.gcc: Add Visium support.
36764         * configure.ac: Likewise.
36765         * configure: Regenerate.
36766         * doc/extend.texi (interrupt attribute): Add Visium.
36767         * doc/invoke.texi: Document Visium options.
36768         * doc/install.texi: Document Visium target.
36769         * doc/md.texi: Document Visium constraints.
36770         * common/config/visium: New directory.
36771         * config/visium: Likewise.
36773 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
36775         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
36776         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
36778 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
36780         * combine.c (combine_validate_cost): Do not count the cost of a
36781         split I2 twice.  Do not display it twice in the dump, either.
36783 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
36785         Revert parts of r219199.
36786         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
36787         <inttypes.h>.
36788         ([-Wtraditional]): Restore markup on <limits.h>.
36790 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
36792         PR c++/31397
36793         * doc/invoke.texi: Document -Wsuggest-override.
36795 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
36797         PR rtl-optimization/64287
36798         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
36799         (process_options): Disable flag_ipa_ra if profiling.
36801 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
36803         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
36805 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
36807         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
36808         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
36809         put under #if TARGET_LOOPS guard.
36811 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
36813         * config/i386/i386.c (output_387_binary_op): Use std::swap.
36815 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
36817         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
36818         * rtl.h (refers_to_regno_p): Add overload.
36819         * cse.c: Use it.
36820         * bt-load.c: Likewise.
36821         * combine.c: Likewise.
36822         * df-scan.c: Likewise.
36823         * sched-deps.c: Likewise.
36824         * config/s390/s390.c: Likewise.
36825         * config/m32r/m32r.c: Likewise.
36826         * config/rs6000/spe.md: Likewise.
36827         * config/rs6000/rs6000.c: Likewise.
36828         * config/pa/pa.c: Likewise.
36829         * config/stormy16/stormy16.c: Likewise.
36830         * config/cris/cris.c: Likewise.
36831         * config/arc/arc.md: Likewise.
36832         * config/arc/arc.c: Likewise.
36833         * config/sh/sh.md: Likewise.
36834         * config/sh/sh.c: Likewise.
36835         * config/frv/frv.c: Likewise.
36837 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
36839         PR sanitizer/64265
36840         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
36841         call as cleanup of the whole body.
36842         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
36843         * tsan.c (replace_func_exit): New function.
36844         (instrument_func_exit): Moved earlier.
36845         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
36846         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
36847         been found.
36848         (tsan_pass): Don't call instrument_func_exit.
36849         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
36850         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
36851         inlining.
36853         PR sanitizer/64344
36854         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
36855         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
36856         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
36857         if the result is integer_zerop, return NULL_TREE.
36858         * convert.c (convert_to_integer): Pass expr as ARG.
36860         PR tree-optimization/64465
36861         * tree-inline.c (redirect_all_calls): During inlining
36862         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
36863         changed the stmt to a non-throwing call.
36865 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
36867         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
36868         etc markup throughout the file.
36870 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36872         Enable experimental TSAN support for Ada.
36873         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
36875 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
36877         PR tree-optimization/64494
36878         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
36879         clear SSA_NAME_ANTI_RANGE_P flag.
36881 2015-01-05  Marek Polacek  <polacek@redhat.com>
36883         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
36885 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
36887         Update copyright years.
36889         * gcc.c (process_command): Update copyright notice dates.
36890         * gcov-dump.c: Ditto.
36891         * gcov.c: Ditto.
36892         * doc/cpp.texi: Bump @copying's copyright year.
36893         * doc/cppinternals.texi: Ditto.
36894         * doc/gcc.texi: Ditto.
36895         * doc/gccint.texi: Ditto.
36896         * doc/gcov.texi: Ditto.
36897         * doc/install.texi: Ditto.
36898         * doc/invoke.texi: Ditto.
36900         * auto-profile.c, auto-profile.h: Fix up Copyright line.
36902 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
36904         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
36905         verb tense, etc.
36906         ([-fvtable-verify], [-fvtv-debug]): Likewise.
36907         ([-Wabi]): Likewise.
36908         ([-fmessage-length]): Likewise.
36909         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
36910         ([-Wno-discarded-qualifiers]): Likewise.
36911         ([-Wnodiscarded-array-qualifiers]): Likewise.
36912         ([-Wno-virtual-move-assign]): Likewise.
36913         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
36914         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
36915         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
36916         ([-fsanitize-undefined-trap-on-error]): Likewise.
36917         ([-floop-interchange]): Likewise.
36918         ([-ftree-coalesce-inlined-vars]): Likewise.
36919         ([-fvect-cost-model]): Likewise.
36920         ([-flto]): Likewise.
36921         ([--param]): Likewise.
36922         (Spec Files): Likewise.
36923         ([-mstrict-align]): Likewise.
36924         ([-mfix-cortex-a53-835769]): Likewise.
36925         ([-march], [-mtune]): Likewise.
36926         ([-mpic-register]): Likewise.
36927         ([-munaligned-access]): Likewise.
36928         ([-msp8]): Likewise.
36929         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
36930         (AVR Built-in Macros): Likewise.
36931         ([-mpreferred-stack-boundary]): Likewise.
36932         ([-mtune-crtl]): Likewise.
36933         ([-mashf]): Likewise.
36934         ([-mmcu=]): Likewise.
36935         ([-minrt]): Likewise.
36936         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
36937         ([-mupper-regs]): Likewise.
36938         ([-matomic-model]): Likewise.
36939         ([-mdiv]): Likewise.
36940         ([-mzdcbranch]): Likewise.
36941         ([-mdisable-callt]): Likewise.
36942         ([-msoft-float]): Likewise.
36943         ([-m8byte-align]): Likewise.
36944         ([-fstack-reuse]): Likewise.
36946 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
36948         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
36949         Fix markup, light copy-editing.
36950         ([-fauto-profile]): Rewrite to fix formatting and content
36951         problems.
36953 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
36955         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
36956         Copy-edit description.
36957         ([-fisolate-erroneous-paths-attribute]): Likewise.
36958         * common.opt (fisolate-erroneous-paths-dereference):
36959         Copy-edit description.
36960         (fisolate-erroneous-paths-attribute): Likewise.
36962 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
36964         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
36965         tidy grammar.
36967 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
36969         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
36970         ([-fvtv-debug]): Likewise.
36971         ([-Wc++-compat]): Likewise.
36972         ([-Wc++11-compat]): Likewise.
36973         ([-Wc++14-compat]): Likewise.
36974         ([-Wno-sized-deallocation]): Likewise.
36975         ([-femit-class-debug-always]): Likewise.
36976         ([-femit-struct-debug-detailed]): Likewise.
36977         ([-fno-keep-inline-dllexport]): Likewise.
36978         ([-fira-algorithm]): Likewise.
36979         ([-fira-region]): Likewise.
36980         ([-flra-remat]): Likewise.
36981         ([-fipa-ra]): Likewise.
36982         ([-fhoist-adjacent-loads]): Likewise.
36983         ([-fisolate-erroneous-paths-dereference]): Likewise.
36984         ([-fisolate-erroneous-paths-attribute]): Likewise.
36985         ([-ftree-switch-conversion]): Likewise.
36986         ([-ftree-tail-merge]): Likewise.
36987         ([-ftree-loop-if-convert]): Likewise.
36988         ([-ftree-loop-if-convert-stores]): Likewise.
36989         ([-ftree-loop-distribution]): Likewise.
36990         ([-ftree-loop-distribute-patterns]): Likewise.
36991         ([-flto-compression-level]): Likewise.
36992         ([-flto-report]): Likewise.
36993         ([-flto-report-wpa]): Likewise.
36994         ([-fuse-linker-plugin]): Likewise.
36995         ([-mfix-cortex-a53-835769]): Likewise.
36996         ([-mno-fix-cortex-a53-835769]): Likewise.
36997         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
36998         explicit listing; add a note to the discussion indicating they
36999         exist.  Reorder table to group similar options.  Add missing
37000         @opindex entries.  Add @need commands throughout the table to
37001         allow it to be split across multiple pages.
37002         ([-m8bit-idiv]): Fix @opindex.
37003         ([-mavx256-split-unaligned-load]): Likewise.
37004         ([-mavx256-split-unaligned-store]): Likewise.
37005         ([-mstack-protector-guard]): Likewise.
37006         ([-mcpu=]): Likewise.
37007         ([-mcpu]): Likewise.
37008         ([-mpointer-size=]): Likewise.
37010 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
37012         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37013         instead of `m' constraint.  Likewise for unnamed movb comparison
37014         patterns using reg_before_reload_operand predicate.
37015         * config/pa/predicates.md (reg_before_reload_operand): Tighten
37016         predicate to reject register index and LO_SUM DLT memory forms
37017         after reload.
37019 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37021         * doc/invoke.texi (Option Summary): Fix spelling of
37022         -fdevirtualize-at-ltrans.
37023         ([-fdevirtualize]): Fix markup.
37024         ([-fdevirtualize-speculatively]): Fix typo.
37025         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
37026         implementor-speaky.
37027         * common.opt (fdevirtualize-at-ltrans): Likewise.
37028         * ipa-devirt.c: Fix typos in comments throughout the file.
37029         (ipa_devirt): Fix typos in format strings for dump output.
37031 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37033         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37034         discussion of defaults, light copy-editing.
37036 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37038         * tsan.c (instrument_expr): corrected previous checkin.
37040 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37042         Instrument bit field and unaligned accesses for TSAN.
37043         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37044         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37045         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37046         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37047         unaligned memory regions.
37049 2015-01-01  Anthony Green  <green@moxielogic.com>
37051         * config/moxie/predicates.md (moxie_general_movsrc_operand):
37052         Restrict move source register offsets to 16 bits.
37054 Copyright (C) 2015 Free Software Foundation, Inc.
37056 Copying and distribution of this file, with or without modification,
37057 are permitted in any medium without royalty provided the copyright
37058 notice and this notice are preserved.