1 2015-11-08 Jeff Law <jeff@redhat.com>
3 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4 non-FSM path has no edges marked with EDGE_DFS_BACK.
5 (ssa_redirect_edges): No longer call mark_loop_for_removal.
6 (thread_single_edge, def_split_header_continue_p): Remove.
7 (bb_ends_with_multiway_branch): Likewise.
8 (thread_through_loop_header): Remove cases of threading from
9 latch through the header. Simplify knowing we won't thread
11 (thread_through_all_blocks): Simplify knowing that only the FSM
12 threader needs to handle backedges.
14 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
16 * doc/extend.texi (type attributes): Document scalar_storage_order.
17 (Structure-Packing Pragmas): Rename into...
18 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
19 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
20 (Warnings): Document -Wno-scalar-storage-order.
21 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
22 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
23 extract_bit_field and store_bit_field.
24 (initialize_argument_information): Adjust call to store_expr.
25 (load_register_parameters): Adjust call to extract_bit_field.
26 * expmed.c (check_reverse_storage_order_support): New function.
27 (check_reverse_float_storage_order_support): Likewise.
28 (flip_storage_order): Likewise.
29 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
30 of the value if it is true. Pass REVERSE to recursive call after
31 adjusting the target offset.
32 Do not use extraction or movstrict instruction if REVERSE is true.
33 Pass REVERSE to store_fixed_bit_field.
34 (store_bit_field): Add REVERSE parameter and pass to it to above.
35 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
36 store_split_bit_field and store_fixed_bit_field_1.
37 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
38 order of the value if it is true and adjust the target offset.
39 (store_split_bit_field): Add REVERSE parameter and pass it to
40 store_fixed_bit_field. Adjust the target offset if it is true.
41 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
42 of the value if it is true. Pass REVERSE to recursive call after
43 adjusting the target offset.
44 Do not use extraction or subreg instruction if REVERSE is true.
45 Pass REVERSE to extract_fixed_bit_field.
46 (extract_bit_field): Add REVERSE parameter and pass to it to above.
47 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
48 extract_split_bit_field and extract_fixed_bit_field_1.
49 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
50 order of the value if it is true and adjust the target offset.
51 (extract_split_bit_field): Add REVERSE parameter and pass it to
52 extract_fixed_bit_field. Adjust the target offset if it is true.
53 * expmed.h (flip_storage_order): Declare.
54 (store_bit_field): Adjust prototype.
55 (extract_bit_field): Likewise.
56 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
57 (emit_group_store): Adjust call to store_bit_field.
58 (copy_blkmode_from_reg): Likewise.
59 (copy_blkmode_to_reg): Likewise.
60 (write_complex_part): Likewise.
61 (read_complex_part): Likewise.
62 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
63 that it isn't true if the target is a register.
64 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
65 and flip the storage order of the value.
66 <BIT_IOR_EXPR>: Flip the storage order of the value.
67 (get_bit_range): Adjust call to get_inner_reference.
68 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
69 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
70 with reverse storage order.
71 (store_expr_with_bounds): Add REVERSE parameter and pass it to
72 recursive calls and call to store_bit_field. Force the value into a
73 register if it is true and then flip the storage order of the value.
74 (store_expr): Add REVERSE parameter and pass it to above.
75 (categorize_ctor_elements_1): Adjust call to
76 initializer_constant_valid_p.
77 (store_constructor_field): Add REVERSE parameter and pass it to
78 recursive calls and call to store_field.
79 (store_constructor): Add REVERSE parameter and pass it to calls to
80 store_constructor_field and store_expr. Set it to true for an
81 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
82 (store_field): Add REVERSE parameter and pass it to recursive calls
83 and calls to store_expr and store_bit_field. Temporarily flip the
84 storage order of the value with record type and integral mode and
85 adjust the shift if it is true.
86 (get_inner_reference): Add PREVERSEP parameter and set it to true
87 upon encoutering a reference with reverse storage order.
88 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
89 (expand_constructor): Adjust call to store_constructor.
90 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
91 of the union type to store_expr in the MEM case and assert that it
92 isn't set in the REG case. Adjust call to store_field.
93 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
94 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
95 get_inner_reference and extract_bit_field. Temporarily flip the
96 storage order of the value with record type and integral mode and
97 adjust the shift if it is true. Flip the storage order of the value
98 at the end if it is true.
99 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
100 get_inner_reference. Do not fetch an inner reference if it is true.
101 * expr.h (store_expr_with_bounds): Ajust prototype.
102 (store_expr): Likewise.
103 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
104 REF_REVERSE_STORAGE_ORDER on the reference according to it.
105 (optimize_bit_field_compare): Deal with reverse storage order.
106 Adjust calls to get_inner_reference and make_bit_field_ref.
107 (decode_field_reference): Add PREVERSEP parameter and adjust call to
109 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
110 to decode_field_reference and make_bit_field_ref.
111 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
112 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
113 (fold_comparison): Adjust call to get_inner_reference.
114 (split_address_to_core_and_offset): Adjust call to
116 * gimple-expr.c (useless_type_conversion_p): Return false for array
117 types with different TYPE_REVERSE_STORAGE_ORDER flag.
118 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
119 REF_REVERSE_STORAGE_ORDER flag.
120 * lto-streamer-out.c (hash_tree): Deal with
121 TYPE_REVERSE_STORAGE_ORDER.
122 * output.h (assemble_real): Adjust prototype.
123 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
124 * stor-layout.c (finish_record_layout): Propagate the
125 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
126 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
127 (TYPE_SATURATING): Adjust.
128 (REF_REVERSE_STORAGE_ORDER): Document.
129 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
130 set it to true upon encoutering a reference with reverse storage
132 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
133 * tree-inline.c (remap_gimple_op_r): Propagate the
134 REF_REVERSE_STORAGE_ORDER flag.
135 (copy_tree_body_r): Likewise.
136 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
138 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
139 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
140 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
141 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
142 REF_REVERSE_STORAGE_ORDER flag.
143 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
144 (gimple_canonical_types_compatible_p): Likewise.
145 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
146 (TYPE_SATURATING): Adjust.
147 (REF_REVERSE_STORAGE_ORDER): New flag.
148 (reverse_storage_order_for_component_p): New inline predicate.
149 (storage_order_barrier_p): Likewise.
150 (get_inner_reference): Adjust prototype.
151 * varasm.c: Include expmed.h.
152 (assemble_variable_contents): Adjust call to output_constant.
153 (assemble_real): Add REVERSE parameter. Flip the storage
154 order of the value if REVERSE is true.
155 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
156 (assemble_constant_contents): Adjust call to output_constant.
157 (output_constant_pool_2): Adjust call to assemble_real.
158 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
159 TYPE_REVERSE_STORAGE_ORDER.
160 (initializer_constant_valid_p): Add REVERSE parameter.
161 (output_constant): Add REVERSE parameter.
162 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
163 <REAL_TYPE>: Adjust call to assemble_real.
164 <COMPLEX_TYPE>: Pass it to recursive calls.
165 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
166 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
167 (struct oc_local_state): Add REVERSE field.
168 (output_constructor_array_range): Adjust calls to output_constant.
169 (output_constructor_regular_field): Likewise.
170 (output_constructor_bitfield): Adjust call to output_constructor.
171 Flip the storage order of the value if REVERSE is true.
172 (output_constructor): Add REVERSE parameter. Set it to true for an
173 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
174 output_constructor_bitfield.
175 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
176 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
177 * builtins.c (get_object_alignment_2): Likewise.
178 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
179 and get_ref_base_and_extent.
180 * dbxout.c (dbxout_expand_expr): Likewise.
181 * dwarf2out.c (add_var_loc_to_decl): Likewise.
182 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
183 (loc_list_from_tree): Likewise.
184 (fortran_common): Likewise.
185 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
186 get_ref_base_and_extent.
187 (get_base_constructor): Likewise.
188 (fold_const_aggregate_ref_1): Likewise.
189 * gimple-laddress.c (pass_laddress::execute): Adjust call to
191 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
192 get_inner_reference and bail out on reverse storage order.
193 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
194 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
195 build_ref_for_offset.
196 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
197 get_ref_base_and_extent.
198 (ipa_polymorphic_call_context): Likewise.
199 (extr_type_from_vtbl_ptr_store): Likewise.
200 (check_stmt_for_type_change): Likewise.
201 (get_dynamic_type): Likewise.
202 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
203 get_ref_base_and_extent.
204 (compute_complex_assign_jump_func): Likewise.
205 (get_ancestor_addr_info): Likewise.
206 (compute_known_type_jump_func): Likewise.
207 (determine_known_aggregate_parts): Likewise.
208 (ipa_get_adjustment_candidate): Likewise.
209 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
211 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
212 (build_ref_for_offset): Adjust prototype.
213 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
215 * tree-affine.c (tree_to_aff_combination): Adjust call to
217 (get_inner_reference_aff): Likewise.
218 * tree-data-ref.c (split_constant_offset_1): Likewise.
219 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
220 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
222 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
223 (dump_access): Print new fields.
224 (create_access): Adjust call to get_ref_base_and_extent and set the
225 REVERSE flag according to the result.
226 (completely_scalarize_record): Set the REVERSE flag.
227 (scalarize_elem): Add REVERSE parameter.
228 (build_access_from_expr_1): Preserve storage order barriers.
229 (build_accesses_from_assign): Likewise.
230 (build_ref_for_offset): Add REVERSE parameter and set the
231 REF_REVERSE_STORAGE_ORDER flag accordingly.
232 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
233 the REF_REVERSE_STORAGE_ORDER flag if there are components.
234 (analyze_access_subtree): Likewise.
235 (create_artificial_child_access): Set the REVERSE flag.
236 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
237 (turn_representatives_into_adjustments): Propagate REVERSE flag.
238 (ipa_sra_check_caller): Adjust call to get_inner_reference.
239 * tree-ssa-alias.c (ao_ref_base): Adjust call to
240 get_ref_base_and_extent.
241 (aliasing_component_refs_p): Likewise.
242 (stmt_kills_ref_p_1): Likewise.
243 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
244 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
245 Return true if reverse storage order.
246 <BIT_FIELD_REF>: Likewise.
247 <COMPONENT_REF>: Likewise.
248 <ARRAY_REF>: Likewise.
249 <ARRAY_RANGE_REF>: Likewise.
250 (split_address_cost): Likewise. Bail out if reverse storage order.
251 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
252 get_inner_reference. Bail out if reverse storage order.
253 (bswap_replace): Adjust call to get_inner_reference.
254 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
255 the REF_REVERSE_STORAGE_ORDER flag.
256 <BIT_FIELD_REF>: Likewise.
257 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
259 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
260 to the REF_REVERSE_STORAGE_ORDER flag.
261 <BIT_FIELD_REF>: Likewise.
262 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
263 (contains_storage_order_barrier_p): New predicate.
264 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
265 Punt on storage order barriers if necessary.
266 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
267 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
268 call to get_ref_base_and_extent.
269 (do_structure_copy): Likewise.
270 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
272 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
274 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
275 * ubsan.c (instrument_bool_enum_load): Likewise.
276 (instrument_object_size): Likewise.
277 * var-tracking.c (track_expr_p): Adjust call to
278 get_ref_base_and_extent
279 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
281 * config/s390/s390.c (s390_expand_atomic): Adjust call to
283 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
285 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
287 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
289 * config/sparc/sparc.opt (mfix-at697f): Add final period.
291 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
293 PR rtl-optimization/67864
294 * common/config/i386/i386-common.c (ix86_option_optimization_table)
295 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
298 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
300 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
303 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
305 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
306 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
308 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
310 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
311 * internal-fn.c: Don't undef it here.
312 * tree-core.h: Likewise.
314 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
316 * builtins.c (fold_builtin_nan): Delete.
317 (fold_builtin_memcmp): Remove case where both arguments are constant.
318 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
319 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
320 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
321 * fold-const-call.c: Include fold-const.h.
322 (host_size_t_cst_p): New function.
323 (build_cmp_result, fold_const_builtin_nan): Likewise.
324 (fold_const_call_1): New function, split out from...
325 (fold_const_call): ...here (for all three interfaces). Handle
326 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
328 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
330 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
331 (fold_builtin_1): Don't call them.
332 * fold-const-call.c: Include tm.h.
333 (fold_const_call_ss): New variant for integer-to-integer folds.
334 (fold_const_call): Call it.
336 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
338 * builtins.c (fold_builtin_classify): Move constant cases to...
339 * fold-const-call.c (fold_const_call_ss): ...here.
341 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
343 * builtins.h (c_getstr): Move to...
344 * fold-const.h (c_getstr): ...here.
345 * builtins.c (c_getstr): Move to...
346 * fold-const.c (c_getstr): ...here.
348 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
350 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
351 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
353 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
355 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
356 the dominance info; free it if we can't.
357 (pass_call_cdce::execute): Don't free the dominance info here.
359 2015-11-06 Jeff Law <jeff@redhat.com>
361 * tree-ssa-threadedge.c (dummy_simplify): Remove.
362 (thread_around_empty_blocks): Remove backedge_seen_p argument.
363 If we thread to a backedge, then return false. Update recursive
364 call to eliminate backedge_seen_p argument.
365 (thread_through_normal_block): Remove backedge_seen_p argument.
366 Remove backedge_seen_p argument from calls to
367 thread_around_empty_blocks. Remove checks on backedge_seen_p.
368 If we thread to a backedge, then return 0.
369 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
370 pass it to thread_through_normal_block or thread_through_empty_blocks.
371 For joiner handling, if we see a backedge, do not try normal
374 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
376 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
377 * graphite-poly.c (new_scop): Initialize original_schedule.
378 (free_scop): Free original_schedule.
379 * graphite-poly.h (struct scop): Add field original_schedule.
380 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
381 (build_poly_scop): Call build_scop_original_schedule.
383 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
385 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
386 (build_pbb_minimal_scattering_polyhedrons): New.
387 (build_scop_scattering): Remove.
388 (build_scop_minimal_scattering): New.
389 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
390 (build_poly_scop): Call build_scop_minimal_scattering.
392 2015-11-06 Jeff Law <jeff@redhat.com>
394 * cfg-flags.def (IGNORE): New edge flag.
395 * tree-vrp.c (identify_jump_threads): Mark and clear edges
396 scheduled for removal with EDGE_IGNORE around call into
397 jump threader. Do no thread across edges with EDGE_IGNORE,
398 but do allow threading across those with EDGE_DFS_BACK.
400 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
402 * doc/md.texi (multi-alternative constraints): Don't document
403 alternatives inherently tied to reload for the user documentation.
405 2015-11-06 Michael Collison <michael.collison@linaro.org
406 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
409 2015-08-01 Michael Collison <michael.collison@linaro.org
410 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
412 * config/arm/arm.md (*arm_smin_cmp): New pattern.
413 (*arm_umin_cmp): Likewise.
415 2015-11-06 Jakub Jelinek <jakub@redhat.com>
417 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
419 * omp-low.c (check_omp_nesting_restrictions): Update for the
420 various new OpenMP 4.5 nesting restrictions, clarified
421 nesting glossary, closely nested region relationship clarified
422 to mean explicit or implicit parallel regions (target/teams),
423 use %</%> or %qs where appropriate.
425 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
426 Sebastian Pop <s.pop@samsung.com>
428 * graphite-scop-detection.c (loop_is_valid_scop): Call
429 optimize_loop_nest_for_speed_p.
431 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
432 Sebastian Pop <s.pop@samsung.com>
434 * graphite-optimize-isl.c (optimize_isl): Call
435 isl_options_set_schedule_maximize_band_depth.
437 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
438 Sebastian Pop <s.pop@samsung.com>
440 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
441 and exit edges should not be a part of irreducible loop.
442 (scop_detection::can_represent_loop_1): Loops should not be
444 (scop_detection::harmful_stmt_in_region): All the basic block
445 should belong to reducible loops.
447 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
449 * config/aarch64/aarch64-simd-builtins.def: Update builtins
450 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
451 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
452 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
453 (aarch64_tbx4v8qi): Rename to...
454 aarch64_tbx4<mode>): ... this.
455 (aarch64_qtbl3<mode>): New pattern.
456 (aarch64_qtbx3<mode>): New pattern.
457 (aarch64_qtbl4<mode>): New pattern.
458 (aarch64_qtbx4<mode>): New pattern.
459 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
460 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
461 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
462 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
463 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
464 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
465 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
466 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
469 2015-11-06 Mike Stump <mikestump@comcast.net>
472 * dwarf2out.c (get_full_len): Return a value based upon the actual
473 precision needed for the value.
474 (add_const_value_attribute): Use a maximal wide-int for
475 CONST_WIDE_INTs, not VOIDmode.
476 (output_die): Don't ever output NULL with printf.
478 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
479 BLKmode nor VOIDmode values.
481 2015-11-06 David Malcolm <dmalcolm@redhat.com>
483 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
485 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
486 * diagnostic-core.h (warning_at_rich_loc): New declaration.
487 (error_at_rich_loc): New declaration.
488 (permerror_at_rich_loc): New declaration.
489 (inform_at_rich_loc): New declaration.
490 * diagnostic-show-locus.c (adjust_line): Delete.
491 (struct point_state): New struct.
492 (class colorizer): New class.
493 (class layout_point): New class.
494 (class layout_range): New class.
495 (struct line_bounds): New.
496 (class layout): New class.
497 (colorizer::colorizer): New ctor.
498 (colorizer::~colorizer): New dtor.
499 (layout::layout): New ctor.
500 (layout::print_source_line): New method.
501 (layout::print_annotation_line): New method.
502 (layout::get_state_at_point): New method.
503 (layout::get_x_bound_for_row): New method.
504 (diagnostic_show_locus): Reimplement in terms of class layout.
505 (diagnostic_print_caret_line): Delete.
506 * diagnostic.c (diagnostic_initialize): Replace
507 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
508 (diagnostic_set_info_translated): Convert param from location_t
509 to rich_location *. Eliminate calls to set_location on the
510 message in favor of storing the rich_location ptr there.
511 (diagnostic_set_info): Convert param from location_t to
513 (diagnostic_build_prefix): Break out array into...
514 (diagnostic_kind_color): New variable.
515 (diagnostic_get_color_for_kind): New function.
516 (diagnostic_report_diagnostic): Colorize the option_text
517 using the color for the severity.
518 (diagnostic_append_note): Update for change in signature of
520 (diagnostic_append_note_at_rich_loc): New function.
521 (emit_diagnostic): Update for change in signature of
524 (inform_at_rich_loc): New function.
525 (inform_n): Update for change in signature of diagnostic_set_info.
527 (warning_at): Likewise.
528 (warning_at_rich_loc): New function.
529 (warning_n): Update for change in signature of diagnostic_set_info.
531 (permerror): Likewise.
532 (permerror_at_rich_loc): New function.
533 (error): Update for change in signature of diagnostic_set_info.
535 (error_at): Likewise.
536 (error_at_rich_loc): New function.
537 (sorry): Update for change in signature of diagnostic_set_info.
538 (fatal_error): Likewise.
539 (internal_error): Likewise.
540 (internal_error_no_backtrace): Likewise.
541 (source_range::debug): New function.
542 * diagnostic.h (struct diagnostic_info): Eliminate field
543 "override_column". Add field "richloc".
544 (struct diagnostic_context): Add field "colorize_source_p".
545 (diagnostic_override_column): Delete.
546 (diagnostic_set_info): Convert param from location_t to
548 (diagnostic_set_info_translated): Likewise.
549 (diagnostic_append_note_at_rich_loc): New function.
550 (diagnostic_num_locations): New function.
551 (diagnostic_expand_location): Get the location from the
553 (diagnostic_print_caret_line): Delete.
554 (diagnostic_get_color_for_kind): New declaration.
555 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
556 (error_cb): Update for change in signature of "error" callback.
557 (fatal_at): Likewise.
558 (warning_at): Likewise.
559 * input.c (linemap_client_expand_location_to_spelling_point): New.
560 * pretty-print.c (text_info::set_range): New method.
561 (text_info::get_location): New method.
562 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
563 (struct text_info): Eliminate "locations" array in favor of
564 "m_richloc", a rich_location *.
565 (textinfo::set_location): Add a "caret_p" param, and reimplement
566 in terms of a call to set_range.
567 (textinfo::get_location): Eliminate inline implementation in favor of
568 an out-of-line reimplementation.
569 (textinfo::set_range): New method.
570 * rtl-error.c (diagnostic_for_asm): Update for change in signature
571 of diagnostic_set_info.
572 * tree-diagnostic.c (default_tree_printer): Update for new
573 "caret_p" param for textinfo::set_location.
574 * tree-pretty-print.c (percent_K_format): Likewise.
576 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
579 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
580 * config/aarch64/aarch64.c
581 (aarch64_can_use_per_function_literal_pools_p): New.
582 (aarch64_use_blocks_for_constant_p): Adjust declaration
583 and use aarch64_can_use_function_literal_pools_p.
584 (aarch64_select_rtx_section): Update.
586 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
588 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
589 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
590 (arm_output_multireg_pop): Likewise.
591 (output_move_double): Likewise.
592 (output_move_quad): Likewise.
593 (output_return_instruction): Likewise.
594 (arm_print_operand): Remove support for %( and %. print modifiers.
595 (arm_output_shift): Make unified asm.
596 (arm_declare_function_name): Likewise.
597 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
598 (ASM_APP_OFF): Adjust.
599 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
600 (ASM_OUTPUT_REG_POP): Likewise.
601 * config/arm/arm.md: Adjust uses of %., %(, %)
602 * config/arm/sync.md: Likewise.
603 * config/arm/thumb2.md: Likewise.
604 * config/arm/ldmstm.md: Regenerate.
605 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
606 * doc/invoke.texi (masm-unified-syntax): Update documentation.
608 2015-11-06 David Malcolm <dmalcolm@redhat.com>
610 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
612 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
614 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
615 add OEP_MATCH_SIDE_EFFECTS.
616 * fold-const.c (operand_equal_p): Update documentation; handle
617 OEP_MATCH_SIDE_EFFECTS.
618 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
619 OEP_MATCH_SIDE_EFFECTS.
621 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
622 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
624 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
625 * config/aarch64/aarch64-protos.h: Declare.
626 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
628 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
629 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation code when
631 * config/aarch64/aarch64.md: Added enum entries.
632 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
633 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common macros for
635 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
636 frsqrts and frsqrte are not emitted.
637 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure frsqrts and
639 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
641 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
645 * ipa-polymorphic-call.c
646 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
647 issue when offset is out of range.
648 (contains_type_p): Fix out of range check, clear dynamic flag.
650 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
652 * config.gcc (e6500): Fix cpu_is_64bit typo.
654 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
656 * tree-sra.c (completely_scalarize): Properly handle negative array
657 indices using offset_int.
659 2015-11-06 Richard Biener <rguenther@suse.de>
661 * alloc-pool.h (object_allocator::allocate): Default-initialize
664 2015-11-06 Richard Biener <rguenther@suse.de>
666 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
667 * lra.c (init_reg_info): Truncate copy_vec instead of
668 re-allocating a new one and leaking the old.
669 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
671 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
672 * postreload-gcse.c (free_mem): Free modify_mem_list and
673 canon_modify_mem_list.
675 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
677 PR tree-optimization/68145
678 * tree-vect-stmts.c (vectorizable_operation): Fix
679 determination for booleans.
681 2015-11-06 Tom de Vries <tom@codesourcery.com>
683 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
684 cond_jump, instead of split after last nondebug insn before cond_jump.
685 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
688 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
691 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
692 subregs from accumulator and make sure it's a register.
694 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
696 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
698 (reduc_uplus_<mode>): Remove.
699 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
700 loongson_extract_lo_<mode>.
701 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
702 reduc_smax_<mode>, reduc_smax_<mode>, use vec
703 loongson_extract_lo_<mode>.
704 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
706 2015-11-06 Richard Biener <rguenther@suse.de>
708 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
710 (vect_stmt_in_region_p): Declare.
711 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
712 (destroy_bb_vec_info): Likewise.
713 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
714 (vect_get_and_check_slp_defs): Likewise.
715 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
716 (vect_slp_bb): Likewise.
717 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
718 in terms of vect_stmt_in_region_p.
719 (vect_pattern_recog): Iterate over the BB region.
720 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
721 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
722 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
723 * config/i386/i386.c: Include gimple-iterator.h.
724 * config/aarch64/aarch64.c: Likewise.
726 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
728 PR rtl-optimization/67753
729 PR rtl-optimization/64164
730 * function.c (assign_parm_setup_block): Avoid allocating a
731 stack slot if we don't have an ABI-reserved one. Emit the
732 copy to target_reg in the conversion seq if the copy from
733 entry_parm is in it too. Don't use the conversion seq to copy
734 a PARALLEL to a REG or a CONCAT.
736 2015-11-06 Richard Biener <rguenther@suse.de>
738 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
741 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
742 Thomas Schwinge <thomas@codesourcery.com>
743 James Norris <jnorris@codesourcery.com>
746 * gimplify.c (gimplify_scan_omp_clauses): Add support for
747 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
748 (gimplify_adjust_omp_clauses): Likewise.
749 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
750 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
751 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
752 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
753 (omp_clause_code_name): Likewise.
754 (walk_tree_1): Handle OMP_CLAUSE_TILE.
755 * tree.h (OMP_TILE_LIST): New macro.
757 2015-11-05 Martin Sebor <msebor@redhat.com>
760 * doc/invoke.texi (-Wplacement-new): Document new option.
762 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
764 PR tree-optimization/65963
765 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
766 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
768 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
770 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
771 (noce_convert_multiple_sets): Likewise.
772 (noce_process_if_block): Call them.
774 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
776 * gimple-fold.c: Include omp-low.h.
777 (fold_internal_goacc_dim): New.
778 (gimple_fold_call): Call it.
780 2015-11-05 Jakub Jelinek <jakub@redhat.com>
781 Ilya Verbin <ilya.verbin@intel.com>
784 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
785 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
786 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
787 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
788 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
789 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
790 (struct cgraph_simd_clone_arg): Adjust comment.
791 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
792 to GOMP_target_ext. Add num_teams and thread_limit arguments.
793 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
794 to GOMP_target_data_ext.
795 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
796 to GOMP_target_update_ext.
797 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
798 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
799 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
800 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
801 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
802 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
803 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
804 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
805 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
806 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
807 * tree-core.h (enum omp_clause_schedule_kind): Add
808 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
809 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
810 OMP_CLAUSE_SCHEDULE_LAST value.
811 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
812 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
813 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
814 OMP_FOR_CHECK. Remove comment.
815 * tree-pretty-print.c (dump_omp_clause): Handle
816 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
817 Simplify. Print schedule clause modifiers.
818 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
819 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
821 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
822 (omp_default_clause): Tweak for
823 private/firstprivate/is_device_ptr variables on target
824 construct and use_device_ptr on target data.
825 (omp_check_private): Likewise.
826 (omp_notice_variable): For references check whether what it refers
827 to has mappable type, rather than the reference itself.
828 (omp_is_private): Diagnose linear iteration variables on non-simd
830 (omp_no_lastprivate): Return true only for Fortran.
831 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
832 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
833 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
834 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
835 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
836 lastprivate and linear when combined with distribute. Gimplify
837 variable low-bound for array reduction. Look through
838 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
840 (gimplify_adjust_omp_clauses_1): For implicit references to
841 variables with reference type and when not ref to scalar or
842 ref to pointer, map what they refer to using tofrom and
843 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
844 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
845 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
846 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
847 Diagnose the same var on both firstprivate and lastprivate on
848 distribute construct.
849 (gimplify_omp_for): Fix up handling of predetermined
850 lastprivate or linear iter vars when combined with distribute.
851 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
853 (gimplify_omp_workshare): Call optimize_target_teams.
854 * omp-low.c (struct omp_region): Add sched_modifiers field.
855 (struct omp_for_data): Likewise.
856 (omp_any_child_fn_dumped): New variable.
857 (extract_omp_for_data): Fill in sched_modifiers, and mask out
858 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
860 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
861 bits of OMP_CLAUSE_SCHED_KIND.
862 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
863 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
864 for array section reductions.
865 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
866 for distribute parallel for, if there are lastprivate clauses on the
868 (lower_rec_input_clauses): Handle non-zero low-bound on array
870 (lower_reduction_clauses): Likewise.
871 (lower_send_clauses): Look through POINTER_PLUS_EXPR
872 for array section reductions.
873 (expand_parallel_call): Use nonmonotonic entrypoints for
874 nonmonotonic: dynamic/guided.
875 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
876 child_fn if current_function_decl has assembler name set, but child_fn
877 does not. Dump the header and IL of the child function when not in SSA
879 (expand_omp_target): Likewise. Pass num_teams and thread_limit
880 arguments to BUILT_IN_GOMP_TARGET.
881 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
882 Initialize the extra _looptemp_ clause to fd->loop.n2.
883 (expand_omp_for): Use nonmonotonic entrypoints for
884 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
885 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
886 again if we have dumped any child functions.
887 (lower_omp_for_lastprivate): Determine the right count variable
888 for distribute simd, or distribute parallel for{, simd}.
889 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
890 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
892 (simd_clone_clauses_extract): Handle variable step
893 for references and arguments passed by reference.
894 (simd_clone_mangle): Mangle ref/uval/val variable steps.
895 (simd_clone_adjust_argument_types): Handle
896 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
897 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
898 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
899 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
900 (simd_clone_linear_addend): New function.
901 (simd_clone_adjust): Handle variable step like similarly
902 to constant step, use simd_clone_linear_addend to determine
903 the actual step at runtime.
905 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
907 * target.def (goacc.dim_limit): New hook.
908 * targhooks.h (default_goacc_dim_limit): Declare.
909 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
910 * doc/tm.texi: Rebuilt.
911 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
912 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
913 (default_goacc_dim_limit): New.
914 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
915 (nvptx_goacc_dim_limit) New.
916 (TARGET_GOACC_DIM_LIMIT): Override.
917 * tree-vrp.c: Include omp-low.h, target.h.
918 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
921 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
923 * tree-vect-generic.c (do_compare): Use -1 for true
926 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
928 * config/aarch64/aarch64.c
929 (aarch64_can_use_per_function_literal_pools_p): New.
930 (aarch64_use_blocks_for_constant_p): Adjust declaration
931 and use aarch64_can_use_function_literal_pools_p.
932 (aarch64_select_rtx_section): Update.
934 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
936 * targhooks.c (default_get_mask_mode): Use BLKmode in
937 case target doesn't support required vector mode.
938 * stor-layout.c (layout_type); Check for BLKmode.
940 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
941 Sebastian Pop <s.pop@samsung.com>
943 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
944 Remove use of parameter_rename_map.
946 (copy_internal_parameters): Remove.
947 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
948 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
949 (free_sese_info): Do not free parameter_rename_map.
950 (set_rename): Do not use parameter_rename_map.
951 (rename_uses): Update call to set_rename.
952 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
953 * sese.h (parameter_rename_map_t): Remove.
954 (struct sese_info_t): Remove field parameter_rename_map.
956 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
957 Sebastian Pop <s.pop@samsung.com>
959 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
960 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
961 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
963 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
964 (isl_id_for_pbb): Use a buffer of size 10.
965 (isl_id_for_ssa_name): Same.
966 * sese.c (set_rename): Add more dumps.
968 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
970 * omp-low.c (struct omp_context): Remove reduction_map field.
971 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
972 (new_omp_context, delete_omp_context, scan_omp_target): Remove
973 reduction_map handling.
974 (lower_omp_target): Remove obsolete openacc reduction handling.
976 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
978 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
980 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
981 Cesar Philippidis <cesar@codesourcery.com>
983 * config/nvptx/nvptx.c: Include gimple headers.
984 (worker_red_size, worker_red_align, worker_red_name,
985 worker_red_sym): New.
986 (nvptx_option_override): Initialize worker reduction buffer.
987 (nvptx_file_end): Write out worker reduction buffer var.
988 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
989 nvptx_expand_cmp_swap): New builtin expanders.
990 (enum nvptx_builtins): New.
991 (nvptx_builtin_decls): New.
992 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
993 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
994 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
995 nvptx_lockless_update): New helpers.
996 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
997 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
998 (nvptx_goacc_reduction): New.
999 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1000 TARGET_BUILTIN_DECL): Override.
1001 (TARGET_GOACC_REDUCTION): Override.
1003 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1004 Cesar Philippidis <cesar@codesourcery.com>
1006 * internal-fn.def (GOACC_REDUCTION): New.
1007 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1008 * internal-fn.c (expand_GOACC_REDUCTION): New.
1009 * target.def (goacc.reduction): New OpenACC hook.
1010 * targhooks.h (default_goacc_reduction): Declare.
1011 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1012 * doc/tm.texi: Rebuilt.
1013 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1014 scan_sharing_clauses): Remove oacc reduction handling here.
1015 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1016 (oacc_lower_reduction_var_helper): Delete.
1017 (lower_oacc_reductions): New.
1018 (lower_reduction_clauses): Don't handle OpenACC reductions here.
1019 (lower_oacc_head_tail): Call lower_oacc_reductions.
1020 (oacc_gimple_assign, oacc_init_reduction_array,
1021 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1022 oacc_process_reduction_data): Delete.
1023 (lower_omp_target): Remove old OpenACC reduction handling. Insert
1024 dummy OpenACC gang reduction for reductions at outer level.
1025 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1026 (default_goacc_reduction): New.
1027 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1029 2015-11-04 Martin Liska <mliska@suse.cz>
1031 * cgraphunit.c (cgraph_node::expand_thunk): Call
1032 allocate_struct_function before init_function_start.
1033 (cgraph_node::expand): Use push_cfun and pop_cfun.
1034 * config/i386/i386.c (ix86_code_end): Call
1035 allocate_struct_function before init_function_start.
1036 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1037 * function.c (init_function_start): Move preamble to all
1039 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1040 (execute_one_pass): Handle newly added TODO_discard_function.
1041 (execute_pass_list_1): Terminate if cfun equals to NULL.
1042 (execute_pass_list): Do not push and pop cfun, expect that
1044 * tree-pass.h (TODO_discard_function): Define.
1046 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1048 * cfganal.c (inverted_post_order_compute): Remove conditional
1049 compilation, use flag_checking.
1050 * config.in: Regenerate.
1051 * configure: Regenerate.
1052 * configure.ac: Remove ENABLE_CHECKING.
1053 * genconditions.c: Do not #undef ENABLE_CHECKING.
1054 * sese.h (bb_in_region): Comment out broken check.
1055 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1056 conditional compilation, use flag_checking.
1058 2015-11-04 Tom de Vries <tom@codesourcery.com>
1060 PR tree-optimization/67742
1061 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1063 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1064 (create_variable_info_for_1): Add and handle handle_param parameter.
1065 Add restrict handling.
1066 (create_variable_info_for): Call create_variable_info_for_1 with extra
1068 (make_param_constraints): Drop restrict_name parameter. Ignore
1069 vi->only_restrict_pointers.
1070 (intra_create_variable_infos): Call create_variable_info_for_1 with
1071 extra arg. Remove restrict handling. Call make_param_constraints with
1074 2015-11-04 Tom de Vries <tom@codesourcery.com>
1076 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1079 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1081 * config/arm/coff.h: Remove.
1083 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
1085 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1086 check for aggregate types and beef up comment for mode check.
1088 2015-11-03 Richard Biener <rguenther@suse.de>
1090 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1091 data references here.
1092 * tree-vect-loop.c: Include cgraph.h.
1093 (vect_analyze_loop_2): Collect data references here.
1094 * tree-vect-slp.c (find_bb_location): Inline ...
1095 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
1096 Factor in vect_slp_transform_bb.
1097 (vect_slp_transform_bb): Removed.
1098 (vect_slp_analyze_bb_1): Collect data references here.
1099 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1101 * tree-vectorizer.h (vect_slp_bb): Declare.
1102 (vect_slp_analyze_bb): Remove.
1103 (vect_slp_transform_bb): Remove.
1104 (find_bb_location): Remove.
1105 (vect_analyze_data_refs): Remove stmt count reference parameter.
1107 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
1109 * multiple_target.c (create_dispatcher_calls): Add target check
1111 (create_target_clone): Change assembler name for versioned declarations.
1113 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1114 Chung-Lin Tang <cltang@codesourcery.com>
1116 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1117 * omp-low.c (check_omp_nesting_restrictions): Allow
1118 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1121 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
1123 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1124 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1125 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1127 (vmulxq_f32): Likewise.
1129 (vmulxq_f64): Rewrite to call fmulx builtin.
1130 (vmulxs_f32): Likewise.
1131 (vmulxd_f64): Likewise.
1132 (vmulx_lane_f32): Remove.
1133 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1135 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
1137 * config/aarch64/aarch64.md (*movhf_aarch64): Use
1138 aarch64_reg_or_fp_zero for second operand.
1140 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
1142 * gimple-expr.c: Include hash-set.h and rtl.h.
1143 (mark_addressable_queue): New var.
1144 (mark_addressable): Factor actual marking into...
1145 (mark_addressable_1): ... this. Queue it up during expand.
1146 (mark_addressable_2): New.
1147 (flush_mark_addressable_queue): New.
1148 * gimple-expr.h (flush_mark_addressable_queue): Declare.
1149 * cfgexpand.c: Include gimple-expr.h.
1150 (pass_expand::execute): Flush mark_addressable queue.
1152 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
1154 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1155 bb_no_side_effects_p tests...
1156 (tree_ssa_ifcombine_bb): ... here.
1158 PR tree-optimization/68083
1159 * tree-ssa-ifcombine.c: Include tree-ssa.h.
1160 (bb_no_side_effects_p): Test for undefined uses too.
1161 * tree-ssa.c (gimple_uses_undefined_value_p): New.
1162 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1164 2015-11-02 Jeff Law <jeff@redhat.com>
1166 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1167 cases where the loop latch edge is in the middle of an FSM path.
1169 2015-11-03 Tom de Vries <tom@codesourcery.com>
1171 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1172 (make_param_constraints): ... this. Add and handle restrict_name
1173 parameter. Handle is_full_var case.
1174 (intra_create_variable_infos): Use make_param_constraints.
1176 2015-11-03 Tom de Vries <tom@codesourcery.com>
1178 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1179 make_copy_constraint call with make_constraint_from call.
1181 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
1183 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1186 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
1188 * builtins.h (fold_fma): Move to fold-const-call.h.
1189 * builtins.c: Include fold-const-call.h.
1190 (mathfn_built_in_2): New function, split out from...
1191 (mathfn_built_in_1): ...here.
1192 (do_real_to_int_conversion, fold_const_builtin_pow)
1193 (fold_const_builtin_logb, fold_const_builtin_significand)
1194 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1195 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1196 (fold_builtin_sincos): Use fold_const_call to handle constants.
1197 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1198 checks for ERROR_MARK. Use fold_const_call to handle constant
1199 folds for math functions.
1200 (fold_fma): Move to fold-const-call.c.
1201 * fold-const.c: Include fold-const-call.h.
1202 * Makefile.in (OBJS): Add fold-const-call.o.
1203 (PLUGIN_HEADERS): Add fold-const-call.h.
1204 * realmpfr.h (real_from_mpfr): Allow the format to be specified
1206 * realmpfr.c (real_from_mpfr): Likewise.
1207 * fold-const-call.h, fold-const-call.c: New files.
1209 2015-11-02 Julian Brown <julian@codesourcery.com>
1211 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1212 brackets and semicolon.
1214 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
1217 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1219 PR tree-optimization/65963
1220 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1221 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1223 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
1226 * fold-const.c: Include "md5.h".
1228 2015-11-01 Jeff Law <jeff@redhat.com>
1230 * vmsdbgout.c: Revert unused header file reduction patch.
1232 * config/mcore/mcore.c: Include regs.h.
1234 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1236 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1238 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1240 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1241 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1242 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1244 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
1246 * ggc-common.c: Restore needed header for checking=release.
1248 2015-10-31 Tom de Vries <tom@codesourcery.com>
1250 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1252 2015-10-31 Tom de Vries <tom@codesourcery.com>
1254 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1255 existing varinfo for arguments.
1257 2015-10-31 Tom de Vries <tom@codesourcery.com>
1259 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1260 create_function_info_for. Dump constraints generated during
1261 create_function_info_for. Move intra_create_variable_infos call and
1262 function-return-values-escape bit to ...
1263 (create_function_info_for): ... here, and merge
1264 intra_create_variable_infos call with argument loop. Add and handle
1265 nonlocal_p parameter.
1267 2015-10-31 Tom de Vries <tom@codesourcery.com>
1269 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1270 updating is alap, and seperated from preceding code. Make sure
1271 insert_vi_for_tree is seperated from surrounding code.
1273 2015-10-31 Tom de Vries <tom@codesourcery.com>
1275 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1277 2015-10-30 Jeff Law <jeff@redhat.com>
1278 Nathan Sidwell <nathan@acm.org>
1280 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1282 (MOVE_MAX): Set to 8.
1284 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
1286 * cgraph.c: Include context.h for offloading.
1287 * varpool.c: Include context.h and omp-low.h.
1289 2015-10-30 Anatoly Sokolov <aesok@post.ru>
1291 * rtl.h (contains_symbol_ref_p): Declare.
1292 (SYMBOL_REF_P): Define.
1293 * rtlanal.c (contains_symbol_ref_p: New function.
1294 * lra-constraints.c (contains_symbol_ref_p): Remove.
1295 * var-tracking.c (contains_symbol_ref): Remove.
1296 (track_expr_p): Use contains_symbol_ref_p instead of
1297 contains_symbol_ref.
1299 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1301 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1302 * fold-const.c (get_array_ctor_element_at_index): New.
1303 (fold): Remove binary-search through CONSTRUCTOR, call previous.
1305 * fold-const.h (get_array_ctor_element_at_index): New.
1307 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1309 * Makefile.in (OBJS): Add multiple_target.o.
1310 * attrib.c (make_attribute): Moved from config/i386/i386.c
1311 * config/i386/i386.c (make_attribute): Deleted.
1312 * multiple_target.c (create_dispatcher_calls): New.
1313 (get_attr_len): Ditto.
1314 (get_attr_str): Ditto.
1315 (separate_attrs): Ditto.
1316 (is_valid_asm_symbol): Ditto.
1317 (create_new_asm_name): Ditto.
1318 (create_target_clone): Ditto.
1319 (expand_target_clones): Ditto.
1320 (ipa_target_clone): Ditto.
1321 (ipa_dispatcher_calls): Ditto.
1322 * passes.def (pass_target_clone): Two new ipa passes.
1323 * tree-pass.h (make_pass_target_clone): Ditto.
1324 * doc/extend.texi (target_clones): New attribute description.
1326 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
1328 PR rtl-optimization/68106
1329 * lra-remat.c (input_regno_present_p): Process hard regs
1330 explicitly present in machine description insns.
1331 (call_used_input_regno_present_p): Ditto.
1332 (calculate_gen_cands): Ditto.
1335 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
1337 * config/arm/neon-testgen.ml: Fix comment typo.
1339 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1341 * rtlanal.c (reg_set_p): Expand function comment.
1343 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
1345 * alias.c: Remove unused headers.
1347 * attribs.c: Likewise.
1348 * auto-inc-dec.c: Likewise.
1349 * auto-profile.c: Likewise.
1350 * bb-reorder.c: Likewise.
1351 * bitmap.c: Likewise.
1352 * bt-load.c: Likewise.
1353 * builtins.c: Likewise.
1354 * caller-save.c: Likewise.
1355 * calls.c: Likewise.
1358 * cfganal.c: Likewise.
1359 * cfgbuild.c: Likewise.
1360 * cfgcleanup.c: Likewise.
1361 * cfgexpand.c: Likewise.
1362 * cfghooks.c: Likewise.
1363 * cfgloop.c: Likewise.
1364 * cfgloopanal.c: Likewise.
1365 * cfgloopmanip.c: Likewise.
1366 * cfgrtl.c: Likewise.
1367 * cgraph.c: Likewise.
1368 * cgraphbuild.c: Likewise.
1369 * cgraphclones.c: Likewise.
1370 * cgraphunit.c: Likewise.
1371 * cilk-common.c: Likewise.
1372 * combine-stack-adj.c: Likewise.
1373 * combine.c: Likewise.
1374 * compare-elim.c: Likewise.
1375 * convert.c: Likewise.
1376 * coverage.c: Likewise.
1377 * cppbuiltin.c: Likewise.
1378 * cprop.c: Likewise.
1380 * cselib.c: Likewise.
1381 * data-streamer-in.c: Likewise.
1382 * data-streamer-out.c: Likewise.
1383 * data-streamer.c: Likewise.
1384 * dbxout.c: Likewise.
1387 * debug.c: Likewise.
1388 * df-core.c: Likewise.
1389 * df-problems.c: Likewise.
1390 * df-scan.c: Likewise.
1392 * dojump.c: Likewise.
1393 * dominance.c: Likewise.
1394 * domwalk.c: Likewise.
1395 * double-int.c: Likewise.
1397 * dumpfile.c: Likewise.
1398 * dwarf2asm.c: Likewise.
1399 * dwarf2cfi.c: Likewise.
1400 * dwarf2out.c: Likewise.
1401 * emit-rtl.c: Likewise.
1402 * except.c: Likewise.
1403 * explow.c: Likewise.
1404 * expmed.c: Likewise.
1406 * final.c: Likewise.
1407 * fixed-value.c: Likewise.
1408 * fold-const.c: Likewise.
1409 * function.c: Likewise.
1410 * fwprop.c: Likewise.
1412 * generic-match-head.c: Likewise.
1413 * ggc-common.c: Likewise.
1414 * gimple-builder.c: Likewise.
1415 * gimple-expr.c: Likewise.
1416 * gimple-fold.c: Likewise.
1417 * gimple-iterator.c: Likewise.
1418 * gimple-low.c: Likewise.
1419 * gimple-match-head.c: Likewise.
1420 * gimple-pretty-print.c: Likewise.
1421 * gimple-ssa-isolate-paths.c: Likewise.
1422 * gimple-ssa-strength-reduction.c: Likewise.
1423 * gimple-streamer-in.c: Likewise.
1424 * gimple-streamer-out.c: Likewise.
1425 * gimple-walk.c: Likewise.
1426 * gimple.c: Likewise.
1427 * gimplify-me.c: Likewise.
1428 * gimplify.c: Likewise.
1429 * godump.c: Likewise.
1430 * graph.c: Likewise.
1431 * graphds.c: Likewise.
1432 * haifa-sched.c: Likewise.
1433 * hw-doloop.c: Likewise.
1434 * ifcvt.c: Likewise.
1435 * init-regs.c: Likewise.
1436 * internal-fn.c: Likewise.
1437 * ipa-chkp.c: Likewise.
1438 * ipa-comdats.c: Likewise.
1439 * ipa-cp.c: Likewise.
1440 * ipa-devirt.c: Likewise.
1441 * ipa-icf-gimple.c: Likewise.
1442 * ipa-icf.c: Likewise.
1443 * ipa-inline-analysis.c: Likewise.
1444 * ipa-inline-transform.c: Likewise.
1445 * ipa-inline.c: Likewise.
1446 * ipa-polymorphic-call.c: Likewise.
1447 * ipa-profile.c: Likewise.
1448 * ipa-prop.c: Likewise.
1449 * ipa-pure-const.c: Likewise.
1450 * ipa-ref.c: Likewise.
1451 * ipa-reference.c: Likewise.
1452 * ipa-split.c: Likewise.
1453 * ipa-utils.c: Likewise.
1454 * ipa-visibility.c: Likewise.
1456 * ira-build.c: Likewise.
1457 * ira-color.c: Likewise.
1458 * ira-conflicts.c: Likewise.
1459 * ira-costs.c: Likewise.
1460 * ira-emit.c: Likewise.
1461 * ira-lives.c: Likewise.
1464 * langhooks.c: Likewise.
1466 * lists.c: Likewise.
1467 * loop-doloop.c: Likewise.
1468 * loop-init.c: Likewise.
1469 * loop-invariant.c: Likewise.
1470 * loop-iv.c: Likewise.
1471 * loop-unroll.c: Likewise.
1472 * lower-subreg.c: Likewise.
1473 * lra-assigns.c: Likewise.
1474 * lra-coalesce.c: Likewise.
1475 * lra-constraints.c: Likewise.
1476 * lra-eliminations.c: Likewise.
1477 * lra-lives.c: Likewise.
1478 * lra-remat.c: Likewise.
1479 * lra-spills.c: Likewise.
1481 * lto-cgraph.c: Likewise.
1482 * lto-compress.c: Likewise.
1483 * lto-opts.c: Likewise.
1484 * lto-section-in.c: Likewise.
1485 * lto-section-out.c: Likewise.
1486 * lto-streamer-in.c: Likewise.
1487 * lto-streamer-out.c: Likewise.
1488 * lto-streamer.c: Likewise.
1490 * mode-switching.c: Likewise.
1491 * modulo-sched.c: Likewise.
1492 * optabs.c: Likewise.
1493 * opts-global.c: Likewise.
1494 * passes.c: Likewise.
1495 * plugin.c: Likewise.
1496 * postreload-gcse.c: Likewise.
1497 * postreload.c: Likewise.
1498 * predict.c: Likewise.
1499 * print-tree.c: Likewise.
1500 * profile.c: Likewise.
1502 * realmpfr.c: Likewise.
1503 * recog.c: Likewise.
1505 * reg-stack.c: Likewise.
1506 * regcprop.c: Likewise.
1507 * reginfo.c: Likewise.
1508 * regrename.c: Likewise.
1509 * regstat.c: Likewise.
1510 * reload.c: Likewise.
1511 * reload1.c: Likewise.
1512 * reorg.c: Likewise.
1513 * resource.c: Likewise.
1514 * rtl-chkp.c: Likewise.
1515 * rtl-error.c: Likewise.
1516 * rtlanal.c: Likewise.
1517 * rtlhooks.c: Likewise.
1518 * sanopt.c: Likewise.
1519 * sched-deps.c: Likewise.
1520 * sched-ebb.c: Likewise.
1521 * sched-rgn.c: Likewise.
1522 * sdbout.c: Likewise.
1523 * sel-sched-dump.c: Likewise.
1524 * sel-sched-ir.c: Likewise.
1525 * sel-sched.c: Likewise.
1527 * shrink-wrap.c: Likewise.
1528 * simplify-rtx.c: Likewise.
1529 * stack-ptr-mod.c: Likewise.
1530 * statistics.c: Likewise.
1532 * stor-layout.c: Likewise.
1533 * store-motion.c: Likewise.
1534 * stringpool.c: Likewise.
1535 * symtab.c: Likewise.
1536 * target-globals.c: Likewise.
1537 * targhooks.c: Likewise.
1538 * toplev.c: Likewise.
1539 * tracer.c: Likewise.
1540 * trans-mem.c: Likewise.
1541 * tree-affine.c: Likewise.
1542 * tree-call-cdce.c: Likewise.
1543 * tree-cfg.c: Likewise.
1544 * tree-cfgcleanup.c: Likewise.
1545 * tree-chkp-opt.c: Likewise.
1546 * tree-chkp.c: Likewise.
1547 * tree-chrec.c: Likewise.
1548 * tree-complex.c: Likewise.
1549 * tree-data-ref.c: Likewise.
1550 * tree-dfa.c: Likewise.
1551 * tree-diagnostic.c: Likewise.
1552 * tree-dump.c: Likewise.
1553 * tree-eh.c: Likewise.
1554 * tree-emutls.c: Likewise.
1555 * tree-if-conv.c: Likewise.
1556 * tree-inline.c: Likewise.
1557 * tree-into-ssa.c: Likewise.
1558 * tree-iterator.c: Likewise.
1559 * tree-loop-distribution.c: Likewise.
1560 * tree-nested.c: Likewise.
1561 * tree-nrv.c: Likewise.
1562 * tree-object-size.c: Likewise.
1563 * tree-outof-ssa.c: Likewise.
1564 * tree-parloops.c: Likewise.
1565 * tree-phinodes.c: Likewise.
1566 * tree-predcom.c: Likewise.
1567 * tree-pretty-print.c: Likewise.
1568 * tree-profile.c: Likewise.
1569 * tree-scalar-evolution.c: Likewise.
1570 * tree-sra.c: Likewise.
1571 * tree-ssa-address.c: Likewise.
1572 * tree-ssa-alias.c: Likewise.
1573 * tree-ssa-ccp.c: Likewise.
1574 * tree-ssa-coalesce.c: Likewise.
1575 * tree-ssa-copy.c: Likewise.
1576 * tree-ssa-dce.c: Likewise.
1577 * tree-ssa-dse.c: Likewise.
1578 * tree-ssa-forwprop.c: Likewise.
1579 * tree-ssa-ifcombine.c: Likewise.
1580 * tree-ssa-live.c: Likewise.
1581 * tree-ssa-loop-ch.c: Likewise.
1582 * tree-ssa-loop-im.c: Likewise.
1583 * tree-ssa-loop-ivcanon.c: Likewise.
1584 * tree-ssa-loop-ivopts.c: Likewise.
1585 * tree-ssa-loop-manip.c: Likewise.
1586 * tree-ssa-loop-niter.c: Likewise.
1587 * tree-ssa-loop-prefetch.c: Likewise.
1588 * tree-ssa-loop-unswitch.c: Likewise.
1589 * tree-ssa-loop.c: Likewise.
1590 * tree-ssa-math-opts.c: Likewise.
1591 * tree-ssa-operands.c: Likewise.
1592 * tree-ssa-phiopt.c: Likewise.
1593 * tree-ssa-phiprop.c: Likewise.
1594 * tree-ssa-pre.c: Likewise.
1595 * tree-ssa-propagate.c: Likewise.
1596 * tree-ssa-reassoc.c: Likewise.
1597 * tree-ssa-scopedtables.c: Likewise.
1598 * tree-ssa-sink.c: Likewise.
1599 * tree-ssa-strlen.c: Likewise.
1600 * tree-ssa-structalias.c: Likewise.
1601 * tree-ssa-tail-merge.c: Likewise.
1602 * tree-ssa-ter.c: Likewise.
1603 * tree-ssa-threadupdate.c: Likewise.
1604 * tree-ssa-uncprop.c: Likewise.
1605 * tree-ssa-uninit.c: Likewise.
1606 * tree-ssa.c: Likewise.
1607 * tree-ssanames.c: Likewise.
1608 * tree-stdarg.c: Likewise.
1609 * tree-streamer-in.c: Likewise.
1610 * tree-streamer-out.c: Likewise.
1611 * tree-streamer.c: Likewise.
1612 * tree-switch-conversion.c: Likewise.
1613 * tree-tailcall.c: Likewise.
1614 * tree-vect-data-refs.c: Likewise.
1615 * tree-vect-generic.c: Likewise.
1616 * tree-vect-loop-manip.c: Likewise.
1617 * tree-vect-loop.c: Likewise.
1618 * tree-vect-patterns.c: Likewise.
1619 * tree-vect-slp.c: Likewise.
1620 * tree-vect-stmts.c: Likewise.
1621 * tree-vectorizer.c: Likewise.
1622 * tree-vrp.c: Likewise.
1625 * ubsan.c: Likewise.
1626 * value-prof.c: Likewise.
1627 * var-tracking.c: Likewise.
1628 * varasm.c: Likewise.
1629 * varpool.c: Likewise.
1630 * vmsdbgout.c: Likewise.
1631 * vtable-verify.c: Likewise.
1633 * wide-int-print.cc: Likewise.
1634 * wide-int.cc: Likewise.
1635 * xcoffout.c: Likewise.
1637 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
1639 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
1640 between pass numbering and execution order.
1642 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1644 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
1645 check for dependencies.
1647 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1649 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
1652 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1654 * real.h (format_helper): New.
1655 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
1656 (real_from_target, real_nan, real_2expN, real_value_truncate)
1657 (significand_size, real_from_string2, exact_real_inverse)
1658 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
1659 (real_round, real_isinteger, real_from_integer): Replace
1660 machine_mode arguments with format_helper arguments.
1661 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
1662 (real_from_integer, real_nan, real_2expN, real_convert)
1663 (real_value_truncate, exact_real_truncate, real_to_target)
1664 (real_from_target, significand_size, real_powi, real_trunc)
1665 (real_floor, real_ceil, real_round, real_isinteger): Replace
1666 machine_mode arguments with format_helper arguments.
1667 (real_to_target_fmt, real_from_target_fmt): Delete.
1668 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
1669 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
1670 argument with real_format.
1671 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
1673 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1675 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
1676 (fixed_to_decimal, fixed_convert_from_real)
1677 (real_convert_from_fixed): Fix mode arguments to real_2expN.
1679 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1681 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
1682 SCALAR_FLOAT_MODE_P.
1684 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1686 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
1687 (completely_scalarize): Comment zero-length arrays.
1688 (get_access_replacement): Correct comment re. precondition.
1690 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1692 * config/i386/i386.c (get_builtin_code_for_version): Set priority
1693 for PROCESSOR_ZNVER1.
1694 (enum processor_model): Add M_AMDFAM17H_znver1.
1695 (struct arch_names_table): Likewise.
1696 * doc/extend.texi: ADD znver1.
1698 2015-10-30 Richard Biener <rguenther@suse.de>
1700 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
1701 fold () on single RHSs. Allow CONSTRUCTORS with trailing
1702 zeros to be folded to VECTOR_CSTs.
1703 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
1704 * fold-const.c (fold): Use build_vector_from_ctor.
1706 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
1708 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
1709 "mov %0.h[0], %1.h[0] to "neon_move".
1710 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
1711 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
1713 (*cmovsi_insn_uxtw): Likewise.
1715 2015-10-30 Tom de Vries <tom@codesourcery.com>
1717 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
1718 unsigned, and initialize, and use initial value instead of hardcoded
1719 constant. Add generic constraints dumping section. Don't dump global
1720 initializers constraints dumping section if empty. Don't update
1721 variable from if unused.
1723 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1725 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
1726 flag_checking and/or CHECKING_P to eliminate conditional compilation
1728 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
1729 * config/bfin/bfin.c (hwloop_optimize): Likewise.
1730 * config/i386/i386.c (ix86_print_operand_address): Likewise.
1731 (output_387_binary_op): Likewise.
1732 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
1733 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
1734 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
1736 * config/rs6000/rs6000.h: Likewise.
1737 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1739 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
1741 * config/sh/sh.opt (mfdpic): Add missing period.
1743 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1745 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1746 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
1747 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1748 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
1749 mcore_base_register_rtx_p, mcore_legitimate_index_p,
1750 mcore_legitimate_address_p): New functions.
1751 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1753 2015-10-29 Jeff Law <law@redhat.com>
1755 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
1757 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
1758 * tree-ssa-threadedge.c
1759 (record_temporary_equivalences_from_stmts_at_dest): Remove
1760 backedge_seen argument and associated code which invalidated
1761 equivalences based on the value of that argument.
1762 (thread_through_normal_block): Corresponding changes.
1764 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
1766 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
1767 function earlier in the file.
1768 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
1769 df_regs_ever_live_p.
1771 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
1773 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
1776 2015-10-29 Richard Henderson <rth@redhat.com>
1780 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1781 sse check to the exact conditions of PR 67609.
1783 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1785 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
1786 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
1787 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
1788 of the traditional names that TFmode uses for handling IEEE
1789 extended double. If -mfloat128, add KFmode functions for all of
1790 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
1791 make TFmode use the same emulation functions as KFmode.
1792 (init_float128_ibm): Likewise.
1793 (init_float128_ieee): Likewise.
1794 (rs6000_generate_compare): For IEEE 128-bit floating point
1795 comparisons, call the unordered comparison function instead of the
1796 ordered comparison function.
1797 (rs6000_expand_float128_convert): Deal with operands that are
1798 memory operands. Restructure the code to use a switch statement on
1799 the mode. Add support for TFmode defaulting to either IBM extended
1800 double or IEEE 128-bit floating point. If the underlying types are
1801 the same, use a move instead of a conversion function.
1802 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
1803 use for IEEE 128-bit floating point constants with -mfloat128.
1804 (rs6000_c_mode_for_suffix): Likewise.
1805 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
1806 128-bit floating point with IBM extended double floating point.
1807 (rs6000_invalid_binary_op): Likewise.
1808 (rs6000_gen_le_vsx_permute): On little endian systems generate a
1809 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
1810 types that can go in vector registers.
1811 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
1812 point types that can go in vector registers on little endian
1814 (mark_swaps_for_removal): Likewise.
1815 (rs6000_analyze_swaps): Likewise.
1816 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
1818 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
1819 rework IEEE 128-bit floating point insns to deal with TFmode being
1820 either IBM extended double or IEEE 128-bit floating point.
1822 (IBM128): Update iterator to add condition that the mode is IBM
1824 (IEEE128): New iterator for IEEE 128-bit floating point.
1825 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
1826 (FLOAT128): Likewise.
1827 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
1829 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
1830 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
1831 instead of hard coding TFmode or KFmode.
1832 (negtf2_internal): Likewise.
1833 (neg<mode>2_internal): Likewise.
1834 (abs<mode>2): Likewise.
1835 (abstf2_internal): Likewise.
1836 (abs<mode>2_internal): Likewise.
1837 (ieee_128bit_neg<mode>2): Likewise.
1838 (ieee_128bit_neg<mode>2_internal): Likewise.
1839 (ieee_128bit_abs<mode>2): Likewise.
1840 (ieee_128bit_abs<mode>2_internal): Likewise.
1841 (ieee_128bit_nabs<mode>2): Likewise.
1842 (ieee_128bit_nabs<mode>2_internal): Likewise.
1843 (extendiftf2): Add explicit conversions between 128-bit floating
1844 point types. Drop the old conversions that had become unwieldy.
1845 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
1846 (extendifkf2): Likewise.
1847 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
1848 (extendtfkf2): Likewise.
1849 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
1850 (trunciftf2): Likewise.
1851 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
1852 (truncifkf2): Likewise.
1853 (float<SDI:mode><IFKF:mode>2): Likewise.
1854 (trunckftf2): Likewise.
1855 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
1856 (trunctfif2): Likewise.
1857 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
1858 (extenddftf2): Rework 128-bit floating point conversions to
1859 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
1860 KFmode expanders into one function.
1861 (extenddf<mode>2): Likewise.
1862 (extenddftf2_fprs): Likewise.
1863 (extenddf<mode>2_fprs): Likewise.
1864 (extenddftf2_vsx): Likewise.
1865 (extenddf<mode>2_vsx): Likewise.
1866 (extendsftf2): Likewise.
1867 (extendsf<mode>2): Likewise.
1868 (trunctfdf2): Likewise.
1869 (trunc<mode>df2): Likewise.
1870 (trunctfdf2_internal1): Likewise.
1871 (trunc<mode>df2_internal1): Likewise.
1872 (trunctfdf2_internal2): Likewise.
1873 (trunc<mode>df2_internal2): Likewise.
1874 (trunctfsf2): Likewise.
1875 (trunc<mode>sf2): Likewise.
1876 (trunctfsf2_fprs): Likewise.
1877 (trunc<mode>sf2_fprs): Likewise.
1878 (floatsit2f): Likewise.
1879 (floatsi<mode>2): Likewise.
1880 (fix_trunc_helper): Likewise.
1881 (fix_trunc_helper<mode>): Likewise.
1882 (fix_trunctfsi2): Likewise.
1883 (fix_trunc<mode>si2): Likewise.
1884 (fix_trunctfsi2_fprs): Likewise.
1885 (fix_trunc<mode>si2_fprs): Likewise.
1886 (fix_trunctfsi2_internal): Likewise.
1887 (fix_trunc<mode>si2_internal): Likewise.
1888 (fix_trunctfdi2): Likewise.
1889 (fix_trunc<mode>di2): Likewise.
1890 (fixuns_trunctf<mode>2): Likewise.
1891 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1892 (floatditf2): Likewise.
1893 (floatdi<mode>2): Likewise.
1894 (floatuns<mode>tf2): Likewise.
1895 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
1896 (cmptf_internal1): Use a mode iterator to add support for both
1897 types (IFmode, TFmode) that support IBM extended double.
1898 (cmp<mode>_internal1): Likewise.
1899 (cmptf_internal2): Likewise.
1900 (cmp<mode>_internal2): Likewise.
1902 * doc/extend.texi (Floating Types): Document __ibm128 and
1903 __float128 on PowerPC.
1905 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1906 -mfloat128 and -mno-float128.
1908 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1910 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
1911 floating point modes that can go in vector registers.
1912 (MODES_TIEABLE_P): Move tests for vector modes before tests for
1913 scalar floating point, so that IEEE 128-bit floating point that
1914 can go in vector registers bind with vectors and not FP.
1915 (struct rs6000_args): Add libcall field.
1917 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
1918 and -mfloat128-software switches. Replace them with a binary
1920 (-mfloat128): Likewise.
1922 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
1923 128-bit floating point types in GPRs, even if the appropriate
1924 option enabling the type was not used.
1925 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
1927 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
1928 pre-decrement on IEEE 128-bit floating point values.
1929 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
1930 is IEEE 128-bit floating point.
1931 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
1932 128-bit floating point types that can go in vector registers.
1933 (rs6000_option_override_internal): Change -mfloat128-none and
1934 -mfloat128-software to -mfloat128, and move code to be near other
1935 VSX option handling.
1936 (rs6000_option_override_internal): Disable -mfloat128 if we don't
1937 have the Altivec ABI.
1938 (rs6000_init_builtins): Don't make TFmode use either IFmode or
1939 KFmode floating point nodes. Instead, have three separate nodes.
1940 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
1941 eventually moving the long double default to IEEE 128-bit floating
1943 (rs6000_opt_masks): Add -mfloat128.
1944 (struct rs6000_opt_var): Fix typo in comment.
1945 (init_cumulative_args): Initialize libcall field in
1947 (rs6000_function_arg): Treat library functions as if they had
1948 prototypes to prevent IEEE 128-bit support functions from passing
1949 arguments in both GPRs and vector registers.
1950 (rs6000_arg_partial_bytes): Likewise.
1952 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
1953 an option that can be turned on via -mcpu=<xxx>.
1955 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
1958 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1959 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
1960 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
1961 double is IBM extended double.
1963 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
1966 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1968 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
1969 * genconditions.c: Define CHECKING_P in the generated code.
1970 * genextract.c: Use flag_checking in insn_extract.
1971 * gengtype.c (main): Remove conditional compilation.
1972 * gengtype.h: Likewise.
1974 2015-10-29 Jeff Law <law@redhat.com>
1976 PR tree-optimization/67892
1977 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
1979 (thread_through_normal_block): If we have seen a backedge, then
1980 do nothing. No longer call find_jump_threads_backwards here.
1981 (thread_across_edge): Use find_jump_threads_backwards to find
1982 jump threads if the old style threader was not successful.
1983 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
1984 gsi_last_nondebug_bb. Return NULL if the block does not end
1985 with a control statement.
1986 (find_jump_threads_backwards): Setup code moved here from
1987 tree-ssa-threadedge.c::thread_through_normal_block. Accept
1988 single edge argument instead of name & block.
1989 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
1992 2015-10-29 Tom de Vries <tom@codesourcery.com>
1994 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
1997 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1999 * omp-low.c (lower_omp_target): Remove unreachable code & merge
2002 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
2004 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2006 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2008 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2009 guard_bb0 and use guard_bb throughout.
2011 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2013 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2016 2015-10-29 Richard Biener <rguenther@suse.de>
2019 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2022 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
2024 * alias.c: Reorder #include statements and remove duplicates.
2026 * attribs.c: Likewise.
2027 * auto-inc-dec.c: Likewise.
2028 * auto-profile.c: Likewise.
2029 * bb-reorder.c: Likewise.
2030 * bt-load.c: Likewise.
2031 * builtins.c: Likewise.
2032 * caller-save.c: Likewise.
2033 * calls.c: Likewise.
2036 * cfganal.c: Likewise.
2037 * cfgbuild.c: Likewise.
2038 * cfgcleanup.c: Likewise.
2039 * cfgexpand.c: Likewise.
2040 * cfghooks.c: Likewise.
2041 * cfgloop.c: Likewise.
2042 * cfgloopanal.c: Likewise.
2043 * cfgloopmanip.c: Likewise.
2044 * cfgrtl.c: Likewise.
2045 * cgraph.c: Likewise.
2046 * cgraphbuild.c: Likewise.
2047 * cgraphclones.c: Likewise.
2048 * cgraphunit.c: Likewise.
2049 * cilk-common.c: Likewise.
2050 * combine-stack-adj.c: Likewise.
2051 * combine.c: Likewise.
2052 * compare-elim.c: Likewise.
2053 * convert.c: Likewise.
2054 * coverage.c: Likewise.
2055 * cppbuiltin.c: Likewise.
2056 * cprop.c: Likewise.
2058 * cselib.c: Likewise.
2059 * data-streamer-in.c: Likewise.
2060 * data-streamer-out.c: Likewise.
2061 * data-streamer.c: Likewise.
2062 * dbxout.c: Likewise.
2065 * debug.c: Likewise.
2066 * df-core.c: Likewise.
2067 * df-problems.c: Likewise.
2068 * df-scan.c: Likewise.
2070 * dojump.c: Likewise.
2071 * dominance.c: Likewise.
2072 * double-int.c: Likewise.
2074 * dumpfile.c: Likewise.
2075 * dwarf2asm.c: Likewise.
2076 * dwarf2cfi.c: Likewise.
2077 * dwarf2out.c: Likewise.
2078 * emit-rtl.c: Likewise.
2079 * except.c: Likewise.
2080 * explow.c: Likewise.
2081 * expmed.c: Likewise.
2083 * final.c: Likewise.
2084 * fixed-value.c: Likewise.
2085 * fold-const.c: Likewise.
2086 * function.c: Likewise.
2087 * fwprop.c: Likewise.
2089 * generic-match-head.c: Likewise.
2090 * ggc-common.c: Likewise.
2091 * gimple-builder.c: Likewise.
2092 * gimple-expr.c: Likewise.
2093 * gimple-fold.c: Likewise.
2094 * gimple-iterator.c: Likewise.
2095 * gimple-low.c: Likewise.
2096 * gimple-match-head.c: Likewise.
2097 * gimple-pretty-print.c: Likewise.
2098 * gimple-ssa-isolate-paths.c: Likewise.
2099 * gimple-ssa-strength-reduction.c: Likewise.
2100 * gimple-streamer-in.c: Likewise.
2101 * gimple-streamer-out.c: Likewise.
2102 * gimple-walk.c: Likewise.
2103 * gimple.c: Likewise.
2104 * gimplify-me.c: Likewise.
2105 * gimplify.c: Likewise.
2106 * godump.c: Likewise.
2107 * graph.c: Likewise.
2108 * graphite-poly.c: Likewise.
2109 * haifa-sched.c: Likewise.
2110 * hw-doloop.c: Likewise.
2111 * ifcvt.c: Likewise.
2112 * incpath.c: Likewise.
2113 * init-regs.c: Likewise.
2114 * internal-fn.c: Likewise.
2115 * ipa-chkp.c: Likewise.
2116 * ipa-comdats.c: Likewise.
2117 * ipa-cp.c: Likewise.
2118 * ipa-devirt.c: Likewise.
2119 * ipa-icf-gimple.c: Likewise.
2120 * ipa-icf.c: Likewise.
2121 * ipa-inline-analysis.c: Likewise.
2122 * ipa-inline-transform.c: Likewise.
2123 * ipa-inline.c: Likewise.
2124 * ipa-polymorphic-call.c: Likewise.
2125 * ipa-profile.c: Likewise.
2126 * ipa-prop.c: Likewise.
2127 * ipa-pure-const.c: Likewise.
2128 * ipa-ref.c: Likewise.
2129 * ipa-reference.c: Likewise.
2130 * ipa-split.c: Likewise.
2131 * ipa-utils.c: Likewise.
2132 * ipa-visibility.c: Likewise.
2134 * ira-build.c: Likewise.
2135 * ira-color.c: Likewise.
2136 * ira-conflicts.c: Likewise.
2137 * ira-costs.c: Likewise.
2138 * ira-emit.c: Likewise.
2139 * ira-lives.c: Likewise.
2142 * langhooks.c: Likewise.
2144 * lists.c: Likewise.
2145 * loop-doloop.c: Likewise.
2146 * loop-init.c: Likewise.
2147 * loop-invariant.c: Likewise.
2148 * loop-iv.c: Likewise.
2149 * loop-unroll.c: Likewise.
2150 * lower-subreg.c: Likewise.
2151 * lra-assigns.c: Likewise.
2152 * lra-coalesce.c: Likewise.
2153 * lra-constraints.c: Likewise.
2154 * lra-eliminations.c: Likewise.
2155 * lra-lives.c: Likewise.
2156 * lra-remat.c: Likewise.
2157 * lra-spills.c: Likewise.
2159 * lto-cgraph.c: Likewise.
2160 * lto-compress.c: Likewise.
2161 * lto-opts.c: Likewise.
2162 * lto-section-in.c: Likewise.
2163 * lto-section-out.c: Likewise.
2164 * lto-streamer-in.c: Likewise.
2165 * lto-streamer-out.c: Likewise.
2166 * lto-streamer.c: Likewise.
2167 * mode-switching.c: Likewise.
2168 * modulo-sched.c: Likewise.
2169 * omp-low.c: Likewise.
2170 * optabs.c: Likewise.
2171 * opts-global.c: Likewise.
2172 * passes.c: Likewise.
2173 * plugin.c: Likewise.
2174 * postreload-gcse.c: Likewise.
2175 * postreload.c: Likewise.
2176 * predict.c: Likewise.
2177 * print-tree.c: Likewise.
2178 * profile.c: Likewise.
2180 * realmpfr.c: Likewise.
2181 * recog.c: Likewise.
2183 * reg-stack.c: Likewise.
2184 * regcprop.c: Likewise.
2185 * reginfo.c: Likewise.
2186 * regrename.c: Likewise.
2187 * regstat.c: Likewise.
2188 * reload.c: Likewise.
2189 * reload1.c: Likewise.
2190 * reorg.c: Likewise.
2191 * resource.c: Likewise.
2192 * rtl-chkp.c: Likewise.
2193 * rtl-error.c: Likewise.
2194 * rtlanal.c: Likewise.
2195 * rtlhooks.c: Likewise.
2196 * sanopt.c: Likewise.
2197 * sched-deps.c: Likewise.
2198 * sched-ebb.c: Likewise.
2199 * sched-rgn.c: Likewise.
2201 * shrink-wrap.c: Likewise.
2202 * simplify-rtx.c: Likewise.
2203 * stack-ptr-mod.c: Likewise.
2204 * statistics.c: Likewise.
2206 * stor-layout.c: Likewise.
2207 * store-motion.c: Likewise.
2208 * stringpool.c: Likewise.
2209 * symtab.c: Likewise.
2210 * target-globals.c: Likewise.
2211 * targhooks.c: Likewise.
2212 * toplev.c: Likewise.
2213 * tracer.c: Likewise.
2214 * trans-mem.c: Likewise.
2215 * tree-affine.c: Likewise.
2216 * tree-call-cdce.c: Likewise.
2217 * tree-cfg.c: Likewise.
2218 * tree-cfgcleanup.c: Likewise.
2219 * tree-chkp-opt.c: Likewise.
2220 * tree-chkp.c: Likewise.
2221 * tree-chrec.c: Likewise.
2222 * tree-complex.c: Likewise.
2223 * tree-data-ref.c: Likewise.
2224 * tree-dfa.c: Likewise.
2225 * tree-diagnostic.c: Likewise.
2226 * tree-dump.c: Likewise.
2227 * tree-eh.c: Likewise.
2228 * tree-emutls.c: Likewise.
2229 * tree-if-conv.c: Likewise.
2230 * tree-inline.c: Likewise.
2231 * tree-into-ssa.c: Likewise.
2232 * tree-iterator.c: Likewise.
2233 * tree-loop-distribution.c: Likewise.
2234 * tree-nested.c: Likewise.
2235 * tree-nrv.c: Likewise.
2236 * tree-object-size.c: Likewise.
2237 * tree-outof-ssa.c: Likewise.
2238 * tree-parloops.c: Likewise.
2239 * tree-phinodes.c: Likewise.
2240 * tree-predcom.c: Likewise.
2241 * tree-pretty-print.c: Likewise.
2242 * tree-profile.c: Likewise.
2243 * tree-scalar-evolution.c: Likewise.
2244 * tree-sra.c: Likewise.
2245 * tree-ssa-address.c: Likewise.
2246 * tree-ssa-alias.c: Likewise.
2247 * tree-ssa-ccp.c: Likewise.
2248 * tree-ssa-coalesce.c: Likewise.
2249 * tree-ssa-copy.c: Likewise.
2250 * tree-ssa-dce.c: Likewise.
2251 * tree-ssa-dom.c: Likewise.
2252 * tree-ssa-dse.c: Likewise.
2253 * tree-ssa-forwprop.c: Likewise.
2254 * tree-ssa-ifcombine.c: Likewise.
2255 * tree-ssa-live.c: Likewise.
2256 * tree-ssa-loop-ch.c: Likewise.
2257 * tree-ssa-loop-im.c: Likewise.
2258 * tree-ssa-loop-ivcanon.c: Likewise.
2259 * tree-ssa-loop-ivopts.c: Likewise.
2260 * tree-ssa-loop-manip.c: Likewise.
2261 * tree-ssa-loop-niter.c: Likewise.
2262 * tree-ssa-loop-prefetch.c: Likewise.
2263 * tree-ssa-loop-unswitch.c: Likewise.
2264 * tree-ssa-loop.c: Likewise.
2265 * tree-ssa-math-opts.c: Likewise.
2266 * tree-ssa-operands.c: Likewise.
2267 * tree-ssa-phiopt.c: Likewise.
2268 * tree-ssa-phiprop.c: Likewise.
2269 * tree-ssa-pre.c: Likewise.
2270 * tree-ssa-propagate.c: Likewise.
2271 * tree-ssa-reassoc.c: Likewise.
2272 * tree-ssa-sccvn.c: Likewise.
2273 * tree-ssa-scopedtables.c: Likewise.
2274 * tree-ssa-sink.c: Likewise.
2275 * tree-ssa-strlen.c: Likewise.
2276 * tree-ssa-structalias.c: Likewise.
2277 * tree-ssa-tail-merge.c: Likewise.
2278 * tree-ssa-ter.c: Likewise.
2279 * tree-ssa-threadedge.c: Likewise.
2280 * tree-ssa-threadupdate.c: Likewise.
2281 * tree-ssa-uncprop.c: Likewise.
2282 * tree-ssa-uninit.c: Likewise.
2283 * tree-ssa.c: Likewise.
2284 * tree-ssanames.c: Likewise.
2285 * tree-stdarg.c: Likewise.
2286 * tree-streamer-in.c: Likewise.
2287 * tree-streamer-out.c: Likewise.
2288 * tree-streamer.c: Likewise.
2289 * tree-switch-conversion.c: Likewise.
2290 * tree-tailcall.c: Likewise.
2291 * tree-vect-data-refs.c: Likewise.
2292 * tree-vect-generic.c: Likewise.
2293 * tree-vect-loop-manip.c: Likewise.
2294 * tree-vect-loop.c: Likewise.
2295 * tree-vect-patterns.c: Likewise.
2296 * tree-vect-slp.c: Likewise.
2297 * tree-vect-stmts.c: Likewise.
2298 * tree-vectorizer.c: Likewise.
2299 * tree-vrp.c: Likewise.
2302 * ubsan.c: Likewise.
2303 * value-prof.c: Likewise.
2304 * var-tracking.c: Likewise.
2305 * varasm.c: Likewise.
2306 * varpool.c: Likewise.
2307 * vtable-verify.c: Likewise.
2309 * wide-int-print.cc: Likewise.
2310 * wide-int.cc: Likewise.
2311 * xcoffout.c: Likewise.
2313 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
2315 * Makefile.in (NO_PIE_CFLAGS): New.
2316 (NO_PIE_FLAG): Likewise.
2317 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2318 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2319 (BUILD_NO_PIE_CFLAGS): Likewise.
2320 (BUILD_NO_PIE_FLAG): Likewise.
2321 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2322 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2323 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2324 $(BUILD_NO_PIE_CFLAGS).
2325 (BUILD_CXXFLAGS): Likewise.
2326 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2327 $(BUILD_NO_PIE_FLAG).
2328 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
2329 (BUILD_NO_PIE_FLAG): Likewise.
2330 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2331 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2332 * configure: Regenerated.
2334 2015-10-29 Richard Biener <rguenther@suse.de>
2337 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2338 unsigned conditonal negation to ABS_EXPR.
2340 2015-10-29 Richard Biener <rguenther@suse.de>
2342 * gimple-match-head.c (gimple_simplify): Remove premature checking
2343 of builtin_decl_implicit of function calls we simplify.
2345 2015-10-29 Bin Cheng <bin.cheng@arm.com>
2347 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2348 (get_computation_cost_at): Ditto.
2349 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2352 2015-10-28 Tom de Vries <tom@codesourcery.com>
2354 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2357 2015-10-28 Jason Merrill <jason@redhat.com>
2359 * Makefile.in (TAGS): Include libcpp and libiberty.
2361 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2363 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2364 (extract_omp_for_data): Remove OpenACC special handling of
2367 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2368 (struct parallel): Update comment.
2369 (nvptx_reorg): Likewise.
2370 (nvptx_neuter): Cleanup whitespace.
2372 2015-10-28 Richard Henderson <rth@redhat.com>
2374 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2376 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2379 * config/avr/predicates.md (low_io_address_operand): Don't
2380 consider MODE when computing upper bound.
2381 (io_address_operand): Likewise.
2383 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
2385 * fold-const.c (operand_equal_p): Do not verify that types are
2386 compatible for MEM_REFs.
2388 2015-10-28 Richard Biener <rguenther@suse.de>
2390 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2391 in simplifying VEC_COND_EXPR conditions.
2393 2015-10-28 Tom de Vries <tom@codesourcery.com>
2395 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2396 into vi_next of a full_var.
2398 2015-10-28 Tom de Vries <tom@codesourcery.com>
2400 * tree-ssa-structalias.c (new_var_info, make_heapvar)
2401 (make_constraint_from_restrict, make_constraint_from_global_restrict)
2402 (create_function_info_for, create_variable_info_for_1)
2403 (create_variable_info_for): Add and handle add_id parameter.
2404 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2405 (init_base_vars): Add extra argument to calls to new_var_info.
2406 (get_vi_for_tree): Add extra argument to call to
2407 create_variable_info_for.
2408 (process_constraint, do_deref, process_all_all_constraints): Add extra
2409 argument to calls to new_scalar_tmp_constraint_exp.
2410 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2411 argument to calls to make_heapvar.
2412 (make_restrict_var_constraints): Add extra argument to call to
2413 make_constraint_from_global_restrict.
2414 (intra_create_variable_infos): Add extra argument to call to
2415 create_variable_info_for_1.
2416 (ipa_pta_execute): Add extra argument to call to
2417 create_function_info_for.
2419 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2421 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2422 (sibcall_value): Likewise.
2424 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2426 * config/nvptx/nvptx.h (struct machine_function): Add
2428 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
2429 nvptx_expand_oacc_join): Declare.
2430 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
2431 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
2432 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
2433 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
2434 UNSPECV_JOINING, UNSPECV_JOIN): New.
2435 (BITS, BITD): New mode iterators.
2436 (br_true_uni, br_false_uni): New.
2437 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
2438 (oacc_dim_size, oacc_dim_pos): New.
2439 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
2440 (oacc_fork, oacc_join): New.
2441 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
2442 (worker_load<mode>, worker_store<mode>): New.
2443 (nvptx_barsync): New.
2444 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
2445 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
2446 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
2447 worker_bcast_sym): New.
2448 (nvptx_option_override): Initialize worker broadcast buffer.
2449 (nvptx_emit_forking, nvptx_emit_joining): New.
2450 (nvptx_init_axis_predicate): New.
2451 (nvptx_declare_function_name): Init axis predicates.
2452 (nvptx_expand_call): Add fork/join markers around routine call.
2453 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
2454 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
2455 (nvptx_gen_vcast): New.
2456 (struct wcast_data_t): New.
2457 (enum propagate_mask): New.
2458 (nvptx_gen_wcast): New.
2459 (nvptx_print_operand): Add 'S' case.
2460 (struct parallel): New.
2461 (parallel::parallel, parallel::~parallel): New.
2462 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
2463 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
2464 nvptx_find_par, nvptx_discover_pars): New.
2465 (nvptx_propagate): New.
2466 (vprop_gen, nvptx_vpropagate): New.
2467 (wprop_gen, nvptx_wpropagate): New.
2469 (nvptx_single, nvptx_skip_par): New.
2470 (nvptx_process_pars, nvptx_neuter_pars): New.
2471 (ntptx_reorg): Split blocks, generate parallel structure, apply
2473 (nvptx_cannot_copy_insn_p): New.
2474 (nvptx_file_end): Emit worker broadcast decl.
2475 (nvptx_goacc_fork_join): New.
2476 (TARGET_CANNOT_COPY_INSN_P): Override.
2477 (TARGET_GOACC_FORK_JOIN): Override.
2479 2015-10-28 Richard Biener <rguenther@suse.de>
2481 * fold-const.c (negate_expr_p): Adjust the division case to
2482 properly avoid introducing undefined overflow.
2483 (fold_negate_expr): Likewise.
2485 2015-10-28 Richard Biener <rguenther@suse.de>
2487 PR tree-optimization/65962
2488 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2489 Avoid creating loop carried dependences also for outer loops
2490 of the loop a use to replace is in.
2492 2015-10-28 Richard Biener <rguenther@suse.de>
2494 * common.opt (fchecking): New flag controlling flag_checking.
2495 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
2496 * timevar.c (timer::print): Adjust output.
2497 * doc/invoke.texi (fchecking): Document.
2499 2015-10-28 Richard Biener <rguenther@suse.de>
2502 * fold-const.c (negate_expr_p): We cannot negate plus or minus
2503 if overflow is not wrapping. Likewise multiplication unless
2504 one operand is constant and not power of two.
2505 (fold_negate_expr): Adjust accordingly.
2507 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2509 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
2511 (is_oacc_parallel, is_oacc_kernels): New.
2512 (enclosing_target_ctx): May return NULL.
2513 (ctx_in_oacc_kernels_region): New.
2514 (check_oacc_kernel_gwv): New.
2515 (oacc_loop_or_target_p): Delete.
2516 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
2517 operands. Strip reductions fro kernels.
2518 (scan_omp_target): Don't calculate gwv mask.
2519 (lower_oacc_head_mark, lower_oacc_loop_marker,
2520 lower_oacc_head_tail): New.
2521 (struct oacc_collapse): New.
2522 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
2523 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2524 Remove OpenACC handling.
2525 (expand_oacc_for): New.
2526 (expand_omp_for): Call expand_oacc_for.
2527 (lower_omp_for): Call lower_oacc_head_tail.
2529 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
2531 * attribs.c (check_attribute_tables): New function, broken out from...
2532 (init_attributes): Use it.
2533 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
2534 gcc_checking_assert and checking_* functions to eliminate
2535 ENABLE_CHECKING conditionals.
2536 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
2537 (pass_expand::execute): Likewise.
2538 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2539 * cgraphunit.c (mark_functions_to_output): Likewise.
2540 (cgraph_node::expand_thunk): Likewise.
2541 (symbol_table::compile): Likewise.
2542 * ddg.c (add_cross_iteration_register_deps): Likewise.
2543 (create_ddg_all_sccs): Likewise.
2544 * df-core.c (df_finish_pass, df_analyze): Likewise.
2545 * diagnostic-core.h: Likewise.
2546 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
2547 * dominance.c (calculate_dominance_info): Likewise.
2548 * dwarf2out.c (add_AT_die_ref): Likewise.
2549 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
2550 (loc_list_from_tree, gen_lexical_block_die): Likewise.
2551 gen_type_die_with_usage, gen_type_die): Likewise.
2552 (dwarf2out_decl): Likewise.
2553 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
2554 * except.c (duplicate_eh_regions): Likewise.
2555 * fwprop.c (register_active_defs, update_df_init): Likewise.
2556 (fwprop_init, fwprop_done): Likewise.
2557 (update_uses): Likewise.
2558 * ggc-page.c (ggc_grow): Likewise.
2559 * gimplify.c (gimplify_body): Likewise.
2560 (gimplify_hasher::equal): Likewise.
2561 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
2562 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
2564 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
2565 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
2566 * hash-table.h (::find_empty_slot_for_expand): Likewise.
2567 * ifcvt.c (if_convert): Likewise.
2568 * ipa-cp.c (ipcp_propagate_stage): Likewise.
2569 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
2570 (odr_type_p, odr_types_equivalent_p): Likewise.
2571 (add_type_duplicate, get_odr_type): Likewise.
2572 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2573 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
2574 (sem_item_optimizer::verify_classes): Likewise.
2575 (sem_item_optimizer::traverse_congruence_split): Likewise.
2576 (sem_item_optimizer::checking_verify_classes): New.
2577 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
2579 * cfgrtl.c (commit_edge_insertions): Likewise.
2580 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
2581 (rtl_flow_call_edges_add): Likewise.
2582 * cgraph.c (symbol_table::create_edge): Likewise.
2583 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2584 * cgraph.h (symtab_node): Likewise.
2585 (symtab_node::checking_verify_symtab_nodes): Define.
2586 (cgraph_node::checking_verify_cgraph_nodes): Define.
2587 * cfghooks.h (checking_verify_flow_info): Define.
2588 * cfgloop.h (checking_verify_loop_structure): Define.
2589 * dominance.h (checking_verify_dominators): Define.
2590 * et-forest.c: Fix comment.
2591 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
2592 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2593 ENABLE_CHECKING conditionals.
2594 * ipa-inline-transform.c (save_inline_function_body): Likewise.
2595 * ipa-inline.c (inline_small_functions): Likewise.
2596 (early_inliner): Likewise.
2597 * ipa-inline.h (estimate_edge_growth): Likewise.
2598 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2599 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2600 (ipa_single_use): Likewise.
2601 * ira-int.h: Likewise.
2602 * ira.c (ira): Likewise.
2603 * loop-doloop.c (doloop_optimize_loops): Likewise.
2604 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
2605 * loop-invariant.c (move_loop_invariants): Likewise.
2606 * lra-assigns.c (lra_assign): Likewise.
2607 * lra-constraints.c (lra_constraints): Likewise.
2608 * lra-eliminations.c (lra_eliminate): Likewise.
2609 * lra-int.h (struct lra_reg): Likewise.
2610 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2611 (lra_create_live_ranges_1): Likewise.
2612 * lra-remat.c (create_remat_bb_data): Likewise.
2613 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
2615 (check_rtl): Always define. Remove incorrect guard around
2616 extract_constrain_insn call.
2617 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
2618 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2619 ENABLE_CHECKING conditionals.
2620 * lto-streamer-out.c (DFS::DFS): Likewise.
2621 (lto_output): Likewise.
2622 * lto-streamer.c (lto_streamer_init): Likewise.
2623 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
2624 expand_omp_target, execute_expand_omp): Likewise.
2625 (lower_omp_target): Likewise.
2626 * passes.c (execute_function_todo): Likewise.
2627 (execute_todo, execute_one_pass): Likewise.
2628 (verify_curr_properties): Always define.
2629 * predict.c (tree_estimate_probability: Use flag_checking,
2630 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2631 ENABLE_CHECKING conditionals.
2632 (propagate_freq): Likewise.
2633 * pretty-print.c (pp_format): Likewise.
2634 * real.c (real_to_decimal_for_mode): Likewise.
2635 * recog.c (split_all_insns): Likewise.
2636 * regcprop.c (kill_value_one_regno): Likewise.
2637 (copy_value): Likewise.
2638 (validate_value_data): Define unconditionally.
2639 * reload.c: Fix comment.
2640 * timevar.c: Include options.h
2641 * tree-ssa.h (checking_verify_ssa): Define.
2642 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
2643 * sched-deps.c (CHECK): Remove unused macro.
2644 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
2645 gcc_checking_assert and checking_* functions to eliminate
2646 ENABLE_CHECKING conditionals.
2647 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
2648 * sel-sched.c (struct moveop_static_params): Likewise.
2649 (find_best_reg_for_expr, move_cond_jump): Likewise.
2650 (move_op_orig_expr_not_found): Likewise.
2651 (code_motion_process_successors, move_op): Likewise.
2652 * ssa-iterators.h (first_readonly_imm_use): Likewise.
2653 (next_readonly_imm_use): Likewise.
2654 * store-motion.c (compute_store_table): Likewise.
2655 * symbol-summary.h (function_summary::function_summary): Likewise.
2656 * target.h (cumulative_args_t): Likewise.
2657 (get_cumulative_args, pack_cumulative_args): Likewise.
2658 * timevar.c: (timer::print): Likewise.
2659 * trans-mem.c (ipa_tm_execute): Likewise.
2660 * tree-cfg.c (move_stmt_op): Likewise.
2661 (move_sese_region_to_fn): Likewise.
2662 (gimple_flow_call_edges_add): Likewise.
2663 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
2665 * tree-eh.c (remove_unreachable_handlers): Likewise.
2666 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2667 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
2668 * tree-into-ssa.c (update_ssa): Likewise.
2669 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
2670 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
2671 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
2672 * tree-predcom.c (suitable_component_p): Likewise.
2673 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
2674 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
2675 * tree-ssa-live.c (verify_live_on_entry): Likewise.
2676 * tree-ssa-live.h (register_ssa_partition): Likewise.
2677 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
2678 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
2679 (tree_transform_and_unroll_loop): Likewise.
2680 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2681 * tree-ssa-operands.c (get_expr_operands): Likewise.
2682 * tree-ssa-propagate.c (replace_exp_1): Likewise.
2683 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2684 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
2685 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
2686 * tree-ssanames.c (release_ssa_name_fn): Likewise.
2687 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
2688 * tree-vect-loop-manip.c
2689 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
2690 (slpeel_checking_verify_cfg_after_peeling): Likewise.
2691 (vect_do_peeling_for_loop_bound): Likewise.
2692 (vect_do_peeling_for_alignment): Likewise.
2693 * tree-vrp.c (supports_overflow_infinity): Likewise.
2694 (set_value_range): Likewise.
2695 * tree.c (free_lang_data_in_cgraph): Likewise.
2696 * value-prof.c (gimple_remove_histogram_value): Likewise.
2697 (free_hist): Likewise.
2698 * var-tracking.c (canonicalize_values_star): Likewise.
2699 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
2701 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2703 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
2704 IFN_GOACC_LOOP): New.
2705 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
2706 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
2707 IFN_UNIQUE_OACC_TAIL_MARK.
2708 (enum ifn_goacc_loop_kind): New.
2709 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
2710 IFN_UNIQUE_OACC_JOIN cases.
2711 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
2712 (expand_GOACC_LOOP): New.
2713 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
2714 * omp-low.c: Include gimple-pretty-print.h.
2715 (struct oacc_loop): New.
2716 (enum oacc_loop_flags): New.
2717 (oacc_thread_numbers): New.
2718 (oacc_xform_loop): New.
2719 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
2720 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
2721 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
2722 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
2723 oacc_loop_discovery): New.
2724 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
2725 oacc_loop_process): New.
2726 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
2727 (execute_oacc_device_lower): Discover & process loops. Process
2729 * target.def (goacc.fork_join): Change sense of hook, clarify
2731 * doc/tm.texi: Regenerated.
2733 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2735 * target-insns.def (oacc_fork, oacc_join): Define.
2736 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
2737 (goacc.fork_join): New GOACC hook.
2738 * targhooks.h (default_goacc_fork_join): Declare.
2739 * omp-low.c (default_goacc_forkjoin): New.
2740 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
2741 * doc/tm.texi: Regenerate.
2743 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2745 * omp-low.c (oacc_init_rediction_array): New.
2746 (oacc_initialize_reduction_data): Initialize array.
2748 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2750 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
2752 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2754 * internal-fn.c (expand_UNIQUE): New.
2755 * internal-fn.h (enum ifn_unique_kind): New.
2756 * internal-fn.def (IFN_UNIQUE): New.
2757 * target-insns.def (unique): Define.
2758 * gimple.h (gimple_call_internal_unique_p): New.
2759 * gimple.c (gimple_call_same_target_p): Check internal fn
2761 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
2762 * tree-ssa-threadedge.c
2763 (record_temporary_equivalences_from_stmts): Likewise.
2764 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
2766 2015-10-27 Richard Henderson <rth@redhat.com>
2769 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
2770 narrowing subregs on SSE and MMX registers.
2771 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
2772 appear to be sub-words of multi-register pseudos must be rejected.
2773 * doc/tm.texi: Regenerate.
2775 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2778 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
2779 operands[0] is a reg before taking its REGNO in split condition.
2780 (*movdi_aarch64): Likewise.
2782 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2784 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
2785 Handle floating point inner modes properly.
2787 2015-10-27 Alan Hayward <alan.hayward@arm.com>
2790 (vectorizable_live_operation): Change iterator.
2792 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2793 Aditya Kumar <aditya.k7@samsung.com>
2795 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
2796 function to schedule based on isl_schedule_node.
2797 (get_schedule_map_st): New schedule optimizer based on
2799 (scop_get_domains): New. Return the isl_union_set containing the
2800 domains of all the pbbs.
2801 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
2803 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
2806 * calls.c (prepare_call_address): Don't handle -fno-plt here.
2807 * config/i386/i386.c (ix86_expand_call): Generate indirect call
2808 via GOT for -fno-plt. Support indirect call via GOT for x32.
2809 * config/i386/predicates.md (sibcall_memory_operand): Allow
2812 2015-10-27 Richard Biener <rguenther@suse.de>
2814 PR tree-optimization/68104
2815 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
2816 strided access check ...
2817 (vect_compute_data_refs_alignment): ... here.
2819 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
2820 Joseph Myers <joseph@codesourcery.com>
2821 Mark Shinwell <shinwell@codesourcery.com>
2822 Andrew Stubbs <ams@codesourcery.com>
2823 Rich Felker <dalias@libc.org>
2825 * config.gcc: Handle --enable-fdpic.
2826 * config/sh/constraints.md (Ccl): New constraint.
2827 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
2828 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
2830 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
2832 * config/sh/sh-protos.h (function_symbol_result): New struct.
2833 (function_symbol): Return function_symbol_result.
2834 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
2836 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
2838 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
2839 (sh_option_override): Force -fPIC if FDPIC is in effect.
2840 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
2841 UNSPEC_GOTOFFFUNCDESC cases.
2842 (prepare_move_operands): Use FDPIC initial GOT register for
2843 TLS-related GOT access; inhibit cross-section address offset constants
2845 (sh_assemble_integer): New function.
2846 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
2847 PC-relative call sites.
2848 (expand_ashiftrt): Adapt invocation of function_symbol.
2849 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
2850 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
2851 UNSPEC_GOTOFFFUNCDESC.
2852 (legitimize_pic_address): Resolve function symbols to function
2853 descriptors for FDPIC. Do not use GOT-relative addressing for local
2854 data that may be read-only on FDPIC.
2855 (sh_emit_storesi, sh_emit_storehi): New functions.
2856 (sh_trampoline_init): Generate FDPIC trampolines.
2857 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
2858 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
2859 (sh_output_mi_thunk): Generate FDPIC call.
2860 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
2861 FDPIC, generate call site labels to use PC-relative addressing rather
2862 than GOT-relative addressing.
2863 (sh_conditional_register_usage): Make PIC register fixed and call used
2864 when FDPIC is in effect.
2865 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
2866 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
2867 sh_get_fdpic_reg_initial_val): New functions.
2868 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
2870 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2871 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
2872 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
2873 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
2875 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
2876 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
2877 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
2878 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
2880 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
2881 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
2882 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
2883 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
2884 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
2885 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
2886 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
2887 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
2888 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2889 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
2890 block_move_real, block_lump_real, block_move_real_i4,
2891 block_lump_real_i4): Add support for FDPIC calls.
2892 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
2893 call_value_pop): Adjust for new function_symbol signature.
2894 * config/sh/sh.opt (-mfdpic): New option.
2895 * doc/install.texi (Options specification): Document --enable-fdpic.
2896 * doc/invoke.texi (SH Options): Document -mfdpic.
2899 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2901 PR tree-optimization/65963
2902 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2903 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2905 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2908 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
2909 * config/arm/constraints.md (Dp): Update callsite.
2910 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
2912 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2914 * builtins.c (fold_builtin_load_exponent): Rename to...
2915 (fold_const_builtin_load_exponent): ...this and only handle
2917 (fold_builtin_2): Update accordingly.
2918 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
2920 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2922 * builtins.c (fold_builtin_logb): Rename to...
2923 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
2924 (fold_builtin_significand): Rename to...
2925 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
2926 (fold_builtin_1): Update accordingly.
2928 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2930 * builtins.c (fold_builtin_fmin_fmax): Delete.
2931 (fold_builtin_2): Handle constant fmin and fmax arguments here.
2932 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
2934 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
2936 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
2937 for register extension into sign and zero register extension.
2938 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
2939 for sign and zero register extension.
2940 (cortexa57_addrcost_table): Likewise.
2941 (xgene1_addrcost_table): Likewise.
2943 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2945 * fold-const.c (fold_minmax): Delete.
2946 (fold_binary_loc): Don't call it.
2947 * match.pd: Add rules previously handled by fold_minmax.
2949 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2951 * builtins.c (fold_builtin_fma): Remove constant handling.
2952 (fold_builtin_3): Handle constant fma arguments here.
2954 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2956 * builtins.c (fold_builtin_fabs): Remove constant handling.
2957 (fold_builtin_abs): Likewise.
2959 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2961 * builtins.c (fold_builtin_copysign): Delete.
2962 (fold_builtin_2): Handle constant copysign arguments here.
2963 * match.pd: Add rules previously handled by fold_builtin_copysign.
2965 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2967 * builtins.c (fold_builtin_signbit): Delete.
2968 (fold_builtin_2): Handle constant signbit arguments here.
2969 * match.pd: Add rules previously handled by fold_builtin_signbit.
2971 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2973 * match.pd: Handle sqrt(x) cmp 0 specially.
2975 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
2977 * tree-vect-generic.c (expand_vector_operations_1): Check
2978 optab type before using it.
2980 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2982 * config/aarch64/aarch64-protos.h
2983 (struct tune_params): Add autoprefetcher_model field.
2984 * config/aarch64/aarch64.c: Include params.h
2985 (generic_tunings): Specify autoprefetcher_model value.
2986 (cortexa53_tunings): Likewise.
2987 (cortexa57_tunings): Likewise.
2988 (cortexa72_tunings): Likewise.
2989 (thunderx_tunings): Likewise.
2990 (xgene1_tunings): Likewise.
2991 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
2992 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
2993 (aarch64_override_options_internal): Set
2994 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
2996 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2998 * builtins.c (fold_builtin_exponent): Delete.
2999 (fold_builtin_2): Handle constant expN arguments here.
3000 * match.pd: Fold expN(logN(x)) -> x.
3002 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3004 * builtins.c (fold_builtin_powi): Delete.
3005 (fold_builtin_2): Handle constant powi arguments here.
3006 * match.pd: Add rules previously handled by fold_builtin_powi.
3008 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3010 * builtins.c (fold_builtin_pow): Delete in favor of...
3011 (fold_const_builtin_pow): ...this new function. Only handle constant
3013 (fold_builtin_2): Update accordingly.
3014 * match.pd: Add rules previously handled by fold_builtin_pow.
3016 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3018 * builtins.c (fold_builtin_hypot): Delete.
3019 (fold_builtin_2): Handle constant hypot arguments here.
3020 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
3021 hypot(x, x) to fabs(x)*sqrt(2).
3023 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3025 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3026 instead of make_ssa_name if not yet in SSA form.
3028 2015-10-27 Richard Biener <rguenther@suse.de>
3030 * cfg.c (free_edge): Add function argument and use it instead of cfun.
3031 (clear_edges): Likewise.
3032 * cfg.h (clear_edges): Adjust prototype.
3033 * cfgexpand.c (pass_expand::execute): Adjust.
3034 * cfgloop.c (release_recorded_exits): Add function argument and use
3036 * cfgloop.h (release_recorded_exits): Adjust prototype.
3037 (loops_state_satisfies_p): Add overload with function argument.
3038 (loops_state_set): Likewise.
3039 (loops_state_clear): Likewise.
3040 (struct loop_iterator): Add function argument to constructor
3041 and iterator and use it instead of cfun.
3042 (FOR_EACH_LOOP_FN): New macro.
3043 (loop_optimizer_finalize): Add overload with function argument.
3044 * loop-init.c (loop_optimizer_init): Adjust.
3045 (fix_loop_structure): Likewise.
3046 (loop_optimizer_finaliz): Add function argument and use it
3048 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3049 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3050 * cgraph.c (release_function_body): Do not push/pop cfun.
3051 * final.c (rest_of_clean_state): Adjust.
3052 * graphite.c (graphite_finalize): Likewise.
3053 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3054 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3055 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3056 (tree_unroll_loops_completely): Likewise.
3057 (pass_complete_unrolli::execute): Likewise.
3058 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3059 Add function argument and use it instead of cfun.
3060 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3062 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3063 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3065 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3066 * tree-ssanames.c (fini_ssanames): Add function argument and use it
3068 * tree-ssanames.c (fini_ssanames): Adjust prototype.
3069 * tree-vrp.c (execute_vrp): Adjust.
3070 * value-prof.c (free_histograms): Add function argument and use it
3072 * value-prof.h (free_histograms): Adjust prototype.
3074 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3076 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3077 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3078 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
3080 2015-10-27 Tom de Vries <tom@codesourcery.com>
3082 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3085 2015-10-27 Bin Cheng <bin.cheng@arm.com>
3087 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3088 (inv_can_prop_to_addr_use): New function.
3089 (record_use): Call can_prop_to_addr_uses, set the new field.
3090 (get_inv_cost): Count cost if inv can't be propagated into its
3093 2015-10-26 Doug Evans <dje@google.com>
3095 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3097 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
3099 * match.pd (fold_widened_comparison): Apply simplifications to all
3102 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
3104 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3105 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3106 * doc/tm.texi: Regenerated.
3107 * reorg.c (dbr_schedule): Use new hook.
3108 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3110 2015-10-26 Jeff Law <law@redhat.com>
3112 PR tree-optimization/68013
3113 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3114 Make sure the first block in the path is in VISITED_BBs.
3116 2015-10-26 Richard Biener <rguenther@suse.de>
3117 Dominik Vogt <vogt@linux.vnet.ibm.com>
3120 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3121 Properly prune ref->ref for accesses outside of ref.
3123 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3125 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3126 new statements to be inserted if inplace. Allow calls to have
3129 2015-10-26 Richard Biener <rguenther@suse.de>
3131 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3132 (do_valueize): New function.
3133 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3135 * tree-ssa-threadedge.c: Remove builtins.h include, include
3137 (fold_assignment_stmt): Remove.
3138 (threadedge_valueize): New function.
3139 (record_temporary_equivalences_from_stmts): Use
3140 gimple_fold_stmt_to_constant_1, note additional cleanup
3143 2015-10-26 Richard Biener <rguenther@suse.de>
3145 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3146 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3148 2015-10-26 Alan Hayward <alan.hayward@arm.com>
3150 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3151 VEC_COND_EXPR types.
3153 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3155 * auto-inc-dec.c (insert_move_insn_before): Delete.
3156 (attempt_change): Remember to cost the simple move in the
3157 FORM_PRE_ADD and FORM_POST_ADD cases.
3159 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
3162 * config/sh/sh.c (sh_vector_mode_supported_p): Use
3163 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3165 2015-10-26 Tom de Vries <tom@codesourcery.com>
3167 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3169 (intra_create_variable_infos): ... here.
3171 2015-10-26 Tom de Vries <tom@codesourcery.com>
3173 * tree-ssa-structalias.c (intra_create_variable_infos): Add
3174 restrict_pointer_p and recursive_restrict_p variables.
3176 2015-10-26 Tom de Vries <tom@codesourcery.com>
3178 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3179 get_vi_for_tree call.
3181 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3184 * optabs.c (expand_atomic_compare_and_swap): Handle case when
3185 ptarget_oval or ptarget_bool are const0_rtx.
3187 2015-10-26 Christian Bruel <christian.bruel@st.com>
3189 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3190 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3191 * cp/method.c (implicitly_declare_fn): Likewise.
3192 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3193 * java/class.c (add_method_1): Likewise.
3195 2015-10-26 Richard Biener <rguenther@suse.de>
3197 * alloc-pool.h (base_pool_allocator): Use placement new.
3198 (base_pool_allocator::remove): Likewise. Compute size outside of
3201 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3203 * builtins.c (do_real_to_int_conversion): New function.
3204 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3205 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3207 * match.pd: Add rules previously handled by fold_fixed_mathfn
3208 and fold_builtin_int_roundingfn.
3210 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3212 * match.pd: Use macros to define built-in operator lists.
3214 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
3215 Richard Biener <rguenther@suse.de>
3217 * genmatch.c (dt_simplify::gen): Skip captures that are
3219 (parser::parse_expr): Allow captures in results too.
3220 * builtins.c (fold_builtin_cexp): Delete.
3221 (fold_builtin_1): Handle constant cexp arguments here.
3222 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3224 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
3226 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3227 conditional compilation.
3228 (base_pool_allocator::remove): Use flag_checking.
3230 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
3232 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3235 * dojump.c (do_compare_and_jump): Canonicalize both function and
3238 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
3241 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3244 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3247 * ipa-polymorphic-call.c
3248 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3249 instance offset with offset of outer type.
3251 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3253 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3255 2015-10-23 Caroline Tice <cmtice@google.com>
3257 (from Richard Biener
3258 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
3259 call to iterative_hash_host_wide_int.
3261 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3263 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3266 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3268 * tree-vect-generic.c (expand_vector_operations_1): Check
3269 optab exists before use it.
3271 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3273 * tree-vect-generic.c (expand_vector_condition): Avoid
3274 uninitialized variable warning.
3276 2015-10-23 Jeff Law <law@redhat.com>
3278 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3280 (execute_todo): Call it here.
3281 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3283 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3285 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3286 Szabolcs Nagy <szabolcs.nagy@arm.com>
3288 * config.gcc (enable_secureplt): Add *-linux*-musl*.
3290 2015-10-23 Jeff Law <law@redhat.com>
3292 PR tree-optimization/67830
3293 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3294 Explicitly verify the mask has no bits outside the type of
3295 the innermost operands.
3297 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3298 Szabolcs Nagy <szabolcs.nagy@arm.com>
3300 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3301 (MUSL_DYNAMIC_LINKER64): Define.
3302 (GNU_USER_DYNAMIC_LINKER32): Update.
3303 (GNU_USER_DYNAMIC_LINKER64): Update.
3304 (CHOOSE_DYNAMIC_LINKER): Update.
3306 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3307 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3308 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3309 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3310 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3311 (CHOOSE_DYNAMIC_LINKER): Update.
3312 (INCLUDE_DEFAULTS): Redefine.
3314 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3316 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3318 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3319 comparing addresses.
3321 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3323 * fold-const.c (operand_equal_p): Handle matching of vector
3326 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3328 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3330 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
3331 Andrew Pinski <apinski@cavium.com>
3333 PR rtl-optimization/67736
3334 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3337 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3340 * tree.c (build_truth_vector_type): Support BLK mode
3341 returned for boolean vector.
3343 2015-10-23 Alan Hayward <alan.hayward@arm.com>
3345 PR tree-optimization/65947
3347 (vect_is_simple_reduction_1): Find condition reductions.
3348 (vect_model_reduction_cost): Add condition reduction costs.
3349 (get_initial_def_for_reduction): Add condition reduction initial var.
3350 (vect_create_epilog_for_reduction): Add condition reduction epilog.
3351 (vectorizable_reduction): Condition reduction support.
3352 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3353 * doc/sourcebuild.texi (Vector-specific attributes): Document
3356 2015-10-23 Richard Biener <rguenther@suse.de>
3358 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3361 2015-10-23 Richard Biener <rguenther@suse.de>
3362 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3364 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3365 into (A ^ B) - B to match.pd
3366 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3368 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3370 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3372 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3374 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3376 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3377 INTEGER_CST@1)): New simplifier.
3379 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
3381 * builtins.c (integer_valued_real_p): Move to fold-const.c.
3382 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3383 (fold_builtin_ceil, fold_builtin_round): Delete.
3384 (fold_builtin_1): Handle constant trunc, floor, ceil and round
3386 * convert.c (convert_to_real): Remove narrowing of rounding
3388 * fold-const.h (integer_valued_real_unary_p)
3389 (integer_valued_real_binary_p, integer_valued_real_call_p)
3390 (integer_valued_real_single_p, integer_valued_real_p): Declare.
3391 * fold-const.c (tree_single_nonnegative_warnv_p): Move
3392 name_registered_for_update_p check to SSA_NAME case statement.
3393 Don't call tree_simple_nonnegative_warnv_p for SSA names.
3394 (integer_valued_real_unary_p, integer_valued_real_binary_p)
3395 (integer_valued_real_call_p, integer_valued_real_single_p)
3396 (integer_valued_real_invalid_p): New functions.
3397 (integer_valued_real_p): Move from fold-const.c and rework
3398 to call the functions above. Handle SSA names.
3399 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3400 * gimple-fold.c (gimple_assign_integer_valued_real_p)
3401 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3402 (gimple_stmt_integer_valued_real_p): New functions.
3403 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3404 Fold f(x)->x for the same f if x is known to be integer-valued.
3405 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3406 the result. Canonicalize floor(x) as trunc(x) if x is
3409 2015-10-23 Tom de Vries <tom@codesourcery.com>
3411 * tree-ssa-structalias.c (intra_create_variable_infos): Use
3412 make_constraint_from.
3414 2015-10-23 Tom de Vries <tom@codesourcery.com>
3416 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3417 setting of is_full_var in case of a single field.
3419 2015-10-22 Martin Sebor <msebor@redhat.com>
3422 * config/i386/i386.opt: Add missing periods to the ends of sentences.
3423 * config/msp430/msp430.opt: Same.
3425 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3427 * doc/extend.exp (Global Register Variables): Rewrite.
3429 2015-10-22 Jeff Law <law@redhat.com>
3431 * genattrtab.c (main): If we do not have any annul-true or annul-false
3432 slots, then write out a dummy eligible_for_annul_true or
3433 eligible_for_annul_false as needed.
3435 2015-10-22 Nick Clifton <nickc@redhat.com>
3437 * config/msp430/msp430.opt: Add -msilicon-errata and
3438 -msilicon-errata-warn.
3439 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
3441 * doc/invoke.texi: Document new options.
3443 2015-10-22 Richard Biener <rguenther@suse.de>
3445 PR tree-optimization/58497
3446 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
3447 (expand_vector_operations_1): Use it. Lower operations on
3448 all uniform vectors to scalar operations if the HW supports it.
3450 2015-10-22 Richard Biener <rguenther@suse.de>
3452 PR tree-optimization/19049
3453 PR tree-optimization/65962
3454 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
3455 to strided accesses if single-element interleaving doesn't work.
3457 2015-10-22 Richard Biener <rguenther@suse.de>
3461 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
3462 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
3463 (expand_unop): Likewise.
3465 2015-10-22 Richard Biener <rguenther@suse.de>
3467 * fold-const.c (fold_addr_of_array_ref_difference): Properly
3468 convert operands before folding a MINUS_EXPR.
3469 (fold_binary_loc): Move simplification of MINUS_EXPR on
3470 converted POINTER_PLUS_EXPRs ...
3471 * match.pd: ... here.
3473 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3475 * builtins.c (fold_builtin_tan): Delete.
3476 (fold_builtin_1): Handle constant tan arguments here.
3477 * match.pd: Simplify (tan (atan x)) to x.
3479 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3481 * builtins.c (fold_builtin_cproj): Delete.
3482 (fold_builtin_1): Handle constant arguments here.
3483 (build_complex_cproj): Move and rename to...
3484 * tree.c: (build_complex_inf): ...this.
3485 * tree.h (build_complex_inf): Declare.
3486 * match.pd: Fold cproj(x)->x if x has no infinity.
3487 Use build_complex_inf for existing cproj rules.
3489 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3492 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
3493 already have a comparison result.
3495 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3498 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
3499 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
3500 (aarch64_classify_address): Likewise.
3501 (aarch64_secondary_reload): Likewise.
3502 (aarch64_override_options_after_change_1): Adjust.
3503 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3504 Use aarch64_nopcrelative_literal_loads.
3505 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3506 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3509 2015-10-21 Martin Sebor <msebor@redhat.com>
3512 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
3513 (print_filtered_help): Reference aliased option's name and encourage
3514 readers to use it in preference to the alias if the former is not
3515 documented. Mention when using an option is diagnosed.
3516 * gcc.c (display_help): End each sentence with a period.
3518 * common.opt: End each sentence that describes an option with
3520 * config/aarch64/aarch64.opt: Same.
3521 * config/alpha/alpha.opt: Same.
3522 * config/arc/arc.opt: Same.
3523 * config/arm/arm.opt: Same.
3524 * config/avr/avr.opt: Same.
3525 * config/bfin/bfin.opt: Same.
3526 * config/c6x/c6x.opt: Same.
3527 * config/cr16/cr16.opt: Same.
3528 * config/cris/cris.opt: Same.
3529 * config/cris/linux.opt: Same.
3530 * config/darwin.opt: Same.
3531 * config/epiphany/epiphany.opt: Same.
3532 * config/fr30/fr30.opt: Same.
3533 * config/frv/frv.opt: Same.
3534 * config/ft32/ft32.opt: Same.
3535 * config/g.opt: Same.
3536 * config/h8300/h8300.opt: Same.
3537 * config/i386/cygming.opt: Same.
3538 * config/i386/djgpp.opt: Same.
3539 * config/i386/i386.opt: Same.
3540 * config/i386/interix.opt: Same.
3541 * config/i386/mingw-w64.opt: Same.
3542 * config/i386/mingw.opt: Same.
3543 * config/ia64/ia64.opt: Same.
3544 * config/ia64/ilp32.opt: Same.
3545 * config/iq2000/iq2000.opt: Same.
3546 * config/linux.opt: Same.
3547 * config/lm32/lm32.opt: Same.
3548 * config/lynx.opt: Same.
3549 * config/m32c/m32c.opt: Same.
3550 * config/m32r/m32r.opt: Same.
3551 * config/m68k/ieee.opt: Same.
3552 * config/m68k/m68k.opt: Same.
3553 * config/mcore/mcore.opt: Same.
3554 * config/mep/mep.opt: Same.
3555 * config/microblaze/microblaze.opt: Same.
3556 * config/mips/mips.opt: Same.
3557 * config/mmix/mmix.opt: Same.
3558 * config/mn10300/mn10300.opt: Same.
3559 * config/moxie/moxie.opt: Same.
3560 * config/msp430/msp430.opt: Same.
3561 * config/nios2/elf.opt: Same.
3562 * config/nios2/nios2.opt: Same.
3563 * config/nvptx/nvptx.opt: Same.
3564 * config/pa/pa-hpux.opt: Same.
3565 * config/pa/pa-hpux1010.opt: Same.
3566 * config/pa/pa-hpux1111.opt: Same.
3567 * config/pa/pa-hpux1131.opt: Same.
3568 * config/pa/pa.opt: Same.
3569 * config/pa/pa64-hpux.opt: Same.
3570 * config/pdp11/pdp11.opt: Same.
3571 * config/rl78/rl78.opt: Same.
3572 * config/rs6000/476.opt: Same.
3573 * config/rs6000/aix64.opt: Same.
3574 * config/rs6000/darwin.opt: Same.
3575 * config/rs6000/linux64.opt: Same.
3576 * config/rs6000/rs6000.opt: Same.
3577 * config/rs6000/sysv4.opt: Same.
3578 * config/s390/s390.opt: Same.
3579 * config/s390/tpf.opt: Same.
3580 * config/sh/sh.opt: Same.
3581 * config/sol2.opt: Same.
3582 * config/sparc/long-double-switch.opt: Same.
3583 * config/sparc/sparc.opt: Same.
3584 * config/spu/spu.opt: Same.
3585 * config/stormy16/stormy16.opt: Same.
3586 * config/tilegx/tilegx.opt: Same.
3587 * config/tilepro/tilepro.opt: Same.
3588 * config/v850/v850.opt: Same.
3589 * config/vax/vax.opt: Same.
3590 * config/visium/visium.opt: Same.
3591 * config/vms/vms.opt: Same.
3592 * config/vxworks.opt: Same.
3593 * config/xtensa/xtensa.opt: Same.
3595 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3596 Sebastian Pop <s.pop@samsung.com>
3598 * graphite-scop-detection.c (parameter_index_in_region): Update call to
3599 invariant_in_sese_p_rec.
3600 * graphite-sese-to-poly.c (extract_affine): Same.
3601 * sese.c (invariant_in_sese_p_rec): Pass in an extra
3602 parameter has_vdefs.
3603 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
3604 variable depends on virtual definitions in the current region.
3605 * sese.h (invariant_in_sese_p_rec): Update declaration.
3607 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3608 Sebastian Pop <s.pop@samsung.com>
3610 * graphite-scop-detection.c (build_scops): Do not handle scops
3611 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
3612 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
3614 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
3616 * config.in: Regenerate.
3617 * configure: Regenerate.
3618 * configure.ac (CHECKING_P): Define.
3619 * system.h: Use CHECKING_P.
3621 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3624 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
3625 is negative we don't know the type.
3626 (check_stmt_for_type_change): Skip constructors of non-polymorphic
3627 types as those won't help devirutalization.
3629 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3631 * fold-const.c (operand_equal_p): Add code matching empty constructors.
3633 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
3635 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
3637 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
3638 Add comments on sign of the result.
3639 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
3640 Recurse on operand #1 instead of operand #0.
3641 <CEIL_MOD_EXPR>: Do not recurse.
3642 <ROUND_MOD_EXPR>: Likewise.
3644 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3646 * cfgrtl.c (pass_free_cfg::execute): Adjust.
3647 * final.c (dbr_sequence_length): Always define.
3648 (shorten_branches): Adjust.
3649 * genattr-common.c (main): Always define DELAY_SLOTS.
3650 * genattr.c (main): Unconditionally declare functions and define
3651 macros related to delay slots.
3652 * genattrtab.c (write_eligible_delay): Adjust.
3653 (main): Always write out delay slot functions.
3654 * opts.c (default_options_table): Adjust.
3655 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
3656 (redirect_with_delay_list_safe_p): Likewise.
3657 (fill_simple_delay_slots): Likewise.
3658 (fill_slots_from_thread): Likewise.
3659 (make_return_insns): Likewise.
3660 (dbr_schedule): Likewise.
3661 (rest_of_handle_delay_slots): Likewise.
3662 (pass_delay_slots::gate): Likewise.
3663 * toplev.c (process_options): Likewise.
3665 2015-10-21 Richard Henderson <rth@redhat.com>
3667 * targhooks.c (default_addr_space_pointer_mode): Remove check
3668 for generic address space.
3669 (default_addr_space_address_mode): Likewise.
3670 (default_addr_space_valid_pointer_mode): Likewise.
3671 (default_addr_space_legitimate_address_p): Likewise.
3672 (default_addr_space_legitimize_address): Likewise.
3673 * target.def (addr_space.pointer_mode): Update documentation
3674 of default behavior.
3675 (addr_space.address_mode): Likewise.
3678 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
3681 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3683 * builtins.c (fold_builtin_cabs): Delete.
3684 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3685 * match.pd: Add rules previously handled by fold_builtin_cabs.
3687 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3689 * fold-const.h (fold_strip_sign_ops): Delete.
3690 * fold-const.c (fold_strip_sign_ops): Likewise.
3691 (fold_unary_loc, fold_binary_loc): Remove calls to it.
3692 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
3693 (fold_builtin_ccos): Delete.
3694 (fold_builtin_pow): Don't call fold_strip_sign_ops.
3695 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
3696 Remove fndecl argument.
3697 (fold_builtin_1): Update calls accordingly. Handle constant
3698 cos, cosh, ccos and ccosh here.
3700 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3702 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
3703 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
3704 * common.opt (fssa-backprop): New option.
3705 * fold-const.h (negate_mathfn_p): Declare.
3706 * fold-const.c (negate_mathfn_p): Make public.
3707 * timevar.def (TV_TREE_BACKPROP): New.
3708 * tree-pass.h (make_pass_backprop): Declare.
3709 * passes.def (pass_backprop): Add.
3710 * gimple-ssa-backprop.c: New file.
3712 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3713 Sebastian Pop <s.pop@samsung.com>
3715 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
3716 Do not call create_empty_if_region_on_edge when cond_expr is true.
3717 (translate_isl_ast_node_for): Check whether a guard has been generated.
3719 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3721 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
3722 (operator=): Removed.
3723 (dr_info): Make alias_set number the last argument with default
3724 value of invalid_alias_set.
3725 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
3727 (rewrite_reductions_out_of_ssa): Iterate only through the
3728 basic blocks which are inside region.
3729 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
3730 * sese.h (struct sese_l): Removed assignment operator.
3731 (split_region_for_bb): Removed dead code.
3733 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3735 * graphite-poly.h (struct dr_info): Removed conversion constructor.
3736 (struct scop): Renamed scop::region to scop::scop_info
3737 (scop_set_region): Same.
3738 (SCOP_REGION): Removed
3739 (SCOP_CONTEXT): Removed.
3740 (POLY_SCOP_P): Removed.
3741 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3742 Rename scop->region to scop->scop_info.
3743 (add_parameters_to_ivs_params): Same.
3744 (graphite_regenerate_ast_isl): Same.
3745 * graphite-poly.c (new_scop): Same.
3747 (print_scop_params): Same.
3748 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
3749 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
3750 (dot_all_scops_1): Rename scop->region to scop->scop_info.
3751 (scop_detection::nb_pbbs_in_loops): Same.
3752 (find_scop_parameters): Same.
3753 (try_generate_gimple_bb): Same.
3754 (gather_bbs::before_dom_children): Same.
3755 (gather_bbs::after_dom_children): Same.
3756 (build_scops): Same.
3757 * graphite-sese-to-poly.c (build_scop_scattering): Same.
3758 (extract_affine_chrec): Same.
3759 (extract_affine): Same.
3760 (set_scop_parameter_dim): Same.
3761 (build_loop_iteration_domains): Same.
3762 (create_pw_aff_from_tree): Same.
3763 (add_param_constraints): Same.
3764 (build_scop_iteration_domain): Same.
3765 (build_scop_drs): Same.
3766 (analyze_drs_in_stmts): Same.
3767 (insert_out_of_ssa_copy_on_edge): Same.
3768 (rewrite_close_phi_out_of_ssa):Same.
3769 (rewrite_reductions_out_of_ssa):Same.
3770 (handle_scalar_deps_crossing_scop_limits):Same.
3771 (rewrite_cross_bb_scalar_deps):Same.
3772 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
3773 (build_poly_scop):Same.
3774 (build_alias_set): Use pointer to dr_info.
3775 * graphite.c (print_graphite_scop_statistics):
3776 (graphite_transform_loops):
3777 * sese.h (struct sese_l): Remove conversion constructor.
3779 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3782 * tree.c (verify_type): Verify that TYPE_MODE match
3783 between TYPE_CANONICAL and type.
3784 * expr.c (store_expr_with_bounds): Revert my previous change.
3785 * expmed.c (store_bit_field_1): Revert prevoius change.
3786 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
3787 to match for all types.
3789 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
3791 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
3794 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
3796 * doc/tm.texi: Regenerated.
3797 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
3798 * stor-layout.c (layout_type): Use mode to get vector mask size.
3799 * target.def (get_mask_mode): New.
3800 * targhooks.c (default_get_mask_mode): New.
3801 * targhooks.h (default_get_mask_mode): New.
3802 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
3804 * tree.c (MAX_BOOL_CACHED_PREC): New.
3805 (nonstandard_boolean_type_cache): New.
3806 (build_nonstandard_boolean_type): New.
3807 (make_vector_type): Vector mask has no canonical type.
3808 (build_truth_vector_type): New.
3809 (build_same_sized_truth_vector_type): New.
3810 (truth_type_for): Support vector masks.
3811 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
3812 (build_truth_vector_type): New.
3813 (build_same_sized_truth_vector_type): New.
3814 (build_nonstandard_boolean_type): New.
3815 * tree-cfg.c (verify_gimple_comparison) Require boolean
3816 vector type for vector comparison.
3817 (verify_gimple_assign_ternary): Likewise.
3818 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
3820 * tree-vect-stmts.c (vectorizable_condition): Use boolean
3821 vector type for vector comparison.
3822 * tree-vect-generic.c (elem_op_func): Add new operand to hold
3824 (do_unop): Adjust to modified function type.
3825 (do_binop): Likewise.
3826 (do_plus_minus): Likewise.
3827 (do_negate); Likewise.
3828 (expand_vector_piecewise): Likewise.
3829 (do_cond): Likewise.
3830 (do_compare): Use comparison instead of condition.
3831 (expand_vector_divmod): Use boolean vector type for comparison.
3832 (expand_vector_operations_1): Skip scalar mask operations.
3834 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
3836 * omp-low.c (simd_clone_create): Set in_other_partition
3839 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3841 * doc/extend.exp (Local Register Variables): Rewrite.
3843 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3845 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
3846 and x*x in cases where the operands are sign ops. Extend these
3847 rules to handle copysign as a sign op (including for cos, cosh
3848 and pow, which already treated negate and abs as sign ops).
3850 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
3853 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
3854 for 64-bit MS_ABI targets also when default incoming stack boundary
3857 2015-10-21 Richard Biener <rguenther@suse.de>
3859 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
3860 cond stmts, enhanced and split out from ...
3861 (vn_phi_eq): ... here.
3863 2015-10-21 Richard Biener <rguenther@suse.de>
3866 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
3867 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
3868 (tree_single_nonnegative_warnv_p): ... here. For SSA names
3869 make sure they are not registered for update.
3871 2015-10-21 Richard Biener <rguenther@suse.de>
3873 PR tree-optimization/68026
3874 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
3875 unsigned VARYING values.
3877 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
3879 * asan.c (asan_emit_stack_protection): Don't pass local stack to
3880 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
3881 NULL and use local stack than.
3882 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
3883 in addition to __asan_init.
3884 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
3885 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
3886 * asan.h (asan_intercepted_p): Handle new string builtins.
3887 * ubsan.c (ubsan_use_new_style_p): New function.
3888 (ubsan_instrument_float_cast): If location is unknown, assign
3889 input_location to loc. Propagate loc to ubsan_create_data if
3890 ubsan_use_new_style_p returned true.
3892 2015-10-21 Jeff Law <law@redhat.com>
3894 * Makefile.in (OBJS): Remove sched-vis.c
3895 * sched-vis.c: Removed. Code moved into...
3896 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
3897 * rtl.h: Remove prototypes for functions now living in print-rtl.c
3898 * print-rtl.h Add prototypes for new functions in print-rtl.c.
3899 * auto-inc-dec.c: Include print-rtl.h
3900 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
3901 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
3903 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
3906 2015-10-21 Richard Biener <rguenther@suse.de>
3907 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3909 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
3911 Move (a * (1 << b)) is (a << b) to match.pd.
3912 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
3913 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
3914 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
3916 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
3918 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
3919 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
3920 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
3922 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
3924 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
3926 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
3927 Szabolcs Nagy <szabolcs.nagy@arm.com>
3928 Alan Modra <amodra@gmail.com>
3930 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
3931 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
3932 (LINK_SPEC): Add %(link_secure_plt).
3933 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
3934 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
3936 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
3937 Szabolcs Nagy <szabolcs.nagy@arm.com>
3939 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
3940 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
3942 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3944 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
3946 (fusion_load_store): Use it.
3947 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
3948 ldp and stp in VD modes.
3949 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
3950 (store_pair<mode>, VD): Likewise.
3952 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
3954 PR rtl-optimization/67609
3955 * lra-splill.c (lra_final_code_change): Don't remove all
3958 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3960 * simplify-rtx.c (simplify_binary_operation): If either operand was
3961 a constant pool reference use them if all other simplifications failed.
3963 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3965 * config/aarch64/aarch64.md
3966 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
3967 * config/aarch64/aarch64-simd.md
3968 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
3969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
3970 (aarch64_fpconst_pow_of_2): New function.
3971 (aarch64_vec_fpconst_pow_of_2): Likewise.
3972 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
3974 (aarch64_vec_fpconst_pow_of_2): Likewise.
3975 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
3976 (aarch64_fp_vec_pow2): Likewise.
3978 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
3980 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
3981 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
3982 * config/alpha/alpha.c (alpha_function_arg_advance): Update
3983 ALPHA_ARG_SIZE usage.
3984 (alpha_arg_partial_bytes): Ditto.
3986 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3989 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
3990 error_mark_node decls.
3992 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3996 * common/config/i386/i386-common.c (ix86_handle_option): Remove
3997 OPT_miamcu handling.
3998 * config/i386/i386.c (PTA_NO_80387): New macro.
3999 (processor_alias_table): Add PTA_NO_80387 to lakemont.
4000 (ix86_option_override_internal): Update MASK_80387 from
4001 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
4002 SSE math only if 80387 is supported. Don't change
4004 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4006 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4007 if TARGET_80387 is true and TARGET_IAMCU is false.
4008 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4009 is true and TARGET_IAMCU_P is false.
4011 2015-10-20 Richard Biener <rguenther@suse.de>
4013 PR tree-optimization/68017
4014 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4016 2015-10-20 Martin Liska <mliska@suse.cz>
4018 * cgraphclones.c (cgraph_node::create_virtual_clone):
4019 Verify cgraph_node.local.versionable instead of calling
4020 tree_versionable_function_p.
4021 * ipa-cp.c (determine_versionability): Save the information
4022 to ipa_node_params summary.
4023 (ipcp_versionable_function_p): Use it.
4024 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4025 (ipcp_generate_summary): Do not compute cgraph_node
4027 * ipa-inline-analysis.c (inline_generate_summary): Compute
4028 versionability for all cgraph nodes.
4029 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4030 ipa_node_params::versionability.
4031 * ipa-prop.h (struct ipa_node_params): Declare it.
4033 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4036 * varasm.c (assemble_variable): Move special vtv handling to..
4037 (handle_vtv_comdat_sections): .. here. New function.
4038 (output_object_block): Handle vtv sections.
4040 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4043 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4045 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
4047 * doc/extend.texi: Update documentation WRT inline functions.
4049 2015-10-20 Alan Modra <amodra@gmail.com>
4052 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4053 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4054 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4056 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
4058 PR rtl-optimization/66790
4059 * df.h (DF_MIR): New macro.
4060 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4061 (DF_MIR_INFO_BB): New macro.
4062 (DF_MIR_IN, DF_MIR_OUT): New macros.
4063 (struct df_mir_bb_info): New.
4064 (df_mir): New macro.
4065 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4067 (df_mir_get_bb_info): New.
4068 * df-problems.c (struct df_mir_problem_data): New.
4069 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4070 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4071 df_mir_confluence_0, df_mir_confluence_n,
4072 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4073 df_mir_bottom_dump, df_mir_verify_solution_start,
4074 df_mir_verify_solution_end): New.
4076 (df_mir_add_problem, df_mir_simulate_one_insn): New.
4077 * timevar.def (TV_DF_MIR): New.
4078 * ree.c: Include bitmap.h
4079 (add_removable_extension): Add an INIT_REGS parameter. Use it
4080 to skip zero-extensions that may get an uninitialized register.
4081 (find_removable_extensions): Compute must-initialized registers
4082 using the MIR dataflow problem. Update the call to
4083 add_removable_extension.
4084 (find_and_remove_re): Call df_mir_add_problem.
4086 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
4088 * common/config/mn10300/mn10300-common.c
4089 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4090 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4092 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
4094 * doc/extend.texi (Explicit Register Variables): Simplify and
4095 avoid unnecessary and confusion abbreviations. Update cross
4097 doc/implement-c.tex: Update cross reference.
4099 2015-10-19 Jeff Law <law@redhat.com>
4101 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4102 that create irreducible loops unless the path elimiantes a multiway
4105 2015-10-19 Richard Biener <rguenther@suse.de>
4107 PR tree-optimization/67975
4108 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4109 * tree-cfg.c (extract_true_false_controlled_edges): Split out
4110 core worker from ...
4111 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4112 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4113 instead of block number for PHIs with two or one args.
4114 (vn_phi_eq): Compare edge predicates of PHIs that are in different
4117 2015-10-19 Richard Biener <rguenther@suse.de>
4119 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4120 (gimple_stmt_nonnegative_warnv_p): Use it.
4121 * match.pd (CPROJ): New operator list.
4122 (cproj (complex ...)): Move simplifications from ...
4123 * builtins.c (fold_builtin_cproj): ... here.
4125 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4127 * config/i386/i386.c (ix86_expand_vector_move): Use
4128 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4131 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4133 * doc/invoke.texi: Replace @optindex with @opindex.
4135 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4138 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4139 arch= is set, clear all bits in x_ix86_isa_flags, except for
4140 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4142 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
4145 * common.opt (fkeep-static-functions): New option.
4146 * doc/invoke.texi: Document it.
4147 * cgraphunit.c (cgraph_node::finalize_function): Use it.
4149 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4151 * sched-int.h (struct autopref_multipass_data_): Remove offset
4152 field. Add min_offset, max_offset, multi_mem_insn_p fields.
4153 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4154 (autopref_multipass_init): Use it. Handle PARALLEL sets.
4155 (autopref_rank_data): New function.
4156 (autopref_rank_for_schedule): Use it.
4157 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4159 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
4162 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4164 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4166 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4167 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
4168 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4169 (STANDARD_STARTFILE_PREFIX_1): New.
4170 (STANDARD_STARTFILE_PREFIX_2): New.
4172 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4174 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4175 (darwin_driver_init): Note a version-min when provided on the c/l.
4176 * config/darwin.h (%darwin_minversion): Remove.
4177 * config/i386/darwin.h: Likewise.
4178 * config/rs6000/darwin.h: Likewise.
4179 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4180 rather than an arbitrary constant.
4182 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4184 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4185 PPC, detect conflicts between -arch and multilib settings. Detect
4186 and warn about conflicts between multiple -arch definitions.
4188 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4190 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4192 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4194 * lra-constraints.c (add_next_usage_insn): Change argument type
4195 from rtx to rtx_insn *.
4197 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
4199 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4202 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
4204 * config/tilepro/gen-mul-tables.cc: Adjust include files.
4205 * config/tilegx/mul-tables.c: Regenerate.
4206 * config/tilepro/mul-tables.c: Regenerate.
4208 * config/tilegx/tilegx-c.c: Adjust include files.
4209 * config/tilegx/tilegx.c: Likewise.
4210 * config/tilepro/tilepro-c.c: Likewise.
4211 * config/tilepro/tilepro.c: Likewise.
4212 * config/aarch64/aarch64-builtins.c: Likewise.
4213 * config/aarch64/aarch64.c: Likewise.
4214 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4215 * config/alpha/alpha.c: Likewise.
4216 * config/arc/arc.c: Likewise.
4217 * config/arm/aarch-common.c: Likewise.
4218 * config/arm/arm-builtins.c: Likewise.
4219 * config/arm/arm-c.c: Likewise.
4220 * config/arm/arm.c: Likewise.
4221 * config/avr/avr-c.c: Likewise.
4222 * config/avr/avr-devices.c: Likewise.
4223 * config/avr/avr-log.c: Likewise.
4224 * config/avr/avr.c: Likewise.
4225 * config/bfin/bfin.c: Likewise.
4226 * config/c6x/c6x.c: Likewise.
4227 * config/cr16/cr16.c: Likewise.
4228 * config/cris/cris.c: Likewise.
4229 * config/darwin-c.c: Likewise.
4230 * config/darwin-driver.c: Likewise.
4231 * config/darwin.c: Likewise.
4232 * config/default-c.c: Likewise.
4233 * config/epiphany/epiphany.c: Likewise.
4234 * config/epiphany/mode-switch-use.c: Likewise.
4235 * config/epiphany/resolve-sw-modes.c: Likewise.
4236 * config/fr30/fr30.c: Likewise.
4237 * config/frv/frv.c: Likewise.
4238 * config/ft32/ft32.c: Likewise.
4239 * config/glibc-c.c: Likewise.
4240 * config/h8300/h8300.c: Likewise.
4241 * config/i386/host-cygwin.c: Likewise.
4242 * config/i386/host-mingw32.c: Likewise.
4243 * config/i386/i386-c.c: Likewise.
4244 * config/i386/i386.c: Likewise.
4245 * config/i386/msformat-c.c: Likewise.
4246 * config/i386/winnt-cxx.c: Likewise.
4247 * config/i386/winnt-stubs.c: Likewise.
4248 * config/i386/winnt.c: Likewise.
4249 * config/ia64/ia64-c.c: Likewise.
4250 * config/ia64/ia64.c: Likewise.
4251 * config/iq2000/iq2000.c: Likewise.
4252 * config/lm32/lm32.c: Likewise.
4253 * config/m32c/m32c-pragma.c: Likewise.
4254 * config/m32c/m32c.c: Likewise.
4255 * config/m32r/m32r.c: Likewise.
4256 * config/mcore/mcore.c: Likewise.
4257 * config/mep/mep-pragma.c: Likewise.
4258 * config/mep/mep.c: Likewise.
4259 * config/microblaze/microblaze-c.c: Likewise.
4260 * config/microblaze/microblaze.c: Likewise.
4261 * config/mips/mips-tables.opt
4262 * config/mips/mips.c: Likewise.
4263 * config/mmix/mmix.c: Likewise.
4264 * config/mn10300/mn10300.c: Likewise.
4265 * config/moxie/moxie.c: Likewise.
4266 * config/msp430/msp430-c.c: Likewise.
4267 * config/msp430/msp430.c: Likewise.
4268 * config/nds32/nds32-cost.c: Likewise.
4269 * config/nds32/nds32-fp-as-gp.c: Likewise.
4270 * config/nds32/nds32-intrinsic.c: Likewise.
4271 * config/nds32/nds32-isr.c: Likewise.
4272 * config/nds32/nds32-md-auxiliary.c: Likewise.
4273 * config/nds32/nds32-memory-manipulation.c: Likewise.
4274 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4275 * config/nds32/nds32-predicates.c: Likewise.
4276 * config/nds32/nds32.c: Likewise.
4277 * config/nios2/nios2.c: Likewise.
4278 * config/nvptx/mkoffload.c: Likewise.
4279 * config/nvptx/nvptx.c: Likewise.
4280 * config/pa/pa.c: Likewise.
4281 * config/pdp11/pdp11.c: Likewise.
4282 * config/rl78/rl78-c.c: Likewise.
4283 * config/rl78/rl78.c: Likewise.
4284 * config/rs6000/host-darwin.c: Likewise.
4285 * config/rs6000/rs6000-c.c: Likewise.
4286 * config/rs6000/rs6000-linux.c: Likewise.
4287 * config/rs6000/rs6000.c: Likewise.
4288 * config/rx/rx.c: Likewise.
4289 * config/s390/s390-c.c: Likewise.
4290 * config/s390/s390.c: Likewise.
4291 * config/sh/sh-c.c: Likewise.
4292 * config/sh/sh-mem.cc: Likewise.
4293 * config/sh/sh.c: Likewise.
4294 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4295 * config/sh/sh_treg_combine.cc: Likewise.
4296 * config/sol2-c.c: Likewise.
4297 * config/sol2-cxx.c: Likewise.
4298 * config/sol2-stubs.c: Likewise.
4299 * config/sol2.c: Likewise.
4300 * config/sparc/sparc-c.c: Likewise.
4301 * config/sparc/sparc.c: Likewise.
4302 * config/spu/spu-c.c: Likewise.
4303 * config/spu/spu.c: Likewise.
4304 * config/stormy16/stormy16.c: Likewise.
4305 * config/v850/v850-c.c: Likewise.
4306 * config/v850/v850.c: Likewise.
4307 * config/vax/vax.c: Likewise.
4308 * config/visium/visium.c: Likewise.
4309 * config/vms/vms-c.c: Likewise.
4310 * config/vms/vms.c: Likewise.
4311 * config/vxworks.c: Likewise.
4312 * config/winnt-c.c: Likewise.
4313 * config/xtensa/xtensa.c: Likewise.
4315 2015-10-16 Christian Bruel <christian.bruel@st.com>
4318 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4319 (FUNCTION_BOUNDARY_P): New macro:
4320 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4322 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4323 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4324 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4325 * function.c (allocate_struct_function): Call
4326 relayout_function hook.
4327 * passes.c (rest_of_decl_compilation): Likewise.
4329 2015-10-16 Christian Bruel <christian.bruel@st.com>
4332 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4333 * config/arm/arm.c (arm_option_override_internal): Call
4334 arm_override_options_after_change_1.
4335 (arm_override_options_after_change): New function.
4336 (arm_override_options_after_change_1): Likewise.
4337 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4339 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4342 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4345 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
4347 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4348 argument is an ADDR_EXPR.
4350 2015-10-16 Richard Biener <rguenther@suse.de>
4352 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4353 and get rid of force_gimple_operand_gsi.
4354 (gimple_fold_builtin_memory_chk): Likewise.
4355 (gimple_fold_builtin_stxcpy_chk): Likewise.
4356 (rewrite_to_defined_overflow): Likewise.
4357 (gimple_convert_to_ptrofftype): New function.
4358 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4360 2015-10-16 Richard Biener <rguenther@suse.de>
4362 * tree-nested.h (build_addr): Adjust prototype.
4363 * tree-nested.c (build_addr): Remove context argument and use
4365 (get_static_chain): Adjust calls to build_addr.
4366 (convert_nl_goto_reference): Likewise.
4367 (convert_tramp_reference_op): Likewise.
4368 (finalize_nesting_tree_1): Likewise.
4369 * value-prof.c (gimple_ic): Likewise.
4370 * gimple-low.c (lower_builtin_setjmp): Likewise.
4371 * tree-parloops.c (take_address_of): Likewise.
4372 (create_call_for_reduction_1): Likewise.
4373 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4374 (gimple_gen_ic_func_profiler): Likewise.
4376 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4378 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4381 2015-10-16 Michael Collison <michael.collison@linaro.org>
4382 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4384 * match.pd ((x < y) && (x < z) -> x < min (y,z),
4385 (x > y) and (x > z) -> x > max (y,z))
4387 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4388 Szabolcs Nagy <szabolcs.nagy@arm.com>
4390 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4391 (DYNAMIC_LINKER): Renamed to ...
4392 (GLIBC_DYNAMIC_LINKER): This.
4393 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4395 2015-10-15 Marek Polacek <polacek@redhat.com>
4397 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4398 gimple_call_builtin instead of is_gimple_call.
4400 2015-10-15 Richard Biener <rguenther@suse.de>
4402 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4404 2015-10-15 Richard Biener <rguenther@suse.de>
4406 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4407 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4408 * tree-vect-loop.c (get_initial_def_for_induction): Drop
4409 use of force_gimple_operand in favor of gimple_build.
4410 Use vect_get_new_ssa_name.
4411 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4412 (vectorizable_mask_load_store): Likewise.
4413 (vectorizable_call): Likewise.
4414 (vectorizable_store): Likewise.
4415 (vectorizable_load): Likewise.
4416 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4418 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
4420 PR tree-optimization/67945
4421 * tree-pass.h (PROP_gimple_opt_math): New property flag.
4422 * generic-match-head.c (canonicalize_math_p): New function.
4423 * gimple-match-head.c: Include tree-pass.h.
4424 (canonicalize_math_p): New function.
4425 * match.pd: Group math built-in rules into simplifications
4426 and canonicalizations. Guard the latter with canonicalize_math_p.
4427 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4428 PROP_gimple_opt_math property.
4430 2015-10-15 Marek Polacek <polacek@redhat.com>
4432 PR tree-optimization/67953
4433 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
4435 2015-10-15 Jiong Wang <jiong.wang@arm.com>
4437 * config.gcc: Recognize "." in architecture base name for AArch64.
4439 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4441 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
4443 * config/mips/mips.c (mips_setup_incoming_varargs): Use
4444 ROUND_DOWN to calculate off.
4445 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
4446 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
4449 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
4451 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
4453 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
4454 Torvald Riegel <triegel@redhat.com>
4457 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
4458 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4459 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
4460 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
4461 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
4462 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4463 trechkpt, treclaim, tsr, ttest): New define_expands.
4464 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4465 __TM_FENCE__ for htm.
4466 * doc/extend.texi: Update documentation for htm builtins.
4468 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4471 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
4472 REG_CFA_EXPRESSION to aligned SSE stores.
4474 2015-10-14 Jeff Law <law@redhat.com>
4476 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
4477 num_threaded_edges for successful FSM threads too.
4479 2015-10-14 Richard Biener <rguenther@suse.de>
4481 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
4482 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
4483 (vect_get_vec_def_for_operand): Remove unused parameter.
4484 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
4485 (vect_create_epilog_for_reduction): Likewise.
4486 (vectorizable_reduction): Likewise.
4487 (vectorizable_live_operation): Likewise.
4488 * tree-vect-patterns.c (type_conversion_p): Likewise.
4489 (vect_recog_vector_vector_shift_pattern): Likewise.
4490 (check_bool_pattern): Likewise.
4491 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4492 (vect_analyze_slp_cost_1): Likewise.
4493 * tree-vect-stmts.c (process_use): Likewise.
4494 (vect_get_vec_def_for_operand): Do not handle reductions.
4495 (vect_get_vec_defs): Adjust.
4496 (vectorizable_mask_load_store): Likewise.
4497 (vectorizable_call): Likewise.
4498 (vectorizable_simd_clone_call): Likewise.
4499 (vect_get_loop_based_defs): Likewise.
4500 (vectorizable_conversion): Likewise.
4501 (vectorizable_assignment): Likewise.
4502 (vectorizable_shift): Likewise.
4503 (vectorizable_operation): Likewise.
4504 (vectorizable_store): Likewise.
4505 (vectorizable_load): Likewise.
4506 (vect_is_simple_cond): Likewise.
4507 (vectorizable_condition): Likewise.
4508 (vect_is_simple_use): Remove unused parameters.
4509 (vect_is_simple_use_1): Adjust and rename.
4511 2015-10-14 Richard Biener <rguenther@suse.de>
4513 PR tree-optimization/67915
4514 * match.pd: Handle comparisons of addresses of STRING_CSTs.
4515 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
4516 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
4517 stmt folding in favor of GIMPLE one.
4519 2015-10-14 Marek Polacek <polacek@redhat.com>
4521 PR tree-optimization/67815
4522 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
4523 (reassociate_bb): Call it.
4525 2015-10-14 Richard Biener <rguenther@suse.de>
4527 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4528 Reset info at start.
4529 (vect_analyze_group_access_1): Add debug print.
4530 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
4531 (vect_compute_single_scalar_iteration_cost): ... to this.
4532 (vect_analyze_loop_2): Adjust.
4533 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
4534 * tree-vectorizer.h: ... here.
4535 (add_stmt_info_to_vec): Remove.
4536 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
4538 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
4540 * targhooks.c (default_target_option_pragma_parse): Do not warn if
4541 called on behalf of "#pragma GCC pop_options".
4543 2015-10-14 Tom de Vries <tom@codesourcery.com>
4545 * cfganal.c (verify_no_unreachable_blocks): New function.
4546 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
4547 verify_no_unreachable_blocks.
4548 cfganal.h (verify_no_unreachable_blocks): Declare.
4550 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
4552 * common.opt: Add flag_checking.
4553 * system.h (CHECKING_P): Define.
4555 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4556 Aldy Hernandez <aldyh@redhat.com>
4557 Ilya Verbin <ilya.verbin@intel.com>
4559 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
4560 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
4561 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
4562 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
4563 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
4564 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
4565 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
4566 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
4567 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
4568 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
4569 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4570 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4571 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
4572 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4573 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
4574 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4575 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4576 (struct cgraph_simd_clone_arg): Adjust comment.
4577 * coretypes.h (struct gomp_ordered): New forward decl.
4578 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
4579 set critical clauses to it.
4580 (gimple_build_omp_ordered): Return gomp_ordered * instead of
4581 gimple *. Add CLAUSES argument, set ordered clauses to it.
4582 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
4584 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
4585 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
4586 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
4587 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
4588 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
4589 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
4590 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
4591 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
4593 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
4594 (gomp_critical): Add clauses field.
4595 (gomp_ordered): New struct.
4596 (is_a_helper <gomp_ordered *>::test): New inline.
4597 (gimple_build_omp_critical): Add CLAUSES argument.
4598 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
4599 instead of gimple *.
4600 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
4601 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
4602 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
4603 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
4605 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
4606 (dump_gimple_omp_target): Handle enter data and exit data.
4607 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
4608 (dump_gimple_omp_critical): Print clauses.
4609 (dump_gimple_omp_ordered): New function.
4610 (dump_gimple_omp_task): Handle taskloop.
4611 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
4613 * gimple-walk.c (walk_gimple_op): Walk clauses on
4614 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
4615 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
4616 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
4617 (struct gimplify_omp_ctx): Add loop_iter_var,
4618 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
4619 and target_firstprivatize_array_bases fields.
4620 (delete_omp_context): Release loop_iter_var.
4621 (gimplify_bind_expr): Handle ORT_NONE.
4622 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
4623 ORT_COMBINED_TARGET.
4624 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
4625 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
4626 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
4627 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
4628 ctx->target_map_scalars_firstprivate.
4629 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
4630 data sharing clauses. For data sharing clause with VLA decl
4631 on omp target/target data don't add firstprivate for the pointer.
4632 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
4633 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
4634 the addition of ORT_COMBINED_TARGET.
4635 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
4636 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
4637 pointers as zero length array sections and
4638 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
4640 (omp_check_private): Handle omp_member_access_dummy_var vars.
4641 (find_decl_expr): New function.
4642 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
4643 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
4644 Handle OMP_CLAUSE_GANG separately. Handle
4645 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4646 clauses. Diagnose linear clause on combined
4647 distribute {, parallel for} simd construct, unless it is the loop
4648 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
4649 Handle map clauses with COMPONENT_REF. Initialize
4650 ctx->target_map_scalars_firstprivate,
4651 ctx->target_firstprivatize_array_bases and
4652 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
4653 linear clause even to target region if combined. Remove
4654 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
4655 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
4656 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
4657 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
4658 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
4659 For linear clause on worksharing loop combined with parallel add
4660 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
4661 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
4662 omp_member_access_dummy_var vars. Add lastprivate clause to outer
4664 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
4665 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
4666 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
4668 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
4669 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
4670 in target body. Handle removal of struct mapping if struct is not
4671 seen in target body. Remove GOMP_MAP_STRUCT map clause on
4672 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
4673 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
4674 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
4675 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
4676 clause appear together. Handle
4677 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
4678 clause if it has map-type-modifier always. Handle
4679 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4681 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
4682 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
4684 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
4685 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
4686 iterators in doacross loops.
4687 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
4688 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
4689 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
4690 for the addition of ORT_COMBINED_TARGET.
4691 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
4692 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
4693 and OMP_TARGET_EXIT_DATA.
4694 (gimplify_omp_ordered): New function.
4695 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
4696 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
4697 Gimplify clauses on OMP_CRITICAL.
4698 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
4699 expand_GOMP_SIMD_ORDERED_END): New functions.
4700 * internal-fn.def (GOMP_SIMD_ORDERED_START,
4701 GOMP_SIMD_ORDERED_END): New internal functions.
4702 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
4703 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
4704 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
4705 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
4706 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
4707 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
4708 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
4709 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
4710 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
4711 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
4712 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
4713 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
4714 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
4715 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
4717 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
4718 GOMP_target_data_41, adjust type.
4719 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
4720 GOMP_target_update_41, adjust type.
4721 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
4723 (struct omp_for_data): Add ordered and simd_schedule fields.
4724 (omp_member_access_dummy_var, unshare_and_remap_1,
4725 unshare_and_remap, is_taskloop_ctx): New functions.
4726 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
4727 (extract_omp_for_data): Handle taskloops and doacross loops
4728 and simd schedule modifier.
4729 (omp_adjust_chunk_size): New function.
4730 (get_ws_args_for): Use it.
4731 (lookup_sfield): Change first argument to splay_tree_key,
4732 add overload with first argument tree.
4733 (maybe_lookup_field): Likewise.
4734 (use_pointer_for_field): Handle omp_member_access_dummy_var.
4735 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
4736 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
4737 (build_outer_var_ref): Add LASTPRIVATE argument, handle
4738 taskloops and omp_member_access_dummy_var vars.
4739 (build_sender_ref): Change first argument to splay_tree_key,
4740 add overload with first argument tree.
4741 (install_var_field): For mask & 8 use &DECL_UID as key instead
4743 (fixup_child_record_type): Const qualify *.omp_data_i.
4744 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
4745 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
4746 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
4747 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
4748 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
4749 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
4750 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
4752 (add_taskreg_looptemp_clauses): New function.
4753 (scan_omp_parallel): Use it.
4754 (scan_omp_task): Likewise.
4755 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4756 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
4757 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4758 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
4759 sandwiched taskloop constructs. Type check
4760 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
4761 region. Diagnose depend(source) or depend(sink:...) on
4762 target constructs or task/taskloop.
4763 (handle_simd_reference): Use get_name.
4764 (lower_rec_input_clauses): Likewise. Ignore all
4765 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
4766 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
4767 before passing it to omp_clause_{default,copy}_ctor. Handle
4768 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
4769 lastprivate_firstprivate flag for linear that needs copyin and
4770 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
4771 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
4772 on taskloop lookup decl in outer context. Pass true to
4773 build_outer_var_ref lastprivate argument. Handle
4774 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
4775 outside of outer taskloop for.
4776 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
4778 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
4779 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
4780 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
4781 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
4782 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
4783 abstract origin. Handle omp_member_access_dummy_var vars.
4784 (expand_parallel_call): Use expand_omp_build_assign.
4785 (expand_task_call): Handle taskloop construct expansion. Add
4786 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
4787 integers. Add priority argument to GOMP_task* calls. Or in
4788 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
4790 (expand_omp_build_assign): Add prototype. Add AFTER
4791 argument, if true emit statements after *GSI_P and continue linking.
4792 (expand_omp_taskreg): Adjust expand_task_call caller.
4793 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
4794 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
4795 zero_iter2_bb and first_zero_iter2 arguments, handle computation
4796 of counts even for ordered loops.
4797 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
4798 (expand_omp_ordered_source, expand_omp_ordered_sink,
4799 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
4801 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
4802 clauses on worksharing loop. Handle DOACROSS loop expansion.
4803 (expand_omp_for_static_nochunk): Handle linear clauses on
4804 worksharing loop. Adjust expand_omp_for_init_counts
4806 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
4807 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
4808 expand_omp_for_init_counts callers.
4809 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
4811 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
4812 Handle doacross loops.
4813 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4814 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
4815 GOMP_target_{41,update_41,enter_exit_data} libcalls.
4816 (expand_omp): Don't expand ordered depend constructs here, record
4817 ord_stmt instead for later expand_omp_for_generic.
4818 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4819 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
4820 clause as stand-alone directive.
4821 (lower_omp_ordered_clauses): New function.
4822 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
4823 don't lower anything.
4824 (lower_omp_for_lastprivate): Use last _looptemp_ clause
4825 on taskloop for comparison.
4826 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
4827 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
4828 expansion for linear adjustments.
4829 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4830 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
4831 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
4832 to tree * pointing to the stmt's clauses.
4833 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
4834 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4835 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
4836 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
4837 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
4838 clauses. Always use short kind and 8-bit align shift.
4839 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
4840 (struct lower_omp_regimplify_operands_data): New type.
4841 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
4843 (lower_omp_1): Use lower_omp_regimplify_operands instead of
4844 gimple_regimplify_operands.
4845 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4846 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
4847 clause as stand-alone directive.
4848 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
4849 (simd_clone_mangle): Mangle the various linear kinds
4851 (simd_clone_adjust_argument_types): Handle
4852 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
4853 (simd_clone_init_simd_arrays): Don't do anything for uval.
4854 (simd_clone_adjust): Handle
4855 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4856 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
4857 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
4858 * omp-low.h (omp_member_access_dummy_var): New prototype.
4859 * passes.def (pass_simduid_cleanup): Schedule another copy of the
4860 pass after all optimizations.
4861 * tree.c (omp_clause_code_name): Add entries for
4862 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4863 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4864 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
4865 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
4866 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
4867 OMP_CLAUSE_REDUCTION 5 arguments. Handle
4868 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4869 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
4871 * tree-core.h (enum omp_clause_linear_kind): New.
4872 (struct tree_omp_clause): Change type of map_kind
4873 from unsigned char to unsigned int. Add subcode.if_modifier
4874 and subcode.linear_kind fields.
4875 (enum omp_clause_code): Add
4876 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4877 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4878 (OMP_CLAUSE_REDUCTION): Document
4879 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4880 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
4881 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
4882 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
4884 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
4886 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
4888 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
4889 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
4891 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
4892 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
4893 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
4894 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
4895 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
4896 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
4897 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
4898 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
4899 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
4900 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
4901 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
4902 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
4903 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
4904 * tree-inline.c (remap_gimple_stmt): Handle clauses on
4905 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
4906 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
4907 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
4908 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4909 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4910 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4911 (convert_local_omp_clauses): Likewise.
4912 * tree-pretty-print.c (dump_omp_clause): Handle
4913 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4914 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4915 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
4916 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
4917 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
4918 GOMP_MAP_FORCE_DEALLOC. Handle
4919 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
4920 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
4921 and clauses on OMP_ORDERED and OMP_CRITICAL.
4922 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
4923 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
4924 (vectorize_loops): Adjust comments.
4925 (pass_simduid_cleanup::execute): Likewise.
4926 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4927 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
4928 * wide-int.h (wi::gcd): New.
4930 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
4932 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
4933 (ix86_function_arg_advance): Ditto.
4934 (ix86_function_arg): Ditto.
4935 (ix86_gimplify_va_arg): Ditto.
4936 (ix86_class_max_nregs): Ditto.
4937 (inline_memory_move_cost): Ditto.
4938 (ix86_set_reg_reg_cost): Ditto.
4939 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
4941 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
4944 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
4946 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
4948 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
4949 ROUND_UP macro and UNITS_PER_WORD * 2.
4950 * config/sparc/sparc.c (sparc_compute_frame_size):
4951 Use ROUND_UP and ROUND_DOWN macros where applicable.
4952 (function_arg_record_value, function_arg_record_value_1)
4953 (function_arg_record_value_1): Ditto.
4954 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
4955 alignment to double-word.
4956 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
4957 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
4960 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
4962 * rtl.h (print_insn): Fix prototype.
4964 2015-10-13 Tom de Vries <tom@codesourcery.com>
4966 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
4967 -1. Add assert that returned entry matches phi argument.
4968 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
4969 free_stmt_vec_info_vec ...
4970 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
4973 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
4975 PR tree-optimization/67909, 67947
4976 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
4977 really skip the inner loop.
4979 2015-10-13 Jeff Law <law@redhat.com>
4981 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4982 Allow single block jump threading paths.
4984 2015-10-13 Tom de Vries <tom@codesourcery.com>
4986 PR tree-optimization/67476
4987 * doc/invoke.texi (@item parloops-schedule): New item.
4988 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
4989 * tree-parloops.c: Include params-enum.h.
4990 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
4992 2015-10-13 Tom de Vries <tom@codesourcery.com>
4994 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
4995 * params-enum.h: New file.
4996 * opts.c (handle_param): Handle case that param arg is a string.
4997 * params-list.h: Handle DEFPARAMENUM5 in params.def.
4998 * params.c (find_param): New function, factored out of ...
4999 (set_param_value): ... here.
5000 (param_string_value_p): New function.
5001 * params.h (struct param_info): Add value_names field.
5002 (find_param, param_string_value_p): Declare.
5004 2015-10-13 Tom de Vries <tom@codesourcery.com>
5006 PR tree-optimization/67476
5007 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5009 2015-10-13 Richard Biener <rguenther@suse.de>
5011 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5012 the data dependence vector.
5013 (vect_peeling_hash_insert): Get the peeling hash table as argument.
5014 (vect_peeling_hash_get_lowest_cost): Likewise.
5015 (vect_enhance_data_refs_alignment): Adjust.
5016 (struct _vect_peel_info, struct _vect_peel_extended_info,
5017 struct peel_info_hasher): Move from ...
5018 * tree-vectorizer.h: ... here.
5019 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5020 (LOOP_VINFO_PEELING_HTAB): Likewise.
5021 (struct _loop_vec_info): Remove min_profitable_iters and
5022 peeling_htab members.
5023 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5025 (destroy_loop_vec_info): Adjust.
5026 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5027 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5028 to estimate alias versioning cost.
5029 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5031 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
5033 * real.h (real_isinteger): Declare.
5034 * real.c (real_isinteger): New function.
5035 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5036 if y is an even integer.
5038 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5041 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5042 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5043 counts when these are more informative.
5045 2015-10-12 Jeff Law <law@redhat.com>
5047 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5048 (fsm_find_control_stmt_paths): Change name of first argument to
5049 more accurately relfect what it really is. Handle simplification
5050 of GIMPLE_COND after finding a thread path for NAME.
5051 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5052 nontrivial conditions to be handled by FSM threader.
5053 (thread_through_normal_block): Extract the name to looup via
5054 FSM threader from COND_EXPR.
5056 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5057 restriction that traced SSA_NAME is a user variable.
5059 2015-10-12 Tom de Vries <tom@codesourcery.com>
5061 PR tree-optimization/67476
5062 * omp-low.c (expand_omp_for_generic): Add missing phis.
5064 2015-10-12 Tom de Vries <tom@codesourcery.com>
5066 PR tree-optimization/67476
5067 * omp-low.c (expand_omp_for_generic): Handle simple latch.
5069 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
5071 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5072 tables: add tbl3 and tbx4.
5073 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5074 (aarch64_tbx4v8qi): New.
5075 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5076 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5077 Rewrite using builtin functions.
5078 * config/aarch64/iterators.md (UNSPEC_TBX): New.
5080 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5082 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5084 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5085 Use ROUND_UP and ROUND_DOWN macros where applicable.
5086 (rs6000_darwin64_record_arg_flush): Ditto.
5087 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5088 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5091 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5093 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5094 (AARCH64_ROUND_DOWN): Ditto.
5095 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5097 2015-10-12 Richard Biener <rguenther@suse.de>
5100 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5101 code that analyzes IVs on each stmt but in a cheaper way avoiding
5104 2015-10-12 Nick Clifton <nickc@redhat.com>
5106 * config/msp430/msp430.c (msp430_mcu_names): Rename to
5107 msp430_mcu_data, add fields for ISA and hardware multiply
5108 support. Import latest data from the devices.csv file.
5109 (msp430_override_option): Use the data from the new array.
5110 (msp430_use_f5_series_hwmult): Likewise.
5111 (use_32bit_hwmult): Likewise.
5112 (msp430_no_hwmult): Likewise.
5113 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5115 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5116 not recognised then no hardware multiply support is assumed and
5117 that only the MSP430 ISA is allowed.
5119 2015-10-12 Richard Biener <rguenther@suse.de>
5121 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5123 (vect_analyze_loop_2): ... here.
5125 2015-10-11 Jason Merrill <jason@redhat.com>
5128 * expr.c (store_field): Call store_constructor directly when
5129 storing a CONSTRUCTOR into a target smaller than its type.
5130 Guard against unsafe bitwise copy.
5132 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5134 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5135 counts when these are more informative.
5137 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5139 * tree-profile.c (tree_profiling): Do not clear
5140 pure/const when not instrumenting.
5141 (pass tree_profile): Add dump of symtab.
5143 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5145 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5147 (fold_addr_of_array_ref_difference): Likewise.
5149 2015-10-11 Jeff Law <law@redhat.com>
5151 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5152 tree-ssa-threadbackward.c.
5153 (fsm_find_control_statement_thread_paths): Likewise.
5154 (thread_through_normal_block): Break out FSM bits and move them
5155 into a new function in tree-ssa-threadbackward.c. Call new function
5157 Minimize header file usage.
5158 * tree-ssa-threadbackward.h: New file.
5159 * tree-ssa-threadbackward.c: Likewise.
5160 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5162 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
5164 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5166 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
5168 PR rtl-optimization/67864
5169 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5170 fallthrough edges for conditional jumps. Don't sort candidate
5171 edges if not optimizing for speed.
5173 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5175 * defaults.h (REVERSE_CONDITION): New default definition.
5176 * jump.c (reversed_comparison_code_parts): Adjust.
5178 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5180 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5181 check HARD_FRAME_POINTER_IS_ARG_POINTER.
5183 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5185 * defaults.h (FRAME_ADDR_RTX): New default definition.
5186 * builtins.c (expand_builtin_return_addr): Adjust.
5188 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5190 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5191 * builtins.c (expand_builtin_return_addr): Adjust.
5193 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5195 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5196 * builtins.c (expand_builtin_return_addr): Adjust.
5197 * doc/tm.texi: Likewise.
5198 * doc/tm.texi.in: Likewise.
5199 * except.c (expand_builtin_unwind_init): Likewise.
5201 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5203 * builtins.c (expand_builtin_return_addr): Adjust.
5204 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5206 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5208 * tree.c (type_with_interoperable_signedness): New.
5209 (gimple_canonical_types_compatible_p): Use it.
5210 * tree.h (type_with_interoperable_signedness): Declare
5212 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5214 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5215 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5216 when OEP_ADDRESS_OF is se.
5218 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5219 Sebastian Pop <s.pop@samsung.com>
5221 * graphite-dependences.c (scop_get_dependences): Add dump of the
5222 data dependence graph.
5223 * graphite-poly.c (print_isl_union_map): New.
5224 (debug_isl_union_map): New.
5225 * graphite-poly.h (print_isl_union_map): Declare.
5226 (debug_isl_union_map): Declare.
5228 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5229 Sebastian Pop <s.pop@samsung.com>
5231 * graphite-poly.c (print_iteration_domain): Remove verbosity.
5232 Remove OpenScop formatting.
5233 (print_iteration_domains): Same.
5234 (debug_iteration_domain): Same.
5235 (debug_iteration_domains): Same.
5238 (dump_gbb_cases): Same.
5239 (dump_gbb_conditions): Same.
5242 (print_pbb_body): Same.
5244 (print_scop_params): Same.
5245 (print_scop_context): Same.
5247 (debug_pbb_domain): Same.
5249 (debug_scop_context): Same.
5251 (debug_scop_params): Same.
5252 * graphite-poly.h: Same.
5253 * graphite.c (graphite_transform_loops): Same.
5255 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5257 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5258 call that isn't needed.
5260 2015-10-09 Jeff Law <law@redhat.com>
5262 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5263 rather than moving each name to the freelist individually.
5265 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
5267 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5268 * frame-header-opt.c: New file.
5269 * config/mips/mips-proto.h (mips_register_frame_header_opt):
5271 * config/mips/mips.c (mips_compute_frame_info): Check
5272 optimize_call_stack flag.
5273 (mips_option_override): Register new frame_header_opt pass.
5274 (mips_frame_info, mips_int_mask, mips_shadow_set,
5275 machine_function): Move these types to...
5276 * config/mips/mips.h: here.
5277 (machine_function): Add does_not_use_frame_header and
5278 optimize_call_stack fields.
5279 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5280 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5282 * config/mips/mips.opt (mframe-header-opt): Add new option.
5284 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
5286 * config/i386/i386.c
5287 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5288 ROUND_DOWN where applicable.
5290 2015-10-09 Jeff Law <law@redhat.com>
5292 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5295 2015-10-09 Renlin Li <renlin.li@arm.com>
5297 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5298 operands[0] and operands[2].
5299 (neon_vtrn<mode>_insn): Likewise.
5300 (neon_vzip<mode>_insn): Likewise.
5302 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
5304 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5305 ((X & C2) << C1): Expand to...
5306 (X {&,^,|} C2 << C1): ...This.
5307 ((X & C2) >> C1): Expand to...
5308 (X {&,^,|} C2 >> C1): ...This.
5310 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
5313 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5314 Adjust embedded rounding/SAE specifier position.
5315 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5316 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5317 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5318 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5319 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5321 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5323 2015-10-09 Martin Jambor <mjambor@suse.cz>
5325 tree-optimization/67794
5326 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5327 between types of state,ents but accept original definitions as a
5329 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5330 iterate over definitions.
5332 2015-10-09 James Norris <jnorris@codesourcery.com>
5334 * config/rs6000/rs6000.c (rs6000_offload_options): New.
5335 (TARGET_OFFLOAD_OPTIONS): New.
5337 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
5340 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5343 * function.c (expand_function_end): Move return value
5344 promotion past the handling of PARALLELs and CONCATs.
5346 PR rtl-optimization/67828
5347 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5348 (tree_may_unswitch_on): Don't unswitch on expressions
5349 involving undefined values.
5351 2015-10-09 Richard Biener <rguenther@suse.de>
5353 * genmatch.c (print_operand): Fix formatting.
5354 (dt_node::append_simplify): Warn for multiple simplifiers
5355 that match the same pattern.
5356 * match.pd (log (exp @0)): Remove duplicates.
5358 2015-10-09 Richard Biener <rguenth@suse.de>
5361 * gimple-fold.c (optabs-query.h): Include
5362 (gimple_fold_builtin_memory_op): Allow unaligned stores
5363 when movmisalign_optabs are available.
5365 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5368 * config/arm/arm.md (movmisalign<mode>): New.
5369 * config/arm/iterators.md (HSI): New.
5371 2015-10-09 Richard Biener <rguenther@suse.de>
5373 PR tree-optimization/67891
5374 * gimple-match.h (gimple_simplified_result_is_gimple_val):
5376 (gimple_resimplify1): Declare.
5377 (gimple_resimplify2): Likewise.
5378 (gimple_resimplify3): Likewise.
5379 * gimple-match-head.c (gimple_resimplify1): Export.
5380 (gimple_resimplify2): Likewise.
5381 (gimple_resimplify3): Likewise.
5382 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5383 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5384 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5385 to avoid creating stmts without VN info.
5387 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
5389 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5392 2015-10-08 Jeff Law <law@redhat.com>
5394 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5395 and release_ssa_name in two places.
5396 (gimple_stringop_fixed_value): Similarly.
5398 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5401 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5402 unlink_stmt_vdef and release_ssa_name_fn.
5404 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5407 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
5409 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5410 SSE register save area to 16 bytes only if the incoming stack
5411 boundary is no less than 16 bytes.
5413 2015-10-08 Jeff Law <law@redhat.com>
5415 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5416 release_ssa_name. Fix typo in comment.
5418 2015-10-08 Nathan Sidwell <nathan@acm.org>
5420 * config/nvptx/nvptx.h (struct machine_function): Add comment.
5421 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5422 may return pointer as well as in memory.
5423 (nvptx_output_return): Likewise.
5425 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5427 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5428 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5429 * match.pd: Add rules previously handled by fold_builtin_sqrt
5430 and fold_builtin_cbrt.
5432 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5434 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
5435 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
5436 * fold-const.h (tree_unary_nonnegative_warnv_p)
5437 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5438 (tree_expr_nonnegative_warnv_p): Add depth parameters.
5439 * fold-const.c: Include gimple-fold.h and params.h.
5440 (tree_ssa_name_nonnegative_warnv_p): New function.
5441 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
5442 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5443 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
5444 Add a depth parameter and increment it for recursive calls to
5445 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
5446 to handle SSA names.
5447 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
5448 (gimple_stmt_nonnegative_warnv_p): Declare.
5449 * tree-vrp.c (remove_range_assertions): Remove assert that condition
5450 cannot be proven false.
5451 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
5452 (gimple_stmt_nonnegative_warnv_p): Move to...
5453 * gimple-fold.c: ...here. Add depth parameters and pass them
5454 down to the tree routines. Accept statements that aren't
5455 assignments or calls but just return false for them.
5456 (gimple_val_nonnegative_real_p): Delete.
5457 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
5458 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
5459 Check HONOR_NANs first.
5461 2015-10-08 Martin Jambor <mjambor@suse.cz>
5463 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
5466 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5468 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
5469 in the tail of outer-loop.
5471 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
5473 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
5476 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5478 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
5479 "cfghooks.h", add prototypes for introduced new functions.
5480 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
5481 checks on ability of loop unswitching to tree_unswitch_single_loop;
5482 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
5483 on innermost loop check.
5484 (tree_unswitch_single_loop): Add all required checks on ability of
5485 loop unswitching under zero recursive level guard.
5486 (tree_unswitch_outer_loop): New function.
5487 (find_loop_guard): Likewise.
5488 (empty_bb_without_guard_p): Likewise.
5489 (used_outside_loop_p): Likewise.
5490 (get_vop_from_header): Likewise.
5491 (hoist_guard): Likewise.
5492 (check_exit_phi): Likewise.
5494 2015-10-08 Marek Polacek <polacek@redhat.com>
5496 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
5499 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5502 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5503 create_tmp_var_raw instead of create_tmp_var.
5505 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
5507 * expr.c (store_expr_with_bounds): Handle aggregate moves from
5509 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
5510 to define gimple type system; compare aggregates only by size.
5512 2015-10-07 Jeff Law <law@redhat.com>
5514 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
5515 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
5516 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
5519 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5520 Sebastian Pop <s.pop@samsung.com>
5522 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
5523 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
5524 (generate_isl_schedule): Same.
5525 * graphite-optimize-isl.c (scop_get_domains): Same.
5526 (apply_schedule_map_to_scop): Same.
5527 * graphite-poly.c (print_iteration_domains): Same.
5528 (remove_gbbs_in_scop): Same.
5532 * graphite-poly.h (struct scop): Rename bbs to pbbs.
5534 * graphite-scop-detection.c (compare_bb_depths): Remove.
5535 (graphite_sort_dominated_info): Remove.
5536 (try_generate_gimple_bb): Move out of scop_detection.
5537 (all_non_dominated_preds_marked_p): Remove.
5538 (build_scop_bbs_1): Remove.
5539 (build_scop_bbs): Remove.
5540 (nb_pbbs_in_loops): Do not use SCOP_BBS.
5541 (find_scop_parameters): Same.
5542 (sese_dom_walker): Rename gather_bbs.
5543 (before_dom_children): Call try_generate_gimple_bb and collect gbb
5545 (build_scops): Call gather_bbs.
5546 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
5547 (add_conditions_to_constraints): Same.
5548 (build_scop_iteration_domain): Same.
5549 (build_scop_drs): Same.
5550 (new_pbb_from_pbb): Same.
5551 * sese.c (new_sese_info): Create bbs.
5552 * sese.h (struct sese_info_t): Add bbs.
5554 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
5556 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
5557 encoding in 64-bit mode.
5559 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
5562 * config/i386/i386.c (ix86_option_override_internal): Always use
5563 8-byte minimum stack boundary in 64-bit mode.
5564 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
5565 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
5566 Add a REG_CFA_EXPRESSION note if needed.
5567 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
5568 (ix86_handle_force_align_arg_pointer_attribute): New.
5569 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
5570 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
5571 with ix86_handle_force_align_arg_pointer_attribute.
5572 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
5574 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5575 Sebastian Pop <s.pop@samsung.com>
5577 * graphite-scop-detection.c (parameter_index_in_region): Remove
5578 use of SESE_ADD_PARAMS.
5579 (find_scop_parameters): Same.
5580 * sese.c (new_sese_info): Same.
5581 * sese.h (struct sese_info_t): Remove add_params.
5582 (SESE_ADD_PARAMS): Remove.
5584 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5585 Sebastian Pop <s.pop@samsung.com>
5587 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
5590 (copy_internal_parameters): Same.
5591 (translate_isl_ast_to_gimple): Use an sese_l.
5592 (build_iv_mapping): Same.
5593 * graphite-poly.c (new_sese): Rename new_sese_info.
5594 (free_sese): Rename free_sese_info.
5595 * graphite-poly.h (struct scop): Use an sese_info_p.
5596 (scop_set_region): Same.
5597 * graphite-scop-detection.c (struct sese_l): Moved...
5598 (get_entry_bb): Moved...
5599 (get_exit_bb): Moved...
5600 (parameter_index_in_region_1): Use an sese_info_p.
5601 (parameter_index_in_region): Same.
5602 (scan_tree_for_params): Same.
5603 (find_params_in_bb): Same.
5604 (sese_dom_walker): Use an sese_l.
5605 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
5606 (reduction_phi_p): Same.
5607 (parameter_index_in_region_1): Use an sese_info_p.
5608 (propagate_expr_outside_region): Use an sese_l.
5609 * graphite.c: Replace uses of SCOP_REGION.
5610 * sese.c (sese_record_loop): Use an sese_info_p.
5611 (build_sese_loop_nests): Same.
5612 (sese_build_liveouts_use): Same.
5613 (sese_build_liveouts_bb): Same.
5614 (sese_build_liveouts_bb): Same.
5615 (sese_bad_liveouts_use): Same.
5616 (sese_reset_debug_liveouts_bb): Same.
5617 (sese_build_liveouts): Same.
5618 (new_sese): Renamed new_sese_info.
5619 (free_sese): Renamed free_sese_info.
5620 (set_rename): Use an sese_info_p.
5621 (graphite_copy_stmts_from_block): Same.
5622 (copy_bb_and_scalar_dependences): Same.
5623 (outermost_loop_in_sese_1): Use an sese_l.
5624 (outermost_loop_in_sese): Same.
5625 (if_region_set_false_region): Use an sese_info_p.
5626 (move_sese_in_condition): Same.
5627 (scalar_evolution_in_region): Use an sese_l.
5628 * sese.h (struct sese_l): ... here.
5629 (SESE_ENTRY): Remove.
5630 (SESE_ENTRY_BB): Remove.
5631 (SESE_EXIT): Remove.
5632 (SESE_EXIT_BB): Remove.
5633 (sese_contains_loop): Use an sese_info_p.
5634 (sese_nb_params): Same.
5635 (bb_in_sese_p): Use an sese_l.
5636 (stmt_in_sese_p): Same.
5637 (defined_in_sese_p): Same.
5638 (loop_in_sese_p): Same.
5639 (sese_loop_depth): Same.
5640 (struct ifsese_s): Use an sese_info_p.
5641 (gbb_loop_at_index): Use an sese_l.
5642 (nb_common_loops): Same.
5643 (scev_analyzable_p): Same.
5645 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5647 * config/i386/i386.c (ix86_conditional_register_usage): Use
5648 CALL_USED_REGISTERS_MASK.
5649 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
5651 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5654 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
5655 * configure: Regenerated.
5657 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5660 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
5661 (ix86_set_current_function): This.
5662 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
5664 2015-10-07 Richard Biener <rguenther@suse.de>
5666 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
5667 (vinfo_for_stmt): Adjust.
5668 (set_vinfo_for_stmt): Likewise.
5669 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
5670 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
5671 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
5673 (vect_analyze_loop_1): Remove.
5674 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
5675 inner loop when vectorizing an outer loop by splitting out from ...
5676 (vect_analyze_loop_form): ... here.
5678 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5681 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
5682 Use create_tmp_var_raw instead of create_tmp_var.
5684 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
5686 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
5687 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
5688 * real.c (CACHED_FRACTION): New helper macro.
5689 (dconst_third_ptr): Use it.
5690 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
5691 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
5693 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
5695 2015-10-06 Jeff Law <law@redhat.com>
5697 PR tree-optimization/67816
5698 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
5699 from remove_jump_threads_starting_at. Accept an edge rather than
5701 * tree-ssa-threadupdate.c (removed_edges): New hash table.
5702 (remove_jump_threads_including): Note edges that get removed from
5703 the CFG for later pruning of jump threading paths including them.
5704 (thread_through_all_blocks): Remove paths which include edges that
5706 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
5707 on each outgoing edges when optimizing away a control statement.
5709 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5711 * reorg.c (emit_delay_sequence): Store list of delay slot insns
5712 in a vector instead of rtx_insn_list.
5713 (add_to_delay_list): Likewise.
5714 (delete_from_delay_slot): Likewise.
5715 (optimize_skip): Likewise.
5716 (redirect_with_delay_list_safe_p): Likewise.
5717 (check_annul_list_true_false): Likewise.
5718 (steal_delay_list_from_target): Likewise.
5719 (steal_delay_list_from_fallthrough): Likewise.
5720 (redundant_insn): Likewise.
5721 (fill_simple_delay_slots): Likewise.
5722 (fill_slots_from_thread): Likewise.
5723 (fill_eager_delay_slots): Likewise.
5724 (relax_delay_slots): Likewise.
5726 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
5728 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
5729 For -mgpopt=local, also exclude unintialized common symbols.
5730 * doc/invoke.texi (Nios II Options): Document the change.
5732 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5734 * config/aarch64/iterators.md (vwcore): Add missing cases for
5737 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5738 Sebastian Pop <s.pop@samsung.com>
5740 * graphite-poly.c (new_scop): Initialize drs.
5741 * graphite-poly.h (struct dr_info): New.
5742 (struct scop): Add drs.
5743 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
5744 (pdr_add_memory_accesses): Same.
5745 (build_poly_dr): Same.
5746 (build_alias_set): Same.
5747 (build_scop_drs): Same.
5748 (build_pbb_drs): Remove.
5749 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
5750 * tree-data-ref.h (data_reference): Remove alias_set.
5752 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5753 Sebastian Pop <s.pop@samsung.com>
5755 * graphite-poly.c (free_data_refs_aux): Remove.
5756 (free_gimple_poly_bb): Do not call free_data_refs_aux.
5757 * graphite-poly.h (struct base_alias_pair): Remove.
5758 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
5759 base_alias_pair and dr->aux.
5760 (build_alias_set): Same.
5761 * tree-data-ref.c (create_data_ref): Initialize alias_set.
5762 * tree-data-ref.h (data_reference): Add alias_set.
5764 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5765 Sebastian Pop <s.pop@samsung.com>
5767 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
5768 Do not set PDR_BASE_OBJECT_SET.
5769 * graphite-poly.h (poly_dr): Same.
5770 (PDR_BASE_OBJECT_SET): Remove.
5771 (new_poly_dr): Update decl.
5772 * graphite-sese-to-poly.c (build_poly_dr): Update call to
5774 (write_alias_graph_to_ascii_dimacs): Remove.
5775 (write_alias_graph_to_ascii_dot): Remove.
5776 (write_alias_graph_to_ascii_ecc): Remove.
5777 (dr_same_base_object_p): Remove.
5778 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
5780 (build_base_obj_set_for_drs): Remove.
5781 (dump_alias_graphs): Remove.
5782 (build_scop_drs): Remove dead code.
5784 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
5785 Peter Bergner <bergner@vnet.ibm.com>
5788 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
5789 allow registers, but provide insns for the combiner to create for
5790 loads from memory. Separate VSX code from non-VSX code. For
5791 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
5792 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
5793 so that registers come before memory operations. Drop support from
5794 converting DFmode to TFmode, if the DFmode value is in a GPR
5796 (extenddftf2_fprs): Likewise.
5797 (extenddftf2_internal): Likewise.
5798 (extenddftf2_vsx): Likewise.
5799 (extendsftf2): In the expander, only allow registers, but provide
5800 insns for the combiner to create for stores and loads.
5802 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5804 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
5805 from the decl parameter.
5807 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
5810 * gimple-fold.c (gimple_fold_builtin): Add break after
5811 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
5813 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
5815 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
5816 to scop->isl_context.
5818 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
5820 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
5821 (output_probe_stack_range): Rotate the loop and simplify.
5822 (thumb1_expand_prologue): Tweak sorry message.
5823 * config/arm/arm.md (probe_stack): Use bare string.
5825 2015-10-06 Nick Clifton <nickc@redhat.com>
5827 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
5829 2015-10-06 Nick Clifton <nickc@redhat.com>
5831 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
5832 (ATTR_PERSIST): New constant.
5833 (msp430_data_attr): New function - verifies an attribute that only
5834 applies to variables.
5835 (msp430_attributes): Add noinit and persistent attributes.
5836 (noinit_section): New variable.
5837 (presis_section): New variable.
5838 (TARGET_ASM_INIT_SECTIONS): Define.
5839 (msp430_init_sections): New function - initialises the noinit and
5840 persist section variables.
5841 (msp430_select_section): Add support for noinit and persist
5843 (msp430_section_type_flags): Likewise.
5844 * doc/extend.texi: Document the reent, critical, wakeup, noinit
5845 and persistent attributes.
5847 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5848 Sebastian Pop <s.pop@samsung.com>
5850 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
5851 (no_violations): Remove.
5852 (subtract_commutative_associative_deps): Remove.
5853 (compute_deps): Do not call subtract_commutative_associative_deps.
5854 (transform_is_safe): Remove.
5855 (graphite_legal_transform): Remove.
5856 * graphite-poly.h (graphite_legal_transform): Remove.
5858 2015-10-05 Aditya Kumar <hiraditya@msn.com>
5860 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
5861 which are in this region are passed so gcc_assert and remove redundant
5863 * sese.c (sese_build_liveouts): Pass only those bbs which are not
5865 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
5866 gcc_assert on that and remove unnecessary computation.
5867 (sese_build_liveouts_use): Same.
5869 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5871 * graphite-dependences.c (scop_get_reads): Renamed scop->context
5872 to scop->param_context.
5873 (scop_get_must_writes): Same.
5874 (scop_get_may_writes): Same.
5875 (scop_get_original_schedule): Same.
5876 (scop_get_transformed_schedule): Same.
5877 (subtract_commutative_associative_deps): Same.
5878 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
5879 (generate_isl_context): Same.
5880 (generate_isl_schedule): Same.
5881 (scop_to_isl_ast): Same.
5882 (graphite_regenerate_ast_isl): Same.
5883 * graphite-optimize-isl.c (scop_get_domains): Same.
5884 (optimize_isl): Renamed scop->context to scop->param_context.
5885 * graphite-poly.c (new_poly_bb): Change the type of argument to
5887 (new_scop): Renamed scop->context to scop->param_context.
5889 (print_scop_context): Same.
5890 * graphite-poly.h (new_poly_dr): Change the type of argument from
5891 void* to data_reference_p.
5892 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
5893 (new_poly_bb): Change the type of argument from void* to
5895 (pbb_set_black_box): Same.
5896 (struct scop): Rename context to param_context, ctx to isl_context.
5897 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
5898 Move declarations closer to assignment.
5899 (find_params_in_bb): Same.
5900 (find_scop_parameters): Same.
5901 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
5902 Global to be used for statement IDs.
5903 (isl_id_for_pbb): Use ssa_name_version_typesize.
5904 (simple_copy_phi_p): Move declarations closer to assignment.
5905 (build_pbb_scattering_polyhedrons): Same.
5906 (build_scop_scattering): Same.
5907 (isl_id_for_ssa_name): Same.
5908 (extract_affine_name): Same.
5909 (extract_affine_int): Same.
5910 (extract_affine): Same.
5911 (set_scop_parameter_dim): Use renamed member.
5912 (build_loop_iteration_domains): Same.
5913 (add_param_constraints): Same.
5914 (build_scop_iteration_domain): Same.
5915 (pdr_add_data_dimensions): Same.
5916 (build_poly_dr): Same.
5917 (build_scop_drs): Move declarations closer to assignment.
5918 (analyze_drs_in_stmts): Same.
5919 (insert_out_of_ssa_copy): Same.
5920 (insert_out_of_ssa_copy_on_edge): Same.
5921 (propagate_expr_outside_region): Same.
5922 (rewrite_phi_out_of_ssa): Same.
5923 (rewrite_degenerate_phi): Same.
5924 (rewrite_reductions_out_of_ssa): Same.
5925 (rewrite_cross_bb_scalar_dependence): Same.
5926 (handle_scalar_deps_crossing_scop_limits): Same.
5927 (rewrite_cross_bb_scalar_deps): Same.
5928 * graphite.c (graphite_transform_loops): Use renamed member.
5930 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
5933 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
5934 create_tmp_var_raw instead of create_tmp_var.
5936 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5939 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
5940 Use create_tmp_var_raw instead of create_tmp_var.
5942 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
5945 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
5946 split for upper-bank registers when target does not support
5948 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
5949 split when target does not support AVX512VL.
5951 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
5954 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
5955 Adjust to use create_tmp_var_raw instead of create_tmp_var.
5957 2015-10-06 Nick Clifton <nickc@redhat.com>
5959 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
5962 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5964 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
5965 (case ${target}): Add znver1.
5966 * config/i386/cpuid.h(bit_CLZERO): Define.
5967 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5968 -march=native recognize znver1 processors.
5969 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5970 znver1, clzero def_and_undef.
5971 * config/i386/i386.c (struct processor_costs znver1_cost): New.
5972 (m_znver1): New definition.
5973 (m_AMD_MULTIPLE): Includes m_znver1.
5974 (processor_target_table): Add znver1 entry.
5975 (ix86_target_string) : Add clzero entry.
5976 (static const char *const cpu_names): Add znver1 entry.
5977 (ix86_option_override_internal): Add znver1 instruction sets.
5978 (PTA_CLZERO) : New definition.
5979 (ix86_option_override_internal): Handle new clzerooption.
5980 (ix86_issue_rate): Add znver1.
5981 (ix86_adjust_cost): Add znver1.
5982 (ia32_multipass_dfa_lookahead): Add znver1.
5983 (has_dispatch): Add znver1.
5984 * config/i386/i386.h (TARGET_znver1): New definition.
5985 (TARGET_CLZERO): Define.
5986 (TARGET_CLZERO_P): Define.
5987 (struct ix86_size_cost): Add TARGET_ZNVER1.
5988 (enum processor_type): Add PROCESSOR_znver1.
5989 * config/i386/i386.md (define_attr "cpu"): Add znver1.
5990 (set_attr znver1_decode): New definitions for znver1.
5991 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
5993 * config/i386/mmx.md (set_attr znver1_decode): New definitions
5995 * config/i386/sse.md (set_attr znver1_decode): Likewise.
5996 * config/i386/x86-tune.def: Add znver1 tunings.
5997 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
5998 * doc/invoke.texi: Add details about znver1
6000 2015-10-06 Richard Biener <rguenther@suse.de>
6002 PR tree-optimization/67859
6003 * tree-ssa-pre.c (create_expression_by_pieces): Properly
6004 discard not inserted stmts.
6006 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
6008 * doc/extend.texi (Template Instantiation): Reorder options and
6009 de-emphasize -frepo.
6010 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6011 example instead of -frepo.
6013 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6016 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6017 use create_tmp_var_raw rather than create_tmp_var.
6019 2015-10-06 Richard Biener <rguenther@suse.de>
6021 * tree-vectorizer.h (vec_info): New base class for...
6022 (_loop_vec_info): ... this and ...
6023 (_bb_vec_info): ... this.
6024 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6025 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6026 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6027 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6028 vect_destroy_datarefs): Adjust interface to take a vec_info *
6029 rather than both a loop_vec_info and a bb_vec_info argument.
6030 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6031 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6032 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6033 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6035 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6036 (destroy_loop_vec_info, vect_analyze_loop_2,
6037 vect_is_simple_reduction_1, get_initial_def_for_induction,
6038 vect_create_epilog_for_reduction, vectorizable_reduction,
6039 vectorizable_live_operation, vect_transform_loop): Adjust.
6040 * tree-vect-patterns.c (type_conversion_p,
6041 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6042 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6043 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6044 check_bool_pattern, vect_recog_bool_pattern,
6045 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6046 * tree-vect-slp.c (vect_get_and_check_slp_defs,
6047 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6048 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6049 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6050 (new_bb_vec_info): Initialize base classs.
6051 * tree-vect-stmts.c (record_stmt_cost, process_use,
6052 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6053 vectorizable_mask_load_store, vectorizable_call,
6054 vectorizable_simd_clone_call, vectorizable_conversion,
6055 vectorizable_assignment, vectorizable_shift,
6056 vectorizable_operation, vectorizable_store,
6057 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6058 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6059 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6061 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6064 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6065 create_tmp_var_raw rather than create_tmp_var.
6067 2015-10-05 Marek Polacek <polacek@redhat.com>
6069 * tree-ssa-loop-im.c
6070 (move_computations_dom_walker::before_dom_children): Don't set
6071 SSA_NAME_ANTI_RANGE_P.
6072 * tree-ssa-phiopt.c (value_replacement): Likewise.
6074 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6075 Sebastian Pop <s.pop@samsung.com>
6077 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6079 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6080 Sebastian Pop <s.pop@samsung.com>
6082 * graphite-poly.c (new_gimple_poly_bb): ... here.
6083 (free_data_refs_aux): ... here.
6084 (free_gimple_poly_bb): ... here.
6085 (remove_gbbs_in_scop): ... here.
6086 (new_scop): Call new_sese.
6087 (free_scop): Call remove_gbbs_in_scop and free_sese.
6088 * graphite-poly.h (base_alias_pair): ... here.
6089 (new_gimple_poly_bb): Declare.
6090 (free_gimple_poly_bb): Declare.
6091 * graphite-scop-detection.c (parameter_index_in_region_1):
6092 (parameter_index_in_region): ... here.
6093 (scan_tree_for_params): ... here.
6094 (find_params_in_bb): ... here.
6095 (find_scop_parameters): ... here.
6096 (build_scops): Call find_scop_parameters.
6097 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6098 (free_scops): Move...
6099 (single_pred_cond_non_loop_exit): Move...
6100 (sese_dom_walker::before_dom_children): Move...
6101 (sese_dom_walker::after_dom_children): Move...
6102 (build_poly_scop): Move...
6103 * graphite-sese-to-poly.h (base_alias_pair): Move...
6104 * graphite.c (free_scops): ... here.
6106 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6107 Sebastian Pop <s.pop@samsung.com>
6109 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6110 (trivially_empty_bb_p): Move...
6111 (same_close_phi_node): Move...
6112 (new_gimple_poly_bb): Move...
6113 (compare_bb_depths): Move...
6114 (graphite_sort_dominated_info): Move...
6115 (remove_duplicate_close_phi): Move...
6116 (make_close_phi_nodes_unique): Move...
6117 (canonicalize_loop_closed_ssa): Move...
6118 (canonicalize_loop_closed_ssa_form): Move...
6119 (loop_ivs_can_be_represented): Move...
6120 (single_pred_cond_non_loop_exit): Move...
6121 (graphite_can_represent_init): Move...
6122 (graphite_can_represent_scev): Move...
6123 (stmt_has_simple_data_refs_p): Move...
6124 (stmt_has_side_effects): Move...
6125 (graphite_can_represent_stmt): Move...
6126 (scop_detection): ... here.
6127 (sese_dom_walker): ... and here.
6128 (build_scops): Call all moved functions.
6129 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6130 (all_non_dominated_preds_marked_p): Move...
6131 (build_scop_bbs_1): Move...
6132 (build_scop_bbs): Move...
6133 (set_scop_parameter_dim): Move...
6134 (nb_pbbs_in_loops): Move...
6135 (build_poly_scop): Do not call all the moved functions.
6137 2015-10-05 Martin Jambor <mjambor@suse.cz>
6138 Jan Hubicka <hubicka@ucw.cz>
6140 * ipa-cp.c (ipcp_alignment_lattice): New type.
6141 (ipcp_param_lattices): Use the above to represent alignment.
6142 (ipcp_alignment_lattice::print): New function.
6143 (print_all_lattices): Use it to print alignment information.
6144 (ipcp_alignment_lattice::top_p): New function.
6145 (ipcp_alignment_lattice::bottom_p): Likewise.
6146 (ipcp_alignment_lattice::set_to_bottom): Likewise.
6147 (ipcp_alignment_lattice::meet_with_1): Likewise.
6148 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6149 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6150 (initialize_node_lattices): Likewise.
6151 (propagate_alignment_accross_jump_function): Work with the new class
6152 for alignment lattices.
6153 (propagate_constants_accross_call): Pass only the alignment lattice to
6154 propagate_alignment_accross_jump_function.
6155 (ipcp_store_alignment_results): Work with the new class for alignment
6158 2015-10-05 Marek Polacek <polacek@redhat.com>
6160 PR tree-optimization/67821
6161 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6163 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
6166 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6168 (mkoffload_cleanup): ... this. Adjust all users.
6169 (maybe_unlink): Look at save_temps and verbose flags instead of
6171 (main): Parse "-save-temps" flag.
6172 (generate_target_descr_file, generate_target_offloadend_file)
6173 (generate_host_descr_file, prepare_target_image): Pass it on.
6174 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6175 (mkoffload_cleanup): New function.
6176 (maybe_unlink): Look at save_temps and verbose flags instead of
6178 (main): Instead of calling utils_cleanup, register atexit handler
6179 for mkoffload_cleanup.
6180 (main): Parse "-save-temps" flag.
6181 (compile_native, main): Pass it on.
6182 * lto-wrapper.c (compile_offload_image): Likewise.
6184 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6186 * gimple.h (gimple_op_ptr): Require a non const gimple *.
6187 (gimple_assign_lhs_ptr): Likewise.
6188 (gimple_assign_rhs1_ptr): Likewise.
6189 (gimple_assign_rhs2_ptr): Likewise.
6190 (gimple_assign_rhs3_ptr): Likewise.
6191 (gimple_call_lhs_ptr): Likewise.
6192 (gimple_call_fn_ptr): Likewise.
6193 (gimple_call_chain_ptr): Likewise.
6194 (gimple_call_arg_ptr): Likewise.
6195 (gimple_cond_lhs_ptr): Likewise.
6196 (gimple_cond_rhs_ptr): Likewise.
6197 (gimple_switch_index_ptr): Likewise.
6198 (gimple_return_retval_ptr): Likewise.
6200 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6202 * gimple.h (gimple_asm_input_op_ptr): Remove.
6203 (gimple_asm_output_op_ptr): Likewise.
6205 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6207 * gimple.h (gimple_location_ptr): Remove.
6208 * tree-vrp.c (check_all_array_refs): Adjust.
6210 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6212 * tree-ssa-operands.c (build_uses): store tree * instead of
6214 (finalize_ssa_uses): Adjust.
6215 (append_use): Likewise.
6216 (verify_ssa_operands): Likewise.
6218 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6220 * real.h (build_real_truncate): Declare.
6221 * tree.c (build_real_truncate): New function.
6222 (strip_float_extensions): Use it.
6223 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6224 (fold_builtin_hypot, fold_builtin_pow): Likewise.
6225 * match.pd: Likewise.
6227 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6228 Jiong Wang <jiong.wang@arm.com>
6230 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6232 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6234 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6235 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6236 (aarch64_print_operand, aarch64_float_const_representable_p)
6237 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6238 instead of REAL_VALUE_FROM_CONST_DOUBLE.
6239 * config/arc/arc.c (arc_print_operand): Likewise.
6240 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6241 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6242 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6244 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6245 (consttable_16): Likewise.
6246 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6247 * config/avr/avr.c (avr_print_operand): Likewise.
6248 * config/bfin/bfin.md: Likewise (in a define_split).
6249 * config/c6x/c6x.md: Likewise (in a define_split).
6250 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6251 (cr16_print_operand): Likewise.
6252 * config/cris/cris.c (cris_print_operand): Likewise.
6253 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6254 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6255 (fr30_const_double_is_zero): Likewise.
6256 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6257 * config/frv/frv.md: Likewise (in a define_split).
6258 * config/frv/predicates.md (int_2word_operand): Likewise.
6259 * config/h8300/h8300.c (h8300_print_operand): Likewise.
6260 * config/i386/i386.c (standard_80387_constant_p): Likewise.
6261 (ix86_print_operand, ix86_split_to_parts): Likewise.
6262 * config/i386/i386.md: Likewise (in a define_split).
6263 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6264 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6265 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6266 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6267 (print_operand): Likewise.
6268 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6269 * config/mep/mep.md: Likewise (in define_split).
6270 * config/microblaze/microblaze.c (microblaze_const_double_ok)
6271 (print_operand): Likewise.
6272 * config/mips/mips.md (consttable_float): Likewise.
6273 * config/mmix/mmix.c (mmix_intval): Likewise.
6274 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6275 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6276 * config/pa/pa.c (pa_singlemove_string): Likewise.
6277 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6278 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6279 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6280 (output_toc): Likewise.
6281 * config/rs6000/rs6000.md: Likewise (in define_splits).
6282 * config/rx/rx.c (rx_print_operand): Likewise.
6283 * config/s390/s390.c (s390_output_pool_entry): Likewise.
6284 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6285 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6286 (and also in define_splits).
6287 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6288 (fp_high_losum_p): Likewise.
6289 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6290 (*movsf_high): Likewise.
6291 * config/spu/spu.c (const_double_to_hwint): Likewise.
6292 * config/v850/v850.c (const_double_split): Likewise.
6293 * config/vax/vax.c (vax_float_literal): Likewise.
6294 * config/visium/visium.c (visium_expand_copysign): Likewise.
6295 * config/visium/visium.md: Likewise (in define_split).
6296 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6297 * config/xtensa/xtensa.c (print_operand): Likewise.
6298 (xtensa_output_literal): Likewise.
6299 * cprop.c (implicit_set_cond_p): Likewise.
6300 * dwarf2out.c (insert_float): Likewise.
6301 * expmed.c (expand_mult, make_tree): Likewise.
6302 * expr.c (compress_float_constant): Likewise.
6303 * rtlanal.c (split_double): Likewise.
6304 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6305 (simplify_const_unary_operation, simplify_binary_operation_1)
6306 (simplify_const_binary_operation): Likewise.
6307 (simplify_const_relational_operation): Likewise.
6308 * varasm.c (output_constant_pool_2): Likewise.
6310 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6312 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6313 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6314 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6315 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6316 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6317 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6318 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6319 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6320 (ix86_emit_swsqrtsf): Likewise.
6321 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6322 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6323 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6324 * config/pa/pa.c (pa_expand_builtin): Likewise.
6325 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6326 (rs6000_scale_v2df): Likewise.
6327 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6328 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6329 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6330 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6331 (vec_ctul): Likewise.
6332 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6333 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6334 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6335 * cse.c (fold_rtx): Likewise.
6336 * emit-rtl.c (immed_double_const): Likewise (in comments).
6337 (init_emit_once): Likewise.
6338 * expr.c (compress_float_constant, expand_expr_real_1)
6339 (const_vector_from_tree): Likewise.
6340 * optabs.c (expand_float, expand_fix): Likewise.
6341 * reg-stack.c (reg_to_stack): Likewise.
6342 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6343 (simplify_const_unary_operation, simplify_binary_operation_1)
6344 (simplify_const_binary_operation, simplify_relational_operation)
6345 (simplify_immed_subreg): Likewise.
6347 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6349 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6350 * doc/tm.texi: Regenerate.
6351 * real.h (REAL_ARITHMETIC): Delete.
6352 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6353 (ix86_expand_round_sse4): Use real_arithmetic instead of
6355 * config/i386/sse.md (round<mode>2): Likewise.
6356 * rtl.h (rtx_to_tree_code): Likewise (in comment).
6357 * explow.c (rtx_to_tree_code): Likewise (in comment).
6358 * match.pd: Likewise.
6359 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6360 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6361 (expand_pow_as_sqrts): Likewise.
6362 * tree-pretty-print.c (dump_generic_node): Remove code that
6363 was conditional on REAL_ARITHMETIC being undefined.
6365 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6367 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6368 * doc/tm.texi: Regenerate.
6369 * real.h (real_less): Declare.
6370 (REAL_VALUES_LESS): Delete.
6371 * real.c (real_less): New function.
6372 (real_compare): Use it.
6373 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6374 of REAL_VALUES_LESS.
6375 * config/microblaze/microblaze.c (microblaze_const_double_ok):
6377 * fold-const.c (fold_convert_const_int_from_real): Likewise.
6378 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6379 (simplify_const_relational_operation): Likewise.
6380 * tree-call-cdce.c (check_pow): Likewise.
6381 (gen_conditions_for_pow_cst_base): Likewise.
6383 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6385 * real.h (REAL_VALUES_IDENTICAL): Delete.
6386 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6387 instead of REAL_VALUES_IDENTICAL.
6388 * fold-const.c (operand_equal_p): Likewise.
6389 * ipa-icf.c (sem_variable::equals): Likewise.
6390 * tree-complex.c (some_nonzerop): Likewise.
6391 (expand_complex_multiplication): Likewise.
6392 * tree.c (simple_cst_equal): Likewise.
6393 * varasm.c (compare_constant): Likewise.
6395 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6397 * real.h (real_equal): Declare.
6398 (REAL_VALUES_EQUAL): Delete.
6399 * real.c (real_equal): New function.
6400 (real_compare): Use it.
6401 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6402 * doc/tm.texi: Regenerate.
6403 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6404 real_equal instead of REAL_VALUES_EQUAL.
6405 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6406 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6407 (fp_const_from_val): Likewise.
6408 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6409 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6410 (floating_exact_log2): Likewise.
6411 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6412 * config/vax/vax.c (vax_float_literal): Likewise.
6413 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6414 * cprop.c (implicit_set_cond_p): Likewise.
6415 * expmed.c (expand_mult): Likewise.
6416 * fold-const.c (const_binop): Likewise.
6417 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6418 (simplify_const_binary_operation): Likewise.
6419 (simplify_const_relational_operation): Likewise.
6420 * tree-call-cdce.c (check_pow): Likewise.
6421 (gen_conditions_for_pow_cst_base): Likewise.
6422 * tree-inline.c (estimate_num_insns): Likewise.
6423 * tree-ssa-dom.c (record_equality): Likewise.
6424 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6425 (gimple_expand_builtin_pow): Likewise.
6426 (pass_optimize_widening_mul::execute): Likewise.
6427 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6428 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
6429 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
6431 2015-10-05 Richard Biener <rguenther@suse.de>
6434 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
6435 consider loop header PHI defs as IVs.
6437 2015-10-05 Richard Biener <rguenther@suse.de>
6439 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
6441 (create_expression_by_pieces): ... here and build GIMPLE
6442 calls directly. Use gimple_build API and avoid force_gimple_operand.
6443 (insert_into_preds_of_block): Simplify.
6444 (do_regular_insertion): Add comment.
6446 2015-10-04 Jason Merrill <jason@redhat.com>
6448 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
6450 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
6452 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
6453 check for general register.
6454 (ix86_emit_save_regs): Ditto.
6455 (ix86_emit_save_regs_using_mov): Ditto.
6456 (ix86_emit_restore_regs_using_pop): Ditto.
6457 (ix86_emit_restore_regs_using_mov): Ditto.
6459 2015-10-03 Marek Polacek <polacek@redhat.com>
6461 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
6462 (insn-dfatab.o): Likewise.
6464 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
6466 * config.gcc (xtensa*-*-uclinux*): New configuration.
6467 * config/xtensa/uclinux.h: New file.
6468 * config/xtensa/uclinux.opt: New file.
6470 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
6472 * doc/cpp.texi (Standard Predefined Macros): Document value of
6473 __cplusplus for C++14.
6475 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
6477 * gcc.c (process_command): Use spec_machine rather than
6478 spec_host_machine to build tooldir_prefix2.
6480 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6481 Bernd Schmidt <bernds@codesourcery.com>
6483 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
6484 (Token, Stmt): Remove structs.
6485 (decls, vars, fns): Remove variables.
6486 (alloc_comment, append_stmt, is_keyword): Remove macros.
6487 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
6488 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
6489 (parse_init, parse_file): Remove functions.
6490 (read_file): Accept a pointer to a length and store into it.
6491 (process): Don't try to parse the input file, just write it out as
6492 a string, but looking for maps. Also write out the length.
6493 (main): Don't use "-S" to compile PTX code.
6495 2015-10-02 Jeff Law <law@redhat.com>
6497 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6500 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6503 * config/nvptx/mkoffload.c (main): Scan the argument vector for
6504 -fopenmp, and skip generating an offloading image if specified.
6506 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
6508 * system.h (ROUND_UP): New macro definition.
6509 (ROUND_DOWN): Ditto.
6510 * ggc-page.c (ROUND_UP): Remove local macro definition.
6511 (PAGE_ALIGN): Implement using ROUND_UP macro.
6513 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
6514 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
6516 (ix86_compute_frame_layout): Ditto.
6517 (ix86_expand_prologue): Ditto.
6518 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
6519 to round down values.
6520 (expand_set_or_movmem_via_rep): Ditto.
6522 2015-10-02 Marek Polacek <polacek@redhat.com>
6524 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
6526 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
6528 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
6529 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
6530 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
6531 (free_gimple_bb): Renamed free_gimple_poly_bb.
6532 (try_generate_gimple_bb): Hoist loop invariant code.
6533 (analyze_drs_in_stmts): Same.
6534 (build_scop_drs): Call renamed functions.
6535 (new_pbb_from_pbb): Same.
6536 (scop_ivs_can_be_represented): Delete as functionality now moved to
6537 graphite-scop-detection.c
6538 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
6540 2015-10-02 Aditya Kumar <hiraditya@msn.com>
6542 * graphite-scop-detection.c (stmt_has_side_effects): New function
6543 outlined from stmt_simple_for_scop_p.
6544 (graphite_can_represent_stmt): Same.
6545 (stmt_simple_for_scop_p): Moved code out of this function for better
6548 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6550 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
6552 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
6554 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6556 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
6558 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
6560 PR rtl-optimization/67756
6561 * lra-constraints.c (match_reload): Add a new parameter. Use it
6562 for creating a pseudo with the same value.
6563 (curr_insn_transform): Pass a new argument to match_reload.
6565 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6567 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
6568 (expand_vec_perm_even_odd_1): Handle V64QImode.
6569 (ix86_expand_vec_perm_const_1): Try expansion with
6570 expand_vec_perm_even_odd_trunc as well.
6571 * config/i386/sse.md (VI124_AVX512F): Rename to ...
6572 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
6574 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
6575 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
6577 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
6578 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
6579 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
6580 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
6581 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
6582 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
6584 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6586 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
6587 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
6589 2015-10-02 Jason Merrill <jason@redhat.com>
6592 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
6593 (diagnose_tm_1_op): Also diagnose volatile accesses in
6594 transaction_safe function.
6596 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
6598 * system.h (malloc.h): Don't include obsolete header.
6600 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6602 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
6603 (TLS_SECTION_ASM_FLAG): Delete.
6605 2015-10-02 Marek Polacek <polacek@redhat.com>
6608 * doc/invoke.texi: Document -Wduplicated-cond.
6609 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
6610 (insn-dfatab.o): Likewise.
6611 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
6614 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
6616 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
6619 2015-10-02 Renlin Li <renlin.li@arm.com>
6621 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
6623 2015-10-02 Renlin Li <renlin.li@arm.com>
6626 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
6628 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6630 PR rtl-optimization/67786
6631 PR rtl-optimization/67787
6632 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
6633 it modifies a reg used in the condition calculation.
6635 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
6637 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
6638 alternatives for reads from memory and moves from general-purpose
6640 (*aarch64_combinez_be<mode>): Likewise.
6642 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
6645 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
6646 selectany within this function without need to keep attribute.
6647 (i386_pe_encode_section_info): Remove selectany-code.
6649 2015-10-02 Richard Biener <rguenther@suse.de>
6651 * tree-ssa-sccvn.c (has_VN_INFO): New function.
6652 (free_scc_vn): Use it.
6653 (visit_use): Remove dead code and refactor to use gassign
6654 and use less indentation.
6656 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6660 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
6661 (rs6000_cannot_copy_insn_p): New function.
6662 * config/rs6000/rs6000.md (cannot_copy): New attribute.
6663 (load_toc_v4_PIC_1_normal): Set cannot_copy.
6664 (load_toc_v4_PIC_1_476): Ditto.
6666 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
6668 * graphite-scop-detection.c (struct sese_l): New conversion constructor
6669 so that this type can be pushed into a vec.
6670 (class scop_builder): use sese_l to collect scops.
6671 (get_scops): New getter function.
6672 (remove_intersecting_scops): Use sese_l instead of scops_p.
6676 (remove_subscops): Same.
6677 (build_scops): Add scops to vec<scops_p> once all the scops have been
6680 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
6682 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6683 Renamed type from gimple_bb_p to gimple_poly_bb_p.
6684 (translate_isl_ast_node_user): Same.
6685 * graphite-poly.c (new_poly_bb): Same.
6686 * graphite-poly.h (gbb_from_bb): Same.
6688 * graphite-sese-to-poly.c (new_gimple_bb):
6689 gimple_bb_p -> gimple_poly_bb_p
6690 (build_scop_scattering): Same.
6691 (find_params_in_bb): Same.
6692 (add_conditions_to_domain): Same.
6693 (sese_dom_walker::before_dom_children): Same.
6694 (analyze_drs_in_stmts): Same.
6695 (new_pbb_from_pbb): Same.
6696 (free_data_refs_aux): New pointer to type base_alias_pair.
6697 * graphite-sese-to-poly.h: Same.
6698 * sese.c (if_region_set_false_region): Fixed Indentation.
6699 (move_sese_in_condition): Same.
6701 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6702 Aditya Kumar <aditya.k7@samsung.com>
6704 PR tree-optimization/66980
6705 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
6706 when data reference analysis has failed.
6708 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6709 Aditya Kumar <aditya.k7@samsung.com>
6711 PR tree-optimization/67754
6712 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
6713 scev analysis on the same loop nest as analyze_drs_in_stmts.
6714 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
6716 (try_generate_gimple_bb): Call outermost_loop_in_sese.
6717 (analyze_drs_in_stmts): Same.
6718 * sese.c (outermost_loop_in_sese): ...here.
6720 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6721 Aditya Kumar <aditya.k7@samsung.com>
6723 PR tree-optimization/67754
6724 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
6725 recursion on the inner loops.
6727 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6729 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
6730 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
6731 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
6732 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
6733 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
6735 2015-10-01 Marek Polacek <polacek@redhat.com>
6738 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
6739 create_tmp_var_raw rather than create_tmp_var.
6741 2015-10-01 Marek Polacek <polacek@redhat.com>
6743 PR tree-optimization/67769
6744 * tree-ssa-phiopt.c (conditional_replacement): Call
6745 reset_flow_sensitive_info_in_bb.
6746 (minmax_replacement): Likewise.
6747 (abs_replacement): Likewise.
6749 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
6751 * builtins.c: Don't include gomp-constants.h.
6752 (fold_builtin_1): Don't fold acc_on_device here.
6753 * gimple-fold.c: Include gomp-constants.h.
6754 (gimple_fold_builtin_acc_on_device): New.
6755 (gimple_fold_builtin): Call it.
6757 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
6759 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
6760 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
6762 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
6764 * config/arm/aarch-common-protos.h
6765 (aarch_accumulator_forwarding): New.
6766 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6767 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
6768 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6769 * config/arm/cortex-a53.md: Rewrite.
6771 2015-10-01 Richard Biener <rguenther@suse.de>
6773 * gimple-match.h (mprts_hook): Declare.
6774 * gimple-match.head.c (mprts_hook): Define.
6775 (maybe_push_res_to_seq): Use new hook.
6776 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6777 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
6778 (vn_ssa_aux::has_constants): Remove.
6779 * tree-ssa-sccvn.c: Include gimple-match.h.
6780 (VN_INFO_GET): Assert we don't re-use SSA names.
6781 (vn_get_expr_for): Remove.
6782 (expr_has_constants): Likewise.
6783 (stmt_has_constants): Likewise.
6784 (simplify_binary_expression): Likewise.
6785 (simplify_unary_expression): Likewise.
6786 (vn_lookup_simplify_result): New hook.
6787 (visit_copy): Adjust.
6788 (visit_reference_op_call): Likewise.
6789 (visit_phi): Likewise.
6790 (visit_use): Likewise.
6791 (process_scc): Likewise.
6792 (init_scc_vn): Likewise.
6793 (visit_reference_op_load): Likewise. Use match-and-simplify and
6794 a gimple seq for inserted expressions.
6795 (try_to_simplify): Remove GENERIC stmt combining code.
6796 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
6797 * tree-ssa-pre.c (eliminate_insert): Adjust.
6798 (eliminate_dom_walker::before_dom_children): Likewise.
6800 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6802 * doc/invoke.texi (Optimization Options): Add
6803 -freorder-blocks-algorithm=.
6804 (Optimize Options) <-O>: Add -freorder-blocks.
6805 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
6806 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
6807 <-freorder-blocks>: Also enabled at levels -O and -Os.
6808 <-freorder-blocks-algorithm=>: Document new option.
6810 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6812 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
6813 with flag_reorder_blocks_algorithm.
6814 * common.opt (freorder-blocks-algorithm=): New flag.
6815 (reorder_blocks_algorithm): New enum.
6816 * flag-types.h (reorder_blocks_algorithm): New enum.
6817 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
6818 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
6820 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6822 * bb-reorder.c: Add intro comment.
6823 (reorder_basic_blocks_software_trace_cache): Print a header to
6825 (edge_order): New function.
6826 (reorder_basic_blocks_simple): New function.
6827 (reorder_basic_blocks): Choose between the STC and the simple
6828 algorithms (always choose the former).
6830 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6832 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
6833 function, factored out from ...
6834 (reorder_basic_blocks): ... here.
6836 2015-10-01 Tom de Vries <tom@codesourcery.com>
6838 * tree-cfg.c (dump_function_to_file): Dump function attributes using
6839 __attribute__(()) string. Move dumping of function attributes to before
6842 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
6845 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6846 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
6847 based on gold linker version.
6848 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
6849 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
6850 * configure, config.in: Regenerate.
6852 2015-10-01 Alan Modra <amodra@gmail.com>
6854 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
6855 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
6856 (rs6000_output_mi_thunk): Likewise.
6858 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6860 * config/nvptx/mkoffload.c (process): Change offload data format.
6862 2015-09-30 Jeff Law <law@redhat.com>
6864 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
6865 with constant conditions.
6866 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
6867 (remove_ctrl_stmt_and_useless_edges): No longer static.
6868 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
6869 (remove_ctrl_stmt_and_useless_edges): Likewise.
6871 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6872 Cesar Philippidis <cesar@codesourcery.com>
6874 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
6875 (TARGET_GOACC_VALIDATE_DIMS): Override.
6876 * target.def (TARGET_GOACC): New target hook prefix.
6877 (validate_dims): New hook.
6878 * targhooks.h (default_goacc_validate_dims): New.
6879 * omp-low.c (oacc_validate_dims): New.
6880 (execute_oacc_device_lower): New.
6881 (default_goacc_validate_dims): New.
6882 (pass_data_oacc_device_lower): New.
6883 (pass_oacc_device_lower): New pass.
6884 (make_pass_oacc_device_lower): New.
6885 * tree-pass.h (make_pass_oacc_device_lower): Declare.
6886 * passes.def (pass_oacc_device_lower): Add it.
6887 * doc/tm.texi: Rebuilt.
6888 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
6889 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
6891 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6893 PR rtl-optimization/67037
6894 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
6896 2015-09-30 Bernd Schmidt <bernds@redhat.com>
6898 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
6899 * passes.c: Include tree-ssanames.h.
6900 (execute_function_todo): Flush the pending free SSA_NAMEs after
6901 eliminating unreachable basic blocks.
6902 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
6903 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
6904 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
6905 (flush_ssanames_freelist): New function.
6906 (release_ssaname_fn): Put released names on the queue.
6907 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
6908 * tree-ssanames.h (flush_ssanames_freelist): Declare.
6910 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6912 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
6913 (generate_target_descr_file, generate_target_offloadend_file)
6914 (generate_host_descr_file, prepare_target_image): Pass it on.
6915 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
6916 (compile_native, main): Pass it on.
6917 * lto-wrapper.c (compile_offload_image): Likewise.
6919 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6920 Ilya Verbin <ilya.verbin@intel.com>
6921 Andrey Turetskiy <andrey.turetskiy@intel.com>
6923 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
6924 (prepare_target_image, main): Refactor argv building to use
6927 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6929 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
6930 * config/spu/spu.c (spu_expand_atomic_op): New function.
6931 * config/spu/spu.md (AINT): New mode iterator.
6932 (ATOMIC): New code iterator.
6933 (atomic_name, atomic_pred): New code predicates.
6934 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
6935 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
6936 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
6937 "atomic_<atomic_name>_fetch<mode>"): Likewise.
6939 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
6941 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
6943 (scalar_chain::convert_reg): Likewise.
6945 2015-09-30 Richard Biener <rguenther@suse.de>
6947 * builtins.c: Add comment that no new simplifications should
6950 2015-09-30 Marek Polacek <polacek@redhat.com>
6952 PR tree-optimization/67690
6953 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
6954 reset_flow_sensitive_info_in_bb.
6955 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
6956 * tree-ssanames.c: Include "gimple-iterator.h".
6957 (reset_flow_sensitive_info_in_bb): New function.
6958 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
6960 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6962 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
6963 variable, replacing it with...
6964 (offload_abi): ... this new variable. Adjust all users.
6965 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
6967 2015-09-30 Matthias Klose <doko@ubuntu.com>
6969 * configure.ac: Remove extraneous ;;.
6970 * configure: Regenerate.
6972 2015-09-29 James Bowman <james.bowman@ftdichip.com>
6974 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
6975 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
6976 predicate, disallow register for operand 2.
6978 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
6980 * graphite-dependences.c (scop_get_dependences): Moved in down
6981 in order to be visible to its caller.
6982 * graphite-poly.h: Removed compute_deps, and extend_schedule.
6984 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6985 Aditya Kumar <aditya.k7@samsung.com>
6987 PR tree-optimization/67754
6988 * graphite-optimize-isl.c (optimize_isl): Call
6989 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
6991 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6993 * builtins.c (expand_builtin_acc_on_device): Delete.
6994 (expand_builtin): Don't call it.
6995 (fold_builtin_1): Fold acc_on_device.
6997 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
6999 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7000 (ix86_nsaved_sseregs): Likewise.
7002 2015-09-29 Jeff Law <law@redhat.com>
7004 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7005 computation of unused value.
7007 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7008 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7009 inline macro expansion.
7011 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7013 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7014 (gen_shl_sext): Likewise.
7015 * config/sh/sh.md (divsi3): Likewise.
7016 (imm->ext_dest_operand splitter): Likewise.
7018 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7019 Aditya Kumar <aditya.k7@samsung.com>
7021 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7022 (nb_data_writes_in_bb): Remove.
7023 (split_pbb): Remove.
7024 (split_reduction_stmt): Remove.
7025 (is_reduction_operation_p): Remove.
7026 (phi_contains_arg): Remove.
7027 (follow_ssa_with_commutative_ops): Remove.
7028 (detect_commutative_reduction_arg): Remove.
7029 (detect_commutative_reduction_assign): Remove.
7030 (follow_inital_value_to_phi): Remove.
7031 (edge_initial_value_for_loop_phi): Remove.
7032 (initial_value_for_loop_phi): Remove.
7033 (used_outside_reduction): Remove.
7034 (detect_commutative_reduction): Remove.
7035 (translate_scalar_reduction_to_array_for_stmt): Remove.
7036 (remove_phi): Remove.
7037 (dr_indices_valid_in_loop): Remove.
7038 (close_phi_written_to_memory): Remove.
7039 (translate_scalar_reduction_to_array): Remove.
7040 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7041 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7042 (rewrite_commutative_reductions_out_of_ssa): Remove.
7043 (build_poly_scop): Remove call to
7044 rewrite_commutative_reductions_out_of_ssa.
7046 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
7048 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7049 Add new insn types for vector load and store pairs.
7050 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7051 types "neon_ldp{,_q}".
7052 * config/arm/cortex-a57.md (neon_load_c): Add insn types
7054 (neon_store_complex): Add insn types "neon_stp{,_q}".
7055 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7058 2015-09-29 Jeff Law <law@redhat.com>
7060 * config/rx/constraints.md (Int08): Fix undefined left shift
7062 (Sint08, Sint16, Sint24): Likewise.
7063 * config/rx/rx.c (rx_get_stack_layout): Likewise.
7065 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7068 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7069 left shift behaviour.
7070 * config/msp430/constraints.md ('L' constraint): Similarly.
7071 ('Ys' constraint): Similarly.
7073 2015-09-29 Richard Biener <rguenther@suse.de>
7075 PR tree-optimization/67170
7076 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7077 the translate function pointer parameter to get the
7078 bool whether to disambiguate only by reference.
7079 (walk_non_aliased_vuses): Likewise.
7080 * tree-ssa-alias.c (maybe_skip_until): Adjust.
7081 (get_continuation_for_phi_1): Likewise.
7082 (get_continuation_for_phi): Likewise.
7083 (walk_non_aliased_vuses): Likewise.
7084 * tree-ssa-sccvn.c (const_parms): New bitmap.
7085 (vn_reference_lookup_3): Adjust for interface change.
7086 Disambiguate parameters pointing to readonly memory.
7087 (free_scc_vn): Free const_parms.
7088 (run_scc_vn): Initialize const_parms from a fn spec attribute.
7090 2015-09-29 Richard Biener <rguenther@suse.de>
7092 PR tree-optimization/67741
7093 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7094 builtin calls with correct signature.
7096 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
7099 * config/i386/i386.c: Include dbgcnt.h.
7100 (has_non_address_hard_reg): New.
7101 (convertible_comparison_p): New.
7102 (scalar_to_vector_candidate_p): New.
7103 (remove_non_convertible_regs): New.
7104 (scalar_chain): New.
7105 (scalar_chain::scalar_chain): New.
7106 (scalar_chain::~scalar_chain): New.
7107 (scalar_chain::add_to_queue): New.
7108 (scalar_chain::mark_dual_mode_def): New.
7109 (scalar_chain::analyze_register_chain): New.
7110 (scalar_chain::add_insn): New.
7111 (scalar_chain::build): New.
7112 (scalar_chain::compute_convert_gain): New.
7113 (scalar_chain::replace_with_subreg): New.
7114 (scalar_chain::replace_with_subreg_in_insn): New.
7115 (scalar_chain::emit_conversion_insns): New.
7116 (scalar_chain::make_vector_copies): New.
7117 (scalar_chain::convert_reg): New.
7118 (scalar_chain::convert_op): New.
7119 (scalar_chain::convert_insn): New.
7120 (scalar_chain::convert): New.
7121 (convert_scalars_to_vector): New.
7122 (pass_data_stv): New.
7124 (make_pass_stv): New.
7125 (ix86_option_override): Created and register stv pass.
7126 (flag_opts): Add -mstv.
7127 (ix86_option_override_internal): Likewise.
7128 * config/i386/i386.md (SWIM1248x): New.
7129 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7130 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7131 (*anddi3_doubleword): New.
7132 (*zext<mode>_doubleword): New.
7133 (*zextsi_doubleword): New.
7134 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7135 (*<code>di3_doubleword): New.
7136 * config/i386/i386.opt (mstv): New.
7137 * dbgcnt.def (stv_conversion): New.
7139 2015-09-29 Tom de Vries <tom@codesourcery.com>
7141 * tree-cfg.c (dump_function_to_file): Dump function attributes.
7143 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
7146 * config/sh/sh.c (sh_override_options_after_change): New.
7147 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7148 (sh_option_override): Move align_loops, align_jumps and
7149 align_functions handling into sh_override_options_after_change.
7151 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7153 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7154 (nvptx_record_offload_symbol): Record function execution geometry.
7155 * config/nvptx/mkoffload.c (process): Include launch geometry in
7157 * omp-low.c (oacc_launch_pack): New.
7158 (replace_oacc_fn_attrib): New.
7159 (set_oacc_fn_attrib): New.
7160 (get_oacc_fn_attrib): New.
7161 (expand_omp_target): Create keyed varargs for GOACC_parallel call
7163 * omp-low.h (get_oacc_fn_attrib): Declare.
7164 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7165 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7166 * tree.h (OMP_CLAUSE_EXPR): New.
7167 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7169 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7170 Sebastian Pop <s.pop@samsung.com>
7172 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7174 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7175 Sebastian Pop <s.pop@samsung.com>
7177 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7178 * graphite-scop-detection.c (struct sese_l): New type.
7179 (get_entry_bb): API for getting entry bb of SESE.
7180 (get_exit_bb): API for getting exit bb of SESE.
7181 (class debug_printer): New type. Simple printer in debug mode.
7182 (trivially_empty_bb_p): New. Return true when BB is empty or
7183 contains only debug instructions.
7184 (graphite_can_represent_expr): Call scalar_evoution_in_region
7185 instead of analyze_scalar_evolution. Pass in scop instead of only
7187 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7189 (stmt_simple_for_scop_p): Same.
7190 (harmful_stmt_in_bb): Same.
7191 (graphite_can_represent_loop): Deleted.
7192 (struct scopdet_info): Deleted.
7193 (scopdet_basic_block_info): Deleted.
7194 (build_scops_1): Deleted.
7195 (bb_in_sd_region): Deleted.
7196 (find_single_entry_edge): Deleted.
7197 (find_single_exit_edge): Deleted.
7198 (create_single_entry_edge): Deleted.
7199 (sd_region_without_exit): Deleted.
7200 (create_single_exit_edge): Deleted.
7201 (unmark_exit_edges): Deleted.
7202 (mark_exit_edges): Deleted.
7203 (create_sese_edges): Deleted.
7204 (build_graphite_scops): Deleted.
7205 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7206 (build_scops): Use the new scop_builder to build scops.
7207 (dot_all_scops_1): Use the new pretty printer. Print loop father
7209 (loop_body_is_valid_scop): New. Return true if loop body is a
7211 (class scop_builder): New. Builds SCoPs for polyhedral
7213 (scop_builder): New constructor.
7214 (static sese_l invalid_sese): sese_l with invalid edges.
7215 (get_sese): Get an sese (from a loop) if possible, invalid_sese
7217 (get_nearest_dom_with_single_entry): Get nearest dominator of a
7218 basic_block with single entry. Return NULL if we get to the
7219 beginning of a function.
7220 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7221 a basic_block with single exit. Return NULL if we get to the
7222 beginning of a function.
7223 (print_sese): Pretty-print SESE.
7224 (merge_sese): Merge two SESEs if possible and return the new SESE.
7225 (build_scop_depth): Start building the SCoP within a loop nest.
7226 (build_scop_breadth): Start building the SCoP at a single loop
7227 depth. Merge adjacent SESEs if valid.
7228 (can_represent_loop_1): Returns true if Graphite can represent
7229 loop inside SCoP. Helper for can_represent_loop.
7230 (can_represent_loop): Returns true if Graphite can represent LOOP
7231 and all its nested loops in SCoP.
7232 (loop_is_valid_scop): Returns true if LOOP and all its nests
7233 constitute a valid SCoP.
7234 (region_has_one_loop): Returns true of a region has only one loop.
7235 (add_scop): Add SCoP to the list of valid scops. Removes an
7236 already existing scop if it intersects with or subsumed by this one.
7237 (harmful_stmt_in_region): Returns true if SCoP has any statment
7238 which cannot be represented by Graphite.
7239 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7240 (remove_subscops): Remove any SCoP from the list of already found
7241 SCoPs, if subsumed by S1.
7242 (intersects): Return true if region bounded by SCoPs S1 and S2
7244 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7245 * graphite.c (print_graphite_scop_statistics):
7246 (print_graphite_statistics): Print SCoP info while debugging.
7247 (graphite_initialize): Early exit in case number of loops in a
7248 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7249 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7250 (graphite_finalize):
7251 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7252 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7253 (recompute_all_dominators): Recalculate POST_DOMINATORS.
7254 * tree-cfg.c (print_loops): Print the function name while printing
7257 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7258 Sebastian Pop <s.pop@samsung.com>
7260 PR tree-optimization/67700
7261 * graphite-sese-to-poly.c (parameter_index_in_region): Call
7262 invariant_in_sese_p_rec.
7263 (extract_affine): Same.
7264 (rewrite_cross_bb_scalar_deps): Call update_ssa.
7265 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
7266 * sese.h (invariant_in_sese_p_rec): Declare.
7268 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
7270 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7272 2015-09-28 Jiong Wang <jiong.wang@arm.com>
7275 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7276 Jiong Wang <jiong.wang@arm.com>
7278 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7279 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7280 (REG_CLASS_NAMES): Likewise.
7281 (REG_CLASS_CONTENTS): Likewise.
7282 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7283 (aarch64_register_move_cost): Likewise.
7284 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7286 * config/aarch64/constraints.md (Uc0): New constraint.
7288 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
7290 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7292 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
7294 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7295 SECTION_EXCLUDE in XO mapping class.
7297 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7300 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7301 and handle ne and eq codes.
7302 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7303 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
7304 CONST_INT_P. Use reverse_condition.
7305 (sh_split_treg_set_expr): Likewise.
7307 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
7309 * config/arm/types.md (type): Add rotate_imm.
7310 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7312 (*rorsi3_insn_uxtw): Likewise.
7313 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7314 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7315 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7317 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7319 PR rtl-optimization/67481
7320 * ifcvt.c (contains_ccmode_rtx_p): New function.
7321 (insn_valid_noce_process_p): Use it.
7323 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7325 PR rtl-optimization/67456
7326 PR rtl-optimization/67464
7327 PR rtl-optimization/67465
7328 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7329 move in the mode of x. Handle combination of complex and simple
7330 block pairs as well as the case when one is empty.
7332 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7334 * doc/gimple.texi: Update references to gimple_statement_base.
7335 * gdbhooks.py: Likewise.
7336 * gimple.h: Likewise.
7338 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7340 * config/sparc/driver-sparc.c: map LEON to leon3
7342 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7344 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7345 and make it inverse to change default
7346 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7348 * doc/invoke.texi: Document change of default
7350 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7352 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7353 true on %f0 for a target without FPU.
7354 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7356 (untyped_return): Do not load %f0 for a target without FPU.
7358 2015-09-28 Andrew Pinski <apinski@cavium.com>
7360 * config/aarch64/aarch64.md (prefetch):
7361 Change the predicate of operand 0 to register_operand.
7363 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
7365 * config/i386/predicates.md (register_sse4nonimm_operand): New
7367 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7368 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7369 Use register_sse4nonimm_operand as operand 0 predicate.
7370 (*vec_extractv8hi_sse2): Remove insn pattern.
7371 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7372 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7374 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7375 Kaz Kojima <kkojima@gcc.gnu.org>
7378 * config/sh/sh-protos.h (sh_lra_p): Declare.
7379 * config/sh/sh.c (sh_lra_p): Make non-static.
7380 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7381 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
7382 Expand into addsi3_scr if operands[2] if needed.
7383 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
7384 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
7385 (addsi3_scr, *addsi3): New insn_and_split patterns.
7387 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
7389 PR rtl-optimization/64164
7390 PR tree-optimization/67312
7394 * cfgexpand.c (parm_in_stack_slot_p): Remove.
7395 (ssa_default_def_partition): Remove.
7396 (get_rtl_for_parm_ssa_default_def): Remove.
7397 (set_rtl): Check that RTL assignments match expectations.
7398 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
7399 default def location for params and results. Record SSA names
7400 or types in REG and MEM attrs, respectively.
7401 (set_parm_rtl): New.
7402 (expand_one_ssa_partition): Drop logic that assigned MEMs with
7403 unassigned addresses.
7404 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7405 deferred stack alloc vars.
7406 (expand_used_vars): Skip partitions holding parm default defs.
7407 Move adjust_one_expanded_partition_var loop...
7408 (pass_expand::execute): ... here. Drop redundant assert.
7409 Adjust comments before the final loop over all ssa names.
7410 Require assigned rtl of parms and results to match exactly.
7411 Reset its attributes to match them, not any other variables in
7413 (expand_debug_expr): Use entry value for PARM's default defs
7414 only iff they have zero nondebug uses.
7415 * cfgexpand.h (parm_in_stack_slot_p): Remove.
7416 (get_rtl_for_parm_ssa_default_def): Remove.
7417 (set_parm_rtl): Declare.
7418 * doc/invoke.texi: Improve wording.
7419 * explow.c (promote_decl_mode): Fix promote_function_mode for
7420 result decls not by reference.
7421 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7422 bypass TYPE_MODE to get the actual vector mode.
7423 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
7424 2015-08-19's changes as follows. Drop include of
7425 basic-block.h and df.h.
7426 (rtl_for_parm): Remove.
7427 (maybe_reset_rtl_for_parm): Remove.
7428 (parm_in_unassigned_mem_p): Remove.
7429 (use_register_for_decl): Add logic for RESULT_DECLs matching
7430 assign_parms' behavior.
7431 (split_complex_args): Revert.
7432 (assign_parms_augmented_arg_list): Revert. Add comment
7433 referencing the logic above.
7434 (assign_parm_adjust_stack_rtl): Revert.
7435 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
7436 of SET_DECL_RTL. Set up a REG if the parm demands so.
7437 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
7438 calls into a single set_parm_rtl. Set up a temporary RTL
7439 temporarily for expand_assignment.
7440 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
7441 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
7442 (assign_bounds): Revert.
7443 (assign_parms): Revert. Use set_parm_rtl.
7444 (allocate_struct_function): Relayout result and parms of
7445 non-abstruct functions.
7446 (expand_function_start): Revert. Use set_parm_rtl. If the
7447 result is not a hard reg, create a pseudo from the promoted
7448 mode of the default def. Promote static chain mode.
7449 * tree-outof-ssa.c (remove_ssa_form): Drop unused
7450 partition_has_default_def. Set up
7451 partitions_for_parm_default_defs.
7452 (finish_out_of_ssa): Remove partition_has_default_def.
7453 Release partitions_for_parm_default_defs.
7454 * tree-outof-ssa.h (struct ssaexpand): Remove
7455 partition_has_default_def. Add
7456 partitions_for_parm_default_defs.
7457 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
7459 (build_ssa_conflict_graph): Fix conflict-detection of default
7460 defs of even unused default defs of params and results.
7461 (for_all_parms): New.
7462 (create_default_def): New.
7463 (register_default_def): New.
7464 (coalesce_with_default): New.
7465 (create_outofssa_var_map): Create default defs for all parms
7466 and results, and register their partitions. Add GIMPLE_RETURN
7467 operands as coalesce candidates with results. Add default
7468 defs of each parm or result as coalesce candidates with its
7469 other defs. Mark each result def, and each default def of
7470 parms, as used_in_copy.
7471 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
7472 with the ssa names, even anonymous ones. Drop
7473 parm_in_stack_slot_p calls. Require same signedness and
7475 (coalesce_ssa_name): Add coalesce candidates for all defs of
7476 each parm and result, even unused ones.
7477 (parm_default_def_partition_arg): New type.
7478 (set_parm_default_def_partition): New.
7479 (get_parm_default_def_partitions): New.
7480 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
7481 * tree-ssa-live.c (partition_view_init): Regard unused defs of
7482 parms and results as used.
7483 (verify_live_on_entry): Don't error out just because they're
7486 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
7488 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7489 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
7490 (output_fde): Don't output length for debug_frame on AIX.
7491 (output_call_frame_info): Don't output length for debug_frame on AIX.
7492 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
7493 HAVE_XCOFF_DWARF_EXTRAS.
7494 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
7495 HAVE_XCOFF_DWARF_EXTRAS.
7496 (output_compilation_unit_header): Don't output length on AIX.
7497 (output_pubnames): Don't output length on AIX.
7498 (output_aranges): Delete argument. Compute length locally. Don't
7499 output length on AIX.
7500 (output_line_info): Don't output length on AIX.
7501 (dwarf2out_finish): Don't compute aranges_length.
7502 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7503 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
7504 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
7505 symbol decoration for AIX.
7506 (rs6000_xcoff_debug_unwind_info): New.
7507 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
7509 (rs6000_xcoff_declare_function_name): Emit different
7510 .function pseudo-op when DWARF2_DEBUG. Don't call
7511 xcoffout_declare_function for DWARF2_DEBUG.
7512 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
7514 * config/rs6000/aix71.h: New.
7515 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
7517 * configure: Regenerate.
7518 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
7521 2015-09-26 Jeff Law <law@redhat.com>
7523 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
7525 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
7528 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
7531 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
7532 undefined behaviour.
7534 * config/cris/cris.md (asrandb): Fix left shift undefined
7536 (asrandw): Likewise.
7538 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
7541 * lra-constarints.c (match_reload): Check presence of the input pseudo
7542 in the output operand.
7544 2015-09-25 Tobias Burnus <burnus@net-b.de>
7546 * doc/invoke.texi (-fsanitize): Minor wording tweak.
7548 2015-09-25 Tobias Burnus <burnus@net-b.de>
7550 * doc/invoke.texi (-fsanitize): Update URLs.
7552 2015-09-25 Teresa Johnson <tejohnson@google.com>
7554 * opts.c (finish_options): Unset -freorder-blocks-and-partition
7555 if not using profile.
7557 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
7559 PR pretty-print/67567
7560 * pretty-print.c (pp_string): Add gcc_checking_assert.
7561 * pretty-print.h (output_buffer_append_r): Likewise.
7563 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7566 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
7567 addr2 individually. Don't emit logical or insn if one is known to
7568 be aligned approriately.
7569 (sh_expand_cmpnstr): Likewise.
7571 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
7573 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
7574 __builtin_aarch64_fp[sc]r arguments into a register.
7576 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
7578 * config.gcc (x86_archs): Replace lakemount with lakemont.
7579 (with_cpu): Likewise.
7580 (with_arch): Likewise.
7581 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7582 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
7583 __tune_lakemount__ with __tune_lakemont__.
7584 * config/i386/i386.c (lakemount_cost): Renamed to ...
7585 (lakemont_cost): This.
7586 (m_LAKEMOUNT): Renamed to ...
7588 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
7589 (processor_target_table): Replace "lakemount" with "lakemont".
7590 (processor_alias_table): Likewise.
7591 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
7593 (ix86_adjust_cost): Likewise.
7594 (ia32_multipass_dfa_lookahead): Likewise.
7595 * config/i386/i386.h (processor_type): Likewise.
7596 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
7597 * doc/invoke.texi: Replace lakemount with lakemont. Replace
7598 Lakemount with Lakemont.
7600 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
7602 * config.gcc (x86_archs): Replace iamcu with lakemount.
7603 (with_cpu): Likewise.
7604 (with_arch): Likewise.
7605 * doc/invoke.texi: Likewise.
7606 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7607 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
7608 __tune_iamcu__ with __tune_lakemount__.
7609 * config/i386/i386.c (iamcu_cost): Renamed to ...
7610 (lakemount_cost): This.
7611 (m_IAMCU): Renamed to ...
7612 (m_LAKEMOUNT): This.
7613 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
7614 (processor_target_table): Replace "iamcu" with "lakemount".
7615 (processor_alias_table): Likewise.
7616 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
7617 PROCESSOR_LAKEMOUNT.
7618 (ix86_adjust_cost): Likewise.
7619 (ia32_multipass_dfa_lookahead): Likewise.
7620 * config/i386/i386.h (processor_type): Likewise.
7621 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
7623 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
7625 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
7626 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
7628 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
7629 (pa_expand_compare_and_swap_loop): New.
7630 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
7631 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
7632 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
7633 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
7634 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
7637 2015-09-24 Michael Collison <michael.collison@linaro.org>
7640 * read-md.c (read_name): Allow mode iterators inside angle
7641 brackets in rtl expressions.
7643 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
7646 * ira-color.c (update_allocno_cost): Add parameter.
7647 (update_costs_from_allocno): Decrease conflict cost. Pass the new
7650 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7653 * opts-common.c (prune_options): Discard all -fdiagnostics-color
7654 but the last one, which is moved to the front to be processed
7656 * opts.c (enable_warning_as_error): Reject options that do not
7659 2015-09-24 Jiong Wang <jiong.wang@arm.com>
7661 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
7663 2015-09-24 Jiong Wang <jiong.wang@arm.com>
7665 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
7666 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
7667 (aarch64_cannot_force_const_mem): Likewise.
7668 (aarch64_classify_address): Likewise.
7669 (aarch64_classify_symbolic_expression): Likewise.
7670 (aarch64_print_operand): Likewise.
7671 (aarch64_classify_symbol): Likewise.
7672 (aarch64_mov_operand_p): Likewise.
7673 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
7674 (aarch64_mov_operand): Likewise.
7676 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
7678 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
7679 for info->spe_gp_size.
7681 2015-09-24 Richard Biener <rguenther@suse.de>
7684 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
7687 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
7689 * tree-object-size.c (plus_stmt_object_size)
7690 (cond_expr_object_size): Change the formal parameters from gimple
7692 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
7693 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
7694 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
7696 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7698 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
7699 Check for ld -type pie on Solaris 11.x and 12.
7700 * configure: Regenerate.
7701 * config.in: Regenerate.
7703 * gcc.c (LD_PIE_SPEC): Allow redefinition.
7705 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
7706 (STARTFILE_SPEC): Use it.
7707 (ENDFILE_CRTEND_SPEC): Define.
7708 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
7709 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
7710 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
7711 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
7712 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
7713 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
7714 (ENDFILE_ARCH_SPEC): Define.
7715 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
7717 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7719 * configure.ac (gcc_cv_solaris_crts): New test.
7720 * configure. Regenerate.
7721 * config.in: Regenerate.
7722 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
7723 HAVE_SOLARIS_CRTS variant.
7725 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7727 * tree-inline.h (count_insns_seq): Delete prototype.
7728 (estimate_num_insns_seq): Define prototype.
7729 * tree-inline.c (count_insns_seq): Delete.
7730 (estimate_num_insns_seq): Remove static qualifier.
7731 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
7732 with estimate_num_insns_seq.
7734 2015-09-24 Richard Biener <rguenther@suse.de>
7736 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
7738 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
7739 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
7741 (ao_ref_init_from_vn_reference): Record clique and base in the
7743 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
7745 2015-09-24 Richard Biener <rguenther@suse.de>
7747 PR tree-optimization/48885
7748 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
7749 as not including any restrict tags from other pointers.
7751 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
7753 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
7754 character when appending to offload_targets.
7756 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
7757 offload targets by commas, not colons.
7758 * config.in: Regenerate.
7759 * configure: Likewise.
7760 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
7761 instead of setting up the default offload targets here...
7762 (process_command): ..., do it here.
7764 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
7765 targets are separated by commas.
7766 * config.h.in: Regenerate.
7768 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
7769 Nathan Sidwell <nathan@codesourcery.com>
7771 * omp-low.h (omp_reduction_init_op): Declare.
7772 * omp-low.c (omp_reduction_init_op): New, broken out of ...
7773 (omp_reduction_init): ... here. Call it.
7774 * tree-parloops.c (initialize_reductions): Use
7775 omp_reduction_init_op.
7777 2015-09-23 Richard Biener <rguenther@suse.de>
7780 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
7781 undefined overflow unless they will cancel out.
7783 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
7785 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
7788 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7791 * opts.h (write_langs): Declare.
7792 * opts-global.c (write_langs): Make it extern.
7794 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
7797 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
7798 overlapping regs when matching the pattern.
7800 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
7802 * config/aarch64/aarch64-simd.md
7803 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
7804 (aarch64_float_truncate_hi_v4sf_le): New.
7805 (aarch64_float_truncate_hi_v4sf_be): Likewise.
7807 2015-09-23 Richard Biener <rguenther@suse.de>
7809 * tree-ssa-structalias.c (intra_create_variable_infos): Build
7810 representatives for all restrict qualified pointer destinations.
7812 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
7814 * config/i386/i386.md (define_code_attr mshift): New.
7815 (define_mode_iterator SWI1248_AVX512BW): Rename ...
7816 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
7818 (define_insn "*k<logic><mode>"): Use new iterator name.
7819 (define_insn "*<mshift><mode>3"): New.
7821 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
7824 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
7825 mark the block as accessible.
7827 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
7829 * function.c (thread_prologue_and_epilogue_insns): Delete
7830 orig_entry_edge argument to try_shrink_wrapping.
7831 * shrink-wrap.c (can_get_prologue): New function.
7832 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
7833 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
7834 can_get_prologue where needed. Remove code that finds a single
7835 edge for the prologue. Remove code that tests if any reg clobbered
7836 by the prologue is live on the prologue edge. Remove code that finds
7837 the new prologue edge after duplicating blocks. Make a new prologue
7839 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
7841 2015-09-22 Jeff Law <law@redhat.com>
7843 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
7846 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
7848 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
7849 -Wtemplates, -Wnamespaces): Document.
7851 2015-09-22 Tom de Vries <tom@codesourcery.com>
7853 PR tree-optimization/67671
7854 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
7855 pointer references as restrict.
7857 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7859 * config/nios2/nios2.c (nios2_legitimize_address): When handling
7860 'reg + reloc' cases, allow first operand to be non-REG, and use
7861 force_reg() to enforce address pattern.
7863 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
7866 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
7867 (define_mode_iterator VI12_AVX_AVX512F): New.
7868 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
7869 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
7870 (define_insn "*<code><mode>3"): ... Into new pattern using
7871 VI12_AVX_AVX512F iterators without masking.
7873 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7875 * config.gcc: Support "skylake-avx512".
7876 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7877 PROCESSOR_SKYLAKE_AVX512.
7878 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
7879 (processor_target_table): Add "skylake-avx512".
7880 (PTA_SKYLAKE_AVX512): Define.
7881 (ix86_option_override_internal): Add "skylake_avx512".
7882 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
7883 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
7884 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
7885 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
7886 * doc/invoke.texi (skylake-avx512): New.
7888 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7890 * config/i386/i386.md (define_insn "kunpckhi"): Fix
7892 (define_insn "kunpcksi"): Ditto.
7893 (define_insn "kunpckdi"): Ditto.
7895 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7897 * config/i386/i386.md (define_split not/xor SWI1248x): Use
7898 iterator instead of fixed modes.
7900 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7902 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7904 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
7905 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
7906 out_result. Update to support update-fetch operations.
7907 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
7908 Adjust for change to aarch64_gen_atomic_ldop.
7909 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
7910 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
7911 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
7912 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
7913 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
7915 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7917 * config/aarch64/aarch64-protos.h
7918 (aarch64_atomic_ldop_supported_p): Declare.
7919 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
7920 (enum aarch64_atomic_load_op_code): New.
7921 (aarch64_emit_atomic_load_op): New.
7922 (aarch64_gen_atomic_ldop): Update to support load-operate
7924 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
7926 (aarch64_atomic_<atomic_optab><mode>): New.
7927 (aarch64_atomic_<atomic_optab><mode>_lse): New.
7928 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
7929 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
7930 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
7932 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7934 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
7935 (UNSPECV_ATOMIC_LDOP_OR): New.
7936 (UNSPECV_ATOMIC_LDOP_BIC): New.
7937 (UNSPECV_ATOMIC_LDOP_XOR): New.
7938 (UNSPECV_ATOMIC_LDOP_PLUS): New.
7941 (aarch64_atomic_load<atomic_ldop><mode>): New.
7943 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7945 * config/aarch64/aarch64.md
7946 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
7949 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7951 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7953 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
7954 (aarch64_gen_atomic_ldop): New.
7955 (aarch64_split_atomic_op): Fix whitespace and add a comment.
7956 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
7957 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
7958 (atomic_exchange<mode>): Replace with an expander.
7959 (aarch64_atomic_exchange<mode>): New.
7960 (aarch64_atomic_exchange<mode>_lse): New.
7961 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
7962 (aarch64_atomic_swp<mode>): New.
7964 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7966 * tree-inline.c (expand_call_inline): Use inform for extra note.
7967 Do not give a note with UNKNOWN_LOCATION.
7968 Replace input_location with gimple_location (stmt).
7969 Use true/false instead of TRUE/FALSE.
7971 2015-09-22 Tom de Vries <tom@codesourcery.com>
7973 PR tree-optimization/67666
7974 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
7975 with single field non-conservative.
7977 2015-09-21 David S. Miller <davem@davemloft.net>
7981 2015-09-11 David S. Miller <davem@davemloft.net>
7983 * config/sparc/constraints.md: Make "U" constraint a real register
7985 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7986 (D_MODES, DF_MODES): Add missing cast.
7987 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7988 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7989 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7991 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7992 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7993 provide these insn when flag_pic.
7995 2015-09-17 David S. Miller <davem@davemloft.net>
7997 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
7999 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8001 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8002 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8003 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8004 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8005 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8006 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8007 provide when flag_pic.
8009 2015-09-21 Jeff Law <law@redhat.com>
8011 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8014 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8016 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8018 2015-09-21 Richard Biener <rguenther@suse.de>
8020 * passes.c (rest_of_decl_compilation): Do not call
8021 dwarf2out_early_global_decl for aliases.
8023 2015-09-21 Richard Biener <rguenther@suse.de>
8026 * dwarf2out.c (add_location_or_const_value_attribute): Remove
8027 attribute parameter. Early exit if either DW_AT_const_value
8028 or DW_AT_location are present already.
8029 (gen_variable_die): Adjust caller.
8030 (dwarf2out_late_global_decl): Likewise.
8032 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8035 * config/sh/sh.c (sh_remove_overlapping_post_inc,
8036 sh_peephole_emit_move_insn): Add new functions.
8037 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8038 sh_peephole_emit_move_insn): Declere them.
8039 * config/sh/sh.md: Use them in various peephole2 patterns.
8041 2015-09-21 Richard Biener <rguenther@suse.de>
8044 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8045 address with -fno-delete-null-pointer-checks.
8047 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
8049 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8050 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8051 (reduc_uplus_v16qi): Remove.
8053 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8054 (reduc_<VEC_reduc_name>_v2df): Remove.
8055 (reduc_<VEC_reduc_name>_v4sf): Remove.
8056 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8058 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8059 gen_ function by removing * prefix.
8060 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8062 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8065 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8066 Print i_bound without converting it to a tree.
8068 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
8070 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8071 operands[4] operands[5] swap with std::swap, removed tmp variable.
8072 (arm_evpc_neon_vzip): Replaced in0/in1 and
8073 out0/out1 swaps with std::swap, removed x variable.
8074 (arm_evpc_neon_vtrn): Replaced in0/int1 and
8075 out0/out1 swaos with std::swap, removed x variable.
8076 (arm_expand_vec_perm_const_1): Replaced
8077 d->op0/d->op1 swap with std::swap, removed x variable.
8078 (arm_evpc_neon_vuzp): Replaced in0/in1 and
8079 out0/out1 swaps with std::swap, removed x variable.
8081 2015-09-21 Jonathan Yong <10walls@gmail.com>
8083 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8084 sysroot/usr/lib/32api for additional win32 libraries,
8085 fixes failing Cygwin bootstrapping.
8087 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8089 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8091 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8094 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8095 (*mov_t_msb_neg): Rewrite negc pattern.
8097 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8099 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8100 immediate generation code.
8102 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8104 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8105 redundant immediate generation code.
8107 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8109 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8110 (AARCH64_NUM_BITMASKS): Remove.
8111 (aarch64_bitmasks_cmp): Remove.
8112 (aarch64_build_bitmask_table): Remove.
8114 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8116 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8117 slow immediate matching loops with a faster algorithm.
8119 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8121 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8124 2015-09-20 Jeff Law <law@redhat.com>
8126 PR tree-optimization/47679
8127 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8128 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8129 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8130 (thread_through_normal_block): Use record_temporary_equivalences.
8132 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
8134 * coretypes.h (gimple): Change typedef to be a forward declaration.
8135 * gimple.h (gimple_statement_base): rename to gimple.
8136 * (all functions and types using gimple): Adjust.
8139 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
8140 David Edelsohn <dje.gcc@gmail.com>
8142 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8143 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8144 (EH_FRAME_THROUGH_COLLECT2): Define.
8145 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8146 (ASM_OUTPUT_DWARF_PCREL): Define.
8147 (ASM_OUTPUT_DWARF_DATAREL): Define.
8149 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
8151 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8154 2015-09-18 Jeff Law <law@redhat.com>
8156 PR tree-optimization/47679
8157 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
8159 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8160 object. Update constructor.
8161 (pass_dominator::execute): Corresponding chagnes to declaration
8162 and initialization of avail_exprs_stack. Update constructor call
8163 for dom_opt_dom_walker object.
8164 (lookup_avail_expr, record_cond): Accept additional argument. Pass
8165 it down to children as needed.
8166 (record_equivalences_from_incoming_edge): Likewise.
8167 (eliminate_redundant_computations): Likewise.
8168 (record_equivalences_from_stmt): Likewise.
8169 (simplify_stmt_for_jump_threading): Likewise.
8170 (record_temporary_equivalences): Likewise.
8171 (optimize_stmt): Likewise.
8172 (dom_opt_dom_walker::thread_across_edge): Update access to
8173 avail_exprs_stack object and pass it to children as needed.
8174 (dom_opt_dom_walker::before_dom_children): Similarly.
8175 (dom_opt_dom_walker::after_dom_children): Similarly.
8176 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8177 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8178 Add avail_expr_stack argument. Pass it to children as needed.
8179 (dummy_simplify): Likewise.
8180 (simplify_control_stmt_condition): Likewise.
8181 (thread_around_empty_blocks): Likewise.
8182 (thread_through_normal_block): Likewise.
8183 (thread_across_edge): Likewise.
8184 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8185 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8187 PR tree-optimization/47679
8188 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
8190 (dom_opt_dom_walker): New private member holding the const_and_copies
8191 object. Update constructor.
8192 (pass_dominator::execute): Corresponding changes to declaration
8193 and initialization of const_and_copies. Update constructor call
8194 for the dom_opt_dom_walker object.
8195 (record_temporary_equivalences): Accept const_and_copies argument
8196 pass it down to children as needed.
8197 (record_equality): Likewise.
8198 (record_equivalences_from_incoming_edge): Likewise.
8199 (cprop_into_successor_phis, optimize_stmt): Likewise.
8200 (eliminate_redundant_computations): Likewise.
8201 (dom_opt_dom_walker::thread_across_edge): Update access to
8202 const_and_copies object and pass it to children as needed.
8203 (dom_opt_dom_walker::before_dom_children): Similarly.
8204 (dom_opt_dom_walker::after_dom_children): Similarly.
8206 PR tree-optimization/47679
8207 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
8208 it into the avail_exprs_stack class.
8209 (pass_dominator::execute): Corresponding changes to declaration
8210 and initialization of avail_exprs. Pass avail_exprs to
8211 dump_dominator_optimization_stats.
8212 (record_cond): Extract avail_exprs from avail_exprs_stack.
8213 (lookup_avail_expr): Similarly.
8214 (htab_staticstics): Remove unnecessary prototype. Move to earlier
8216 (dump_dominator_optimization_stats): Make static and prototype.
8217 Add argument for the hash table to dump.
8218 (debug_dominator_optimization_stats): Remove.
8219 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8221 (debug_dominator_optimization_stats): Similarly.
8222 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8223 "void" in prototype for pop_to_marker method. Add accessor method
8224 for the underlying avail_exprs table.
8226 * tree-ssa-threadedge.c: Remove trailing whitespace.
8228 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
8230 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8232 (pa_ldil_cint_p): Likewise.
8233 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8234 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8236 * config/pa/pa.md: Likewise.
8238 2015-09-18 David Malcolm <dmalcolm@redhat.com>
8240 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8241 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8242 (diagnostic_show_locus): Likewise.
8243 (diagnostic_print_caret_line): Likewise.
8244 * diagnostic-show-locus.c: New file.
8246 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
8248 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8249 "back" parameter. Declare label in #if block.
8251 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
8254 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8255 the address to a register.
8257 2015-09-18 Jeff Law <law@redhat.com>
8259 PR tree-optimization/47679
8260 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8261 * tree-ssa-dom.c: Remove unnecessary header includes.
8262 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8263 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8264 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8265 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8266 (pass_phi_only_cprop::execute): Likewise.
8267 (make_pass_phi_only_cprop): Likewise.
8268 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
8269 uses of file scoped statics by passing the required objects
8270 as parameters wherever needed.
8272 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
8273 David Edelsohn <dje.gcc@gmail.com>
8275 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8276 EH_FRAME_THROUGH_COLLECT2.
8277 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8279 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8280 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
8281 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8282 * except.c (switch_to_exception_section): Use a read-only section
8283 even if EH_FRAME_SECTION_NAME is undefined.
8284 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8285 * collect2.c (write_c_file_stat): Provide dbase on AIX.
8286 (scan_prog_file): Don't export __dso_handle nor
8288 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8289 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8290 (ASM_OUTPUT_DWARF_PCREL): Define.
8291 (ASM_OUTPUT_DWARF_DATAREL): Define.
8292 (EH_FRAME_THROUGH_COLLECT2): Define.
8293 (EH_FRAME_IN_DATA_SECTION): Delete.
8294 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8295 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8297 (rs6000_asm_output_dwarf_datarel): Declare.
8298 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8299 (rs6000_aix_asm_output_dwarf_datarel): New.
8300 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8301 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8302 (EH_FRAME_THROUGH_COLLECT2): Define.
8303 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8304 (EH_FRAME_THROUGH_COLLECT2): Define.
8305 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8306 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8307 (EH_FRAME_THROUGH_COLLECT2): New.
8308 (ASM_OUTPUT_DWARF_DATAREL): New.
8309 * doc/tm.texi: Regenerate.
8311 2015-09-18 Richard Biener <rguenther@suse.de>
8313 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8314 we're in early phase.
8315 (schedule_generic_params_dies_gen): Likewise.
8316 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8317 work as possible, retaining unhandled cases.
8318 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8319 clear out generic_type_instances at the end.
8320 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8321 (dwarf2out_early_finish): ... here. Do most of
8322 gen_remaining_tmpl_value_param_die_attribute here.
8324 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
8326 PR tree-optimization/67283
8327 * tree-sra.c (type_consists_of_records_p): Rename to...
8328 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8329 (completely_scalarize_record): Rename to...
8330 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8331 (scalarize_elem): New.
8332 (analyze_all_variable_accesses): Follow renamings.
8334 2015-09-18 Richard Biener <rguenther@suse.de>
8336 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8339 2015-09-18 Richard Biener <rguenther@suse.de>
8341 PR tree-optimization/66142
8342 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8343 treat MEM[&x] and x the same.
8344 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8345 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8346 when we simplified sth.
8347 (vn_reference_maybe_forwprop_address): Likewise.
8348 (valueize_refs_1): When we simplified through
8349 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8350 set valueized_anything to true.
8351 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8352 one ref kills the other instead of just a offset-based test.
8353 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8354 for the operand_equal_p test to compare bases and also compare
8357 2015-09-17 Christian Bruel <christian.bruel@st.com>
8359 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8361 2015-09-17 Richard Henderson <rth@redhat.com>
8364 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8365 pointers that encode the alignment of the object.
8367 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8369 PR rtl-optimization/66790
8370 * df-problems.c (LIVE): Amend documentation.
8372 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
8374 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8376 (GTFILES): Replace optabs.c with optabs-libfunc.c.
8377 * genopinit.c (main): Add an include guard to insn-opinit.h.
8378 Protect the rtx_code parts with NUM_RTX_CODE.
8379 * optabs.h: Split parts out to...
8380 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8381 * optabs.c: Split parts out to...
8382 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8383 * cilk-common.c: Include optabs-query.h rather than optabs.h.
8384 * fold-const.c: Likewise.
8385 * target-globals.c: Likewise.
8386 * tree-if-conv.c: Likewise.
8387 * tree-ssa-forwprop.c: Likewise.
8388 * tree-ssa-loop-prefetch.c: Likewise.
8389 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8390 Remove unncessary include files.
8391 * tree-ssa-phiopt.c: Likewise.
8392 * tree-ssa-reassoc.c: Likewise.
8393 * tree-switch-conversion.c: Likewise.
8394 * tree-vect-data-refs.c: Likewise.
8395 * tree-vect-generic.c: Likewise.
8396 * tree-vect-loop.c: Likewise.
8397 * tree-vect-patterns.c: Likewise.
8398 * tree-vect-slp.c: Likewise.
8399 * tree-vect-stmts.c: Likewise.
8400 * tree-vrp.c: Likewise.
8401 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8402 rather than optabs.h.
8403 * expr.c: Include optabs-tree.h.
8404 * function.c: Likewise.
8406 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8409 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8410 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8411 * config/arm/arm.c: Include common/common-target.h.
8412 (use_return_insn): Return 0 if the static chain register was saved
8413 above a non-APCS frame.
8414 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8415 (struct scratch_reg): New.
8416 (get_scratch_register_on_entry): New function.
8417 (release_scratch_register_on_entry): Likewise.
8418 (arm_emit_probe_stack_range): Likewise.
8419 (output_probe_stack_range): Likewise.
8420 (arm_expand_prologue): Factor out code dealing with the IP register
8421 for nested function and adjust it for stack checking.
8422 Invoke arm_emit_probe_stack_range if static builtin stack checking
8424 (thumb1_expand_prologue): Sorry out if static builtin stack checking
8426 (arm_expand_epilogue): Add the saved static chain register, if any, to
8427 the amount of pre-pushed registers to pop.
8428 (arm_frame_pointer_required): Return true if static stack checking is
8429 enabled and we want to catch the exception with the EABI unwinder.
8430 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
8431 (UNSPEC_PROBE_STACK_RANGE): Likewise.
8432 * config/arm/arm.md (probe_stack): New insn.
8433 (probe_stack_range): Likewise.
8435 2015-09-17 Richard Biener <rguenther@suse.de>
8437 * genmatch.c (parser::parse_expr): Improve error message
8438 for mis-placed flags.
8440 2015-09-17 Richard Biener <rguenther@suse.de>
8442 * passes.c (rest_of_decl_compilation): Always call early_global_decl
8443 debug hook when we created a varpool node.
8444 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
8445 dwarf2out_early_global_decl, when not just add location or
8446 value attributes to existing DIEs.
8448 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
8450 * config/aarch64/aarch64.md (copysigndf3): New.
8451 (copysignsf3): Likewise.
8453 2015-09-17 David S. Miller <davem@davemloft.net>
8455 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
8456 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
8457 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8458 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8459 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8460 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8461 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8462 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8463 provide when flag_pic.
8465 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
8467 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
8468 object_allocator change.
8470 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8472 PR tree-optimization/66388
8473 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
8474 (dump_iv): Dump no_overflow information.
8475 (alloc_iv): Initialize new field for struct iv.
8476 (mark_bivs): Count number of no_overflow bivs.
8477 (find_deriving_biv_for_expr, record_biv_for_address_use): New
8479 (idx_find_step): Call new functions above.
8480 (add_candidate_1, add_candidate): New paramter.
8481 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
8482 (get_computation_aff): Simplify convertion of cand for BIV.
8483 (get_computation_cost_at): Step cand's base if necessary.
8485 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8487 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
8489 (tree_simplify_using_condition): Ditto.
8490 (simplify_using_initial_conditions): Ditto.
8491 (loop_exits_before_overflow): Pass new argument to function
8492 simplify_using_initial_conditions. Remove case for type conversions
8494 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
8496 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
8497 in iv base using loop initial conditions.
8499 2015-09-16 Jeff Law <law@redhat.com>
8501 PR tree-optimization/47679
8502 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
8503 (free_all_edge_infos): Use it.
8504 (allocate_edge_info): Free preexisting edge info data.
8505 (pass_dominator::execute): Set up initial edge info structures.
8506 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
8508 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
8509 If non-null, then push/pop markers appropriately.
8510 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8511 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
8514 2015-09-16 James Bowman <james.bowman@ftdichip.com>
8516 * config/ft32/ft32.c: Fix the memory address space predicate.
8518 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
8521 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
8522 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8524 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8526 * toplev.h (check_global_declaration): Remove declaration.
8527 * toplev.c (check_global_declaration): Move to ...
8528 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
8529 (analyze_functions): Update call.
8531 2015-09-16 David S. Miller <davem@davemloft.net>
8533 * lra-constraints.c (simplify_operand_subreg): Do not assume that
8534 lowpart of a SUBREG has offset zero.
8536 2015-09-16 Jeff Law <law@redhat.com>
8538 PR tree-optimization/47679
8539 * tree-ssa-dom.c (enum expr_kind): Moved from here to
8540 tree-ssa-scopedtables.h.
8541 (struct hashable_expr, class expr_hash_elt): Likewise.
8542 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
8543 Move associated methods into tree-ssa-scopedtables.c.
8544 (avail_expr_hash, initialize_expr_from_cond): Similarly.
8545 (hashable_expr_equal_p, add_expr_commutative): Likewise.
8546 (add_hashable_expr): Likewise.
8547 (record_cond): Delete element directly.
8548 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
8549 private copy ctor and assignment operator methods.
8550 (expr_elt_hasher): Inline trivial methods.
8551 (initialize_expr_from_cond): Prototype.
8552 * tree-ssa-scopedtables.c: Add necessary includes, functions and
8553 methods that were previously in tree-ssa-dom.c. Improve various
8556 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
8558 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
8560 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
8563 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8566 2015-09-16 Richard Biener <rguenther@suse.de>
8569 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
8570 location of possibly shared trees.
8572 2015-09-16 Richard Biener <rguenther@suse.de>
8575 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
8577 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
8579 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
8580 offset and size computations instead of HOST_WIDE_INT.
8582 2015-09-16 Richard Biener <rguenther@suse.de>
8585 * fold-const.c (extract_muldiv_1): Properly extend multiplication
8586 result before builting a tree via wide_int_to_tree.
8588 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
8590 * Makefile.in: Add memory-block.cc
8591 (pool_allocator::initialize): Use fixed block size.
8592 (pool_allocator::release): Use memory_block_pool.
8593 (pool_allocator::allocate): Likewise.
8594 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
8596 * cfg.c (initialize_original_copy_tables): Likewise.
8597 * cselib.c (elt_list_pool, elt_loc_list_pool,
8598 cselib_val_pool): Likewise.
8599 * df-problems.c (df_chain_alloc): Likewise.
8600 * df-scan.c (df_scan_alloc): Likewise.
8601 * dse.c (cse_store_info_pool, rtx_store_info_pool,
8602 read_info_type_pool, insn_info_type_pool, bb_info_pool,
8603 group_info_pool, deferred_change_pool): Likewise.
8604 * et-forest.c (et_nodes, et_occurrences): Likewise.
8605 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
8606 ipcp_agg_lattice_pool): Likewise.
8607 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
8608 * ipa-profile.c (histogram_pool): Likewise.
8609 * ipa-prop.c (ipa_refdesc_pool): Likewise.
8610 * ira-build.c (live_range_pool, allocno_pool, object_pool,
8611 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
8612 * ira-color.c (update_cost_record_pool): Likewise.
8613 * lra-lives.c (lra_live_range_pool): Likewise.
8614 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
8615 * memory-block.cc: New file.
8616 * memory-block.h: New file.
8617 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
8618 * sched-deps.c (sched_deps_init): Likewise.
8619 * sel-sched-ir.c (sched_lists_pool): Likewise.
8620 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
8621 * tree-sra.c (access_pool): Likewise.
8622 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8623 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
8624 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
8625 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8626 * tree-ssa-strlen.c (strinfo_pool): Likewise.
8627 * tree-ssa-structalias.c (variable_info_pool): Likewise.
8628 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
8629 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
8631 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
8633 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
8635 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
8638 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
8640 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
8641 to pass TLS call argument, according to current ABI.
8642 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
8643 callx0 for TLS call, according to current ABI.
8645 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
8647 * tree-eh.c (lower_try_finally_dup_block): Clear location information
8648 on stack restore statements.
8649 (decide_copy_try_finally): Do not consider a stack restore statement as
8650 coming from sources.
8652 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
8654 * config/alpha/alpha.c (alpha_expand_block_clear): Use
8655 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
8657 2015-09-15 Jeff Law <law@redhat.com>
8659 PR tree-optimization/47679
8660 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
8661 methods and private members.
8662 (avail_exprs_stack): Similarly. Change type of global
8663 from a pair of expr_hash_elt_t to the new class.
8664 (expr_elt_hasher::hash): Corresponding changes.
8665 (expr_elt_hasher::equal): Similarly.
8666 (avail_expr_hash): Similarly.
8667 (pass_dominator::execute): Similarly.
8668 (dom_opt_dom_walker::thread_across_edge): Similarly.
8669 (record_cond): Similarly.
8670 (dom_opt_dom_walker::before_dom_children): Similarly.
8671 (dom_opt_dom_walker::after_dom_children): Similarly.
8672 (lookup_avail_expr): Likewise.
8673 (initialize_hash_element): Now a expr_hash_elt constructor.
8674 (initialize_hash_element_from_expr): Similarly.
8675 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
8676 (free_expr_hash_elt): Call dtor for the element.
8677 (remove_local_expressions_from_table): Now the "pop_to_marker"
8678 method in the available_exprs_stack class.
8679 (avail_expr_stack::record_expr): Method factored out.
8680 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
8682 (hashable_expr_equal_p): Fix formatting.
8684 2015-09-15 David Malcolm <dmalcolm@redhat.com>
8686 * input.h (location_get_source_line): Drop "expanded_location"
8687 param in favor of a file and line number.
8688 * input.c (location_get_source_line): Likewise.
8689 (dump_location_info): Update for change in signature of
8690 location_get_source_line.
8691 * diagnostic.c (diagnostic_print_caret_line): Likewise.
8693 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
8695 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
8696 Bump to 4KB for SJLJ exceptions.
8697 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
8698 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
8699 * doc/tm.texi: Regenerate.
8701 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8703 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
8704 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
8707 2015-09-15 Richard Biener <rguenther@suse.de>
8709 PR tree-optimization/67470
8710 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
8711 structure for PHI hoisting by inserting a forwarder block
8714 2015-09-15 Christian Bruel <christian.bruel@st.com>
8716 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
8717 (arm_option_print): New function.
8719 2015-09-15 Christian Bruel <christian.bruel@st.com>
8722 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
8723 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
8724 Remove flags parameter.
8725 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
8726 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
8727 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
8728 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
8729 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
8730 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
8731 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
8732 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
8734 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8736 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
8738 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
8739 AARCH64_VALID_SIMD_DREG_MODE.
8741 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8743 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
8744 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
8745 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
8746 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
8747 aarch64_ld4_lane<mode>): Combine together, making...
8748 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8749 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8750 aarch64_st4_lane<mode>): Combine together, making...
8751 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8752 * config/aarch64/iterators.md (nregs): Add comment.
8754 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8756 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
8757 Change operand mode from <V_TWO_ELEM> to BLK.
8758 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
8759 (aarch64_vec_store_lanesoi_lane<mode): Likewise
8760 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8761 (aarch64_ld2_lane<mode>): Likewise.
8762 (aarch64_st2_lane<VQ:mode>): Likewise.
8763 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
8765 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8767 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
8768 Change operand mode from <V_FOUR_ELEM> to BLK.
8769 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
8770 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
8771 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8772 (aarch64_ld4_lane<mode>): Likewise.
8773 (aarch64_st4_lane<mode>): Likewise.
8774 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
8776 2015-09-15 Richard Biener <rguenther@suse.de>
8779 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8780 transfer EH info from old to new stmt.
8781 (replace_call_with_value): Likewise.
8782 (replace_call_with_call_and_fold): Likewise.
8783 (gimple_fold_builtin_memory_op): Likewise.
8784 (gimple_fold_builtin_memset): Likewise.
8785 (gimple_fold_builtin_stpcpy): Likewise.
8786 (gimple_fold_call): Likewise.
8788 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8790 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
8792 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
8793 (aarch64_simd_intEI_type_node): Likewise.
8794 (aarch64_simd_builtin_std_type): Remove EImode case.
8795 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
8796 * config/aarch64/aarch64-modes.def: Remove EImode.
8798 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8800 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
8801 Change operand mode from <V_THREE_ELEM> to BLK.
8802 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
8803 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
8804 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8805 (aarch64_ld3_lane<mode>): Likewise.
8806 (aarch64_st3_lane<mode>): Likewise.
8807 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
8809 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8811 * config/aarch64/aarch64-simd.md
8812 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
8813 Change all TImode operands to BLKmode.
8814 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
8815 Change all EImode operands to BLKmode.
8816 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
8817 Change all OImode operands to BLKmode.
8819 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
8820 and call set_mem_size.
8821 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
8823 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
8825 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8827 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
8829 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
8831 (vec_store_lanesci_lane<mode>): Rename to...
8832 (aarch64_vec_store_lanesci_lane<mode>): ...this.
8834 (vec_store_lanesxi_lane<mode>): Rename to...
8835 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
8837 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8838 aarch64_st4_lane<mode>): Follow renaming.
8840 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8842 * config/s390/s390.c (s390_const_operand_ok): Add missing
8845 2015-09-15 Richard Biener <rguenther@suse.de>
8848 * lto-streamer.h (lto_location_cache::current_sysp): Properly
8850 * lto-streamer-out.c (clear_line_info): Likewise.
8852 2015-09-15 Richard Biener <rguenther@suse.de>
8854 * doc/match-and-simplify.texi: Fix wording.
8856 2015-09-15 Bin Cheng <bin.cheng@arm.com>
8858 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
8859 unnecessary type conversion in op1.
8861 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8863 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
8864 (dup_block_and_redirect): Delete function.
8865 (can_dup_for_shrink_wrapping): New function.
8866 (fix_fake_fallthrough_edge): New function.
8867 (try_shrink_wrapping): Rewrite function.
8868 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
8870 2015-09-14 Rich Felker <dalias@libc.org>
8872 * configure.ac: Change target pattern for sh TLS support
8873 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
8874 * configure: Regenerate.
8876 2015-09-14 Jeff Law <law@redhat.com>
8878 PR tree-optimization/47679
8879 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
8880 type rather than void *.
8882 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8885 * diagnostic.c (diagnostic_initialize): Do not set
8886 some_warnings_are_errors.
8887 (diagnostic_finish): Use DK_WERROR count instead.
8888 (diagnostic_report_diagnostic): Do not set
8889 some_warnings_are_errors.
8890 * diagnostic.h (struct diagnostic_context): Remove
8891 some_warnings_are_errors.
8893 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
8895 * config/sparc/predicates.md (const_all_ones_operand): Use
8896 CONSTM1_RTX to simplify definition.
8898 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
8901 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
8904 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
8906 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
8907 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
8908 OPT_fshow_column to handled saved option cases.
8909 (append_compiler_options): Do not skip the above added options.
8911 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8914 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
8915 nopcrelative_literal_loads.
8916 (aarch64_classify_address): Likewise.
8917 (aarch64_constant_pool_reload_icode): Define.
8918 (aarch64_secondary_reload): Handle secondary reloads for
8920 (aarch64_override_options): Handle nopcrelative_literal_loads.
8921 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
8922 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8924 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8925 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
8926 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
8928 * doc/invoke.texi (mpc-relative-literal-loads): Document.
8930 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
8933 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
8934 sync_compare_and_swap_optab libcall to target_oval.
8936 2015-09-14 Marek Polacek <polacek@redhat.com>
8938 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
8940 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
8942 2015-09-11 Mark Wielaard <mjw@redhat.com>
8945 * toplev.c (check_global_declaration): Check and use
8946 warn_unused_const_variable.
8947 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
8948 (-Wunused-variable): Remove non-constant. For C implies
8949 -Wunused-const-variable.
8950 (-Wunused-const-variable): New.
8952 2015-09-14 Richard Biener <rguenther@suse.de>
8954 * doc/match-and-simplify.texi: Update for changed syntax
8955 of inner ifs and the new switch expression.
8957 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8959 * config/i386/haswell.md: New file describing Haswell pipeline.
8960 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
8961 haswell-like processors.
8962 (ix86_reassociation_width): Increase reassociation width for 64-bit
8963 Haswell processor family.
8964 * config/i386/i386.md: Introduce haswell cpu and include new md file.
8966 2015-09-14 Richard Biener <rguenther@suse.de>
8968 * doc/match-and-simplify.texi: Fixup some formatting issues
8969 and document the 's' flag.
8971 2015-09-13 Olivier Hainque <hainque@adacore.com>
8972 Eric Botcazou <ebotcazou@adacore.com>
8974 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
8975 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
8976 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
8977 (TARGET_CPU_gr5): Likewise.
8978 (TARGET_CPU_gr6): Likewise.
8979 (MULTILIB_DEFAULTS): Likewise.
8980 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
8981 for mcpu=gr5 and mcpu=gr6.
8982 (MULTILIB_DIRNAMES): Adjust accordingly.
8984 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8986 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
8987 (mem_ref_p): Likewise.
8988 (outermost_indep_loop): Adjust.
8989 (mem_ref_in_stmt): Likewise.
8990 (determine_max_movement): Likewise.
8991 (mem_ref_alloc): Likewise.
8992 (record_mem_ref_loc): Likewise.
8993 (set_ref_stored_in_loop): Likewise.
8994 (mark_ref_stored): Likewise.
8995 (gather_mem_refs_stmt): Likewise.
8996 (mem_refs_may_alias_p): Likewise.
8997 (for_all_locs_in_loop): Likewise.
8998 (struct rewrite_mem_ref_loc): Likewise.
8999 (rewrite_mem_refs): Likewise.
9000 (struct first_mem_ref_loc_1): Likewise.
9001 (first_mem_ref_loc): Likewise.
9002 (struct sm_set_flag_if_changed): Likewise.
9003 (execute_sm_if_changed_flag_set): Likewise.
9004 (execute_sm): Likewise.
9005 (hoist_memory_references):
9006 (struct ref_always_accessed): Likewise.
9007 (ref_always_accessed_p): Likewise.
9008 (refs_independent_p): Likewise.
9009 (record_dep_loop): Likewise.
9010 (ref_indep_loop_p_1): Likewise.
9011 (ref_indep_loop_p_2): Likewise.
9012 (ref_indep_loop_p): Likewise.
9013 (can_sm_ref_p): Likewise.
9014 (find_refs_for_sm): Likewise.
9015 (tree_ssa_lim_finalize): Likewise.
9017 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9019 * dwarf2out.c (dw_attr_ref): Remove typedef.
9020 (dw_line_info_ref): Likewise.
9021 (pubname_ref): Likewise.
9022 (dw_ranges_ref): Likewise.
9023 (dw_ranges_by_label_ref): Likewise.
9024 (comdat_type_node_ref): Likewise.
9026 (get_AT_low_pc): Likewise.
9027 (get_AT_hi_pc): Likewise.
9028 (get_AT_string): Likewise.
9029 (get_AT_flag): Likewise.
9030 (get_AT_unsigned): Likewise.
9031 (get_AT_ref): Likewise.
9032 (get_AT_file): Likewise.
9033 (remove_AT): Likewise.
9034 (print_die): Likewise.
9035 (check_die): Likewise.
9036 (die_checksum): Likewise.
9037 (attr_checksum_ordered): Likewise.
9038 (struct checksum_attributes): Likewise.
9039 (collect_checksum_attributes): Likewise.
9040 (die_checksum_ordered): Likewise.
9041 (same_die_p): Likewise.
9042 (is_declaration_die): Likewise.
9043 (clone_die): Likewise.
9044 (clone_as_declaration): Likewise.
9045 (copy_declaration_context): Likewise.
9046 (break_out_comdat_types): Likewise.
9047 (copy_decls_walk): Likewise.
9048 (output_location_lists): Likewise.
9049 (external_ref_hasher::hash): Likewise.
9050 (optimize_external_refs_1): Likewise.
9051 (build_abbrev_table): Likewise.
9052 (size_of_die): Likewise.
9053 (unmark_all_dies): Likewise.
9054 (size_of_pubnames): Likewise.
9055 (output_die_abbrevs): Likewise.
9056 (output_die): Likewise.
9057 (output_pubnames): Likewise.
9058 (add_ranges_num): Likewise.
9059 (add_ranges_by_labels): Likewise.
9060 (add_high_low_attributes): Likewise.
9061 (gen_producer_string): Likewise.
9062 (dwarf2out_set_name): Likewise.
9063 (new_line_info_table): Likewise.
9064 (prune_unused_types_walk_attribs): Likewise.
9065 (prune_unused_types_update_strings): Likewise.
9066 (prune_unused_types): Likewise.
9067 (resolve_addr): Likewise.
9068 (optimize_location_lists_1): Likewise.
9069 (index_location_lists): Likewise.
9070 (dwarf2out_finish): Likewise.
9072 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9074 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9076 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9078 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9079 (dump_asserts_for): Adjust.
9080 (register_new_assert_for): Likewise.
9081 (process_assert_insertions): Likewise.
9082 (insert_range_assertions): Likewise.
9084 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9086 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9088 (new_temp_expr_table): Adjust.
9089 (free_temp_expr_table): Likewise.
9090 (version_to_be_replaced_p): Likewise.
9091 (make_dependent_on_partition): Likewise.
9092 (add_to_partition_kill_list): Likewise.
9093 (remove_from_partition_kill_list): Likewise.
9094 (add_dependence): Likewise.
9095 (finished_with_expr): Likewise.
9096 (process_replaceable): Likewise.
9097 (kill_expr): Likewise.
9098 (kill_virtual_exprs): Likewise.
9099 (mark_replaceable): Likewise.
9100 (find_replaceable_in_bb): Likewise.
9101 (find_replaceable_exprs): Likewise.
9102 (debug_ter): Likewise.
9104 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9106 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9107 (struct btr_user): Rename from btr_user_s.
9108 (struct btr_def): Rename from btr_def_s.
9109 (find_btr_def_group): Adjust.
9110 (add_btr_def): Likewise.
9111 (new_btr_user): Likewise.
9112 (note_other_use_this_block): Likewise.
9113 (compute_defs_uses_and_gen): Likewise.
9114 (link_btr_uses): Likewise.
9115 (build_btr_def_use_webs): Likewise.
9116 (block_at_edge_of_live_range_p): Likewise.
9117 (btr_def_live_range): Likewise.
9118 (combine_btr_defs): Likewise.
9119 (move_btr_def): Likewise.
9120 (migrate_btr_def): Likewise.
9121 (migrate_btr_defs): Likewise.
9123 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9125 * var-tracking.c (shared_hash_def): Rename to shared_hash.
9126 (shared_hash): Remove typedef.
9127 (struct dataflow_set): Adjust.
9128 (shared_hash_unshare): Likewise.
9129 (dataflow_set_merge): Likewise.
9130 (vt_initialize): Likewise.
9131 (vt_finalize): Likewise.
9133 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9135 * var-tracking.c (struct location_chain): Rename from
9137 (struct variable_part): Adjust.
9138 (variable_htab_free): Likewise.
9139 (unshare_variable): Likewise.
9140 (get_init_value): Likewise.
9141 (get_addr_from_local_cache): Likewise.
9142 (drop_overlapping_mem_locs): Likewise.
9143 (val_reset): Likewise.
9144 (struct variable_union_info): Likewise.
9145 (variable_union): Likewise.
9146 (find_loc_in_1pdv): Likewise.
9147 (insert_into_intersection): Likewise.
9148 (intersect_loc_chains): Likewise.
9149 (canonicalize_loc_order_check): Likewise.
9150 (canonicalize_values_mark): Likewise.
9151 (canonicalize_values_star): Likewise.
9152 (canonicalize_vars_star): Likewise.
9153 (variable_merge_over_cur): Likewise.
9154 (remove_duplicate_values): Likewise.
9155 (variable_post_merge_new_vals): Likewise.
9156 (variable_post_merge_perm_vals): Likewise.
9157 (find_mem_expr_in_1pdv): Likewise.
9158 (dataflow_set_preserve_mem_locs): Likewise.
9159 (dataflow_set_remove_mem_locs): Likewise.
9160 (variable_part_different_p): Likewise.
9161 (onepart_variable_different_p): Likewise.
9162 (find_src_set_src): Likewise.
9163 (dump_var): Likewise.
9164 (set_slot_part): Likewise.
9165 (clobber_slot_part): Likewise.
9166 (delete_slot_part): Likewise.
9167 (vt_expand_var_loc_chain): Likewise.
9168 (emit_note_insn_var_location): Likewise.
9169 (vt_finalize): Likewise.
9171 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9173 * dse.c (store_info_t): Remove typedef.
9174 (group_info_t): Likewise.
9175 (const_group_info_t): Likewise.
9176 (deferred_change_t): Likewise.
9177 (get_group_info): Adjust.
9178 (free_store_info): Likewise.
9179 (canon_address): Likewise.
9180 (clear_rhs_from_active_local_stores): Likewise.
9181 (record_store): Likewise.
9182 (replace_read): Likewise.
9183 (check_mem_read_rtx): Likewise.
9184 (scan_insn): Likewise.
9185 (remove_useless_values): Likewise.
9186 (dse_step1): Likewise.
9187 (dse_step2_init): Likewise.
9188 (dse_step2_nospill): Likewise.
9189 (scan_stores_nospill): Likewise.
9190 (scan_reads_nospill): Likewise.
9191 (dse_step3_exit_block_scan): Likewise.
9192 (dse_step3): Likewise.
9193 (dse_step5_nospill): Likewise.
9194 (dse_step6): Likewise.
9196 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9198 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9199 (alias_set_entry): Remove typedef.
9200 (alias_set_subset_of): Adjust.
9201 (alias_sets_conflict_p): Likewise.
9202 (init_alias_set_entry): Likewise.
9203 (get_alias_set): Likewise.
9204 (new_alias_set): Likewise.
9205 (record_alias_subset): Likewise.
9207 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
9209 * doc/install.texi (Downloading the source): Mark up
9210 contrib/download_prerequisites properly and drop leading "./".
9212 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9214 * config/arc/arc.h: Remove define of STRUCT_VALUE.
9215 * config/lm32/lm32.h: Likewise.
9216 * config/mep/mep.h: Likewise.
9217 * config/visium/visium.h: Likewise.
9218 * system.h: Poison STRUCT_VALUE macro.
9220 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
9222 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9223 CONSTANT_P operands.
9225 2015-09-11 David S. Miller <davem@davemloft.net>
9227 * config/sparc/constraints.md: Make "U" constraint a real register
9229 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9230 (D_MODES, DF_MODES): Add missing cast.
9231 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9232 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9233 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9235 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9236 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9237 provide these insn when flag_pic.
9239 2015-09-11 Jeff Law <law@redhat.com>
9241 PR tree-optimization/47679
9242 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9243 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9244 member with m_. Update inline member functions as necessary. Add
9246 * tree-ssa-scopedtables.c: Update const_and_copies's member
9247 functions to use m_ prefix to access the stack.
9249 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9251 * graphite-optimize-isl.c (disable_tiling): Remove.
9252 (get_schedule_for_band): Do not use disable_tiling.
9253 (get_prevector_map): Delete function.
9254 (enable_polly_vector): Remove.
9255 (get_schedule_for_band_list): Remove dead code.
9257 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9259 * graphite-optimize-isl.c (get_tile_map): Refactor.
9260 (get_schedule_for_band): Same.
9261 (getScheduleForBand): Same.
9262 (get_prevector_map): Same.
9263 (get_schedule_for_band_list): Same.
9264 (get_schedule_map): Same.
9265 (get_single_map): Same.
9266 (apply_schedule_map_to_scop): Same.
9267 (optimize_isl): Same.
9269 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9272 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9274 * config/aarch64/iterators.md (GPF_TF_F16): New.
9277 2015-09-10 Nathan Sidwell <nathan@acm.org>
9279 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9280 (nvptx_reorg): Adjust comments.
9282 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
9285 * configure.ac: Check if setenv and unsetenv are declared.
9286 * configure: Rebuild.
9287 * config.in: Rebuild.
9288 * system.h: Declare setenv and unsetenv if not declared.
9290 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9292 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9293 commentary to simplify permute mask adjustment equation.
9294 (special_handling_values): Add SH_VPERM.
9295 (const_load_sequence_p): New function.
9296 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9297 the mask loaded from the constant pool.
9298 (adjust_vperm): New function.
9299 (handle_special_swappables): Call adjust_vperm.
9300 (dump_swap_insn_table): Handle SH_VPERM.
9302 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
9304 * shrink-wrap.c (requires_stack_frame_p): Remove static.
9305 * shrink-wrap.h (requires_stack_frame_p): Put back.
9307 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
9309 * reload1.c (elimination_costs_in_insn): Locally turn
9310 -Wmaybe-uninitialized into a warning.
9312 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
9314 * shrink-wrap.c (requires_stack_frame_p): Make static.
9315 (prepare_shrink_wrap): Likewise.
9316 (dup_block_and_redirect): Likewise.
9317 * shrink-wrap.h: Remove declarations of those functions.
9319 2015-09-10 Mark Wielaard <mjw@redhat.com>
9321 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9323 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
9326 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9327 missing simplify_gen_subreg.
9329 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9331 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9332 the vector element is bigger than 64 bit.
9334 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9336 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9337 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9339 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9341 * config/s390/s390.c: Add V1TImode to constant pool modes.
9343 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9346 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9347 predicate. Set predicable_short_it attr to "no".
9349 2015-09-10 Jiong Wang <jiong.wang@arm.com>
9351 PR rtl-optimization/67421
9352 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9353 left wide shift tranformation.
9355 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9357 * common/config/arc/arc-common.c: Remove references to A5.
9358 * config/arc/arc-opts.h: Likewise.
9359 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9360 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9361 * config/arc/t-arc-newlib: Likewise.
9363 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9365 * config/arc/arc.md (length): Fix attribute length for conditional
9366 executed instructions with long immediate.
9368 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9370 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9371 type for second alternative.
9373 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
9375 * doc/invoke.texi (Downloading GCC): Mention
9376 contrib/download_prerequisites script.
9378 2015-09-10 Jakub Jelinek <jakub@redhat.com>
9381 * gimplify.c (gimplify_omp_for): If inner stmt is not found
9382 for combined loop, assert seen_error () and return GS_ERROR.
9385 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9386 if decl is already in outer->variables.
9389 * gimplify.c (gimplify_scan_omp_clauses): Instead of
9390 asserting that decl is not specified in octx->variables,
9391 break out of the loop if it is.
9394 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9395 iterator is not explicitly determined, but is defined inside
9396 of the combined workshare region, handle it like if it has
9397 DECL_EXPR in OMP_FOR_PRE_BODY.
9399 2015-09-09 Nathan Sidwell <nathan@acm.org>
9401 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9402 (*cmp<mode>): Add assembler spacing.
9403 (setcc_int<mode>, set_cc_float<mode>): Likewise.
9404 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9406 (write_func_decl_from_insn): Refactor argument loops & comma emission.
9407 (nvptx_expand_call): Likewise.
9408 (nvptx_output_call_insn): Likewise.
9409 (nvptx_reorg_subreg): Add spacing.
9411 2015-09-09 Marek Polacek <polacek@redhat.com>
9414 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9417 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9420 * doc/invoke.texi ([Wsubobject-linkage]): Document.
9422 2015-09-09 Tom de Vries <tom@codesourcery.com>
9424 * params-list.h: Add missing copyright notice.
9426 2015-09-09 Nathan Sidwell <nathan@acm.org>
9428 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
9429 sel_truesi, not andsi.
9431 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9433 * config/arm/arm.md (*subsi3_compare0): Rename to...
9434 (subsi3_compare0): ... This.
9435 (modsi3): New define_expand.
9436 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
9437 when operand is power of 2.
9439 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9441 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
9442 (*neg<mode>2_compare0): Rename to...
9443 (neg<mode>2_compare0): ... This.
9444 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
9445 Move check for speed inside the if-then-elses. Reflect
9446 CSNEG sequence in MOD by power of 2 case.
9448 2015-09-09 Alan Modra <amodra@gmail.com>
9451 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
9452 reload replacement for PRE_MODIFY address reg.
9454 2015-09-09 Sebastian Pop <s.pop@samsung.com>
9456 PR tree-optimization/53852
9457 * config.in: Regenerate.
9458 * configure: Regenerate.
9459 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
9460 * graphite-optimize-isl.c (optimize_isl): Stop computation when
9461 PARAM_MAX_ISL_OPERATIONS is reached.
9462 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
9463 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
9464 result equal to isl_stat_ok as the status now can be isl_error_quota.
9465 (subtract_commutative_associative_deps): Same.
9466 (compute_deps): Same.
9468 2015-09-08 Aditya Kumar <hiraditya@msn.com>
9469 Sebastian Pop <s.pop@samsung.com>
9471 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9472 Return the parameter if it was saved in corresponding
9473 parameter_rename_map of the region.
9474 (copy_def): Copy def from sese region to the newly created region.
9475 (copy_internal_parameters): Copy all the internal parameters defined
9476 within a region to the newly created region.
9477 (graphite_regenerate_ast_isl): Copy parameters to the new region before
9478 translating isl to gimple.
9479 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
9480 the loop-nest does not have any data-references.
9481 (build_graphite_scops): Create a scop only when there is at least one
9483 (contains_only_close_phi_nodes): Deleted.
9484 (print_graphite_scop_statistics): Deleted
9485 (print_graphite_statistics): Deleted
9486 (limit_scops): Deleted.
9487 (build_scops): Removed call to limit_scops.
9488 * sese.c (new_sese): Construct.
9489 (free_sese): Destruct.
9490 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
9492 (set_rename): Pass sese region so that parameters inside the region can
9493 be added to its parameter_rename_map.
9494 (rename_uses): Pass sese region.
9495 (graphite_copy_stmts_from_block): Do not copy parameters that have been
9496 generated in the header of the scop. For each SSA_NAME in the
9497 parameter_rename_map rename its usage.
9498 (invariant_in_sese_p_rec): Return false if tree t is defined outside
9500 (scalar_evolution_in_region): If the tree t is invariant just return t.
9501 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
9502 struct sese to keep track of all the parameters which need renaming.
9503 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
9505 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
9507 2015-09-08 Tom de Vries <tom@codesourcery.com>
9509 * Makefile.in (generated_files): Add params.list.
9510 (params.list, s-params.list): Add rule.
9511 * params.h (enum compiler_param): Include params-list.h. Move define
9512 DEFPARAM, include params.def and undef DEFPARAM ...
9513 * params-list.h: ... here. New file.
9515 2015-09-08 David Malcolm <dmalcolm@redhat.com>
9517 * pretty-print.h (printer_fn): Fix typo in comment.
9519 2015-09-07 Jeff Law <law@redhat.com>
9521 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
9523 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9525 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
9526 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
9527 (arm_neon_fp16_hw): New.
9529 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9531 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
9532 UNITS_PER_WORD >= 4.
9534 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9536 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
9537 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
9538 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
9539 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
9540 (aarch64_float_extend_lo_v2df): Rename to...
9541 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
9543 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
9544 (float_extend_lo): Add v4sf.
9546 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
9547 * config/aarch64/iterators.md (VQ_HSF): New iterator.
9548 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
9549 (Vwide): New mode_attr.
9551 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9553 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
9554 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
9555 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
9556 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
9557 V4HF and V8HF variants to iterator.
9559 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
9561 * config/aarch64/iterators.md (VDQF_F16): New.
9562 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
9564 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9566 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
9567 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9568 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
9569 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
9570 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
9571 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9572 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
9573 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
9574 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
9575 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
9576 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
9577 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9578 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
9579 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
9580 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
9581 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
9582 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
9583 vld1q_dup_f16): New.
9585 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9587 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
9588 Reparameterize to...
9589 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
9590 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
9591 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
9593 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
9595 (float_truncate_lo_): Use BUILTIN_VDF iterator.
9597 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
9599 * config/aarch64/iterators.md (VDF, Vdtype): New.
9600 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
9602 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9604 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
9605 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
9606 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
9607 Add __builtin_aarch64_simd_hf.
9608 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
9609 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
9610 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
9611 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
9612 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
9613 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
9614 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
9615 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
9616 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
9618 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
9619 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
9620 (VDC, Vdbl): Add V4HF.
9622 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9624 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
9625 V4HFmode and V8HFmode.
9626 (aarch64_split_simd_move): Add case for V8HFmode.
9627 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
9628 (aarch64_simd_builtin_std_type): Handle HFmode.
9629 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
9631 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
9632 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
9633 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
9635 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
9638 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
9639 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
9641 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
9642 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
9643 vst1q_lane_f16): New.
9644 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
9645 (VALLDI_F16, VALL_F16): New.
9646 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
9647 Add cases for V4HF and V8HF.
9648 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
9650 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9652 * config/arm/arm-builtins.c (VAR11, VAR12): New.
9653 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
9654 vld4_dup): Add v4hf variant.
9655 (vget_high, vget_low): Add v8hf variant.
9656 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
9657 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
9658 v4hf and v8hf variants.
9660 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
9662 (V_DOUBLE): Add case for V4HF.
9664 (V_HALF): Add case for V8HF.
9665 (VDQX): Add V4HF, V8HF.
9666 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
9667 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
9669 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
9670 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
9671 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
9672 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
9673 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
9674 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
9675 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
9676 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
9677 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
9679 (neon_vcreate, neon_vreinterpretv8qi<mode>,
9680 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
9681 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
9682 Change VDX to VD_RE.
9684 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
9685 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
9686 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
9688 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
9689 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
9690 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
9691 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
9692 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
9693 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
9694 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
9695 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
9696 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
9698 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9700 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
9701 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
9702 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
9703 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
9704 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9705 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
9706 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
9707 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
9708 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
9709 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
9712 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9714 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
9716 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
9718 * config/arm/arm-builtins.c (v8hf_UP): New.
9719 (arm_init_simd_builtin_types): Initialise Float16x8_t.
9721 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
9723 * config/arm/arm_neon.h (float16x8_t): New typedef.
9725 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9727 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
9728 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
9729 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
9730 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
9731 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9732 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
9733 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
9734 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
9735 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9736 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
9738 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
9740 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
9741 non-alphanumeric characters in the symbol name.
9743 2015-09-07 Marek Polacek <polacek@redhat.com>
9746 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
9749 2015-09-07 Marek Polacek <polacek@redhat.com>
9751 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
9753 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
9755 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
9758 2015-09-04 Jakub Jelinek <jakub@redhat.com>
9761 * tree-ssa-live.c: Include cfgloop.h.
9762 (remove_unused_locals): Clear loop->simduid if simduid is about
9763 to be removed from cfun->local_decls.
9765 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9768 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
9771 2015-09-04 Tom de Vries <tom@codesourcery.com>
9773 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
9775 2015-09-04 Jeff Law <law@redhat.com>
9777 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
9778 unnecessary constructor. It's now trivial and implemented inside...
9779 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
9780 constructor. Add comments to various methods. Remove unused
9782 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
9783 * tree-vrp.c (identify_jump_threads): Likewise.
9784 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
9786 (thread_across_edge): Similarly.
9787 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
9788 arguments in constructor call.
9790 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9792 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
9793 temp path contains a '-'.
9795 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
9796 Petr Murzin <petr.murzin@intel.com>
9797 Kirill Yukhin <kirill.yukhin@intel.com>
9799 * config/i386/i386-builtin-types.def
9800 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
9801 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
9802 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
9803 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
9804 * config/i386/i386.c
9805 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
9806 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9807 IX86_BUILTIN_SCATTERALTDIV16SI.
9808 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
9809 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
9810 __builtin_ia32_scatteraltdiv8si.
9811 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
9812 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9813 IX86_BUILTIN_SCATTERALTDIV16SI.
9814 (ix86_vectorize_builtin_scatter): New.
9815 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
9816 ix86_vectorize_builtin_scatter.
9818 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
9819 Petr Murzin <petr.murzin@intel.com>
9820 Kirill Yukhin <kirill.yukhin@intel.com>
9822 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
9823 * doc/tm.texi: Regenerate.
9824 * target.def: Add scatter builtin.
9825 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
9826 for loads/stores in case of gather/scatter accordingly.
9827 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9828 STMT_VINFO_GATHER_P(S).
9829 (vect_check_gather): Rename to ...
9830 (vect_check_gather_scatter): this.
9831 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
9832 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
9833 (vect_check_gather_scatter): Use it instead of vect_check_gather.
9834 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
9835 variable and new checkings for it accordingly.
9837 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9838 STMT_VINFO_GATHER_P(S).
9839 (vect_check_gather_scatter): Use it instead of vect_check_gather.
9840 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
9842 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9844 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
9846 (mulv16qi3): New define_expand.
9848 2015-09-03 Martin Sebor <msebor@redhat.com>
9851 * doc/extend.texi (Other Builtins): Document when the address
9852 of a built-in function can be taken.
9854 2015-09-03 Richard Biener <rguenther@suse.de>
9856 * dwarf2out.c (flush_limbo_die_list): Split out from ...
9857 (dwarf2out_early_finish): ... here.
9858 (dwarf2out_finish): Do not call dwarf2out_early_finish but
9859 flush_limbo_die_list. Assert we have no deferred asm names.
9861 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9863 * optabs.c (expand_binop): Don't create a broadcast vector with a
9864 source element wider than the inner mode.
9866 2015-09-03 Richard Biener <rguenther@suse.de>
9868 * varasm.c (output_constant): Use fold_convert instead of
9871 2015-09-03 Tom de Vries <tom@codesourcery.com>
9873 PR tree-optimization/65637
9874 * omp-low.c (expand_omp_for_static_chunk): Handle case that
9875 fin_bb has 2 predecessors.
9877 2015-09-03 Tom de Vries <tom@codesourcery.com>
9879 PR tree-optimization/65637
9880 * omp-low.c (find_phi_with_arg_on_edge): New function.
9881 (expand_omp_for_static_chunk): Fix inner loop phi.
9883 2015-09-03 Tom de Vries <tom@codesourcery.com>
9885 PR tree-optimization/65637
9886 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
9889 2015-09-03 Tom de Vries <tom@codesourcery.com>
9891 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
9893 2015-09-03 Tom de Vries <tom@codesourcery.com>
9895 * doc/invoke.texi (parloops-chunk-size): Add item.
9896 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
9897 * tree-parloops.c: Include params.h.
9898 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
9899 param parloops-chunk-size is used.
9901 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9904 * fold-const.c (fold_binary_loc) : Move
9905 Transform (x >> c) << c into x & (-1<<c) or
9906 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
9907 types using simplify and match.
9908 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
9909 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
9911 2015-09-03 Richard Biener <rguenther@suse.de>
9914 * tree-ssa-structalias.c (ctor_for_analysis): New function.
9915 (create_variable_info_for_1): Use ctor_for_analysis instead
9917 (create_variable_info_for): Likewise.
9919 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
9922 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
9923 in new callgraph edge.
9925 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
9930 * config/aarch64/aarch64-simd.md
9931 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
9932 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
9933 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
9934 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
9936 2015-09-02 Alan Modra <amodra@gmail.com>
9938 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
9939 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
9940 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
9942 2015-09-02 Alan Modra <amodra@gmail.com>
9945 * config/rs6000/predicates.md (current_file_function_operand): Don't
9946 return true for weak symbols.
9947 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
9949 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
9950 Andrew Bennett <andrew.bennett@imgtec.com>
9952 * config/mips/mips-opts.h (mips_cb_setting): New enum.
9953 * config/mips/mips-protos.h: Add definitions for
9954 mips_output_jump and mips_output_equal_conditional_branch
9955 * config/mips/mips.c (MIPS_JR): Change to support the
9957 (mips_emit_compare): Add support for the MIPS R6 conditional
9959 (mips_process_sync_loop): Likewise.
9960 (mips_output_order_conditional_branch): Likewise.
9961 (mips16_build_call_stub): Change MIPS_CALL to
9963 (mips_print_operand_punctuation): Update 's' case to only
9964 apply to micromips r2.
9965 (mips_adjust_insn_length): Add support for forbidden slot
9967 (mips_avoid_hazard): Likewise.
9968 (mips_reorg_process_insns): Likewise.
9969 (mips_output_jump): New function.
9970 (mips_output_equal_conditional_branch): Likewise.
9971 (mips_output_conditional_branch): Use jrc/bc if compact
9972 branch support is enabled. Ensure the forbidden slots
9973 between the two branch instructions is filled with a nop.
9974 (mips_option_override): Add support to process the compact
9975 branch option and set the correct defaults. Prevent
9976 non-explict relocs being using for MIPS R6.
9977 (mips_trampoline_init): Add compact branch support.
9978 (mips_mult_zero_zero_cost): Allow zero initialisation of
9979 accumulators with TARGET_DSP.
9980 * config/mips/mips.h (TARGET_CB_NEVER): New define.
9981 (TARGET_CB_MAYBE): New define.
9982 (TARGET_CB_ALWAYS): New define.
9983 (ISA_HAS_DELAY_SLOTS): New define.
9984 (ISA_HAS_COMPACT_BRANCHES): New define.
9985 (ISA_HAS_JRC): New define.
9986 (MIPS_BRANCH_C): New define.
9987 (MIPS_CALL): Removed.
9988 (MICROMIPS_J): Removed.
9989 * config/mips/mips.md (compact_form): New attr.
9990 (hazard): Add support for forbidden slots.
9991 (define_delay): Add support for compact branches.
9992 (*branch_order<mode>): Likewise.
9993 (*branch_order<mode>_inverted): Likewise.
9994 (*branch_equality<mode>): Likewise.
9995 (*branch_equality<mode>_inverted): Likewise.
9996 (*jump_absolute): Likewise.
9997 (*jump_pic): Likewise.
9998 (indirect_jump): Use mips_output_jump to produce assembly output.
9999 (tablejump_<mode>"): Likewise.
10000 (*<optab>"): Likewise.
10001 (<optab>_internal): Likewise.
10002 (sibcall_internal): Likewise.
10003 (sibcall_value_internal): Likewise.
10004 (sibcall_value_multiple_internal): Likewise.
10005 (call_internal): Likewise.
10006 (call_split): Likewise.
10007 (call_internal_direct): Likewise.
10008 (call_direct_split): Likewise.
10009 (call_value_internal): Likewise.
10010 (call_value_split): Likewise.
10011 (call_value_internal_direct): Likewise.
10012 (call_value_direct_split): Likewise.
10013 (call_value_multiple_internal): Likewise.
10014 (call_value_multiple_split): Likewise.
10015 (mips_get_fcsr_mips16_<mode>): Likewise.
10016 (mips_set_fcsr_mips16_<mode>): Likewise.
10017 (tls_get_tp_mips16_<mode>): Likewise.
10018 * config/mips/mips.opt: Add -mcompact-branches option.
10019 * config/mips/predicates.md (order_operator): Ensure the
10020 conditional compact branches are only used if the ISA them.
10021 * doc/invoke.texi: Document -mcompact-branches option.
10023 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
10026 * lra-lives.c (process_bb_lives): Process move pseudos with the
10027 same value for copies and preferences
10028 * lra-constraints.c (match_reload): Create match reload pseudo
10029 with the same value from single dying input pseudo.
10031 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
10034 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10036 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
10038 * trans-mem.c: Add contributed-by.
10039 * trans-mem.h: Same.
10041 2015-09-01 Richard Biener <rguenther@suse.de>
10043 * expr.c (expand_expr_real_1): For expanding TERed defs
10044 set the current location to that of the def if not UNKNOWN.
10046 2015-09-01 David Sherwood <david.sherwood@arm.com>
10048 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10050 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10052 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10053 then_cost, else_cost fields. Change branch_cost field to unsigned int.
10054 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10055 Include rtl-iter.h.
10056 (noce_simple_bbs): New function.
10057 (noce_try_move): Bail if basic blocks are not simple.
10058 (noce_try_store_flag): Likewise.
10059 (noce_try_store_flag_constants): Likewise.
10060 (noce_try_addcc): Likewise.
10061 (noce_try_store_flag_mask): Likewise.
10062 (noce_try_cmove): Likewise.
10063 (noce_try_minmax): Likewise.
10064 (noce_try_abs): Likewise.
10065 (noce_try_sign_mask): Likewise.
10066 (noce_try_bitop): Likewise.
10067 (bbs_ok_for_cmove_arith): New function.
10068 (noce_emit_all_but_last): Likewise.
10069 (noce_emit_insn): Likewise.
10070 (noce_emit_bb): Likewise.
10071 (noce_try_cmove_arith): Handle non-simple basic blocks.
10072 (insn_valid_noce_process_p): New function.
10073 (contains_mem_rtx_p): Likewise.
10074 (bb_valid_for_noce_process_p): Likewise.
10075 (noce_process_if_block): Allow non-simple basic blocks
10078 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
10080 * tree-ssa-dom.c (record_equivalences_from_phis,
10081 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10082 (lookup_avail_expr): Likewise, and remove comment and unused temp.
10084 2015-09-01 Nick Clifton <nickc@redhat.com>
10086 * config/msp430/msp430.opt (mcpu): Fix typo.
10088 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10090 * config/aarch64/aarch64.c (aarch64_set_current_function):
10091 Re-layout any vector parameters have non-simd layout.
10092 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10094 (aarch64_simd_expand_args): Delete call to the above.
10096 2015-08-31 Mike Frysinger <vapier@gentoo.org>
10098 * doc/invoke.texi (asan-stack): Add space before option.
10100 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10102 * tree.h (zerop): New function.
10103 * tree.c (zerop): Likewise.
10104 (element_precision): Handle expressions.
10105 * match.pd (define_predicates): Add zerop.
10106 (x <= +Inf): Fix comment.
10107 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10108 * fold-const.c (fold_binary_loc): ... here. Remove.
10110 2015-08-31 Richard Biener <rguenther@suse.de>
10112 PR middle-end/67381
10113 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10115 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10117 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10118 (CEXPI): New operator list.
10119 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10120 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10122 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10124 2015-08-31 Tom de Vries <tom@codesourcery.com>
10126 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10127 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10129 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10130 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10131 (rewrite_into_loop_closed_ssa): ... here.
10132 (replace_uses_in_dominated_bbs): Remove function.
10133 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10134 rewrite_into_loop_closed_ssa_1.
10136 2015-08-31 Michael Matz <matz@suse.de>
10138 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10139 enter entry and exit blocks for reverse post order.
10141 2015-08-31 Richard Biener <rguenther@suse.de>
10143 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10144 (lto_location_cache::current_sysp): Likewise.
10145 (output_block::current_sysp): Likewise.
10146 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10147 (lto_location_cache::apply_location_cache): Properly record
10148 system header locations.
10149 (lto_location_cache::input_location): Input whether a file
10150 is a system header.
10151 * lto-streamer-out.c (lto_output_location): Stream whether a file
10152 is a system header.
10154 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10157 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10159 2015-08-31 Tom de Vries <tom@codesourcery.com>
10161 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10162 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10163 Improve function header comments.
10165 2015-08-30 Michael Collison <michael.collison@linaro.org>
10168 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10171 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10173 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10174 special_handling bitfield.
10175 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10176 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10177 that represents a general xxpermdi.
10178 (insn_is_swappable_p): Add handling for vec_concat of two
10179 doublewords, which maps to a specific xxpermdi.
10180 (adjust_xxpermdi): New function.
10181 (adjust_concat): Likewise.
10182 (handle_special_swappables): Call adjust_xxpermdi and
10184 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10186 2015-08-30 Rich Felker <dalias@libc.org>
10188 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10189 case instead of sh[123456ble]-*-*.
10191 2015-08-29 Anatoly Sokolov <aesok@post.ru>
10193 * ira.c (print_unform_and_important_classes,
10194 print_translated_classes): Remove reg_class_names static array.
10195 (print_unform_and_important_classes): Rename to ...
10196 (print_uniform_and_important_classes): ... this.
10197 (ira_debug_allocno_classes): Update accordingly.
10199 2015-08-29 Tom de Vries <tom@codesourcery.com>
10201 PR tree-optimization/46193
10202 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10205 2015-08-28 Jeff Law <law@redhat.com>
10208 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10209 unable to find X NE 0 in the tables, return X as the simplified
10211 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10212 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10214 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10215 after removing the control flow statement and unnecessary edges.
10217 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
10220 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10222 PR tree-optimization/67283
10223 * tree-sra.c (type_consists_of_records_p): Rename to...
10224 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10226 (completely_scalarize_record): Rename to...
10227 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10229 (scalarize_elem): New.
10231 2015-08-28 Jiong Wang <jiong.wang@arm.com>
10233 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10234 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10235 (aarch64_symbol_type): Likewise.
10236 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10238 (aarch64_expand_mov_immediate): Likewise.
10239 (aarch64_print_operand): Likewise.
10240 (aarch64_classify_tls_symbol): Likewise.
10242 2015-08-28 Richard Biener <rguenther@suse.de>
10244 * cgraphunit.c (symbol_table::compile): Move early debug generation
10246 (symbol_table::finalize_compilation_unit): ... back here and
10247 add a !seen_error () guard.
10249 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10251 * toplev.c (process_options): Do not use flag_loop_block,
10252 flag_loop_interchange, and flag_loop_strip_mine. Add check for
10253 flag_loop_optimize_isl.
10255 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10257 * Makefile.in (OBJS): Remove graphite-blocking.o and
10258 graphite-interchange.o.
10259 * common.opt (floop-strip-mine, floop-interchange, floop-block):
10260 Alias of floop-nest-optimize.
10261 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10262 Document as alias of -floop-nest-optimize.
10263 * graphite-blocking.c: Remove.
10264 * graphite-interchange.c: Remove.
10265 * graphite-optimize-isl.c: Include dumpfile.h.
10266 (getScheduleForBand): Add dump for tiled loops. Use
10267 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10268 * graphite-poly.c (scop_max_loop_depth): Remove.
10269 (print_scattering_function_1): Remove.
10270 (print_scattering_function): Remove.
10271 (print_scattering_functions): Remove.
10272 (debug_scattering_function): Remove.
10273 (debug_scattering_functions): Remove.
10274 (apply_poly_transforms): Remove use of flag_loop_block,
10275 flag_loop_strip_mine, and flag_loop_interchange.
10276 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10278 (print_pdr_access_layout): Remove.
10279 (print_pdr): Print ISL representation.
10280 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10281 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10283 (openscop_print_pbb_domain): Remove.
10284 (print_pbb): Remove call to print_scattering_function.
10285 (openscop_print_scop_context): Remove.
10286 (print_scop_context): Do not print matrices anymore.
10287 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10288 SCOP_TRANSFORMED_SCHEDULE.
10289 (print_isl_set): Add printing of a new line.
10290 (print_isl_map): Same.
10291 (print_isl_aff): Same.
10292 (print_isl_constraint): Same.
10293 (loop_to_lst): Remove.
10294 (scop_to_lst): Remove.
10295 (lst_indent_to): Remove.
10296 (print_lst): Remove.
10297 (debug_lst): Remove.
10298 (dot_lst_1): Remove.
10300 (reverse_loop_at_level): Remove.
10301 (reverse_loop_for_pbbs): Remove.
10302 * graphite-poly.h (pdr_dim_iter_domain): Remove.
10303 (pdr_nb_params): Remove.
10304 (pdr_alias_set_dim): Remove.
10305 (pdr_subscript_dim): Remove.
10306 (pdr_iterator_dim): Remove.
10307 (pdr_parameter_dim): Remove.
10308 (same_pdr_p): Remove.
10309 (struct poly_scattering): Remove.
10310 (struct poly_bb): Remove _original, _transformed, _saved.
10311 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10312 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10313 (PBB_NB_LOCAL_VARIABLES): Remove.
10314 (PBB_NB_SCATTERING_TRANSFORM): Remove.
10315 (schedule_to_scattering): Remove.
10316 (number_of_write_pdrs): Remove.
10317 (pbb_dim_iter_domain): Remove.
10318 (pbb_nb_params): Remove.
10319 (pbb_nb_scattering_orig): Remove.
10320 (pbb_nb_scattering_transform): Remove.
10321 (pbb_nb_dynamic_scattering_transform): Remove.
10322 (pbb_nb_local_vars): Remove.
10323 (pbb_iterator_dim): Remove.
10324 (pbb_parameter_dim): Remove.
10325 (psco_scattering_dim): Remove.
10326 (psct_scattering_dim): Remove.
10327 (psct_local_var_dim): Remove.
10328 (psco_iterator_dim): Remove.
10329 (psct_iterator_dim): Remove.
10330 (psco_parameter_dim): Remove.
10331 (psct_parameter_dim): Remove.
10332 (psct_dynamic_dim): Remove.
10333 (psct_static_dim): Remove.
10334 (psct_add_local_variable): Remove.
10335 (new_lst_loop): Remove.
10336 (new_lst_stmt): Remove.
10337 (free_lst): Remove.
10338 (copy_lst): Remove.
10339 (lst_add_loop_under_loop): Remove.
10340 (lst_depth): Remove.
10341 (lst_dewey_number): Remove.
10342 (lst_dewey_number_at_depth): Remove.
10343 (lst_pred): Remove.
10344 (lst_succ): Remove.
10345 (lst_find_pbb): Remove.
10346 (find_lst_loop): Remove.
10347 (lst_find_first_pbb): Remove.
10348 (lst_empty_p): Remove.
10349 (lst_find_last_pbb): Remove.
10350 (lst_contains_p): Remove.
10351 (lst_contains_pbb): Remove.
10352 (lst_create_nest): Remove.
10353 (lst_remove_from_sequence): Remove.
10354 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10355 (lst_niter_for_loop): Remove.
10356 (pbb_update_scattering): Remove.
10357 (lst_update_scattering_under): Remove.
10358 (lst_update_scattering): Remove.
10359 (lst_insert_in_sequence): Remove.
10360 (lst_replace): Remove.
10361 (lst_substitute_3): Remove.
10362 (lst_distribute_lst): Remove.
10363 (lst_remove_all_before_including_pbb): Remove.
10364 (lst_remove_all_before_excluding_pbb): Remove.
10365 (struct scop): Remove original_schedule, transformed_schedule, and
10367 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10368 (SCOP_SAVED_SCHEDULE): Remove.
10369 (poly_scattering_new): Remove.
10370 (poly_scattering_free): Remove.
10371 (poly_scattering_copy): Remove.
10372 (store_scattering_pbb): Remove.
10373 (store_lst_schedule): Remove.
10374 (restore_lst_schedule): Remove.
10375 (store_scattering): Remove.
10376 (restore_scattering_pbb): Remove.
10377 (restore_scattering): Remove.
10378 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10379 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
10380 compute the scattering polyhedron dimension from the dimension of
10382 (build_scop_scattering): Update call to
10383 build_pbb_scattering_polyhedrons.
10384 (build_poly_scop): Remove call to scop_to_lst.
10385 * graphite.c (graphite_transform_loops): Add call to print_scop.
10386 (gate_graphite_transforms): Remove use of flag_loop_block,
10387 flag_loop_interchange, and flag_loop_strip_mine.
10389 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10391 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10392 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10393 -floop-nest-optimize.
10394 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10395 (generate_luj_sepclass): Remove.
10396 (generate_luj_options): Remove.
10397 (set_options): Remove opt_luj.
10398 (scop_to_isl_ast): Remove opt_luj.
10399 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10400 flag_loop_unroll_jam.
10401 (getPrevectorMap_full): Remove.
10402 (getScheduleForBandList): Remove map_sepcl.
10403 (getScheduleMap): Same.
10404 (apply_schedule_map_to_scop): Remove sepcl.
10405 (optimize_isl): Same.
10406 * graphite-poly.c (apply_poly_transforms): Remove check for
10407 flag_loop_unroll_jam.
10408 (new_poly_bb): Remove map_sepclass.
10409 * graphite-poly.h (struct poly_bb): Same.
10410 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10411 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10412 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10413 * toplev.c (process_options): Remove flag_loop_unroll_jam.
10415 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
10418 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10419 (addqi3_cc): Ditto.
10420 (UNSPEC_ADD_CARRY): Remove.
10421 (addqi3_cconly_overflow): New expander.
10422 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10423 Adjust for changed add<mode>3_carry.
10424 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10425 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10426 (<plusminus_insn><mode>3_carry): Remove expander.
10427 (*<plusminus_insn><mode>3_carry): Split insn pattern to
10428 add<mode>3_carry and sub<mode>3_carry.
10429 (plusminus_carry_mnemonic): Remove code attribute.
10430 (add<mode>3_carry): Canonicalize insn pattern.
10431 (*addsi3_carry_zext): Ditto.
10432 (sub<mode>3_carry): Ditto.
10433 (*subsi3_carry_zext): Ditto.
10434 (adcx<mode>3): Remove insn pattern.
10435 (addcarry<mode>): New insn pattern.
10436 (subborrow<mode>): Ditto.
10437 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
10438 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
10439 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
10440 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
10441 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
10442 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
10443 Rewrite expander to not clobber carry flag chains.
10445 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
10447 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
10448 instead of a rotate.
10450 2015-08-27 Marek Polacek <polacek@redhat.com>
10452 PR middle-end/67005
10453 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
10454 an entry into an irreducible region.
10456 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10458 * configure: Regenerate.
10460 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10462 PR tree-optimization/67283
10463 * tree-sra.c (type_consists_of_records_p): Rename to...
10464 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10466 (completely_scalarize_record): Rename to...
10467 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10468 (scalarize_elem): New.
10470 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10472 * tree-sra.c (completely_scalarize_var): Rename to...
10473 (create_total_scalarization_access): ... Here. Drop call to
10474 completely_scalarize_record.
10476 (analyze_all_variable_accesses): Replace completely_scalarize_var
10477 with create_total_scalarization_access and completely_scalarize_record.
10479 2015-08-27 Alan Modra <amodra@gmail.com>
10482 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
10485 2015-08-27 Richard Biener <rguenther@suse.de>
10487 * passes.c (rest_of_decl_compilation): Guard early_global_decl
10488 call with !seen_error ().
10489 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
10490 early debug generation and finish...
10491 (symbol_table::compile): ... here to put it after a !seen_error ()
10494 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10496 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
10499 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10500 Andre Vieira <andre.simoesdiasvieira@arm.com>
10502 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
10503 (*cb<optab><mode>1): Likewise.
10504 (*tb<optab><mode>1): Likewise.
10505 (*cb<optab><mode>1): Likewise.
10506 * config/aarch64/iterators.md (inv_cb): New code attribute.
10507 (inv_tb): Likewise.
10508 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
10509 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
10511 2015-08-27 Richard Biener <rguenther@suse.de>
10513 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
10515 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10517 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
10520 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10522 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
10525 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
10527 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
10528 floating point in VSX registers.
10529 (rs6000_output_move_128bit): Always print out the set insn if we
10530 can't generate an appropriate 128-bit move.
10531 (rs6000_generate_compare): Add support for IEEE 128-bit floating
10532 point in VSX registers comparisons.
10533 (rs6000_expand_float128_convert): Likewise.
10535 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
10536 predicate for only GPR hard registers.
10538 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
10539 modes to iterators. Add new iterators for moving 128-bit values in
10540 scalar FPR registers and VSX registers.
10541 (FMOVE128): Likewise.
10542 (FMOVE128_FPR): Likewise.
10543 (FMOVE128_GPR): Likewise.
10544 (FMOVE128_VSX): Likewise.
10545 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
10548 (IBM128): Likewise.
10549 (TFIFKF): Likewise.
10550 (RELOAD): Add IEEE 128-bit floating point modes.
10551 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
10552 floating point in VSX registers modes.
10553 (signbit<mode>2, IBM128 iterator): Likewise.
10554 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
10555 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10556 (negtf2): Likewise.
10557 (neg<mode>2, TFIFKF iterator): Likewise.
10558 (negtf2_internal): Likewise.
10559 (abstf2): Likewise.
10560 (abs<mode>2, TFIFKF iterator): Likewise.
10561 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
10562 VSX insn support for negate, absolute value, and negative absolute
10564 (ieee_128bit_vsx_neg<mode>2): Likewise.
10565 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10566 (ieee_128bit_vsx_abs<mode>2): Likewise.
10567 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10568 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10569 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10570 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
10571 floating point in VSX registers.
10572 (unpack<mode>_dm): Likewise.
10573 (unpack<mode>_nodm): Likewise.
10574 (pack<mode>): Likewise.
10575 (unpackv1ti): Likewise.
10576 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
10577 (packv1ti): Likewise.
10578 (pack<mode>, FMOVE128_VSX iterator): Likewise.
10579 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
10581 (extenddftf2_internal): Likewise.
10582 (trunctfdf2): Likewise.
10583 (trunctfdf2_internal2): Likewise.
10584 (fix_trunc_helper): Likewise.
10585 (fix_trunctfdi2"): Likewise.
10586 (floatditf2): Likewise.
10587 (floatuns<mode>tf2): Likewise.
10588 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
10589 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
10590 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
10591 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
10592 (float<SDI:mode><IFKF:mode>2): Likewise.
10593 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
10595 2015-08-26 Renlin Li <renlin.li@arm.com>
10597 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
10599 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
10600 Jiong Wang <jiong.wang@arm.com>
10602 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
10603 (tlsie_tiny_<mode>): New define_insn.
10604 (tlsie_tiny_sidi): Likewise.
10605 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
10607 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
10608 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10610 (aarch64_expand_mov_immediate): Likewise.
10611 (aarch64_print_operand): Likewise.
10612 (arch64_classify_tls_symbol): Likewise.
10614 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10616 * config/arm/arm-arches.def: Replace single value flags with
10617 an initializer built from ARM_FSET_MAKE_CPU1.
10618 * config/arm/arm-cores.def: Likewise.
10619 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
10620 derivation from the ARM_CORE macro definition, use the given value
10622 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
10623 ARM_ARCH macro definition, use the given value instead.
10625 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10627 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
10629 (struct builtin_description): Replace field mask with field
10631 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
10632 (IWMMXT2_BUILTIN): Likewise.
10633 (IWMMXT2_BUILTIN2): Likewise.
10634 (FP_BUILTIN): Likewise.
10635 (CRC32_BUILTIN): Likewise.
10636 (CRYPTO_BUILTIN): Likewise.
10637 (iwmmx_mbuiltin): Likewise.
10638 (iwmmx2_mbuiltin): Likewise.
10639 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
10640 struct builtin_description.
10642 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10644 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
10645 (struct builtin_description): Change type of mask to unsigned
10647 * config/arm/arm-protos.h (insn_flags): Declare as type
10649 (tune_flags): Likewise.
10650 * config/arm/arm.c (feature_count): New.
10651 (insn_flags): Define as type arm_feature_set.
10652 (tune_flags): Likewise.
10653 (struct processors): Define field flags as type arm_feature_set.
10654 (all_cores): Update for change to struct processors.
10655 (all_architectures): Likewise.
10656 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
10658 (arm_option_override_internal): Likewise.
10659 (arm_option_override): Likewise.
10661 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
10662 Jiong Wang <jiong.wang@arm.com>
10664 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
10665 tls size for tiny, small, large memory model.
10666 (aarch64_load_symref_appropriately): Support new symbol types.
10667 (aarch64_expand_mov_immediate): Likewise.
10668 (aarch64_print_operand): Likewise.
10669 (aarch64_classify_tls_symbol): Likewise.
10670 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
10671 (aarch64_symbol_type): Likewise.
10672 * config/aarch64/aarch64.md (tlsle): Deleted.
10673 (tlsle12_<mode>): New define_insn.
10674 (tlsle24_<mode>): Likewise.
10675 (tlsle32_<mode>): Likewise.
10676 (tlsle48_<mode>): Likewise.
10677 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10680 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10682 * config/arm/arm-protos.h (FL_NONE): New.
10684 (arm_feature_set): New.
10685 (ARM_FSET_MAKE): New.
10686 (ARM_FSET_MAKE_CPU1): New.
10687 (ARM_FSET_MAKE_CPU2): New.
10688 (ARM_FSET_CPU1): New.
10689 (ARM_FSET_CPU2): New.
10690 (ARM_FSET_EMPTY): New.
10691 (ARM_FSET_ANY): New.
10692 (ARM_FSET_HAS_CPU1): New.
10693 (ARM_FSET_HAS_CPU2): New.
10694 (ARM_FSET_HAS_CPU): New.
10695 (ARM_FSET_ADD_CPU1): New.
10696 (ARM_FSET_ADD_CPU2): New.
10697 (ARM_FSET_DEL_CPU1): New.
10698 (ARM_FSET_DEL_CPU2): New.
10699 (ARM_FSET_UNION): New.
10700 (ARM_FSET_INTER): New.
10701 (ARM_FSET_XOR): New.
10702 (ARM_FSET_EXCLUDE): New.
10703 (AFM_FSET_IS_EMPTY): New.
10704 (ARM_FSET_CPU_SUBSET): New.
10706 2015-08-26 Jiong Wang <jiong.wang@arm.com>
10708 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10709 SYMBOL_TLSLE to SYMBOL_TLSLE24.
10710 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10712 (aarch64_expand_mov_immediate): Likewise.
10713 (aarch64_print_operand): Likewise.
10714 (aarch64_classify_symbol): Likewise.
10716 2015-08-26 Jiong Wang <jiong.wang@arm.com>
10718 * config/aarch64/aarch64.opt (mtls-size): New entry.
10719 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
10720 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
10721 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
10723 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10725 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
10726 ARM_CORE entry. Fix some white-space.
10727 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
10728 ARM_CORE definition.
10730 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10732 * fold-const.c (fold_binary_loc) : Move Optimize
10733 root(x)*root(y) as root(x*y) to match.pd.
10734 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
10735 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
10736 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
10737 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
10738 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
10739 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
10740 (mult (exps:s @0) (exps:s @1)) : New simplifier.
10741 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
10742 (rdiv @0 (exps:s @1)) : New simplifier.
10744 2015-08-25 Joseph Myers <joseph@codesourcery.com>
10746 * gcc.c (driver::finalize): Only assign to extra_specs if
10749 2015-08-25 Marek Polacek <polacek@redhat.com>
10751 PR middle-end/67330
10752 * varasm.c (declare_weak): Return after giving an error.
10754 2015-08-25 David Malcolm <dmalcolm@redhat.com>
10756 * gcc-main.c (main): Add params to driver ctor.
10757 * gcc.c (class env_manager): New.
10759 (env_manager::init): New.
10760 (env_manager::get): New.
10761 (env_manager::xput): New.
10762 (env_manager::restore): New.
10763 Poison getenv and putenv.
10764 (DEFAULT_TARGET_SYSTEM_ROOT): New.
10765 (target_system_root): Update initialization to use
10766 DEFAULT_TARGET_SYSTEM_ROOT.
10767 (struct spec_list): Add field "default_ptr".
10768 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
10769 (init_spec): Likewise.
10770 (set_spec): Clear field "default_ptr".
10771 (read_specs): Free "spec" and "buffer".
10772 (xputenv): Reimplement in terms of env_manager.
10773 (process_command): Replace ::getenv calls with calls to the
10774 env_manager singleton.
10775 (process_brace_body): Free string in three places.
10776 (driver::driver): New.
10777 (driver::~driver): New.
10778 (used_arg): Convert from a function to...
10779 (class used_arg_t): ...this class, and...
10780 (used_arg): ...this new global instance.
10781 (used_arg_t::finalize): New function.
10782 (getenv_spec_function): Add "const" to local "value". Replace
10783 ::getenv call with call to the env_manager singleton.
10784 (path_prefix_reset): New function.
10785 (driver::finalize): New function.
10786 * gcc.h (driver::driver): New.
10787 (driver::~driver): New.
10788 (driver::finalize): New.
10790 2015-08-25 Nathan Sidwell <nathan@acm.org>
10792 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
10793 target doesn't have one.
10795 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
10798 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
10800 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
10803 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
10804 a define_insn, remove second alternative.
10806 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
10807 Joseph Myers <joseph@codesourcery.com>
10809 * gcc.c (struct switchstr): Expand comment.
10811 2015-08-25 Nathan Sidwell <nathan@acm.org>
10813 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
10814 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
10816 2015-08-25 Richard Biener <rguenther@suse.de>
10818 PR middle-end/67306
10819 * genmatch.c (expr::gen_transform): Verify the result of
10820 builtin_decl_implicit.
10821 (dt_simplify::gen_1): Likewise.
10823 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
10825 * config/arm/constraints.md: Also list Cs and US ARM-specific
10826 constraints as used.
10828 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
10831 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
10833 (nonpic_symbol_mentioned_p): Likewise.
10834 (sh_delegitimize_address): Likewise.
10835 (sh_function_ok_for_sibcall): Take into account weak symbols.
10836 (sh_expand_sym_label2reg): New.
10837 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
10838 * config/sh/sh.md (UNSPEC_PCREL): New enum.
10839 (call_pcrel): Use sh_expand_sym_label2reg.
10840 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10841 (symPCREL_label2reg) New expand.
10843 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
10845 * graphite-poly.c: Change type of region from void* to sese.
10846 * graphite-poly.h (struct scop): Changing the type of scop::region
10847 from void* to sese. Change accessor macro accordingly.
10848 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
10850 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
10852 * graphite-scop-detection.c (stmt_simple_for_scop_p):
10853 Constrain only on INTEGER_TYPE.
10855 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10858 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
10859 -mefficient-unaligned-vsx on ISA 2.7.
10861 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
10862 option to a masked option.
10864 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
10865 logic for -mefficient-unaligned-vsx so that it is set via an arch
10866 ISA option, instead of being set if -mtune=power8 is set. Move
10867 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
10868 near other default option handling.
10870 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10872 * genflags.c (gen_macro): Delete.
10873 (gen_proto): Don't create GEN.*CALL.* macros.
10874 * gensupport.h (get_file_location): Declare.
10875 * gensupport.c (rtx_locs): New variable.
10876 (read_md_rtx): Record rtx locations.
10877 (get_file_location): New function.
10878 * target-insns.def (call, call_pop, call_value, call_value_pop)
10879 (sibcall, sibcall_value): New patterns.
10880 * gentarget-def.c (parse_argument): New function.
10881 (def_target_insn): Use it. Handle optional operands. Raise an
10882 error if an .md pattern has the wrong number of operands for the
10883 pattern name. Remove the names of unused operands from the prototype.
10884 * builtins.c (expand_builtin_apply): Use targetm functions
10885 instead of HAVE_call_value and GEN_CALL_VALUE.
10886 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
10887 and sibcall_value_pop.
10888 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
10890 * config/alpha/alpha.md (untyped_call): Likewise.
10891 * config/iq2000/iq2000.md (untyped_call): Likewise.
10892 * config/m68k/m68k.md (untyped_call): Likewise.
10893 * config/mips/mips.md (untyped_call): Likewise.
10894 * config/pa/pa.md (untyped_call): Likewise.
10895 * config/rs6000/rs6000.md (untyped_call): Likewise.
10896 * config/sparc/sparc.md (untyped_call): Likewise.
10897 * config/tilegx/tilegx.md (untyped_call): Likewise.
10898 * config/tilepro/tilepro.md (untyped_call): Likewise.
10899 * config/visium/visium.md (untyped_call): Likewise.
10900 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
10901 gen_call_value instead of GEN_CALL_VALUE.
10902 * config/arm/arm.md (untyped_call): Likewise.
10903 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
10906 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10908 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
10909 (have_cbranchcc4): New variable.
10910 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
10911 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
10912 (if_convert): Initialize have_cbranchcc4.
10914 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10916 * builtins.c (expand_cmpstrn): Rename to...
10917 (expand_cmpstrn_or_cmpmem): ...this.
10918 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
10919 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
10920 Remove mode argument.
10921 (expand_builtin): Update accordingly.
10923 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10925 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
10926 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
10927 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
10928 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
10929 Add predicates for operands 0 and 3.
10930 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
10932 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
10933 immediate_operand to nonmemory_operand.
10935 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10937 * df-scan.c (df_insn_info_init_fields): New function, split out
10939 (df_insn_create_insn_record): ...here.
10940 (df_insn_info_free_fields): New function, split out from...
10941 (df_insn_info_delete): ...here.
10942 (df_insn_rescan): Use the new functions instead of freeing and
10943 reallocating the df_insn_info.
10945 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10947 * doc/install.texi (Binaries): Remove links no longer valid.
10949 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10951 * config/nvptx/mkoffload.c (process): Replace
10952 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
10954 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
10957 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
10959 2015-08-24 Renlin Li <renlin.li@arm.com>
10961 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
10962 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
10963 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
10964 * config/arm/constraints.md ("j"): Add check for high code.
10966 2015-08-24 Tom de Vries <tom@codesourcery.com>
10968 PR tree-optimization/65468
10969 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
10972 2015-08-24 Nathan Sidwell <nathan@acm.org>
10974 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
10975 change to nvptx_type_from_mode call. Use arg_promotion for both
10976 split and non-split args.
10978 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10980 * target-insns.def (movstr): New pattern.
10981 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
10982 (expand_movstr): Use targetm rather than HAVE_movstr/
10985 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10987 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
10990 2015-08-24 Andrew Pinski <apinski@cavium.com>
10992 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
10993 AARCH64_EXTRA_TUNING_OPTION.
10994 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
10996 (aarch64_extra_tuning_flags): Base the shifted value on the index
10997 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
10998 * config/aarch64/aarch64.c: Remove the last argument to
10999 AARCH64_EXTRA_TUNING_OPTION.
11001 2015-08-23 Nathan Sidwell <nathan@acm.org>
11003 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11005 (nvptx_declare_function_name): Insert formatting tabs for
11008 2015-08-23 Tom de Vries <tom@codesourcery.com>
11010 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11011 parm_decl, rather than generating a dummy default def in cfun.
11012 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
11013 ssa_name from cfun and child_fn do not share a stmt as def stmt.
11014 (move_stmt_op): Handle PARM_DECl.
11015 (gather_ssa_name_hash_map_from): New function.
11016 (move_sese_region_to_fn): Add default defs for function params, and add
11017 them to vars_map. Release copied ssa names.
11018 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11020 2015-08-23 Tom de Vries <tom@codesourcery.com>
11022 * doc/sourcebuild.texi: Rename vect_no_int_max with
11023 vect_no_int_min_max. Update description.
11025 2015-08-22 Andrew Pinski <apinski@cavium.com>
11027 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11028 * config/aarch64/aarch64-protos.h
11029 (aarch64_fusion_pairs_index): New enum.
11030 (aarch64_fusion_pairs): Base the shifted value on the index instead
11031 Rewrite AARCH64_FUSE_ALL to be based on the end index.
11032 of the argument to AARCH64_FUSION_PAIR.
11033 * config/aarch64/aarch64.c: Remove the last argument to
11034 AARCH64_FUSION_PAIR.
11036 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
11038 * dominance.c (new_zero_array): Define.
11039 (dom_info): Redefine as class with proper encapsulation.
11040 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11042 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
11043 allocations/deallocations. Pass function as parameter (instead of
11045 (dom_info::get_idom): Define accessor method.
11046 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11047 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
11048 (calculate_dominance_info): Adjust to use dom_info class.
11049 (verify_dominators): Likewise.
11051 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
11053 * print-rtl.c (print_rtx): Check the correct range for
11054 flag_dump_unnumbered_links to behave as documented.
11056 PR rtl-optimization/67227
11057 PR rtl-optimization/64164
11058 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11059 (nonoverlapping_memrefs_p): Test offsets and sizes when given
11060 identical gimple_reg exprs.
11062 2015-08-21 Nathan Sidwell <nathan@acm.org>
11064 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11066 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11067 crtl->stack_alignment_needed to determine alignment.
11068 (nvptx_get_drap_rtx): New.
11069 (TARGET_GET_DRAP_RTX): Override.
11070 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11072 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11074 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11076 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11078 * configure.ac: Remove uwin* cases.
11079 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11080 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11081 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11082 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11083 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11084 i[34567]86-*-uwin*, powerpc-*-beos*.
11086 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
11088 * gencodes.c (gencodes): Print the comma for the preceding
11089 enum value rather than the current one. Use aliased enum values
11090 rather than #defines for compiled-out patterns.
11091 (main): Update accordingly. Replace LAST_INSN_CODE with
11093 * lra.c (insn_code_data): Update accordingly.
11094 (finish_insn_code_data_once, get_static_insn_data): Likewise.
11095 * recog.h (target_recog): Likewise.
11096 (preprocess_insn_constraints): Change parameter to unsigned int.
11097 * recog.c (preprocess_insn_constraints): Likewise.
11098 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11099 * tree-vect-stmts.c (vectorizable_operation): Simplify.
11101 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11103 PR rtl-optimization/61657
11104 * loop-iv.c (iv_number_of_iterations): Declare up and down as
11105 unsigned. Remove superflous uint64_t cast.
11107 2014-08-21 Felix Yang <felix.yang@huawei.com>
11108 Jiji Jiang <jiangjiji@huawei.com>
11110 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11111 argument and get builtin function code directly from CALL.
11112 (gimple_stringop_fixed_value): Modified accordingly.
11113 (gimple_stringops_transform, gimple_stringops_values_to_profile):
11114 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11116 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
11118 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11120 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11122 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11124 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11125 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11126 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11127 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11128 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11129 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11130 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11131 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11132 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11133 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11135 * match.pd (SIN ) : New Operator.
11136 (TAN) : New Operator.
11137 (mult (SQRT@1 @0) @1) : New simplifier.
11138 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11139 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11140 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11141 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11142 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11143 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11144 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11145 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11146 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11147 (rdiv @0 (POW:s @1 @2)) : New simplifier.
11149 2015-08-21 Bin Cheng <bin.cheng@arm.com>
11151 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11152 loop if EXPR is simplified to const value.
11154 2015-08-21 Yury Gribov <y.gribov@samsung.com>
11156 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11157 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11159 2015-08-21 Richard Biener <rguenther@suse.de>
11161 PR middle-end/67285
11162 * gimple-fold.c (replace_stmt_with_simplification): Assert
11163 seq is empty when replacing a call with itself but different
11165 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11166 a call require that it is const.
11168 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11170 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11171 * builtins.c (get_object_alignment_2): Adjust.
11172 * varasm.c (align_variable): Likewise.
11173 (get_variable_align): Likewise.
11174 (build_constant_desc): Likewise.
11175 (force_const_mem): Likewise.
11176 * doc/tm.texi.in: Likewise.
11177 * doc/tm.texi: Regenerate.
11179 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11181 * genconfig.c (main): Always define HAVE_cc0.
11182 * recog.c (rest_of_handle_peephole2): Adjust.
11184 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11186 * reorg.c (relax_delay_slots): Don't use #if to check value of
11189 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11191 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11192 * targhooks.c (default_have_conditional_execution): Adjust.
11194 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11196 * rtl.h (rtvec_all_equal_p): Declare.
11197 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11198 * rtl.c (rtvec_all_equal_p): New function.
11199 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11200 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11201 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11202 * config/arm/arm.c (neon_vdup_constant): Likewise.
11203 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11204 * config/tilegx/constraints.md (W, Y): Likewise.
11205 * config/tilepro/constraints.md (W, Y): Likewise.
11206 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11207 (classify_immediate): Use unwrap_const_vec_duplicate.
11208 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11209 (reg_or_v2s8bit_operand): Likewise.
11210 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11211 (reg_or_v4s8bit_operand): Likewise.
11213 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11215 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11216 (vec_shasigma_be): New #define.
11217 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11218 (VPMSUMH): Likewise.
11219 (VPMSUMW): Likewise.
11220 (VPMSUMD): Likewise.
11221 (VPMSUM): New BU_P8V_OVERLOAD_2.
11222 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11223 entries for VEC_MADD and VEC_VPMSUM.
11225 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
11227 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11228 Multiply argument avr_n_flash by 64 to match unit of "KiB".
11229 (avr_pgm_check_var_decl): Same.
11231 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
11233 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11234 initialization of HFmode scalar type (float16_t) to...
11235 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11238 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11240 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11241 having an -mfp16-format.
11243 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11245 * config/i386/predicates.md (vector_all_ones_operand): Use
11246 CONSTM1_RTX to simplify definition.
11248 2015-08-20 Richard Biener <rguenther@suse.de>
11250 * toplev.c (compile_file): Remove loop calling late_global_decl
11252 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11253 on decls we assembled.
11255 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
11257 * common/config/aarch64/aarch64-common.c
11258 (AARCH64_CPU_NAME_LENGTH): Delete.
11259 (aarch64_option_extension): New.
11260 (all_extensions): Likewise.
11261 (processor_name_to_arch): Likewise.
11262 (arch_to_arch_name): Likewise.
11264 (all_architectures): Likewise.
11265 (aarch64_get_extension_string_for_isa_flags): Likewise.
11266 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11267 architecture names.
11268 * config/aarch64/aarch64-protos.h
11269 (aarch64_get_extension_string_for_isa_flags): New.
11270 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11271 (aarch64_option_print): Get the string to print from
11272 aarch64_get_extension_string_for_isa_flags.
11273 (aarch64_declare_function_name): Likewise.
11274 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11275 (MCPU_TO_MARCH_SPEC): This.
11276 (ASM_CPU_SPEC): Use it.
11277 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11278 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11279 (EXTRA_SPEC_FUNCTIONS): Use it.
11281 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
11283 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11284 expansion when !ISA_HAS_LWL_LWR.
11285 (mips_block_move_straight): Update the size of elements copied to
11286 account for alignment when !ISA_HAS_LWL_LWR.
11287 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11289 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11291 * expr.c (expand_expr_real_2): Check gimple statement during
11292 LSHIFT_EXPR expand.
11294 2015-08-19 Magnus Granberg <zorry@gentoo.org>
11296 * common.opt (fstack-protector): Initialize to -1.
11297 (fstack-protector-all): Likewise.
11298 (fstack-protector-strong): Likewise.
11299 (fstack-protector-explicit): Likewise.
11300 * configure.ac: Add --enable-default-ssp.
11301 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
11302 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11304 * doc/install.texi: Document --enable-default-ssp.
11305 * config.in: Regenerated.
11306 * configure: Likewise.
11308 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
11310 PR rtl-optimization/64164
11311 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11312 (parm_in_stack_slot_p): ... this. Disregard mode, what
11313 matters is whether the parm will live in a pseudo or a stack
11315 (expand_one_ssa_partition): Deal with params without a default
11316 def. Disregard mode.
11317 * cfgexpand.h: Renamed function declaration.
11318 * tree-ssa-coalesce.c: Adjust.
11319 * function.c (split_complex_args): Allocate stack slot for
11320 unassigned parms before splitting.
11321 (parm_in_unassigned_mem_p): New. Use it instead of
11322 parm_maybe_byref_p throughout this file.
11323 (assign_parm_setup_block): Use it. Accept pseudos in the
11324 expand-assigned rtl.
11325 (assign_parm_setup_reg): Drop BLKmode requirement.
11326 (assign_parm_setup_stack): Allocate and fill in the address of
11327 unassigned MEM parms.
11329 2015-08-19 David Sherwood <david.sherwood@arm.com>
11331 * genmodes.c (emit_mode_unit_size_inline): New function.
11332 (emit_mode_unit_precision_inline): New function.
11333 (emit_insn_modes_h): Emit new #define. Emit new functions.
11334 (emit_mode_unit_size): New function.
11335 (emit_mode_unit_precision): New function.
11336 (emit_mode_adjustments): Add mode_unit_size adjustments.
11337 (emit_insn_modes_c): Emit new arrays.
11338 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11339 use new inline methods.
11341 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11343 * config/aarch64/aarch64.c (bit_count): Delete prototype
11345 (aarch64_print_operand): Use popcount_hwi instead of the above.
11347 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11349 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11352 2015-08-19 Marek Polacek <polacek@redhat.com>
11354 PR middle-end/67133
11355 * gimple-ssa-isolate-paths.c
11356 (insert_trap_and_remove_trailing_statements): Rename to ...
11357 (insert_trap): ... this. Don't remove trailing statements; split
11359 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11361 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
11364 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11365 conditionalize the whole on __GNUC__. Add fallback code
11366 depending neither on undefined nor implementation-defined behaviour.
11368 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11370 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11371 whitespaces with tab.
11373 2015-08-19 Florian Weimer <fweimer@redhat.com>
11375 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11376 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11377 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11378 Move Name_Ids instantiation to the Prj.Proc package, to avoid
11381 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11383 * config/arm/arm.c (bounds_check): Use %wd print format
11384 for HOST_WIDE_INT arguments.
11386 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
11388 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11389 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11390 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11391 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11392 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11393 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11394 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11395 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11396 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11399 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
11401 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11402 function.c, graphite-scop-detection.c, haifa-sched.c,
11403 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11404 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11405 varasm.c: Remove typedefs of structs.
11407 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11409 * config/rs6000/altivec.h (vec_adde): New define.
11410 (vec_addec): Likewise.
11411 (vec_double): Likewise.
11412 (vec_bperm): Likewise.
11413 (vec_gb): Likewise.
11414 * config/rs6000/rs6000-builtin.def (ADDE): New
11415 BU_ALTIVEC_OVERLOAD_3.
11417 (DOUBLE): New BU_VSX_OVERLOAD_1.
11418 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11419 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11420 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11421 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11422 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11423 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11424 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11425 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11426 and P8V_BUILTIN_VEC_VBPERMQ.
11428 2015-08-18 Jason Merrill <jason@redhat.com>
11430 * print-tree.c (print_node): Handle TREE_BINFO.
11432 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11434 PR middle-end/36757
11435 * builtins.c (expand_builtin_signbit): Add asserts to make sure
11436 we can expand BUILT_IN_SIGNBIT inline.
11437 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
11438 * doc/extend.texi: Document the type-generic __builtin_signbit.
11440 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
11442 PR rtl-optimization/67218
11443 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
11444 (simplify_unary_operation_1): Use it.
11446 2015-08-18 Marek Polacek <polacek@redhat.com>
11448 PR middle-end/67222
11449 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
11450 if the call isn't valid.
11451 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
11452 gimple_call_builtin_p.
11453 (call_may_clobber_ref_p_1): Likewise.
11454 (stmt_kills_ref_p): Likewise.
11456 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
11458 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
11459 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
11460 (mips_hard_regno_scratch_ok): Likewise.
11461 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
11462 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
11464 2015-08-18 Bin Cheng <bin.cheng@arm.com>
11466 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
11467 (determine_value_range): Call refine_value_range_using_guard for
11468 each loop initial condition to improve value range.
11470 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
11472 * config/i386/i386.c: Remove include of fibheap.h.
11474 2015-08-17 Richard Biener <rguenther@suse.de>
11476 PR tree-optimization/67221
11477 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
11478 (sccvn_dom_walker::before_dom_children): Mark backedges of
11479 non-executable blocks as not executable.
11481 2015-08-17 David Sherwood <david.sherwood@arm.com>
11483 * config/arm/arm.c (neon_element_bits): Replace call to
11484 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
11485 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
11486 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
11487 (neon_vdup_lane<mode>): Likewise.
11488 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
11489 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
11490 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
11491 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
11492 * config/spu/spu.c (arith_immediate_p): Likewise.
11493 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11494 * expr.c (expand_expr_real_2): Likewise.
11495 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
11496 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11497 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11498 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
11500 * fold-const.c (fold_binary_loc): Replace call to
11501 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
11502 GET_MODE_UNIT_PRECISION (m).
11504 2015-08-17 Mike Stump <mikestump@comcast.net>
11506 * config/arm/arm.c (arm_block_move_unaligned_straight):
11507 Emit normal move instead of unaligned load when source or destination
11508 are appropriately aligned.
11510 2015-08-17 Richard Biener <rguenther@suse.de>
11511 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11513 PR middle-end/16107
11514 * match.pd (div (coss (op @0) : New simplifier.
11516 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
11518 PR rtl-optimization/64164
11520 PR middle-end/66983
11521 PR rtl-optimization/67000
11522 PR middle-end/67034
11523 PR middle-end/67035
11524 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11525 * tree-ssa-copyrename.c: Removed.
11526 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11527 -ftree-coalesce-vars.
11528 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11529 * common.opt (ftree-copyrename): Ignore.
11530 (ftree-coalesce-inlined-vars): Likewise.
11531 * doc/invoke.texi: Remove the ignored options above.
11532 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11533 * tree-ssa-coalesce.h: ... here.
11534 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11535 headers required by it.
11536 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11537 across variables when flag_tree_coalesce_vars. Check register
11538 use and promoted modes to allow coalescing. Do not coalesce
11539 maybe-byref parms with SSA_NAMEs of other variables, or
11540 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
11541 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11542 with its member functions to tree-ssa-coalesce.c.
11543 (var_map_base_init): Likewise. Renamed to
11544 compute_samebase_partition_bases.
11545 (partition_view_normal): Drop want_bases parameter.
11546 (partition_view_bitmap): Likewise.
11547 * tree-ssa-live.h: Adjust declarations.
11548 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
11549 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11550 default defs at the entry point.
11551 (dump_part_var_map): New.
11552 (compute_optimized_partition_bases): New, called by...
11553 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11554 of compute_samebase_partition_bases. Adjust.
11555 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11556 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
11557 (ssa_default_def_partition): New.
11558 (get_rtl_for_parm_ssa_default_def): New.
11559 (align_local_variable, add_stack_var): Support anonymous SSA
11561 (defer_stack_allocation): Likewise. Declare earlier.
11562 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11563 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11564 Do no record deferred-allocation marker in
11565 SA.partition_to_pseudo.
11566 (expand_stack_vars): Adjust check for the marker in it.
11567 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11568 redundant MEM attr setting.
11569 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11571 (expand_one_stack_var): ... this. New wrapper to check and
11572 skip already expanded SSA partitions.
11573 (record_alignment_for_reg_var): New, factored out of...
11574 (expand_one_var): ... this.
11575 (expand_one_ssa_partition): New.
11576 (adjust_one_expanded_partition_var): New.
11577 (expand_one_register_var): Check and skip already expanded SSA
11579 (expand_used_vars): Don't create DECLs for anonymous SSA
11580 names. Expand all SSA partitions, then adjust all SSA names.
11581 (pass::execute): Replace the loops that set
11582 SA.partition_to_pseudo from partition leaders and cleared
11583 DECL_RTL for multi-location variables, and that which used to
11584 rename vars and set attrs, with one that clears DECL_RTL and
11585 checks that PARMs and RESULTs default_defs match DECL_RTL.
11586 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11587 * emit-rtl.c: Include stor-layout.h.
11588 (set_reg_attrs_for_parm): Handle NULL decl.
11589 (set_reg_attrs_for_decl_rtl): Take mode from expression if
11591 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
11592 rather than its possibly-NULL DECL.
11593 * explow.c (promote_ssa_mode): New.
11594 * explow.h (promote_ssa_mode): Declare.
11595 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11596 (read_complex_part): Export.
11597 * expr.h (read_complex_part): Declare.
11598 * cfgexpand.h (parm_maybe_byref_p): Declare.
11599 * function.c: Include cfgexpand.h.
11600 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11601 (use_register_for_parm_decl): Wrapper for the above to
11602 special-case the result_ptr.
11603 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11604 (split_complex_args): Take assign_parm_data_all argument.
11605 Pass it to rtl_for_parm. Set up rtl and context for split
11606 args. Reset complex parm before fetching its default decl
11608 (assign_parms_unsplit_complex): Use the default-def complex
11609 parm rtl if it matches the components.
11610 (assign_parms_augmented_arg_list): Adjust.
11611 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11612 multiple locations. Recognize split complex args.
11613 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11614 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11615 (assign_parm_setup_block): Prefer SSA-assigned location, and
11616 fill in its address if the memory location of a maybe-byref
11617 parm was not assigned by cfgexpand.
11618 (assign_parm_setup_reg): Likewise. Adjust its mode as
11619 needed. Use entry_parm for equiv if stack_parm is NULL. Make
11620 sure passed_pointer parms don't need conversion. Copy address
11621 or value as needed.
11622 (assign_parm_setup_stack): Prefer SSA-assigned location.
11623 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11624 rtl before testing for pointer bounds. Special-case result_ptr.
11625 (expand_function_start): Maybe reset DECL_RTL of result.
11626 Prefer SSA-assigned location for result and static chain.
11627 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
11628 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
11629 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11630 anonymous SSA names. Use promote_ssa_mode.
11631 (get_temp_reg): Likewise.
11632 (remove_ssa_form): Adjust.
11633 * stor-layout.c (layout_decl): Don't set mem attributes of
11635 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11636 and get its reg_usage for reg invalidation.
11637 (compute_bb_dataflow): Pass it insn.
11638 (emit_notes_in_bb): Likewise.
11640 2015-08-14 Marek Polacek <polacek@redhat.com>
11642 * tree-core.h (tree_base): Fix typo.
11644 2015-08-14 Marek Polacek <polacek@redhat.com>
11646 PR middle-end/67133
11647 * gimple.c (infer_nonnull_range_by_attribute): Check that the
11648 nonnull argument position is not outside function arguments.
11650 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
11653 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
11654 'lconst_atomic' with 'const_atomic'.
11655 (atomic_fetch_<optab><mode>): Likewise.
11656 (atomic_<optab>_fetch<mode>): Likewise.
11657 * config/aarch64/iterators.md (lconst-atomic): Move below
11659 (const_atomic): New.
11661 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
11662 Bernd Schmidt <bernds@codesourcery.com>
11664 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
11666 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
11667 (DWARF2_DEBUGGING_INFO): Don't define.
11668 * debug.h (dwarf2_lineno_debug_hooks): Declare.
11669 * toplev.c (process_options): Add a case for it.
11670 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
11671 (dwarf2out_init): Skip most initializations if
11672 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
11674 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
11675 DWARF2_LINENO_DEBUGGING_INFO.
11676 * opts.c (set_debug_level): Likewise.
11678 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
11680 * config/arm/types.md (is_neon_type): Add missing types.
11682 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
11684 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
11686 * config/i386/i386.c (PTA_SKYLAKE): New macros.
11687 (processor_alias_table): Add skylake description.
11688 (enum processor_model): Add skylake processor.
11689 (arch_names_table): Add skylake record.
11690 * doc/invoke.texi: Add skylake item.
11692 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
11694 * ira-int.h: Include recog.h.
11695 * ira-build.c: Don't include recog.h.
11696 * ira-color.c: Likewise.
11697 * ira-conflicts.c: Likewise.
11698 * ira-costs.c: Likewise.
11699 * ira-emit.c: Likewise.
11700 * ira-lives.c: Likewise.
11702 * sched-deps.c: Likewise.
11703 * sel-sched.c: Likewise.
11704 * target-globals.c: Likewise.
11706 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
11709 * reload1.c (elimination_costs_in_insn): Make it obvious to the
11710 compiler that the n_dups and n_operands loop bounds are invariant.
11712 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11714 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
11715 expressions in A and B.
11717 2015-08-13 Richard Biener <rguenther@suse.de>
11719 * tree.c (nonnull_arg_p): Move from ...
11720 * tree-vrp.c (nonnull_arg_p): ... here.
11721 * tree.h (nonnull_arg_p): Declare.
11722 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
11723 here, register ptr != 0 for nonnull_arg_p pointer arguments.
11724 Properly initialize static chain and by-reference result pointer.
11725 (run_scc_vn): Adjust.
11727 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
11729 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
11732 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
11734 * config/aarch64/aarch64-protos.h
11735 (aarch64_gen_atomic_cas): Declare.
11736 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
11737 Choose appropriate instruction pattern for the target.
11738 (aarch64_gen_atomic_cas): New.
11739 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
11740 (atomic_compare_and_swap<mode>_1): Rename to
11741 aarch64_compare_and_swap<mode>. Fix some indentation.
11742 (aarch64_compare_and_swap<mode>_lse): New.
11743 (aarch64_atomic_cas<mode>): New.
11745 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
11747 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
11750 2015-08-13 Richard Biener <rguenther@suse.de>
11752 PR tree-optimization/67191
11753 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
11754 assert we value-numbered last stmts operand because it can validly
11755 trigger for unreachable code.
11757 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11759 PR rtl-optimization/67103
11760 * ifcvt.c (noce_try_store_flag_constants): Move
11761 x = (-(test != 0) & (b - a)) + a transformation to...
11762 (noce_try_cmove): ... Here. Try it if normal conditional
11765 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
11767 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
11769 * config/mips/mips.md (processor): Remove w32 and w64.
11771 2015-08-13 Richard Biener <rguenther@suse.de>
11773 PR tree-optimization/66502
11774 PR tree-optimization/67167
11775 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
11776 backedge arguments.
11777 (vn_phi_lookup): Adjust.
11778 (vn_phi_insert): Likewise.
11779 (visit_phi): Prefer to value-number to another PHI node
11780 over value-numbering to a PHI argument.
11781 (init_scc_vn): Mark DFS back edges.
11783 2015-08-13 Richard Biener <rguenther@suse.de>
11785 * gimple.h (gcall::code_): New constant static member.
11786 (gcond::code_): Likewise.
11787 * gimple.c (gcall::code_): Define.
11788 (gcond::code_): Likewise.
11789 (is_a_helper <const gcond *>): Add.
11790 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
11791 and forward to a new gcall overload with less checking and a
11792 cheaper way to access the operand.
11793 (gimple_call_lhs_ptr): Likewise.
11794 (gimple_call_set_lhs): Likewise.
11795 (gimple_call_internal_p): Likewise.
11796 (gimple_call_with_bounds_p): Likewise.
11797 (gimple_call_set_with_bounds): Likewise.
11798 (gimple_call_internal_fn): Likewise.
11799 (gimple_call_set_ctrl_altering): Likewise.
11800 (gimple_call_ctrl_altering_p): Likewise.
11801 (gimple_call_fntype): Likewise.
11802 (gimple_call_fn): Likewise.
11803 (gimple_call_fn_ptr): Likewise.
11804 (gimple_call_set_fndecl): Likewise.
11805 (gimple_call_fndecl): Likewise.
11806 (gimple_call_chain): Likewise.
11807 (gimple_call_num_args): Likewise.
11808 (gimple_call_arg): Likewise.
11809 (gimple_call_arg_ptr): Likewise.
11810 (gimple_call_set_arg): Likewise.
11811 (gimple_call_noreturn_p): Likewise.
11812 (gimple_cond_code): Likewise.
11813 (gimple_cond_lhs): Likewise.
11814 (gimple_cond_rhs): Likewise.
11815 (gimple_has_lhs): Reduce checking.
11817 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11819 PR middle-end/25529
11820 * match.pd (div (mult @0 @1) @1) : New simplifier.
11822 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11825 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
11826 predicate to allow construction of vector constants using the
11827 VSLDOI vector shift instruction.
11829 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
11832 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
11833 the number of bytes to be shifted left and filled in with either
11834 all zero or all one bits.
11835 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
11837 (output_vec_const_move): On power8, generate XXLORC to generate
11838 a vector constant with all 1's. Do a split if we need to use a
11839 VSLDOI instruction.
11841 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
11842 properly test for the MSB.
11844 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
11845 vector constants that can be created with VSLDOI.
11847 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11850 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11851 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11852 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11853 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11854 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11855 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11856 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11857 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11858 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11860 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
11862 * config/xtensa/constraints.md (define_constraint "Y"): New
11864 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
11865 * config/xtensa/linux.h (ASM_SPEC): Likewise.
11866 * config/xtensa/predicates.md (move_operand): Match constants
11867 and symbols in the presence of TARGET_AUTO_LITPOOLS.
11868 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
11869 immediate references to TLS data.
11870 (xtensa_emit_move_sequence): Don't force constants to memory in
11871 the presence of TARGET_AUTO_LITPOOLS.
11872 (print_operand): Add 'y' format, same as default, but capable of
11873 printing SF mode constants as well.
11874 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
11875 (movsf_internal): Add movi pattern that loads literal.
11876 (movsf, movdf): Don't force constants to memory in the presence
11877 of TARGET_AUTO_LITPOOLS.
11878 (movdf_internal): Add 'Y' constraint.
11879 * config/xtensa/xtensa.opt (mauto-litpools): New option.
11880 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
11882 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
11884 * config/arm/arm-fpus.def: Replace booleans with feature flags.
11886 * config/arm/arm.c (ARM_FPU): Update macro.
11887 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
11888 (TARGET_FP16): Likewise.
11889 (TARGET_CRYPTO): Likewise.
11890 (TARGET_NEON): Likewise.
11891 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
11894 2015-08-12 Tom de Vries <tom@codesourcery.com>
11898 * doc/install.texi: Remove --with_host_libstdcxx item. Update
11899 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
11900 accordingly. Mention default for --with-stage1-ldflags.
11902 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
11904 * config/arm/arm.h (arm_fpu_feature_set): New.
11905 (ARM_FPU_FSET_HAS): New.
11906 (FPU_FL_NONE): New.
11907 (FPU_FL_NEON): New.
11908 (FPU_FL_FP16): New.
11909 (FPU_FL_CRYPTO): New.
11911 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11913 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
11914 after -mcmodel=large -fPIC sorry.
11916 2015-08-12 Richard Biener <rguenther@suse.de>
11918 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
11919 comparison operand order and commutative ternary op operand order.
11920 (sccvn_dom_walker::cond_stack): New state to track temporary
11922 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
11924 (sccvn_dom_walker::record_cond): Add a single temporary conditional
11926 (sccvn_dom_walker::record_conds): Add a temporary conditional
11927 expressions and all related expressions also true/false.
11928 (sccvn_dom_walker::before_dom_children): Record temporary
11929 expressions based on the controlling condition of a single
11930 predecessor. When trying to simplify a conditional statement
11931 lookup expressions we might have inserted earlier.
11933 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
11936 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
11937 to ARM core registers.
11939 2015-08-12 Nathan Sidwell <nathan@acm.org>
11941 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
11942 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
11944 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
11946 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
11947 line with comments.
11948 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
11950 2015-08-12 Richard Biener <rguenther@suse.de>
11952 * gimple.h (remove_pointer): New trait.
11953 (GIMPLE_CHECK2): New inline template function.
11954 (gassign::code_): New constant static member.
11955 (is_a_helper<const gassign *>): Add.
11956 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
11957 and forward to a new gassign overload with less checking and a
11958 cheaper way to access the operand.
11959 (gimple_assign_lhs_ptr): Likewise.
11960 (gimple_assign_set_lhs): Likewise.
11961 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
11963 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
11965 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
11967 (gimple_assign_rhs_code): Likewise.
11968 * gimple.c (gassign::code_): Define.
11970 2015-08-12 Richard Biener <rguenther@suse.de>
11972 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11973 Eliminate edges marked as not executable by SCCVN.
11974 * tree-ssa-sccvn.c: Include gimple-iterator.h.
11975 (cond_dom_walker): Rename to sccvn_dom_walker.
11976 (sccvn_dom_walker::before_dom_children): Value-number defs
11978 (run_scc_vn): Remove loop value-numbering all SSA names.
11979 Drop not visited SSA names to varying.
11981 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11983 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11984 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11985 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11986 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11987 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11988 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11989 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11990 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11991 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11993 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
11996 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
11997 to enum feature_priority and feature_list.
11998 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
11999 and isa_names_table.
12001 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
12003 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12004 vect_induction_def.
12006 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12010 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12011 account when deciding what was the command-line status.
12013 2015-08-11 Nathan Sidwell <nathan@acm.org>
12015 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12017 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12018 we're not the only contributor to target phi.
12020 2015-08-11 Jiong Wang <jiong.wang@arm.com>
12022 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12025 2015-08-11 Tom de Vries <tom@codesourcery.com>
12027 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12029 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
12031 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12033 * config/i386/i386.md (cpu): Remove knl.
12035 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12038 PR middle-end/66332
12039 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12040 open-coded sequence.
12041 * omp-low.c (oacc_process_reduction_data): Remove handline of
12042 GOMP_DEVICE_HOST_NONSHM.
12044 * lto-streamer-in.c (lto_input_mode_table): Adjust to
12045 GET_MODE_INNER changes.
12047 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12048 Ilya Verbin <ilya.verbin@intel.com>
12050 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12052 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12054 * doc/options.texi (EnabledBy): Document that the argument must be
12056 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12057 Not enabled by -Wall.
12058 * optc-gen.awk: Give nicer error messages. Detect if the argument
12059 of EnabledBy is not a Common option.
12060 * common.opt (Wnull-dereference): Not enabled by -Wall.
12061 * opt-functions.awk (lang_enabled_by): Nicer error messages.
12063 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
12065 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12066 model == 0x4f as Broadwell.
12068 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12070 PR rtl-optimization/67028
12071 * combine.c (simplify_comparison): Fix comment. Rearrange code.
12072 Add test to see if a const_int fits in the new mode.
12074 2015-08-07 DJ Delorie <dj@redhat.com>
12076 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12078 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
12080 PR rtl-optimization/67029
12081 * ira-color.c: Include "recog.h" before including "ira-int.h".
12082 * target-globals.c: Likewise.
12083 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12084 adds an alternative_mask argument and use it instead of
12085 preferred_alternatives.
12086 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12087 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12088 * sched-deps.c: Include "ira-int.h" after including "ira.h".
12089 (sched_analyze_insn): Update call to
12090 ira_implicitly_set_insn_hard_regs.
12091 * sel-sched.c: Include "ira-int.h" after including "ira.h".
12092 (implicit_clobber_conflict_p): Update call to
12093 ira_implicitly_set_insn_hard_regs.
12095 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12097 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12099 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
12102 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12103 currently_expanding_to_rtl is set.
12105 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
12107 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12108 * configure: Regenerate.
12110 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12111 Jiong Wang <jiong.wang@arm.com>
12113 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12114 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12115 (REG_CLASS_NAMES): Likewise.
12116 (REG_CLASS_CONTENTS): Likewise.
12117 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12118 (aarch64_register_move_cost): Likewise.
12119 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12121 * config/aarch64/constraints.md (Uc0): New constraint.
12123 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12125 * config/aarch64/constraints.md (Usf): Add the test of
12126 aarch64_is_noplt_call_p.
12128 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12130 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12132 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12133 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12134 (call_symbol): Likewise.
12136 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12138 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12139 for vectorizing multiplication patterns.
12140 * tree-vectorizer.h: Adjust the number of patterns.
12142 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12144 * config/i386/sse.md (*vec_concatv2df): Declare added
12145 alternatives as sselog type.
12147 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12149 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12152 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12154 * config/s390/s390.c (s390_expand_tbegin): Expand either
12155 tbegin_1_z13 or tbegin_1 depending on VX flag.
12156 * config/s390/s390.md ("tbegin_1_z13"): New expander.
12158 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12160 * config/s390/s390.opt: Clarify description for -mzvector
12161 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12164 2015-08-06 Richard Biener <rguenther@suse.de>
12166 * gimple.h (gimple_call_set_fn): Access op member directly.
12167 (gimple_call_chain_ptr): Likewise.
12168 (gimple_call_set_chain): Likewise.
12169 (gimple_cond_lhs_ptr): Likewise.
12170 (gimple_cond_set_lhs): Likewise.
12171 (gimple_cond_rhs_ptr): Likewise.
12172 (gimple_cond_set_rhs): Likewise.
12173 (gimple_cond_true_label): Likewise.
12174 (gimple_cond_set_true_label): Likewise.
12175 (gimple_cond_set_false_label): Likewise.
12176 (gimple_cond_false_label): Likewise.
12177 (gimple_label_label): Likewise.
12178 (gimple_label_set_label): Likewise.
12179 (gimple_goto_set_dest): Likewise.
12180 (gimple_asm_input_op): Likewise.
12181 (gimple_asm_input_op_ptr): Likewise.
12182 (gimple_asm_set_input_op): Likewise.
12183 (gimple_asm_output_op): Likewise.
12184 (gimple_asm_output_op_ptr): Likewise.
12185 (gimple_asm_set_output_op): Likewise.
12186 (gimple_asm_clobber_op): Likewise.
12187 (gimple_asm_set_clobber_op): Likewise.
12188 (gimple_asm_label_op): Likewise.
12189 (gimple_asm_set_label_op): Likewise.
12190 (gimple_switch_index): Likewise.
12191 (gimple_switch_index_ptr): Likewise.
12192 (gimple_return_retval_ptr): Likewise.
12193 (gimple_return_retval): Likewise.
12194 (gimple_return_set_retval): Likewise.
12195 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
12196 (gimple_switch_label): Likewise.
12197 (gimple_switch_set_label): Likewise.
12199 2015-08-06 Richard Biener <rguenther@suse.de>
12201 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12202 bool comparison canonicalization and restrict to integers.
12204 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
12206 * coretypes.h (enum symbol_visibility): Relocate here.
12207 * flag-types.h (enum symbol_visibility): Remove.
12208 * tree-core.h (enum symbol_visibility): Remove.
12210 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
12213 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12214 for no_split_stack function attribute along with
12216 (rs6000_expand_split_stack_prologue): Likewise.
12218 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
12219 Jeff Law <law@redhat.com>
12222 * doc/invoke.texi (Wnull-dereference): New.
12223 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12224 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12225 Warn for potential NULL dereferences.
12226 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12227 * ubsan.c (instrument_nonnull_arg): Call
12228 infer_nonnull_range_by_attribute.
12229 (instrument_nonnull_return): Likewise.
12230 * common.opt (Wnull-dereference); New.
12231 * gimple.c (infer_nonnull_range): Remove bool arguments.
12232 (infer_nonnull_range_by_dereference): New.
12233 (infer_nonnull_range_by_attribute): New.
12234 * gimple.h: Update declarations.
12236 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12238 * gensupport.c (sequence_num): Replace with...
12239 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12240 ...these new variables.
12241 (init_rtx_reader_args_cb): Update accordingly.
12242 (get_num_code_insns): Likewise.
12243 (read_md_rtx): Rework to use a while loop and get_c_test.
12244 Use the new counters. Remove redundant DEFINE_SUBST case.
12245 * genoutput.c (gen_split): Delete.
12246 (main): Don't call it.
12248 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12250 * gensupport.h (get_c_test): Declare.
12251 * gensupport.c (get_c_test): New function.
12252 * genconditions.c (main): Use it.
12253 * genrecog.c (validate_pattern): Likewise.
12254 (match_pattern_1): Likewise. Remove c_test argument.
12255 (match_pattern): Update accordingly and remove c_test argument.
12256 (main): Update accordingly.
12258 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12260 * gensupport.h (get_num_insn_codes): Declare.
12261 * gensupport.c (get_num_insn_codes): New function.
12262 * genattrtab.c (optimize_attrs): Rename max_insn_code to
12264 (main): Likewise. Use get_num_insn_codes.
12265 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12267 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12269 PR middle-end/66311
12270 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12271 is zero- rather than sign-extended.
12273 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12275 * target-insns.def (can_extend): Delete.
12277 2015-08-05 Richard Biener <rguenther@suse.de>
12279 PR tree-optimization/67121
12280 * tree-if-conv.c (combine_blocks): Clear range-info produced
12281 by stmts no longer executed conditionally.
12283 2015-08-05 Nick Clifton <nickc@redhat.com>
12285 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12286 to allow identical far pointers to remain.
12288 2015-08-05 Richard Biener <rguenther@suse.de>
12290 PR middle-end/67120
12291 * match.pd: Compare address bases with == if they are decls
12292 or SSA names, not operand_equal_p. Otherwise fail.
12294 2015-08-05 Richard Biener <rguenther@suse.de>
12296 PR tree-optimization/67055
12297 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12300 * g++.dg/torture/pr67055.C: New testcase.
12302 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12304 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12306 (define_attr "enabled"): Handle avx521vl and noavx512vl.
12307 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12308 AVX-512 alternative out of SSE.
12309 (define_insn "*vec_concatv2df"): Ditto.
12311 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12313 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12314 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12315 CODE_FOR_avx_ptestv4di.
12316 * config/i386/sse.md (define_mode_iterator V_AVX): New.
12317 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12318 (define_insn "avx_ptest256"): Merge this ...
12319 (define_insn "sse4_1_ptest"): And this ...
12320 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12322 2015-08-05 Richard Biener <rguenther@suse.de>
12324 PR tree-optimization/67109
12325 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12326 against too big groups. Print whether this is a load or store
12327 group. Rename from ...
12328 (vect_analyze_group_access): ... this which is now a wrapper
12329 dissolving an invalid group.
12330 (vect_analyze_data_ref_accesses): Print whether this is a load
12333 2015-08-05 Richard Biener <rguenther@suse.de>
12335 PR middle-end/67107
12336 * match.pd: Guard const_binop result checking against NULL_TREE
12339 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12341 * cse.c (cse_insn): Restoring old behaviour for src_eqv
12342 when dest and value in the REG_EQUAL are same and dest
12343 is STRICT_LOW_PART.
12345 2015-08-04 Anatoly Sokolov <aesok@post.ru>
12347 * config/moxie/moxie.h (PRINT_OPERAND,
12348 PRINT_OPERAND_ADDRESS): Remove macros.
12349 * config/moxie/moxie-protos.h (moxie_print_operand,
12350 moxie_print_operand_address): Remove declaration.
12351 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12352 TARGET_PRINT_OPERAND_ADDRESS): Define.
12353 (moxie_print_operand, moxie_print_operand_address): Make static.
12355 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12358 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12359 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12361 2015-08-04 Richard Biener <rguenther@suse.de>
12363 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12365 (dt_operand::gen_gimple_expr): Adjust.
12367 2015-08-04 Richard Biener <rguenther@suse.de>
12369 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12370 bool compares on RHS.
12371 * match.pd: Add X ==/!= !X is false/true pattern.
12373 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
12375 * config/aarch64/aarch64.c: Change inner loop statement cost
12376 to be consistent with other targets.
12378 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
12380 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12383 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
12385 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12386 (machine_function): Remove pseudos field.
12388 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12390 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12391 Exit early and use target_option_current_node if processing current
12394 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12396 * doc/extend.texi (AArch64 Function Attributes): New node.
12397 (AArch64 Pragmas): Likewise.
12399 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12401 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12402 Initialize simd builtins if TARGET_SIMD.
12403 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12404 Make sure that the builtins are initialized only once no matter how
12405 many times the function is called.
12406 (aarch64_init_builtins): Unconditionally initialize crc builtins.
12407 (aarch64_relayout_simd_param): New function.
12408 (aarch64_simd_expand_args): Use above during argument expansion.
12409 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12410 simd builtins if TARGET_SIMD.
12411 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12413 (aarch64_relayout_simd_types): Likewise.
12415 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12417 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12418 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12419 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12420 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12422 (aarch64_reset_previous_fndecl): New function.
12423 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12425 * config/aarch64/aarch64-c.c: New file.
12426 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12427 Push and pop options at beginning and end. Remove ifdef
12428 __ARM_FEATURE_CRC32.
12429 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
12430 Add pragma +nothing+simd and +nothing+crypto where appropriate.
12431 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
12432 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
12434 (aarch64_register_pragmas): Likewise.
12435 (aarch64_reset_previous_fndecl): Likewise.
12436 (aarch64_process_target_attr): Likewise.
12437 (aarch64_override_options_internal): Likewise.
12439 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12441 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
12443 (aarch64_can_inline_p): Likewise.
12444 (TARGET_CAN_INLINE_P): Define.
12446 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12448 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12449 Remove static. Handle OPT_mgeneral_regs_only,
12450 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
12451 OPT_momit_leaf_frame_pointer.
12452 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
12453 (aarch64_attr_opt_type): New enum.
12454 (aarch64_attribute_info): New struct.
12455 (aarch64_handle_attr_arch): New function.
12456 (aarch64_handle_attr_cpu): Likewise.
12457 (aarch64_handle_attr_tune): Likewise.
12458 (aarch64_handle_attr_isa_flags): Likewise.
12459 (aarch64_attributes): New table.
12460 (aarch64_process_one_target_attr): New function.
12461 (num_occurences_in_str): Likewise.
12462 (aarch64_process_target_attr): Likewise.
12463 (aarch64_option_valid_attribute_p): Likewise.
12464 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12465 * config/aarch64/aarch64-protos.h: Include input.h
12466 (aarch64_handle_option): Declare prototype.
12468 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12470 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
12471 * config/aarch64/aarch64.c: Include target-globals.h
12472 (aarch64_previous_fndecl): New variable.
12473 (aarch64_set_current_function): New function.
12474 (TARGET_SET_CURRENT_FUNCTION): Define.
12476 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12478 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
12479 (explicit_arch): Likewise.
12480 (x_aarch64_isa_flags): Likewise.
12481 (mgeneral-regs-only): Mark as Save.
12482 (mfix-cortex-a53-835769): Likewise.
12483 (mcmodel=): Likewise.
12484 (mstrict-align): Likewise.
12485 (momit-leaf-frame-pointer): Likewise.
12486 (mtls-dialect): Likewise.
12487 (master=): Likewise.
12488 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
12489 (aarch64_isa_flags): Remove extern declaration.
12490 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
12491 to indicate success or failure.
12492 (aarch64_validate_march): Likewise.
12493 (aarch64_validate_mtune): Likewise.
12494 (aarch64_isa_flags): Delete.
12495 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
12496 instead of aarch64_isa_flags.
12497 (aarch64_get_tune_cpu): New function.
12498 (aarch64_get_arch): Likewise.
12499 (aarch64_override_options): Use above and set up explicit_tune_core
12501 (aarch64_print_extension): Move earlier in file. Add isa_flags
12502 argument and use that instead of the global aarch64_isa_flags.
12503 (aarch64_option_save): New function.
12504 (aarch64_option_restore): Likewise.
12505 (aarch64_option_print): Likewise.
12506 (aarch64_declare_function_name): Likewise.
12507 (aarch64_start_file): Delete.
12508 (TARGET_ASM_FILE_START): Do not define.
12509 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
12510 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
12513 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12515 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
12516 flag_omit_leaf_frame_pointer to 2.
12518 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12520 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
12522 (TARGET_FIX_ERR_A53_835769): New macro.
12523 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12524 handling of opts->x_aarch64_fix_a53_err835769.
12525 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
12526 than aarch64_fix_a53_err835769.
12527 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
12528 * config/aarch64/aarch64-linux.h: Likewise.
12530 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
12532 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
12533 ix86_expand_int_movcc as boolean.
12535 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12537 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
12538 (aarch64_cpu_string): Likewise.
12539 (aarch64_tune_string): Likewise.
12540 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
12541 (aarch64_parse_extension): Return aarch64_parse_opt_result.
12542 Add extra argument to put result into.
12543 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
12544 (aarch64_parse_cpu): Add arguments to put results into. Return
12545 aarch64_parse_opt_result.
12546 (aarch64_parse_tune): Likewise.
12547 (aarch64_override_options_after_change_1): New function.
12548 (aarch64_override_options_internal): New function.
12549 (aarch64_validate_mcpu): Likewise.
12550 (aarch64_validate_march): Likewise.
12551 (aarch64_validate_mtune): Likewise.
12552 (aarch64_override_options): Update to reflect above changes.
12553 Move some logic into aarch64_override_options_internal.
12554 Initialize target_option_default_node and target_option_current_node.
12555 (aarch64_override_options_after_change): Move logic into
12556 aarch64_override_options_after_change_1 and call it with global_options.
12557 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
12558 flag values from that.
12560 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12562 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12563 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
12564 * config/aarch64/aarch64.c (struct processor): Add arch field.
12565 (all_architectures): Handle above, move above all_cores.
12566 (all_cores): Handle above.
12567 (aarch64_parse_arch): Handle above changes.
12568 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
12569 above. Update comments.
12570 (armv8.1-a): Likewise.
12571 * config/aarch64/aarch64-cores.def: Update according to above.
12572 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
12573 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
12574 aarch64_arch_driver_info.
12576 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12578 * config/aarch64/aarch64.c (struct processor): Add ident field.
12579 Rename core sched_core.
12580 (all_cores): Handle above changes.
12581 (all_architectures): Likewise.
12582 (aarch64_parse_arch): Likewise.
12583 (aarch64_override_options): Likewise.
12585 2015-08-04 Richard Biener <rguenther@suse.de>
12587 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12588 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
12589 comparisons embedded in [VEC_]COND_EXPRs.
12591 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
12593 * tree-if-conv.c: Fix various typos in comments.
12594 * tree-vect-stmts.c: Likewise.
12596 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
12598 PR tree-optimization/67043
12599 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
12600 preheader after hoisting invariant in it.
12601 (find_defs): Force recomputation of all luids.
12603 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
12605 * config/rs6000/htm.md (tabort.): Restrict the source operand to
12606 using a base register.
12608 2015-08-03 David Malcolm <dmalcolm@redhat.com>
12610 * main.c (main): Pass in NULL for toplev's external_timer.
12611 * timevar.c: Include coretypes.h.
12612 (class timer::named_items): New.
12613 (timer::named_items::named_items): New.
12614 (timer::named_items::~named_items): New.
12615 (timer::named_items::push): New.
12616 (timer::named_items::pop): New.
12617 (timer::named_items::print): New.
12618 (timer::timer): Initialize field "m_jit_client_items".
12619 (timer::~timer): New.
12620 (timer::push): Move bulk of implementation to...
12621 (timer::push_internal): ...here. New function.
12622 (timer::pop): Move bulk of implementation to...
12623 (timer::pop_internal): ...here. New function.
12624 (timer::push_client_item): New.
12625 (timer::pop_client_item): New.
12626 (timer::print_row): New function, taken from timer::print.
12627 (timer::print): Print "GCC items" header if we also have client
12628 items. Move row-printing to timer::print_row. Print any client
12630 (timer::get_topmost_item_name): New method.
12631 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
12632 (TV_JIT_CLIENT_CODE): New.
12633 * timevar.h (timer::push_client_item): New declaration.
12634 (timer::pop_client_item): New declaration.
12635 (timer::get_topmost_item_name): New method.
12636 (timer::push_internal): New declaration.
12637 (timer::pop_internal): New declaration.
12638 (timer::print_row): New declaration.
12639 (timer::named_items): New declaration.
12640 (timer::m_jit_client_items): New field.
12641 (timer): Add friend class named_items.
12642 (auto_timevar::auto_timevar): Add timer param.
12643 (auto_timevar::~auto_timevar): Use field "m_timer".
12644 (auto_timevar::m_timer): New field.
12645 * toplev.c (initialize_rtl): Add g_timer as param when
12646 constructing auto_timevar instance.
12647 (toplev::toplev): Add "external_timer" param, and use it to
12648 initialize the "g_timer" global if non-NULL.
12649 (toplev::~toplev): If this created "g_timer", delete it.
12650 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
12651 with "external_timer" timer *.
12653 2015-08-03 Alexander Basov <coohpt@gmail.com>
12655 PR middle-end/64744
12656 PR middle-end/48470
12657 PR middle-end/43404
12658 * cfgexpand.c (expand_one_var): Add check if stack is going to
12659 be used in naked function.
12660 * expr.c (expand_expr_addr_expr_1): Remove excess checking
12661 whether expression should not reside in MEM.
12662 * function.c (use_register_for_decl): Do not use registers for
12663 non-register things (volatile, float, BLKMode) in naked functions.
12665 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
12668 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
12669 Adjust splits to match new pattern.
12671 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12673 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
12676 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
12677 point in VSX registers.
12679 * config/rs6000/constraints.md (wb constraint): Document unused
12681 (we constraint): Likewise.
12682 (wo constraint): Likewise.
12683 (wp constraint): New constraint for IEEE 128-bit floating point in
12685 (wq constraint): Likewise.
12687 * config/rs6000/predicates.md (easy_fp_constant): Add support for
12688 IEEE 128-bit floating point in VSX registers.
12689 (easy_scalar_constant): Likewise.
12691 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
12692 constraints (wp, wq) for IEEE 128-bit floating point in VSX
12694 (rs6000_init_hard_regno_mode_ok): Likewise.
12696 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
12697 floating point in VSX registers.
12700 (VSX_M2): Likewise.
12706 (vsx_le_permute_<mode>): Add support to properly swap bytes for
12707 IEEE 128-bit floating point in VSX registers on little endian.
12708 (vsx_le_undo_permute_<mode>): Likewise.
12709 (vsx_le_perm_load_<mode>): Likewise.
12710 (vsx_le_perm_store_<mode>): Likewise.
12711 (splitters for IEEE 128-bit fp moves): Likewise.
12713 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
12716 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
12717 floating point in VSX registers.
12720 * doc/md.text (Machine Constraints): Document wp and wq
12721 constraints on PowerPC.
12723 2015-08-03 Jeff Law <law@redhat.com>
12725 PR middle-end/66314
12726 PR gcov-profile/66899
12727 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
12728 iterate over the jump threading paths when an element in the
12729 jump threading paths array is eliminated.
12731 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
12733 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
12735 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
12737 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
12738 is_use_properly_guarded the variable def_preds. Free its
12739 contents before returning.
12740 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
12741 (is_use_properly_guarded): Replace local variable def_preds with
12742 a parameter. Adjust accordingly. Only update *def_preds if it's
12745 2015-08-03 Richard Biener <rguenther@suse.de>
12747 * genmatch.c (simplify::for_subst_vec): New member.
12748 (binary_ok): New helper for for lowering.
12749 (lower_for): Delay substituting operators into result expressions
12750 if we can merge the results eventually again.
12751 (capture_info::walk_result): Adjust for user_id appearing as
12752 result expression operator.
12753 (expr::gen_transform): Likewise.
12754 (dt_simplify::gen_1): Likewise.
12755 (dt_simplify::gen): Pass not substituted operators to tail
12756 functions or initialize local variable with it.
12757 (decision_tree::gen): Adjust function signature.
12758 * match.pd: Fix tests against global code and add default
12759 cases to switch stmts.
12761 2015-08-03 Richard Biener <rguenther@suse.de>
12763 * genmatch.c (dt_simplify::gen): Create captures array
12764 with an initializer.
12766 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12768 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
12769 the host compiler is affected by placement new aliasing bug.
12770 * configure: Regenerate.
12771 * Makefile.in (ALIASING_FLAGS): New variable.
12772 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
12774 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
12777 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
12778 (negmulsf3_vfp): Likewise.
12779 (muldf3negdf_vfp): Disable for -frounding-math.
12780 (mulsf3negsf_vfp): Likewise.
12781 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
12782 fix MULT cost with -frounding-math.
12784 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12786 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
12787 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
12788 explicit. Prefer to add the flag whenever possible.
12789 (noce_process_if_block): Try noce_try_store_flag_constants before
12792 2015-08-03 Richard Biener <rguenther@suse.de>
12794 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
12795 New hash-map to record equivalent transforms.
12796 (dt_node::analyze): Populate the equivalent transforms hash-map.
12797 (dt_simplify::info): Add reference to hash-map entry.
12798 (dt_simplify::gen): If we have split out a function for the
12799 transform, generate a call to it.
12800 (sinfo_hashmap_traits::hash): New function.
12801 (compare_op): New helper function for ...
12802 (sinfo_hashmap_traits::equal_keys): ... this new function.
12803 (decision_tree::gen): Split out common equivalent transforms
12806 2015-08-03 Richard Biener <rguenther@suse.de>
12808 * gimple-fold.c (fold_gimple_assign): Remove folding of
12809 the comparison in COND_EXPRs.
12811 2015-08-03 Richard Biener <rguenther@suse.de>
12813 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
12814 on the rhs of assignments first simplify the embedded
12817 2015-08-03 Richard Biener <rguenther@suse.de>
12819 PR tree-optimization/66917
12820 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
12822 (DR_VECT_AUX): New macro.
12823 (set_dr_misalignment): Adjust.
12824 (dr_misalignment): Likewise.
12825 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12826 Compute whether the base is at least element aligned.
12827 * tree-vect-stmts.c (ensure_base_align): Adjust.
12828 (vectorizable_store): If the base is not element aligned
12829 preserve alignment of the original access if misalignment is unknown.
12830 (vectorizable_load): Likewise.
12832 2015-08-02 Martin Sebor <msebor@redhat.com>
12834 * c-family/c.opt (-Wframe-address): New warning option.
12835 * doc/invoke.texi (Wframe-address): Document it.
12836 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
12837 Clarify possible effects of calling the functions with non-zero
12838 arguments and mention -Wframe-address.
12839 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
12841 2015-08-01 Michael Collison <michael.collison@linaro.org
12842 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12844 * config/arm/arm.md (*arm_smin_cmp): New pattern.
12845 (*arm_umin_cmp): Likewise.
12847 2015-08-01 Caroline Tice <cmtice@google.com>
12850 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
12852 (vtbl_find_mangled_name): New function.
12853 (vtbl_register_mangled_name): New function.
12854 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
12855 mangled name in mangled name vectors.
12856 (find_or_create_vtbl_map_node): Ditto.
12857 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
12858 update recursion_depth on function entry; pass it to every recursive
12859 call; automatically exit if depth > 25 (give up looking at that point).
12860 (verify_bb_vtables): Initialize recursion_depth and pass it to
12861 var_is_used_for_virtual_call_p.
12862 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
12863 global variable decls.
12864 (vtbl_register_mangled_name): New extern function decl.
12866 2015-08-01 Tom de Vries <tom@codesourcery.com>
12868 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
12870 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
12872 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
12873 operation_no_trapping_overflow. Allow non-overflow operations.
12874 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
12877 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
12880 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
12882 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12884 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
12885 Enable for TARGET_32BIT.
12886 (*if_move_neg): Likewise.
12888 2015-07-31 Nick Clifton <nickc@redhat.com>
12890 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
12891 Returns true for __model__.
12892 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12894 2015-07-31 Alan Modra <amodra@gmail.com>
12897 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
12898 (rs6000_emit_prologue): Set it.
12899 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
12901 2015-07-31 Richard Biener <rguenther@suse.de>
12903 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
12904 -> X == (C1 ^ C2) which is already implemented in match.pd.
12905 Remove redundant dispatching to fold_relational_const.
12906 Move unordered self and NaN compares ...
12907 * match.pd: ... as patterns here. Remove some stray captures
12910 2015-07-31 Petr Murzin <petr.murzin@intel.com>
12912 * config/i386/i386.c
12913 (bdesc_special_args): Convert mask type from signed to unsigned for
12915 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
12916 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
12917 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
12918 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
12919 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
12920 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
12921 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
12922 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
12923 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
12924 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
12925 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
12926 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
12927 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
12928 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
12929 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
12930 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
12931 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
12932 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
12933 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
12934 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
12935 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
12936 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
12937 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
12938 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
12939 * config/i386/i386-builtin-types.def
12940 (V16QI_FTYPE_V16SI): Remove.
12941 (V8DF_FTYPE_V8SI): Ditto.
12942 (V8HI_FTYPE_V8DI): Ditto.
12943 (V8SI_FTYPE_V8DI): Ditto.
12944 (V8SF_FTYPE_V8DF): Ditto.
12945 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
12946 (V16HI_FTYPE_V16SI): Ditto.
12947 (V16SF_FTYPE_V16HI): Ditto.
12948 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
12949 (V16SF_FTYPE_V16SI): Ditto.
12950 (V4DI_FTYPE_V4DI): Ditto.
12951 (V16SI_FTYPE_V16SF): Ditto.
12952 (V16SF_FTYPE_FLOAT): Ditto.
12953 (V8DF_FTYPE_DOUBLE): Ditto.
12954 (V8DI_FTYPE_INT64): Ditto.
12955 (V8DI_FTYPE_V4DI): Ditto.
12956 (V16QI_FTYPE_V8DI): Ditto.
12957 (UINT_FTYPE_V4SF): Ditto.
12958 (UINT64_FTYPE_V4SF): Ditto.
12959 (UINT_FTYPE_V2DF): Ditto.
12960 (UINT64_FTYPE_V2DF): Ditto.
12961 (V16SI_FTYPE_V16SI): Ditto.
12962 (V8DI_FTYPE_V8DI): Ditto.
12963 (V16SI_FTYPE_PV4SI): Ditto.
12964 (V16SF_FTYPE_PV4SF): Ditto.
12965 (V8DI_FTYPE_PV2DI): Ditto.
12966 (V8DF_FTYPE_PV2DF): Ditto.
12967 (V4DI_FTYPE_PV2DI): Ditto.
12968 (V4DF_FTYPE_PV2DF): Ditto.
12969 (V16SI_FTYPE_PV2SI): Ditto.
12970 (V16SF_FTYPE_PV2SF): Ditto.
12971 (V8DI_FTYPE_PV4DI): Ditto.
12972 (V8DF_FTYPE_PV4DF): Ditto.
12973 (V8SF_FTYPE_FLOAT): Ditto.
12974 (V4SF_FTYPE_FLOAT): Ditto.
12975 (V4DF_FTYPE_DOUBLE): Ditto.
12976 (V8SF_FTYPE_PV4SF): Ditto.
12977 (V8SI_FTYPE_PV4SI): Ditto.
12978 (V4SI_FTYPE_PV2SI): Ditto.
12979 (V8SF_FTYPE_PV2SF): Ditto.
12980 (V8SI_FTYPE_PV2SI): Ditto.
12981 (V16SF_FTYPE_PV8SF): Ditto.
12982 (V16SI_FTYPE_PV8SI): Ditto.
12983 (V8DI_FTYPE_V8SF): Ditto.
12984 (V4DI_FTYPE_V4SF): Ditto.
12985 (V2DI_FTYPE_V4SF): Ditto.
12986 (V64QI_FTYPE_QI): Ditto.
12987 (V32HI_FTYPE_HI): Ditto.
12988 (V8UHI_FTYPE_V8UHI): Ditto.
12989 (V16UHI_FTYPE_V16UHI): Ditto.
12990 (V32UHI_FTYPE_V32UHI): Ditto.
12991 (V2UDI_FTYPE_V2UDI): Ditto.
12992 (V4UDI_FTYPE_V4UDI): Ditto.
12993 (V8UDI_FTYPE_V8UDI): Ditto.
12994 (V4USI_FTYPE_V4USI): Ditto.
12995 (V8USI_FTYPE_V8USI): Ditto.
12996 (V16USI_FTYPE_V16USI): Ditto.
12997 (V2DF_FTYPE_V2DF_UINT64): Ditto.
12998 (V2DI_FTYPE_V2DF_V2DF): Ditto.
12999 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13000 (V8DF_FTYPE_V8DF_V8DI): Ditto.
13001 (V4SF_FTYPE_V4SF_UINT64): Ditto.
13002 (V4SI_FTYPE_V4SF_V4SF): Ditto.
13003 (V16SF_FTYPE_V16SF_V16SI): Ditto.
13004 (V64QI_FTYPE_V32HI_V32HI): Ditto.
13005 (V32HI_FTYPE_V16SI_V16SI): Ditto.
13006 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13007 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13008 (V32HI_FTYPE_V64QI_V64QI): Ditto.
13009 (V32HI_FTYPE_V32HI_V32HI): Ditto.
13010 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13011 (V16SI_FTYPE_V16SI_V4SI): Ditto.
13012 (V16SI_FTYPE_V16SI_V16SI): Ditto.
13013 (V16SI_FTYPE_V32HI_V32HI): Ditto.
13014 (V16SI_FTYPE_V16SI_SI): Ditto.
13015 (V8DI_FTYPE_V8DI_V8DI): Ditto.
13016 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13017 (V8DI_FTYPE_V16SI_V16SI): Ditto.
13018 (V8DI_FTYPE_V8DI_V2DI): Ditto.
13019 (QI_FTYPE_QI): Ditto.
13020 (SI_FTYPE_SI): Ditto.
13021 (DI_FTYPE_DI): Ditto.
13022 (QI_FTYPE_QI_QI): Ditto.
13023 (QI_FTYPE_QI_INT): Ditto.
13024 (HI_FTYPE_HI_INT): Ditto.
13025 (SI_FTYPE_SI_INT): Ditto.
13026 (DI_FTYPE_DI_INT): Ditto.
13027 (HI_FTYPE_V16QI_V16QI): Ditto.
13028 (SI_FTYPE_V32QI_V32QI): Ditto.
13029 (DI_FTYPE_V64QI_V64QI): Ditto.
13030 (QI_FTYPE_V8HI_V8HI): Ditto.
13031 (HI_FTYPE_V16HI_V16HI): Ditto.
13032 (SI_FTYPE_V32HI_V32HI): Ditto.
13033 (QI_FTYPE_V4SI_V4SI): Ditto.
13034 (QI_FTYPE_V8SI_V8SI): Ditto.
13035 (QI_FTYPE_V2DI_V2DI): Ditto.
13036 (QI_FTYPE_V4DI_V4DI): Ditto.
13037 (QI_FTYPE_V8DI_V8DI): Ditto.
13038 (HI_FTYPE_V16SI_V16SI): Ditto.
13039 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13040 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13041 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13042 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13043 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13044 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13045 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13046 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13047 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13048 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13049 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13050 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13051 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13052 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13053 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13054 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13055 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13056 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13057 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13058 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13059 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13060 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13061 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13062 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13063 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13064 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13065 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13066 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13067 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13068 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13069 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13070 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13071 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13072 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13073 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13074 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13075 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13076 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13077 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13078 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13079 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13080 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13081 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13082 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13083 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13084 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13085 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13086 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13087 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13088 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13089 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13090 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13091 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13092 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13093 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13094 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13095 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13096 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13097 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13098 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13099 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13100 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13101 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13102 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13103 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13104 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13105 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13106 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13107 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13108 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13109 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13110 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13111 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13112 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13113 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13114 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13115 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13116 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13117 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13118 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13119 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13120 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13121 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13122 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13123 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13124 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13125 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13126 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13127 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13128 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13129 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13130 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13131 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13132 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13133 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13134 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13135 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13136 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13137 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13138 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13139 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13140 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13141 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13142 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13143 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13144 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13145 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13146 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13147 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13148 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13149 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13150 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13151 (HI_FTYPE_HI): Ditto.
13152 (HI_FTYPE_V16QI): Ditto.
13153 (SI_FTYPE_V32QI): Ditto.
13154 (DI_FTYPE_V64QI): Ditto.
13155 (QI_FTYPE_V8HI): Ditto.
13156 (HI_FTYPE_V16HI): Ditto.
13157 (SI_FTYPE_V32HI): Ditto.
13158 (QI_FTYPE_V4SI): Ditto.
13159 (QI_FTYPE_V8SI): Ditto.
13160 (HI_FTYPE_V16SI): Ditto.
13161 (QI_FTYPE_V2DI): Ditto.
13162 (QI_FTYPE_V4DI): Ditto.
13163 (QI_FTYPE_V8DI): Ditto.
13164 (V16QI_FTYPE_HI): Ditto.
13165 (V32QI_FTYPE_SI): Ditto.
13166 (V64QI_FTYPE_DI): Ditto.
13167 (V8HI_FTYPE_QI): Ditto.
13168 (V16HI_FTYPE_HI): Ditto.
13169 (V32HI_FTYPE_SI): Ditto.
13170 (V4SI_FTYPE_QI): Ditto.
13171 (V4SI_FTYPE_HI): Ditto.
13172 (V8SI_FTYPE_QI): Ditto.
13173 (V8SI_FTYPE_HI): Ditto.
13174 (V2DI_FTYPE_QI): Ditto.
13175 (V4DI_FTYPE_QI): Ditto.
13176 (HI_FTYPE_HI_HI): Ditto.
13177 (SI_FTYPE_SI_SI): Ditto.
13178 (DI_FTYPE_DI_DI): Ditto.
13179 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13180 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13181 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13182 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13183 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13184 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13185 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13186 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13187 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13188 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13189 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13190 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13191 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13192 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13193 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13194 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13195 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13196 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13197 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13198 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13199 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13200 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13201 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13202 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13203 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13204 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13205 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13206 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13207 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13208 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13209 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13210 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13211 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13212 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13213 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13214 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13215 (V16SI_FTYPE_HI): Ditto.
13216 (V8DI_FTYPE_QI): Ditto.
13217 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13218 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13219 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13220 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13221 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13222 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13223 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13224 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13225 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13226 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13227 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13228 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13229 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13230 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13231 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13232 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13233 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13234 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13235 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13236 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13237 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13238 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13239 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13240 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13241 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13242 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13243 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13244 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13245 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13246 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13247 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13248 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13249 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13250 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13251 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13252 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13253 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13254 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13255 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13256 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13257 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13258 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13259 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13260 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13261 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13262 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13263 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13264 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13265 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13266 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13267 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13268 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13269 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13270 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13271 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13272 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13273 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13274 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13275 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13276 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13277 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13278 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13279 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13280 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13281 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13282 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13283 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13284 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13285 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13286 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13287 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13288 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13289 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13290 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13291 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13292 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13293 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13294 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13295 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13296 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13297 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13298 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13299 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13300 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13301 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13302 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13303 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13304 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13305 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13306 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13307 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13308 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13309 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13310 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13311 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13312 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13313 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13314 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13315 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13316 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13317 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13318 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13319 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13320 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13321 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13322 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13323 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13324 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13325 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13326 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13327 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13328 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13329 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13330 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13331 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13332 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13333 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13334 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13335 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13336 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13337 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13338 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13339 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13340 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13341 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13342 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13343 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13344 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13345 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13346 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13347 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13348 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13349 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13350 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13351 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13352 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13353 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13354 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13355 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13356 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13357 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13358 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13359 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13360 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13361 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13362 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13363 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13364 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13365 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13366 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13367 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13368 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13369 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13370 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13371 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13372 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13373 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13374 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13375 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13376 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13377 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13378 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13379 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13380 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13381 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13382 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13383 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13384 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13385 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13386 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13387 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13388 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13389 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13390 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13391 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13392 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13393 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13394 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13395 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13396 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13397 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13398 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13399 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13400 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13401 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13402 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13403 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13404 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13405 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13406 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13407 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13408 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13409 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13410 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13411 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13412 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13413 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13414 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13415 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13416 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13417 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13418 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13419 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13420 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13421 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13422 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13423 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13424 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13425 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13426 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13427 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13428 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
13429 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
13430 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
13431 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
13432 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
13433 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
13434 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
13435 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
13436 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
13437 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
13438 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
13439 (QI_FTYPE_V8DF_INT_QI): Ditto.
13440 (QI_FTYPE_V4DF_INT_QI): Ditto.
13441 (QI_FTYPE_V2DF_INT_QI): Ditto.
13442 (HI_FTYPE_V16SF_INT_HI): Ditto.
13443 (QI_FTYPE_V8SF_INT_QI): Ditto.
13444 (QI_FTYPE_V4SF_INT_QI): Ditto.
13445 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
13447 2015-07-31 Richard Biener <rguenther@suse.de>
13449 * gimple-fold.c (fold_gimple_assign): Remove folding of
13452 2015-07-31 Tom de Vries <tom@codesourcery.com>
13454 PR tree-optimization/66846
13455 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
13456 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
13457 (expand_omp_target) [ENABLE_CHECKING]: Same.
13458 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
13459 cfun if !LOOPS_NEED_FIXUP.
13460 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
13461 that omp_for already has its own loop struct.
13462 * tree-parloops.c (create_phi_for_local_result)
13463 (create_call_for_reduction): Handle simple latch bb.
13464 (create_parallel_loop): Add simple latch bb to preserve
13465 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
13466 (gen_parallel_loop): Remove call to cancel_loop_tree.
13467 (parallelize_loops): Skip loops that are inner loops of parallelized
13469 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
13470 verify_loop_structure.
13472 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13474 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
13475 * config/v850/v850.md (RV_REGNUM): New constants.
13476 * config/v850/v850.c (v850_libcall_value): New functions.
13477 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
13478 (TARGET_LIBCALL_VALUE): Define.
13480 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13482 * rtl.h (lowpart_subreg): Move in file.
13483 * loop-iv.c (lowpart_subreg): Move to...
13484 * simplify-rtx.c (lowpart_subreg): ...here.
13485 (simplify_binary_operation_1): Use lowpart_subreg instead of
13486 simplify_gen_subreg.
13487 * expr.c (expand_expr_real_2): Ditto.
13488 * emit-rtl.c (gen_lowpart_common): Ditto.
13489 * combine.c (gen_lowpart_for_combine): Ditto.
13490 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
13491 expand_debug_source_expr): Ditto.
13493 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
13495 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
13496 (expand_builtin_atomic_clear): Remove support for atomic_clear
13499 2015-07-30 Richard Biener <rguenther@suse.de>
13501 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
13502 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
13503 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
13504 redundant operand canonicalization.
13506 2015-07-30 David Sherwood <david.sherwood@arm.com>
13508 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
13509 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
13510 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
13511 * config/arm/arm.c (neon_valid_immediate): Likewise.
13512 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
13513 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
13514 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
13515 (expand_vec_perm_vpshufb2_vpermq): Likewise.
13516 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
13517 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
13518 * config/i386/sse.md
13519 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
13520 (*ssse3_palignr<mode>_perm): Likewise.
13521 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
13522 * config/spu/spu.c (arith_immediate_p): Likewise.
13523 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13524 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
13526 2015-07-30 Richard Biener <rguenther@suse.de>
13528 * genmatch.c (decision_tree::gen_gimple): Merge with ...
13529 (decision_tree::gen_generic): ... this into ...
13530 (decision_tree::gen): ... this.
13531 (main): Adjust callers.
13533 2015-07-30 Richard Biener <rguenther@suse.de>
13535 * genmatch.c (verbose): New global.
13536 (warning_at): Add overload with source_location.
13537 (capture_info::capture_info): Add bool whether generating gimple
13538 or generic. Add gimple member.
13539 (capture_info::cinfo): Add capture member.
13540 (capture_info::walk_match): Record capture. Warn on
13541 non-captured leafs.
13542 (capture_info::walk_c_expr): Add more fragments captures cannot
13543 escape through. Warn on escaped captures.
13544 (dt_simplify::gen_1): Warn on operands we force to have no
13546 (main): Initialize verbose.
13547 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
13549 2015-07-30 Richard Biener <rguenther@suse.de>
13551 PR middle-end/67053
13552 * match.pd: Allow both operands to independently have conversion
13553 when simplifying compares of addresses.
13555 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13559 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
13560 around those cases that need one.
13562 2015-07-29 Aditya Kumar <hiraditya@msn.com>
13564 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
13566 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
13568 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
13569 New. Copied from config/i386/gnu-user.h.
13570 (ASM_COMMENT_START): Likewise.
13571 (DBX_REGISTER_NUMBER): Likewise.
13573 2015-07-29 Richard Biener <rguenther@suse.de>
13575 * gimple-fold.c (fold_gimple_cond): Remove.
13576 (fold_stmt_1): Do not call it.
13578 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
13580 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
13581 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
13583 * config/aarch64/aarch64-modes.def: Add HFmode.
13585 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13586 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
13588 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
13589 aarch64_promoted_type): New.
13591 (aarch64_float_const_representable_p): Disable HFmode.
13592 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
13593 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
13594 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
13596 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
13597 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
13599 * config/aarch64/iterators.md (GPF_F16): New.
13601 2015-07-29 Richard Biener <rguenther@suse.de>
13603 * match.pd: Merge address comparison patterns and make them
13604 handle some more cases.
13606 2015-07-29 Richard Biener <rguenther@suse.de>
13608 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
13609 (parser::parse_capture): Add bool argument on whether to reject
13611 (parser::parse_expr): Adjust.
13612 (parser::parse_op): Likewise.
13613 (parser::parse_pattern): Likewise.
13615 2015-07-29 Richard Biener <rguenther@suse.de>
13617 * gimple-fold.c (has_use_on_stmt): New function.
13618 (replace_stmt_with_simplification): Use it to allow
13619 abnormals originally referenced in the stmt.
13620 (fold_stmt_1): Canonicalize operand order.
13622 2015-07-28 David Sherwood <david.sherwood@arm.com>
13624 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
13625 GET_MODE_INNER unconditionally.
13626 * config/spu/spu.c (arith_immediate_p): Likewise.
13627 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
13628 * expmed.c (synth_mult): Remove check for VOIDmode result from
13630 (expand_mult_const): Likewise.
13631 * fold-const.c (fold_binary_loc): Replace call to element_precision
13632 with call to GET_MODE_PRECISION.
13633 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
13635 (emit_mode_inner): Likewise.
13636 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
13638 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
13639 (GET_MODE_UNIT_PRECISION): Likewise.
13640 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
13641 * simplify-rtx.c (simplify_immed_subreg): Likewise.
13642 * stor-layout.c (bitwise_type_for_mode): Update assert.
13643 (element_precision): Remove.
13645 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13647 * target-insns.def (reload_load_address): New targetm instruction
13649 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
13651 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13653 * target-insns.def (atomic_test_and_set): New targetm instruction
13655 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
13656 HAVE_*/gen_* interface.
13658 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13660 * target-insns.def (can_extend, ptr_extend): New targetm instruction
13662 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
13663 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13664 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13665 * rtlanal.c (nonzero_bits1): Likewise.
13666 (num_sign_bit_copies1): Likewise.
13668 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13670 * target-insns.def (eh_return): New targetm instruction pattern.
13671 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
13673 * function.c (thread_prologue_and_epilogue_insns): Remove
13674 preprocessor condition.
13676 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13678 * target-insns.def (indirect_jump): New targetm instruction pattern.
13679 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
13682 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13684 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
13685 instead of nonimmediate_operand. Remove C condiition.
13687 2015-07-28 Richard Biener <rguenther@suse.de>
13689 * match.pd: Add more simplification of address comparisons.
13691 2015-07-28 Richard Biener <rguenther@suse.de>
13693 * match.pd: Re-order two cases in comparison with max/min
13694 value simplification to make it apply for bools.
13696 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13698 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
13699 Handle simple SIGN_EXTEND or ZERO_EXTEND.
13700 (aarch64_rtx_costs): Properly strip extend or extract before
13701 passing down to rtx costs again.
13703 2015-07-28 Nick Clifton <nickc@redhat.com>
13705 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
13706 Optimizes the case where -mes0 is active and a constant symbolic
13708 * config/rl78/rl78-protos.h: Prototype the new function.
13709 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
13711 2015-07-28 Tom de Vries <tom@codesourcery.com>
13713 * tree-parloops.c (reduc_stmt_res): New function.
13714 (initialize_reductions, add_field_for_reduction)
13715 (create_phi_for_local_result, create_loads_for_reductions)
13716 (create_stores_for_reduction, build_new_reduction): Handle case that
13717 reduc_stmt is a phi.
13718 (gather_scalar_reductions): Allow double_reduc reductions.
13720 2015-07-28 Richard Biener <rguenther@suse.de>
13722 * fold-const.c (fold_comparison): Remove equality folding
13723 of decl addresses ...
13724 * match.pd: ... here and merge with existing pattern.
13726 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13728 PR tree-optimization/66828
13729 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
13730 from int64_t to uint64_t.
13732 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
13734 * opts-common.c (read_cmdline_option): List DriverOnly enum values
13735 as valid only in the error message of the driver, not in the
13736 messages of the language compilers.
13738 2015-07-27 Tom de Vries <tom@codesourcery.com>
13740 * tree-parloops.c (gather_scalar_reductions): Simplify function
13743 2015-07-27 Marek Polacek <polacek@redhat.com>
13745 * ipa-devirt.c (types_same_for_odr): Fix typo.
13747 2015-07-27 Jason Merrill <jason@redhat.com>
13750 * dwarf2out.c (gen_inlined_subroutine_die): Check
13751 cgraph_function_possibly_inlined_p.
13753 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
13755 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
13756 Place integer variant first.
13757 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13759 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
13762 * config/arm/arm-builtins.c (enum arm_builtins):
13763 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
13764 (ARM_BUILTIN_NEON_BASE): Rename macro to....
13765 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
13766 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
13767 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
13769 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
13772 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
13773 Add qualifier_lane_index.
13774 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
13775 (arm_getlane_qualifiers): Use qualifier_lane_index.
13776 (arm_lanemac_qualifiers): Rename to...
13777 (arm_mac_n_qualifiers): ...this.
13778 (LANEMAC_QUALIFIERS): Rename to...
13779 (MAC_N_QUALIFIERS): ...this.
13780 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
13781 (arm_setlane_qualifiers): Use qualifier_lane_index.
13782 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
13783 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
13784 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
13785 (arm_expand_neon_builtin): Handle qualifier_lane_index.
13787 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
13788 * config/arm/arm.c (bounds_check): Likewise, improve error message.
13789 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
13790 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
13791 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
13792 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
13793 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
13794 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
13795 qualifiers to TERNOP_IMM.
13796 (vdup_lane): Change qualifiers to GETLANE.
13797 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
13798 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
13799 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
13800 vqdmlsl_n): Change qualifiers to MAC_N.
13802 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
13803 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
13804 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
13805 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
13806 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
13807 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
13808 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
13809 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
13810 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
13811 Remove call to neon_lane_bounds.
13813 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
13815 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13816 Place integer variant first.
13818 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
13820 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
13821 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
13822 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
13823 for armv6kz targets.
13824 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
13825 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
13826 (FL_FOR_ARCH6ZK): Remove.
13827 (FL_FOR_ARCH6KZ): New.
13828 (arm_arch6zk): New declaration.
13829 * config/arm/arm-tables.opt: Regenerate.
13830 * config/arm/arm.c (arm_arch6kz): New.
13831 (arm_option_override): Set arm_arch6kz.
13832 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
13833 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
13834 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
13836 2015-07-27 Marek Polacek <polacek@redhat.com>
13840 * doc/invoke.texi: Document -Wtautological-compare.
13842 2015-07-27 Richard Biener <rguenther@suse.de>
13844 * genmatch.c (decision_tree::gen_gimple): Split out large
13845 subtrees into separate functions.
13846 (decision_tree::gen_generic): Likewise.
13848 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
13850 * config/alpha/alpha.c: Use SUBREG_P predicate.
13851 * config/alpha/predicates.md: Ditto.
13853 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
13855 * config.host (s390*-*-*): Include driver-native.c only when
13856 building with s390* as host *and* target.
13858 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
13861 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
13862 T bit register modified_between_p check.
13864 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13866 * config/i386/i386.c: Use SUBREG_P predicate.
13867 * config/i386/i386.md: Ditto.
13868 * config/i386/sse.md: Ditto.
13869 * config/i386/predicates.md: Ditto.
13871 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13874 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
13875 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
13877 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13879 * Makefile.in: Remove use of TREEBROWSER.
13880 * config.in: Regenerated.
13881 * configure: Regenerated.
13882 * configure.ac: Remove definition of TREEBROWSER.
13883 * tree-browser.c: Removed.
13884 * tree-browser.def: Removed.
13886 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13888 * graphite-scop-detection.c: Include gimple-pretty-print.h.
13889 (stmt_simple_for_scop_p): Print when a stmt is not handled in
13891 (scopdet_basic_block_info): Print when a loop or bb cannot be
13892 represented in Graphite.
13894 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13897 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
13898 execution guard when min_size is less than size_needed.
13900 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13902 * doc/install.texi: Document supported versions of ISL.
13904 2015-07-25 Jeff Law <law@redhat.com>
13908 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13909 unable to find X NE 0 in the tables, return X as the simplified
13911 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13912 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13913 to VISISTED_BBS. */
13914 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13915 after removing the control flow statement and unnecessary edges.
13917 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
13920 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13922 PR rtl-optimization/64164
13923 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13924 * tree-ssa-copyrename.c: Removed.
13925 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13926 -ftree-coalesce-vars.
13927 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13928 * common.opt (ftree-copyrename): Ignore.
13929 (ftree-coalesce-inlined-vars): Likewise.
13930 * doc/invoke.texi: Remove the ignored options above.
13931 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13932 * tree-ssa-coalesce.h: ... here.
13933 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13934 headers required by it.
13935 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13936 across variables when flag_tree_coalesce_vars. Check register
13937 use and promoted modes to allow coalescing. Moved to
13938 tree-ssa-coalesce.c.
13939 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13940 with its member functions to tree-ssa-coalesce.c.
13941 (var_map_base_init): Likewise. Renamed to
13942 compute_samebase_partition_bases.
13943 (partition_view_normal): Drop want_bases parameter.
13944 (partition_view_bitmap): Likewise.
13945 * tree-ssa-live.h: Adjust declarations.
13946 * tree-ssa-coalesce.c: Include explow.h.
13947 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13948 default defs at the entry point.
13949 (dump_part_var_map): New.
13950 (compute_optimized_partition_bases): New, called by...
13951 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13952 of compute_samebase_partition_bases. Adjust.
13953 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13954 * cfgexpand.c (leader_merge): New.
13955 (get_rtl_for_parm_ssa_default_def): New.
13956 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13957 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13958 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13959 redundant MEM attr setting.
13960 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13962 (expand_one_stack_var): ... this. New wrapper to check and
13963 skip already expanded SSA partitions.
13964 (record_alignment_for_reg_var): New, factored out of...
13965 (expand_one_var): ... this.
13966 (expand_one_ssa_partition): New.
13967 (adjust_one_expanded_partition_var): New.
13968 (expand_one_register_var): Check and skip already expanded SSA
13970 (expand_used_vars): Don't create DECLs for anonymous SSA
13971 names. Expand all SSA partitions, then adjust all SSA names.
13972 (pass::execute): Replace the loops that set
13973 SA.partition_to_pseudo from partition leaders and cleared
13974 DECL_RTL for multi-location variables, and that which used to
13975 rename vars and set attrs, with one that clears DECL_RTL and
13976 checks that PARMs and RESULTs default_defs match DECL_RTL.
13977 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13978 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13979 * explow.c (promote_ssa_mode): New.
13980 * explow.h (promote_ssa_mode): Declare.
13981 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13982 * function.c: Include cfgexpand.h.
13983 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13984 (use_register_for_parm_decl): Wrapper for the above to
13985 special-case the result_ptr.
13986 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13987 (split_complex_args): Take assign_parm_data_all argument.
13988 Pass it to rtl_for_parm. Set up rtl and context for split
13990 (assign_parms_augmented_arg_list): Adjust.
13991 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13992 multiple locations. Recognize split complex args.
13993 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13994 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13995 (assign_parm_setup_block): Prefer SSA-assigned location.
13996 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13997 if stack_parm is NULL.
13998 (assign_parm_setup_stack): Prefer SSA-assigned location.
13999 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14000 rtl before testing for pointer bounds. Special-case result_ptr.
14001 (expand_function_start): Maybe reset DECL_RTL of result.
14002 Prefer SSA-assigned location for result and static chain.
14003 Factor out DECL_RESULT and SET_DECL_RTL.
14004 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14005 anonymous SSA names. Use promote_ssa_mode.
14006 (get_temp_reg): Likewise.
14007 (remove_ssa_form): Adjust.
14008 * stor-layout.c (layout_decl): Don't set mem attributes of
14010 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14011 and get its reg_usage for reg invalidation.
14012 (compute_bb_dataflow): Pass it insn.
14013 (emit_notes_in_bb): Likewise.
14015 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14017 * config/i386/i386.c (ix86_va_start): Remove
14018 unneeded !TARGET_64BIT check.
14019 (ix86_gimplify_va_arg): Ditto.
14021 2015-07-24 Tom de Vries <tom@codesourcery.com>
14023 * graphite-sese-to-poly.c (build_poly_scop): Always call
14024 rewrite_commutative_reductions_out_of_ssa.
14026 2015-07-24 Tom de Vries <tom@codesourcery.com>
14028 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14029 flag_associative_math to FLOAT_TYPE_P. Honour
14030 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14032 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14035 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14036 and "%qD" in warning_at instead of "%q+D" in warning.
14038 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14040 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14041 (ix86_function_abi): Cleanup.
14043 2015-07-24 Michael Darling <darlingm@gmail.com>
14046 * acinclude.m4: Reflects renaming of configure.in to configure.ac
14047 * configure: Likewise
14048 * configure.ac: Likewise
14049 * doc/install.texi: Likewise
14050 * doc/tm.texi: Likewise
14051 * doc/tm.texi.in: Likewise
14053 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14055 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14056 manually swapping values.
14057 * cse.c (fold_rtx): Likewise.
14058 * lra-eliminations.c (form_sum): Likewise.
14060 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14063 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14064 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14065 (*jcc_1, *jcc_2, jump, simple_return_internal)
14066 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14067 Set length_nobnd attribute instead of length attribute.
14068 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14069 (length_nobnd): Remove attribute.
14070 (length): Remove length_nobnd processing.
14072 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
14074 * gimplify.c (omp_default_clause): New function. Reorganize flow
14075 for clarity. Broken out of ...
14076 (omp_notice_variable): ... here.
14078 2015-07-24 Gary Funck <gary@intrepid.com>
14080 PR middle-end/66984
14081 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14082 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14084 2015-07-24 Tom de Vries <tom@codesourcery.com>
14086 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14087 exit-first loop transform.
14089 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14092 * tree-cfg.c (struct replace_decls_d): New struct.
14093 (replace_block_vars_by_duplicates_1): New function.
14094 (replace_block_vars_by_duplicates): Use it to replace the decls
14095 in the value exprs by duplicates.
14097 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14099 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14100 -shared, -symbolic, -rdynamic.
14102 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14105 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14106 -dynamic-linker within %{!static %{!shared, and -rdynamic within
14109 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14112 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14113 edge summary is available.
14115 2015-07-24 Richard Biener <rguenther@suse.de>
14117 * genmatch.c (struct dt_node): Add statistic fields.
14118 (dt_node::analyze): New method.
14119 (decision_tree::gen_gimple): Call analyze on the root node
14120 and print statistics to stderr.
14121 (decision_tree::gen_generic): Likewise.
14123 2015-07-24 Richard Biener <rguenther@suse.de>
14125 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14126 against the highest or lowest possible integer ...
14127 * match.pd: ... as patterns here.
14129 2015-07-24 Richard Biener <rguenther@suse.de>
14131 * genmatch.c (struct capture_info): Add same_as field.
14132 (capture_info::capture_info): Initialize same_as.
14133 (capture_info::walk_match): Compute same_as.
14134 (capture_info::walk_result): Compute stuff for the leader.
14135 (capture_info::walk_c_expr): Likewise.
14136 (dt_simplify::gen_1): Only look at leaders when deciding
14137 to force no side-effects or emit side-effects of omitted operands.
14139 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14141 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14142 reg note to the GPR -> FPR save instructions.
14144 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14146 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14148 (s390_expand_insv): Don't generate risbg pattern for constant zero
14150 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14151 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
14154 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14156 * config/s390/s390.c (s390_reorg): Clean up handling of processors
14159 (s390_issue_rate): Likewise.
14160 (s390_sched_reorder): Likewise.
14161 (s390_sched_variable_issue): Likewise.
14162 (s390_loop_unroll_adjust): Likewise.
14163 (s390_option_override): Likewise.
14165 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14167 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14168 processor capabilities with -march=native.
14169 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14170 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
14171 (S390_TARGET_BITS_STRING): Macro to simplify specs.
14173 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14175 * config/s390/s390.c (s390_issue_rate): Handle
14176 PROCESSOR_2094_Z9_EC.
14177 (s390_option_override): Likewise.
14178 (s390_adjust_priority): Likewise.
14180 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14182 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14183 when cross compiling.
14185 2015-07-24 Richard Biener <rguenther@suse.de>
14187 * fold-const.c (maybe_canonicalize_comparison_1): Move
14188 A code CST canonicalization ...
14189 * match.pd: ... to a pattern here.
14191 2015-07-24 Jiong Wang <jiong.wang@arm.com>
14194 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14196 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14197 (HONOR_REG_ALLOC_ORDER): Define.
14199 2015-07-24 Richard Biener <rguenther@suse.de>
14201 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14202 * fold-const.c (fold_comparison): Move parameter does not
14203 alias &local simplification ...
14204 * match.pd: ... as a pattern here.
14206 2015-07-24 Richard Biener <rguenther@suse.de>
14208 * gimple-fold.c (replace_stmt_with_simplification): Special-case
14209 valueizing call operands.
14210 * gimple-match-head.c (maybe_push_res_to_seq): Take
14211 number of call arguments from ops array.
14212 (do_valueize): New function.
14213 (gimple_simplify): Return true if valueization changed
14214 any operand even if the result didn't simplify further.
14216 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14218 PR middle-end/25530
14219 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14221 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14223 PR middle-end/25529
14224 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14226 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14228 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14231 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14233 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14236 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
14238 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14239 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
14241 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14242 ms_va_list_type_node initialization.
14244 2015-07-23 Jeff Law <law@redhat.com>
14247 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14248 unable to find X NE 0 in the tables, return X as the simplified
14250 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14251 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14252 to VISISTED_BBS. */
14253 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14254 after removing the control flow statement and unnecessary edges.
14256 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
14258 * tree-pass.h (get_current_pass_name): Removed.
14260 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14262 PR rtl-optimization/64164
14263 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14264 * tree-ssa-copyrename.c: Removed.
14265 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14266 -ftree-coalesce-vars.
14267 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14268 * common.opt (ftree-copyrename): Ignore.
14269 (ftree-coalesce-inlined-vars): Likewise.
14270 * doc/invoke.texi: Remove the ignored options above.
14271 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14272 * tree-ssa-coalesce.h: ... here.
14273 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14274 headers required by it.
14275 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14276 across variables when flag_tree_coalesce_vars. Check register
14277 use and promoted modes to allow coalescing. Moved to
14278 tree-ssa-coalesce.c.
14279 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14280 with its member functions to tree-ssa-coalesce.c.
14281 (var_map_base_init): Likewise. Renamed to
14282 compute_samebase_partition_bases.
14283 (partition_view_normal): Drop want_bases parameter.
14284 (partition_view_bitmap): Likewise.
14285 * tree-ssa-live.h: Adjust declarations.
14286 * tree-ssa-coalesce.c: Include explow.h.
14287 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14288 default defs at the entry point.
14289 (dump_part_var_map): New.
14290 (compute_optimized_partition_bases): New, called by...
14291 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14292 of compute_samebase_partition_bases. Adjust.
14293 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14294 * cfgexpand.c (leader_merge): New.
14295 (get_rtl_for_parm_ssa_default_def): New.
14296 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14297 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14298 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14299 redundant MEM attr setting.
14300 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14302 (expand_one_stack_var): ... this. New wrapper to check and
14303 skip already expanded SSA partitions.
14304 (record_alignment_for_reg_var): New, factored out of...
14305 (expand_one_var): ... this.
14306 (expand_one_ssa_partition): New.
14307 (adjust_one_expanded_partition_var): New.
14308 (expand_one_register_var): Check and skip already expanded SSA
14310 (expand_used_vars): Don't create DECLs for anonymous SSA
14311 names. Expand all SSA partitions, then adjust all SSA names.
14312 (pass::execute): Replace the loops that set
14313 SA.partition_to_pseudo from partition leaders and cleared
14314 DECL_RTL for multi-location variables, and that which used to
14315 rename vars and set attrs, with one that clears DECL_RTL and
14316 checks that PARMs and RESULTs default_defs match DECL_RTL.
14317 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14318 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14319 * explow.c (promote_ssa_mode): New.
14320 * explow.h (promote_ssa_mode): Declare.
14321 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14322 * function.c: Include cfgexpand.h.
14323 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14324 (use_register_for_parm_decl): Wrapper for the above to
14325 special-case the result_ptr.
14326 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14327 (split_complex_args): Take assign_parm_data_all argument.
14328 Pass it to rtl_for_parm. Set up rtl and context for split
14330 (assign_parms_augmented_arg_list): Adjust.
14331 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14332 multiple locations. Recognize split complex args.
14333 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14334 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14335 (assign_parm_setup_block): Prefer SSA-assigned location.
14336 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14337 if stack_parm is NULL.
14338 (assign_parm_setup_stack): Prefer SSA-assigned location.
14339 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14340 rtl before testing for pointer bounds. Special-case result_ptr.
14341 (expand_function_start): Maybe reset DECL_RTL of result.
14342 Prefer SSA-assigned location for result and static chain.
14343 Factor out DECL_RESULT and SET_DECL_RTL.
14344 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14345 anonymous SSA names. Use promote_ssa_mode.
14346 (get_temp_reg): Likewise.
14347 (remove_ssa_form): Adjust.
14348 * stor-layout.c (layout_decl): Don't set mem attributes of
14350 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14351 and get its reg_usage for reg invalidation.
14352 (compute_bb_dataflow): Pass it insn.
14353 (emit_notes_in_bb): Likewise.
14355 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14358 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14360 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14361 (rs6000_emit_2insn_and): Handle dot forms.
14362 * config/rs6000/rs6000.md (and<mode>3): Adjust.
14363 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
14364 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14366 2015-07-23 Richard Biener <rguenther@suse.de>
14368 * generic-match-head.c: Include cgraph.h.
14369 * gimple-match-head.c: Likewise.
14370 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14372 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14373 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
14376 2015-07-23 Richard Biener <rguenther@suse.de>
14378 * gimple-fold.c (fold_gimple_cond): Do not require folding
14379 results to pass valid_gimple_rhs_p.
14380 * tree-cfg.h (fold_cond_expr_cond): Remove.
14381 * tree-cfg.c (fold_cond_expr_cond): Likewise.
14382 (make_edges): Do not call it.
14383 * tree-inline.c (tree_function_versioning): Likewise.
14385 2015-07-23 Tom de Vries <tom@codesourcery.com>
14387 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14388 vect_force_simple_reduction.
14389 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14390 (vect_is_simple_reduction_1): Add and handle
14391 need_wrapping_integral_overflow parameter.
14392 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14393 need_wrapping_integral_overflow parameter.
14394 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14395 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14398 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
14400 PR tree-optimization/66926,66951
14401 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14402 INNER_LOOP and fix up condition for renaming virtual operands.
14404 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14406 * combine.c (try_combine): Use std::swap instead of manually
14409 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
14411 * config/mips/i6400.md: New file.
14412 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14413 (mips64r6): Likewise.
14415 * config/mips/mips-tables.opt: Regenerate.
14416 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14417 (mips_issue_rate): Add support for i6400.
14418 (mips_multipass_dfa_lookahead): Likewise.
14419 * config/mips/mips.h (TUNE_I6400): Define.
14420 * config/mips/mips.md: Include i6400.md.
14421 (processor): Add i6400.
14422 * doc/invoke.texi (-march=@var{arch}): Add i6400.
14424 2015-07-23 Richard Biener <rguenther@suse.de>
14426 PR middle-end/66916
14427 * match.pd: Guard widen and sign-change comparison simplification
14430 2015-07-23 Richard Biener <rguenther@suse.de>
14432 PR tree-optimization/66945
14433 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
14434 ::before_dom_children): Force the propagators idea of
14435 non-executable edges to materialize, not what the folder
14438 2015-07-23 Richard Biener <rguenther@suse.de>
14440 * gimple.h (gimple_cond_make_false): Use 0 != 0.
14441 (gimple_cond_make_true): Use 1 != 0.
14443 2015-07-22 DJ Delorie <dj@redhat.com>
14445 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
14448 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
14449 (ashrhi3): Likewise.
14450 (lshrhi3): Likewise.
14451 (movhi): Take advantage of zero-extend to load small constants.
14452 (movpsi): Likewise.
14453 (and<mode>3): Likewise.
14454 (zero_extendqihi2): Likewise.
14455 (zero_extendqisi2): New.
14456 * config/msp430/constraints.md (N,O): New.
14457 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
14459 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
14462 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
14463 to enum feature_priority and feature_list.
14464 (fold_builtin_cpu): Add F_AES to enum processor_features
14465 and isa_names_table.
14467 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
14470 * config/i386/linux-common.h (MPX_SPEC): Use linker option
14471 for 64bit target only.
14473 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
14475 * config/nvptx/nvptx.c: Expand some comments.
14477 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
14479 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
14480 (cortex_a53_advsimd): ...This.
14482 2015-07-22 Richard Biener <rguenther@suse.de>
14484 * genmatch.c (expr::gen_transform): Clarify error message
14485 and display location.
14487 2015-07-22 Richard Biener <rguenther@suse.de>
14489 * genmatch.c (struct operand): Add location member.
14490 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
14492 (struct simplify): Remove match_location and result_location
14494 (elsehwere): Adjust.
14496 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
14498 * config/mips/m5100.md: New file.
14499 * config/mips/mips-cpus.def (m5100, m5101): Define.
14500 * config/mips/mips-tables.opt: Regenerate.
14501 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
14502 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
14503 -march=m5101 to -mips32r5.
14504 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
14505 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
14507 * config/mips/mips.md: Include m5100.md.
14508 (processor): Add m5100.
14509 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
14511 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
14513 * config/mips/mips-cpus.def (interaptiv): Define.
14514 * config/mips/mips-tables.opt: Regenerate.
14515 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
14517 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
14518 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
14520 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14523 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14524 (HONOR_REG_ALLOC_ORDER): Define.
14526 2015-07-22 Richard Biener <rguenther@suse.de>
14528 PR tree-optimization/66952
14529 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
14530 blocks we end up executing unconditionally reset all SSA
14531 info such as range and alignment.
14532 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
14533 * tree-ssanames.c (reset_flow_sensitive_info): New function.
14535 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14537 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
14540 2015-07-22 Richard Biener <rguenther@suse.de>
14542 * genmatch.c (parser::parse_result): Properly handle
14543 match with result operands and conditions.
14545 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14548 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14549 Add qualifier_struct_load_store_lane_index.
14550 (aarch64_types_loadstruct_lane_qualifiers): Use
14551 qualifier_struct_load_store_lane_index for lane index argument for
14553 (aarch64_types_storestruct_lane_qualifiers): Ditto.
14554 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14555 (aarch64_simd_expand_args): Add new argument describing mode of
14556 builtin. Check lane bounds for arguments with
14557 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14558 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
14559 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14560 (aarch64_simd_expand_builtin): Handle arguments with
14561 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
14562 aarch64_simd_expand_args.
14563 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
14564 vst[234]_lane with BUILTIN_VALLDIF.
14565 * config/aarch64/aarch64-simd.md:
14566 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
14567 endianness reversal on lane index.
14568 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
14569 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
14570 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
14571 (vec_store_lanesci_lane<mode>): Ditto.
14572 (vec_store_lanesxi_lane<mode>): Ditto.
14573 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
14574 reversal of lane index.
14575 (aarch64_ld3_lane<mode>): Ditto.
14576 (aarch64_ld4_lane<mode>): Ditto.
14577 (aarch64_st2_lane<mode>): Ditto.
14578 (aarch64_st3_lane<mode>): Ditto.
14579 (aarch64_st4_lane<mode>): Ditto.
14580 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
14581 to qmode. Add new mode parameter. Update uses.
14582 (__LD3_LANE_FUNC): Ditto.
14583 (__LD4_LANE_FUNC): Ditto.
14584 (__ST2_LANE_FUNC): Ditto.
14585 (__ST3_LANE_FUNC): Ditto.
14586 (__ST4_LANE_FUNC): Ditto.
14588 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
14590 * doc/invoke.texi (Language Independent Options): Rename node to
14591 Diagnostic Message Formatting Options.
14593 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
14596 * lra-remat.c (operand_to_remat): Prevent using insns with input
14597 subregs processed separately by IRA.
14599 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
14601 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
14603 (single_imm_use): Check for iterator node.
14604 (num_imm_uses): Likewise.
14605 * tree-ssa-operands.c (has_zero_uses_1): Delete.
14606 (single_imm_use_1): Check for iterator node.
14608 2015-07-21 Mike Frysinger <vapier@gentoo.org>
14609 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14611 * configure.ac: Add check for new options in isl-0.15.
14612 * config.in, configure: Rebuilt.
14613 * graphite-blocking.c: Include <isl/constraint.h>
14614 * graphite-interchange.c, graphite-poly.c: Likewise.
14615 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
14616 * graphite.c: Likewise.
14617 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
14619 * graphite-dependences.c: Include <isl/constraint.h>.
14620 (max_number_of_out_dimensions): Returns isl_stat.
14621 (extend_schedule_1): Likewise
14622 (extend_schedule): Corresponding changes.
14623 * graphite-optimize-isl.c: Include <isl/constraint.h> and
14625 (getSingleMap): Change return type of isl_stat.
14626 (optimize_isl): Conditionally use
14627 isl_options_set_schedule_serialize_sccs.
14628 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
14629 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
14631 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
14634 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
14635 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
14637 2015-07-21 Richard Biener <rguenther@suse.de>
14639 PR tree-optimization/66948
14640 * genmatch.c (capture_info::walk_match): Also recurse to
14641 captures. Properly compute expr state from captures of
14643 * match.pd: Add single-use guards to
14644 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
14646 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14648 * config/nvptx/mkoffload.c (process): Add static destructor call.
14650 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14652 PR middle-end/66915
14653 * match.pd (A - B -> A + (-B)): Don't allow folding
14654 when type if a fixed-point type.
14656 2015-07-20 DJ Delorie <dj@redhat.com>
14658 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
14659 (iorqi3_real): Likewise for set1.
14661 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
14663 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
14666 2015-07-20 Aditya Kumar <hiraditya@msn.com>
14668 * graphite-isl-ast-to-gimple.c:
14669 Refactor so that each function can access 'region'. This will help
14670 maintain a parameter rename_map within a region.
14672 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14674 * config/rs6000/rs6000.md (*lt0_disi): New.
14676 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14679 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
14680 "available letters" comment.
14681 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
14682 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
14683 and_2rld_operand): Delete.
14684 (and_operand): Adjust.
14685 (rotate_mask_operator): New.
14686 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
14687 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
14688 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
14689 extract_ME): Delete.
14690 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14691 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
14692 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
14693 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14694 rs6000_emit_2insn_and): New.
14695 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
14696 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
14697 includes_rldic_lshift_p, includes_rldicr_lshift_p,
14698 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
14699 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14700 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
14701 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
14702 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14703 rs6000_emit_2insn_and): New.
14704 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
14705 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
14707 <NOT>: Don't fall through to next case.
14708 <AND>: Handle the various rotate-and-mask cases directly.
14709 <IOR>: Always cost as one insn.
14710 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
14711 (and<mode>3): Adjust expander for the new patterns.
14712 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
14713 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
14714 (*and<mode>3_imm_dot_shifted): New.
14715 (*and<mode>3_mask): Delete, rewrite as ...
14716 (and<mode>3_mask): ... New.
14717 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
14718 (andsi3_internal0_nomc): Delete.
14719 (*andsi3_internal6): Delete.
14720 (*and<mode>3_2insn): New.
14721 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14722 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14723 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
14724 *insvdi_internal3): Delete.
14725 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
14726 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
14727 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
14728 *ior<mode>_mask): New.
14729 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
14730 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14731 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14732 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14734 (ashr<mode>3): Delete expander.
14735 (*ashr<mode>3): Rename to ...
14736 (ashr<mode>3): ... This.
14737 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
14738 (*rotldi3_internal4, *rotldi3_internal5 and split,
14739 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
14740 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
14741 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
14742 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
14743 (splitter for loading a mask): Adjust.
14744 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
14746 2015-07-20 Marek Polacek <polacek@redhat.com>
14748 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
14749 output_add_clobbers, output_added_clobbers_hard_reg_p,
14750 gen_rtx_scratch): Remove declarations.
14752 2015-07-20 Marek Polacek <polacek@redhat.com>
14755 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
14757 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14759 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
14760 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
14762 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14764 * combine.c (combine_simplify_rtx): Move simplification step
14765 before various transformations/substitutions.
14767 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
14769 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
14770 (struct int_traits): Likewise.
14772 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14774 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
14775 function to vmsdbgout_function_decl.
14777 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
14780 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
14781 from misaligned positions.
14782 (ix86_expand_pinsr): Reject insertions to misaligned positions.
14784 2015-07-18 Sebastian Pop <s.pop@samsung.com>
14786 PR middle-end/46851
14787 PR middle-end/60340
14788 * Makefile.in: Removed omega.o.
14789 * common.opt: Document flag fcheck-data-deps as deprecated.
14790 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
14791 its associated params: omega-max-vars, omega-max-geqs,
14792 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
14793 omega-max-keys, omega-eliminate-redundant-constraints.
14794 * doc/loop.texi: Remove all the section on Omega.
14795 * graphite-blocking.c: Include missing params.h: it used to be
14796 included through tree-data-ref.h and omega.h.
14797 * graphite-isl-ast-to-gimple.c: Same.
14798 * graphite-optimize-isl.c: Same.
14799 * graphite-sese-to-poly.c: Same.
14800 * graphite.c: Same.
14803 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
14804 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
14805 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
14806 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
14807 * passes.def: Remove pass_check_data_deps.
14808 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
14809 (dump_conflict_function): Same.
14810 (dump_subscript): Same.
14811 (print_direction_vector): Same.
14812 (print_dir_vectors): Same.
14813 (print_lambda_vector): Same.
14814 (print_dist_vectors): Same.
14815 (dump_data_dependence_relation): Same.
14816 (dump_data_dependence_relations): Same.
14817 (dump_dist_dir_vectors): Same.
14819 (init_omega_eq_with_af): Removed.
14820 (omega_extract_distance_vectors): Removed.
14821 (omega_setup_subscript): Removed.
14822 (init_omega_for_ddr_1): Removed.
14823 (init_omega_for_ddr): Removed.
14824 (ddr_consistent_p): Removed.
14825 (compute_affine_dependence): Do not use omega to check data
14827 (compute_data_dependences_for_bb): Removed.
14828 (analyze_all_data_dependences): Removed.
14829 (tree_check_data_deps): Removed.
14830 * tree-data-ref.h: Do not include omega.h.
14831 (compute_data_dependences_for_bb): Removed.
14832 (tree_check_data_deps): Removed.
14833 * tree-ssa-loop.c (pass_check_data_deps): Removed.
14834 (make_pass_check_data_deps): Removed.
14835 * tree-ssa-phiopt.c: Include params.h.
14836 * tree-vect-data-refs.c: Same.
14837 * tree-vect-slp.c: Same.
14839 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
14841 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
14842 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
14843 (mem->fpreg splitters): Ditto.
14844 (general_operand->nonimmediate_operand splitter): Use explicit modes.
14845 Disable DFmode for TARGET_64BIT.
14847 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
14850 * config/i386/i386.c (ix86_expand_prologue): Replicate static
14851 chain on the stack.
14853 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14855 * config/nvptx/mkoffload.c (process): Constify host data.
14856 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14857 Constify host data.
14858 (generate_host_descr_file): Likewise.
14860 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
14861 Sebastian Pop <s.pop@samsung.com>
14863 PR middle-end/61929
14864 * graphite-dependences.c (add_pdr_constraints): Renamed
14865 pdr->extent to pdr->subscript_sizes.
14866 * graphite-interchange.c (build_linearized_memory_access): Add
14867 back all gcc_assert's that the "isl_int to isl_val conversion"
14868 patch has removed. Refactored.
14869 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
14870 * graphite-poly.c (new_poly_dr): Same.
14871 (free_poly_dr): Same.
14872 * graphite-poly.h (struct poly_dr): Same.
14873 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
14874 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
14875 * graphite-scop-detection.h: Fix space.
14876 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
14877 back all gcc_assert's removed by a previous patch.
14878 (wrap): Remove the_isl_ctx global variable that the same patch has
14880 (build_loop_iteration_domains): Same.
14881 (add_param_constraints): Same.
14882 (pdr_add_data_dimensions): Same. Refactored.
14883 (build_poly_dr): Renamed extent to subscript_sizes.
14885 2015-07-17 Marek Polacek <polacek@redhat.com>
14887 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
14888 * match.pd: ... here.
14890 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14892 * config/nvptx/mkoffload.c (process): Constify target data.
14893 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14894 Constify target data.
14895 (generate_target_offloadend_file): Likewise.
14897 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14899 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
14900 to allow renaming of PHI arguments on edges incoming from outer
14901 loop header, add corresponding check before start PHI iterator.
14902 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
14903 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
14904 with true force_vectorize. Set-up dominator for outer loop too.
14905 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
14906 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
14907 was marked with force_vectorize and has restricted cfg.
14908 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
14910 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14911 do peeling for outer loops.
14913 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
14914 Matthias Klose <doko@ubuntu.com>
14916 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
14917 build-sysroot, sysroot from the `Miscenalleous configure options' to
14918 the `Directories' section and strip trailing `/' from with_sysroot.
14919 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
14920 * configure: Regenerated.
14922 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
14925 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
14926 (TARGET_HARD_DF_REGS): Ditto.
14927 (TARGET_HARD_XF_REGS): Ditto.
14928 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
14929 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
14930 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
14931 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
14932 (*movsf_internal): Add alternatives 16 and 17. Enable
14933 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
14935 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
14937 PR rtl-optimization/66891
14938 * calls.c (expand_call): Wrap precompute_register_parameters with
14939 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
14941 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14943 * config/nvptx/mkoffload.c (process): Constify mapping variables.
14944 Define target data struct and initialize it.
14946 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
14948 PR rtl-optimization/66626
14949 * ira.h (emit-rtl.h): Include.
14950 (non_spilled_static_chain_regno_p): New.
14951 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
14952 unless it is non spilled static chain pseudo.
14953 (assign_hard_rego): Spill memory profitable allocno unless it is
14954 non spilled static chain pseudo.
14955 (allocno_spill_priority_compare): Put non spilled static chain
14956 pseudo at the end of sorted array.
14957 (improve_allocation): Do nothing if we have static chain and
14959 (allocno__priority_compare_func): Put non spilled static chain
14960 pseudo at the beginning of sorted array.
14961 (move_spill_restore): Ignore non spilled static chain pseudo.
14962 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
14963 to non spilled static chain pseudo.
14964 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
14965 pseudo at the beginning of sorted array.
14966 (spill_for): Spill non spilled static chain pseudo last.
14967 * lra-constraints.c (lra_constraints): Remove static chain pseudo
14968 check for equivalence.
14970 2015-07-16 Martin Liska <mliska@suse.cz>
14973 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
14974 dst_ctx if it does not exist.
14976 2015-07-16 Martin Liska <mliska@suse.cz>
14978 * hash-set.h (remove): New function.
14979 (iterator): New iteration class for hash_set.
14981 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14983 * genattrtab.c (make_canonical): Add a file_location parameter.
14984 Use fatal_at rather than fatal.
14985 (get_attr_value): Likewise. Update call to make_canonical.
14986 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
14987 (make_internal_attr): Update calls accordingly.
14989 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14991 * read-md.h (message_with_line, error_with_line): Delete.
14992 * read-md.c (message_with_line, error_with_line): Delete.
14993 * gensupport.h: Include read-md.h.
14994 (md_rtx_info): New structure.
14995 (read_md_rtx): Use it. Return a bool success value.
14996 * gensupport.c (read_md_rtx): Likewise.
14997 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
14998 (main): Update after interface changes.
14999 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15000 (main): Update after interface changes.
15001 * genattrtab.c (insn_code_number): Delete.
15002 (optimize_attrs): Add a max_insn_code parameter and use it instead
15003 of insn_code_number.
15004 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15005 Use *_at rather than *_with_line functions.
15006 (gen_insn): Likewise.
15007 (gen_delay): Likewise.
15008 (gen_insn_reserv): Likewise.
15009 (gen_bypass): Take an md_rtx_info rather than an rtx.
15010 (main): Update after interface changes. Use a local max_insn_code
15011 variable instead of insn_code_number.
15012 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15013 an rtx. Use fatal_at rather than fatal.
15014 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15015 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15016 (gen_absence_set, gen_final_absence_set, gen_automaton)
15017 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15018 (main): Update after interface changes.
15019 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15021 (main): Update after interface changes.
15022 * genconditions.c (main): Use new read_md_rtx interface.
15023 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15024 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15025 (main): Update after interface changes.
15026 * genemit.c (insn_code_number, insn_index_number): Delete.
15027 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15028 Use fatal_at rather than fatal.
15029 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
15031 (gen_split): Likewise.
15032 (main): Update after interface changes.
15033 * genextract.c (line_no): Delete.
15034 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15035 Update call to walk_rtx.
15036 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
15037 rather than message_with_line.
15038 (walk_rtx): Add an md_rtx_info argument. Update call to
15039 VEC_safe_set_locstr.
15040 (main): Update after interface changes.
15041 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15042 and lineno. Use error_at rather than separate message_with_line
15043 calls and have_error assignments.
15044 (main): Update after interface changes.
15045 * genmddump.c (main): Use new read_md_rtx interface.
15046 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15047 (main): Update after interface changes.
15048 * genoutput.c (next_code_number): Delete.
15049 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15050 (gen_peephole, gen_expand, gen_split): Likewise.
15051 (note_constraint): Likewise. Use *_at rather than *_with_line
15053 (main): Update after interface changes.
15054 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15056 (main): Update after interface changes.
15057 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15058 than an rtx and lineno.
15059 (process_define_constraint): Likewise.
15060 (process_define_register_constraint): Likewise.
15061 (main): Update after interface changes.
15062 * genrecog.c (next_insn_code, pattern_lineno): Delete.
15063 (validate_pattern): Replace top-level rtx with an md_rtx_info.
15064 Use *_at rather than *_with_line functions.
15065 (match_pattern_2): Likewise.
15066 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15067 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15068 Use *_at rather than *_with_line functions.
15069 * gentarget-def.c (add_insn): New function.
15070 (main): Use it. Use new read_md_rtx interface.
15072 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15074 * gensupport.h (compute_test_codes): Take a file_location rather
15075 than a line number.
15076 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
15077 rather than *_with_line functions.
15078 (process_define_predicate): Update call to compute_test_codes.
15079 * genpreds.c (validate_exp): Take a file_location rather than a
15080 line number. Use *_at functions rather than *_with_line functions.
15081 (process_define_predicate): Update call to validate_exp.
15082 (constraint_data): Replace lineno field with a file_location.
15083 (add_constraint): Take a file_location rather than a line number.
15084 Use *_at functions rather than *_with_line functions. Fix error
15085 message for address constraints. Update after changes to
15086 validate_exp, constraint_data and compute_test_codes.
15087 (process_define_constraint): Update accordingly.
15088 (process_define_register_constraint): Likewise.
15090 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15092 * genoutput.c (data): Use a file_location to record the source
15095 (idata, idata_end): Remove initialization.
15096 (constraint_data): Replace lineno with a file_location.
15097 (output_insn_data): Update after changes to data.
15098 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15099 (scan_operands): Likewise, using *_at rather than *_with_line
15101 (process_template): Likewise.
15102 (validate_insn_alternatives): Likewise.
15103 (validate_insn_operands): Likewise.
15104 (validate_optab_operands): Likewise.
15105 (init_insn_for_nothing): Initialize idata and idata_end.
15106 (note_constraint): Update after changes to constraint_data,
15107 using at rather than with_line functions.
15108 (mdep_constraint_len): Take a file_location rather than a
15109 line number. Use at rather than with_line functions.
15111 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15113 * read-md.h (fatal_at): Declare.
15114 * read-md.c (fatal_at): New function.
15115 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15116 to record the source position.
15117 (check_attr_test): Take a file_location instead of a line number.
15118 Use fatal_at instead of fatal.
15119 (check_attr_value): Update after above changes, using "at"
15120 rather than "with_line" reporting functions.
15121 (convert_set_attr_alternative): Likewise.
15122 (gen_attr): Likewise.
15123 (check_defs): Likewise. Don't assign to read_md_filename.
15124 (gen_insn): Update initialization after above changes.
15125 (gen_delay): Likewise.
15126 (write_insn_cases): Print the filename for a define_peephole.
15127 (gen_insn_reserv): Take a line number as argument and update
15128 the call to check_attr_test.
15129 (main): Pass a line number to gen_insn_reserv.
15131 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15133 * read-md.h (file_location): New structure.
15134 (directive_handler_t): Take a file_location rather than a line number.
15135 (message_at, error_at): Declare.
15136 (read_skip_construct): Delete.
15137 * read-md.c (message_with_line_1): Replace with...
15138 (message_at_1): ...this new function.
15139 (message_at, error_at): New functions.
15140 (message_with_line, error_with_line): Update to use message_at_1.
15141 (handle_enum): Take a file_location rather than a line number
15142 and use error_at for error reporting.
15143 (handle_include): Likewise.
15144 (read_skip_construct): Likewise. Make static.
15145 (handle_file): Update after above changes. Pass a file_location
15146 rather than a line number to handle_directive.
15147 * gensupport.c (queue_elem): Replace separate filename and lineno
15148 with a file_location.
15149 (queue_pattern): Replace filename and lineno arguments with a
15150 file_location. Update after change to queue_elem.
15151 (process_define_predicate): Replace lineno argument with a
15152 file_location and use error_at for error reporting. Update
15153 after above changes.
15154 (process_rtx): Likewise.
15155 (subst_pattern_match): Likewise.
15156 (get_alternatives_number): Likewise.
15157 (alter_predicate_for_insn): Likewise.
15158 (rtx_handle_directive): Likewise.
15159 (is_predicable): Update after above changes, using error_at rather
15160 than error_with_line.
15161 (has_subst_attribute): Likewise.
15162 (identify_predicable_attribute): Likewise.
15163 (alter_attrs_for_subst_insn): Likewise.
15164 (process_one_cond_exec): Likewise.
15165 (process_substs_on_one_elem): Likewise.
15166 (process_define_subst): Likewise.
15167 (check_define_attr_duplicates): Likewise.
15168 (read_md_rtx): Update after change to queue_elem.
15170 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15172 * genoutput.c (next_index_number): Delete.
15173 (data): Remove index_number.
15174 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15175 (main): Remove manipulation of next_index_number.
15177 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15179 * genattrtab.c (check_attr_value): Remove handling of null attrs.
15180 (make_canonical): Likewise.
15182 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
15184 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15185 instead of adjust_address_nv.
15186 (restore_stack_nonlocal): Likewise.
15187 (nonlocal_goto): Likewise.
15189 2015-07-16 Tom de Vries <tom@codesourcery.com>
15191 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15192 not have a corresponding loop header phi.
15194 2015-07-16 Tom de Vries <tom@codesourcery.com>
15196 * tree-parloops.c (create_loads_for_reductions): Handle case that
15197 reduction is unused.
15199 2015-07-16 Richard Biener <rguenther@suse.de>
15201 PR tree-optimization/66894
15202 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15203 about deriving NE_EXPR from truncated values.
15205 2015-07-16 Martin Liska <mliska@suse.cz>
15208 (object_allocator): Add new class.
15209 (pool_allocator::initialize): Use the underlying class.
15210 (pool_allocator::allocate): Likewise.
15211 (pool_allocator::remove): Likewise.
15212 (operator new): A new generic allocator.
15213 * asan.c (struct asan_mem_ref): Remove unused members.
15214 (asan_mem_ref_new): Replace new operator with
15215 object_allocator::allocate.
15216 (free_mem_ref_resources): Change deallocation.
15217 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15218 with object_allocator.
15219 * config/sh/sh.c (add_constant): Replace new operator with
15220 object_allocator::allocate.
15221 (sh_reorg): Change call to a release method.
15222 * cselib.c (struct elt_list): Remove unused members.
15223 (new_elt_list): Replace new operator with
15224 object_allocator::allocate.
15225 (new_elt_loc_list): Likewise.
15226 (new_cselib_val): Likewise.
15227 (unchain_one_elt_list): Change delete operator with remove method.
15228 (unchain_one_elt_loc_list): Likewise.
15229 (unchain_one_value): Likewise.
15230 (cselib_finish): Release newly added static allocators.
15231 * cselib.h (struct cselib_val): Remove unused members.
15232 (struct elt_loc_list): Likewise.
15233 * df-problems.c (df_chain_alloc): Replace pool_allocator with
15235 * df-scan.c (struct df_scan_problem_data): Likewise.
15236 (df_scan_alloc): Likewise.
15237 * df.h (struct dataflow): Likewise.
15238 * dse.c (struct read_info_type): Likewise.
15239 (struct insn_info_type): Likewise.
15240 (struct dse_bb_info_type): Likewise.
15241 (struct group_info): Likewise.
15242 (struct deferred_change): Likewise.
15243 (get_group_info): Likewise.
15244 (delete_dead_store_insn): Likewise.
15245 (free_read_records): Likewise.
15246 (replace_read): Likewise.
15247 (check_mem_read_rtx): Likewise.
15248 (scan_insn): Likewise.
15249 (dse_step1): Likewise.
15250 (dse_step7): Likewise.
15251 * et-forest.c (struct et_occ): Remove unused members.
15252 (et_new_occ): Use allocate instead of new operator.
15253 (et_new_tree): Likewise.
15254 (et_free_tree): Call release method explicitly.
15255 (et_free_tree_force): Likewise.
15256 (et_free_pools): Likewise.
15257 (et_split): Use remove instead of delete operator.
15258 * et-forest.h (struct et_node): Remove unused members.
15259 * ipa-cp.c: Change pool_allocator to object_allocator.
15260 * ipa-inline-analysis.c: Likewise.
15261 * ipa-profile.c: Likewise.
15262 * ipa-prop.c: Likewise.
15263 * ipa-prop.h: Likewise.
15264 * ira-build.c (initiate_cost_vectors): Cast return value.
15265 (ira_allocate_cost_vector): Likewise.
15266 * ira-color.c (struct update_cost_record): Remove unused members.
15267 * lra-int.h (struct lra_live_range): Likewise.
15268 (struct lra_copy): Likewise.
15269 (struct lra_insn_reg): Likewise.
15270 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15271 * lra.c (new_insn_reg): Replace new operator with allocate method.
15272 (free_insn_regs): Same for operator delete.
15273 (finish_insn_regs): Release new static allocator.
15274 (finish_insn_recog_data): Likewise.
15275 (lra_free_copies): Replace delete operator with remove method.
15276 (lra_create_copy): Replace operator new with allocate method.
15277 (invalidate_insn_data_regno_info): Same for remove method.
15278 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15279 (free_debug_insn_changes): Replace delete operator with remove method.
15280 (replace_oldest_value_reg): Replace operator new with allocate method.
15281 (pass_cprop_hardreg::execute): Release new static variable.
15282 * sched-deps.c (sched_deps_init): Change pool_allocator to
15284 * sel-sched-ir.c: Likewise.
15285 * sel-sched-ir.h: Likewise.
15286 * stmt.c (expand_case): Likewise.
15287 (expand_sjlj_dispatch_table): Likewise.
15288 * tree-sra.c (struct access): Remove unused members.
15289 (struct assign_link): Likewise.
15290 (sra_deinitialize): Release newly added static pools.
15291 (create_access_1):Replace operator new with allocate method.
15292 (build_accesses_from_assign): Likewise.
15293 (create_artificial_child_access): Likewise.
15294 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15295 pool_allocator to object_allocator.
15296 * tree-ssa-pre.c: Likewise.
15297 * tree-ssa-reassoc.c: Likewise.
15298 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15299 * tree-ssa-strlen.c: Likewise.
15300 * tree-ssa-structalias.c: Likewise.
15301 * var-tracking.c (onepart_pool_allocate): New function.
15302 (unshare_variable): Use the newly added function.
15303 (variable_merge_over_cur): Likewise.
15304 (variable_from_dropped): Likewise.
15305 (variable_was_changed): Likewise.
15306 (set_slot_part): Likewise.
15307 (emit_notes_for_differences_1): Likewise.
15308 (vt_finalize): Release newly added static pools.
15310 2015-07-16 Martin Jambor <mjambor@suse.cz>
15312 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
15313 all uses. Fix two typos in its general comment.
15314 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
15316 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
15318 * config/i386/linux-common.h (LINK_MPX): New.
15319 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15320 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15321 indicating '-z bndplt' support by linker.
15322 * configure: Regenerate.
15323 * config.in: Regenerate.
15325 2015-07-16 Richard Biener <rguenther@suse.de>
15327 * fold-const.c (fold_widened_comparison): Remove.
15328 (fold_sign_changed_comparison): Likewise.
15329 (fold_comparison): Move widened and sign-changed comparison
15331 * match.pd: ... to patterns here.
15332 * generic-match-head.c: Include target.h.
15333 * gimple-match-head.c: Likewise.
15335 2015-07-16 Richard Biener <rguenther@suse.de>
15337 * tree-ssa-dom.c (dom_valueize): New function.
15338 (record_temporary_equivalences): Also record equivalences
15339 for dominating stmts that have uses of equivalences we are
15342 2015-07-16 Bin Cheng <bin.cheng@arm.com>
15344 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15345 add_autoinc_candidates.
15346 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15347 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15348 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15349 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15351 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15352 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15353 Remove parameter struct iv*. Call add_autoinc_candidates here.
15354 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15355 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15357 (find_iv_candidates): Call new functions.
15359 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
15361 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15362 uninitialized-variable warning.
15364 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
15367 * config/sh/sh.md (movdi): Split simple reg move to two movsi
15368 when the destination is R0.
15370 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
15373 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15374 * config/i386/i386.c (ix86_expand_pextr): New function.
15375 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
15376 for non-lowpart subregs.
15377 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15378 (insv<mode>): Use SWI248 mode iterator.
15379 (insv<mode>_1): Ditto.
15381 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15382 Sebastian Pop <s.pop@samsung.com>
15384 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15385 iterator to use_stmt.
15387 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15388 Sebastian Pop <s.pop@samsung.com>
15390 * graphite-scop-detection.c (build_scops_1): Discard scops for
15393 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15394 Sebastian Pop <s.pop@samsung.com>
15396 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15397 case of a return statement in scop.
15399 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15400 Sebastian Pop <s.pop@samsung.com>
15402 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15403 INTEGER_TYPE parameters.
15404 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15405 VECTOR_CST in scan_tree_for_params.
15406 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15408 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15410 * gimple-pretty-print.h: Don't include pretty-print.h.
15411 * tree-streamer.h: Don't include lto-streamer.h.
15412 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15413 * gimple-streamer-in.c: Remove redundant includes.
15414 * gimple-streamer-out.c: Likewise.
15415 * ipa-devirt.c: Likewise.
15416 * ipa-icf.c: Likewise.
15417 * ipa-inline-analysis.c: Likewise.
15418 * ipa-polymorphic-call.c: Likewise.
15419 * ipa-profile.c: Likewise.
15420 * ipa-prop.c: Likewise.
15421 * ipa-pure-const.c: Likewise.
15422 * lto-cgraph.c: Likewise.
15423 * lto-streamer-in.c: Likewise.
15424 * lto-streamer-out.c: Likewise.
15425 * lto-streamer.c: Likewise.
15426 * tree-streamer-in.c: Likewise.
15427 * tree-streamer-out.c: Likewise.
15428 * tree-streamer.c: Likewise.
15430 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15432 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
15434 * opts.c: Remove multiline #include comment.
15436 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
15438 * config/nvptx/mkoffload.c (process): Add C++ protection to
15441 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15444 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
15445 null before IEEE 128-bit floating point support patch.
15447 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15449 * simplify-rtx.c (simplify_ternary_operation): Add simplification
15450 for (!c) != {0,...,0} ? a : b for vector modes.
15452 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
15453 Martin Jambor <mjambor@suse.cz>
15455 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
15456 struct func_body_info* instead of struct ipa_node_params*, expecting
15457 fbi->info to be filled in. Replace throughout. Adjust call to
15458 ipa_load_from_parm_agg.
15459 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
15460 instead of struct ipa_node_params*. Adjust calls to other functions
15461 so that they pass either fbi or fbi->info.
15462 (set_switch_stmt_execution_predicate): Likewise.
15463 (will_be_nonconstant_predicate): Likewise.
15464 (compute_bb_predicates): Likewise.
15465 (estimate_function_body_sizes): Move asserts earlier. Fill in
15466 struct func_body_info, replace parms_info with fbi.info. Adjust
15467 calls to functions that now accept struct func_body_info.
15468 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
15469 (struct func_body_info): Likewise.
15470 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
15471 remove static. Adjust callers.
15472 (ipa_load_from_parm_agg): Remove.
15473 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
15474 (func_body_info): Likewise.
15475 (ipa_load_from_parm_agg): Adjust prototype.
15477 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15479 * gensupport.c (rtx_handle_directive): Adjust.
15480 * read-rtl.c (apply_iterators): Take vector to add rtxs to
15481 instead of expr list rtx.
15482 (add_define_attr_for_define_subst): Likewise.
15483 (add_define_subst_attr): Likewise.
15484 (read_subst_mapping): Likewise.
15485 (read_rtx): Likewise.
15486 * rtl.h (read_rtx): Adjust.
15488 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15490 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
15492 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15495 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
15496 (*tls_local_dynamic_base_64_<mode>): Ditto.
15497 (*tls_local_dynamic_base_64_largepic): Ditto.
15498 (tls_global_dynamic_64_<mode>): Update expander pattern.
15499 (tls_local_dynamic_base_64_<mode>): Ditto.
15501 2015-07-15 Richard Biener <rguenther@suse.de>
15503 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
15504 and bool_var == 1 -> bool_var simplifications ...
15505 * match.pd: ... to patterns here. Factor out negate_expr_p
15506 cases from the A - B -> A + (-B) patterns as negate_expr_p
15507 predicate and add a -(A + B) -> (-B) - A pattern.
15509 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15511 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
15513 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
15514 Robert Suchanek <robert.suchanek@imgtec.com>
15516 * config/mips/mips.c (mips_int_mask): New enum.
15517 (mips_shadow_set): Likewise.
15518 (int_mask): New variable.
15519 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
15520 (machine_function): Add int_mask and use_shadow_register_set.
15521 (mips_attribute_table): Add attribute handlers for interrupt and
15522 use_shadow_register_set.
15523 (mips_interrupt_mask): New static function.
15524 (mips_handle_interrupt_attr): Likewise.
15525 (mips_handle_use_shadow_register_set_attr): Likewise.
15526 (mips_use_shadow_register_set): Change return type to enum
15527 mips_shadow_set. Add argument handling for use_shadow_register_set
15529 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
15530 compare with mips_shadow_set enum.
15531 (mips_compute_frame_info): Add interrupt mask and
15532 use_shadow_register_set to per-function information structure.
15533 Add a stack slot for EPC unconditionally.
15534 (mips_expand_prologue): Compare use_shadow_register_set value
15535 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
15536 masked interrupt register but in EIC mode use K0 and save Cause in K0.
15537 EPC saved and restored unconditionally. Use PMODE_INSN macro when
15538 copying the stack pointer from the shadow register set.
15539 * config/mips/mips.h (SR_IM0): New define.
15540 * config/mips/mips.md (mips_rdpgpr): Rename to...
15541 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
15542 * doc/extend.texi (Declaring Attributes of Functions): Document
15543 optional arguments for interrupt and use_shadow_register_set
15546 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15548 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
15549 interrupt attribute.
15550 (mips_expand_prologue): Disable the floating point unit in an ISR.
15551 * config/mips/mips.h (SR_COP1): New define.
15553 2015-07-15 Richard Biener <rguenther@suse.de>
15555 * genmatch.c (parser::peek, parser::peek_ident): Add argument
15556 to tell how many tokens to peek ahead (default 1).
15557 (parser::eat_token, parser::eat_ident): Return token consumed.
15558 (parser::parse_result): Parse new switch statement.
15559 * match.pd: Use case statements where appropriate.
15561 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15563 PR rtl-optimization/58066
15564 * calls.c (expand_call): Precompute register parameters before stack
15565 alignment is performed.
15567 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15569 PR rtl-optimization/66838
15570 * postreload.c (reload_cse_move2add): Also process
15571 CALL_INSN_FUNCTION_USAGE when resetting information of
15572 call-clobbered registers.
15574 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15575 Cesar Philippidis <cesar@codesourcery.com>
15576 Chung-Lin Tang <cltang@codesourcery.com>
15578 * config/nios2/constraints.md (U, v): New constraints.
15579 * config/nios2/predicates.md (rdprs_dcache_operand): New.
15580 (ldstex_memory_operand): New.
15581 * config/nios2/sync.md: New file.
15582 * config/nios2/nios2.md (unspecv): Add new builtin function
15584 (rdprs, flushd, flushda, wrpie, eni): New patterns.
15585 (top-level): Include sync.md.
15586 * config/nios2/nios2.c (N2_FTYPES): Add function types for
15588 (N2_BUILTINS): Add arch field setting, add new builtins.
15589 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
15591 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
15592 Also handle ldex/stex/ldsex/stsex builtins.
15593 (nios2_expand_rdprs_builtin): New function.
15594 (nios2_expand_cache_builtin): New function.
15595 (nios2_expand_wrpie_builtin): New function.
15596 (nios2_expand_eni_builtin): New function.
15597 (nios2_expand_builtin): Add arch field handling and new builtin
15599 * doc/extend.texi (Altera Nios II Built-in Functions): Document
15601 * doc/md.texi (Machine Constraints): Document U and v constraints.
15603 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15604 Cesar Philippidis <cesar@codesourcery.com>
15605 Chung-Lin Tang <cltang@codesourcery.com>
15607 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
15608 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
15609 callee_save_reg_size and uses_anonymous_args fields.
15610 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
15611 (nios2_create_cfa_notes): New function.
15612 (nios2_adjust_stack): New function for adjusting stack.
15613 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
15614 Use nios2_adjust_stack.
15615 (nios2_expand_epilogue): Likewise.
15616 (nios2_expand_return): New function.
15617 (nios2_can_use_return_insn): Update for CDX pop.n usage.
15618 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
15619 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
15620 * config/nios2/nios2.md (return): Use nios2_expand_return.
15622 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15623 Cesar Philippidis <cesar@codesourcery.com>
15624 Chung-Lin Tang <cltang@codesourcery.com>
15626 * config/nios2/predicates.md (pop_operation): New.
15627 (ldwm_operation, stwm_operation): New.
15628 (nios2_hard_register_operand): New.
15629 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
15630 (ldstwm_operation_p): Declare.
15631 (gen_ldstwm_peep): Declare.
15632 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
15633 (base_reg_adjustment_p): New.
15634 (pop_operation_p): New.
15635 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
15636 (nios2_ldstwm_regset_p): New.
15637 (ldstwm_operation_p): New.
15639 (nios2_ldst_parallel): New.
15640 (struct ldswm_operand): Declare.
15641 (compare_ldstwm_operands): New.
15642 (can_use_cdx_ldstw): New.
15643 (gen_ldstwm_peep): New.
15644 * config/nios2/nios2-ldstwm.sml: New.
15645 * config/nios2/nios2.md: Include ldstwm.md.
15646 * config/nios2/ldstwm.md: Generated.
15648 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15649 Cesar Philippidis <cesar@codesourcery.com>
15650 Chung-Lin Tang <cltang@codesourcery.com>
15652 * config/nios2/nios2.h (LABEL_ALIGN): Define.
15653 (REG_ALLOC_ORDER): Define.
15654 (ADJUST_REG_ALLOC_ORDER): Define.
15655 (HONOR_REG_ALLOC_ORDER): Define.
15656 (CDX_REG_P): Define.
15657 (ANDCLEAR_INT): Define.
15658 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
15659 (nios2_label_align): Declare.
15660 (nios2_cdx_narrow_form_p): Declare.
15661 (nios2_adjust_reg_alloc_order): Declare.
15662 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
15664 (nios2_large_unspec_reloc_p): New function, split from...
15665 (nios2_legitimate_pic_operand_p): ...here.
15666 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
15667 (nios2_print_operand_punct_valid_p): New.
15668 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
15669 (split_mem_address): New.
15670 (split_alu_insn): New.
15672 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
15673 (enum nios2_add_insn_kind): New.
15674 (nios2_add_insn_names, nios2_add_insn_narrow): New.
15675 (nios2_add_insn_classify): New.
15676 (nios2_add_insn_asm): New.
15677 (nios2_cdx_narrow_form_p): New.
15678 (label_align, min_labelno, max_labelno): New.
15679 (nios2_reorg): New.
15680 (nios2_label_align): New.
15681 (nios2_adjust_reg_alloc_order): New.
15682 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15683 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15684 * config/nios2/constraints.md (P): New constraint.
15685 * config/nios2/predicates.md (const_and_operand): New.
15686 (and_operand): New.
15687 (stack_memory_operand): New.
15688 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
15689 (length): Update to use nios2_cdx_narrow_form_p().
15690 (type): Add new insn type values.
15691 (control, alu, st, ld, shift): Update insn reservations with
15692 new insn type values.
15693 (*high, *lo_sum): Define new insn patterns for constant generation.
15694 (movqi_internal, movhi_internal, movsi_internal): Reduce
15695 alternatives, update asm template to handle CDX variants, update
15697 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
15698 template, update type attributes.
15699 (extendhisi2, extendqi<mode>2): Likewise.
15700 (addsi3): Change to use function for asm string.
15701 (subsi3): Add CDX notation to asm template, update type attributes.
15702 (negsi3, one_cmplsi3): Likewise.
15703 (andsi3): New pattern, specialized from logical patterns.
15704 (<code>si3): Remove and case, combine alternatives, update asm
15706 (<shift_op>si3): Add CDX notation, update type attributes.
15707 (rotrsi3): Update type attribute.
15708 (*merge, extzv, insv): New insn patterns.
15709 (return): Change to define_expand.
15710 (simple_return): Add CDX notation, update type attributes.
15711 (indirect_jump): Add CDX notation.
15712 (jump): Update asm cases, update length attribute expression.
15713 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
15714 (nios2_cbranch): Update asm cases and length attribute expression
15715 to handle CDX variants.
15716 (nios2_cmp<code>): Update asm template.
15717 (nop): Add CDX notation, update type attributes.
15718 (trap): Add CDX notation.
15719 (ctrapsi4): Update asm cases and length attribute expression to
15720 handle CDX variant.
15721 * doc/md.texi (Machine Constraints): Document P constraint.
15723 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15724 Cesar Philippidis <cesar@codesourcery.com>
15725 Chung-Lin Tang <cltang@codesourcery.com>
15727 * config/nios2/nios2.h (SMALL_INT12): New macro.
15728 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
15729 (nios2_valid_addr_expr_p): Use it.
15730 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
15731 with implicit "io" instructions on R2.
15732 * config/nios2/constraints.md (w): New constraint.
15733 * config/nios2/predicates.md (ldstio_memory_operand): New.
15734 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
15735 operand predicate and constraint.
15736 (ld<bh>io_signed, st<bhw>io>): Likewise.
15737 * doc/md.texi (Machine Constraints): Document w constraint.
15739 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15740 Cesar Philippidis <cesar@codesourcery.com>
15741 Chung-Lin Tang <cltang@codesourcery.com>
15743 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
15744 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
15745 Nios II architecture level.
15746 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
15747 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
15748 (OPTION_DEFAULT_SPECS): Define.
15749 (ASM_SPEC): Add -march= spec strings.
15750 * config/nios2/nios2.c (nios2_option_override): Check for
15751 conflicts involving new options.
15752 * config.gcc (nios2*-*-*): Support --with-arch=.
15753 * doc/invoke.texi (Option Summary, Nios II Options): Document
15754 -march=, -mbmx, and -mcdx.
15756 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
15758 PR rtl-optimization/66626
15759 * lra-constraints.c (lra_constraints): Prevent equivalence
15760 substitution for static chain pseudo in functions with nonlocal
15763 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15765 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
15766 (nios2_emit_stack_limit_check): Add size parameter. Handle
15767 -fstack-limit-symbol as well as -fstack-limit-register.
15768 (nios2_expand_prologue): Emit only a single stack limit check,
15769 even if multiple stack adjustments are required.
15770 (nios2_option_override): Diagnose unsupported combination of -fpic
15771 and -stack-limit-symbol.
15773 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
15775 * Makefile.in (top_srcdir): New.
15776 * configure.ac: Use AM_ZLIB.
15777 * configure: Regeneated.
15779 2015-07-14 Matthias Klose <doko@ubuntu.com>
15782 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
15784 2015-07-14 Richard Biener <rguenther@suse.de>
15786 PR tree-optimization/66863
15787 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
15788 what we record for conversion use stmt lhs inequalities.
15790 2015-07-14 Richard Biener <rguenther@suse.de>
15792 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
15793 (decision_tree::gen_gimple): Likewise.
15795 2015-07-14 Tom de Vries <tom@codesourcery.com>
15797 * gcc.c (greater_than_spec_func): Declare forward.
15798 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
15799 -ftree-parallelize-loops={0,1}.
15800 (static_spec_functions): Add greater_than_spec_func function with name
15802 (greater_than_spec_func): New function.
15804 2015-07-14 Richard Biener <rguenther@suse.de>
15806 * tree-ssa-dom.c (record_temporary_equivalences): Merge
15807 wideing type conversion case from record_equivalences_from_incoming_edge
15808 and use record_equality to record equivalences.
15809 (record_equivalences_from_incoming_edge): Call
15810 record_temporary_equivalences.
15812 2015-07-14 Richard Biener <rguenther@suse.de>
15814 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
15815 (struct if_expr): New.
15816 (struct with_expr): Likewise.
15817 (is_a_helper): Add helpers for if_expr and with_expr.
15818 (struct simplify): Add simplify_kind enum and member. Remove
15820 (simplify::simplify): Adjust.
15821 (lower_commutative): Adjust.
15822 (lower_opt_convert): Likewise.
15823 (lower_cond): Likewise.
15824 (replace_id): Handle with_expr and if_expr.
15825 (lower_for): Adjust.
15826 (dt_simplify::gen_1): New recursive worker, split out from ...
15827 (dt_simplify::gen): ... here. Deal with if and with expansion
15829 (capture_info::capture_info): Take context argument
15830 (capture_info::walk_result): Only analyze specific result.
15831 (parser::parse_result): New function.
15832 (parser::parse_simplify): Adjust to parse ifs with then end
15834 (parser::parse_if): Simplify.
15835 (parser::parse_pattern): Pass down simplify kind.
15836 * match.pd: Convert if structure to new syntax.
15838 2015-07-13 Marek Polacek <polacek@redhat.com>
15840 * rtl.c (rtx_equal_p_cb): Fix typo.
15842 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
15844 * omega.h: Don't include config.h, don't include params.h again if
15845 omega.h has already been included.
15846 * graphite-poly.h: Include sese.h.
15847 * graphite.c: Don't include sese.h, remove needless includes and
15848 minimize includes outside #ifdef HAVE_isl block.
15849 * graphite-blocking.c: Don't include sese.h, remove needless includes,
15850 and wrap entire file in #ifdef HAVE_isl
15851 * graphite-dependences.c: Likewise.
15852 * graphite-interchange.c: Likewise.
15853 * graphite-isl-ast-to-gimple.c: Likewise.
15854 * graphite-optimize-isl.c: Likewise.
15855 * graphite-poly.c: Likewise.
15856 * graphite-scop-detection.c: Likewise.
15857 * graphite-sese-to-poly.c: Likewise.
15859 2015-07-13 Tom de Vries <tom@codesourcery.com>
15861 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
15863 2015-07-13 Renlin Li <renlin.li@arm.com>
15866 * simplify-rtx.c (simplify_const_relational_operation): Add
15867 side_effects_p checks.
15869 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
15871 * bitmap.h: Fix double word typos.
15872 * builtins.c: Same.
15874 * cfgloopmanip.c: Same.
15877 * cgraphclones.c: Same.
15879 * config/aarch64/aarch64-protos.h: Same.
15880 * config/aarch64/aarch64.c: Same.
15881 * config/aarch64/aarch64.md: Same.
15882 * config/arm/arm.md: Same.
15883 * config/arm/arm1020e.md: Same.
15884 * config/arm/arm1026ejs.md: Same.
15885 * config/arm/arm926ejs.md: Same.
15886 * config/arm/fa526.md: Same.
15887 * config/arm/fa606te.md: Same.
15888 * config/arm/fa626te.md: Same.
15889 * config/arm/fa726te.md: Same.
15890 * config/arm/fmp626.md: Same.
15891 * config/darwin.c: Same.
15892 * config/epiphany/epiphany.c: Same.
15893 * config/frv/frv.c: Same.
15894 * config/ft32/ft32.c: Same.
15895 * config/gnu-user.h: Same.
15896 * config/h8300/constraints.md: Same.
15897 * config/i386/i386.c: Same.
15898 * config/i386/i386.md: Same.
15899 * config/iq2000/iq2000.md: Same.
15900 * config/mips/mips.c: Same.
15901 * config/mmix/mmix.md: Same.
15902 * config/moxie/moxie.c: Same.
15903 * config/nds32/nds32.md: Same.
15904 * config/pa/pa.h: Same.
15905 * config/rs6000/aix.h: Same.
15906 * config/rs6000/rs6000.h: Same.
15907 * config/sh/sh.c: Same.
15908 * config/tilegx/tilegx.md: Same.
15909 * config/tilepro/gen-mul-tables.cc: Same.
15912 * doc/invoke.texi: Same.
15914 * dwarf2out.c: Same.
15917 * genmatch.c: Same.
15918 * gimplify.c: Same.
15919 * hash-table.h: Same.
15920 * internal-fn.c: Same.
15922 * ipa-devirt.c: Same.
15925 * ipa-profile.c: Same.
15926 * ipa-prop.c: Same.
15927 * ipa-prop.h: Same.
15930 * reg-stack.c: Same.
15931 * regcprop.c: Same.
15936 * tree-inline.c: Same.
15937 * tree-sra.c: Same.
15938 * tree-ssa-dom.c: Same.
15939 * tree-ssa-loop-ivopts.c: Same.
15940 * tree-ssa-structalias.c: Same.
15941 * tree-ssa-tail-merge.c: Same.
15942 * tree-ssa-ter.c: Same.
15943 * tree-ssa-threadupdate.c: Same.
15944 * tree-ssa-uninit.c: Same.
15945 * tree-ssanames.c: Same.
15946 * tree-vect-loop-manip.c: Same.
15947 * tree-vrp.c: Same.
15949 * valtrack.c: Same.
15952 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15954 PR middle-end/66726
15955 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
15956 tree_ssa_phiopt_worker): Call it.
15958 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15960 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
15961 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
15964 2015-07-11 Marek Polacek <polacek@redhat.com>
15966 PR middle-end/66353
15967 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
15968 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
15969 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
15970 rather than bb_has_abnormal_call_pred.
15971 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
15972 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
15973 rather than bb_has_abnormal_call_pred.
15975 2015-07-10 Anatoly Sokolov <aesok@post.ru>
15977 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15978 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
15979 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15980 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
15981 v850_legitimate_address_p): New functions.
15982 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15984 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
15987 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
15988 indirect sibcall with register arguments if register available
15989 for argument passing.
15990 (init_cumulative_args): Set cfun->machine->arg_reg_available
15991 to (cum->nregs > 0) or to true if function has a variable
15993 (function_arg_advance_32): Set cfun->machine->arg_reg_available
15994 to false if cum->nregs <= 0.
15995 * config/i386/i386.h (machine_function): Add arg_reg_available.
15997 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15999 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16000 and gen_higpart instead of gen_rtx_SUBREG.
16001 * config/i386/i386.md
16002 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16003 (read-modify peephole2): Use gen_lowpart instead of
16004 gen_rtx_SUBREG for operand 5.
16006 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16008 * config/tilepro/gen-mul-tables.cc (main): Change include list for
16010 * config/tilepro/mul-tables.c: Regenerate.
16011 * config/tilegx/mul-tables.c: Regenerate.
16013 2015-07-10 Richard Biener <rguenther@suse.de>
16015 * fold-const.c (distribute_bit_expr): Remove.
16016 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16017 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16018 to A & (B | C) and simplifying A << C1 << C2 to ...
16019 * match.pd: ... patterns here.
16021 2015-07-10 Jiong Wang <jiong.wang@arm.com>
16023 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16024 Mark mem as READONLY and NOTRAP for PIC symbol.
16026 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16028 * gimple-predict.h: New file.
16029 (gimple_predict_predictor, gimple_predict_set_predictor,
16030 gimple_predict_outcome, gimple_predict_set_outcome,
16031 gimple_build_predict): Relocate here.
16032 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16033 gimple_predict_outcome, gimple_predict_set_outcome): Move to
16035 * gimple.c (gimple_build_predict): Move to gimple-predict.h
16036 * basic-block.h: Don't include cfghooks.h.
16037 * backend.h: Don't include predict.h.
16038 * cfghooks.h: Include predict.h.
16039 * gimple-pretty-print.c: Include gimple-predict.h.
16040 * gimplify.c: Likwise.
16041 * predict.c: Adjust includes.
16042 * tree-inline.c: Likewise.
16043 * asan.c: Likewise.
16044 * auto-inc-dec.c: Likewise.
16045 * auto-profile.c: Likewise.
16046 * bb-reorder.c: Likewise.
16047 * builtins.c: Likewise.
16048 * caller-save.c: Likewise.
16049 * calls.c: Likewise.
16050 * cfganal.c: Likewise.
16051 * cfgbuild.c: Likewise.
16053 * cfgcleanup.c: Likewise.
16054 * cfgexpand.c: Likewise.
16055 * cfghooks.c: Likewise.
16056 * cfgloopanal.c: Likewise.
16057 * cfgloop.c: Likewise.
16058 * cfgloopmanip.c: Likewise.
16059 * cfgrtl.c: Likewise.
16060 * cgraph.c: Likewise.
16061 * cgraphunit.c: Likewise.
16062 * combine.c: Likewise.
16063 * cprop.c: Likewise.
16066 * dojump.c: Likewise.
16068 * except.c: Likewise.
16069 * expmed.c: Likewise.
16070 * expr.c: Likewise.
16071 * final.c: Likewise.
16072 * fold-const.c: Likewise.
16073 * function.c: Likewise.
16074 * fwprop.c: Likewise.
16075 * gcc-plugin.h: Likewise.
16076 * gcse.c: Likewise.
16077 * genattrtab.c: Likewise.
16078 * genemit.c: Likewise.
16079 * gengtype.c: Likewise.
16080 * genopinit.c: Likewise.
16081 * genoutput.c: Likewise.
16082 * genpreds.c: Likewise.
16083 * genrecog.c: Likewise.
16084 * gimple-fold.c: Likewise.
16085 * gimple-iterator.c: Likewise.
16086 * gimple-ssa-isolate-paths.c: Likewise.
16087 * gimple-ssa-strength-reduction.c: Likewise.
16088 * graph.c: Likewise.
16089 * graphite-blocking.c: Likewise.
16090 * graphite.c: Likewise.
16091 * graphite-dependences.c: Likewise.
16092 * graphite-interchange.c: Likewise.
16093 * graphite-isl-ast-to-gimple.c: Likewise.
16094 * graphite-optimize-isl.c: Likewise.
16095 * graphite-poly.c: Likewise.
16096 * graphite-scop-detection.c: Likewise.
16097 * graphite-sese-to-poly.c: Likewise.
16098 * haifa-sched.c: Likewise.
16099 * ifcvt.c: Likewise.
16100 * internal-fn.c: Likewise.
16101 * ipa-cp.c: Likewise.
16102 * ipa-profile.c: Likewise.
16103 * ipa-split.c: Likewise.
16104 * ipa-utils.c: Likewise.
16105 * ira-build.c: Likewise.
16106 * ira-color.c: Likewise.
16107 * ira-conflicts.c: Likewise.
16108 * ira-costs.c: Likewise.
16109 * ira-emit.c: Likewise.
16110 * ira-lives.c: Likewise.
16111 * jump.c: Likewise.
16112 * loop-doloop.c: Likewise.
16113 * loop-init.c: Likewise.
16114 * loop-invariant.c: Likewise.
16115 * loop-unroll.c: Likewise.
16116 * lower-subreg.c: Likewise.
16117 * lra-assigns.c: Likewise.
16119 * lra-coalesce.c: Likewise.
16120 * lra-constraints.c: Likewise.
16121 * lra-lives.c: Likewise.
16122 * lto-cgraph.c: Likewise.
16123 * lto-streamer-in.c: Likewise.
16124 * mode-switching.c: Likewise.
16125 * modulo-sched.c: Likewise.
16126 * omp-low.c: Likewise.
16127 * optabs.c: Likewise.
16128 * passes.c: Likewise.
16129 * postreload.c: Likewise.
16130 * postreload-gcse.c: Likewise.
16131 * profile.c: Likewise.
16132 * recog.c: Likewise.
16133 * regstat.c: Likewise.
16134 * reload1.c: Likewise.
16135 * reorg.c: Likewise.
16136 * rtlanal.c: Likewise.
16137 * sched-ebb.c: Likewise.
16138 * sel-sched-ir.c: Likewise.
16139 * sese.c: Likewise.
16140 * shrink-wrap.c: Likewise.
16141 * simplify-rtx.c: Likewise.
16142 * stmt.c: Likewise.
16143 * store-motion.c: Likewise.
16144 * tracer.c: Likewise.
16145 * trans-mem.c: Likewise.
16146 * tree-call-cdce.c: Likewise.
16147 * tree-cfg.c: Likewise.
16148 * tree-cfgcleanup.c: Likewise.
16149 * tree-chkp.c: Likewise.
16150 * tree-complex.c: Likewise.
16151 * tree-eh.c: Likewise.
16152 * tree-if-conv.c: Likewise.
16153 * tree-loop-distribution.c: Likewise.
16154 * tree-outof-ssa.c: Likewise.
16155 * tree-parloops.c: Likewise.
16156 * tree-predcom.c: Likewise.
16157 * tree-pretty-print.c: Likewise.
16158 * tree-profile.c: Likewise.
16159 * tree-sra.c: Likewise.
16160 * tree-ssa.c: Likewise.
16161 * tree-ssa-coalesce.c: Likewise.
16162 * tree-ssa-dce.c: Likewise.
16163 * tree-ssa-dom.c: Likewise.
16164 * tree-ssa-forwprop.c: Likewise.
16165 * tree-ssa-ifcombine.c: Likewise.
16166 * tree-ssa-loop-ch.c: Likewise.
16167 * tree-ssa-loop-im.c: Likewise.
16168 * tree-ssa-loop-ivcanon.c: Likewise.
16169 * tree-ssa-loop-ivopts.c: Likewise.
16170 * tree-ssa-loop-manip.c: Likewise.
16171 * tree-ssa-loop-prefetch.c: Likewise.
16172 * tree-ssa-loop-unswitch.c: Likewise.
16173 * tree-ssa-math-opts.c: Likewise.
16174 * tree-ssa-phiopt.c: Likewise.
16175 * tree-ssa-pre.c: Likewise.
16176 * tree-ssa-reassoc.c: Likewise.
16177 * tree-ssa-sink.c: Likewise.
16178 * tree-ssa-tail-merge.c: Likewise.
16179 * tree-ssa-threadedge.c: Likewise.
16180 * tree-ssa-threadupdate.c: Likewise.
16181 * tree-switch-conversion.c: Likewise.
16182 * tree-tailcall.c: Likewise.
16183 * tree-vect-data-refs.c: Likewise.
16184 * tree-vect-loop.c: Likewise.
16185 * tree-vect-loop-manip.c: Likewise.
16186 * tree-vectorizer.c: Likewise.
16187 * tree-vrp.c: Likewise.
16188 * ubsan.c: Likewise.
16189 * value-prof.c: Likewise.
16190 * varasm.c: Likewise.
16191 * var-tracking.c: Likewise.
16192 * config/aarch64/aarch64-builtins.c: Likewise.
16193 * config/aarch64/aarch64.c: Likewise.
16194 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16195 * config/alpha/alpha.c: Likewise.
16196 * config/arc/arc.c: Likewise.
16197 * config/arm/arm.c: Likewise.
16198 * config/avr/avr.c: Likewise.
16199 * config/bfin/bfin.c: Likewise.
16200 * config/c6x/c6x.c: Likewise.
16201 * config/cr16/cr16.c: Likewise.
16202 * config/cris/cris.c: Likewise.
16203 * config/darwin.c: Likewise.
16204 * config/darwin-c.c: Likewise.
16205 * config/epiphany/epiphany.c: Likewise.
16206 * config/epiphany/mode-switch-use.c: Likewise.
16207 * config/epiphany/resolve-sw-modes.c: Likewise.
16208 * config/fr30/fr30.c: Likewise.
16209 * config/frv/frv.c: Likewise.
16210 * config/ft32/ft32.c: Likewise.
16211 * config/h8300/h8300.c: Likewise.
16212 * config/i386/i386.c: Likewise.
16213 * config/i386/winnt.c: Likewise.
16214 * config/ia64/ia64.c: Likewise.
16215 * config/iq2000/iq2000.c: Likewise.
16216 * config/lm32/lm32.c: Likewise.
16217 * config/m32c/m32c.c: Likewise.
16218 * config/m32r/m32r.c: Likewise.
16219 * config/m68k/m68k.c: Likewise.
16220 * config/mcore/mcore.c: Likewise.
16221 * config/mep/mep.c: Likewise.
16222 * config/microblaze/microblaze.c: Likewise.
16223 * config/mips/mips.c: Likewise.
16224 * config/mmix/mmix.c: Likewise.
16225 * config/mn10300/mn10300.c: Likewise.
16226 * config/moxie/moxie.c: Likewise.
16227 * config/msp430/msp430.c: Likewise.
16228 * config/nds32/nds32.c: Likewise.
16229 * config/nds32/nds32-cost.c: Likewise.
16230 * config/nds32/nds32-fp-as-gp.c: Likewise.
16231 * config/nds32/nds32-intrinsic.c: Likewise.
16232 * config/nds32/nds32-isr.c: Likewise.
16233 * config/nds32/nds32-md-auxiliary.c: Likewise.
16234 * config/nds32/nds32-memory-manipulation.c: Likewise.
16235 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16236 * config/nds32/nds32-predicates.c: Likewise.
16237 * config/nios2/nios2.c: Likewise.
16238 * config/nvptx/nvptx.c: Likewise.
16239 * config/pa/pa.c: Likewise.
16240 * config/pdp11/pdp11.c: Likewise.
16241 * config/rl78/rl78.c: Likewise.
16242 * config/rs6000/rs6000.c: Likewise.
16243 * config/rx/rx.c: Likewise.
16244 * config/s390/s390.c: Likewise.
16245 * config/sh/sh.c: Likewise.
16246 * config/sh/sh-mem.cc: Likewise.
16247 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16248 * config/sh/sh_treg_combine.cc: Likewise.
16249 * config/sparc/sparc.c: Likewise.
16250 * config/spu/spu.c: Likewise.
16251 * config/stormy16/stormy16.c: Likewise.
16252 * config/tilegx/tilegx.c: Likewise.
16253 * config/tilepro/tilepro.c: Likewise.
16254 * config/v850/v850.c: Likewise.
16255 * config/vax/vax.c: Likewise.
16256 * config/visium/visium.c: Likewise.
16257 * config/xtensa/xtensa.c: Likewise.
16259 2015-07-10 Richard Biener <rguenther@suse.de>
16261 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16262 (decision_tree::gen_gimple): Likewise.
16263 (decision_tree::gen_generic): Likewise.
16265 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16268 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16269 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16271 2015-07-10 Jakub Jelinek <jakub@redhat.com>
16273 PR middle-end/66820
16274 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16275 or ORT_TASK contexts.
16276 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16279 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16281 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16284 2015-07-10 Tom de Vries <tom@codesourcery.com>
16286 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16287 insert nit + 1 bound.
16289 2015-07-10 Richard Biener <rguenther@suse.de>
16291 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16292 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16293 (if_convertible_loop_p_1): For this always compute bb predicates.
16294 (if_convertible_loop_p): And free them.
16296 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16298 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16301 2015-07-10 Richard Biener <rguenther@suse.de>
16303 PR tree-optimization/66823
16304 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16305 inverted predicate.
16307 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
16309 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16310 to handle mips[32|64]r3 and mips[32|64]r5.
16312 2015-07-09 Jakub Jelinek <jakub@redhat.com>
16314 PR middle-end/66633
16315 * tree-nested.c (get_static_chain): Or in a flag into
16316 info->static_chain_added.
16317 (get_frame_field, get_nonlocal_debug_decl): Likewise.
16318 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16319 2015-07-01 changes.
16320 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16321 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16324 PR tree-optimization/66718
16325 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16327 (vect_simd_lane_linear): New function.
16328 (vectorizable_simd_clone_call): Support using linear arguments for
16329 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16331 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16334 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16336 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16338 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16339 Use machine mode, not enum machine_mode in the prototype.
16341 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16342 classify 128-bit floating point support.
16343 (FLOAT128_IBM_P): Likewise.
16344 (FLOAT128_VECTOR_P): Likewise.
16345 (FLOAT128_2REG_P): Likewise.
16346 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16347 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16348 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16349 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16351 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16352 tests against TFmode/TDmode, since those modes do not use VSX
16354 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16356 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16357 tests against TFmode, etc.
16358 (invalid_e500_subreg): Add tests against IFmode/KFmode.
16359 (reg_offset_addressing_ok_p): Likewise.
16360 (rs6000_legitimate_offset_address_p): Likewise.
16361 (rs6000_legitimize_address): Likewise.
16362 (rs6000_legitimize_reload_address): Likewise.
16363 (rs6000_legitimate_address_p): Clean up tests against TFmode and
16364 TDmode to use the new helper macros, which will include IFmode and
16366 (rs6000_emit_move): Likewise.
16367 (rs6000_darwin64_record_arg_recurse): Likewise.
16368 (print_operand): Likewise.
16369 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16370 that uses a single vector register as a vector and not as a
16371 floating point register in terms of the calling sequence.
16372 (rs6000_discover_homogeneous_aggregate): Likewise.
16373 (rs6000_return_in_memory): Likewise.
16374 (init_cumulative_args): Likewise.
16375 (rs6000_function_arg_boundary): Likewise.
16376 (rs6000_function_arg_advance_1): Likewise.
16377 (rs6000_function_arg): Likewise.
16378 (rs6000_pass_by_reference): Likewise.
16379 (rs6000_gimplify_va_arg): Likewise.
16380 (rs6000_secondary_reload_memory): Use machine_mode not enum
16382 (rs6000_split_multireg_move): Use new helper macros.
16383 (spe_func_has_64bit_regs_p): Likewise.
16384 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16385 (output_toc): Use new helper macros.
16386 (rs6000_register_move_cost): Likewise.
16387 (rs6000_function_value): Add IEEE 128-bit floating point calling
16389 (rs6000_libcall_value): Likewise.
16390 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16391 floating point support.
16392 (rs6000_vector_mode_supported_p): Likewise.
16394 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
16396 PR rtl-optimization/66782
16397 * lra-int.h (struct lra_insn_recog_data): Add comment about
16398 clobbered hard regs for arg_hard_regs.
16399 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16400 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16401 Add condition for processing used hard regs.
16402 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16403 Process clobbered hard regs.
16405 2015-07-09 Michael Matz <matz@suse.de>
16407 * genmatch.c (fprintf_indent): New function.
16408 (operand::gen_transform): Add indent parameter.
16409 (expr::gen_transform, c_expr::gen_transform,
16410 capture::gen_transform): Ditto and use fprintf_indent.
16411 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16412 (dt_operand::gen, dt_operand::gen_predicate,
16413 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16414 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16415 (decision_tree::gen_gimple): Adjust calls and indent generated
16417 (decision_tree::gen_generic): Ditto.
16418 (write_predicate): Ditto.
16420 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16423 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16424 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16425 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16426 {GENERAL,SSE,MMX}_REG_P where appropriate.
16428 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16430 * lto-streamer.h: Don't include target.h and alloc-pool.h.
16431 * builtins.c: Adjust includes.
16432 * gimple.c: Likewise.
16433 * ipa-icf.c: Likewise.
16434 * lto-opts.c: Likewise.
16435 * ipa-reference.c: Likewise.
16436 * lto-section-out.c: Likewise.
16437 * lto-streamer-in.c: Likewise.
16438 * lto-streamer-out.c: Likewise.
16439 * opts-global.c: Likewise.
16440 * symtab.c: Likewise.
16441 * tree-chkp.c: Likewise.
16442 * tree-ssa-live.c: Likewise.
16443 * tree-streamer-in.c: Likewise.
16444 * tree-streamer-out.c: Likewise.
16445 * config/darwin.c: Likewise.
16446 * config/i386/winnt.c: Likewise.
16448 2015-07-09 Richard Biener <rguenther@suse.de>
16450 * genmatch.c (struct expr): Add force_single_use flag.
16451 (expr::expr): Add copy constructor.
16452 (capture_info::walk_match): Gather force_single_use captures.
16453 (expr::gen_transform): Use possibly NULLified sequence.
16454 (dt_simplify::gen): Apply single-use restrictions by NULLifying
16455 seq if any constrained expr is not single-use.
16456 (parser::parse_expr): Refactor to allow multiple flags. Handle
16457 's' flag to force an expression have a single-use if the pattern
16458 simplifies to more than one statement.
16459 * match.pd: Convert most single_use conditionals to :s flags.
16461 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16463 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
16464 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16465 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
16467 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16469 * flags.h: Don't include flag-types.h or options.h.
16470 * opts-common.c: Adjust includes.
16471 * opts-global.c: Likewise.
16472 * common/config/epiphany/epiphany-common.c: Likewise.
16474 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16477 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
16480 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16483 * config/i386/i386.c (ix86_return_in_memory): Return true
16484 if int_size_in_bytes returns negative for IA MCU.
16486 2015-07-09 Marek Polacek <polacek@redhat.com>
16488 PR tree-optimization/66718
16489 * Makefile.in (OBJS): Add gimple-laddress.o.
16490 * passes.def: Schedule pass_laddress.
16491 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
16492 * tree-pass.h (make_pass_laddress): Declare.
16493 * gimple-laddress.c: New file.
16495 2015-07-09 Richard Biener <rguenther@suse.de>
16497 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
16499 2015-07-09 Richard Biener <rguenther@suse.de>
16501 PR tree-optimization/66807
16502 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
16504 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
16506 * function.c (stack_protect_epilogue): Use if rather than switch for
16507 check targetm.have_stack_protect_test.
16509 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16511 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
16512 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
16513 * config/arc/arc.h: Likewise.
16514 * config/arm/arm.h: Likewise.
16515 * config/bfin/bfin.h: Likewise.
16516 * config/epiphany/epiphany.h: Likewise.
16517 * config/frv/frv.h: Likewise.
16518 * config/ia64/ia64.h: Likewise.
16519 * config/iq2000/iq2000.h: Likewise.
16520 * config/lm32/lm32.h: Likewise.
16521 * config/m32r/m32r.h: Likewise.
16522 * config/mcore/mcore.h: Likewise.
16523 * config/mep/mep.h: Likewise.
16524 * config/microblaze/microblaze.h: Likewise.
16525 * config/mips/mips.h: Likewise.
16526 * config/mmix/mmix.h: Likewise.
16527 * config/mn10300/mn10300.h: Likewise.
16528 * config/nds32/nds32.h: Likewise.
16529 * config/nios2/nios2.h: Likewise.
16530 * config/pa/pa.h: Likewise.
16531 * config/rl78/rl78.h: Likewise.
16532 * config/sh/sh.h: Likewise.
16533 * config/sparc/sparc.h: Likewise.
16534 * config/stormy16/stormy16.h: Likewise.
16535 * config/tilegx/tilegx.h: Likewise.
16536 * config/tilepro/tilepro.h: Likewise.
16537 * config/v850/v850.h: Likewise.
16538 * config/xtensa/xtensa.h: Likewise.
16539 * doc/tm.texi: Regenerate.
16540 * doc/tm.texi.in: Adjust.
16541 * combine.c (simplify_set): Likewise.
16542 (simplify_comparison): Likewise.
16543 * expr.c (store_constructor): Likewise.
16544 * internal-fn.c (expand_arith_overflow): Likewise.
16545 * reload.c (push_reload): Likewise.
16546 (find_reloads): Likewise.
16547 (find_reloads_subreg_address): Likewise.
16548 * reload1.c (eliminate_regs_1): Likewise.
16549 * rtlanal.c (nonzero_bits1): Likewise.
16550 (num_sign_bit_copies1): Likewise.
16551 * simplify-rtx.c (simplify_truncation): Likewise.
16553 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16555 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
16556 of AUTO_INC_DEC with the preprocessor.
16557 * combine.c (combine_instructions): Likewise.
16558 (can_combine_p): Likewise.
16559 (try_combine): Likewise.
16560 * emit-rtl.c (try_split): Likewise.
16561 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16562 * lower-subreg.c (resolve_simple_move): Likewise.
16563 * lra.c (update_inc_notes): Likewise.
16564 * recog.c (asm_operand_ok): Likewise.
16565 (constrain_operands): Likewise.
16566 * regrename.c (scan_rtx_address): Likewise.
16567 * reload.c (update_auto_inc_notes): Likewise.
16568 (reg_inc_found_and_valid_p): Likewise.
16569 * reload1.c (reload): Likewise.
16570 (emit_input_reload_insns): Likewise.
16571 (delete_output_reload): Likewise.
16572 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16573 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16575 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16577 * rtl.h: Always define AUTO_INC_DEC.
16578 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
16579 * combine.c (combine_instructions): Likewise.
16580 (can_combine_p): Likewise.
16581 (try_combine): Likewise.
16582 * emit-rtl.c (try_split): Likewise.
16583 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16584 * lower-subreg.c (resolve_simple_move): Likewise.
16585 * lra.c (update_inc_notes): Likewise.
16586 * recog.c (asm_operand_ok): Likewise.
16587 (constrain_operands): Likewise.
16588 * regrename.c (scan_rtx_address): Likewise.
16589 * reload.c (update_auto_inc_notes): Likewise.
16590 (find_equiv_reg): Likewise.
16591 * reload1.c (reload): Likewise.
16592 (reload_as_needed): Likewise.
16593 (choose_reload_regs): Likewise.
16594 (emit_input_reload_insns): Likewise.
16595 (delete_output_reload): Likewise.
16596 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16597 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16599 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16601 * combine.c (can_combine_def_p): Don't check the value of
16602 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
16603 (combinable_i3pat): Likewise.
16604 (mark_used_regs_combine): Likewise.
16605 * regrename.c (rename_chains): Likewise.
16606 * reload.c (find_reloads_address): Likewise.
16607 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16609 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16611 * combine.c (update_rsp_from_reg_equal): Don't check if
16612 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
16613 (reg_nonzero_bits_for_combine): Likewise.
16614 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
16616 * config/frv/frv.h: Likewise.
16617 * config/lm32/lm32.h: Likewise.
16618 * config/mep/mep.h: Likewise.
16619 * config/mips/mips.h: Likewise.
16620 * config/rs6000/rs6000.h: Likewise.
16621 * config/sh/sh.h: Likewise.
16622 * config/tilegx/tilegx.h (enum reg_class): Likewise.
16623 * config/tilepro/tilepro.h: Likewise.
16624 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
16625 * doc/tm.texi: Regenerate.
16626 * doc/tm.texi.in: Adjust.
16627 * rtlanal.c (nonzero_bits1): Likewise.
16629 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16631 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
16632 with the preprocessor.
16633 (combine_instructions): Likewise.
16634 (try_combine): Likewise.
16636 (distribute_notes): Likewise.
16638 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16640 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
16642 (simplify_set): Likewise.
16643 * cse.c (cse_insn): Likewise.
16644 * fold-const.c (fold_single_bit_test): Likewise.
16645 (fold_unary_loc): Likewise.
16646 * postreload.c (reload_cse_simplify_set): Likewise.
16647 (reload_cse_simplify_operands): Likewise.
16649 2015-07-08 Jiong Wang <jiong.wang@arm.com>
16651 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
16652 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
16654 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
16657 * config/i386/x86intrin.h: Include <adxintrin.h> even if
16658 __iamcu__ is defined.
16660 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16662 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
16664 2015-07-08 Iain Sandoe <iain@codesourcery.com>
16667 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
16668 names from preservation.
16670 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
16673 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
16675 (function_arg_advance_32): Don't pass vectors in registers for
16677 (function_arg_32): Likewise.
16678 (ix86_return_in_memory): Don't return vectors in registers for
16681 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
16683 PR middle-end/66334
16684 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
16685 hard regno live at the start of BB with incoming abnormal edges.
16686 * lra-lives.c (process_bb_lives): Ditto.
16688 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
16691 * config/nvptx/mkoffload.c (main): Create an offload image only in
16692 64-bit configurations.
16694 2015-07-08 Martin Liska <mliska@suse.cz>
16697 * tree-sra.c (create_access_1): Call ctor without brackets.
16698 (create_artificial_child_access): Likewise.
16700 2015-07-08 Richard Biener <rguenther@suse.de>
16702 PR tree-optimization/66793
16703 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
16704 Properly split the block after stmts ending it.
16706 2015-07-08 Richard Biener <rguenther@suse.de>
16708 PR tree-optimization/66794
16709 * passes.c (execute_function_todo): Assert that post-dominators
16711 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
16712 Free post-dominators.
16714 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16716 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
16719 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16721 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
16722 more than or equal 8 and less than 32 when optimizing for size.
16724 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16726 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
16727 COSTS_N_INSNS (1) and increment it appropriately throughout the
16730 2015-07-08 Richard Biener <rguenther@suse.de>
16732 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
16734 2015-07-08 Alan Modra <amodra@gmail.com>
16736 * target.def (rtx_costs): Remove "code" param, add "mode".
16737 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
16738 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
16739 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
16740 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
16741 call. Track mode when given in rtx.
16742 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
16743 (default_address_cost): Pass Pmode to rtx_cost.
16744 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
16745 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
16747 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
16748 (notreg_cost): Add mode param. Use it.
16749 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
16750 mode param and pass to set_src_cost. Update all calls.
16751 (hash_scan_set): Formatting.
16752 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
16753 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
16755 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
16756 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
16757 emit_store_flag): Update set_src_cost and rtx_cost calls.
16758 * auto-inc-dec.c (attempt_change): Likewise.
16759 * calls.c (precompute_register_parameters): Likewise.
16760 * combine.c (expand_compound_operation, make_extraction,
16761 force_to_mode, distribute_and_simplify_rtx): Likewise.
16762 * dojump.c (prefer_and_bit_test): Likewise.
16763 * dse.c (find_shift_sequence): Likewise.
16764 * expr.c (compress_float_constant): Likewise.
16765 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
16766 * ifcvt.c (noce_try_sign_mask): Likewise.
16767 * loop-doloop.c (doloop_optimize): Likewise.
16768 * loop-invariant.c (create_new_invariant): Likewise.
16769 * lower-subreg.c (shift_cost, compute_costs): Likewise.
16770 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
16771 lshift_cheap_p): Likewise.
16772 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
16773 try_replace_in_use, reload_cse_move2add): Likewise.
16774 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
16776 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16777 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16778 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
16779 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16780 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
16781 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
16783 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
16784 * config/arc/arc.c (arc_rtx_costs): Likewise.
16785 * config/arm/arm.c (arm_rtx_costs): Likewise.
16786 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
16787 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
16788 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
16789 * config/cris/cris.c (cris_rtx_costs): Likewise.
16790 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
16791 * config/frv/frv.c (frv_rtx_costs): Likewise.
16792 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
16793 * config/i386/i386.c (ix86_rtx_costs): Likewise.
16794 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
16795 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
16796 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
16797 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
16798 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
16799 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
16800 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
16801 * config/mep/mep.c (mep_rtx_cost): Likewise.
16802 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
16803 * config/mips/mips.c (mips_rtx_costs): Likewise.
16804 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
16805 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
16806 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
16807 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
16808 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
16809 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
16810 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
16811 * config/pa/pa.c (hppa_rtx_costs): Likewise.
16812 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
16813 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
16814 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
16815 * config/s390/s390.c (s390_rtx_costs): Likewise.
16816 * config/sh/sh.c (sh_rtx_costs): Likewise.
16817 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
16818 * config/spu/spu.c (spu_rtx_costs): Likewise.
16819 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
16820 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
16821 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
16822 * config/v850/v850.c (v850_rtx_costs): Likewise.
16823 * config/vax/vax.c (vax_rtx_costs): Likewise.
16824 * config/visium/visium.c (visium_rtx_costs): Likewise.
16825 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
16826 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
16827 "code" param, and pass as outer_code to first rtx_cost call. Pass
16828 mode to rtx_cost calls.
16829 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
16831 (aarch64_rtx_costs_wrapper): Update.
16832 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
16833 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
16835 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
16836 and rtx_cost calls.
16837 (avr_operand_rtx_cost): Similarly.
16838 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
16839 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
16840 * config/mips/mips.c (mips_stack_address_p): Comment typo.
16841 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
16842 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
16843 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
16845 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
16846 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
16847 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
16848 * doc/tm.texi: Regenerate.
16850 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
16852 * tree-core.h: Include symtab.h.
16853 * rtl.h: Include hard-reg-set.h but not flags.h.
16854 (HARD_CONST): Remove condition compilation involving HARD_CONST since
16855 hard-reg-set.h is always included.
16856 * regs.h: Don't include hard-reg-set.h or rtl.h.
16857 * cfg.h: Include dominance.h.
16858 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
16859 * backend.h: New. Aggregate commonly used backend header files.
16860 * gimple-ssa.h: Don't include tree-hasher.h.
16861 * ssa.h: New. Aggregate commonly used SSA header files.
16862 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
16863 * sel-sched-ir.h: Flatten includes.
16864 * lra-int.h: Flatten completely.
16865 * sel-sched-dump.h: Flatten includes.
16866 * ira-int.h: Flatten includes.
16867 * gimple-streamer.h: Remove all includes.
16868 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
16869 * resource.h: Flatten hard-reg-set.h and df.h.
16870 * sched-int.h: Flatten insn-arrt.h and df.h.
16871 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
16872 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
16873 * genattrtab.c (write_header): Adjust generated includes.
16874 * genautomata.c (main): Likewise.
16875 * genconditions.c (write-header): Likewise.
16876 * genemit.c (main): Likewise.
16877 * gengtype.c (open_base_files): Likewise.
16878 * genopinit.c (main): Likewise.
16879 * genoutput.c (output_prologue): Likewise.
16880 * genpeep.c (main): Likewise.
16881 * genpreds.c (write_insn_preds_c): Likewise.
16882 * genrecog.c (write_header): Likewise.
16883 * alias.c: Adjust includes.
16884 * asan.c: Likewise.
16885 * attribs.c: Likewise.
16886 * auto-inc-dec.c: Likewise.
16887 * auto-profile.c: Likewise.
16888 * bb-reorder.c: Likewise.
16889 * bt-load.c: Likewise.
16890 * builtins.c: Likewise.
16891 * caller-save.c: Likewise.
16892 * calls.c: Likewise.
16893 * ccmp.c: Likewise.
16895 * cfganal.c: Likewise.
16896 * cfgbuild.c: Likewise.
16897 * cfgcleanup.c: Likewise.
16898 * cfgexpand.c: Likewise.
16899 * cfghooks.c: Likewise.
16900 * cfgloop.c: Likewise.
16901 * cfgloopanal.c: Likewise.
16902 * cfgloopmanip.c: Likewise.
16903 * cfgrtl.c: Likewise.
16904 * cgraph.c: Likewise.
16905 * cgraphbuild.c: Likewise.
16906 * cgraphclones.c: Likewise.
16907 * cgraphunit.c: Likewise.
16908 * cilk-common.c: Likewise.
16909 * combine-stack-adj.c: Likewise.
16910 * combine.c: Likewise.
16911 * compare-elim.c: Likewise.
16912 * convert.c: Likewise.
16913 * coverage.c: Likewise.
16914 * cppbuiltin.c: Likewise.
16915 * cprop.c: Likewise.
16917 * cselib.c: Likewise.
16918 * data-streamer-in.c: Likewise.
16919 * data-streamer-out.c: Likewise.
16920 * data-streamer.c: Likewise.
16921 * dbxout.c: Likewise.
16924 * debug.c: Likewise.
16925 * df-core.c: Likewise.
16926 * df-problems.c: Likewise.
16927 * df-scan.c: Likewise.
16929 * dojump.c: Likewise.
16930 * dominance.c: Likewise.
16931 * domwalk.c: Likewise.
16932 * double-int.c: Likewise.
16934 * dumpfile.c: Likewise.
16935 * dwarf2asm.c: Likewise.
16936 * dwarf2cfi.c: Likewise.
16937 * dwarf2out.c: Likewise.
16938 * emit-rtl.c: Likewise.
16939 * et-forest.c: Likewise.
16940 * except.c: Likewise.
16941 * explow.c: Likewise.
16942 * expmed.c: Likewise.
16943 * expr.c: Likewise.
16944 * final.c: Likewise.
16945 * fixed-value.c: Likewise.
16946 * fold-const.c: Likewise.
16947 * function.c: Likewise.
16948 * fwprop.c: Likewise.
16949 * gcc-plugin.h: Likewise.
16950 * gcse-common.c: Likewise.
16951 * gcse.c: Likewise.
16952 * generic-match-head.c: Likewise.
16953 * ggc-page.c: Likewise.
16954 * gimple-builder.c: Likewise.
16955 * gimple-expr.c: Likewise.
16956 * gimple-fold.c: Likewise.
16957 * gimple-iterator.c: Likewise.
16958 * gimple-low.c: Likewise.
16959 * gimple-match-head.c: Likewise.
16960 * gimple-pretty-print.c: Likewise.
16961 * gimple-ssa-isolate-paths.c: Likewise.
16962 * gimple-ssa-strength-reduction.c: Likewise.
16963 * gimple-streamer-in.c: Likewise.
16964 * gimple-streamer-out.c: Likewise.
16965 * gimple-walk.c: Likewise.
16966 * gimple.c: Likewise.
16967 * gimplify-me.c: Likewise.
16968 * gimplify.c: Likewise.
16969 * godump.c: Likewise.
16970 * graph.c: Likewise.
16971 * graphite-blocking.c: Likewise.
16972 * graphite-dependences.c: Likewise.
16973 * graphite-interchange.c: Likewise.
16974 * graphite-isl-ast-to-gimple.c: Likewise.
16975 * graphite-optimize-isl.c: Likewise.
16976 * graphite-poly.c: Likewise.
16977 * graphite-scop-detection.c: Likewise.
16978 * graphite-sese-to-poly.c: Likewise.
16979 * graphite.c: Likewise.
16980 * haifa-sched.c: Likewise.
16981 * hw-doloop.c: Likewise.
16982 * ifcvt.c: Likewise.
16983 * init-regs.c: Likewise.
16984 * internal-fn.c: Likewise.
16985 * ipa-chkp.c: Likewise.
16986 * ipa-comdats.c: Likewise.
16987 * ipa-cp.c: Likewise.
16988 * ipa-devirt.c: Likewise.
16989 * ipa-icf-gimple.c: Likewise.
16990 * ipa-icf.c: Likewise.
16991 * ipa-inline-analysis.c: Likewise.
16992 * ipa-inline-transform.c: Likewise.
16993 * ipa-inline.c: Likewise.
16994 * ipa-polymorphic-call.c: Likewise.
16995 * ipa-profile.c: Likewise.
16996 * ipa-prop.c: Likewise.
16997 * ipa-pure-const.c: Likewise.
16998 * ipa-ref.c: Likewise.
16999 * ipa-reference.c: Likewise.
17000 * ipa-split.c: Likewise.
17001 * ipa-utils.c: Likewise.
17002 * ipa-visibility.c: Likewise.
17004 * ira-build.c: Likewise.
17005 * ira-color.c: Likewise.
17006 * ira-conflicts.c: Likewise.
17007 * ira-costs.c: Likewise.
17008 * ira-emit.c: Likewise.
17009 * ira-lives.c: Likewise.
17011 * jump.c: Likewise.
17012 * langhooks.c: Likewise.
17014 * loop-doloop.c: Likewise.
17015 * loop-init.c: Likewise.
17016 * loop-invariant.c: Likewise.
17017 * loop-iv.c: Likewise.
17018 * loop-unroll.c: Likewise.
17019 * lower-subreg.c: Likewise.
17020 * lra-assigns.c: Likewise.
17021 * lra-coalesce.c: Likewise.
17022 * lra-constraints.c: Likewise.
17023 * lra-eliminations.c: Likewise.
17024 * lra-lives.c: Likewise.
17025 * lra-remat.c: Likewise.
17026 * lra-spills.c: Likewise.
17028 * lto-cgraph.c: Likewise.
17029 * lto-compress.c: Likewise.
17030 * lto-opts.c: Likewise.
17031 * lto-section-in.c: Likewise.
17032 * lto-section-out.c: Likewise.
17033 * lto-streamer-in.c: Likewise.
17034 * lto-streamer-out.c: Likewise.
17035 * lto-streamer.c: Likewise.
17037 * mode-switching.c: Likewise.
17038 * modulo-sched.c: Likewise.
17039 * omega.c: Likewise.
17040 * omp-low.c: Likewise.
17041 * optabs.c: Likewise.
17042 * opts-global.c: Likewise.
17043 * passes.c: Likewise.
17044 * plugin.c: Likewise.
17045 * postreload-gcse.c: Likewise.
17046 * postreload.c: Likewise.
17047 * predict.c: Likewise.
17048 * print-rtl.c: Likewise.
17049 * print-tree.c: Likewise.
17050 * profile.c: Likewise.
17051 * real.c: Likewise.
17052 * realmpfr.c: Likewise.
17053 * recog.c: Likewise.
17055 * reg-stack.c: Likewise.
17056 * regcprop.c: Likewise.
17057 * reginfo.c: Likewise.
17058 * regrename.c: Likewise.
17059 * regstat.c: Likewise.
17060 * reload.c: Likewise.
17061 * reload1.c: Likewise.
17062 * reorg.c: Likewise.
17063 * resource.c: Likewise.
17064 * rtl-chkp.c: Likewise.
17065 * rtlanal.c: Likewise.
17066 * rtlhooks.c: Likewise.
17067 * sanopt.c: Likewise.
17068 * sched-deps.c: Likewise.
17069 * sched-ebb.c: Likewise.
17070 * sched-rgn.c: Likewise.
17071 * sched-vis.c: Likewise.
17072 * sdbout.c: Likewise.
17073 * sel-sched-dump.c: Likewise.
17074 * sel-sched-ir.c: Likewise.
17075 * sel-sched.c: Likewise.
17076 * sese.c: Likewise.
17077 * shrink-wrap.c: Likewise.
17078 * simplify-rtx.c: Likewise.
17079 * stack-ptr-mod.c: Likewise.
17080 * stmt.c: Likewise.
17081 * stor-layout.c: Likewise.
17082 * store-motion.c: Likewise.
17083 * stringpool.c: Likewise.
17084 * symtab.c: Likewise.
17085 * target-globals.c: Likewise.
17086 * targhooks.c: Likewise.
17087 * toplev.c: Likewise.
17088 * tracer.c: Likewise.
17089 * trans-mem.c: Likewise.
17090 * tree-affine.c: Likewise.
17091 * tree-browser.c: Likewise.
17092 * tree-call-cdce.c: Likewise.
17093 * tree-cfg.c: Likewise.
17094 * tree-cfgcleanup.c: Likewise.
17095 * tree-chkp-opt.c: Likewise.
17096 * tree-chkp.c: Likewise.
17097 * tree-chrec.c: Likewise.
17098 * tree-complex.c: Likewise.
17099 * tree-data-ref.c: Likewise.
17100 * tree-dfa.c: Likewise.
17101 * tree-diagnostic.c: Likewise.
17102 * tree-dump.c: Likewise.
17103 * tree-eh.c: Likewise.
17104 * tree-emutls.c: Likewise.
17105 * tree-if-conv.c: Likewise.
17106 * tree-inline.c: Likewise.
17107 * tree-into-ssa.c: Likewise.
17108 * tree-iterator.c: Likewise.
17109 * tree-loop-distribution.c: Likewise.
17110 * tree-nested.c: Likewise.
17111 * tree-nrv.c: Likewise.
17112 * tree-object-size.c: Likewise.
17113 * tree-outof-ssa.c: Likewise.
17114 * tree-parloops.c: Likewise.
17115 * tree-phinodes.c: Likewise.
17116 * tree-predcom.c: Likewise.
17117 * tree-pretty-print.c: Likewise.
17118 * tree-profile.c: Likewise.
17119 * tree-scalar-evolution.c: Likewise.
17120 * tree-sra.c: Likewise.
17121 * tree-ssa-address.c: Likewise.
17122 * tree-ssa-alias.c: Likewise.
17123 * tree-ssa-ccp.c: Likewise.
17124 * tree-ssa-coalesce.c: Likewise.
17125 * tree-ssa-copy.c: Likewise.
17126 * tree-ssa-copyrename.c: Likewise.
17127 * tree-ssa-dce.c: Likewise.
17128 * tree-ssa-dom.c: Likewise.
17129 * tree-ssa-dse.c: Likewise.
17130 * tree-ssa-forwprop.c: Likewise.
17131 * tree-ssa-ifcombine.c: Likewise.
17132 * tree-ssa-live.c: Likewise.
17133 * tree-ssa-loop-ch.c: Likewise.
17134 * tree-ssa-loop-im.c: Likewise.
17135 * tree-ssa-loop-ivcanon.c: Likewise.
17136 * tree-ssa-loop-ivopts.c: Likewise.
17137 * tree-ssa-loop-manip.c: Likewise.
17138 * tree-ssa-loop-niter.c: Likewise.
17139 * tree-ssa-loop-prefetch.c: Likewise.
17140 * tree-ssa-loop-unswitch.c: Likewise.
17141 * tree-ssa-loop.c: Likewise.
17142 * tree-ssa-math-opts.c: Likewise.
17143 * tree-ssa-operands.c: Likewise.
17144 * tree-ssa-phiopt.c: Likewise.
17145 * tree-ssa-phiprop.c: Likewise.
17146 * tree-ssa-pre.c: Likewise.
17147 * tree-ssa-propagate.c: Likewise.
17148 * tree-ssa-reassoc.c: Likewise.
17149 * tree-ssa-sccvn.c: Likewise.
17150 * tree-ssa-scopedtables.c: Likewise.
17151 * tree-ssa-sink.c: Likewise.
17152 * tree-ssa-strlen.c: Likewise.
17153 * tree-ssa-structalias.c: Likewise.
17154 * tree-ssa-tail-merge.c: Likewise.
17155 * tree-ssa-ter.c: Likewise.
17156 * tree-ssa-threadedge.c: Likewise.
17157 * tree-ssa-threadupdate.c: Likewise.
17158 * tree-ssa-uncprop.c: Likewise.
17159 * tree-ssa-uninit.c: Likewise.
17160 * tree-ssa.c: Likewise.
17161 * tree-ssanames.c: Likewise.
17162 * tree-stdarg.c: Likewise.
17163 * tree-streamer-in.c: Likewise.
17164 * tree-streamer-out.c: Likewise.
17165 * tree-streamer.c: Likewise.
17166 * tree-switch-conversion.c: Likewise.
17167 * tree-tailcall.c: Likewise.
17168 * tree-vect-data-refs.c: Likewise.
17169 * tree-vect-generic.c: Likewise.
17170 * tree-vect-loop-manip.c: Likewise.
17171 * tree-vect-loop.c: Likewise.
17172 * tree-vect-patterns.c: Likewise.
17173 * tree-vect-slp.c: Likewise.
17174 * tree-vect-stmts.c: Likewise.
17175 * tree-vectorizer.c: Likewise.
17176 * tree-vrp.c: Likewise.
17177 * tree.c: Likewise.
17178 * tsan.c: Likewise.
17179 * ubsan.c: Likewise.
17180 * valtrack.c: Likewise.
17181 * value-prof.c: Likewise.
17182 * var-tracking.c: Likewise.
17183 * varasm.c: Likewise.
17184 * varpool.c: Likewise.
17185 * vmsdbgout.c: Likewise.
17186 * vtable-verify.c: Likewise.
17188 * wide-int.cc: Likewise.
17189 * xcoffout.c: Likewise.
17190 * config/aarch64/aarch64-builtins.c: Likewise.
17191 * config/aarch64/aarch64.c: Likewise.
17192 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17193 * config/alpha/alpha.c: Likewise.
17194 * config/arc/arc.c: Likewise.
17195 * config/arm/aarch-common.c: Likewise.
17196 * config/arm/arm-builtins.c: Likewise.
17197 * config/arm/arm-c.c: Likewise.
17198 * config/arm/arm.c: Likewise.
17199 * config/avr/avr-c.c: Likewise.
17200 * config/avr/avr-log.c: Likewise.
17201 * config/avr/avr.c: Likewise.
17202 * config/bfin/bfin.c: Likewise.
17203 * config/c6x/c6x.c: Likewise.
17204 * config/cr16/cr16.c: Likewise.
17205 * config/cris/cris.c: Likewise.
17206 * config/darwin-c.c: Likewise.
17207 * config/darwin.c: Likewise.
17208 * config/epiphany/epiphany.c: Likewise.
17209 * config/epiphany/mode-switch-use.c: Likewise.
17210 * config/epiphany/resolve-sw-modes.c: Likewise.
17211 * config/fr30/fr30.c: Likewise.
17212 * config/frv/frv.c: Likewise.
17213 * config/ft32/ft32.c: Likewise.
17214 * config/h8300/h8300.c: Likewise.
17215 * config/i386/i386-c.c: Likewise.
17216 * config/i386/i386.c: Likewise.
17217 * config/i386/msformat-c.c: Likewise.
17218 * config/i386/winnt-cxx.c: Likewise.
17219 * config/i386/winnt-stubs.c: Likewise.
17220 * config/i386/winnt.c: Likewise.
17221 * config/ia64/ia64-c.c: Likewise.
17222 * config/ia64/ia64.c: Likewise.
17223 * config/iq2000/iq2000.c: Likewise.
17224 * config/lm32/lm32.c: Likewise.
17225 * config/m32c/m32c-pragma.c: Likewise.
17226 * config/m32c/m32c.c: Likewise.
17227 * config/m32r/m32r.c: Likewise.
17228 * config/m68k/m68k.c: Likewise.
17229 * config/mcore/mcore.c: Likewise.
17230 * config/mep/mep-pragma.c: Likewise.
17231 * config/mep/mep.c: Likewise.
17232 * config/microblaze/microblaze-c.c: Likewise.
17233 * config/microblaze/microblaze.c: Likewise.
17234 * config/mips/mips.c: Likewise.
17235 * config/mmix/mmix.c: Likewise.
17236 * config/mn10300/mn10300.c: Likewise.
17237 * config/moxie/moxie.c: Likewise.
17238 * config/msp430/msp430-c.c: Likewise.
17239 * config/msp430/msp430.c: Likewise.
17240 * config/nds32/nds32-cost.c: Likewise.
17241 * config/nds32/nds32-fp-as-gp.c: Likewise.
17242 * config/nds32/nds32-intrinsic.c: Likewise.
17243 * config/nds32/nds32-isr.c: Likewise.
17244 * config/nds32/nds32-md-auxiliary.c: Likewise.
17245 * config/nds32/nds32-memory-manipulation.c: Likewise.
17246 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17247 * config/nds32/nds32-predicates.c: Likewise.
17248 * config/nds32/nds32.c: Likewise.
17249 * config/nios2/nios2.c: Likewise.
17250 * config/nvptx/nvptx.c: Likewise.
17251 * config/pa/pa.c: Likewise.
17252 * config/pdp11/pdp11.c: Likewise.
17253 * config/rl78/rl78-c.c: Likewise.
17254 * config/rl78/rl78.c: Likewise.
17255 * config/rs6000/rs6000-c.c: Likewise.
17256 * config/rs6000/rs6000.c: Likewise.
17257 * config/rx/rx.c: Likewise.
17258 * config/s390/s390-c.c: Likewise.
17259 * config/s390/s390.c: Likewise.
17260 * config/sh/sh-c.c: Likewise.
17261 * config/sh/sh-mem.cc: Likewise.
17262 * config/sh/sh.c: Likewise.
17263 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17264 * config/sh/sh_treg_combine.cc: Likewise.
17265 * config/sol2-c.c: Likewise.
17266 * config/sol2-cxx.c: Likewise.
17267 * config/sol2-stubs.c: Likewise.
17268 * config/sol2.c: Likewise.
17269 * config/sparc/sparc-c.c: Likewise.
17270 * config/sparc/sparc.c: Likewise.
17271 * config/spu/spu-c.c: Likewise.
17272 * config/spu/spu.c: Likewise.
17273 * config/stormy16/stormy16.c: Likewise.
17274 * config/tilegx/mul-tables.c: Likewise.
17275 * config/tilegx/tilegx-c.c: Likewise.
17276 * config/tilegx/tilegx.c: Likewise.
17277 * config/tilepro/mul-tables.c: Likewise.
17278 * config/tilepro/tilepro-c.c: Likewise.
17279 * config/tilepro/tilepro.c: Likewise.
17280 * config/v850/v850-c.c: Likewise.
17281 * config/v850/v850.c: Likewise.
17282 * config/vax/vax.c: Likewise.
17283 * config/visium/visium.c: Likewise.
17284 * config/vms/vms-c.c: Likewise.
17285 * config/vms/vms.c: Likewise.
17286 * config/vxworks.c: Likewise.
17287 * config/xtensa/xtensa.c: Likewise.
17289 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
17291 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17292 Remove operand constraints. Change operand 2 predicate to
17293 nonmemory operand. Limit const_int values to mode bitsize. Only
17294 allow const_int values less than 32 when optimizing for size.
17295 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17296 Remove operand constraints.
17297 (*bt<mode>): Use SImode for const_int values less than 32.
17298 (regmode): Remove mode attribute.
17300 2015-07-07 Anatoly Sokolov <aesok@post.ru>
17302 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17303 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17304 moxie_legitimate_address_p): New functions.
17305 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17307 2015-07-07 Tom de Vries <tom@codesourcery.com>
17309 PR tree-optimization/66642
17310 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17311 header comment. Rename split_edge variable to edge_at_split. Split
17312 exit edge to create new loop exit bb. Insert loop exit phis in new
17315 2015-07-07 Tom de Vries <tom@codesourcery.com>
17317 * tree-cfg.c (get_virtual_phi): New function.
17318 * tree-cfg.h (get_virtual_phi): Declare.
17319 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17320 (rewrite_virtuals_into_loop_closed_ssa): New function.
17321 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17323 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17324 (transform_to_exit_first_loop_alt): Use
17325 rewrite_virtuals_into_loop_closed_ssa.
17327 2015-07-07 Richard Biener <rguenther@suse.de>
17329 * fold-const.c (fold_binary_loc): Move
17330 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17331 * match.pd: ... here.
17332 Add (X * C1) % C2 -> 0 simplification pattern derived from
17335 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
17338 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17339 change for target/65249.
17341 2015-07-07 Paulo Matos <pmatos@broadcom.com>
17343 * symtab.c (address_matters_1): Fix typo in comment above.
17344 (can_increase_alignment_p): Likewise.
17346 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17348 * function.c (free_after_compilation): Clear PROP_cfg in
17349 f->curr_properties.
17351 2015-07-07 Richard Biener <rguenther@suse.de>
17353 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17355 (add_control_edge): Remove excessive vertical space in dumping.
17356 (process_ssa_edge_worklist): Simulate at most one statement and
17357 return whether we did. Do not simulate PHIs if they are in a
17358 BB not yet simulated.
17359 (ssa_propagate): Adjust to always drain the BB worklist whenever
17360 a BB is available there, likewise the VARYING edges list before
17361 the interesting edge list.
17363 2015-07-07 Christian Bruel <christian.bruel@st.com>
17366 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17368 2015-07-07 Richard Biener <rguenther@suse.de>
17370 PR middle-end/66739
17371 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17374 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17376 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
17377 modes for operands 0 and 3. Use SImode for operands 2 and 3.
17378 Copy operand 0 to a temporary if !ext_register_operand. Remove
17379 ancient extract_bit_field workaround.
17380 (insv<mode>_1): Rename from mov<mode>_insv_1.
17381 (*insvqi): Rename from *movqi_insv_2.
17382 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17383 for renamed insvsi_1.
17384 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17386 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
17388 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
17389 call to nvptx_reorg_subreg.
17391 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
17393 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17394 * graphite-dependencies.c, graphite-interchange.c,
17395 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17396 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17399 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
17401 * match.pd: Remove element_mode inside HONOR_*.
17402 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17403 (~X | X -> -1, ~X ^ X -> -1): Merge.
17404 * tree.c (build_each_one_cst): New function.
17405 * tree.h (build_each_one_cst): Likewise.
17407 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17409 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17412 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
17414 * config.gcc <mips*-*-*>: Add fused-madd.opt.
17415 * config/mips/mips.opt (mfused-madd): Remove.
17416 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17417 * config/mips/mips.h (TARGET_MIPS8000): New.
17418 (ISA_HAS_FP_MADD4_MSUB4): Remove.
17419 (ISA_HAS_FP_MADDF_MSUBF): Remove.
17420 (ISA_HAS_FP_MADD3_MSUB3): Remove.
17421 (ISA_HAS_NMADD4_NMSUB4): Remove.
17422 (ISA_HAS_NMADD3_NMSUB3): Remove.
17423 (ISA_HAS_FUSED_MADD4): New.
17424 (ISA_HAS_UNFUSED_MADD4): New.
17425 (ISA_HAS_FUSED_MADDF): New.
17426 (ISA_HAS_FUSED_MADD3): New.
17427 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17428 (*fma<mode>4_madd3) New.
17429 (*fma<mode>4_madd4) New.
17430 (*fma<mode>4_maddf) New.
17432 (*fms<mode>4_msub3) New.
17433 (*fms<mode>4_msub4) New.
17435 (*fnma<mode>4_nmadd3) New.
17436 (*fnma<mode>4_nmadd4) New.
17438 (*fnms<mode>4_nmsub3) New.
17439 (*fnms<mode>4_nmsub4) New.
17440 (*madd4<mode>) Modify to be unfused only.
17441 (*msub4<mode>) Modify to be unfused only.
17442 (*nmadd4<mode>) Modify to be unfused only.
17443 (*nmsub4<mode>) Modify to be unfused only.
17444 (*madd3<mode>) Remove.
17445 (*msub3<mode>) Remove.
17446 (*nmadd3<mode>) Remove.
17447 (*nmsub3<mode>) Remove.
17448 (*nmadd3<mode>_fastmath) Remove.
17449 (*nmsub3<mode>_fastmath) Remove.
17450 (*nmadd4<mode>_fastmath) Update condition.
17451 (*nmsub4<mode>_fastmath) Update condition.
17453 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17456 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
17457 alignment attribute, exploring one level down for records and arrays.
17459 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17461 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
17462 modes for operands 0 and 1. Use SImode for operands 2 and 3.
17463 Copy operand 1 to a temporary if !ext_register_operand. Remove
17464 ancient extract_bit_field workaround.
17465 (*extv<mode>): Rename from *mov<mode>_extv_1.
17466 (*extvqi): Rename from *movqi_extv_1.
17467 (extzv<mode>): Rename from extzv. Use SWI248 modes for
17468 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
17469 to a temporary if !ext_register_operand. Remove ancient
17470 extract_bit_field workaround.
17471 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
17472 (*extzvqi): Rename from *movqi_extzv_2.
17473 (*testqi_ext_3): Remove modes from const_int_operand predicated
17474 operands. Add "n" constraint.
17475 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
17476 operand. Add "J" constraint.
17477 (*btsq, *btrq, *btcq peephole2s): Remove mode from
17478 const_0_to_63 predicated operand.
17479 (regmode): New insn attribute.
17480 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
17481 to nonmemory_operand. Use regmode insn attribute.
17482 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
17483 (*jcc_bt<mode>_mask): Remove mode from operand 3.
17484 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
17485 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
17486 operands. Use "N" constraint instead of "n".
17488 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17490 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
17492 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17495 * config/i386/i386.c (iamcu_cost): New.
17496 (m_IAMCU): Likewise.
17497 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
17498 (processor_target_table): Add an entry for "iamcu".
17499 (processor_alias_table): Likewise.
17500 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
17501 (ix86_adjust_cost): Likewise.
17502 (ia32_multipass_dfa_lookahead): Likewise.
17503 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
17504 * config/i386/x86-tune.def: Updated for m_IAMCU.
17506 2015-07-06 Richard Biener <rguenther@suse.de>
17508 PR tree-optimization/66772
17509 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
17510 values are available in the PHI node BB when there are
17511 still unexecutable edges.
17513 2015-07-06 Richard Biener <rguenther@suse.de>
17515 PR tree-optimization/66767
17516 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17517 Make sure to build the alignment test on a SSA name without
17518 final alignment info valid only if the alignment test
17521 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
17524 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
17525 loop start when inserting LSETUP.
17527 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17530 * config/i386/i386.c (ix86_option_override_internal): Allow
17531 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
17533 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17535 * read-md.c (decimal_string): Rename to ...
17536 (md_decimal_string): ... this.
17537 (handle_enum): Reflect this.
17539 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17542 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
17544 2015-07-06 Richard Biener <rguenther@suse.de>
17546 PR middle-end/66759
17547 * match.pd: Add missing constraint of y to REAL_CST in
17548 REAL_CST - x CMP y to y - CST CMP x simplification.
17550 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
17552 PR tree-optimization/66757
17553 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
17555 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
17556 Sandra Loosemore <sandra@codesourcery.com>
17558 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
17559 Delete extern declaration.
17560 (gprel_constant_p): Add extern declaration.
17561 * config/nios2/constraints.md ("S"): Use gprel_constant_p
17562 instead of nios2_symbol_ref_in_small_data_p.
17563 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
17564 (nios2_symbol_ref_in_small_data_p): Make static.
17565 (gprel_constant_p): Make non-static.
17567 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
17569 * doc/fragments.texi (Target Fragment): Convert debian.org
17571 * doc/install.texi (Configuration): Ditto.
17573 2015-07-05 Jakub Jelinek <jakub@redhat.com>
17575 PR tree-optimization/66718
17576 * tree-vect-stmts.c (vectorizable_call): Replace uses of
17577 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
17579 PR tree-optimization/66718
17580 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
17581 vectorizable_load, vectorizable_condition): Move vectype,
17582 nunits, ncopies computation after checking what kind of statement
17585 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17587 * target-insns.def (extv, extzv, insv): New targetm instruction
17589 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
17591 * recog.c (simplify_while_replacing): Likewise.
17593 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17595 * target-insns.def (doloop_begin, doloop_end): New targetm
17596 instruction patterns.
17597 * loop-init.c: Include target.h.
17598 (pass_loop2::gate): Use the new targetm patterns instead of
17599 HAVE_*/gen_* interface.
17600 (pass_rtl_doloop::gate): Likewise.
17601 (pass_rtl_doloop::execute): Remove preprocessor condition.
17602 * hw-doloop.c: Build unconditionally.
17603 * loop-doloop.c: Likewise.
17604 (doloop_optimize): Use the new targetm patterns instead of
17605 HAVE_*/gen_* interface.
17606 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
17607 * modulo-sched.c (doloop_register_get): Likewise.
17609 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17611 * target-insns.def (clear_cache): New targetm instruction pattern.
17612 * builtins.c (expand_builtin___clear_cache): Use it instead of
17613 HAVE_*/gen_* interface.
17615 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17617 * target-insns.def (allocate_stack, check_stack, probe_stack)
17618 (probe_stack_address, split_stack_prologue, split_stack_space_check):
17619 New targetm instruction patterns.
17620 * explow.c (allocate_dynamic_stack_space): Use them instead of
17621 HAVE_*/gen_* interface.
17622 (emit_stack_probe): Likewise.
17623 (probe_stack_range): Likewise.
17624 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17626 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17628 * target-insns.def (stack_protect_set, stack_protect_test): New
17629 targetm instruction patterns.
17630 * cfgexpand.c (stack_protect_prologue): Use them instead of
17631 HAVE_*/gen_* interface.
17632 * function.c (stack_protect_epilogue): Likewise.
17634 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17636 * expr.h (gen_move_insn_uncast): Delete.
17637 * expr.c (gen_move_insn_uncast): Delete.
17639 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17641 * target-insns.def (restore_stack_block, restore_stack_function)
17642 (restore_stack_nonlocal, save_stack_block, save_stack_function)
17643 (save_stack_nonlocal): New targetm instruction patterns.
17644 * builtins.c (expand_builtin_apply): Use them instead of
17645 HAVE_*/gen_* interface.
17646 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
17648 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17650 * target-insns.def (trap): New targetm instruction pattern.
17651 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
17653 * explow.c (allocate_dynamic_stack_space): Likewise.
17654 * ifcvt.c (find_if_header): Likewise.
17656 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17658 * target-insns.def (prefetch): New targetm instruction pattern.
17659 * tree-ssa-loop-prefetch.c: Include targeth.
17660 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
17661 of HAVE_*/gen_* interface.
17662 * builtins.c (expand_builtin_prefetch): Likewise.
17663 * toplev.c (process_options): Likewise.
17665 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17667 * target-insns.def (untyped_call, untyped_return): New targetm
17668 instruction patterns.
17669 * builtins.c (expand_builtin_apply): Use them instead of
17670 HAVE_*/gen_* interface.
17671 (result_vector): Define unconditionally.
17673 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17675 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
17676 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
17677 (nonlocal_goto_receiver): New targetm instruction patterns.
17678 * builtins.c (expand_builtin_setjmp_setup): Use them instead
17679 of HAVE_*/gen_* interface.
17680 (expand_builtin_setjmp_receiver): Likewise.
17681 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
17682 * except.c (expand_dw2_landing_pad_for_region): Likewise.
17684 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17686 * target.def: Add code_for_* hooks.
17687 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
17688 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
17689 * target-insns.def (casesi, tablejump): New targetm instruction
17691 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
17692 (do_tablejump): Likewise.
17693 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
17694 (expand_sjlj_dispatch_table): Likewise.
17695 * targhooks.c (default_case_values_threshold): Likewise.
17697 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
17699 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
17700 Use rtx_insn * instead of rtx.
17701 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
17702 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
17703 (nios2_call_tls_get_addr): Likewise.
17704 (nios2_emit_expensive_div): Likewise.
17705 (nios2_emit_move_sequence): Change return type to bool.
17706 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
17707 Change return type to bool.
17709 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
17712 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
17714 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
17717 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
17718 of register_operand. Remove constraint.
17720 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
17722 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
17723 the first argument.
17725 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
17727 * attribs.c (decl_attributes): Guard inform with the return value
17728 of the preceding warning.
17730 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
17732 * doc/invoke.texi (moverride): Move to correct section.
17734 2015-07-03 Richard Biener <rguenther@suse.de>
17736 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
17738 (dt_operand::gen_gimple_expr): After valueizing operands
17739 re-canonicalize operand order for commutative tree codes.
17741 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
17744 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
17746 (__crc32w): Likewise.
17747 (__crc32d): Likewise.
17748 (__rdpmc): Likewise.
17749 (__rdtscp): Likewise.
17750 (_rdpmc): Likewise.
17751 (_rdtscp): Likewise.
17752 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
17755 2015-07-03 Richard Biener <rguenther@suse.de>
17757 * fold-const.c (fold_mathfn_compare): Remove.
17758 (fold_inf_compare): Likewise.
17759 (fold_comparison): Move floating point comparison simplifications...
17760 * match.pd: ... to patterns here. Introduce simple_comparisons
17761 operator list and use it for patterns formerly in fold_comparison.
17763 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
17765 PR tree-optimization/66119
17766 * toplev.c (process_options): Don't set up default values for
17767 the sra_max_scalarization_size_{speed,size} parameters.
17768 * tree-sra (analyze_all_variable_accesses): If no values
17769 have been set for the sra_max_scalarization_size_{speed,size}
17770 parameters, call get_move_ratio to get target defaults.
17772 2015-07-03 Richard Biener <rguenther@suse.de>
17774 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
17775 * match.pd: ... here.
17777 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
17780 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
17781 is not actually the default on FreeBSD.
17783 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17785 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
17787 (CMPGE_8HI): Likewise.
17788 (CMPGE_4SI): Likewise.
17789 (CMPGE_2DI): Likewise.
17790 (CMPGE_U16QI): Likewise.
17791 (CMPGE_U8HI): Likewise.
17792 (CMPGE_U4SI): Likewise.
17793 (CMPGE_U2DI): Likewise.
17794 (CMPLE_16QI): Likewise.
17795 (CMPLE_8HI): Likewise.
17796 (CMPLE_4SI): Likewise.
17797 (CMPLE_2DI): Likewise.
17798 (CMPLE_U16QI): Likewise.
17799 (CMPLE_U8HI): Likewise.
17800 (CMPLE_U4SI): Likewise.
17801 (CMPLE_U2DI): Likewise.
17802 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17803 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
17804 ALTIVEC_BUILTIN_VEC_CMPLE.
17805 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
17806 floating-point vector modes.
17807 (vector_nlt<mode>): New define_expand.
17808 (vector_nltu<mode>): Likewise.
17809 (vector_ngt<mode>): Likewise.
17810 (vector_ngtu<mode>): Likewise.
17812 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
17814 PR rtl-optimization/66706
17815 * combine.c (make_compound_operation): If an AND of SUBREG of
17816 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
17818 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
17820 * tree-pass.h (make_pass_ch_vect): New.
17821 * passes.def: Add pass_ch_vect just before pass_if_conversion.
17823 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
17824 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
17825 make_pass_ch_vect): New.
17826 (pass_ch): Extend ch_base.
17828 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
17829 (ch_base::copy_headers): ...here.
17831 2015-07-02 Richard Biener <rguenther@suse.de>
17833 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
17834 * fold-const.c (get_pointer_modulus_and_residue): Remove.
17835 (fold_binary_loc): Implement (T)ptr & CST in terms of
17836 get_pointer_alignment_1.
17837 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
17838 Make sure to build the alignment test on a SSA name without
17839 final alignment info valid only after the prologue.
17841 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
17843 * config/cris/cris.md ("epilogue"): Remove condition.
17844 ("prologue"): Ditto.
17846 2015-07-02 Richard Biener <rguenther@suse.de>
17848 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
17849 parameter to record a condition that is false.
17850 (record_conditions): When recording an extra NE_EXPR that is
17851 true also record a EQ_EXPR that is false.
17853 2015-07-02 Bin Cheng <bin.cheng@arm.com>
17855 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
17856 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
17857 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
17858 (set_iv, find_interesting_uses_address, add_candidate_1): New
17859 argument to alloc_iv.
17860 (find_interesting_uses_op, find_interesting_uses_cond): Don't
17861 duplicate struct iv.
17862 (free_loop_data): Don't free struct iv explicitly.
17863 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
17865 2015-07-01 DJ Delorie <dj@redhat.com>
17867 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
17869 (SUPPORTS_DISCRIMINATOR): Define.
17871 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
17874 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
17875 there are no CALLs in the same pattern.
17877 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17879 PR rtl-optimization/61047
17880 * rtlanal.c (get_initial_register_offset): New function.
17881 (rtx_addr_can_trap_p_1): Check offsets of stack references.
17883 2015-07-01 Richard Biener <rguenther@suse.de>
17885 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
17886 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
17887 ~X CMP C -> X CMP' ~C to ...
17888 * match.pd: ... patterns here.
17890 2015-07-01 Nick Clifton <nickc@redhat.com>
17892 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
17893 a 16-bit value into a 20-bit memory slot.
17895 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17897 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17898 "aarch64_tiny", "aarch64_small", "aarch64_large",
17899 "aarch64_little_endian", "aarch64_big_endian".
17901 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17903 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
17904 Document "aarch64_small_fpic".
17906 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17908 * configure.ac: Add check for aarch64 assembler -fpic relocation
17910 * configure: Regenerate.
17911 * config.in: Regenerate.
17912 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
17913 to -fPIC if not support of -fpic relocation modifier in assembler.
17915 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
17918 * rtl.c (classify_insn): Handle returns in PARALLELs.
17920 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
17922 PR middle-end/66633
17923 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
17924 to true if the function is nested and if not optimizing.
17925 (convert_local_omp_clauses): Initialize need_frame to true if the
17926 function contains nested functions and if not optimizing.
17928 2015-07-01 Richard Biener <rguenther@suse.de>
17930 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
17931 (X & Y) ^ Y -> ~X & Y transforms to ...
17932 * match.pd: ... here.
17934 2015-07-01 Richard Biener <rguenther@suse.de>
17936 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
17937 of converts to avoid uninteresting noise from the conversion
17938 simplifying patterns.
17940 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
17942 * config/c6x/c6x.c (try_rename_operands): Do not depend on
17943 gcc_assert evaluating its argument for side-effect.
17945 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
17948 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
17951 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17953 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
17954 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
17955 (hash_scc): Add this_ref_p and ref_p parameters and pass them
17956 to the inner DFS walk.
17958 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17960 * target-insns.def (jump): New targetm instruction pattern.
17961 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
17962 instead of gen_jump.
17963 (fix_up_crossing_landing_pad): Likewise.
17964 (add_labels_and_missing_jumps): Likewise.
17965 (fix_crossing_conditional_branches): Likewise.
17966 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17967 (force_nonfallthru_and_redirect): Likewise.
17968 * cse.c (cse_insn): Likewise.
17969 * expmed.c (expand_divmod): Likewise.
17970 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
17971 * haifa-sched.c (init_before_recovery): Likewise.
17972 (sched_create_recovery_edges): Likewise.
17973 * ifcvt.c (find_cond_trap): Likewise.
17974 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
17975 (expand_float, expand_fix): Likewise.
17976 * stmt.c (emit_jump): Likewise.
17978 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17980 * defaults.h (HAVE_load_multiple, gen_load_multiple)
17981 (HAVE_store_multiple, gen_store_multiple): Delete.
17982 * target-insns.def (load_multiple, store_multiple): New targetm
17983 instruction patterns.
17984 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
17985 of HAVE_*/gen_* interface.
17987 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17989 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
17990 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
17991 (gen_mem_signal_fence): Delete.
17992 * target-insns.def (mem_signal_fence, mem_thread_fence)
17993 (memory_barrier): New targetm instruction patterns.
17994 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
17996 (expand_mem_signal_fence): Likewise.
17998 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18000 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18001 * target-insns.def (epilogue, prologue, sibcall_prologue): New
18002 targetm instruction patterns.
18003 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18005 * calls.c (expand_call): Likewise.
18006 * cfgrtl.c (cfg_layout_finalize): Likewise.
18007 * df-scan.c (df_get_entry_block_def_set): Likewise.
18008 (df_get_exit_block_use_set): Likewise.
18009 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18010 * final.c (final_start_function): Likewise.
18011 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18012 (reposition_prologue_and_epilogue_notes): Likewise.
18013 * reorg.c (find_end_label): Likewise.
18014 * toplev.c (process_options): Likewise.
18016 2015-06-30 David Malcolm <dmalcolm@redhat.com>
18018 * typed-splay-tree.h: New file.
18020 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
18023 * lra-int.h (lra_substitute_pseudo): Add a parameter.
18024 (lra_substitute_pseudo_within_insn): Ditto.
18025 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
18027 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
18028 to lra_substitute_pseudo.
18029 * lra-lives.c (process_bb_lives): Add an argument to
18030 lra_substitute_pseudo_within_insn call.
18031 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18032 argument to lra_substitute_pseudo and
18033 lra_substitute_pseudo_within_insn calls.
18034 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18036 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18038 * configure: Regenerated.
18040 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18042 * config.gcc: Support i[34567]86-*-elfiamcu target.
18043 * config/i386/iamcu.h: New.
18044 * config/i386/i386.opt: Add -miamcu.
18045 * doc/invoke.texi: Document -miamcu.
18046 * common/config/i386/i386-common.c (ix86_handle_option): Turn
18047 off x87/MMX/SSE/AVX codegen for -miamcu.
18048 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18049 __iamcu/__iamcu__ for -miamcu.
18050 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18051 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18052 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18053 * config/i386/i386.c (ix86_option_override_internal): Ignore and
18054 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
18055 MCU by default. Default long double to 64-bit for Intel MCU.
18056 Turn on -freg-struct-return for Intel MCU. Issue an error when
18057 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18059 (function_arg_advance_32): Pass value whose size is no larger
18060 than 8 bytes in registers for Intel MCU.
18061 (function_arg_32): Likewise.
18062 (ix86_return_in_memory): Return value whose size is no larger
18063 than 8 bytes in registers for Intel MCU.
18064 (iamcu_alignment): New function.
18065 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18067 (ix86_local_alignment): Don't increase alignment for Intel MCU.
18068 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18071 2015-06-30 Marek Polacek <polacek@redhat.com>
18073 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
18074 both operands of the resulting expression.
18076 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
18077 the final expression with the operand's type and then convert
18078 it to the type of the expression.
18080 2015-06-30 Richard Biener <rguenther@suse.de>
18082 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18083 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18084 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18085 * match.pd: ... to patterns here.
18087 2015-06-30 Richard Biener <rguenther@suse.de>
18089 PR tree-optimization/66704
18090 * tree-vect-data-refs.c (vect_setup_realignment): Use
18091 make_ssa_name for non-SSA name source.
18093 2015-06-30 Jakub Jelinek <jakub@redhat.com>
18095 PR middle-end/66702
18096 * omp-low.c (simd_clone_adjust): Handle addressable linear
18097 or uniform parameters or non-gimple type uniform parameters.
18099 2015-06-30 Richard Biener <rguenther@suse.de>
18101 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18102 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18103 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18104 * match.pd: ... here.
18105 Add a few cases of A - B -> A + (-B) when B "easily" negates.
18106 Move (x & y) | x -> x and friends before
18107 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18109 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18111 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18112 -mfix-ut699 is not specified.
18113 (leon3_load): Rename into...
18114 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
18117 2015-06-30 Marek Polacek <polacek@redhat.com>
18119 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18120 * match.pd: ... here.
18122 2015-06-30 Richard Biener <rguenther@suse.de>
18124 * target-insns.def (canonicalize_funcptr_for_compare): Add.
18125 * fold-const.c (build_range_check): Replace uses of
18126 HAVE_canonicalize_funcptr_for_compare.
18127 (fold_widened_comparison): Likewise.
18128 (fold_sign_changed_comparison): Likewise.
18129 * dojump.c: Include "target.h".
18130 (do_compare_and_jump): Replace uses of
18131 HAVE_canonicalize_funcptr_for_compare and
18132 gen_canonicalize_funcptr_for_compare.
18133 * expr.c (do_store_flag): Likewise.
18135 2015-06-30 Tom de Vries <tom@codesourcery.com>
18137 PR tree-optimization/66652
18138 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18139 max_loop_iterations to determine if nit + 1 overflows.
18141 2015-06-30 Richard Biener <rguenther@suse.de>
18143 * tree-vrp.c (register_edge_assert_for_2): Also register
18144 asserts for dominating conversion results.
18146 2015-06-30 Bin Cheng <bin.cheng@arm.com>
18148 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18149 field in struct iv.
18151 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
18154 * configure.ac: Fix filds and fildq test for 64-bit.
18155 * configure: Regenerated.
18157 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
18159 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18160 (nvptx_reorg): Here. Keep the non-subreg pieces.
18162 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
18164 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18165 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18167 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
18169 * config/i386/i386.md (*jcc_1): Use %! in asm template.
18170 Set attribute "length_nobnd" instead of "length".
18173 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18175 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
18177 * config/nios2/nios2.c (nios2_delegitimize_address): Make
18178 assert less restrictive.
18180 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
18183 * cgraphunit.c (cgraph_node::finalize_function): Do not call
18184 do_warn_unused_parameter.
18185 * function.c (do_warn_unused_parameter): Move from here.
18186 * function.h (do_warn_unused_parameter): Do not declare.
18188 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18191 * gcc.target/arm/armv-sync-comp-swap.c: New.
18192 * gcc.target/arm/armv-sync-op-acquire.c: New.
18193 * gcc.target/arm/armv-sync-op-full.c: New.
18194 * gcc.target/arm/armv-sync-op-release.c: New.
18196 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18199 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18200 initial acquire barrier with final barrier.
18202 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18205 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18206 initial acquire barrier with final barrier.
18208 2015-06-29 Richard Henderson <rth@redhat.com>
18210 * config/i386/constraints.md (Bf): New constraint.
18211 * config/i386/i386-c.c (ix86_target_macros): Define
18212 __GCC_ASM_FLAG_OUTPUTS__.
18213 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18215 * doc/extend.texi (FlagOutputOperands): Document them.
18217 2015-06-29 Jiong Wang <jiong.wang@arm.com>
18219 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18220 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18222 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18223 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18224 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18225 (aarch64_symbol_context): Ditto.
18226 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18227 and use new pattern name.
18228 (aarch64_expand_mov_immediate): Ditto.
18229 (aarch64_print_operand): Ditto.
18230 (aarch64_classify_tls_symbol): Ditto.
18232 2015-06-29 Marek Polacek <polacek@redhat.com>
18233 Marc Glisse <marc.glisse@inria.fr>
18235 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18236 * match.pd: ... pattern here.
18238 2015-06-29 Tom de Vries <tom@codesourcery.com>
18240 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18241 function structure.
18243 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18245 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18246 feature description, split out the native option, add a link to
18247 the feature documentation, rearrange and slightly rewrite text.
18248 (Aarch64 options, -mcpu): Likewise.
18249 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
18250 +rdma implies Adv. SIMD.
18252 2015-06-29 Marek Polacek <polacek@redhat.com>
18255 * function.c (stack_protect_epilogue): Remove a cast to int.
18256 * doc/invoke.texi: Update -Wswitch-bool description.
18258 2015-06-29 Richard Biener <rguenther@suse.de>
18260 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18261 * fold-const.c (fold_binary_loc): Move &A - &B simplification
18262 via ptr_difference_const ...
18263 * match.pd: ... here.
18264 When matching (X ^ Y) == Y also match with swapped operands.
18266 2015-06-29 Richard Biener <rguenther@suse.de>
18268 * lto-streamer.h (LTO_major_version): Bump to 5.
18270 2015-06-29 Richard Biener <rguenther@suse.de>
18272 PR tree-optimization/66677
18273 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18274 STMT_VINFO_VEC_STMT clobbering less strict.
18276 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
18278 PR middle-end/64130
18279 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18280 division, compute max and min when value ranges for dividend and
18281 divisor are available.
18283 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
18284 Sandra Loosemore <sandra@codesourcery.com>
18286 * regrename.h (regrename_do_replace): Change to return bool.
18287 * regrename.c (rename_chains): Check return value of
18288 regname_do_replace.
18289 (regrename_do_replace): Re-validate the modified insns and
18290 return bool status.
18291 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18292 Update to match rename_chains changes.
18293 * config/c6x/c6x.c (try_rename_operands): Assert that
18294 regrename_do_replace returns true.
18296 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
18298 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18299 operand 2 here. Use copy_addr_to_reg to copy non-index
18300 register operand 2 to a temporary.
18301 (<mode>_stx): Ditto for operand 1.
18302 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18303 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18304 (ix86_store_bounds): Ditto.
18306 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
18308 * print-tree.c (print_node) [TREE_VEC]: Print its length.
18310 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
18312 * gimple.c (gimple_call_set_fndecl): Remove.
18313 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18314 build1_loc directly instead of build_fold_addr_expr_loc.
18316 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18318 * hash-map.h (hash_map::traverse): Use the definition of the
18319 Key typedef rather than the typedef itself.
18321 2015-06-26 Martin Jambor <mjambor@suse.cz>
18324 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18325 NULL instead of calling dump_enabled_p.
18327 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18329 * config/aarch64/aarch64.opt: (override): New.
18330 * doc/invoke.texi (override): Document.
18331 * config/aarch64/aarch64.c (aarch64_flag_desc): New
18332 (aarch64_fusible_pairs): Likewise.
18333 (aarch64_tuning_flags): Likewise.
18334 (aarch64_tuning_override_function): Likewise.
18335 (aarch64_tuning_override_functions): Likewise.
18336 (aarch64_parse_one_option_token): Likewise.
18337 (aarch64_parse_boolean_options): Likewise.
18338 (aarch64_parse_fuse_string): Likewise.
18339 (aarch64_parse_tune_string): Likewise.
18340 (aarch64_parse_one_override_token): Likewise.
18341 (aarch64_parse_override_string): Likewise.
18342 (aarch64_override_options): Parse the -override string if it
18345 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18347 * config/aarch64/aarch64-protos.h (tune_params): Remove
18348 const from members.
18349 (aarch64_tune_params): Remove const, change to no longer be
18351 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18352 change to no longer be a pointer, initialize to generic_tunings.
18353 (aarch64_min_divisions_for_recip_mul): Change dereference of
18354 aarch64_tune_params to member access.
18355 (aarch64_reassociation_width): Likewise.
18356 (aarch64_rtx_mult_cost): Likewise.
18357 (aarch64_address_cost): Likewise.
18358 (aarch64_branch_cost): Likewise.
18359 (aarch64_rtx_costs): Likewise.
18360 (aarch64_register_move_cost): Likewise.
18361 (aarch64_memory_move_cost): Likewise.
18362 (aarch64_sched_issue_rate): Likewise.
18363 (aarch64_builtin_vectorization_cost): Likewise.
18364 (aarch64_override_options): Take a copy of the selected tuning
18365 struct in to aarch64_tune_params, rather than just setting
18366 a pointer, change dereferences of aarch64_tune_params to member
18368 (aarch64_override_options_after_change): Change dereferences of
18369 aarch64_tune_params to member access.
18370 (aarch64_macro_fusion_p): Likewise.
18371 (aarch_macro_fusion_pair_p): Likewise.
18372 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18374 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18376 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18377 (aarch64_tune_flags): Likewise.
18378 (AARCH64_TUNE_FMA_STEERING): Likewise.
18379 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18380 to AARCH64_FL_USE_FMA_STEERING_PASS.
18381 (cortex-a57.cortex-a53): Likewise.
18382 (cortex-a72): Use cortexa72_tunings.
18383 (cortex-a72.cortex-a53): Likewise.
18384 (exynos-m1): Likewise.
18385 * config/aarch64/aarch64-protos.h (tune_params): Add
18386 a field: extra_tuning_flags.
18387 * config/aarch64/aarch64-tuning-flags.def: New.
18388 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18389 (aarch64_extra_tuning_flags): Likewise.
18390 (aarch64_tune_params): Declare here.
18391 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18392 (cortexa53_tunings): Likewise.
18393 (cortexa57_tunings): Likewise.
18394 (thunderx_tunings): Likewise.
18395 (xgene1_tunings): Likewise.
18396 (cortexa72_tunings): New.
18397 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18398 (gate): Check against aarch64_tune_params.
18399 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18402 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18404 * config/aarch64/aarch64-fusion-pairs.def: New.
18405 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18406 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18407 aarch64_fusion_pairs.
18408 (AARCH64_FUSE_MOV_MOVK): Likewise.
18409 (AARCH64_FUSE_ADRP_ADD): Likewise.
18410 (AARCH64_FUSE_MOVK_MOVK): Likewise.
18411 (AARCH64_FUSE_ADRP_LDR): Likewise.
18412 (AARCH64_FUSE_CMP_BRANCH): Likewise.
18414 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18416 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18417 SYMBOL_SMALL_GOT_28K.
18418 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18419 relocation modifiers.
18420 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18421 (ldr_got_small_28k_<mode>): New.
18422 (ldr_got_small_28k_sidi): New.
18423 * config/aarch64/iterators.md (got_modifier): New mode iterator.
18424 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18425 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18426 SYMBOL_SMALL_GOT_28K.
18427 (aarch64_rtx_costs): Add costs for new instruction sequences.
18428 (initialize_aarch64_code_model): Initialize new model.
18429 (aarch64_classify_symbol): Recognize new model and new symbol classification.
18430 (aarch64_asm_preferred_eh_data_format): Support new model.
18431 (aarch64_load_symref_appropriately): Generate new instruction
18432 sequences for -fpic.
18433 (TARGET_USE_PSEUDO_PIC_REG): New definition.
18434 (aarch64_use_pseudo_pic_reg): New function.
18436 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18438 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18439 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
18440 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
18441 (aarch64_expand_mov_immediate): Ditto.
18442 (aarch64_print_operand): Ditto.
18443 (aarch64_classify_symbol): Ditto.
18445 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
18447 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
18449 2015-06-26 Bin Cheng <bin.cheng@arm.com>
18452 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
18453 assertion failed. Remove assertion itself.
18455 2015-06-26 Richard Biener <rguenther@suse.de>
18457 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
18458 and -A CMP CST -> A CMP -CST which is redundant with a pattern
18460 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
18461 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
18462 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
18463 * match.pd: ... patterns here.
18465 2015-06-26 Marek Polacek <polacek@redhat.com>
18467 * match.pd ((x | y) & ~(x & y) -> x ^ y,
18468 (x | y) & (~x ^ y) -> x & y): New patterns.
18470 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18472 * rtl.h (emit): Add an optional boolean parameter to control
18473 whether barriers are emitted.
18474 * emit-rtl.c (emit): Likewise.
18475 * gensupport.c (get_emit_function): Return null rather than "emit".
18476 * genemit.c (gen_emit_seq): Handle the null return value.
18477 Don't emit barriers after the final instruction in the sequence.
18478 * gentarget-def.c (main): Don't emit barriers after the instruction.
18480 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18482 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
18483 TARGET_UNIFIED_ASM.
18485 2015-06-26 Richard Biener <rguenther@suse.de>
18487 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
18489 2015-06-26 Richard Biener <rguenther@suse.de>
18491 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
18492 irrespective on whether the inner operation has a single use
18493 of both off are constant.
18495 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
18496 Segher Boessenkool <segher@kernel.crashing.org>
18499 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
18500 before doing PUT_MODE or PUT_CODE on operands to avoid
18501 in-place RTX modification.
18503 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18505 * gentarget-def.c (def_target_insn): Cast return of strtol to
18508 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18510 * gimple.h (gimple_call_set_fn): Move inline function.
18511 * gimple.c (gimple_call_set_fn): Relocate here.
18513 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
18517 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
18518 the replacement insn will work.
18520 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18522 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
18525 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18527 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
18528 * cgraph.h: Include ipa-ref.h and plugin-api.h.
18529 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
18530 (symtab_node::address_can_be_compared_p): Move function.
18531 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
18533 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
18534 * auto-profile.c: Likewise.
18535 * bb-reorder.c: Likewise.
18536 * builtins.c: Likewise.
18537 * calls.c: Likewise.
18538 * cfgexpand.c: Likewise.
18539 * cgraphbuild.c: Likewise.
18540 * cgraphclones.c: Likewise.
18541 * cgraphunit.c: Likewise.
18542 * combine.c: Likewise.
18543 * coverage.c: Likewise.
18544 * data-streamer-in.c: Likewise.
18545 * data-streamer-out.c: Likewise.
18546 * data-streamer.c: Likewise.
18547 * dbxout.c: Likewise.
18548 * dwarf2out.c: Likewise.
18549 * except.c: Likewise.
18550 * expr.c: Likewise.
18551 * final.c: Likewise.
18552 * fold-const.c: Likewise.
18553 * ggc-page.c: Likewise.
18554 * gimple-fold.c: Likewise.
18555 * gimple-iterator.c: Likewise.
18556 * gimple-pretty-print.c: Likewise.
18557 * gimple-streamer-in.c: Likewise.
18558 * gimple-streamer-out.c: Likewise.
18559 * gimple.c: Likewise.
18560 * gimplify.c: Likewise.
18561 * ipa-chkp.c: Likewise.
18562 * ipa-comdats.c: Likewise.
18563 * ipa-cp.c: Likewise.
18564 * ipa-devirt.c: Likewise.
18565 * ipa-icf-gimple.c: Likewise.
18566 * ipa-icf.c: Likewise.
18567 * ipa-inline-analysis.c: Likewise.
18568 * ipa-inline-transform.c: Likewise.
18569 * ipa-inline.c: Likewise.
18570 * ipa-polymorphic-call.c: Likewise.
18571 * ipa-profile.c: Likewise.
18572 * ipa-prop.c: Likewise.
18573 * ipa-pure-const.c: Likewise.
18574 * ipa-ref.c: Likewise.
18575 * ipa-reference.c: Likewise.
18576 * ipa-split.c: Likewise.
18577 * ipa-utils.c: Likewise.
18578 * ipa-visibility.c: Likewise.
18580 * langhooks.c: Likewise.
18581 * lto-cgraph.c: Likewise.
18582 * lto-compress.c: Likewise.
18583 * lto-opts.c: Likewise.
18584 * lto-section-in.c: Likewise.
18585 * lto-section-out.c: Likewise.
18586 * lto-streamer-in.c: Likewise.
18587 * lto-streamer-out.c: Likewise.
18588 * lto-streamer.c: Likewise.
18589 * omp-low.c: Likewise.
18590 * opts-global.c: Likewise.
18591 * passes.c: Likewise.
18592 * predict.c: Likewise.
18593 * print-tree.c: Likewise.
18594 * profile.c: Likewise.
18596 * sanopt.c: Likewise.
18597 * stor-layout.c: Likewise.
18598 * symtab.c: Likewise.
18599 * toplev.c: Likewise.
18600 * trans-mem.c: Likewise.
18601 * tree-cfg.c: Likewise.
18602 * tree-chkp.c: Likewise.
18603 * tree-eh.c: Likewise.
18604 * tree-emutls.c: Likewise.
18605 * tree-inline.c: Likewise.
18606 * tree-nested.c: Likewise.
18607 * tree-parloops.c: Likewise.
18608 * tree-pretty-print.c: Likewise.
18609 * tree-profile.c: Likewise.
18610 * tree-sra.c: Likewise.
18611 * tree-ssa-alias.c: Likewise.
18612 * tree-ssa-live.c: Likewise.
18613 * tree-ssa-loop-ivcanon.c: Likewise.
18614 * tree-ssa-loop-ivopts.c: Likewise.
18615 * tree-ssa-pre.c: Likewise.
18616 * tree-ssa-sccvn.c: Likewise.
18617 * tree-ssa-strlen.c: Likewise.
18618 * tree-ssa-structalias.c: Likewise.
18619 * tree-streamer-in.c: Likewise.
18620 * tree-streamer-out.c: Likewise.
18621 * tree-streamer.c: Likewise.
18622 * tree-switch-conversion.c: Likewise.
18623 * tree-tailcall.c: Likewise.
18624 * tree-vect-data-refs.c: Likewise.
18625 * tree-vect-stmts.c: Likewise.
18626 * tree-vectorizer.c: Likewise.
18627 * tree.c: Likewise.
18628 * tsan.c: Likewise.
18629 * ubsan.c: Likewise.
18630 * value-prof.c: Likewise.
18631 * varasm.c: Likewise.
18632 * varpool.c: Likewise.
18633 * config/arm/arm.c: Likewise.
18634 * config/bfin/bfin.c: Likewise.
18635 * config/c6x/c6x.c: Likewise.
18636 * config/cris/cris.c: Likewise.
18637 * config/darwin-c.c: Likewise.
18638 * config/darwin.c: Likewise.
18639 * config/i386/i386.c: Likewise.
18640 * config/i386/winnt.c: Likewise.
18641 * config/microblaze/microblaze.c: Likewise.
18642 * config/mips/mips.c: Likewise.
18643 * config/rs6000/rs6000.c: Likewise.
18644 * config/rx/rx.c: Likewise.
18645 * config/s390/s390.c: Likewise.
18646 * config/tilegx/mul-tables.c: Likewise.
18648 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18650 * config/aarch64/aarch64.c, config/alpha/alpha.c,
18651 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
18652 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
18653 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
18654 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18655 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18656 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18657 config/microblaze/microblaze.c, config/mips/mips.c,
18658 config/mmix/mmix.c, config/mn10300/mn10300.c,
18659 config/moxie/moxie.c, config/msp430/msp430.c,
18660 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18661 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18662 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18663 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18664 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18665 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18666 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
18667 target-def.h include.
18668 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
18670 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18672 * Makefile.in (TARGET_DEF): Add target-insns.def.
18673 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
18674 (build/gentarget-def.o): New rule.
18675 (genprogrtl): Add target-def.
18676 * target-insns.def, gentarget-def.c: New files.
18677 * target.def: Add targetm.have_* and targetm.gen_* hooks,
18678 based on the contents of target-insns.def.
18679 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
18680 (HAVE_return, gen_return): Delete.
18681 * target-def.h: Include insn-target-def.h.
18682 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
18683 instead of direct calls. Rely on them to do the appropriate assertions.
18684 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
18685 (convert_jumps_to_returns): Use targetm interface instead of
18687 (thread_prologue_and_epilogue_insns): Likewise.
18688 * reorg.c (find_end_label, dbr_schedule): Likewise.
18689 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
18690 * shrink-wrap.c (convert_to_simple_return): Likewise.
18691 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
18693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18695 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
18696 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18697 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
18698 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
18699 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18700 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18701 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18702 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
18703 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
18704 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18705 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18706 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18707 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18708 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18709 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18710 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
18713 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18715 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
18716 (unbounded_int_hashmap_traits::key_type): Likewise.
18717 * hash-map.h (hash_map): Get the key type from the traits.
18718 * hash-traits.h (default_hash_traits): By default, inherit from the
18719 template parameter.
18720 * alias.c (alias_set_traits): Delete.
18721 (alias_set_entry_d::children): Use alias_set_hash as the first
18722 template parameter.
18723 (record_alias_subset): Update accordingly.
18724 * except.c (tree_hash_traits): Delete.
18725 (type_to_runtime_map): Use tree_hash as the first template parameter.
18726 (init_eh): Update accordingly.
18727 * genmatch.c (capture_id_map_hasher): Delete.
18728 (cid_map_t): Use nofree_string_hash as first template parameter.
18729 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
18730 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18731 Use symbol_compare_hash as the first template parameter in
18732 subdivide_hash_map.
18733 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
18734 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
18735 template parameter.
18736 * passes.c (pass_registry_hasher): Delete.
18737 (name_to_pass_map): Use nofree_string_hash as the first template
18739 (register_pass_name): Update accordingly.
18740 * sanopt.c (sanopt_tree_map_traits): Delete.
18741 (sanopt_tree_triplet_map_traits): Delete.
18742 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
18743 template parameter.
18744 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
18745 the first template parameter.
18746 * sese.c (rename_map_hasher): Delete.
18747 (rename_map_type): Use tree_ssa_name_hash as the first template
18749 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
18750 (function_summary::m_map): Use map_hash as the first template
18752 (function_summary::release): Update accordingly.
18753 * tree-if-conv.c (phi_args_hash_traits): Delete.
18754 (predicate_scalar_phi): Use tree_operand_hash as the first template
18755 parameter to phi_arg_map.
18756 * tree-inline.h (dependence_hasher): Delete.
18757 (copy_body_data::dependence_map): Use dependence_hash as the first
18758 template parameter.
18759 * tree-inline.c (remap_dependence_clique): Update accordingly.
18760 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
18761 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
18763 (addr_stridxptr): Update accordingly.
18764 * value-prof.c (profile_id_traits): Delete.
18765 (cgraph_node_map): Use profile_id_hash as the first template
18767 (init_node_map): Update accordingly.
18768 * config/alpha/alpha.c (string_traits): Delete.
18769 (machine_function::links): Use nofree_string_hash as the first
18770 template parameter.
18771 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
18772 * config/m32c/m32c.c (pragma_traits): Delete.
18773 (pragma_htab): Use nofree_string_hash as the first template parameter.
18774 (m32c_note_pragma_address): Update accordingly.
18775 * config/mep/mep.c (pragma_traits): Delete.
18776 (pragma_htab): Use nofree_string_hash as the first template parameter.
18777 (mep_note_pragma_flag): Update accordingly.
18778 * config/mips/mips.c (mips16_flip_traits): Delete.
18779 (mflip_mips16_htab): Use nofree_string_hash as the first template
18781 (mflip_mips16_use_mips16_p): Update accordingly.
18782 (local_alias_traits): Delete.
18783 (mips16_local_aliases): Use nofree_string_hash as the first template
18785 (mips16_local_alias): Update accordingly.
18787 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18789 * hash-map-traits.h (default_hashmap_traits): Delete.
18791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18793 * hash-map-traits.h (unbounded_hashmap_traits): New class.
18794 (unbounded_int_hashmap_traits): Likewise.
18795 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
18797 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18799 * ipa-icf.h (symbol_compare_hash): New class.
18800 (symbol_compare_hashmap_traits): Use it.
18801 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
18802 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
18803 (mem_alloc_description::reverse_mem_map_t): Remove redundant
18804 default_hashmap_traits.
18805 * sanopt.c (sanopt_tree_triplet_hash): New class.
18806 (sanopt_tree_triplet_map_traits): Use it.
18808 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18810 * gengtype-parse.c (require_template_declaration): Allow '+' in
18811 template parameters. Consolidate cases.
18812 * hash-traits.h (int_hash): New class.
18813 * alias.c (alias_set_hash): New structure.
18814 (alias_set_traits): Use it.
18815 * symbol-summary.h (function_summary::map_hash): New class.
18816 (function_summary::summary_hashmap_traits): Use it.
18817 * tree-inline.h (dependence_hash): New class.
18818 (dependence_hasher): Use it.
18819 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
18820 * value-prof.c (profile_id_hash): New class.
18821 (profile_id_traits): Use it.
18823 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18825 * config/mips/mips.c (mips16_flip_traits): Use it.
18826 (local_alias_traits, mips16_local_aliases): Convert from a map of
18827 rtxes to a map of symbol names.
18828 (mips16_local_alias): Update accordingly.
18830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18832 * hash-traits.h (string_hash, nofree_string_hash): New classes.
18833 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
18834 * passes.c (pass_registry_hasher): Likewise.
18835 * config/alpha/alpha.c (string_traits): Likewise.
18836 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
18837 * config/m32c/m32c.c (pragma_traits): Likewise.
18838 * config/mep/mep.c (pragma_traits): Likewise.
18840 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18842 * tree-hash-traits.h (tree_hash): New class.
18843 * except.c: Include tree-hash-traits.h.
18844 (tree_hash_traits): Use tree_hash.
18846 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18848 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
18849 * sese.c: Include tree-hash-traits.h.
18850 (rename_map_hasher): Use tree_ssa_name_hasher.
18852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18854 * tree-hash-traits.h (tree_decl_hash): New class.
18855 * tree-ssa-strlen.c: Include tree-hash-traits.h.
18856 (stridxlist_hash_traits): Use tree_decl_hash.
18858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18860 * tree-hash-traits.h: New file.
18861 (tree_operand_hash): New class.
18862 * sanopt.c: Include tree-hash-traits.h.
18863 (sanopt_tree_map_traits): Use tree_operand_hash.
18864 * tree-if-conv.c: Include tree-hash-traits.h.
18865 (phi_args_hash_traits): Use tree_operand_hash.
18866 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
18867 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
18869 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18871 * hash-map-traits.h: Include hash-traits.h.
18872 (simple_hashmap_traits): New class.
18873 * mem-stats.h (hash_map): Change the default traits to
18874 simple_hashmap_traits<default_hash_traits<Key> >.
18876 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18878 * hash-table.h: Update comments.
18880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18882 * hash-traits.h (default_hash_traits): New structure.
18883 * hash-set.h (default_hashset_traits): Delete.
18884 (hash_set): Use default_hash_traits<Key> instead of
18885 default_hashset_traits. Delete hash_entry type and use Key directly.
18886 * ipa-devirt.c (pair_traits): Delete.
18887 (default_hash_traits <type_pair>): Override.
18888 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
18889 (odr_types_equivalent_p, add_type_duplicate): Likewise.
18891 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18893 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
18895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18897 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
18898 (has_is_empty, is_empty_helper): Delete.
18899 (has_mark_deleted, mark_deleted_helper): Delete.
18900 (has_mark_empty, mark_empty_helper): Delete.
18901 (hash_table::is_deleted): Call the Descriptor unconditionally.
18902 (hash_table::is_empty): Likewise.
18903 (hash_table::mark_deleted): Likewise.
18904 (hash_table::mark_empty): Likewise.
18906 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18908 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
18909 redundant typedefs and members.
18910 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
18911 redundant typedefs.
18912 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
18913 * ipa-devirt.c (odr_name_hasher): Likewise.
18914 (polymorphic_call_target_hasher): Likewise.
18915 * ira-costs.c (cost_classes_hasher): Likewise.
18916 * statistics.c (stats_counter_hasher): Likewise.
18917 * trans-mem.c (log_entry_hasher): Likewise.
18918 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18919 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
18920 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
18921 * var-tracking.c (variable_hasher): Likewise.
18922 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
18923 Remove redundant typedefs and members.
18925 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18927 * hash-traits.h (ggc_cache_hasher): Rename to...
18928 (ggc_cache_remove): ...this and remove typedefs.
18929 (ggc_cache_ptr_hash): New class.
18930 * hash-table.h: Update commentary.
18931 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
18932 rather than ggc_cache_hasher.
18933 (const_wide_int_hasher, reg_attr_hasher): Likewise.
18934 (const_double_hasher, const_fixed_hasher): Likewise.
18935 * function.c (insn_cache_hasher): Likewise.
18936 * trans-mem.c (tm_wrapper_hasher): Likewise.
18937 * tree.h (tree_decl_map_cache_hasher): Likewise.
18938 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
18939 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
18940 * ubsan.c (tree_type_map_cache_hasher): Likewise.
18941 * varasm.c (tm_clone_hasher): Likewise.
18942 * config/i386/i386.c (dllimport_hasher): Likewise.
18943 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
18944 (tree_hasher): Likewise.
18946 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18948 * hash-traits.h (ggc_hasher): Rename to...
18949 (ggc_remover): ...this and remove typedefs.
18950 (ggc_cache_hasher): Update accordingly. Add typedefs.
18951 (ggc_ptr_hash): New class.
18952 * hash-table.h: Update comment.
18953 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
18955 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
18956 (tree_descriptor_hasher): Likewise.
18957 * cgraph.c (function_version_hasher): Likewise.
18958 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
18959 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
18960 (dw_loc_list_hasher, addr_hasher): Likewise.
18961 * function.h (used_type_hasher): Likewise.
18962 * function.c (temp_address_hasher): Likewise.
18963 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
18964 * libfuncs.h (libfunc_hasher): Likewise.
18965 * lto-streamer.h (decl_state_hasher): Likewise.
18966 * optabs.c (libfunc_decl_hasher): Likewise.
18967 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
18968 * varasm.c (section_hasher, object_block_hasher): Likewise.
18969 (const_rtx_desc_hasher): Likewise.
18970 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
18971 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
18973 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18975 * hash-traits.h (free_ptr_hash): New class.
18976 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
18977 rather than typed_free_remove. Remove redudant typedefs.
18978 (external_ref_hasher): Likewise.
18979 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
18980 (ehspec_hasher): Likewise.
18981 * ggc-common.c (saving_hasher): Likewise.
18982 * gimplify.c (gimplify_hasher): Likewise.
18983 * haifa-sched.c (delay_i2_hasher): Likewise.
18984 * loop-invariant.c (invariant_expr_hasher): Likewise.
18985 * loop-iv.c (biv_entry_hasher): Likewise.
18986 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
18987 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
18988 * tree-cfg.c (locus_discrim_hasher): Likewise.
18989 * tree-eh.c (finally_tree_hasher): Likewise.
18990 * tree-into-ssa.c (var_info_hasher): Likewise.
18991 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
18992 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
18993 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
18994 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
18995 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
18996 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
18997 (shared_bitmap_hasher): Likewise.
18998 * tree-ssa-threadupdate.c (redirection_data): Likewise.
18999 * tree-vectorizer.h (peel_info_hasher): Likewise.
19000 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19001 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19003 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19005 * hash-table.h: Update comments.
19006 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19007 (nofree_ptr_hash): New class.
19008 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19009 than typed_noop_remove. Remove redudant typedefs.
19010 * attribs.c (attribute_hasher): Likewise.
19011 * cfg.c (bb_copy_hasher): Likewise.
19012 * cselib.c (cselib_hasher): Likewise.
19013 * dse.c (invariant_group_base_hasher): Likewise.
19014 * dwarf2cfi.c (trace_info_hasher): Likewise.
19015 * dwarf2out.c (macinfo_entry_hasher): Likewise.
19016 (comdat_type_hasher, loc_list_hasher): Likewise.
19017 * gcse.c (pre_ldst_expr_hasher): Likewise.
19018 * genmatch.c (id_base): Likewise.
19019 * genrecog.c (test_pattern_hasher): Likewise.
19020 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19021 * haifa-sched.c (delay_i1_hasher): Likewise.
19022 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19023 * ipa-icf.h (congruence_class_group_hash): Likewise.
19024 * ipa-profile.c (histogram_hash): Likewise.
19025 * ira-color.c (allocno_hard_regs_hasher): Likewise.
19026 * lto-streamer.h (string_slot_hasher): Likewise.
19027 * lto-streamer.c (tree_entry_hasher): Likewise.
19028 * plugin.c (event_hasher): Likewise.
19029 * postreload-gcse.c (expr_hasher): Likewise.
19030 * store-motion.c (st_expr_hasher): Likewise.
19031 * tree-sra.c (uid_decl_hasher): Likewise.
19032 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19033 (ssa_name_var_hash): Likewise.
19034 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19035 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19036 * tree-ssa-pre.c (pre_expr_d): Likewise.
19037 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19038 * vtable-verify.h (registration_hasher): Likewise.
19039 * vtable-verify.c (vtbl_map_hasher): Likewise.
19040 * config/arm/arm.c (libcall_hasher): Likewise.
19041 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19042 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19043 * config/sol2.c (comdat_entry_hasher): Likewise.
19044 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19045 (print_fold_checksum, fold_checksum_tree): Likewise.
19046 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19047 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19048 (fold_build_call_array_loc): Likewise.
19049 * tree-ssa-ccp.c (gimple_htab): Likewise.
19050 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19051 rather than pointer_type.
19053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19055 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19056 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19058 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19060 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19061 (ggc_hasher::ggc_mx): Likewise.
19062 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
19063 that duplicate ggc_hasher ones.
19065 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19067 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19068 (gt_cleare_cache): Check here for deleted and empty entries.
19069 Replace handle_cache_entry with a call to keep_cache_entry.
19070 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19071 (ggc_cache_hasher::keep_cache_entry): New function.
19072 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19073 (tm_wrapper_hasher::keep_cache_entry): New function.
19074 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19075 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19076 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19077 (type_cache_hasher::keep_cache_entry): New function.
19078 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19079 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19080 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19081 (tree_type_map_cache_hasher::keep_cache_entry): New function.
19082 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19083 (tm_clone_hasher::keep_cache_entry): New function.
19084 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19085 (dllimport_hasher::keep_cache_entry): New function.
19087 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19089 * hash-table.h: Include hash-traits.h.
19090 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19091 (ggc_cache_hasher): Move to...
19092 * hash-traits.h: ...this new file.
19094 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19096 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19097 struct cl_optimization.
19098 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19099 * tree.c (make_node_stat): Allocate cl_optimization struct.
19100 (copy_node_stat): Allocate and copy cl_optimization struct.
19102 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19104 * function.h (struct incoming_args): Move struct.
19105 (pass_by_reference, reference_callee_copied): Remove prototypes.
19106 * emit-rtl.h (struct incoming_args): Relocate struct here.
19107 * calls.h (pass_by_reference, reference_callee_copied): Relocate
19109 * function.c (pass_by_reference, reference_callee_copied): Move.
19110 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19111 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19112 * ipa-chkp.c: Include calls.h.
19114 2015-06-25 Andrew Macleod <amacleod@redhat.com>
19116 * alias.h (alias_set_type): Move typedef.
19117 * coretypes.h (alias_set_type): Relocate typedef here.
19118 * rtl.h: Don't include alias.h.
19120 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19122 * cgraph.h (cgraph_rtl_info): Move to rtl.h
19123 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19125 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19126 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19128 * calls.c: Include hard-reg-set.h before rtl.h.
19131 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19132 Vladimir Makarov <vmakarov@redhat.com>
19134 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19137 2015-06-25 Richard Biener <rguenther@suse.de>
19139 * fold-const.c (fold_binary_loc): Move simplification of
19140 (X <<>> C1) & C2 ...
19141 * match.pd: ... here.
19143 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
19145 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19147 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19149 * match.pd: Add patterns for vec_conds between 1 and 0.
19151 2015-06-25 Richard Biener <rguenther@suse.de>
19153 * tree-vect-stmts.c (vectorizable_conversion): Do not set
19154 STMT_VINFO_VEC_STMT for SLP.
19155 (vectorizable_store): Likewise.
19156 (vectorizable_load): Likewise.
19157 (vect_transform_stmt): Catch SLP vectorization clobbering
19158 STMT_VINFO_VEC_STMT.
19160 2015-06-25 Richard Biener <rguenther@suse.de>
19162 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19164 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19165 cleanup resulting dead code and parameters.
19166 (vect_transform_slp_perm_load): Adjust.
19168 2015-06-25 Nick Clifton <nickc@redhat.com>
19170 * config/bfin/bfin.c (bfin_expand_prologue): Set
19171 current_function_static_stack_size if flag_stack_usage_info is set.
19172 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19173 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19174 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19175 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19177 2015-06-25 Tom de Vries <tom@codesourcery.com>
19179 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19180 comment that the generated IV is unsigned.
19182 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19185 * config/arm/arm.c (arm_dbx_register_number): Return
19186 DWARF_FRAME_REGISTERS by default.
19188 2015-06-25 Tom de Vries <tom@codesourcery.com>
19190 * dominance.c (calculate_dominance_info): Fix verify_dominators call
19191 argument. Call verify_dominator when reusing dominator info.
19193 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
19196 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19197 an additional element of the unspec vector. Modify indices
19199 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19200 * config/sh/sh.c (prepare_move_operands): Pass incremented
19201 const_int to gen_GOTaddr2picreg.
19202 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19204 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19206 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19207 Condition on TARGET_FLOAT.
19209 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19211 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19214 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19216 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19218 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19219 aarch64_err_no_fpadvsimd.
19221 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19222 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19223 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19224 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19225 Turn error into assert, test TARGET_FLOAT.
19226 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19229 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
19232 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19234 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19236 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19238 2015-06-24 Renlin Li <renlin.li@arm.com>
19240 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19241 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19243 2015-06-24 Richard Biener <rguenther@suse.de>
19245 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19247 (lower_opt_convert): Support lowering of conditional view_convert.
19248 (parser::parse_operation): Likewise.
19249 (parser::parse_for): Likewise.
19251 2015-06-24 Renlin Li <renlin.li@arm.com>
19253 * varasm.c (emit_local): Use unsigned int for align variable.
19255 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19258 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19259 for negative numbers.
19261 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19263 PR rtl-optimization/66306
19264 * reload.c (find_reloads): Swap the match_dup info for
19265 commutative operands.
19267 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19269 * config/s390/vx-builtins.md
19270 ("vec_scatter_element<mode>_<non_vec_int>")
19271 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19272 attribute with bhfgq.
19274 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19276 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19278 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19280 * config/s390/s390-builtin-types.def: Add flag to indicate the
19281 options under which the function type is needed.
19282 * config/s390/s390-builtins.def: Add flag to indicate the options
19283 under which the builtin is enabled.
19284 * config/s390/s390-builtins.h: Add flags parameter to macro
19286 (bflags_for_builtin): New function.
19287 (flags_for_builtin): Renamed to ...
19288 (opflags_for_builtin): ... this.
19289 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19290 flags_for_builtin to bflags_for_builtin and
19291 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19292 * config/s390/s390.c: Add initialization of bflags_builtin and
19293 opflags_builtin arrays.
19294 Remove code for flags_builtin.
19295 (s390_init_builtins): Only create builtin function types if one of
19296 their flags is active.
19297 Only create builtins if all of their flags are active.
19298 (s390_expand_builtin): Rename flags_for_builtin to
19299 opflags_for_builtin.
19301 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19303 * config/s390/vecintrin.h: Remove internal builtins.
19305 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19307 * config/s390/s390.c (s390_secondary_reload): Fix check for
19308 GENERAL_REGS register class.
19310 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19312 * config/s390/s390.c (s390_support_vector_misalignment): Call
19313 default implementation for !TARGET_VX.
19315 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19317 * config/s390/s390.c (s390_legitimate_constant_p): Add
19320 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19322 * config/s390/s390.c (s390_vector_abi): New variable definition.
19323 (s390_check_type_for_vector_abi): New function.
19324 (TARGET_ASM_FILE_END): New macro definition.
19325 (s390_asm_file_end): New function.
19326 (s390_function_arg): Call s390_check_type_for_vector_abi.
19327 (s390_gimplify_va_arg): Likewise.
19328 * configure: Regenerate.
19329 * configure.ac: Check for .gnu_attribute Binutils feature.
19331 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
19334 * config/bfin/bfin.c (hwloop_optimize): Initialize
19335 JUMP_LABEL for newly created jump.
19337 2015-06-23 Tristan Gingold <gingold@adacore.com>
19339 * collect-utils.c (collect_wait): Unlink the response file here
19341 (do_wait): ...here.
19342 (utils_cleanup): ...and here.
19344 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
19346 * df-scan.c: Don't include target-def.h.
19347 * targhooks.c: Likewise.
19348 * config/arm/arm-c.c: Likewise.
19349 * config/i386/i386-c.c: Likewise.
19350 * config/nds32/nds32-cost.c: Likewise.
19351 * config/nds32/nds32-fp-as-gp.c: Likewise.
19352 * config/nds32/nds32-intrinsic.c: Likewise.
19353 * config/nds32/nds32-isr.c: Likewise.
19354 * config/nds32/nds32-md-auxiliary.c: Likewise.
19355 * config/nds32/nds32-memory-manipulation.c: Likewise.
19356 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19357 * config/nds32/nds32-predicates.c: Likewise.
19359 2015-06-23 Richard Biener <rguenther@suse.de>
19361 PR tree-optimization/66636
19362 * tree-vect-stmts.c (vectorizable_store): Properly compute the
19363 def type for further defs for strided stores.
19365 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
19367 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19368 conditional selects.
19369 (setcc_int<mode>, setcc_float<mode>): Reformat.
19371 2015-06-23 Marek Polacek <polacek@redhat.com>
19373 * match.pd ((x + y) - (x | y) -> x & y,
19374 (x + y) - (x & y) -> x | y): New patterns.
19376 2015-06-23 Ludovic Courtès <ludo@gnu.org>
19379 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19380 '-dynamic-linker' within %{!shared: ...}.
19382 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
19385 * config/i386/predicates.md (addsub_vm_operator): New predicate.
19386 (addsub_vs_operator): Ditto.
19387 (addsub_vs_parallel): Ditto.
19388 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19389 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19390 Put minus RTX before plus and adjust vec_merge selector.
19391 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19392 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19393 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19394 (addsub vec_merge splitters): New combiner splitters.
19395 (addsub vec_select/vec_concat splitters): Ditto.
19397 2015-06-23 Bin Cheng <bin.cheng@arm.com>
19399 PR tree-optimization/66449
19400 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19401 POINTER_PLUS_EXPR for pointers.
19403 2015-06-23 Alan Modra <amodra@gmail.com>
19405 * rtlanal.c (commutative_operand_precedence): Correct comments.
19406 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19407 declaration. Return an int. Distinguish REG,REG return from
19409 (struct simplify_plus_minus_op_data): Make local to function.
19410 (simplify_plus_minus): Don't set canonicalized if merely sorting
19411 registers. Avoid packing ops if nothing changes. White space fixes.
19413 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
19415 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19416 -fdump-ada-spec is passed but not if -fsyntax-only is.
19418 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
19421 * lra-lives.c (process_bb_lives): Check insn copying the same
19422 reload pseudo and don't create a copy for it.
19424 2015-06-22 Tom de Vries <tom@codesourcery.com>
19426 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19429 2015-06-22 Tom de Vries <tom@codesourcery.com>
19431 * builtins.def (DEF_GOMP_BUILTIN): Test
19432 'flag_tree_parallelize_loops > 1' instead of
19433 'flag_tree_parallelize_loops'. Test flag_cilkplus.
19435 2015-06-22 Tom de Vries <tom@codesourcery.com>
19437 * dominance.c (calculate_dominance_info): Verify dominators if
19440 2015-06-22 Marek Polacek <polacek@redhat.com>
19442 * match.pd ((x ^ y) ^ (x | y) -> x & y,
19443 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
19444 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
19445 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
19447 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
19450 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
19451 cost of embedded comparison.
19453 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19456 * config/rs6000/predicates.md (altivec_register_operand): Permit
19457 virtual stack registers.
19458 (vsx_register_operand): Likewise.
19459 (vfloat_operand): Likewise.
19460 (vint_operand): Likewise.
19461 (vlogical_operand): Likewise.
19463 2015-06-22 Richard Biener <rguenther@suse.de>
19465 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
19466 and single_scalar_iteration_cost members.
19467 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
19468 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
19469 (vect_get_single_scalar_iteration_cost): Remove.
19470 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19471 Use LOOP_VINFO_SCALAR_ITERATION_COST.
19472 * tree-vect-loop.c (destroy_loop_vec_info): Free
19474 (vect_get_single_scalar_iteration_cost): Compute result into
19475 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
19476 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
19477 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
19478 (vect_estimate_min_profitable_iters): Use them.
19480 2015-06-22 Christian Bruel <christian.bruel@st.com>
19483 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
19484 (TARGET_INSERT_ATTRIBUTES): Define.
19485 (thumb_flipper): New var.
19486 * config/arm/arm.opt (-mflip-thumb): New switch.
19488 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19489 Martin Liska <mliska@suse.cz>
19492 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
19493 construction of arg_types.
19494 (sem_function::sem_function): Likewise.
19495 (sem_function::~sem_function): Remove destruction of arg_types.
19496 (sem_function::compatible_parm_types_p): New function.
19497 (sem_function::equals_wpa): Reorg matching of return values
19498 and parameter types.
19499 (sem_function::equals_private): Reorg mathcing of argument types.
19500 (sem_function::parse_tree_args): Remove.
19501 * ipa-icf.h (init_wpa): Do not call it.
19502 (parse_tree_args): Remove.
19503 (compatible_parm_types_p): Declare.
19504 (result_type): Remove.
19505 (arg_types): Remove.
19507 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19510 * ipa-polymorphic-call.c
19511 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
19512 initializing alias oracle; fix formating; set base_alias_set if it
19515 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
19517 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
19518 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
19519 (find_inc): Likewise.
19520 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
19522 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19523 * df-scan.c (df_swap_refs): Remove.
19524 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
19525 * dominance.c (link_roots): Use std::swap instead of manually swapping.
19526 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
19527 * fold-const.c (fold_relational_const): Likewise.
19528 * genattrtab.c (simplify_test_exp): Likewise.
19529 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
19530 gimple_simplify): Likewise.
19531 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
19532 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
19533 * ipa-devirt.c (add_type_duplicate): Likewise.
19534 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
19535 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
19536 * lra.c (lra_create_copy): Likewise.
19537 * lto-streamer-out.c (DFS::DFS): Likewise.
19538 * modulo-sched.c (get_sched_window): Likewise.
19539 * omega.c (omega_pretty_print_problem): Likewise.
19540 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
19541 * reload1.c (reloads_unique_chain_p): Likewise.
19542 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
19543 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
19545 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
19547 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
19548 predicate_mem_writes): Likewise.
19549 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
19550 * tree-predcom.c (combine_chains): Likewise.
19551 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
19552 refs_may_alias_p_1): Likewise.
19553 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
19554 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19555 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
19556 number_of_iterations_cond): Likewise.
19557 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19558 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19559 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
19560 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
19561 * tree-vrp.c (extract_range_from_binary_expr_1,
19562 extract_range_from_unary_expr_1): Likewise.
19564 2015-06-20 Marek Polacek <polacek@redhat.com>
19566 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
19568 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
19571 * config/sh/sh.c (prepare_move_operands): Replace subreg
19572 index term with R0 for base and index addressing.
19574 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
19576 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
19578 (movsf_aarch64): Change condition from register_operand to
19579 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
19580 load1. Change type for alternative 7 to store1.
19581 (movdf_aarch64): Likewise.
19583 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
19585 * config/vax/vax.md: Adjust sign/zero extend patterns to
19586 handle SUBREGs in operands[1].
19588 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19590 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
19591 of manually swapping.
19592 (expand_vec_perm_interleave2): Likewise.
19594 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
19596 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
19597 reuse bounds created for abnormal ssa names.
19599 2015-06-19 Jakub Jelinek <jakub@redhat.com>
19601 * config/nvptx/nvptx.md (allocate_stack): Rename to...
19602 (allocate_stack_<mode>): ... this, and add :P on both
19603 match_operand and unspec.
19604 (allocate_stack): New expander.
19606 2015-06-19 Christian Bruel <christian.bruel@st.com>
19610 * config/arm/arm.c (arm_set_current_function): Handle
19611 explicit default options.
19613 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
19615 * config/i386/i386.md (*movsicc_noc_zext): New insn.
19616 (zero-extended cmove with mem peephole2): New pattern.
19617 (cmove with mem peephole2): Merge patterns.
19619 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
19621 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
19623 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
19625 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
19626 * config/mips/mips.md (*madd4<mode>): Ditto.
19627 (*nmadd3<mode>) Ditto.
19628 (*nmadd4<mode>_fastmath): Ditto.
19629 (*nmadd3<mode>_fastmath): Ditto.
19630 (*nmsub4<mode>): Ditto.
19631 (*nmsub3<mode>): Ditto.
19632 (*nmsub4<mode>_fastmath): Ditto.
19633 (*nmsub3<mode>_fastmath): Ditto.
19635 2015-06-18 Michael Matz <matz@suse.de>
19637 PR middle-end/66253
19638 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
19639 grouped strided stores.
19640 (vectorizable_load): Don't use the DR from first_stmt in
19641 the non-SLP grouped strided case.
19643 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19646 * function.c (assign_bounds): Add arguments assign_regs,
19647 assign_special, assign_bt.
19648 (assign_parms): For vararg functions handle bounds in BT
19649 and special slots after incoming vararg bounds.
19651 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19653 PR middle-end/66568
19654 * cfgexpand.c (expand_return): Handle missing bounds.
19655 (expand_gimple_stmt_1): Likewise.
19656 * tree-chkp.c (chkp_expand_zero_bounds): New.
19657 * tree-chkp.h (chkp_expand_zero_bounds): New.
19659 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19661 PR middle-end/66567
19662 * ipa-chkp.c (chkp_maybe_create_clone): Require
19663 functions to be instrumentable.
19664 * tree-chkp.c (chkp_replace_function_pointer): Use
19665 chkp_instrumentable_p instead of attribute check.
19667 2015-06-18 Richard Biener <rguenther@suse.de>
19669 PR tree-optimization/66510
19670 * tree-vect-stmts.c (vectorizable_load): Properly compute the
19671 number of vector loads for SLP permuted loads.
19672 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
19673 check the stride for loop vectorization.
19674 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
19675 vectorization factor.
19676 (vect_analyze_group_access): If the group size is not a power
19677 of two require a epilogue loop.
19678 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
19679 compute and optimizing and alias test pruning after final
19680 vectorization factor computation.
19681 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
19683 (vect_transform_slp_perm_load): Properly compute the original
19684 number of vector load stmts.
19686 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
19688 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
19689 "unlikely character , in @var" warning.
19691 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
19693 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
19694 (ix86_function_arg_advance): Ditto.
19695 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
19697 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19699 * function.h (struct rtl_data): Remove struct and accessor macros.
19700 * emit-rtl.h (struct rtl_data): Relocate to here.
19701 * Makefile.in (GTFILES): Add emit-rtl.h.
19702 * df-core.c: Include emit-rtl.h.
19703 * genattrtab.c: Likewise.
19704 * genconditions.c: Likewise.
19705 * genpreds.c: Likewise.
19706 * genrecog.c: Likewise.
19707 * regcprop.c: Likewise.
19708 * resource.c: Likewise.
19709 * sched-rgn.c: Likewise.
19710 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19711 * config/i386/winnt.c: Likewise.
19713 2015-06-17 Jakub Jelinek <jakub@redhat.com>
19715 PR middle-end/66429
19716 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
19717 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
19718 and has_force_vectorize_loops flags from cfun into
19720 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
19721 if simduid is non-NULL.
19722 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
19723 * passes.def (pass_simduid_cleanup): Add new pass after loop
19725 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
19726 indirection from htab argument's type.
19727 (shrink_simd_arrays): New function.
19728 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
19729 Don't call adjust_simduid_builtins if there are no loops.
19730 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
19731 (pass_simduid_cleanup::execute): New method.
19732 (make_pass_simduid_cleanup): New function.
19734 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
19736 * tree-core.h (tree_target_option): Make opts field a pointer to a
19737 cl_target_option instead of an instance of the struct.
19738 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
19740 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
19741 TARGET_OPTION_NODE.
19742 (copy_node_stat): Allocate and copy struct cl_target_option.
19744 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19746 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
19747 Remove conditional exposure of prototypes.
19748 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
19749 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
19750 definitions in tree.h with functions.
19751 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
19753 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
19755 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
19757 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
19758 (*cmp<mode>_signed): ... this.
19759 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
19760 (*cmp<mode>_unsigned): ... this. Remove %b.
19762 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19764 * coretypes.h: Include input.h and as-a.h.
19765 * rtl.h: Include input.h and as-a.h for generator files.
19766 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
19767 * vec.c: Don't include diagnostic-core.h.
19768 * alias.c: Do not include input.h, line-map.h or is-a.h.
19769 * asan.c: Likewise.
19770 * attribs.c: Likewise.
19771 * auto-inc-dec.c: Likewise.
19772 * auto-profile.c: Likewise.
19773 * bb-reorder.c: Likewise.
19774 * bt-load.c: Likewise.
19775 * builtins.c: Likewise.
19776 * caller-save.c: Likewise.
19777 * calls.c: Likewise.
19778 * ccmp.c: Likewise.
19780 * cfganal.c: Likewise.
19781 * cfgbuild.c: Likewise.
19782 * cfgcleanup.c: Likewise.
19783 * cfgexpand.c: Likewise.
19784 * cfghooks.c: Likewise.
19785 * cfgloop.c: Likewise.
19786 * cfgloop.h: Likewise.
19787 * cfgloopanal.c: Likewise.
19788 * cfgloopmanip.c: Likewise.
19789 * cfgrtl.c: Likewise.
19790 * cgraph.c: Likewise.
19791 * cgraphbuild.c: Likewise.
19792 * cgraphclones.c: Likewise.
19793 * cgraphunit.c: Likewise.
19794 * cilk-common.c: Likewise.
19795 * combine-stack-adj.c: Likewise.
19796 * combine.c: Likewise.
19797 * compare-elim.c: Likewise.
19798 * convert.c: Likewise.
19799 * coverage.c: Likewise.
19800 * cppbuiltin.c: Likewise.
19801 * cprop.c: Likewise.
19803 * cselib.c: Likewise.
19804 * data-streamer-in.c: Likewise.
19805 * data-streamer-out.c: Likewise.
19806 * data-streamer.c: Likewise.
19807 * dbxout.c: Likewise.
19810 * debug.c: Likewise.
19811 * df-core.c: Likewise.
19812 * df-problems.c: Likewise.
19813 * df-scan.c: Likewise.
19816 * diagnostic-core.h: Likewise.
19817 * diagnostic.c: Likewise.
19818 * dojump.c: Likewise.
19819 * dominance.c: Likewise.
19820 * domwalk.c: Likewise.
19821 * double-int.c: Likewise.
19823 * dumpfile.c: Likewise.
19824 * dumpfile.h: Likewise.
19825 * dwarf2asm.c: Likewise.
19826 * dwarf2cfi.c: Likewise.
19827 * dwarf2out.c: Likewise.
19828 * emit-rtl.c: Likewise.
19829 * et-forest.c: Likewise.
19830 * except.c: Likewise.
19831 * explow.c: Likewise.
19832 * expmed.c: Likewise.
19833 * expr.c: Likewise.
19834 * final.c: Likewise.
19835 * fixed-value.c: Likewise.
19836 * fold-const.c: Likewise.
19837 * function.c: Likewise.
19838 * fwprop.c: Likewise.
19839 * gcc-plugin.h: Likewise.
19840 * gcse.c: Likewise.
19841 * generic-match-head.c: Likewise.
19842 * ggc-page.c: Likewise.
19843 * gimple-builder.c: Likewise.
19844 * gimple-expr.c: Likewise.
19845 * gimple-fold.c: Likewise.
19846 * gimple-iterator.c: Likewise.
19847 * gimple-low.c: Likewise.
19848 * gimple-match-head.c: Likewise.
19849 * gimple-pretty-print.c: Likewise.
19850 * gimple-ssa-isolate-paths.c: Likewise.
19851 * gimple-ssa-strength-reduction.c: Likewise.
19852 * gimple-streamer-in.c: Likewise.
19853 * gimple-streamer-out.c: Likewise.
19854 * gimple-streamer.h: Likewise.
19855 * gimple-walk.c: Likewise.
19856 * gimple.c: Likewise.
19857 * gimplify-me.c: Likewise.
19858 * gimplify.c: Likewise.
19859 * godump.c: Likewise.
19860 * graph.c: Likewise.
19861 * graphite-blocking.c: Likewise.
19862 * graphite-dependences.c: Likewise.
19863 * graphite-interchange.c: Likewise.
19864 * graphite-isl-ast-to-gimple.c: Likewise.
19865 * graphite-optimize-isl.c: Likewise.
19866 * graphite-poly.c: Likewise.
19867 * graphite-scop-detection.c: Likewise.
19868 * graphite-sese-to-poly.c: Likewise.
19869 * graphite.c: Likewise.
19870 * haifa-sched.c: Likewise.
19871 * hw-doloop.c: Likewise.
19872 * ifcvt.c: Likewise.
19873 * init-regs.c: Likewise.
19874 * input.c: Likewise.
19875 * internal-fn.c: Likewise.
19876 * ipa-chkp.c: Likewise.
19877 * ipa-comdats.c: Likewise.
19878 * ipa-cp.c: Likewise.
19879 * ipa-devirt.c: Likewise.
19880 * ipa-icf-gimple.c: Likewise.
19881 * ipa-icf.c: Likewise.
19882 * ipa-inline-analysis.c: Likewise.
19883 * ipa-inline-transform.c: Likewise.
19884 * ipa-inline.c: Likewise.
19885 * ipa-polymorphic-call.c: Likewise.
19886 * ipa-profile.c: Likewise.
19887 * ipa-prop.c: Likewise.
19888 * ipa-pure-const.c: Likewise.
19889 * ipa-ref.c: Likewise.
19890 * ipa-reference.c: Likewise.
19891 * ipa-split.c: Likewise.
19892 * ipa-utils.c: Likewise.
19893 * ipa-visibility.c: Likewise.
19895 * ira-build.c: Likewise.
19896 * ira-color.c: Likewise.
19897 * ira-conflicts.c: Likewise.
19898 * ira-costs.c: Likewise.
19899 * ira-emit.c: Likewise.
19900 * ira-lives.c: Likewise.
19902 * jump.c: Likewise.
19903 * langhooks.c: Likewise.
19905 * loop-doloop.c: Likewise.
19906 * loop-init.c: Likewise.
19907 * loop-invariant.c: Likewise.
19908 * loop-iv.c: Likewise.
19909 * loop-unroll.c: Likewise.
19910 * lower-subreg.c: Likewise.
19911 * lra-assigns.c: Likewise.
19912 * lra-coalesce.c: Likewise.
19913 * lra-constraints.c: Likewise.
19914 * lra-eliminations.c: Likewise.
19915 * lra-lives.c: Likewise.
19916 * lra-remat.c: Likewise.
19917 * lra-spills.c: Likewise.
19919 * lto-cgraph.c: Likewise.
19920 * lto-compress.c: Likewise.
19921 * lto-opts.c: Likewise.
19922 * lto-section-in.c: Likewise.
19923 * lto-section-out.c: Likewise.
19924 * lto-streamer-in.c: Likewise.
19925 * lto-streamer-out.c: Likewise.
19926 * lto-streamer.c: Likewise.
19928 * mode-switching.c: Likewise.
19929 * modulo-sched.c: Likewise.
19930 * omega.c: Likewise.
19931 * omp-low.c: Likewise.
19932 * optabs.c: Likewise.
19933 * opts-global.c: Likewise.
19934 * opts.h: Likewise.
19935 * passes.c: Likewise.
19936 * plugin.c: Likewise.
19937 * postreload-gcse.c: Likewise.
19938 * postreload.c: Likewise.
19939 * predict.c: Likewise.
19940 * pretty-print.h: Likewise.
19941 * print-rtl.c: Likewise.
19942 * print-tree.c: Likewise.
19943 * profile.c: Likewise.
19944 * real.c: Likewise.
19945 * realmpfr.c: Likewise.
19946 * recog.c: Likewise.
19948 * reg-stack.c: Likewise.
19949 * regcprop.c: Likewise.
19950 * reginfo.c: Likewise.
19951 * regrename.c: Likewise.
19952 * regstat.c: Likewise.
19953 * reload.c: Likewise.
19954 * reload1.c: Likewise.
19955 * reorg.c: Likewise.
19956 * resource.c: Likewise.
19957 * rtl-chkp.c: Likewise.
19958 * rtl-error.c: Likewise.
19959 * rtlanal.c: Likewise.
19960 * rtlhooks.c: Likewise.
19961 * sanopt.c: Likewise.
19962 * sched-deps.c: Likewise.
19963 * sched-ebb.c: Likewise.
19964 * sched-rgn.c: Likewise.
19965 * sched-vis.c: Likewise.
19966 * sdbout.c: Likewise.
19967 * sel-sched-dump.c: Likewise.
19968 * sel-sched-ir.c: Likewise.
19969 * sel-sched.c: Likewise.
19970 * sese.c: Likewise.
19971 * shrink-wrap.c: Likewise.
19972 * simplify-rtx.c: Likewise.
19973 * stack-ptr-mod.c: Likewise.
19974 * statistics.c: Likewise.
19975 * stmt.c: Likewise.
19976 * stor-layout.c: Likewise.
19977 * store-motion.c: Likewise.
19978 * streamer-hooks.c: Likewise.
19979 * stringpool.c: Likewise.
19980 * symtab.c: Likewise.
19981 * target-globals.c: Likewise.
19982 * targhooks.c: Likewise.
19983 * toplev.c: Likewise.
19984 * tracer.c: Likewise.
19985 * trans-mem.c: Likewise.
19986 * tree-affine.c: Likewise.
19987 * tree-browser.c: Likewise.
19988 * tree-call-cdce.c: Likewise.
19989 * tree-cfg.c: Likewise.
19990 * tree-cfgcleanup.c: Likewise.
19991 * tree-chkp-opt.c: Likewise.
19992 * tree-chkp.c: Likewise.
19993 * tree-chrec.c: Likewise.
19994 * tree-complex.c: Likewise.
19995 * tree-data-ref.c: Likewise.
19996 * tree-dfa.c: Likewise.
19997 * tree-diagnostic.c: Likewise.
19998 * tree-dump.c: Likewise.
19999 * tree-eh.c: Likewise.
20000 * tree-emutls.c: Likewise.
20001 * tree-if-conv.c: Likewise.
20002 * tree-inline.c: Likewise.
20003 * tree-into-ssa.c: Likewise.
20004 * tree-iterator.c: Likewise.
20005 * tree-loop-distribution.c: Likewise.
20006 * tree-nested.c: Likewise.
20007 * tree-nrv.c: Likewise.
20008 * tree-object-size.c: Likewise.
20009 * tree-outof-ssa.c: Likewise.
20010 * tree-parloops.c: Likewise.
20011 * tree-phinodes.c: Likewise.
20012 * tree-predcom.c: Likewise.
20013 * tree-pretty-print.c: Likewise.
20014 * tree-profile.c: Likewise.
20015 * tree-scalar-evolution.c: Likewise.
20016 * tree-sra.c: Likewise.
20017 * tree-ssa-address.c: Likewise.
20018 * tree-ssa-alias.c: Likewise.
20019 * tree-ssa-ccp.c: Likewise.
20020 * tree-ssa-coalesce.c: Likewise.
20021 * tree-ssa-copy.c: Likewise.
20022 * tree-ssa-copyrename.c: Likewise.
20023 * tree-ssa-dce.c: Likewise.
20024 * tree-ssa-dom.c: Likewise.
20025 * tree-ssa-dse.c: Likewise.
20026 * tree-ssa-forwprop.c: Likewise.
20027 * tree-ssa-ifcombine.c: Likewise.
20028 * tree-ssa-live.c: Likewise.
20029 * tree-ssa-loop-ch.c: Likewise.
20030 * tree-ssa-loop-im.c: Likewise.
20031 * tree-ssa-loop-ivcanon.c: Likewise.
20032 * tree-ssa-loop-ivopts.c: Likewise.
20033 * tree-ssa-loop-manip.c: Likewise.
20034 * tree-ssa-loop-niter.c: Likewise.
20035 * tree-ssa-loop-prefetch.c: Likewise.
20036 * tree-ssa-loop-unswitch.c: Likewise.
20037 * tree-ssa-loop.c: Likewise.
20038 * tree-ssa-math-opts.c: Likewise.
20039 * tree-ssa-operands.c: Likewise.
20040 * tree-ssa-phiopt.c: Likewise.
20041 * tree-ssa-phiprop.c: Likewise.
20042 * tree-ssa-pre.c: Likewise.
20043 * tree-ssa-propagate.c: Likewise.
20044 * tree-ssa-reassoc.c: Likewise.
20045 * tree-ssa-sccvn.c: Likewise.
20046 * tree-ssa-scopedtables.c: Likewise.
20047 * tree-ssa-sink.c: Likewise.
20048 * tree-ssa-strlen.c: Likewise.
20049 * tree-ssa-structalias.c: Likewise.
20050 * tree-ssa-tail-merge.c: Likewise.
20051 * tree-ssa-ter.c: Likewise.
20052 * tree-ssa-threadedge.c: Likewise.
20053 * tree-ssa-threadupdate.c: Likewise.
20054 * tree-ssa-uncprop.c: Likewise.
20055 * tree-ssa-uninit.c: Likewise.
20056 * tree-ssa.c: Likewise.
20057 * tree-ssanames.c: Likewise.
20058 * tree-stdarg.c: Likewise.
20059 * tree-streamer-in.c: Likewise.
20060 * tree-streamer-out.c: Likewise.
20061 * tree-streamer.c: Likewise.
20062 * tree-switch-conversion.c: Likewise.
20063 * tree-tailcall.c: Likewise.
20064 * tree-vect-data-refs.c: Likewise.
20065 * tree-vect-generic.c: Likewise.
20066 * tree-vect-loop-manip.c: Likewise.
20067 * tree-vect-loop.c: Likewise.
20068 * tree-vect-patterns.c: Likewise.
20069 * tree-vect-slp.c: Likewise.
20070 * tree-vect-stmts.c: Likewise.
20071 * tree-vectorizer.c: Likewise.
20072 * tree-vrp.c: Likewise.
20073 * tree.c: Likewise.
20074 * tsan.c: Likewise.
20075 * ubsan.c: Likewise.
20076 * valtrack.c: Likewise.
20077 * value-prof.c: Likewise.
20078 * var-tracking.c: Likewise.
20079 * varasm.c: Likewise.
20080 * varpool.c: Likewise.
20081 * vmsdbgout.c: Likewise.
20082 * vtable-verify.c: Likewise.
20084 * wide-int.cc: Likewise.
20085 * xcoffout.c: Likewise.
20086 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20087 * common/common-targhooks.c: Likewise.
20088 * config/aarch64/aarch64-builtins.c: Likewise.
20089 * config/aarch64/aarch64.c: Likewise.
20090 * config/alpha/alpha.c: Likewise.
20091 * config/arc/arc.c: Likewise.
20092 * config/arm/aarch-common.c: Likewise.
20093 * config/arm/arm-builtins.c: Likewise.
20094 * config/arm/arm-c.c: Likewise.
20095 * config/arm/arm.c: Likewise.
20096 * config/avr/avr-c.c: Likewise.
20097 * config/avr/avr-log.c: Likewise.
20098 * config/avr/avr.c: Likewise.
20099 * config/bfin/bfin.c: Likewise.
20100 * config/c6x/c6x.c: Likewise.
20101 * config/cr16/cr16.c: Likewise.
20102 * config/cris/cris.c: Likewise.
20103 * config/darwin-c.c: Likewise.
20104 * config/darwin.c: Likewise.
20105 * config/default-c.c: Likewise.
20106 * config/epiphany/epiphany.c: Likewise.
20107 * config/epiphany/mode-switch-use.c: Likewise.
20108 * config/epiphany/resolve-sw-modes.c: Likewise.
20109 * config/fr30/fr30.c: Likewise.
20110 * config/frv/frv.c: Likewise.
20111 * config/ft32/ft32.c: Likewise.
20112 * config/glibc-c.c: Likewise.
20113 * config/h8300/h8300.c: Likewise.
20114 * config/i386/i386-c.c: Likewise.
20115 * config/i386/i386.c: Likewise.
20116 * config/i386/msformat-c.c: Likewise.
20117 * config/i386/winnt-cxx.c: Likewise.
20118 * config/i386/winnt-stubs.c: Likewise.
20119 * config/i386/winnt.c: Likewise.
20120 * config/ia64/ia64-c.c: Likewise.
20121 * config/ia64/ia64.c: Likewise.
20122 * config/iq2000/iq2000.c: Likewise.
20123 * config/lm32/lm32.c: Likewise.
20124 * config/m32c/m32c-pragma.c: Likewise.
20125 * config/m32c/m32c.c: Likewise.
20126 * config/m32r/m32r.c: Likewise.
20127 * config/m68k/m68k.c: Likewise.
20128 * config/mcore/mcore.c: Likewise.
20129 * config/mep/mep-pragma.c: Likewise.
20130 * config/mep/mep.c: Likewise.
20131 * config/microblaze/microblaze-c.c: Likewise.
20132 * config/microblaze/microblaze.c: Likewise.
20133 * config/mips/mips.c: Likewise.
20134 * config/mmix/mmix.c: Likewise.
20135 * config/mn10300/mn10300.c: Likewise.
20136 * config/moxie/moxie.c: Likewise.
20137 * config/msp430/msp430-c.c: Likewise.
20138 * config/msp430/msp430.c: Likewise.
20139 * config/nds32/nds32-cost.c: Likewise.
20140 * config/nds32/nds32-fp-as-gp.c: Likewise.
20141 * config/nds32/nds32-intrinsic.c: Likewise.
20142 * config/nds32/nds32-isr.c: Likewise.
20143 * config/nds32/nds32-md-auxiliary.c: Likewise.
20144 * config/nds32/nds32-memory-manipulation.c: Likewise.
20145 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20146 * config/nds32/nds32-predicates.c: Likewise.
20147 * config/nds32/nds32.c: Likewise.
20148 * config/nios2/nios2.c: Likewise.
20149 * config/nvptx/nvptx.c: Likewise.
20150 * config/pa/pa.c: Likewise.
20151 * config/pdp11/pdp11.c: Likewise.
20152 * config/rl78/rl78-c.c: Likewise.
20153 * config/rl78/rl78.c: Likewise.
20154 * config/rs6000/rs6000-c.c: Likewise.
20155 * config/rs6000/rs6000.c: Likewise.
20156 * config/rx/rx.c: Likewise.
20157 * config/s390/s390-c.c: Likewise.
20158 * config/s390/s390.c: Likewise.
20159 * config/sh/sh-c.c: Likewise.
20160 * config/sh/sh-mem.cc: Likewise.
20161 * config/sh/sh.c: Likewise.
20162 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20163 * config/sh/sh_treg_combine.cc: Likewise.
20164 * config/sol2-c.c: Likewise.
20165 * config/sol2-cxx.c: Likewise.
20166 * config/sol2-stubs.c: Likewise.
20167 * config/sol2.c: Likewise.
20168 * config/sparc/sparc-c.c: Likewise.
20169 * config/sparc/sparc.c: Likewise.
20170 * config/spu/spu-c.c: Likewise.
20171 * config/spu/spu.c: Likewise.
20172 * config/stormy16/stormy16.c: Likewise.
20173 * config/tilegx/mul-tables.c: Likewise.
20174 * config/tilegx/tilegx-c.c: Likewise.
20175 * config/tilegx/tilegx.c: Likewise.
20176 * config/tilepro/mul-tables.c: Likewise.
20177 * config/tilepro/tilepro-c.c: Likewise.
20178 * config/tilepro/tilepro.c: Likewise.
20179 * config/v850/v850-c.c: Likewise.
20180 * config/v850/v850.c: Likewise.
20181 * config/vax/vax.c: Likewise.
20182 * config/visium/visium.c: Likewise.
20183 * config/vms/vms-c.c: Likewise.
20184 * config/vms/vms.c: Likewise.
20185 * config/vxworks.c: Likewise.
20186 * config/winnt-c.c: Likewise.
20187 * config/xtensa/xtensa.c: Likewise.
20189 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
20191 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20193 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20195 2015-06-17 Richard Biener <rguenther@suse.de>
20197 PR tree-optimization/66251
20198 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20199 stmts for SLP strided stores.
20202 2015-05-22 Richard Biener <rguenther@suse.de>
20204 PR tree-optimization/66251
20205 * tree-vect-stmts.c (vectorizable_conversion): Properly
20206 set STMT_VINFO_VEC_STMT even for the SLP case.
20208 2015-05-26 Michael Matz <matz@suse.de>
20210 PR middle-end/66251
20211 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20212 STMT_VINFO_VEC_STMT, also with SLP.
20214 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
20217 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20218 (*avx_addsubv4df3_1s): Ditto.
20219 (*sse3_addsubv2df3_1): Ditto.
20220 (*sse3_addsubv2df3_1s): Ditto.
20221 (*avx_addsubv8sf3_1): Ditto.
20222 (*avx_addsubv8sf3_1s): Ditto.
20223 (*sse3_addsubv4sf3_1): Ditto.
20224 (*sse3_addsubv4sf3_1s): Ditto.
20226 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
20228 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20229 (SYSROOT_SUFFIX_SPEC): Update.
20230 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20231 (STARTFILE_PREFIX_SPEC): Update.
20232 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20233 (MULTILIB_REQUIRED): New.
20234 (MULTILIB_OSDIRNAMES): New.
20235 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20236 (MULTILIB_REQUIRED): New.
20237 (MULTILIB_OSDIRNAMES): New.
20239 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
20241 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20242 * config/aarch64/aarch64-options-extensions.def: Update "fP",
20243 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
20244 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20245 (AARCH64_FL_PAN): New.
20246 (AARCH64_FL_LOR): New.
20247 (AARCH64_FL_RDMA): New.
20248 (AARCH64_FL_FOR_ARCH8_1): New.
20249 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20250 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20252 2015-06-16 Martin Liska <mliska@suse.cz>
20254 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20255 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20258 2015-06-16 Richard Biener <rguenther@suse.de>
20260 * tree-vect-stmts.c (vectorizable_store): Adjust.
20261 (vectorizable_load): Likewise.
20262 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20264 (vect_create_data_ref_ptr): Likewise.
20265 (bump_vector_ptr): Adjust.
20267 2015-06-16 Richard Biener <rguenther@suse.de>
20269 * tree-vect-stmts.c (vectorizable_load): Properly start loads
20270 with the first element if this is grouped loads.
20272 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
20274 * config/arm/arm-protos.h (struct tune_params): Rename
20275 log_op_non_sc to log_op_non_short_circuit, and rename enum
20276 values to expand SC to SHORT_CIRCUIT.
20277 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20278 to LOG_OP_NON_SHORT_CIRCUIT.
20279 (arm_fastmul_tune):Likewise
20280 (arm_strongarm_tune): Likewise.
20281 (arm_xscale_tune): Likewise.
20282 (arm_9e_tune): Likewise.
20283 (arm_marvell_pj4_tune): Likewise.
20284 (arm_v6t2_tune): Likewise.
20285 (arm_cortex_tune): Likewise.
20286 (arm_cortex_a8_tune): Likewise.
20287 (arm_cortex_a7_tune): Likewise.
20288 (arm_cortex_a15_tune): Likewise.
20289 (arm_cortex_a53_tune): Likewise.
20290 (arm_cortex_a57_tune): Likewise.
20291 (arm_xgene1_tune): Likewise.
20292 (arm_cortex_a5_tune): Likewise.
20293 (arm_cortex_a9_tune): Likewise.
20294 (arm_cortex_a12_tune): Likewise.
20295 (arm_v7m_tune): Likewise.
20296 (arm_cortex_m7_tune): Likewise.
20297 (arm_v6m_tune): Likewise.
20298 (arm_fa726te_tune): Likewise.
20300 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
20302 * altivec.md: Delete UNSPEC_VMLADDUHM.
20303 (mulv4si3_p8): New pattern.
20304 (mulv4si3): Use it for POWER8.
20305 (mulv8hi3): Use vmladduhm with zero addend.
20306 (altivec_vmladduhm): Descriptive RTL.
20308 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
20310 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20311 to use neon_move instead of mov_imm.
20312 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20313 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20315 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20316 aarch64_float_const_zero_rtx_p check before TFmode check.
20317 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20319 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
20320 code and attributes to match. Change condition from register_operand
20321 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
20322 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
20325 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
20328 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20329 there is no parent.
20331 2015-06-14 Shiva Chen <shiva0217@gmail.com>
20333 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20334 HOST_WIDE_INT parameter.
20336 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
20339 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20340 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20342 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20344 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
20346 * rtl.h (classify_insn): Declare.
20347 * emit-rtl.c (classify_insn): Move to...
20348 * rtl.c: ...here and add generator support.
20349 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20350 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20351 * genemit.c (gen_emit_seq): New function.
20352 (gen_expand, gen_split): Use it.
20354 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
20356 * tree.c (make_vector_stat): Fix comment to state that the
20357 function returns a VECTOR_CST.
20359 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
20361 * gensupport.h (add_implicit_parallel): Declare.
20362 * genrecog.c (add_implicit_parallel): Move to...
20363 * gensupport.c (add_implicit_parallel): ...here.
20364 (process_one_cond_exec): Use it.
20365 * genemit.c (gen_insn): Likewise.
20367 2015-06-13 Iain Sandoe <iain@codesourcery.com>
20370 * passes.c (rest_of_decl_compilation): Do not register globals for
20371 early debug if they are declared in built-ins.
20373 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
20375 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20377 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20379 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20381 (noce_try_cmove_arith): Likewise.
20382 (noce_get_alt_condition): Likewise.
20384 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20386 * common/config/i386/i386-common.c
20387 (OPTION_MASK_ISA_MWAITX_SET): New.
20388 (ix86_handle_option): Handle mwaitx.
20389 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20390 (x86_64-*-*): Likewise.
20391 * config/i386/mwaitxintrin.h: New header.
20392 * config/i386/cpuid.h (bit_MWAITX): Define.
20393 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20395 * config/i386/i386.opt (mwaitx): New.
20396 * config/i386/i386-builtin-types.def
20397 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20398 * config/i386/i386-c.c: Define __MWAITX__ if needed.
20399 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20401 (ix86_option_override_internal): Handle new option.
20402 (processor_alias_table): Added PTA_MWAITX.
20403 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20404 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20405 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20406 IX86_BUILTIN_MONITORX built-ins.
20407 * config/i386/i386.h (TARGET_MWAITX): New.
20408 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20410 (mwaitx): New pattern.
20411 (monitorx_<mode>): New pattern.
20412 * config/i386/x86intrin.h: Include mwaitxintrin.h.
20413 * doc/extend.texi: Document monitorx and mwaitx builtins.
20414 * doc/invoke.texi: Document -mmwaitx option.
20416 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
20418 * emit-rtl.c (need_atomic_barrier_p): Mask model with
20419 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
20421 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20423 * dbxout.c (xcoff_debug_hooks): Provide a function for
20424 register_main_translation_unit hook.
20426 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20428 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
20429 variants cases from switch.
20430 (rs6000_post_atomic_barrier): Same.
20431 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
20432 (rs6000_expand_atomic_exchange): Same.
20433 (rs6000_expand_atomic_op): Same.
20434 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
20435 SYNC variants cases from switch.
20436 (atomic_load): Same.
20437 (atomic_store): Same.
20439 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
20441 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
20442 CONST_INT for goto.
20444 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
20447 * dwarf2out.c (check_die): Check for common duplicate attributes.
20448 (add_location_or_const_value_attribute): Do not add duplicate
20450 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
20452 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
20453 (gen_type_die_with_usage): Call check_die.
20454 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
20456 2015-06-11 Jason Merrill <jason@redhat.com>
20458 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
20461 2015-06-11 Marek Polacek <polacek@redhat.com>
20463 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
20465 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
20468 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
20469 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
20470 (*addx_extend_sp32): Fix pasto.
20471 (*subx_extend): Rename into...
20472 (*subx_extend_sp32): ...this.
20473 (*adddi3_extend_sp32): Add earlyclobber.
20474 (*subdi3_insn_sp32): Likewise.
20475 (*subdi3_extend_sp32): Likewise.
20476 (*and_not_di_sp32): Likewise.
20477 (*or_not_di_sp32): Likewise.
20478 (*xor_not_di_sp32): Likewise.
20479 (*negdi2_sp32): Likewise.
20480 (*one_cmpldi2_sp32): Likewise.
20482 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
20484 * debug.h (struct gcc_debug_hooks): Add a
20485 register_main_translation_unit hook.
20486 * debug.c (do_nothing_debug_hooks): Provide a function for this
20488 * dbxout.c (dbx_debug_hooks): Likewise.
20489 * sdbout.c (sdb_debug_hooks): Likewise.
20490 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20491 * dwarf2out.c (main_translation_unit): New global variable.
20492 (dwarf2out_register_main_translation_unit): New function
20493 implementing the new hook.
20494 (dwarf2_debug_hooks): Assign
20495 dwarf2out_register_main_translation_unit to this new hook.
20496 (dwarf2out_init): Associate any main translation unit to
20499 2015-06-11 Marek Polacek <polacek@redhat.com>
20501 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
20503 2015-06-11 Marek Polacek <polacek@redhat.com>
20505 * match.pd: Use single_use throughout.
20507 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20509 * config/arm/arm.c (arm_option_params_internal): When optimising
20510 for speed set max_insns_skipped when arm_restrict_it.
20512 2015-06-11 Christian Bruel <christian.bruel@st.com>
20515 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
20517 (arm_cpu_builtins): New function.
20518 (arm_pragma_target_parse): Call arm_cpu_builtins.
20519 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
20520 (arm_register_target_pragmas): Likewise.
20521 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
20522 Call arm_register_target_pragmas.
20523 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
20524 (arm_pragma_target_parse): Likewise.
20526 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
20528 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
20529 of the second operand.
20531 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
20534 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
20535 to prepare mask operand for AVX512 modes.
20537 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
20540 * doc/md.texi (Machine Constraints): Document that on the PowerPC
20541 if you use a constraint that targets a VSX register, you must use
20542 %x<n> in the template.
20544 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
20546 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
20547 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
20548 (define_insn "trap"): New definition.
20550 2015-06-10 Richard Biener <rguenther@suse.de>
20552 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
20554 (vect_supported_load_permutation_p): ... here. Handle
20555 supportable permutations in reductions.
20556 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
20557 for vectorizing strided group loads.
20559 2015-06-10 Jakub Jelinek <jakub@redhat.com>
20562 * config/i386/i386.c (ix86_split_long_move): For collisions
20563 involving direct tls segment refs, move the UNSPEC_TP possibly
20564 wrapped in ZERO_EXTEND out of the address for lea, to each of
20567 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20569 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
20570 dmb sy. Adjust tabs.
20572 2015-06-10 Tom de Vries <tom@codesourcery.com>
20574 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
20576 2015-06-10 Martin Liska <mliska@suse.cz>
20579 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
20580 all enum values in mem_alloc_origin.
20581 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
20583 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
20584 * bitmap.c (bitmap_register): Likewise.
20585 (dump_bitmap_statistics): Likewise.
20586 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
20587 (ggc_record_overhead): Likewise.
20588 * hash-map.h: Likewise.
20589 * hash-set.h: Likewise.
20590 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
20591 * hash-table.h: Likewise.
20592 * vec.c (vec_prefix::register_overhead): Likewise.
20593 (vec_prefix::release_overhead): Likewise.
20594 (dump_vec_loc_statistics): Likewise.
20596 2015-06-09 Christian Bruel <christian.bruel@st.com>
20599 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
20600 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
20601 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
20602 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
20603 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
20604 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
20605 (arm_valid_target_attribute_p): Likewise.
20606 (arm_set_current_function, arm_can_inline_p): Likewise.
20607 (arm_valid_target_attribute_rec): Likewise.
20608 (arm_previous_fndecl): New variable.
20609 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20610 (TARGET_CAN_INLINE_P): Define.
20611 (arm_asm_trampoline_template): Emit mode.
20612 (arm_file_start): Don't set unified syntax.
20613 (arm_declare_function_name): Set unified syntax and mode.
20614 (arm_option_override): Init target_option_default_node.
20615 and target_option_current_node.
20616 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
20617 (*call_symbol): Likewise.
20618 * doc/extend.texi: Document ARM/Thumb target attribute.
20619 * doc/invoke.texi: Likewise.
20621 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20624 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20625 PR rtl-optimization/64164
20626 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20627 * tree-ssa-copyrename.c: Removed.
20628 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20629 -ftree-coalesce-vars.
20630 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20631 * common.opt (ftree-copyrename): Ignore.
20632 (ftree-coalesce-inlined-vars): Likewise.
20633 * doc/invoke.texi: Remove the ignored options above.
20634 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20635 * tree-ssa-coalesce.h: ... here.
20636 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20637 headers required by it.
20638 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20639 across variables when flag_tree_coalesce_vars. Check register
20640 use and promoted modes to allow coalescing. Moved to
20641 tree-ssa-coalesce.c.
20642 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20643 with its member functions to tree-ssa-coalesce.c.
20644 (var_map_base_init): Likewise. Renamed to
20645 compute_samebase_partition_bases.
20646 (partition_view_normal): Drop want_bases parameter.
20647 (partition_view_bitmap): Likewise.
20648 * tree-ssa-live.h: Adjust declarations.
20649 * tree-ssa-coalesce.c: Include explow.h.
20650 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20651 default defs at the entry point.
20652 (dump_part_var_map): New.
20653 (compute_optimized_partition_bases): New, called by...
20654 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20655 of compute_samebase_partition_bases. Adjust.
20656 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20657 * cfgexpand.c (leader_merge): New.
20658 (get_rtl_for_parm_ssa_default_def): New.
20659 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20660 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20661 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20662 redundant MEM attr setting.
20663 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20665 (expand_one_stack_var): ... this. New wrapper to check and
20666 skip already expanded SSA partitions.
20667 (record_alignment_for_reg_var): New, factored out of...
20668 (expand_one_var): ... this.
20669 (expand_one_ssa_partition): New.
20670 (adjust_one_expanded_partition_var): New.
20671 (expand_one_register_var): Check and skip already expanded SSA
20673 (expand_used_vars): Don't create DECLs for anonymous SSA
20674 names. Expand all SSA partitions, then adjust all SSA names.
20675 (pass::execute): Replace the loops that set
20676 SA.partition_to_pseudo from partition leaders and cleared
20677 DECL_RTL for multi-location variables, and that which used to
20678 rename vars and set attrs, with one that clears DECL_RTL and
20679 checks that PARMs and RESULTs default_defs match DECL_RTL.
20680 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20681 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20682 * explow.c (promote_ssa_mode): New.
20683 * explow.h (promote_ssa_mode): Declare.
20684 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20685 * function.c: Include cfgexpand.h.
20686 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20687 (use_register_for_parm_decl): Wrapper for the above to
20688 special-case the result_ptr.
20689 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20690 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20691 multiple locations.
20692 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20693 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20694 (assign_parm_setup_block): Prefer SSA-assigned location.
20695 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20696 if stack_parm is NULL.
20697 (assign_parm_setup_stack): Prefer SSA-assigned location.
20698 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20699 rtl before testing for pointer bounds. Special-case result_ptr.
20700 (expand_function_start): Maybe reset DECL_RTL of result.
20701 Prefer SSA-assigned location for result and static chain.
20702 Factor out DECL_RESULT and SET_DECL_RTL.
20703 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20704 anonymous SSA names. Use promote_ssa_mode.
20705 (get_temp_reg): Likewise.
20706 (remove_ssa_form): Adjust.
20707 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20708 and get its reg_usage for reg invalidation.
20709 (compute_bb_dataflow): Pass it insn.
20710 (emit_notes_in_bb): Likewise.
20711 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20712 fail assert on conversion between unsigned types.
20714 2015-06-09 Tom de Vries <tom@codesourcery.com>
20716 PR tree-optimization/65460
20717 * omp-low.c (expand_omp_target): Set parallelized_function on
20718 cgraph_node for child_fn.
20720 2015-06-09 Tom de Vries <tom@codesourcery.com>
20722 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
20723 parallelized_function before add_new_function.
20725 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
20727 * gcc-plugin.h: Move decls to plugin.h and include it.
20728 * plugin.h: Relocate decls from gcc-plugin.h
20729 * ggc-page.c: Include required header files.
20730 * passes.c: Likewise.
20731 * cgraphunit.c: Likewise.
20733 2015-06-09 Tom de Vries <tom@codesourcery.com>
20735 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
20737 2015-06-09 Jason Merrill <jason@redhat.com>
20740 * toplev.c (check_global_declaration): Don't warn about a clone.
20742 2015-06-09 Marek Polacek <polacek@redhat.com>
20744 PR tree-optimization/66299
20745 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
20746 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
20749 2015-06-09 Richard Biener <rguenther@suse.de>
20751 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
20752 (vect_analyze_slp_instance): Instead do not falsely drop
20755 2015-06-09 Richard Biener <rguenther@suse.de>
20757 PR middle-end/66423
20758 * match.pd: Handle A % (unsigned)(1 << B).
20760 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
20762 * varasm.c (output_object_block_htab): Remove.
20763 (output_object_block_compare): New.
20764 (output_object_blocks): Sort named object_blocks before outputting
20767 2015-06-09 Richard Biener <rguenther@suse.de>
20769 PR tree-optimization/66419
20770 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
20771 consider GROUP_GAP when detecting a perfect subchain.
20773 2015-06-09 Nick Clifton <nickc@redhat.com>
20775 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
20776 place read only data in the .frodata section.
20778 2015-06-09 Shiva Chen <shiva0217@gmail.com>
20780 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
20781 (atomic_store<mode>): Likewise.
20783 2015-06-09 Richard Biener <rguenther@suse.de>
20785 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
20787 2015-06-09 Richard Biener <rguenther@suse.de>
20789 PR middle-end/66413
20790 * tree-inline.c (insert_init_debug_bind): Unshare value.
20792 2015-06-09 Richard Biener <rguenther@suse.de>
20794 PR tree-optimization/66396
20795 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
20796 Rename virtual operands.
20798 2015-06-09 Tom de Vries <tom@codesourcery.com>
20800 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
20801 always return false.
20803 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20805 PR rtl-optimization/64164
20806 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20807 * tree-ssa-copyrename.c: Removed.
20808 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20809 -ftree-coalesce-vars.
20810 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20811 * common.opt (ftree-copyrename): Ignore.
20812 (ftree-coalesce-inlined-vars): Likewise.
20813 * doc/invoke.texi: Remove the ignored options above.
20814 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20815 * tree-ssa-coalesce.h: ... here.
20816 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20817 headers required by it.
20818 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20819 across variables when flag_tree_coalesce_vars. Check register
20820 use and promoted modes to allow coalescing. Moved to
20821 tree-ssa-coalesce.c.
20822 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20823 with its member functions to tree-ssa-coalesce.c.
20824 (var_map_base_init): Likewise. Renamed to
20825 compute_samebase_partition_bases.
20826 (partition_view_normal): Drop want_bases parameter.
20827 (partition_view_bitmap): Likewise.
20828 * tree-ssa-live.h: Adjust declarations.
20829 * tree-ssa-coalesce.c: Include explow.h.
20830 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20831 default defs at the entry point.
20832 (dump_part_var_map): New.
20833 (compute_optimized_partition_bases): New, called by...
20834 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20835 of compute_samebase_partition_bases. Adjust.
20836 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20837 * cfgexpand.c (leader_merge): New.
20838 (get_rtl_for_parm_ssa_default_def): New.
20839 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20840 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20841 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20842 redundant MEM attr setting.
20843 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20845 (expand_one_stack_var): ... this. New wrapper to check and
20846 skip already expanded SSA partitions.
20847 (record_alignment_for_reg_var): New, factored out of...
20848 (expand_one_var): ... this.
20849 (expand_one_ssa_partition): New.
20850 (adjust_one_expanded_partition_var): New.
20851 (expand_one_register_var): Check and skip already expanded SSA
20853 (expand_used_vars): Don't create DECLs for anonymous SSA
20854 names. Expand all SSA partitions, then adjust all SSA names.
20855 (pass::execute): Replace the loops that set
20856 SA.partition_to_pseudo from partition leaders and cleared
20857 DECL_RTL for multi-location variables, and that which used to
20858 rename vars and set attrs, with one that clears DECL_RTL and
20859 checks that PARMs and RESULTs default_defs match DECL_RTL.
20860 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20861 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20862 * explow.c (promote_ssa_mode): New.
20863 * explow.h (promote_ssa_mode): Declare.
20864 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20865 * function.c: Include cfgexpand.h.
20866 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20867 (use_register_for_parm_decl): Wrapper for the above to
20868 special-case the result_ptr.
20869 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20870 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20871 multiple locations.
20872 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20873 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20874 (assign_parm_setup_block): Prefer SSA-assigned location.
20875 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20876 if stack_parm is NULL.
20877 (assign_parm_setup_stack): Prefer SSA-assigned location.
20878 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20879 rtl before testing for pointer bounds. Special-case result_ptr.
20880 (expand_function_start): Maybe reset DECL_RTL of result.
20881 Prefer SSA-assigned location for result and static chain.
20882 Factor out DECL_RESULT and SET_DECL_RTL.
20883 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20884 anonymous SSA names. Use promote_ssa_mode.
20885 (get_temp_reg): Likewise.
20886 (remove_ssa_form): Adjust.
20887 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20888 and get its reg_usage for reg invalidation.
20889 (compute_bb_dataflow): Pass it insn.
20890 (emit_notes_in_bb): Likewise.
20891 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20892 fail assert on conversion between unsigned types.
20894 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20897 * tree-inline.c (reset_debug_binding): New.
20898 (reset_debug_bindings): Likewise.
20899 (expand_call_inline): Call it.
20901 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20903 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
20906 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20908 * lto-streamer-out.c (lto_output_location): Stream
20909 reserved locations correctly.
20910 * lto-streamer-in.c (lto_output_location): Likewise.
20912 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
20914 * coretypes.h: Include hash-table.h and hash-set.h for host files.
20915 * ggc.h: Don't include statistics.h>
20916 * hash-map.h: Remove all includes.
20917 * hash-set.h: Likewise.
20918 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
20919 the include list. Remove <new>.
20920 * inchash.h: Remove all includes.
20921 * mem-stats.h: Likewise.
20922 * vec.h: No special processing for generators or ggc.
20923 * alias.c : Adjust include files.
20924 * alloc-pool.c : Likewise.
20925 * alloc-pool.h : Likewise.
20926 * asan.c : Likewise.
20927 * attribs.c : Likewise.
20928 * auto-inc-dec.c : Likewise.
20929 * auto-profile.c : Likewise.
20930 * bb-reorder.c : Likewise.
20931 * bitmap.c : Likewise.
20932 * bitmap.h : Likewise.
20933 * bt-load.c : Likewise.
20934 * builtins.c : Likewise.
20935 * caller-save.c : Likewise.
20936 * calls.c : Likewise.
20937 * ccmp.c : Likewise.
20938 * cfg.c : Likewise.
20939 * cfganal.c : Likewise.
20940 * cfgbuild.c : Likewise.
20941 * cfgcleanup.c : Likewise.
20942 * cfgexpand.c : Likewise.
20943 * cfghooks.c : Likewise.
20944 * cfgloop.c : Likewise.
20945 * cfgloop.h : Likewise.
20946 * cfgloopanal.c : Likewise.
20947 * cfgloopmanip.c : Likewise.
20948 * cfgrtl.c : Likewise.
20949 * cgraph.c : Likewise.
20950 * cgraphbuild.c : Likewise.
20951 * cgraphclones.c : Likewise.
20952 * cgraphunit.c : Likewise.
20953 * cilk-common.c : Likewise.
20954 * combine-stack-adj.c : Likewise.
20955 * combine.c : Likewise.
20956 * compare-elim.c : Likewise.
20957 * context.c : Likewise.
20958 * convert.c : Likewise.
20959 * coverage.c : Likewise.
20960 * cppbuiltin.c : Likewise.
20961 * cprop.c : Likewise.
20962 * cse.c : Likewise.
20963 * cselib.c : Likewise.
20964 * data-streamer-in.c : Likewise.
20965 * data-streamer-out.c : Likewise.
20966 * data-streamer.c : Likewise.
20967 * data-streamer.h : Likewise.
20968 * dbxout.c : Likewise.
20969 * dce.c : Likewise.
20970 * ddg.c : Likewise.
20971 * debug.c : Likewise.
20972 * df-core.c : Likewise.
20973 * df-problems.c : Likewise.
20974 * df-scan.c : Likewise.
20976 * dfp.c : Likewise.
20977 * dojump.c : Likewise.
20978 * dominance.c : Likewise.
20979 * domwalk.c : Likewise.
20980 * double-int.c : Likewise.
20981 * dse.c : Likewise.
20982 * dumpfile.c : Likewise.
20983 * dwarf2asm.c : Likewise.
20984 * dwarf2cfi.c : Likewise.
20985 * dwarf2out.c : Likewise.
20986 * emit-rtl.c : Likewise.
20987 * et-forest.c : Likewise.
20988 * except.c : Likewise.
20989 * except.h : Likewise.
20990 * explow.c : Likewise.
20991 * expmed.c : Likewise.
20992 * expr.c : Likewise.
20993 * final.c : Likewise.
20994 * fixed-value.c : Likewise.
20995 * fold-const.c : Likewise.
20996 * function.c : Likewise.
20997 * fwprop.c : Likewise.
20998 * gcc-plugin.h : Likewise.
20999 * gcc.c : Likewise.
21000 * gcse-common.c : Likewise.
21001 * gcse.c : Likewise.
21002 * genattrtab.c : Likewise.
21003 * genautomata.c : Likewise.
21004 * genconditions.c : Likewise.
21005 * genemit.c : Likewise.
21006 * generic-match-head.c : Likewise.
21007 * genextract.c : Likewise.
21008 * gengtype-state.c : Likewise.
21009 * gengtype.c : Likewise.
21010 * genhooks.c : Likewise.
21011 * genmatch.c : Likewise.
21012 * genmodes.c : Likewise.
21013 * genrecog.c : Likewise.
21014 * gensupport.c : Likewise.
21015 * ggc-common.c : Likewise.
21016 * ggc-internal.h : Likewise.
21017 * ggc-none.c : Likewise.
21018 * ggc-page.c : Likewise.
21019 * gimple-builder.c : Likewise.
21020 * gimple-expr.c : Likewise.
21021 * gimple-fold.c : Likewise.
21022 * gimple-iterator.c : Likewise.
21023 * gimple-low.c : Likewise.
21024 * gimple-match-head.c : Likewise.
21025 * gimple-pretty-print.c : Likewise.
21026 * gimple-ssa-isolate-paths.c : Likewise.
21027 * gimple-ssa-strength-reduction.c : Likewise.
21028 * gimple-ssa.h : Likewise.
21029 * gimple-streamer-in.c : Likewise.
21030 * gimple-streamer-out.c : Likewise.
21031 * gimple-streamer.h : Likewise.
21032 * gimple-walk.c : Likewise.
21033 * gimple.c : Likewise.
21034 * gimplify-me.c : Likewise.
21035 * gimplify.c : Likewise.
21036 * godump.c : Likewise.
21037 * graph.c : Likewise.
21038 * graphds.c : Likewise.
21039 * graphite-blocking.c : Likewise.
21040 * graphite-dependences.c : Likewise.
21041 * graphite-interchange.c : Likewise.
21042 * graphite-isl-ast-to-gimple.c : Likewise.
21043 * graphite-optimize-isl.c : Likewise.
21044 * graphite-poly.c : Likewise.
21045 * graphite-scop-detection.c : Likewise.
21046 * graphite-sese-to-poly.c : Likewise.
21047 * graphite.c : Likewise.
21048 * haifa-sched.c : Likewise.
21049 * hard-reg-set.h : Likewise.
21050 * hw-doloop.c : Likewise.
21051 * ifcvt.c : Likewise.
21052 * inchash.c : Likewise.
21053 * incpath.c : Likewise.
21054 * init-regs.c : Likewise.
21055 * input.c : Likewise.
21056 * internal-fn.c : Likewise.
21057 * ipa-chkp.c : Likewise.
21058 * ipa-comdats.c : Likewise.
21059 * ipa-cp.c : Likewise.
21060 * ipa-devirt.c : Likewise.
21061 * ipa-icf-gimple.c : Likewise.
21062 * ipa-icf.c : Likewise.
21063 * ipa-inline-analysis.c : Likewise.
21064 * ipa-inline-transform.c : Likewise.
21065 * ipa-inline.c : Likewise.
21066 * ipa-polymorphic-call.c : Likewise.
21067 * ipa-profile.c : Likewise.
21068 * ipa-prop.c : Likewise.
21069 * ipa-pure-const.c : Likewise.
21070 * ipa-ref.c : Likewise.
21071 * ipa-reference.c : Likewise.
21072 * ipa-split.c : Likewise.
21073 * ipa-utils.c : Likewise.
21074 * ipa-visibility.c : Likewise.
21075 * ipa.c : Likewise.
21076 * ira-build.c : Likewise.
21077 * ira-color.c : Likewise.
21078 * ira-conflicts.c : Likewise.
21079 * ira-costs.c : Likewise.
21080 * ira-emit.c : Likewise.
21081 * ira-lives.c : Likewise.
21082 * ira.c : Likewise.
21083 * jump.c : Likewise.
21084 * langhooks.c : Likewise.
21085 * lcm.c : Likewise.
21086 * libfuncs.h : Likewise.
21087 * lists.c : Likewise.
21088 * loop-doloop.c : Likewise.
21089 * loop-init.c : Likewise.
21090 * loop-invariant.c : Likewise.
21091 * loop-iv.c : Likewise.
21092 * loop-unroll.c : Likewise.
21093 * lower-subreg.c : Likewise.
21094 * lra-assigns.c : Likewise.
21095 * lra-coalesce.c : Likewise.
21096 * lra-constraints.c : Likewise.
21097 * lra-eliminations.c : Likewise.
21098 * lra-lives.c : Likewise.
21099 * lra-remat.c : Likewise.
21100 * lra-spills.c : Likewise.
21101 * lra.c : Likewise.
21102 * lto-cgraph.c : Likewise.
21103 * lto-compress.c : Likewise.
21104 * lto-opts.c : Likewise.
21105 * lto-section-in.c : Likewise.
21106 * lto-section-out.c : Likewise.
21107 * lto-streamer-in.c : Likewise.
21108 * lto-streamer-out.c : Likewise.
21109 * lto-streamer.c : Likewise.
21110 * lto-streamer.h : Likewise.
21111 * mcf.c : Likewise.
21112 * mode-switching.c : Likewise.
21113 * modulo-sched.c : Likewise.
21114 * omega.c : Likewise.
21115 * omp-low.c : Likewise.
21116 * optabs.c : Likewise.
21117 * opts-global.c : Likewise.
21118 * opts.h : Likewise.
21119 * passes.c : Likewise.
21120 * plugin.c : Likewise.
21121 * postreload-gcse.c : Likewise.
21122 * postreload.c : Likewise.
21123 * predict.c : Likewise.
21124 * print-rtl.c : Likewise.
21125 * print-tree.c : Likewise.
21126 * profile.c : Likewise.
21127 * read-md.c : Likewise.
21128 * read-md.h : Likewise.
21129 * read-rtl.c : Likewise.
21130 * real.c : Likewise.
21131 * realmpfr.c : Likewise.
21132 * recog.c : Likewise.
21133 * ree.c : Likewise.
21134 * reg-stack.c : Likewise.
21135 * regcprop.c : Likewise.
21136 * reginfo.c : Likewise.
21137 * regrename.c : Likewise.
21138 * regstat.c : Likewise.
21139 * reload.c : Likewise.
21140 * reload1.c : Likewise.
21141 * reorg.c : Likewise.
21142 * resource.c : Likewise.
21143 * rtl-chkp.c : Likewise.
21144 * rtl.c : Likewise.
21145 * rtl.h : Likewise.
21146 * rtlanal.c : Likewise.
21147 * rtlhash.c : Likewise.
21148 * rtlhash.h : Likewise.
21149 * rtlhooks.c : Likewise.
21150 * sanopt.c : Likewise.
21151 * sched-deps.c : Likewise.
21152 * sched-ebb.c : Likewise.
21153 * sched-rgn.c : Likewise.
21154 * sched-vis.c : Likewise.
21155 * sdbout.c : Likewise.
21156 * sel-sched-dump.c : Likewise.
21157 * sel-sched-ir.c : Likewise.
21158 * sel-sched-ir.h : Likewise.
21159 * sel-sched.c : Likewise.
21160 * sese.c : Likewise.
21161 * shrink-wrap.c : Likewise.
21162 * shrink-wrap.h : Likewise.
21163 * simplify-rtx.c : Likewise.
21164 * stack-ptr-mod.c : Likewise.
21165 * statistics.c : Likewise.
21166 * stmt.c : Likewise.
21167 * stor-layout.c : Likewise.
21168 * store-motion.c : Likewise.
21169 * stringpool.c : Likewise.
21170 * symtab.c : Likewise.
21171 * target-globals.c : Likewise.
21172 * targhooks.c : Likewise.
21173 * tlink.c : Likewise.
21174 * toplev.c : Likewise.
21175 * tracer.c : Likewise.
21176 * trans-mem.c : Likewise.
21177 * tree-affine.c : Likewise.
21178 * tree-affine.h : Likewise.
21179 * tree-browser.c : Likewise.
21180 * tree-call-cdce.c : Likewise.
21181 * tree-cfg.c : Likewise.
21182 * tree-cfgcleanup.c : Likewise.
21183 * tree-chkp-opt.c : Likewise.
21184 * tree-chkp.c : Likewise.
21185 * tree-chrec.c : Likewise.
21186 * tree-complex.c : Likewise.
21187 * tree-data-ref.c : Likewise.
21188 * tree-dfa.c : Likewise.
21189 * tree-diagnostic.c : Likewise.
21190 * tree-dump.c : Likewise.
21191 * tree-eh.c : Likewise.
21192 * tree-eh.h : Likewise.
21193 * tree-emutls.c : Likewise.
21194 * tree-hasher.h : Likewise.
21195 * tree-if-conv.c : Likewise.
21196 * tree-inline.c : Likewise.
21197 * tree-inline.h : Likewise.
21198 * tree-into-ssa.c : Likewise.
21199 * tree-iterator.c : Likewise.
21200 * tree-loop-distribution.c : Likewise.
21201 * tree-nested.c : Likewise.
21202 * tree-nrv.c : Likewise.
21203 * tree-object-size.c : Likewise.
21204 * tree-outof-ssa.c : Likewise.
21205 * tree-parloops.c : Likewise.
21206 * tree-phinodes.c : Likewise.
21207 * tree-predcom.c : Likewise.
21208 * tree-pretty-print.c : Likewise.
21209 * tree-profile.c : Likewise.
21210 * tree-scalar-evolution.c : Likewise.
21211 * tree-sra.c : Likewise.
21212 * tree-ssa-address.c : Likewise.
21213 * tree-ssa-alias.c : Likewise.
21214 * tree-ssa-ccp.c : Likewise.
21215 * tree-ssa-coalesce.c : Likewise.
21216 * tree-ssa-copy.c : Likewise.
21217 * tree-ssa-copyrename.c : Likewise.
21218 * tree-ssa-dce.c : Likewise.
21219 * tree-ssa-dom.c : Likewise.
21220 * tree-ssa-dse.c : Likewise.
21221 * tree-ssa-forwprop.c : Likewise.
21222 * tree-ssa-ifcombine.c : Likewise.
21223 * tree-ssa-live.c : Likewise.
21224 * tree-ssa-loop-ch.c : Likewise.
21225 * tree-ssa-loop-im.c : Likewise.
21226 * tree-ssa-loop-ivcanon.c : Likewise.
21227 * tree-ssa-loop-ivopts.c : Likewise.
21228 * tree-ssa-loop-manip.c : Likewise.
21229 * tree-ssa-loop-niter.c : Likewise.
21230 * tree-ssa-loop-prefetch.c : Likewise.
21231 * tree-ssa-loop-unswitch.c : Likewise.
21232 * tree-ssa-loop.c : Likewise.
21233 * tree-ssa-math-opts.c : Likewise.
21234 * tree-ssa-operands.c : Likewise.
21235 * tree-ssa-phiopt.c : Likewise.
21236 * tree-ssa-phiprop.c : Likewise.
21237 * tree-ssa-pre.c : Likewise.
21238 * tree-ssa-propagate.c : Likewise.
21239 * tree-ssa-reassoc.c : Likewise.
21240 * tree-ssa-sccvn.c : Likewise.
21241 * tree-ssa-scopedtables.c : Likewise.
21242 * tree-ssa-sink.c : Likewise.
21243 * tree-ssa-strlen.c : Likewise.
21244 * tree-ssa-structalias.c : Likewise.
21245 * tree-ssa-tail-merge.c : Likewise.
21246 * tree-ssa-ter.c : Likewise.
21247 * tree-ssa-threadedge.c : Likewise.
21248 * tree-ssa-threadupdate.c : Likewise.
21249 * tree-ssa-uncprop.c : Likewise.
21250 * tree-ssa-uninit.c : Likewise.
21251 * tree-ssa.c : Likewise.
21252 * tree-ssanames.c : Likewise.
21253 * tree-stdarg.c : Likewise.
21254 * tree-streamer-in.c : Likewise.
21255 * tree-streamer-out.c : Likewise.
21256 * tree-streamer.c : Likewise.
21257 * tree-streamer.h : Likewise.
21258 * tree-switch-conversion.c : Likewise.
21259 * tree-tailcall.c : Likewise.
21260 * tree-vect-data-refs.c : Likewise.
21261 * tree-vect-generic.c : Likewise.
21262 * tree-vect-loop-manip.c : Likewise.
21263 * tree-vect-loop.c : Likewise.
21264 * tree-vect-patterns.c : Likewise.
21265 * tree-vect-slp.c : Likewise.
21266 * tree-vect-stmts.c : Likewise.
21267 * tree-vectorizer.c : Likewise.
21268 * tree-vectorizer.h : Likewise.
21269 * tree-vrp.c : Likewise.
21270 * tree.c : Likewise.
21271 * tsan.c : Likewise.
21272 * ubsan.c : Likewise.
21273 * valtrack.c : Likewise.
21274 * valtrack.h : Likewise.
21275 * value-prof.c : Likewise.
21276 * var-tracking.c : Likewise.
21277 * varasm.c : Likewise.
21278 * varpool.c : Likewise.
21280 * vmsdbgout.c : Likewise.
21281 * vtable-verify.c : Likewise.
21282 * vtable-verify.h : Likewise.
21283 * web.c : Likewise.
21284 * wide-int.cc : Likewise.
21285 * xcoffout.c : Likewise.
21286 * config/aarch64/aarch64-builtins.c : Likewise.
21287 * config/aarch64/aarch64.c : Likewise.
21288 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21289 * config/alpha/alpha.c : Likewise.
21290 * config/arc/arc.c : Likewise.
21291 * config/arm/aarch-common.c : Likewise.
21292 * config/arm/arm-builtins.c : Likewise.
21293 * config/arm/arm-c.c : Likewise.
21294 * config/arm/arm.c : Likewise.
21295 * config/avr/avr-c.c : Likewise.
21296 * config/avr/avr-log.c : Likewise.
21297 * config/avr/avr.c : Likewise.
21298 * config/bfin/bfin.c : Likewise.
21299 * config/c6x/c6x.c : Likewise.
21300 * config/cr16/cr16.c : Likewise.
21301 * config/cris/cris.c : Likewise.
21302 * config/darwin-c.c : Likewise.
21303 * config/darwin.c : Likewise.
21304 * config/default-c.c : Likewise.
21305 * config/epiphany/epiphany.c : Likewise.
21306 * config/epiphany/mode-switch-use.c : Likewise.
21307 * config/epiphany/resolve-sw-modes.c : Likewise.
21308 * config/fr30/fr30.c : Likewise.
21309 * config/frv/frv.c : Likewise.
21310 * config/ft32/ft32.c : Likewise.
21311 * config/glibc-c.c : Likewise.
21312 * config/h8300/h8300.c : Likewise.
21313 * config/i386/i386-c.c : Likewise.
21314 * config/i386/i386.c : Likewise.
21315 * config/i386/msformat-c.c : Likewise.
21316 * config/i386/winnt-cxx.c : Likewise.
21317 * config/i386/winnt-stubs.c : Likewise.
21318 * config/i386/winnt.c : Likewise.
21319 * config/ia64/ia64-c.c : Likewise.
21320 * config/ia64/ia64.c : Likewise.
21321 * config/iq2000/iq2000.c : Likewise.
21322 * config/lm32/lm32.c : Likewise.
21323 * config/m32c/m32c-pragma.c : Likewise.
21324 * config/m32c/m32c.c : Likewise.
21325 * config/m32r/m32r.c : Likewise.
21326 * config/m68k/m68k.c : Likewise.
21327 * config/mcore/mcore.c : Likewise.
21328 * config/mep/mep-pragma.c : Likewise.
21329 * config/mep/mep.c : Likewise.
21330 * config/microblaze/microblaze-c.c : Likewise.
21331 * config/microblaze/microblaze.c : Likewise.
21332 * config/mips/mips.c : Likewise.
21333 * config/mmix/mmix.c : Likewise.
21334 * config/mn10300/mn10300.c : Likewise.
21335 * config/moxie/moxie.c : Likewise.
21336 * config/msp430/msp430-c.c : Likewise.
21337 * config/msp430/msp430.c : Likewise.
21338 * config/nds32/nds32-cost.c : Likewise.
21339 * config/nds32/nds32-fp-as-gp.c : Likewise.
21340 * config/nds32/nds32-intrinsic.c : Likewise.
21341 * config/nds32/nds32-isr.c : Likewise.
21342 * config/nds32/nds32-md-auxiliary.c : Likewise.
21343 * config/nds32/nds32-memory-manipulation.c : Likewise.
21344 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21345 * config/nds32/nds32-predicates.c : Likewise.
21346 * config/nds32/nds32.c : Likewise.
21347 * config/nios2/nios2.c : Likewise.
21348 * config/nvptx/nvptx.c : Likewise.
21349 * config/pa/pa.c : Likewise.
21350 * config/pdp11/pdp11.c : Likewise.
21351 * config/rl78/rl78-c.c : Likewise.
21352 * config/rl78/rl78.c : Likewise.
21353 * config/rs6000/rs6000-c.c : Likewise.
21354 * config/rs6000/rs6000.c : Likewise.
21355 * config/rx/rx.c : Likewise.
21356 * config/s390/s390-c.c : Likewise.
21357 * config/s390/s390.c : Likewise.
21358 * config/sh/sh-c.c : Likewise.
21359 * config/sh/sh-mem.cc : Likewise.
21360 * config/sh/sh.c : Likewise.
21361 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21362 * config/sh/sh_treg_combine.cc : Likewise.
21363 * config/sol2-c.c : Likewise.
21364 * config/sol2-cxx.c : Likewise.
21365 * config/sol2-stubs.c : Likewise.
21366 * config/sol2.c : Likewise.
21367 * config/sparc/sparc-c.c : Likewise.
21368 * config/sparc/sparc.c : Likewise.
21369 * config/spu/spu-c.c : Likewise.
21370 * config/spu/spu.c : Likewise.
21371 * config/stormy16/stormy16.c : Likewise.
21372 * config/tilegx/mul-tables.c : Likewise.
21373 * config/tilegx/tilegx-c.c : Likewise.
21374 * config/tilegx/tilegx.c : Likewise.
21375 * config/tilepro/mul-tables.c : Likewise.
21376 * config/tilepro/tilepro-c.c : Likewise.
21377 * config/tilepro/tilepro.c : Likewise.
21378 * config/v850/v850-c.c : Likewise.
21379 * config/v850/v850.c : Likewise.
21380 * config/vax/vax.c : Likewise.
21381 * config/visium/visium.c : Likewise.
21382 * config/vms/vms-c.c : Likewise.
21383 * config/vms/vms.c : Likewise.
21384 * config/vxworks.c : Likewise.
21385 * config/winnt-c.c : Likewise.
21386 * config/xtensa/xtensa.c : Likewise.
21388 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21391 * ipa-utils.h (warn_types_mismatch): Update prototype.
21392 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21394 (type_mismatch_p): New function.
21395 (warn_types_mismatch): Reorg to work better on non-C++ types.
21396 (odr_types_equivalent_p): Add loc1/loc2 parameters.
21397 (add_type_duplicate): Update.
21399 2015-06-08 Tom de Vries <tom@codesourcery.com>
21401 PR rtl-optimization/66444
21402 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21405 2015-06-08 Richard Biener <rguenther@suse.de>
21407 PR tree-optimization/66422
21408 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21409 block after inserted gcc_unreachable.
21411 2015-06-08 Nick Clifton <nickc@redhat.com>
21413 * config/rx/rx.c (rx_function_value): Do not promote vector types.
21414 (rx_promote_function_mode): Likewise.
21415 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21417 2015-06-08 Jakub Jelinek <jakub@redhat.com>
21419 * genattrtab.c (insn_alternatives): Change type from int *
21421 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21422 (get_attr_value): Change type of num_alt to uint64_t.
21423 (compute_alternative_mask): Change return type from
21424 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21425 (make_alternative_compare, mk_attr_alt): Change argument type
21426 from int to uint64_t.
21427 (simplify_test_exp): Change type of i from int to uint64_t.
21428 Shift ((uint64_t) 1) instead of 1 up.
21429 (main): Adjust oballocvec first argument from int to uint64_t.
21430 Shift ((uint64_t) 1) instead of 1 up.
21432 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
21435 * gdbhooks.py: Import sys.
21436 (intptr): New function. Replace int(...) by intptr(...).
21438 2015-06-08 Richard Biener <rguenther@suse.de>
21440 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
21441 adjustment for gaps at the end of a SLP load group properly.
21442 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
21443 all permutations we can generate.
21444 (vect_transform_slp_perm_load): Use the correct group-size.
21446 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
21448 * genmatch.c (expr::gen_transform): For conditions, guess the type
21449 from the second operand.
21451 2015-06-08 Tom de Vries <tom@codesourcery.com>
21453 PR tree-optimization/66442
21454 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
21455 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
21456 if the loop latch is not a singleton. Use
21457 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
21459 2015-06-08 Marek Polacek <polacek@redhat.com>
21462 * toplev.c (check_global_declaration): Don't warn about artificial
21465 2015-06-08 Tom de Vries <tom@codesourcery.com>
21467 PR tree-optimization/66436
21468 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
21470 * gimplify.c: Add tree-dump.h include.
21471 (gimplify_function_tree): Dump function to gimple dump file.
21472 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
21475 2015-06-08 Tom de Vries <tom@codesourcery.com>
21477 PR tree-optimization/66435
21478 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
21481 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
21483 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
21484 of ptr_type_node to not be ptr_to_node.
21485 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
21486 TREE_TYPE of pointers.
21487 * gimple-expr.c (useless_type_conversion): Reorder the check for
21488 function pointers and TYPE_CANONICAL.
21490 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
21493 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
21494 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
21495 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
21497 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
21498 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
21499 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
21500 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
21501 and non iso if unix2003.
21503 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
21505 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
21507 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
21509 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
21510 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
21511 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
21512 except.c, final.c, function.c, gcse-common.c, genemit.c,
21513 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
21514 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
21515 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
21516 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
21519 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
21521 * combine.c (combine_split_insns): Remove cast.
21522 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
21523 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
21524 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
21525 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
21526 * genemit.c (gen_split): Change return type of generated functions to
21528 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
21529 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
21530 gen_peephole2_* functions.
21531 (print_subroutine, main): Likewise.
21532 * recog.c (peephole2_optimize): Remove cast.
21533 (peep2_next_insn): Promote return type to rtx_insn.
21534 * recog.h (peep2_next_insn): Fix prototype.
21535 * rtl.h (try_split, split_insns): Likewise.
21537 2015-06-06 DJ Delorie <dj@redhat.com>
21539 * config/msp430/msp430.c (msp430_asm_integer): Support addition
21540 and subtraction too.
21542 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
21545 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
21546 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
21547 instead of Snd. Disparage Sid/z alternative with '^'.
21549 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
21551 * dwarf2out.c: Remove deferred_locations*.
21552 (dwarf2_debug_hooks): Add early_finish hook.
21553 Remove global_decl hook.
21554 Add early_global_decl and late_global_decl hook.
21555 New global early_dwarf.
21556 New structure set_early_dwarf.
21557 (output_die): Indicate whether a DIE was generated early
21558 when generating assembly with -dA.
21559 (struct limbo_die_struct): Document created_for field.
21560 Remove file_table_last_lookup.
21561 (remove_AT): Return TRUE if successful.
21562 (remove_child_TAG): Clear die_parent.
21563 (reparent_child): New function abstracted from...
21564 (splice_child_die): ...here.
21565 (new_die): ICE if a DIE ends up in limbo too late.
21567 (defer_location): Remove.
21568 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
21569 (fill_variable_array_bounds): New.
21570 (decl_start_label): Call fill_variable_array_bounds.
21571 (gen_formal_parameter_die): Rewrite to reuse previously generated
21573 (gen_subprogram_die): Same.
21574 (gen_variable_die): Same.
21575 (gen_const_die): Same.
21576 (gen_label_die): Same.
21577 (gen_lexical_block_die): Same.
21578 (decl_will_get_specification_p): New.
21579 (local_function_static): New.
21580 (gen_struct_or_union_type_die): Fill in variable-length fields.
21581 (gen_typedef_die): Fill in variable-length typedefs.
21582 (gen_tagged_type_die): Gracefully return on error_mark_node.
21583 Handle re-entrancy.
21584 (gen_type_die_with_usage): Handle variable-length types.
21585 Remove duplicate code for ARRAY_TYPE case.
21586 (process_scope_var): Only process imported modules during early
21588 (dwarf2out_early_global_decl): New.
21589 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
21590 (dwarf2out_type_decl): Set early_dwarf while calling
21592 (dwarf2out_decl): Verify that we did not recreate a previously
21594 Do not return on DECL_EXTERNALs in VAR_DECLs.
21595 Abstract some code to local_function_static.
21596 (lookup_filename): Remove use of file_table_last_lookup.
21597 Gracefully exit on missing file_name.
21598 (dwarf2out_finish): Verify limbo list.
21599 Remove deferred_locations_list use.
21600 Move deferred_asm_name and limbo flushing to...
21601 (dwarf2out_early_finish): ...here. New.
21602 (dwarf2out_c_finalize): Remove set of deferred_location_list,
21603 deferred_asm_name, and file_table_last_lookup.
21604 * cgraph.h (referred_to_p): Add default argument.
21605 * cgraphunit.c (referred_to_p): Add and handle include_self
21607 (analyze_functions): Add first_time argument.
21608 Call check_global_declaration for all symbols.
21609 Call late_global_decl for nodes for moribund nodes.
21610 (finalize_compilation_unit): Add new argument to
21612 Call early_global_decl for functions.
21613 Call early_finish debug hook.
21614 * dbxout.c (dbxout_early_global_decl): New.
21615 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
21616 (dbx_debug_hooks): Add new hooks.
21617 (xcoff_debug_hooks): Same.
21618 * debug.c (do_nothing_debug_hooks): Add early_finish field.
21619 Add early and late debug hooks.
21620 Remove global_decl hook.
21621 * debug.h (struct gcc_debug_hooks): Add early_finish,
21622 early_global_decl, and late_global_decl fields.
21623 Remove global_decl field.
21624 Document gcc_debug_hooks.
21625 * gengtype.c (output_typename): Remove.
21626 * godump.c (go_early_global_decl): New.
21627 (go_late_global_decl): New.
21628 (go_global_decl): Remove.
21629 (dump_go_spec_init): Remove global_decl. Add
21630 {early,late}_global_decl.
21631 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
21632 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
21633 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
21634 (write_global_declarations): Remove.
21635 (global_decl_processing): New.
21636 * langhooks.h (struct lang_hooks_for_decls): Remove
21637 final_write_globals field.
21638 Add post_compilation_parsing_cleanups field.
21639 * passes.c (rest_of_decl_compilation): Call early_global_decl.
21640 * sdbout.c: Add early and late_global_decl hooks. Remove
21641 sdbout_global_decl hook.
21642 Add early_finish field for sdb_debug_hooks.
21643 (sdbout_global_decl): Remove.
21644 (sdbout_early_global_decl): New.
21645 (sdbout_late_global_decl): New.
21646 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
21647 * toplev.c (check_global_declaration): Rename from
21648 check_global_declaration_1.
21649 Adapt to use symtab infrastructure.
21650 (check_global_declarations): Remove.
21651 (emit_debug_global_declarations): Remove.
21652 (compile_file): Remove call to final_write_globals langhook.
21653 Run the actual compilation process.
21654 Perform any post compilation parser cleanups.
21655 Generate late debug info.
21656 * toplev.h (check_global_declaration): New.
21657 (check_global_declaration_1): Remove.
21658 (check_global_declarations): Remove.
21659 (write_global_declarations): Remove.
21660 (emit_debug_global_declarations): Remove.
21661 (global_decl_processing): New.
21662 * tree-core.h (struct tree_block): Add DIE field.
21663 * tree.h (BLOCK_DIE): New.
21664 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
21666 (vmsdbgout_early_global_decl): New.
21667 (vmsdbgout_late_global_decl): New.
21668 Add early_finish debug hook field to vmsdbg_debug_hooks.
21669 Remove vmsdbgout_decl to vmsdbgout_function_decl.
21670 Add early and late_global_decl debug hooks.
21672 2015-06-05 Julian Brown <julian@codesourcery.com>
21673 Sandra Loosemore <sandra@codesourcery.com>
21675 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
21676 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
21677 to print-sysroot-suffix.sh script.
21679 2015-06-05 Tom de Vries <tom@codesourcery.com>
21681 merge from gomp4 branch:
21682 2015-05-28 Tom de Vries <tom@codesourcery.com>
21684 PR tree-optimization/65443
21685 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
21686 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
21687 (try_transform_to_exit_first_loop_alt): New function.
21688 (transform_to_exit_first_loop): Use
21689 try_transform_to_exit_first_loop_alt.
21691 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
21693 * builtins.c (expand_builtin_atomic_compare_exchange): Call
21694 emit_cmp_and_jump_insns with the mode of target.
21696 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21698 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
21700 2015-06-04 DJ Delorie <dj@redhat.com>
21702 * config/msp430/msp430.md (movsi_s): New. Special case for
21703 storing a 20-bit symbol into a 32-bit register.
21704 * config/msp430/msp430.c (msp430_subreg): Add support for it.
21705 * config/msp430/predicates.md (msp430_symbol_operand): New.
21707 2015-06-04 Sriraman Tallam <tmsriram@google.com>
21709 * c-family/c-common.c (noplt): New attribute.
21710 (handle_noplt_attribute): New handler.
21711 * calls.c (prepare_call_address): Check for noplt
21713 * config/i386/i386.c (ix86_expand_call): Check
21714 for noplt attribute.
21715 (ix86_nopic_noplt_attribute_p): New function.
21716 (ix86_output_call_insn): Output indirect call for non-pic
21718 * doc/extend.texi (noplt): Document new attribute.
21719 * doc/invoke.texi: Document new attribute.
21721 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
21723 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
21724 real.h, and fixed-value.h when included in host source files.
21725 * double-int.h: Remove redundant #includes listed above.
21726 * fixed-value.h: Likewise.
21727 * real.h: Likewise.
21728 * wide-int.h: Likewise.
21729 * inchash.h: Likewise.
21730 * rtl.h: Add some include files When included from a generator file.
21731 * target.h: Remove wide-int.h and insn-modes.h from the include list.
21732 * internal-fn.h: Don't include coretypes.h.
21733 * alias.c: Adjust includes for restructured coretypes.h.
21734 * asan.c: Likewise.
21735 * attribs.c: Likewise.
21736 * auto-inc-dec.c: Likewise.
21737 * auto-profile.c: Likewise.
21738 * bb-reorder.c: Likewise.
21739 * bt-load.c: Likewise.
21740 * builtins.c: Likewise.
21741 * caller-save.c: Likewise.
21742 * calls.c: Likewise.
21743 * ccmp.c: Likewise.
21745 * cfganal.c: Likewise.
21746 * cfgbuild.c: Likewise.
21747 * cfgcleanup.c: Likewise.
21748 * cfgexpand.c: Likewise.
21749 * cfghooks.c: Likewise.
21750 * cfgloop.c: Likewise.
21751 * cfgloop.h: Likewise.
21752 * cfgloopanal.c: Likewise.
21753 * cfgloopmanip.c: Likewise.
21754 * cfgrtl.c: Likewise.
21755 * cgraph.c: Likewise.
21756 * cgraphbuild.c: Likewise.
21757 * cgraphclones.c: Likewise.
21758 * cgraphunit.c: Likewise.
21759 * cilk-common.c: Likewise.
21760 * combine-stack-adj.c: Likewise.
21761 * combine.c: Likewise.
21762 * compare-elim.c: Likewise.
21763 * convert.c: Likewise.
21764 * coverage.c: Likewise.
21765 * cppbuiltin.c: Likewise.
21766 * cprop.c: Likewise.
21768 * cselib.c: Likewise.
21769 * data-streamer-in.c: Likewise.
21770 * data-streamer-out.c: Likewise.
21771 * data-streamer.c: Likewise.
21772 * dbxout.c: Likewise.
21775 * debug.c: Likewise.
21776 * df-core.c: Likewise.
21777 * df-problems.c: Likewise.
21778 * df-scan.c: Likewise.
21781 * dojump.c: Likewise.
21782 * dominance.c: Likewise.
21783 * domwalk.c: Likewise.
21784 * double-int.c: Likewise.
21786 * dumpfile.c: Likewise.
21787 * dwarf2asm.c: Likewise.
21788 * dwarf2cfi.c: Likewise.
21789 * dwarf2out.c: Likewise.
21790 * dwarf2out.h: Likewise.
21791 * emit-rtl.c: Likewise.
21792 * et-forest.c: Likewise.
21793 * except.c: Likewise.
21794 * explow.c: Likewise.
21795 * expmed.c: Likewise.
21796 * expr.c: Likewise.
21797 * final.c: Likewise.
21798 * fixed-value.c: Likewise.
21799 * fold-const.c: Likewise.
21800 * function.c: Likewise.
21801 * fwprop.c: Likewise.
21802 * gcc-plugin.h: Likewise.
21803 * gcse.c: Likewise.
21804 * generic-match-head.c: Likewise.
21805 * ggc-page.c: Likewise.
21806 * gimple-builder.c: Likewise.
21807 * gimple-expr.c: Likewise.
21808 * gimple-fold.c: Likewise.
21809 * gimple-iterator.c: Likewise.
21810 * gimple-low.c: Likewise.
21811 * gimple-match-head.c: Likewise.
21812 * gimple-pretty-print.c: Likewise.
21813 * gimple-ssa-isolate-paths.c: Likewise.
21814 * gimple-ssa-strength-reduction.c: Likewise.
21815 * gimple-streamer-in.c: Likewise.
21816 * gimple-streamer-out.c: Likewise.
21817 * gimple-streamer.h: Likewise.
21818 * gimple-walk.c: Likewise.
21819 * gimple.c: Likewise.
21820 * gimplify-me.c: Likewise.
21821 * gimplify.c: Likewise.
21822 * godump.c: Likewise.
21823 * graph.c: Likewise.
21824 * graphite-blocking.c: Likewise.
21825 * graphite-dependences.c: Likewise.
21826 * graphite-interchange.c: Likewise.
21827 * graphite-isl-ast-to-gimple.c: Likewise.
21828 * graphite-optimize-isl.c: Likewise.
21829 * graphite-poly.c: Likewise.
21830 * graphite-scop-detection.c: Likewise.
21831 * graphite-sese-to-poly.c: Likewise.
21832 * graphite.c: Likewise.
21833 * haifa-sched.c: Likewise.
21834 * hooks.h: Likewise.
21835 * hw-doloop.c: Likewise.
21836 * ifcvt.c: Likewise.
21837 * incpath.c: Likewise.
21838 * init-regs.c: Likewise.
21839 * internal-fn.c: Likewise.
21840 * ipa-chkp.c: Likewise.
21841 * ipa-comdats.c: Likewise.
21842 * ipa-cp.c: Likewise.
21843 * ipa-devirt.c: Likewise.
21844 * ipa-icf-gimple.c: Likewise.
21845 * ipa-icf.c: Likewise.
21846 * ipa-inline-analysis.c: Likewise.
21847 * ipa-inline-transform.c: Likewise.
21848 * ipa-inline.c: Likewise.
21849 * ipa-polymorphic-call.c: Likewise.
21850 * ipa-profile.c: Likewise.
21851 * ipa-prop.c: Likewise.
21852 * ipa-pure-const.c: Likewise.
21853 * ipa-ref.c: Likewise.
21854 * ipa-reference.c: Likewise.
21855 * ipa-split.c: Likewise.
21856 * ipa-utils.c: Likewise.
21857 * ipa-visibility.c: Likewise.
21859 * ira-build.c: Likewise.
21860 * ira-color.c: Likewise.
21861 * ira-conflicts.c: Likewise.
21862 * ira-costs.c: Likewise.
21863 * ira-emit.c: Likewise.
21864 * ira-lives.c: Likewise.
21866 * jump.c: Likewise.
21867 * langhooks.c: Likewise.
21869 * loop-doloop.c: Likewise.
21870 * loop-init.c: Likewise.
21871 * loop-invariant.c: Likewise.
21872 * loop-iv.c: Likewise.
21873 * loop-unroll.c: Likewise.
21874 * lower-subreg.c: Likewise.
21875 * lra-assigns.c: Likewise.
21876 * lra-coalesce.c: Likewise.
21877 * lra-constraints.c: Likewise.
21878 * lra-eliminations.c: Likewise.
21879 * lra-lives.c: Likewise.
21880 * lra-remat.c: Likewise.
21881 * lra-spills.c: Likewise.
21883 * lto-cgraph.c: Likewise.
21884 * lto-compress.c: Likewise.
21885 * lto-opts.c: Likewise.
21886 * lto-section-in.c: Likewise.
21887 * lto-section-out.c: Likewise.
21888 * lto-streamer-in.c: Likewise.
21889 * lto-streamer-out.c: Likewise.
21890 * lto-streamer.c: Likewise.
21892 * mode-switching.c: Likewise.
21893 * modulo-sched.c: Likewise.
21894 * omega.c: Likewise.
21895 * omp-low.c: Likewise.
21896 * optabs.c: Likewise.
21897 * opts-global.c: Likewise.
21898 * passes.c: Likewise.
21899 * plugin.c: Likewise.
21900 * postreload-gcse.c: Likewise.
21901 * postreload.c: Likewise.
21902 * predict.c: Likewise.
21903 * print-rtl.c: Likewise.
21904 * print-tree.c: Likewise.
21905 * profile.c: Likewise.
21906 * real.c: Likewise.
21907 * realmpfr.c: Likewise.
21908 * realmpfr.h: Likewise.
21909 * recog.c: Likewise.
21911 * reg-stack.c: Likewise.
21912 * regcprop.c: Likewise.
21913 * reginfo.c: Likewise.
21914 * regrename.c: Likewise.
21915 * regs.h: Likewise.
21916 * regstat.c: Likewise.
21917 * reload.c: Likewise.
21918 * reload1.c: Likewise.
21919 * reorg.c: Likewise.
21920 * resource.c: Likewise.
21921 * rtl-chkp.c: Likewise.
21922 * rtlanal.c: Likewise.
21923 * rtlhooks.c: Likewise.
21924 * sanopt.c: Likewise.
21925 * sched-deps.c: Likewise.
21926 * sched-ebb.c: Likewise.
21927 * sched-rgn.c: Likewise.
21928 * sched-vis.c: Likewise.
21929 * sdbout.c: Likewise.
21930 * sel-sched-dump.c: Likewise.
21931 * sel-sched-ir.c: Likewise.
21932 * sel-sched.c: Likewise.
21933 * sese.c: Likewise.
21934 * shrink-wrap.c: Likewise.
21935 * shrink-wrap.h: Likewise.
21936 * simplify-rtx.c: Likewise.
21937 * stack-ptr-mod.c: Likewise.
21938 * statistics.c: Likewise.
21939 * stmt.c: Likewise.
21940 * stor-layout.c: Likewise.
21941 * store-motion.c: Likewise.
21942 * stringpool.c: Likewise.
21943 * symtab.c: Likewise.
21944 * target-globals.c: Likewise.
21945 * targhooks.c: Likewise.
21946 * toplev.c: Likewise.
21947 * tracer.c: Likewise.
21948 * trans-mem.c: Likewise.
21949 * tree-affine.c: Likewise.
21950 * tree-affine.h: Likewise.
21951 * tree-browser.c: Likewise.
21952 * tree-call-cdce.c: Likewise.
21953 * tree-cfg.c: Likewise.
21954 * tree-cfgcleanup.c: Likewise.
21955 * tree-chkp-opt.c: Likewise.
21956 * tree-chkp.c: Likewise.
21957 * tree-chrec.c: Likewise.
21958 * tree-complex.c: Likewise.
21959 * tree-data-ref.c: Likewise.
21960 * tree-dfa.c: Likewise.
21961 * tree-diagnostic.c: Likewise.
21962 * tree-dump.c: Likewise.
21963 * tree-eh.c: Likewise.
21964 * tree-emutls.c: Likewise.
21965 * tree-if-conv.c: Likewise.
21966 * tree-inline.c: Likewise.
21967 * tree-into-ssa.c: Likewise.
21968 * tree-iterator.c: Likewise.
21969 * tree-loop-distribution.c: Likewise.
21970 * tree-nested.c: Likewise.
21971 * tree-nrv.c: Likewise.
21972 * tree-object-size.c: Likewise.
21973 * tree-outof-ssa.c: Likewise.
21974 * tree-parloops.c: Likewise.
21975 * tree-phinodes.c: Likewise.
21976 * tree-predcom.c: Likewise.
21977 * tree-pretty-print.c: Likewise.
21978 * tree-pretty-print.h: Likewise.
21979 * tree-profile.c: Likewise.
21980 * tree-scalar-evolution.c: Likewise.
21981 * tree-sra.c: Likewise.
21982 * tree-ssa-address.c: Likewise.
21983 * tree-ssa-alias.c: Likewise.
21984 * tree-ssa-ccp.c: Likewise.
21985 * tree-ssa-coalesce.c: Likewise.
21986 * tree-ssa-copy.c: Likewise.
21987 * tree-ssa-copyrename.c: Likewise.
21988 * tree-ssa-dce.c: Likewise.
21989 * tree-ssa-dom.c: Likewise.
21990 * tree-ssa-dse.c: Likewise.
21991 * tree-ssa-forwprop.c: Likewise.
21992 * tree-ssa-ifcombine.c: Likewise.
21993 * tree-ssa-live.c: Likewise.
21994 * tree-ssa-loop-ch.c: Likewise.
21995 * tree-ssa-loop-im.c: Likewise.
21996 * tree-ssa-loop-ivcanon.c: Likewise.
21997 * tree-ssa-loop-ivopts.c: Likewise.
21998 * tree-ssa-loop-manip.c: Likewise.
21999 * tree-ssa-loop-niter.c: Likewise.
22000 * tree-ssa-loop-prefetch.c: Likewise.
22001 * tree-ssa-loop-unswitch.c: Likewise.
22002 * tree-ssa-loop.c: Likewise.
22003 * tree-ssa-loop.h: Likewise.
22004 * tree-ssa-math-opts.c: Likewise.
22005 * tree-ssa-operands.c: Likewise.
22006 * tree-ssa-phiopt.c: Likewise.
22007 * tree-ssa-phiprop.c: Likewise.
22008 * tree-ssa-pre.c: Likewise.
22009 * tree-ssa-propagate.c: Likewise.
22010 * tree-ssa-reassoc.c: Likewise.
22011 * tree-ssa-sccvn.c: Likewise.
22012 * tree-ssa-scopedtables.c: Likewise.
22013 * tree-ssa-sink.c: Likewise.
22014 * tree-ssa-strlen.c: Likewise.
22015 * tree-ssa-structalias.c: Likewise.
22016 * tree-ssa-tail-merge.c: Likewise.
22017 * tree-ssa-ter.c: Likewise.
22018 * tree-ssa-threadedge.c: Likewise.
22019 * tree-ssa-threadupdate.c: Likewise.
22020 * tree-ssa-uncprop.c: Likewise.
22021 * tree-ssa-uninit.c: Likewise.
22022 * tree-ssa.c: Likewise.
22023 * tree-ssanames.c: Likewise.
22024 * tree-stdarg.c: Likewise.
22025 * tree-streamer-in.c: Likewise.
22026 * tree-streamer-out.c: Likewise.
22027 * tree-streamer.c: Likewise.
22028 * tree-switch-conversion.c: Likewise.
22029 * tree-tailcall.c: Likewise.
22030 * tree-vect-data-refs.c: Likewise.
22031 * tree-vect-generic.c: Likewise.
22032 * tree-vect-loop-manip.c: Likewise.
22033 * tree-vect-loop.c: Likewise.
22034 * tree-vect-patterns.c: Likewise.
22035 * tree-vect-slp.c: Likewise.
22036 * tree-vect-stmts.c: Likewise.
22037 * tree-vectorizer.c: Likewise.
22038 * tree-vrp.c: Likewise.
22039 * tree.c: Likewise.
22040 * tsan.c: Likewise.
22041 * ubsan.c: Likewise.
22042 * valtrack.c: Likewise.
22043 * value-prof.c: Likewise.
22044 * var-tracking.c: Likewise.
22045 * varasm.c: Likewise.
22046 * varpool.c: Likewise.
22047 * vmsdbgout.c: Likewise.
22048 * vtable-verify.c: Likewise.
22050 * wide-int-print.cc: Likewise.
22051 * wide-int-print.h: Likewise.
22052 * wide-int.cc: Likewise.
22053 * xcoffout.c: Likewise.
22054 * config/aarch64/aarch64-builtins.c: Likewise.
22055 * config/aarch64/aarch64.c: Likewise.
22056 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22057 * config/alpha/alpha.c: Likewise.
22058 * config/arc/arc.c: Likewise.
22059 * config/arm/aarch-common.c: Likewise.
22060 * config/arm/arm-builtins.c: Likewise.
22061 * config/arm/arm-c.c: Likewise.
22062 * config/arm/arm.c: Likewise.
22063 * config/avr/avr-c.c: Likewise.
22064 * config/avr/avr-log.c: Likewise.
22065 * config/avr/avr.c: Likewise.
22066 * config/bfin/bfin.c: Likewise.
22067 * config/c6x/c6x.c: Likewise.
22068 * config/cr16/cr16.c: Likewise.
22069 * config/cris/cris.c: Likewise.
22070 * config/darwin-c.c: Likewise.
22071 * config/darwin.c: Likewise.
22072 * config/default-c.c: Likewise.
22073 * config/epiphany/epiphany.c: Likewise.
22074 * config/epiphany/mode-switch-use.c: Likewise.
22075 * config/epiphany/resolve-sw-modes.c: Likewise.
22076 * config/fr30/fr30.c: Likewise.
22077 * config/frv/frv.c: Likewise.
22078 * config/ft32/ft32.c: Likewise.
22079 * config/glibc-c.c: Likewise.
22080 * config/h8300/h8300.c: Likewise.
22081 * config/i386/i386-c.c: Likewise.
22082 * config/i386/i386.c: Likewise.
22083 * config/i386/msformat-c.c: Likewise.
22084 * config/i386/winnt-cxx.c: Likewise.
22085 * config/i386/winnt-stubs.c: Likewise.
22086 * config/i386/winnt.c: Likewise.
22087 * config/ia64/ia64-c.c: Likewise.
22088 * config/ia64/ia64.c: Likewise.
22089 * config/iq2000/iq2000.c: Likewise.
22090 * config/lm32/lm32.c: Likewise.
22091 * config/m32c/m32c-pragma.c: Likewise.
22092 * config/m32c/m32c.c: Likewise.
22093 * config/m32r/m32r.c: Likewise.
22094 * config/m68k/m68k.c: Likewise.
22095 * config/mcore/mcore.c: Likewise.
22096 * config/mep/mep-pragma.c: Likewise.
22097 * config/mep/mep.c: Likewise.
22098 * config/microblaze/microblaze-c.c: Likewise.
22099 * config/microblaze/microblaze.c: Likewise.
22100 * config/mips/mips.c: Likewise.
22101 * config/mmix/mmix.c: Likewise.
22102 * config/mn10300/mn10300.c: Likewise.
22103 * config/moxie/moxie.c: Likewise.
22104 * config/msp430/msp430-c.c: Likewise.
22105 * config/msp430/msp430.c: Likewise.
22106 * config/nds32/nds32-cost.c: Likewise.
22107 * config/nds32/nds32-fp-as-gp.c: Likewise.
22108 * config/nds32/nds32-intrinsic.c: Likewise.
22109 * config/nds32/nds32-isr.c: Likewise.
22110 * config/nds32/nds32-md-auxiliary.c: Likewise.
22111 * config/nds32/nds32-memory-manipulation.c: Likewise.
22112 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22113 * config/nds32/nds32-predicates.c: Likewise.
22114 * config/nds32/nds32.c: Likewise.
22115 * config/nios2/nios2.c: Likewise.
22116 * config/nvptx/nvptx.c: Likewise.
22117 * config/pa/pa.c: Likewise.
22118 * config/pdp11/pdp11.c: Likewise.
22119 * config/rl78/rl78-c.c: Likewise.
22120 * config/rl78/rl78.c: Likewise.
22121 * config/rs6000/rs6000-c.c: Likewise.
22122 * config/rs6000/rs6000.c: Likewise.
22123 * config/rx/rx.c: Likewise.
22124 * config/s390/s390-c.c: Likewise.
22125 * config/s390/s390.c: Likewise.
22126 * config/sh/sh-c.c: Likewise.
22127 * config/sh/sh-mem.cc: Likewise.
22128 * config/sh/sh.c: Likewise.
22129 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22130 * config/sh/sh_treg_combine.cc: Likewise.
22131 * config/sol2-c.c: Likewise.
22132 * config/sol2-cxx.c: Likewise.
22133 * config/sol2-stubs.c: Likewise.
22134 * config/sol2.c: Likewise.
22135 * config/sparc/sparc-c.c: Likewise.
22136 * config/sparc/sparc.c: Likewise.
22137 * config/spu/spu-c.c: Likewise.
22138 * config/spu/spu.c: Likewise.
22139 * config/stormy16/stormy16.c: Likewise.
22140 * config/tilegx/mul-tables.c: Likewise.
22141 * config/tilegx/tilegx-c.c: Likewise.
22142 * config/tilegx/tilegx.c: Likewise.
22143 * config/tilepro/mul-tables.c: Likewise.
22144 * config/tilepro/tilepro-c.c: Likewise.
22145 * config/tilepro/tilepro.c: Likewise.
22146 * config/v850/v850-c.c: Likewise.
22147 * config/v850/v850.c: Likewise.
22148 * config/vax/vax.c: Likewise.
22149 * config/visium/visium.c: Likewise.
22150 * config/vms/vms-c.c: Likewise.
22151 * config/vms/vms.c: Likewise.
22152 * config/vxworks.c: Likewise.
22153 * config/winnt-c.c: Likewise.
22154 * config/xtensa/xtensa.c: Likewise.
22155 * common/config/bfin/bfin-common.c: Likewise.
22157 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
22159 * tree.h (tree_code_for_canonical_type_merging): New function.
22160 * tree.c (gimple_canonical_types_compatible_p): Use
22161 tree_code_for_canonical_type_merging..
22163 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22167 * doc/tm.texi: Regenerate.
22168 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22169 * target.def (TARGET_RELAXED_ORDERING): Likewise.
22170 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22171 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22172 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22173 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22174 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22175 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22176 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22178 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22180 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22181 register fma steering pass.
22182 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22183 AARCH64_TUNE_FMA_STEERING.
22185 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
22187 * tree.c (verify_type_variant): Verify that type and variant is
22189 (gimple_canonical_types_compatible_p): Look for main variants.
22191 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22193 * config.gcc (powerpc*-*-*): Add support for a new configure
22194 option --with-advance-toolchain=<xxx> which overrides using the
22195 default header files, libraries and dynamic linker.
22197 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22198 specs to support the configure --with-advance-toolchain=<xxx>
22200 (INCLUDE_EXTRA_SPEC): Likewise.
22201 (LINK_OS_EXTRA_SPEC32): Likewise.
22202 (LINK_OK_EXTRA_SPEC64): Likewise.
22203 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22204 (DYNAMIC_LINKER_PREFIX): Likewise.
22205 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22207 (GLIBC_DYNAMIC_LINKER32): Likewise.
22208 (GLIBC_DYNAMIC_LINKER64): Likewise.
22209 (LINK_OS_LINUX_SPEC32): Likewise.
22210 (LINK_OS_LINUX_SPEC64): Likewise.
22212 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22213 configuration option.
22215 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
22218 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22219 to determine current function ABI.
22220 (ix86_function_value_regno_p): Ditto.
22222 2015-06-03 Martin Liska <mliska@suse.cz>
22224 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22225 * bitmap.h (struct bitmap_usage): Likewise.
22226 * ggc-common.c (struct ggc_usage): Likewise.
22227 * mem-stats.h (struct mem_location): Likewise.
22228 (struct mem_usage): Likewise.
22229 * vec.c (struct vec_usage): Likewise.
22231 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
22233 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22236 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
22238 * doc/plugins.texi (enum plugin_event): New event.
22239 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22240 and PLUGIN_FINISH_FUNCTION.
22241 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22242 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22244 2015-06-03 Richard Biener <rguenther@suse.de>
22246 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22247 compute GROUP_GAP for the first element.
22248 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22251 2015-06-03 Nick Clifton <nickc@redhat.com>
22253 * config/rl78/rl78-real.md: Add peepholes to avoid a register
22254 copy when calling a function.
22255 * config/rl78/rl78.c (need_to_save): Do not push the frame
22256 pointer in an interrupt handler prologue if it is never used.
22258 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22260 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22262 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22264 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22265 reference when cloning alias node.
22267 2015-06-03 Martin Liska <mliska@suse.cz>
22269 * alloc-pool.h (struct pool_usage): Correct space padding.
22270 * ggc-page.c (ggc_print_statistics): Align columns in a report.
22271 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22272 * tree.c (dump_tree_statistics): Align columns in a report.
22274 2015-06-03 Martin Liska <mliska@suse.cz>
22276 * alloc-pool.c (allocate_pool_descriptor): Remove.
22277 (struct pool_output_info): Likewise.
22278 (print_alloc_pool_statistics): Likewise.
22279 (dump_alloc_pool_statistics): Likewise.
22280 * alloc-pool.h (struct pool_usage): New struct.
22281 (pool_allocator::initialize): Change usage of memory statistics
22282 to a new interface.
22283 (pool_allocator::release): Likewise.
22284 (pool_allocator::allocate): Likewise.
22285 (pool_allocator::remove): Likewise.
22286 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22287 for a pool allocator.
22288 * mem-stats.h (struct mem_location): Add new ctor.
22289 (struct mem_usage): Add counter for number of
22291 (mem_alloc_description::register_descriptor): New overload of
22292 * mem-stats.h (mem_location::to_string): New function.
22293 * bitmap.h (struct bitmap_usage): Use this new function.
22294 * ggc-common.c (struct ggc_usage): Likewise.
22297 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22299 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22300 of GCC_INSN_FLAGS_H block.
22302 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22304 * explow.c (plus_constant): Update check after force_const_mem call
22305 to see if the value returned is not a NULL_RTX.
22307 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22309 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22310 remove instumentation thunks calling reachable functions.
22311 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22312 * lto/lto-partition.c (privatize_symbol_name_1): New.
22313 (privatize_symbol_name): Privatize both decl and orig_decl
22314 names for instrumented functions.
22315 * cgraph.c (cgraph_node::verify_node): Add transparent
22316 alias chain check for instrumented node.
22318 2015-06-03 Marek Polacek <polacek@redhat.com>
22322 * tree.c (attribute_value_equal): Handle attribute format.
22323 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22325 2015-06-03 Richard Biener <rguenther@suse.de>
22327 PR tree-optimization/63916
22328 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22329 Forward-propagate non-invariant addresses by splicing their
22330 reference ops if the result isn't going to be used by PRE.
22331 (vn_reference_lookup_3): Remove pointless assert.
22333 2015-06-03 Richard Biener <rguenther@suse.de>
22335 PR tree-optimization/66375
22336 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22337 add to the evolution before following SSA edges.
22339 2015-06-03 Bin Cheng <bin.cheng@arm.com>
22341 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22342 (dump_use, dump_cand, find_induction_variables): Pass new argument
22344 (record_use): Preserve the ssa name information in IV.
22346 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22348 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22350 (add_mode_tests): Don't add mode tests if the predicate only
22351 accepts scalar constant integers. Otherwise, allow the mode
22352 of "op" to be VOIDmode if the predicate does accept such integers.
22354 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
22357 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22358 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22359 (aarch64_secondary_reload): Likewise
22360 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22362 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22365 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
22366 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22369 * cprop.c (try_replace_reg): Check cost of constants before propagating.
22371 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22373 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22374 provide access to the IBM extended double floating point mode if
22375 long double is IEEE 128-bit floating point.
22376 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22377 point if long double is the IBM extended double type.
22379 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22380 enable adding IEEE 128-bit floating point support.
22381 (-mfloat128-software): Likewise.
22382 (-mfloat128-sw): Likewise.
22384 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22385 128-bit floating point types to occupy any register if
22386 -mlong-double-64. Do not allow use of IFmode/KFmode unless
22387 -mfloat128-software is enabled.
22388 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22390 (rs6000_option_override_internal): Add -mfloat128-* support.
22391 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22393 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22394 and float128 type nodes.
22395 (ieee128_float_type_node): Likewise.
22396 (ibm128_float_type_node): Likewise.
22398 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22401 * config/aarch64/geniterators.sh: Rewrite in awk.
22403 2015-06-02 Martin Liska <mliska@suse.cz>
22405 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22406 values to avoid -Wmaybe-uninitialized errors.
22408 2015-06-02 Richard Biener <rguenther@suse.de>
22411 * dwarf2out.c (lookup_context_die): New function.
22412 (resolve_addr): Avoid forcing a full DIE for the
22413 target of a DW_TAG_GNU_call_site during late compilation.
22414 Instead create a stub DIE without a type if we have a
22415 context DIE present.
22417 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
22419 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22421 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22423 PR tree-optimization/48052
22424 * cfgloop.h (struct control_iv): New.
22425 (struct loop): New field control_ivs.
22426 * tree-ssa-loop-niter.c : Include "stor-layout.h".
22427 (number_of_iterations_lt): Set no_overflow information.
22428 (number_of_iterations_exit): Init control iv in niter struct.
22429 (record_control_iv): New.
22430 (estimate_numbers_of_iterations_loop): Call record_control_iv.
22431 (loop_exits_before_overflow): New. Interface factored out of
22432 scev_probably_wraps_p.
22433 (scev_probably_wraps_p): Factor loop niter related code into
22434 loop_exits_before_overflow.
22435 (free_numbers_of_iterations_estimates_loop): Free control ivs.
22436 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
22438 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
22440 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
22441 the target doesn't belong to the current function.
22443 2015-06-02 Marek Polacek <polacek@redhat.com>
22445 PR middle-end/66345
22446 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
22447 get_maxval_strlen does not produce an INTEGER_CST.
22449 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
22451 * config/arc/constraints.md: Use lower-case names in match_code.
22452 * config/mmix/constraints.md: Likewise.
22454 2015-06-02 Richard Biener <rguenther@suse.de>
22456 PR tree-optimization/65961
22457 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
22458 check and clarify dump message.
22459 (vect_build_slp_tree): If all children are built up from scalars
22460 build up the parent from scalars instead.
22461 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
22463 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
22466 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
22467 instead of print ... .
22469 2015-06-02 Alan Modra <amodra@gmail.com>
22471 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
22474 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22476 PR tree-optimization/52563
22477 PR tree-optimization/62173
22478 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
22479 (alloc_iv, set_iv): New parameter.
22480 (determine_biv_step): Delete.
22481 (find_bivs): Inline original determine_biv_step. Pass new
22482 argument to set_iv.
22483 (idx_find_step): Use no_overflow information for conversion.
22484 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
22485 resolve_mixers handle folded_casts.
22486 (instantiate_scev_name): Change bool parameter to bool pointer.
22487 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
22488 (instantiate_array_ref, instantiate_scev_not): Ditto.
22489 (instantiate_scev_3, instantiate_scev_2): Ditto.
22490 (instantiate_scev_1, instantiate_scev_r): Ditto.
22491 (instantiate_scev_convert, ): Change parameter. Pass argument
22492 to chrec_convert_aggressive.
22493 (instantiate_scev): Change argument.
22494 (resolve_mixers): New parameter and set it.
22495 (scev_const_prop): New argument.
22496 * tree-scalar-evolution.h (resolve_mixers): New parameter.
22497 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
22499 (chrec_convert): New parameter. Move definition below.
22500 (chrec_convert_aggressive): New parameter and set it. Call
22501 convert_affine_scev.
22502 * tree-chrec.h (chrec_convert): New parameter.
22503 (chrec_convert_aggressive): Ditto.
22505 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22507 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
22508 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
22509 the LHS of a no-return call if its type has variable size.
22510 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22511 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
22513 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
22515 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
22516 * config.in: Regenerate.
22518 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22520 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
22521 consecutive accesses within outer-loop with force_vectorize
22522 for references with zero step in inner-loop.
22524 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22526 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
22527 rather than from gcc/build directory.
22529 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22532 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
22533 for __sync memory models, emit initial loads and final barriers as
22536 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22539 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
22540 (aarch64_split_atomic_op): Check for __sync memory models, emit
22541 appropriate initial loads and final barriers.
22543 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22545 * Makefile.in: Fix gcov dependencies that should
22546 not point to a build folder.
22548 2015-06-01 Richard Biener <rguenther@suse.de>
22551 2015-05-29 Richard Biener <rguenther@suse.de>
22553 PR tree-optimization/66314
22554 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22555 parameter that says which loop the new block belongs to.
22556 (ssa_create_duplicates): Blocks duplicated for the threaded
22557 path belong to the loop of the thread destination.
22559 2015-06-01 Martin Liska <mliska@suse.cz>
22561 * sched-deps.c: Include pool-alloc.h before
22562 cselib.h header file is included.
22564 2015-06-01 Richard Biener <rguenther@suse.de>
22566 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
22569 2015-06-01 Martin Liska <mliska@suse.cz>
22571 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
22572 a function local variable.
22574 2015-06-01 Martin Liska <mliska@suse.cz>
22576 * alloc-pool.c (create_alloc_pool): Remove.
22577 (empty_alloc_pool): Likewise.
22578 (free_alloc_pool): Likewise.
22579 (free_alloc_pool_if_empty): Likewise.
22580 (pool_alloc): Likewise.
22581 (pool_free): Likewise.
22582 * alloc-pool.h: Remove old declarations.
22584 2015-06-01 Martin Liska <mliska@suse.cz>
22586 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
22587 (ira_create_object): Likewise.
22588 (ira_create_allocno): Likewise.
22589 (ira_create_live_range): Likewise.
22590 (copy_live_range): Likewise.
22591 (ira_finish_live_range): Likewise.
22592 (ira_free_allocno_costs): Likewise.
22593 (finish_allocno): Likewise.
22594 (finish_allocnos): Likewise.
22595 (initiate_prefs): Likewise.
22596 (ira_create_pref): Likewise.
22597 (finish_pref): Likewise.
22598 (finish_prefs): Likewise.
22599 (initiate_copies): Likewise.
22600 (ira_create_copy): Likewise.
22601 (finish_copy): Likewise.
22602 (finish_copies): Likewise.
22603 (finish_prefs): Likewise.
22605 2015-06-01 Martin Liska <mliska@suse.cz>
22607 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
22608 (allocate_and_init_ipcp_value): Likewise.
22609 (ipcp_lattice::add_value): Likewise.
22610 (merge_agg_lats_step): Likewise.
22611 (ipcp_driver): Likewise.
22612 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
22613 (ipa_free_all_structures_after_iinln): Likewise.
22614 * ipa-prop.h: Likewise.
22616 2015-06-01 Martin Liska <mliska@suse.cz>
22618 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
22620 (set_hint_predicate): Likewise.
22621 (inline_summary_alloc): Likewise.
22622 (reset_inline_edge_summary): Likewise.
22623 (reset_inline_summary): Likewise.
22624 (set_cond_stmt_execution_predicate): Likewise.
22625 (set_switch_stmt_execution_predicate): Likewise.
22626 (compute_bb_predicates): Likewise.
22627 (estimate_function_body_sizes): Likewise.
22628 (inline_free_summary): Likewise.
22630 2015-06-01 Martin Liska <mliska@suse.cz>
22632 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
22633 (ipa_edge_duplication_hook): Likewise.
22634 (ipa_free_all_structures_after_ipa_cp): Likewise.
22635 (ipa_free_all_structures_after_iinln): Likewise.
22637 2015-06-01 Martin Liska <mliska@suse.cz>
22639 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
22640 (ipa_profile_generate_summary): Likewise.
22641 (ipa_profile_read_summary): Likewise.
22642 (ipa_profile): Likewise.
22644 2015-06-01 Martin Liska <mliska@suse.cz>
22646 * tree-ssa-structalias.c (new_var_info): Use new type-based
22648 (new_constraint): Likewise.
22649 (init_alias_vars): Likewise.
22650 (delete_points_to_sets): Likewise.
22652 2015-06-01 Martin Liska <mliska@suse.cz>
22654 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
22655 (free_strinfo): Likewise.
22656 (pass_strlen::execute): Likewise.
22658 2015-06-01 Martin Liska <mliska@suse.cz>
22660 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
22662 (vn_reference_insert_pieces): Likewise.
22663 (vn_phi_insert): Likewise.
22664 (visit_reference_op_call): Likewise.
22665 (copy_phi): Likewise.
22666 (copy_reference): Likewise.
22667 (process_scc): Likewise.
22668 (allocate_vn_table): Likewise.
22669 (free_vn_table): Likewise.
22671 2015-06-01 Martin Liska <mliska@suse.cz>
22673 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
22675 (add_repeat_to_ops_vec): Likewise.
22676 (get_ops): Likewise.
22677 (maybe_optimize_range_tests): Likewise.
22678 (init_reassoc): Likewise.
22679 (fini_reassoc): Likewise.
22681 2015-06-01 Martin Liska <mliska@suse.cz>
22683 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
22685 (bitmap_set_new): Likewise.
22686 (get_or_alloc_expr_for_constant): Likewise.
22687 (get_or_alloc_expr_for): Likewise.
22688 (phi_translate_1): Likewise.
22689 (compute_avail): Likewise.
22690 (init_pre): Likewise.
22691 (fini_pre): Likewise.
22693 2015-06-01 Martin Liska <mliska@suse.cz>
22695 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
22696 (delete_dep_node): Likewise.
22697 (create_deps_list): Likewise.
22698 (free_deps_list): Likewise.
22699 (sched_deps_init): Likewise.
22700 (sched_deps_finish): Likewise.
22702 2015-06-01 Martin Liska <mliska@suse.cz>
22704 * regcprop.c (free_debug_insn_changes): Use new type-based
22706 (replace_oldest_value_reg): Likewise.
22707 (pass_cprop_hardreg::execute): Likewise.
22709 2015-06-01 Martin Liska <mliska@suse.cz>
22711 * ira-build.c (initiate_cost_vectors): Use new type-based
22713 (ira_allocate_cost_vector): Likewise.
22714 (ira_free_cost_vector): Likewise.
22715 (finish_cost_vectors): Likewise.
22717 2015-06-01 Martin Liska <mliska@suse.cz>
22719 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
22721 (free_sched_pools): Likewise.
22722 * sel-sched-ir.h (_list_alloc): Likewise.
22723 (_list_remove): Likewise.
22725 2015-06-01 Martin Liska <mliska@suse.cz>
22727 * stmt.c (add_case_node): Use new type-based pool allocator.
22728 (expand_case): Likewise.
22729 (expand_sjlj_dispatch_table): Likewise.
22731 2015-06-01 Martin Liska <mliska@suse.cz>
22733 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
22734 (free_bb): Likewise.
22735 (pass_cse_reciprocals::execute): Likewise.
22737 2015-06-01 Martin Liska <mliska@suse.cz>
22739 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
22740 (sra_deinitialize) Likewise.
22741 (create_access_1) Likewise.
22742 (build_accesses_from_assign) Likewise.
22743 (create_artificial_child_access) Likewise.
22745 2015-06-01 Martin Liska <mliska@suse.cz>
22747 * dse.c (get_group_info):Use new type-based pool allocator.
22748 (dse_step0) Likewise.
22749 (free_store_info) Likewise.
22750 (delete_dead_store_insn) Likewise.
22751 (free_read_records) Likewise.
22752 (record_store) Likewise.
22753 (replace_read) Likewise.
22754 (check_mem_read_rtx) Likewise.
22755 (scan_insn) Likewise.
22756 (dse_step1) Likewise.
22757 (dse_step7) Likewise.
22759 2015-06-01 Martin Liska <mliska@suse.cz>
22761 * df-scan.c (struct df_scan_problem_data):Use new type-based
22763 (df_scan_free_internal) Likewise.
22764 (df_scan_alloc) Likewise.
22765 (df_grow_reg_info) Likewise.
22766 (df_free_ref) Likewise.
22767 (df_insn_create_insn_record) Likewise.
22768 (df_mw_hardreg_chain_delete) Likewise.
22769 (df_insn_info_delete) Likewise.
22770 (df_free_collection_rec) Likewise.
22771 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
22772 (df_sort_and_compress_mws) Likewise.
22773 (df_ref_create_structure) Likewise.
22774 (df_ref_record) Likewise.
22776 2015-06-01 Martin Liska <mliska@suse.cz>
22778 * df-problems.c (df_chain_create):Use new type-based pool allocator.
22779 (df_chain_unlink_1) Likewise.
22780 (df_chain_unlink) Likewise.
22781 (df_chain_remove_problem) Likewise.
22782 (df_chain_alloc) Likewise.
22783 (df_chain_free) Likewise.
22784 * df.h (struct dataflow) Likewise.
22786 2015-06-01 Martin Liska <mliska@suse.cz>
22788 * cselib.c (new_elt_list):Use new type-based pool allocator.
22789 (new_elt_loc_list) Likewise.
22790 (unchain_one_elt_list) Likewise.
22791 (unchain_one_elt_loc_list) Likewise.
22792 (unchain_one_value) Likewise.
22793 (new_cselib_val) Likewise.
22794 (cselib_init) Likewise.
22795 (cselib_finish) Likewise.
22797 2015-06-01 Martin Liska <mliska@suse.cz>
22799 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
22800 (sh_reorg) Likewise.
22802 2015-06-01 Martin Liska <mliska@suse.cz>
22804 * cfg.c (initialize_original_copy_tables):Use new type-based
22806 (free_original_copy_tables) Likewise.
22807 (copy_original_table_clear) Likewise.
22808 (copy_original_table_set) Likewise.
22810 2015-06-01 Martin Liska <mliska@suse.cz>
22812 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
22814 (asan_mem_ref_new) Likewise.
22815 (free_mem_ref_resources) Likewise.
22817 2015-06-01 Martin Liska <mliska@suse.cz>
22819 * var-tracking.c (variable_htab_free):Use new type-based
22821 (attrs_list_clear) Likewise.
22822 (attrs_list_insert) Likewise.
22823 (attrs_list_copy) Likewise.
22824 (shared_hash_unshare) Likewise.
22825 (shared_hash_destroy) Likewise.
22826 (unshare_variable) Likewise.
22827 (var_reg_delete_and_set) Likewise.
22828 (var_reg_delete) Likewise.
22829 (var_regno_delete) Likewise.
22830 (drop_overlapping_mem_locs) Likewise.
22831 (variable_union) Likewise.
22832 (insert_into_intersection) Likewise.
22833 (canonicalize_values_star) Likewise.
22834 (variable_merge_over_cur) Likewise.
22835 (dataflow_set_merge) Likewise.
22836 (remove_duplicate_values) Likewise.
22837 (variable_post_merge_new_vals) Likewise.
22838 (dataflow_set_preserve_mem_locs) Likewise.
22839 (dataflow_set_remove_mem_locs) Likewise.
22840 (variable_from_dropped) Likewise.
22841 (variable_was_changed) Likewise.
22842 (set_slot_part) Likewise.
22843 (clobber_slot_part) Likewise.
22844 (delete_slot_part) Likewise.
22845 (loc_exp_insert_dep) Likewise.
22846 (notify_dependents_of_changed_value) Likewise.
22847 (emit_notes_for_differences_1) Likewise.
22848 (vt_emit_notes) Likewise.
22849 (vt_initialize) Likewise.
22850 (vt_finalize) Likewise.
22852 2015-06-01 Martin Liska <mliska@suse.cz>
22854 * ira-color.c (init_update_cost_records):Use new type-based
22856 (get_update_cost_record) Likewise.
22857 (free_update_cost_record_list) Likewise.
22858 (finish_update_cost_records) Likewise.
22859 (initiate_cost_update) Likewise.
22861 2015-06-01 Martin Liska <mliska@suse.cz>
22863 * lra.c (init_insn_regs): Use new type-based pool allocator.
22864 (new_insn_reg) Likewise.
22865 (free_insn_reg) Likewise.
22866 (free_insn_regs) Likewise.
22867 (finish_insn_regs) Likewise.
22868 (init_insn_recog_data) Likewise.
22869 (init_reg_info) Likewise.
22870 (finish_reg_info) Likewise.
22871 (lra_free_copies) Likewise.
22872 (lra_create_copy) Likewise.
22873 (invalidate_insn_data_regno_info) Likewise.
22875 2015-06-01 Martin Liska <mliska@suse.cz>
22877 * lra-lives.c (free_live_range): Use new type-based pool allocator.
22878 (free_live_range_list) Likewise.
22879 (create_live_range) Likewise.
22880 (copy_live_range) Likewise.
22881 (lra_merge_live_ranges) Likewise.
22882 (remove_some_program_points_and_update_live_ranges) Likewise.
22883 (lra_live_ranges_init) Likewise.
22884 (lra_live_ranges_finish) Likewise.
22886 2015-06-01 Martin Liska <mliska@suse.cz>
22888 * et-forest.c (et_new_occ): Use new type-based pool allocator.
22889 (et_new_tree): Likewise.
22890 (et_free_tree): Likewise.
22891 (et_free_tree_force): Likewise.
22892 (et_free_pools): Likewise.
22893 (et_split): Likewise.
22895 2015-06-01 Martin Liska <mliska@suse.cz>
22897 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
22899 * alloc-pool.h (pool_allocator::pool_allocator): New function.
22900 (pool_allocator::release): Likewise.
22901 (inline pool_allocator::release_if_empty): Likewise.
22902 (inline pool_allocator::~pool_allocator): Likewise.
22903 (pool_allocator::allocate): Likewise.
22904 (pool_allocator::remove): Likewise.
22906 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22908 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
22911 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22913 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
22915 * config/arm/arm.c (arm_print_tune_info): Likewise.
22916 (arm_macro_fusion_p): Likewise.
22917 (arm_macro_fusion_pair_p): Likewise.
22919 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22921 * config/aarch64/aarch64-protos.h (tune_params): Rename
22922 fuseable_ops to fusible_ops.
22923 * config/aarch64/aarch64.c (generic_tunings): Rename
22924 fuseable_ops to fusible_ops.
22925 (cortexa53_tunings): Likewise.
22926 (cortexa57_tunings): Likewise.
22927 (thunderx_tunings): Likewise.
22928 (xgene1_tunings): Likewise.
22929 (aarch64_macro_fusion_p): Likewise.
22930 (aarch64_macro_fusion_pair_p): Likewise.
22932 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
22934 * config/s390/driver-native.c: New file.
22935 * config/s390/x-native: New file.
22936 * config.host: Add new files for s390.
22937 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
22939 * config.gcc: Likewise.
22940 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
22941 * config/s390/s390-opts.h (enum processor_type): Ditto.
22942 * config/s390/s390.c (s390_option_override): Catch unhandled
22945 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
22948 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
22949 redirection for instrumented calls.
22950 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
22951 (append_compiler_options): Append -fcheck-pointer-bounds.
22952 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
22953 (chkp_redirect_edge): New.
22954 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
22955 (chkp_redirect_edge): New.
22957 2015-06-01 Richard Biener <rguenther@suse.de>
22959 PR tree-optimization/66280
22960 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
22963 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22965 * config/aarch64/aarch64.md
22966 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
22969 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22971 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
22972 Remove obsolete kludge.
22974 2015-06-01 Richard Biener <rguenther@suse.de>
22976 * tree-ssa-reassoc.c (get_rank): Simplify.
22978 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
22980 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
22981 * configure: Regenerated.
22983 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
22985 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
22986 issue (add space between string literal and macro).
22987 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
22989 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
22991 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
22992 implict or explicit -fPIE or -fpie.
22994 2015-05-30 Mike Frysinger <vapier@gentoo.org>
22996 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
22998 2015-05-28 DJ Delorie <dj@redhat.com>
23000 * expmed.c (extract_bit_field_1): Avoid clobbering a
23001 yet-to-be-used base/index register.
23003 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
23005 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23006 (alias_stats): Add num_universal.
23007 (alias_set_subset_of): Special case pointers; be ready for NULL
23009 (alias_sets_conflict_p): Special case pointers; be ready for NULL
23011 (init_alias_set_entry): Break out from ...
23012 (record_alias_subset): ... here; propagate new fields;
23013 allocate children only when really needed.
23014 (get_alias_set): Do less generous pointer globbing.
23015 (dump_alias_stats_in_alias_c): Update statistics.
23017 2015-05-30 Alan Modra <amodra@gmail.com>
23019 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23020 correct block for use of r12.
23021 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23023 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23026 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23029 2015-05-29 Jakub Jelinek <jakub@redhat.com>
23031 PR tree-optimization/66142
23032 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23033 virtual phis that feed themselves.
23035 2015-05-29 Richard Biener <rguenther@suse.de>
23037 PR tree-optimization/66314
23038 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23039 parameter that says which loop the new block belongs to.
23040 (ssa_create_duplicates): Blocks duplicated for the threaded
23041 path belong to the loop of the thread destination.
23043 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23045 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23046 to cleanup-saved-temps.
23047 * doc/sourcebuild.texi (Clean up generated test files): Expand
23049 (dg-keep-saved-temps): Document new proc.
23050 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23051 cleanup-saved-temps): Remove.
23053 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
23055 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23056 gcc_AC_CHECK_DECLS.
23057 * configure: Regenerate.
23059 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23061 * config/nios2/linux.h (CPP_SPEC): Define.
23063 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23065 * config/microblaze/linux.h (CPP_SPEC): Define.
23067 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23069 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23070 -pthread is specified.
23072 2015-05-28 Richard Biener <rguenther@suse.de>
23074 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23075 (vect_fixup_scalar_cycles_with_patterns): Likewise.
23076 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23077 after pattern recog.
23078 (vect_create_epilog_for_reduction): Properly handle reductions
23080 (vectorizable_reduction): Likewise.
23081 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23083 (vect_get_constant_vectors): Create the correct number of
23084 initial values for reductions.
23085 (vect_schedule_slp_instance): Handle reduction chains that are
23086 type changing properly.
23087 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23089 2015-05-28 Richard Biener <rguenther@suse.de>
23091 PR tree-optimization/66142
23092 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23093 values better in memcpy destination handling. Handle non-aliasing
23096 2015-05-28 Lawrence Velázquez <vq@larryv.me>
23099 * config/darwin-c.c (version_components): New global enum.
23100 (parse_version, version_as_legacy_macro)
23101 (version_as_modern_macro, macosx_version_as_macro): New functions.
23102 (version_as_macro): Remove.
23103 (darwin_cpp_builtins): Use new function.
23105 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
23107 * builtins.c (expand_builtin_acc_on_device): Mark parameters
23108 with ATTRIBUTE_UNUSED.
23110 2015-05-28 Julian Brown <julian@codesourcery.com>
23114 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23115 sequence for !ACCEL_COMPILER.
23117 2015-05-28 Nick Clifton <nickc@redhat.com>
23119 * config/rx/rx.c (push_regs): New function. Extracts code from...
23120 (rx_expand_prologue): ... here. Use push_regs to push even small
23121 spans of registers.
23122 (pop_regs): New function.
23123 (rx_expand_epilogue): Use pop_regs to pop even small spans of
23126 2015-05-28 Richard Biener <rguenther@suse.de>
23128 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23130 (SLP_INSTANCE_BODY_COST_VEC): Remove.
23131 (vect_update_slp_costs_according_to_vf): Likewise.
23132 (vect_slp_analyze_operations): Update prototype.
23133 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23134 vect_update_slp_costs_according_to_vf, adjust.
23135 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23136 (vect_analyze_slp_cost_1): Likewise.
23137 (vect_analyze_slp_cost): Likewise. Properly deal with
23138 widening reduction ops. Commit body costs.
23139 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
23140 cost for loops from here.
23141 (vect_slp_analyze_operations): But do it from here when
23142 the vectorization factor is known and stmts are analyzed.
23143 (vect_bb_vectorization_profitable_p): Simplify.
23144 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23145 (vect_update_slp_costs_according_to_vf): Remove.
23147 2015-05-27 Magnus Granberg <zorry@gentoo.org>
23148 H.J. Lu <hongjiu.lu@intel.com>
23150 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23151 (BUILD_CFLAGS): Likewise.
23152 (BUILD_CXXFLAGS): Likewise.
23153 (LINKER): Add @NO_PIE_FLAG@.
23154 (BUILD_LDFLAGS): Likewise.
23155 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23156 --enable-default-pie.
23157 * common.opt (fPIE): Initialize to -1.
23159 (no-pie): New option.
23160 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23161 * configure.ac: Add --enable-default-pie.
23162 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
23163 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
23164 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
23165 * gcc.c (NO_PIE_SPEC): New.
23166 (PIE_SPEC): Likewise.
23167 (NO_FPIE1_SPEC): Likewise.
23168 (FPIE1_SPEC): Likewise.
23169 (NO_FPIE2_SPEC): Likewise.
23170 (FPIE2_SPEC): Likewise.
23171 (NO_FPIE2_SPEC): Likewise.
23172 (FPIE_SPEC): Likewise.
23173 (NO_FPIE_SPEC): Likewise.
23174 (NO_FPIC1_SPEC): Likewise.
23175 (FPIC1_SPEC): Likewise.
23176 (NO_FPIC2_SPEC): Likewise.
23177 (FPIC2_SPEC): Likewise.
23178 (NO_FPIC2_SPEC): Likewise.
23179 (FPIC_SPEC): Likewise.
23180 (NO_FPIC_SPEC): Likewise.
23181 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23182 (FPIE1_OR_FPIC1_SPEC): Likewise.
23183 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23184 (FPIE2_OR_FPIC2_SPEC): Likewise.
23185 (NO_FPIE_AND_FPIC_SPEC): Likewise.
23186 (FPIE_OR_FPIC_SPEC): Likewise.
23187 (LD_PIE_SPEC): Likewise.
23188 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
23189 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23190 * config/darwin.h (PIE_SPEC): Renamed to ...
23191 (DARWIN_PIE_SPEC): This.
23192 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23193 * config/darwin9.h (PIE_SPEC): Renamed to ...
23194 (DARWIN_PIE_SPEC): This.
23195 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23196 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23197 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23198 FPIE2_OR_FPIC2_SPEC.
23199 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23200 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23201 * config/sol2.h (ASM_PIC_SPEC): Likewise.
23202 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23203 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23204 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23205 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23206 * config/m32r/m32r.h (ASM_SPEC): Likewise.
23207 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23208 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23209 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23210 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23211 * config/sparc/linux.h (ASM_SPEC): Likewise.
23212 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23213 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23214 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23215 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23216 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23217 * config/sparc/sparc.h (ASM_SPEC): Likewise.
23218 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23219 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23220 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23221 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23222 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23223 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23224 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23225 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23226 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23227 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23228 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23229 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23230 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23231 * config/vax/linux.h (ASM_SPEC): Likewise.
23232 * doc/install.texi: Document --enable-default-pie.
23233 * doc/invoke.texi: Document -no-pie.
23234 * config.in: Regenerated.
23235 * configure: Likewise.
23237 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23239 PR rtl-optimization/66168
23240 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23241 can_move_invariant_reg.
23243 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
23246 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23247 REG_EQUAL note when doing insert.
23249 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23250 instead of "%d" for 'o' operand.
23252 2015-05-27 Nathan Sidwell <nathan@acm.org>
23255 * tree.c (build_pointer_type_for_mode): Canonical type does not
23256 inherit can_alias_all.
23257 (build_reference_type_for_mode): Likewise.
23259 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
23261 * expr.h (array_at_struct_end_p): Move to...
23262 (array_ref_element_size): Likewise.
23263 (component_ref_field_offset): Likewise.
23264 * tree.h (array_ref_element_size): ...here.
23265 (array_at_struct_end_p): Likewise.
23266 (component_ref_field_offset): Likewise.
23267 * expr.c (array_ref_element_size): Move to...
23268 (array_ref_low_bound): Likewise.
23269 (array_at_struct_end_p): Likewise.
23270 (array_ref_up_bound): Likewise.
23271 (component_ref_field_offset): Likewise.
23272 * tree.c (array_ref_element_size): ...here.
23273 (array_ref_low_bound): Likewise.
23274 (array_ref_up_bound): Likewise.
23275 (array_at_struct_end_p): Likewise.
23276 (component_ref_field_offset): Likewise.
23278 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23279 Szabolcs Nagy <szabolcs.nagy@arm.com>
23281 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23283 2015-05-27 Jason Merrill <jason@redhat.com>
23286 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23287 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23288 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23290 2015-05-22 Aditya Kumar <hiraditya@msn.com>
23292 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23295 * statistics.c (statistics_fini_pass): Print pass name.
23297 2015-05-27 Richard Biener <rguenther@suse.de>
23299 PR tree-optimization/66272
23301 2014-08-15 Richard Biener <rguenther@suse.de>
23303 PR tree-optimization/62031
23304 * tree-data-ref.c (dr_analyze_indices): Do not set
23305 DR_UNCONSTRAINED_BASE.
23306 (dr_may_alias_p): All indirect accesses have to go the
23307 formerly DR_UNCONSTRAINED_BASE path.
23308 * tree-data-ref.h (struct indices): Remove
23309 unconstrained_base member.
23310 (DR_UNCONSTRAINED_BASE): Remove.
23312 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
23314 * dwarf2out.c: Remove block_map.
23315 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23316 (gen_lexical_block_die): Same.
23317 (dwarf2out_function_decl): Remove block_map use.
23318 (dwarf2out_c_finalize): Same.
23319 * tree-core.h (struct tree_block): Add die field.
23320 * tree.h (BLOCK_DIE): New.
23322 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23325 * expr.c (memory_load_overlap): New function.
23326 (emit_push_insn): When pushing partial args to the stack would
23327 clobber the register part load the overlapping part into a pseudo
23328 and put it into the hard reg after pushing. Change return type
23329 to bool. Add bool argument.
23330 * expr.h (emit_push_insn): Change return type to bool.
23332 * calls.c (expand_call): Cancel sibcall optimization when encountering
23333 partial argument on targets with ARGS_GROW_DOWNWARD and
23334 !STACK_GROWS_DOWNWARD.
23335 (emit_library_call_value_1): Update callsite of emit_push_insn.
23336 (store_one_arg): Likewise.
23338 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23340 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23342 2015-05-27 Martin Liska <mliska@suse.cz>
23344 * Makefile.in: Add additional dependencies related to memory report
23346 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23347 * bitmap.c (struct bitmap_descriptor_d): Remove.
23348 (struct loc): Likewise.
23349 (struct bitmap_desc_hasher): Likewise.
23350 (bitmap_desc_hasher::hash): Likewise.
23351 (bitmap_desc_hasher::equal): Likewise.
23352 (get_bitmap_descriptor): Likewise.
23353 (bitmap_register): User new memory descriptor API.
23354 (register_overhead): Likewise.
23355 (bitmap_find_bit): Register nsearches and search_iter statistics.
23356 (struct bitmap_output_info): Remove.
23357 (print_statistics): Likewise.
23358 (dump_bitmap_statistics): Use new memory descriptor.
23359 * bitmap.h (struct bitmap_usage): New class.
23360 * genmatch.c: Extend header file inclusion.
23361 * genpreds.c: Likewise.
23362 * ggc-common.c (struct ggc_usage): New class.
23363 (struct ggc_loc_desc_hasher): Remove.
23364 (ggc_loc_desc_hasher::hash): Likewise.
23365 (ggc_loc_desc_hasher::equal): Likewise.
23366 (struct ggc_ptr_hash_entry): Likewise.
23367 (struct ptr_hash_hasher): Likewise.
23368 (ptr_hash_hasher::hash): Likewise.
23369 (ptr_hash_hasher::equal): Likewise.
23370 (make_loc_descriptor): Likewise.
23371 (ggc_prune_ptr): Likewise.
23372 (dump_ggc_loc_statistics): Use new memory descriptor.
23373 (ggc_record_overhead): Likewise.
23374 (ggc_free_overhead): Likewise.
23375 (final_cmp_statistic): Remove.
23376 (cmp_statistic): Likewise.
23377 (ggc_add_statistics): Liekwise.
23378 (ggc_prune_overhead_list): Likewise.
23379 * hash-map-traits.h: New file.
23380 * hash-map.h (struct default_hashmap_traits): Move the traits to a
23381 separate header file.
23382 * hash-set.h: Pass memory statistics info to ctor.
23383 * hash-table.c (void dump_hash_table_loc_statistics): New function.
23384 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23385 (hash_table::~hash_table): Register memory release operation.
23386 (hash_table::alloc_entries): Handle memory allocation operation.
23387 (hash_table::expand): Likewise.
23388 * inchash.c (iterative_hash_hashval_t): Move implementation to header
23390 (iterative_hash_host_wide_int): Likewise.
23391 * inchash.h (class hash): Likewise.
23392 * mem-stats-traits.h: New file.
23393 * mem-stats.h: New file.
23394 (mem_location): Add new class.
23395 (mem_usage): Likewise.
23396 (mem_alloc_description): Likewise.
23397 * sese.c: Add new header file inclusision.
23398 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23400 * tree-sra.c: Add new header file inclusision.
23401 * vec.c (struct vec_descriptor): Remove.
23402 (hash_descriptor): Likewise.
23403 (struct vec_usage): Likewise.
23404 (struct ptr_hash_entry): Likewise.
23405 (hash_ptr): Likewise.
23406 (eq_ptr): Likewise.
23407 (vec_prefix::register_overhead): Use new memory descriptor API.
23408 (vec_prefix::release_overhead): Likewise.
23409 (add_statistics): Remove.
23410 (dump_vec_loc_statistics): Use new memory descriptor API.
23411 * vec.h (struct vec_prefix): Likewise.
23412 (va_heap::reserve): Likewise.
23413 (va_heap::release): Likewise.
23414 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23416 2015-05-27 Richard Biener <rguenther@suse.de>
23418 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23419 earlier and remove ??? comment.
23420 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23421 and got called from loop analysis bail out. Always pass the SLP
23422 node to the vectorizable_* functions.
23423 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23424 the premature SLP check here.
23425 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23426 detected SLP stmts.
23427 (vect_detect_hybrid_slp_1): Likewise.
23429 2015-05-26 Jeff Law <law@redhat.com>
23431 * combine.c (find_split_point): Verify that the shift count is a
23432 constant when choosing (plus (ashift ...)) as a split point.
23434 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
23435 No functional changes.
23437 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
23439 * ipa-polymorphic-call.c
23440 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
23441 case when call target is already known.
23443 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
23446 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
23447 take into account the case that operands[1] and operands[2]
23448 are the same register.
23450 2015-05-26 Michael Matz <matz@suse.de>
23452 PR middle-end/66251
23454 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
23456 (vect_create_vectorized_demotion_stmts): Always set
23457 STMT_VINFO_VEC_STMT, also with SLP.
23458 (vectorizable_store): Handle strided group stores.
23460 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23463 * config/aarch64/aarch64.md
23464 (*adds_shift_imm_<mode>): New pattern.
23465 (*subs_shift_imm_<mode>): Likewise.
23466 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23467 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23468 (*add_uxt<mode>_shift2): Likewise.
23469 (*add_uxtsi_shift2_uxtw): Likewise.
23470 (*sub_uxt<mode>_shift2): Likewise.
23471 (*sub_uxtsi_shift2_uxtw): Likewise.
23473 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
23475 * config/rs6000/constraints.md (Y, U): Use match_test.
23477 2015-05-26 Christian Bruel <christian.bruel@st.com>
23480 * config/arm/arm.c (arm_option_check_internal)
23481 (arm_option_params_internal): Check opts->target_flags to set macros.
23482 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23483 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
23484 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23485 (builtin_define): Replaced with def_or_undef_macro.
23486 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23487 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
23488 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23489 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
23490 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
23491 (TARGET_ARM_FEATURE_LDREX_P)
23492 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
23493 * config/arm/arm-c.c (def_or_undef_macro): New function.
23494 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
23496 2015-05-26 Christian Bruel <christian.bruel@st.com>
23498 * c-common.h (builtin_define_with_int_value)
23499 (builtin_define_type_sizeof): Declare.
23500 * c-cppbuiltin.c (builtin_define_with_int_value)
23501 (builtin_define_type_sizeof): Externalize.
23502 (builtin_define_std): Cleanup declaration.
23503 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
23504 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
23505 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
23506 (builtin_define, builtin_assert): New macros.
23508 2015-05-26 Richard Biener <rguenther@suse.de>
23510 PR tree-optimization/66142
23511 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
23512 MEM_REFs for the same base address.
23514 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23517 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
23519 2015-05-26 Jason Merrill <jason@redhat.com>
23521 * configure.ac: Set CXXFLAGS for ISL test.
23522 * configure: Regenerate.
23524 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
23525 strstr and basename.
23526 * configure: Regenerate.
23528 2015-05-26 Richard Biener <rguenther@suse.de>
23530 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
23531 X % C -> X & (C - 1) for C being a power-of two to ...
23532 * match.pd: ... patterns.
23534 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
23536 * match.pd (swapped_tcc_comparison): New operator list.
23537 (-A CMP -B): New simplification.
23538 * fold-const.c (fold_comparison): Remove corresponding code.
23540 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23542 * caller-save.c (init_caller_save): Base temporary register numbers
23543 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
23544 * cfgloopanal.c (init_set_costs): Likewise.
23545 * dojump.c (prefer_and_bit_test): Likewise.
23546 * expr.c (init_expr_target): Likewise.
23547 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23548 * lower-subreg.c (init_lower_subreg): Likewise.
23549 * postreload.c (reload_cse_regs_1): Likewise.
23551 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23553 * gensupport.h (compute_test_codes): Declare.
23554 * gensupport.c (compute_predicate_codes): Rename to...
23555 (compute_test_codes): ...this. Generalize error message.
23556 (process_define_predicate): Update accordingly.
23557 * genpreds.c (compute_maybe_allows): Delete.
23558 (add_constraint): Use compute_test_codes to determine whether
23559 something can accept a SUBREG, REG or MEM.
23561 2015-05-26 Torvald Riegel <triegel@redhat.com>
23563 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
23564 'memory model' to align with C++11; fix description of memory orders;
23567 2015-05-26 Richard Biener <rguenther@suse.de>
23569 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
23570 (vect_analyze_loop_operations): ... here. Remove slp parameter,
23571 detect whether we apply SLP. Remove call to
23572 vect_update_slp_costs_according_to_vf.
23573 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
23574 vect_update_slp_costs_according_to_vf from here. Dispatch
23575 to vect_slp_analyze_operations to analyze SLP stmts.
23576 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
23577 unused bb_vec_info parameter, adjust assert.
23578 (vect_slp_analyze_operations): Pass in the slp instance tree
23579 instead of bb_vec_info.
23580 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
23581 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
23583 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
23585 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
23586 Q_REGS. Expand comment.
23587 (REG_CLASS_NAMES): Ditto.
23588 (REG_CLASS_CONTENTS): Ditto.
23590 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
23593 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
23594 when LEGACY_INT_REGNO_P is processed.
23596 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
23598 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
23600 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23602 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
23603 register if not marked dead/unused, before return.
23605 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23608 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
23609 is set; check for assembler name at LTO time.
23610 (type_in_anonymous_namespace): Remove hacks, check that all
23611 anonymous types are called "<anon>"
23612 (odr_type_p): Simplify; add check for "<anon>"
23613 (odr_subtypes_equivalent): Add odr_type_p check.
23614 * tree.c (need_assembler_name_p): Even anonymous namespace needs
23617 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23619 * ipa-utils.h (method_class_type): Remove.
23620 * cgraphunit.c (walk_polymorphic_call_targets): Use
23621 TYPE_METHOD_BASETYPE.
23622 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
23623 on main variants only.
23624 (method_class_type): Remove.
23625 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
23626 (build_type_inheritance_graph): Likewise.
23627 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23628 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
23629 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
23631 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23633 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
23634 is_typedef_decl, typedef_variant_p): Constify.
23635 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
23636 is_typedef_decl, typedef_variant_p): Constify.
23638 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23640 * defaults.h (gen_tablejump): New function.
23641 (HAVE_tablejump): Add default value.
23643 * stmt.c: Likewise.
23645 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23647 * defaults.h (gen_store_multiple): New function.
23648 (HAVE_store_multiple): Add default value.
23649 * expr.c (move_block_from_reg): Adjust.
23651 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23653 * defaults.h (gen_load_multiple): New function.
23654 (HAVE_load_multiple): Add default value.
23655 * expr.c (move_block_to_reg): Adjust.
23657 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23659 * defaults.h (gen_mem_signal_fence): New function.
23660 (HAVE_mem_signal_fence): Add default value.
23661 * optabs.c: Adjust.
23663 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23665 * defaults.h (gen_memory_barrier): New function.
23666 (HAVE_memory_barrier): Add default value.
23667 * optabs.c: Adjust.
23669 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23671 * defaults.h (gen_mem_thread_fence): New function.
23672 (HAVE_mem_thread_fence): Add default definition.
23673 * optabs.c: Adjust.
23675 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23677 * combine.c (find_split_point): Check the value of HAVE_lo_sum
23678 instead of if it is defined.
23679 (combine_simplify_rtx): Likewise.
23680 * lra-constraints.c (process_address_1): Likewise.
23681 * config/darwin.c: Adjust.
23682 * genconfig.c (main): Always define HAVE_lo_sum.
23684 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23686 * genmatch.c (parser::parse_operation): Reject expanding
23687 operator-list inside 'for'.
23689 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23691 * genmatch.c (parser::parse_for): Reject iterator if used as
23694 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23696 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
23697 after end of id-list.
23699 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
23701 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
23702 we do not try to compute canonical type for type that does not need
23704 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
23706 * tree.h (type_with_alias_set_p): New.
23708 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
23710 * tree.c (gimple_canonical_types_compatible_p): Do not compare
23711 function attributes.
23712 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
23714 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
23716 * Makefile.in (check_gcc_parallelize): Delete.
23717 (lang_checks_parallelized): Update comment.
23719 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
23721 PR rtl-optimization/66237
23722 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
23723 location of an "as_a" cast.
23725 2015-05-22 Jeff Law <law@redhat.com>
23727 * config/pa/pa.md (non-canonical shift-add insns): Remove.
23728 (peepholes with non-canonical RTL sources): Remove.
23729 (peepholes for indexed stores of FP regs in integer modes): Match and
23730 generate canonical RTL.
23732 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23734 PR tree-optimization/63387
23735 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
23736 ((x ord x) & (y ord y) -> (x ord y),
23737 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
23738 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
23739 vectors like scalars.
23741 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23743 * convert.c (convert_to_integer, convert_to_vector): Include the
23744 types in the error message.
23746 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23748 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
23751 2015-05-22 Jeff Law <law@redhat.com>
23753 * config/pa/pa.md (integer_indexed_store splitters): Use
23754 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
23755 insns -- adjusting the constant 2nd operand accordingly.
23757 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
23758 (plus (ashift X log2) Y) if it is a split point.
23760 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
23761 out of hppa_legitimize_address to handle both forms of a multiply
23763 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
23764 Always generate the ASHIFT variant as the result is not directly
23765 used in a MEM. Update comments and refactor slightly to improve
23768 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23771 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
23772 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
23773 (aarch64_composite_type_p): Return false if given type and mode are
23774 for a short vector.
23776 2015-05-22 Richard Biener <rguenther@suse.de>
23778 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
23780 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
23781 patterns when determining whether SLP is pure.
23782 (vect_is_slp_reduction): Remove check for pattern stmts.
23783 (vect_is_simple_reduction_1): Remove dead code.
23784 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
23785 (vect_get_and_check_slp_defs): Pass in the stmt number.
23786 Allow the first def in a reduction to be not a pattern stmt when
23787 the rest of the stmts def are patterns.
23788 (vect_build_slp_tree_1): Allow tcc_expression codes like
23789 SAD_EXPR and DOT_PROD_EXPR.
23790 (vect_build_slp_tree): Adjust.
23791 (vect_analyze_slp): Refactor and move BB vect error message ...
23792 (vect_slp_analyze_bb_1): ... here.
23794 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
23796 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
23797 for CSWTCH temporary.
23799 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23801 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
23802 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
23805 2015-05-22 Richard Biener <rguenther@suse.de>
23807 PR tree-optimization/66251
23808 * tree-vect-stmts.c (vectorizable_conversion): Properly
23809 set STMT_VINFO_VEC_STMT even for the SLP case.
23811 2015-05-22 Marek Polacek <polacek@redhat.com>
23813 * doc/extend.texi: Use @pxref instead of @xref.
23815 2015-05-22 hiraditya <hiraditya@msn.com>
23817 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
23820 2015-05-22 Richard Biener <rguenther@suse.de>
23822 PR tree-optimization/65701
23823 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23824 Move peeling cost models into one place. Peel for alignment
23825 for single loads only if an aligned load is cheaper than
23828 2015-05-22 Marek Polacek <polacek@redhat.com>
23831 * doc/extend.texi (Enumerator Attributes): New section.
23832 Document syntax of enumerator attributes.
23834 2015-05-22 Richard Biener <rguenther@suse.de>
23836 * tree-vect-loop.c (get_reduction_op): New function.
23837 (vect_model_reduction_cost): Use it, add reduc_index parameter.
23838 Make ready for BB reductions.
23839 (vect_create_epilog_for_reduction): Use get_reduction_op.
23840 (vectorizable_reduction): Init reduc_index to a valid value.
23841 Adjust vect_model_reduction_cost call.
23842 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
23843 operand for reduction defaults. Add SAD_EXPR support.
23844 Assert we have a neutral op for SLP reductions.
23845 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
23846 walking pattern stmt ops only recurse to SSA names.
23848 2015-05-22 Richard Biener <rguenther@suse.de>
23850 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
23851 assert with guard, remove check on detected reduction.
23852 (vect_recog_sad_pattern): Likewise.
23853 (vect_recog_widen_sum_pattern): Likewise.
23855 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23857 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
23858 __always_inline__ attribute.
23859 (vaesdq_u8): Likewise.
23860 (vaesmcq_u8): Likewise.
23861 (vaesimcq_u8): Likewise.
23862 (vsha1cq_u32): Likewise.
23863 (vsha1mq_u32): Likewise.
23864 (vsha1pq_u32): Likewise.
23865 (vsha1h_u32): Likewise.
23866 (vsha1su0q_u32): Likewise.
23867 (vsha1su1q_u32): Likewise.
23868 (vsha256hq_u32): Likewise.
23869 (vsha256h2q_u32): Likewise.
23870 (vsha256su0q_u32): Likewise.
23871 (vsha256su1q_u32): Likewise.
23872 (vmull_p64): Likewise.
23873 (vmull_high_p64): Likewise.
23875 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23877 * final.c (final_scan_insn): Don't check HAVE_peephole with the
23879 * output.h: Likewise.
23880 * genconfig.c (main): Alwways define HAVE_peephole.
23881 * genpeep.c: Don't emit checks of HAVE_peephole.
23883 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23885 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
23886 check HAVE_conditional_move with the preprocessor.
23888 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23890 * genconfig.c (main): Always define HAVE_conditional_move.
23891 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
23892 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
23895 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23897 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
23898 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
23899 and FRAME_POINTER_REGNUM with the preprocessor.
23901 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23903 * defaults.h: Add default for STACK_PUSH_CODE.
23904 * expr.c: Don't redefine STACK_PUSH_CODE.
23905 * recog.c: Likewise.
23907 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23909 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
23910 sched-deps.c: Use if instead of preprocessor checks with
23911 STACK_GROWS_DOWNWARD.
23913 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23915 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
23917 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
23918 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
23919 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
23920 * doc/tm.texi: Regenerate.
23922 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
23925 * config/i386/constraints.md (Bg): New constraint for GOT memory
23927 * config/i386/i386.md (*call_got_x32): New pattern.
23928 (*call_value_got_x32): Likewise.
23929 * config/i386/predicates.md (GOT_memory_operand): New predicate.
23931 2015-05-21 Jakub Jelinek <jakub@redhat.com>
23933 PR tree-optimization/66233
23934 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
23937 2015-05-21 Jeff Law <law@redhat.com>
23939 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
23940 than MULT for shadd sequences.
23942 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
23944 * alias.c (alias_stats): New static var.
23945 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
23946 (dump_alias_stats_in_alias_c): New function.
23947 * alias.h (dump_alias_stats_in_alias_c): Declare.
23948 * tree-ssa-alias.c (dump_alias_stats): Call it.
23950 2015-05-08 Michael Matz <matz@suse.de>
23952 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
23954 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
23955 (STMT_VINFO_STRIDED_P): ... this.
23956 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
23957 (vect_verify_datarefs_alignment): Likewise.
23958 (vect_enhance_data_refs_alignment): Likewise.
23959 (vect_analyze_data_ref_access): Likewise.
23960 (vect_analyze_data_refs): Accept strided stores.
23961 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
23962 (vect_model_load_cost): Adjust for macro rename.
23963 (vectorizable_mask_load_store): Likewise.
23964 (vectorizable_load): Likewise.
23965 (vectorizable_store): Open code strided stores.
23967 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23969 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
23970 Document sqrt_insn.
23972 2015-05-21 Richard Biener <rguenther@suse.de>
23975 * match.pd: Guard pattern optimzing (int)(float)int
23976 conversions to apply only on GIMPLE.
23978 2015-05-21 Jeff Law <law@redhat.com>
23980 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
23981 multiply-accumulate/shift-add insn generation.
23983 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23986 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
23987 operands[1] are the same.
23989 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
23991 PR middle-end/66221
23992 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
23993 build_distinct_type_copy to copy bounds.
23995 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
23997 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
23998 Change to unsigned int.
24000 2015-05-20 Jeff Law <law@redhat.com>
24002 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24003 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24004 (pa_shadd_constant_p): Allow constants for shadd insns rather
24005 than valid scaling constants for memory addresses.
24006 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24007 * config/pa/predicates.md (mem_shadd_operand): New predicate.
24008 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24009 (shift-add insns using ASHIFT): New patterns.
24011 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
24013 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24015 (fix_up_fall_thru_edges): Likewise.
24016 (fix_crossing_conditional_branches): Likewise. Promote jump targets
24017 from to rtx_insn to rtx_code_label where feasible.
24018 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24019 gen_move_insn (returned type changed to rtx_insn).
24020 * builtins.c (expand_errno_check): Fix arguments of
24021 do_compare_rtx_and_jump (now expects rtx_code_label).
24022 (expand_builtin_acc_on_device): Likewise.
24023 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24024 invert_jump (now exprects rtx_jump_insn).
24025 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24026 (construct_init_block): Use rtx_code_label.
24027 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24028 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24029 calling redirect_jump.
24030 (patch_jump_insn): Likewise.
24031 (redirect_branch_edge): Likewise.
24032 (force_nonfallthru_and_redirect): Likewise.
24033 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24035 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24036 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24037 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24038 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24039 to store the value retured by gen_label_rtx.
24040 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24042 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24043 (split_branches): Fix calls of redirect_jump.
24044 * dojump.c (jumpifnot): Promote argument type from rtx to
24046 (jumpifnot_1): Likewise.
24047 (jumpif): Likewise.
24048 (jumpif_1): Likewise.
24049 (do_jump_1): Likewise.
24050 (do_jump): Likewise. Use rtx_code_label when feasible.
24051 (do_jump_by_parts_greater_rtx): Likewise.
24052 (do_jump_by_parts_zero_rtx): Likewise.
24053 (do_jump_by_parts_equality_rtx): Likewise.
24054 (do_compare_rtx_and_jump): Likewise.
24055 * dojump.h: Update function prototypes.
24056 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24058 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24060 (emit_label_before): Likewise.
24061 (emit_jump_insn_after_noloc): Likewise.
24062 (emit_jump_insn_after_setloc): Likewise.
24063 (emit_jump_insn_after): Likewise
24064 (emit_jump_insn_before_setloc): Likewise.
24065 (emit_jump_insn_before): Likewise.
24066 (emit_label_before): Promote return type to rtx_code_label.
24067 (emit_label): Likewise.
24068 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24069 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24071 (emit_stack_restore): Likewise.
24072 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24073 (do_cmp_and_jump): Likewise.
24074 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24075 from rtx to rtx_code_label.
24076 (gen_move_insn_uncast): New function.
24077 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24078 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24079 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24080 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24081 invert_jump_1 and redirect_jump_1.
24082 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24083 do_compare_rtx_and_jump.
24084 (expand_addsub_overflow): Likewise.
24085 (expand_neg_overflow): Likewise.
24086 (expand_mul_overflow): Likewise.
24087 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24088 return value of gen_move_insn.
24089 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24090 * loop-doloop.c (add_test): Use rtx_code_label.
24091 (doloop_modify): Likewise.
24092 (doloop_optimize): Likewise.
24093 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24094 * lra-constraints.c (emit_spill_move): Remove cast of value returned
24096 (inherit_reload_reg): Add cast when calling dump_insn_slim.
24097 (split_reg): Likewise.
24098 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24100 * optabs.c (expand_binop_directly): Remove casts of values returned by
24102 (expand_unop_direct): Likewise.
24103 (expand_abs): Likewise.
24104 (maybe_emit_unop_insn): Likewise.
24105 (maybe_gen_insn): Promote return type to rtx_insn.
24106 * optabs.h: Update prototype of maybe_gen_insn.
24107 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24109 * recog.c (struct peep2_insn_data): Promote type of insn field to
24111 (peep2_reinit_state): Use NULL instead of NULL_RTX.
24112 (peep2_attempt): Remove casts of insn in peep2_insn_data.
24113 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24114 * recog.h (struct insn_gen_fn): Promote return types of function
24115 pointers and operator ().from rtx to rtx_insn.
24116 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24117 (fill_eager_delay_slots): Likewise.
24118 (relax_delay_slots): Likewise.
24119 (make_return_insns): Likewise.
24120 (dbr_schedule): Likewise.
24121 (optimize_skips): Likewise.
24122 (reorg_redirect_jump): Likewise.
24123 (fill_slots_from_thread): Likewise.
24124 * reorg.h: Update prototypes.
24125 * resource.c (find_dead_or_set_registers): Use dyn_cast to
24126 rtx_jump_insn instead of check. Use it's jump_target method.
24127 * rtl.h (rtx_jump_insn::jump_label): Define new method.
24128 (rtx_jump_insn::jump_target): Define new method.
24129 (rtx_jump_insn::set_jump_target): Define new method.
24130 * rtlanal.c (tablejump_p): Promote type of one local variable.
24131 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24132 (sched_analyze_insn): Likewise.
24133 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24134 (print_insn): Likewise.
24135 * stmt.c (label_rtx): Promote return type to rtx_insn.
24136 (force_label_rtx): Likewise.
24137 (jump_target_rtx): Define new function.
24138 (expand_label): Use it, get rid of one cast.
24139 (expand_naked_return): Promote rtx to rtx_code_label.
24140 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24141 (expand_case): Use rtx_code_label instread of rtx where feasible.
24142 (expand_sjlj_dispatch_table): Likewise.
24143 (emit_case_nodes): Likewise.
24144 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
24145 * store-motion.c (insert_store): Make use of new return type of
24146 gen_move_insn and remove a cast.
24147 (replace_store_insn): Likewise.
24149 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
24151 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24152 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24154 2015-05-20 Jeff Law <law@redhat.com>
24156 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24157 dispose of the jump thread path when the jump threading
24158 opportunity is cancelled.
24160 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24162 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24163 when printing the caret character.
24165 2015-05-20 Marek Polacek <polacek@redhat.com>
24167 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24169 2015-05-20 Marek Polacek <polacek@redhat.com>
24171 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24172 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24173 * gimple-fold.c (canonicalize_bool): Likewise.
24174 (same_bool_result_p): Likewise.
24175 * tree-if-conv.c (parse_predicate): Likewise.
24177 2015-05-20 Marek Polacek <polacek@redhat.com>
24179 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24180 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24182 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24184 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24185 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24188 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
24190 * config/mips/mips.h (micromips_globals): Declare.
24192 2015-05-20 David Malcolm <dmalcolm@redhat.com>
24194 * timevar.def (TV_INITIALIZE_RTL): New.
24195 * toplev.c (initialize_rtl): Use an auto_timevar to account this
24196 function's time to TV_INITIALIZE_RTL.
24198 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24200 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24201 gimple_build_nop calls.
24202 (chkp_find_bounds_for_elem): Likewise.
24203 (chkp_get_zero_bounds): Likewise.
24204 (chkp_get_none_bounds): Likewise.
24205 (chkp_get_bounds_by_definition): Likewise.
24206 (chkp_generate_extern_var_bounds): Likewise.
24207 (chkp_get_bounds_for_decl_addr): Likewise.
24208 (chkp_get_bounds_for_string_cst): Likewise.
24210 2015-05-20 Bin Cheng <bin.cheng@arm.com>
24212 PR tree-optimization/65447
24213 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24214 (dump_use, dump_uses): Support to dump sub use.
24215 (record_use): New parameters to support sub use. Remove call to
24217 (record_sub_use, record_group_use): New functions.
24218 (compute_max_addr_offset, split_all_small_groups): New functions.
24219 (group_address_uses, rewrite_use_address): New functions.
24220 (strip_offset): New declaration.
24221 (find_interesting_uses_address): Call record_group_use.
24222 (add_candidate): New assertion.
24223 (infinite_cost_p): Move definition forward.
24224 (add_costs): Check INFTY cost and return immediately.
24225 (get_computation_cost_at): Clear setup cost and dependent bitmap
24227 (determine_use_iv_cost_address): Compute cost for sub uses.
24228 (rewrite_use_address_1): Rename from old rewrite_use_address.
24229 (free_loop_data): Free sub uses.
24230 (tree_ssa_iv_optimize_loop): Call group_address_uses.
24232 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24233 Jim Wilson <jim.wilson@linaro.org>
24235 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24236 new fields loadv and storev.
24237 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24238 Initialize loadv and storev.
24239 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24240 (cortexa53_extra_costs): Likewise.
24241 (cortexa57_extra_costs): Likewise.
24242 (xgene1_extra_costs): Likewise.
24243 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24246 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24248 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24250 (cortexa8_extra_costs): Likewise.
24251 (cortexa5_extra_costs): Likewise.
24252 (cortexa7_extra_costs): Likewise.
24253 (cortexa12_extra_costs): Likewise.
24254 (cortexa15_extra_costs): Likewise.
24255 (v7m_extra_costs): Likewise.
24257 2015-05-20 Jeff Law <law@redhat.com>
24259 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24260 instead of open-coded version. Also delete the jump thread created
24261 within this function.
24263 2015-05-20 Alan Modra <amodra@gmail.com>
24265 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24266 stack adjusting insn. Formatting.
24267 (rs6000_emit_prologue): Track stack adjusting insn, and use of
24268 r12. If possible, emit first -fsplit-stack arg pointer insn
24269 before stack adjust. Don't use r12 to save cr if split-stack.
24271 2015-05-20 Alan Modra <amodra@gmail.com>
24273 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24275 (rs6000_supports_split_stack): New function.
24276 * config/rs6000/rs6000.c (machine_function): Add
24277 split_stack_arg_pointer.
24278 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24279 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24280 rather than virtual_incoming_args_rtx.
24281 (rs6000_va_start): Likewise.
24282 (split_stack_arg_pointer_used_p): New function.
24283 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24284 (morestack_ref): New var.
24285 (gen_add3_const, rs6000_expand_split_stack_prologue,
24286 rs6000_internal_arg_pointer, rs6000_live_on_entry,
24287 rs6000_split_stack_space_check): New functions.
24288 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24289 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24290 (UNSPECV_SPLIT_STACK_RETURN): Define.
24291 (split_stack_prologue, load_split_stack_limit,
24292 load_split_stack_limit_di, load_split_stack_limit_si,
24293 split_stack_return, split_stack_space_check): New expands and insns.
24294 * config/rs6000/rs6000-protos.h
24295 (rs6000_expand_split_stack_prologue): Declare.
24296 (rs6000_split_stack_space_check): Declare.
24298 2015-05-20 Alan Modra <amodra@gmail.com>
24300 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24301 (direct_return): Test vrsave_size rather than vrsave_mask.
24302 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
24303 (rs6000_emit_epilogue): Likewise.
24305 2015-05-20 Alan Modra <amodra@gmail.com>
24307 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24308 when not saving registers.
24309 (debug_stack_info): Adjust to omit printing unused offsets,
24311 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24314 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24317 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24318 value_type to const char *.
24320 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
24322 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24323 to build a biarch toolchain again.
24325 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24327 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24328 or implicit declarations.
24329 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24331 (get_odr_type): Check type has linkage before adding bases.
24332 (register_odr_type): Check that type has linkage before adding it.
24333 (type_known_to_have_no_deriavations_p): Rename to ..
24334 (type_known_to_have_no_derivations_p): This one.
24335 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24336 (type_known_to_have_no_derivations_p): This one.
24337 * ipa-polymorphic-call.c
24338 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24341 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24343 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24344 (layout_type): Use RECORD_OR_UNION_TYPE_P.
24346 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24348 * config/s390/s390.c (s390_vector_bool_type_p): New function.
24349 (s390_invalid_binary_op): New function.
24350 (TARGET_INVALID_BINARY_OP): Define macro.
24352 2015-05-19 David Sherwood <david.sherwood@arm.com>
24354 * loop-invariant.c (create_new_invariant): Don't calculate address cost
24355 if mode is not a scalar integer.
24356 (get_inv_cost): Increase computational cost for unused invariants.
24358 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24360 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
24361 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
24362 * config/s390/s390-builtin-types.def: New file.
24363 * config/s390/s390-builtins.def: New file.
24364 * config/s390/s390-builtins.h: New file.
24365 * config/s390/s390-c.c: New file.
24366 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24367 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24368 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24369 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24371 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24373 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24374 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24375 variable definitions.
24376 (s390_const_operand_ok): New function.
24377 (s390_expand_builtin): Rewrite.
24378 (s390_init_builtins): New function.
24379 (s390_handle_vectorbool_attribute): New function.
24380 (s390_attribute_table): Add s390_vector_bool attribute.
24381 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24382 (s390_branch_condition_mask): Generate masks for new modes.
24383 (s390_expand_vec_compare_cc): New function.
24384 (s390_mangle_type): Add mangling for vector bool types.
24385 (enum s390_builtin): Remove.
24386 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24388 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24389 s390_cpu_cpp_builtins.
24390 (REGISTER_TARGET_PRAGMAS): New macro.
24391 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24392 (insn_cmp mode attribute): Add new CC modes.
24393 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24394 (lcbb): New pattern definition.
24395 * config/s390/s390intrin.h: Include vecintrin.h.
24396 * config/s390/t-s390: New file.
24397 * config/s390/vecintrin.h: New file.
24398 * config/s390/vector.md: Include vx-builtins.md.
24399 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24402 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24404 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24406 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24407 (s390_select_ccmode): Likewise.
24408 (s390_canonicalize_comparison): Swap operands if necessary.
24409 (s390_expand_vec_compare_scalar): Expand DFmode compare using
24410 single element vector instructions.
24411 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24412 (s390_branch_condition_mask): Generate CC masks for the new modes.
24413 * config/s390/s390.md (v0, vf, vd): New mode attributes.
24414 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24415 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24416 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24417 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24418 (*extend<DSF:mode><BFP:mode>2): New insn definition.
24419 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24420 (extend<DSF:mode><BFP:mode>2): Turn into expander.
24421 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24422 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24423 (sqrt<mode>2): Add vector instruction.
24425 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24427 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24429 * config/s390/predicates.md (const0_operand, constm1_operand)
24430 (constable_operand): Accept vector operands.
24431 * config/s390/s390-modes.def: Add supported vector modes.
24432 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
24433 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
24434 (s390_bytemask_vector_p, s390_expand_vec_strlen)
24435 (s390_expand_vec_compare, s390_expand_vcond)
24436 (s390_expand_vec_init): Add prototypes.
24437 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
24438 (s390_vector_mode_supported_p): New function.
24439 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
24440 (s390_contiguous_bitmask_vector_p): New function.
24441 (s390_bytemask_vector_p): New function.
24442 (s390_split_ok_p): Vector regs don't work either.
24443 (regclass_map): Add VEC_REGS.
24444 (s390_legitimate_constant_p): Handle vector constants.
24445 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
24446 (legitimate_reload_vector_constant_p): New function.
24447 (s390_preferred_reload_class): Handle CONST_VECTOR.
24448 (s390_reload_symref_address): Likewise.
24449 (s390_secondary_reload): Vector memory instructions only support
24450 short displacements. Rename reload*_nonoffmem* to reload*_la*.
24451 (s390_emit_ccraw_jump): New function.
24452 (s390_expand_vec_strlen): New function.
24453 (s390_expand_vec_compare): New function.
24454 (s390_expand_vcond): New function.
24455 (s390_expand_vec_init): New function.
24456 (s390_dwarf_frame_reg_mode): New function.
24457 (print_operand): Handle addresses with 'O' and 'R' constraints.
24458 (NR_C_MODES, constant_modes): Add vector modes.
24459 (s390_output_pool_entry): Handle vector constants.
24460 (s390_hard_regno_mode_ok): Handle vector registers.
24461 (s390_class_max_nregs): Likewise.
24462 (s390_cannot_change_mode_class): New function.
24463 (s390_invalid_arg_for_unprototyped_fn): New function.
24464 (s390_function_arg_vector): New function.
24465 (s390_function_arg_float): Remove size variable.
24466 (s390_pass_by_reference): Handle vector arguments.
24467 (s390_function_arg_advance): Likewise.
24468 (s390_function_arg): Likewise.
24469 (s390_return_in_memory): Vector values are returned in a VR if
24471 (s390_function_and_libcall_value): Handle vector arguments.
24472 (s390_gimplify_va_arg): Likewise.
24473 (s390_call_saved_register_used): Consider the arguments named.
24474 (s390_conditional_register_usage): Disable v16-v31 for non-vec
24476 (s390_preferred_simd_mode): New function.
24477 (s390_support_vector_misalignment): New function.
24478 (s390_vector_alignment): New function.
24479 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
24480 (TARGET_VECTOR_MODE_SUPPORTED_P)
24481 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
24482 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24483 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
24484 (TARGET_VECTOR_ALIGNMENT): Define target macro.
24485 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
24486 (FIRST_PSEUDO_REGISTER): Increase value.
24487 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
24488 (VECTOR_REG_P): Define macros.
24489 (FIXED_REGISTERS, CALL_USED_REGISTERS)
24490 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
24491 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
24492 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
24493 Add vector registers.
24494 (CANNOT_CHANGE_MODE_CLASS): Call C function.
24495 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
24496 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
24498 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
24499 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
24500 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
24501 (VR*_REGNUM): New constants.
24502 (ALL): New mode iterator.
24503 (INTALL): Remove mode iterator.
24505 (movti): Implement TImode moves for VRs.
24506 Disable TImode splitter for VR targets.
24507 Implement splitting TImode GPR<->VR moves.
24508 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
24509 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
24510 reload<mode>_la_in, reload<mode>_la_out.
24511 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
24512 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
24513 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
24514 (mov<mode> SF SD): Prefer lder, lde for loading.
24515 Add lrl and strl instructions.
24516 Add vector instructions.
24517 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
24518 Call s390_expand_vec_strlen on z13.
24519 (*cc_to_int): Change predicate to nonimmediate_operand.
24520 (addti3): Rename to *addti3. New expander.
24521 (subti3): Rename to *subti3. New expander.
24522 * config/s390/vector.md: New file.
24524 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24526 * common/config/s390/s390-common.c (processor_flags_table): Add
24528 * config.gcc: Add z13.
24529 * config/s390/s390-opts.h (enum processor_type): Add
24530 PROCESSOR_2964_Z13.
24531 * config/s390/s390.c (s390_adjust_priority): Check for
24532 PROCESSOR_2964_Z13.
24533 (s390_reorg): Likewise.
24534 (s390_sched_reorder): Likewise.
24535 (s390_sched_variable_issue): Likewise.
24536 (s390_loop_unroll_adjust): Likewise.
24537 (s390_option_override): Likewise. Default to -mvx when available.
24538 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
24539 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
24540 (TARGET_VX_ABI): Define macros.
24542 (TARGET_DEFAULT): Add MASK_OPT_VX.
24543 * config/s390/s390.md ("cpu" attribute): Add z13.
24544 ("cpu_facility" attribute): Add vec.
24545 * config/s390/s390.opt (processor_type): Add z13.
24546 (mvx): New options.
24547 * doc/invoke.texi: Add z13 option for -march.
24549 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24551 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
24552 mode check to make sure that only scalar integer values are
24555 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24557 * tree.c (verify_type_variant): Fix #undef.
24558 (gimple_canonical_types_compatible_p): Move here from lto.c
24559 (verify_type): Verify TYPE_CANONICAL compatibility.
24560 * tree.h (gimple_canonical_types_compatible_p): Declare.
24562 2015-05-19 Jakub Jelinek <jakub@redhat.com>
24564 PR middle-end/66199
24565 * tree.h (OMP_TEAMS_COMBINED): Define.
24566 * gimplify.c (enum gimplify_omp_var_data): Add
24567 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
24568 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
24569 (omp_notice_variable): Accept both ORT_TEAMS
24570 and ORT_COMBINED_TEAMS. Don't recurse if
24571 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
24572 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
24574 (omp_no_lastprivate): New function.
24575 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
24576 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
24577 notice_outer and set appropriate bits, otherwise make
24578 sure default(none) combined constructs won't complain.
24579 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
24580 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
24581 omp_no_lastprivate either remove the clause or turn it
24582 into OMP_CLAUSE_PRIVATE.
24583 (gimplify_omp_for): Fix up handling of implicit
24584 lastprivate or linear iterators.
24585 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
24586 ORT_COMBINED_TEAMS.
24587 * omp-low.c (lower_omp_for_lastprivate): For combined
24588 for simd use fd.loop.n2 from the for rather than simd.
24590 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24592 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
24593 instead of gen_rtx_raw_REG.
24594 (cris_expand_epilogue): Likewise.
24595 * config/microblaze/microblaze.c (microblaze_classify_address):
24597 * config/sparc/sparc.md: Likewise.
24599 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
24601 * config/alpha/alpha.c (alpha_legitimize_reload_address)
24602 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
24603 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
24604 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
24605 Use CASE_CONST_SCALAR_INT.
24606 (print_operand) <case 'M'>: Use mode_width_operand to check the
24607 value of the constant.
24608 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
24609 * config/alpha/predicates.md (input_operand): Use general_operand
24610 instead of match_code as operand check.
24611 (symbolic_operand): Use match_code with subexpression digits.
24612 * config/alpha/constraints.md (Q): Ditto.
24614 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24616 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
24618 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24620 * config/s390/s390.c (s390_secondary_reload): Fix check for
24621 load/store relative.
24623 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24625 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
24626 alternative_mask to uint64_t.
24628 2015-05-19 Jakub Jelinek <jakub@redhat.com>
24630 PR tree-optimization/66187
24631 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
24632 Pass TYPE_SIGN to tree_int_cst_min_precision. If
24633 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
24635 2015-05-19 David Malcolm <dmalcolm@redhat.com>
24637 * diagnostic.c (diagnostic_report_current_module): Strengthen
24638 local "new_map" from const line_map * to
24639 const line_map_ordinary *.
24640 * genmatch.c (error_cb): Likewise for local "map".
24641 (output_line_directive): Likewise for local "map".
24642 * input.c (expand_location_1): Likewise for local "map".
24643 Pass NULL rather than &map to
24644 linemap_unwind_to_first_non_reserved_loc, since the value is never
24645 read from there, and the value written back not read from here.
24646 (is_location_from_builtin_token): Strengthen local "map" from
24647 const line_map * to const line_map_ordinary *.
24648 (dump_location_info): Strengthen locals "map" from
24649 line_map *, one to const line_map_ordinary *, the other
24650 to const line_map_macro *.
24651 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
24652 const line_map * to const line_map_macro *.
24653 (maybe_unwind_expanded_macro_loc): Add a call to
24654 linemap_check_macro when writing to the "map" field of the
24656 Introduce local const line_map_ordinary * "ord_map", using it in
24657 place of "map" in the part of the function where we know we have
24658 an ordinary map. Strengthen local "m" from const line_map * to
24659 const line_map_ordinary *.
24661 2015-05-19 Nick Clifton <nickc@redhat.com>
24664 * config/msp430/msp430.md (zero_extendhisi2): Add support for
24665 separate source and destination registers.
24667 2015-05-19 Richard Biener <rguenther@suse.de>
24669 PR tree-optimization/66165
24670 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
24671 for no load permutation.
24673 PR tree-optimization/66185
24674 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
24675 when building the SLP node from scalars.
24677 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24678 Tristan Gingold <gingold@adacore.com>
24680 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
24681 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
24682 (expand_stack_restore): Call record_new_stack_level.
24683 (expand_stack_save): Do not call do_pending_stack_adjust.
24684 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
24685 * calls.c (expand_call): Call record_new_stack_level for alloca.
24686 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
24687 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
24688 (update_sjlj_context): New global function.
24689 * except.h (update_sjlj_context): Declare.
24690 * explow.c (record_new_stack_level): New global function.
24691 (allocate_dynamic_stack_space): Call record_new_stack_level.
24692 * explow.h (record_new_stack_level): Declare.
24693 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
24694 * cfgrtl.c (duplicate_insn_chain): Likewise.
24696 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24698 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
24699 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
24700 STACK_GROWS_DOWNWARD as normal if.
24701 (expand_call): Likewise.
24703 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
24706 * config/sh/sh.md (*round_int_even): New insn_and_split and
24707 accompanying new unnamed split.
24709 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24711 * bitmap.c (bitmap_set_range): Handle count==1 specially.
24712 (bitmap_clear_range): Likewise.
24713 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
24714 bitmap_set_range unconditionally.
24715 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24716 * df-scan.c (df_mark_reg): Likewise.
24717 * haifa-sched.c (setup_ref_regs): Likewise.
24718 * sched-rgn.c (update_live_1): Likewise.
24720 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24722 * regs.h (END_HARD_REGNO): Delete.
24723 (END_REGNO): Move to...
24725 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
24726 * caller-save.c (mark_set_regs): Likewise.
24727 * combine.c (move_deaths, distribute_notes): Likewise.
24728 * cse.c (invalidate, invalidate_for_call): Likewise.
24729 * df-scan.c (df_ref_record): Likewise.
24730 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
24731 (record_last_reg_set_info): Likewise.
24732 * reg-stack.c (convert_regs_exit): Likewise.
24733 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
24734 * resource.c (update_live_status): Likewise.
24735 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
24737 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24739 * rtl.h (reg_info): Add an nregs field.
24740 (REG_NREGS): Use it.
24741 (SET_REGNO_RAW): Delete.
24742 (set_regno_raw): New function.
24743 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
24744 (END_REGNO): Redefine in terms of REG_NREGS.
24745 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
24747 * emit-rtl.c (set_mode_and_regno): Likewise.
24748 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
24749 instead of SET_REGNO_RAW.
24751 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24753 * rtl.h (PUT_MODE_RAW): New macro.
24754 (PUT_REG_NOTE_KIND): Use it.
24755 (set_mode_and_regno): Declare.
24756 (gen_raw_REG): Change regno to "unsigned int".
24757 (gen_rtx_REG): Change "unsigned" to "unsigned int".
24758 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
24759 use set_mode_and_regno to change the mode of registers.
24760 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
24761 * emit-rtl.c (set_mode_and_regno): New function.
24762 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
24763 * caller-save.c (reg_save_code): Use set_mode_and_regno.
24764 * expr.c (init_expr_target): Likewise.
24765 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24766 * postreload.c (reload_cse_simplify_operands): Likewise.
24768 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24770 * caller-save.c (init_caller_save): Use word_mode and
24771 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
24772 * expr.c (init_expr_target): Likewise.
24773 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24774 * postreload.c (reload_cse_regs_1): Likewise.
24776 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24778 * rtl.def (REG): Change format to "r".
24779 * rtl.h (rtunion): Remove rt_reg.
24780 (reg_info): New structure.
24781 (rtx_def): Add reg field to main union.
24782 (X0REGATTR): Delete.
24783 (REG_CHECK): New macro.
24784 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
24785 * rtl.c (rtx_format): Document "r".
24786 (rtx_code_size): Handle REG specially.
24787 * gengenrtl.c (special_format): Return true for formats
24789 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
24790 Deal with REG_ATTRS after the field loop.
24791 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
24792 * expmed.c (init_expmed): Call gen_raw_REG instead of
24794 * expr.c (init_expr_target): Likewise.
24795 * regcprop.c (maybe_mode_change): Likewise.
24796 * varasm.c (make_decl_rtl): Likewise.
24797 * final.c (leaf_renumber_regs_insn): Return early after
24799 * genemit.c (gen_exp): Handle 'r' fields.
24800 * genpeep.c (match_rtx): Likewise.
24801 * gensupport.c (subst_pattern_match): Likewise.
24802 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
24803 (alter_constraints, subst_dup): Likewise.
24804 * read-rtl.c (read_rtx_code): Likewise.
24805 * print-rtl.c (print_rtx): Likewise.
24806 * genrecog.c (find_operand, find_matching_operand): Likewise.
24807 (validate_pattern, match_pattern_2): Likewise.
24808 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
24809 (rtx_test::regno_field): New function.
24810 (operator ==, safe_to_hoist_p, transition_parameter_type)
24811 (parameter_type_string, print_parameter_value)
24812 (print_nonbool_test, print_test): Handle new enum values.
24813 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
24814 * lra-constraints.c (operands_match_p): Likewise.
24816 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24818 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
24819 Change type of new_regno to unsigned int.
24820 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
24821 new_regno to unsigned int.
24822 (df_ref_change_reg_with_loc): Remove old_regno parameter.
24823 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
24824 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
24825 (SET_REGNO_RAW): Add space after ",".
24827 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24829 * rtl.h (REG_NREGS): New macro
24830 * alias.c (record_set): Use it.
24831 * cfgcleanup.c (mark_effect): Likewise.
24832 * combine.c (likely_spilled_retval_1): Likewise.
24833 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
24834 (move_deaths, distribute_notes): Likewise.
24835 * cselib.c (cselib_record_set): Likewise.
24836 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24837 * df-scan.c (df_mark_reg): Likewise.
24838 * dse.c (look_for_hardregs): Likewise.
24839 * dwarf2out.c (reg_loc_descriptor): Likewise.
24840 (multiple_reg_loc_descriptor): Likewise.
24841 * expr.c (write_complex_part, read_complex_part): Likewise.
24842 (emit_move_complex): Likewise.
24843 * haifa-sched.c (setup_ref_regs): Likewise.
24844 * ira-lives.c (mark_hard_reg_live): Likewise.
24845 * lra.c (lra_set_insn_recog_data): Likewise.
24846 * mode-switching.c (create_pre_exit): Likewise.
24847 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
24848 (reload_combine_recognize_pattern): Likewise.
24849 (reload_combine_note_use, move2add_record_mode): Likewise.
24850 (reload_cse_move2add): Likewise.
24851 * reg-stack.c (subst_stack_regs_pat): Likewise.
24852 * regcprop.c (kill_value, copy_value): Likewise.
24853 (copyprop_hardreg_forward_1): Likewise.
24854 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
24855 (build_def_use): Likewise.
24856 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
24857 (deps_analyze_insn): Likewise.
24858 * sched-rgn.c (check_live_1, update_live_1): Likewise.
24859 * sel-sched.c (count_occurrences_equiv): Likewise.
24860 * valtrack.c (dead_debug_insert_temp): Likewise.
24862 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24864 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
24865 * dse.c (note_add_store): Likewise.
24866 * ira-lives.c (mark_hard_reg_dead): Likewise.
24867 * loop-invariant.c (mark_reg_store): Likewise.
24868 (mark_reg_death): Likewise.
24869 * postreload.c (reload_combine): Likewise.
24870 (reload_combine_note_store): Likewise.
24871 (reload_combine_note_use): Likewise.
24872 * recog.c (peep2_reg_dead_p): Likewise.
24874 2015-05-19 Alan Modra <amodra@gmail.com>
24876 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
24877 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
24878 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
24880 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
24881 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
24882 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
24883 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
24885 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
24887 * config/mips/mips.md (JOIN_MODE): New mode iterator.
24888 (join2_load_Store<JOIN_MODE:mode>): New pattern.
24889 (join2_loadhi): Likewise.
24890 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
24891 load-load and store-stores.
24892 * config/mips/mips.opt (mload-store-pairs): New option.
24893 (TARGET_LOAD_STORE_PAIRS): New macro.
24894 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
24895 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
24896 * config/mips/mips.c (mips_load_store_bonding_p): New function.
24898 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
24900 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
24902 * dojump.c (do_compare_rtx_and_jump): Likewise.
24903 * expmed.c (emit_store_flag_1): Likewise.
24904 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
24905 * final.c (sprint_ul): Use std::reverse for reversing a string.
24906 * fold-const.c (extract_muldiv_1): Use std::swap.
24907 * genmodes.c (emit_mode_int_n): Likewise.
24908 * ifcvt.c (dead_or_predicable): Likewise.
24909 * ira-build.c (ira_merge_live_ranges): Likewise.
24910 (swap_allocno_copy_ends_if_necessary): Likewise.
24911 * ira.c (ira_setup_alts): Likewise.
24912 * loop-iv.c (iv_analyze_expr): Likewise.
24913 (implies_p): Likewise.
24914 (canon_condition): Likewise.
24915 * lra-constraints.c (swap_operands): Likewise.
24916 * lra-lives.c (lra_merge_live_ranges): Likewise.
24917 * omega.c (swap): Remove.
24919 (omega_unprotect_1): Use std::swap.
24920 (omega_solve_geq): Likewise.
24921 * optabs.c (expand_binop_directly): Likewise.
24922 (expand_binop): Likewise.
24923 (emit_conditional_move): Likewise.
24924 (emit_conditional_add): Likewise.
24925 * postreload.c (reload_cse_simplify_operands): Likewise.
24926 * reg-stack.c (emit_swap_insn): Likewise.
24927 (swap_to_top): Likewise.
24928 (compare_for_stack_reg): Likewise.
24929 (subst_asm_stack_regs): Likewise.
24930 * reload.c (find_reloads): Likewise.
24931 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
24932 * sel-sched.c (invoke_reorder_hooks): Likewise.
24933 (create_block_for_bookkeeping): Likewise.
24934 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
24935 (lambda_matrix_right_hermite): Use std::swap.
24936 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
24937 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
24938 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
24939 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
24940 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
24941 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
24942 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
24943 * tree-vrp.c (compare_ranges): Likewise.
24944 * var-tracking.c (add_with_sets): Likewise.
24945 (vt_find_locations): Likewise.
24947 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
24949 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
24951 (FBSD_ENDFILE_SPEC): Likewise.
24952 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
24953 config/freebsd-spec.h.
24954 (ENDFILE_SPEC): Likewise.
24956 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
24957 Richard Henderson <rth@redhat.com>
24960 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
24961 Check for a memory location that is not a reference (using an AND)
24962 to an unaligned location here.
24963 * config/alpha/predicates.md (normal_memory_operand): Remove.
24965 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
24967 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
24968 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
24970 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
24972 * config/mips/mips.c (micromips_globals): New variable.
24973 (mips_set_compression_mode): Save and reinitialize target-dependent
24974 state for microMIPS.
24976 2015-05-18 Martin Liska <mliska@suse.cz>
24978 * dbgcnt.def: Add new counter.
24979 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
24981 2015-05-18 Martin Liska <mliska@suse.cz>
24983 * dbgcnt.def: Sort counters.
24984 * opts.c (common_handle_option): Do not compile if
24985 -fdbg-cnt-list is enabled.
24987 2015-05-18 Tom de Vries <tom@codesourcery.com>
24989 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
24990 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
24991 address operator to va_list operand.
24992 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
24994 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
24996 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
24997 * config/s390/s390.c (s390_gimplify_va_arg): Same.
24998 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25000 2015-05-18 Tom de Vries <tom@codesourcery.com>
25002 * tree-ssa-tail-merge.c: Fix whitespace.
25004 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
25006 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25007 cortex-a17, and cortex-a17.cortex-a7.
25009 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
25012 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25014 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
25017 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25018 QImode inner modes for TARGET_AVX512BW. Force mask operand
25019 to a register for AVX512F modes.
25021 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25023 * toplev.c (emit_debug_global_declarations): Do not output debug info
25024 when doing slim LTO objects.
25026 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25028 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25029 odr_types_equivalent_p): Declare.
25030 (odr_type_p): Use gcc_checking_assert.
25031 (type_in_anonymous_namespace_p) Declare.
25032 (type_with_linkage_p): Declare.
25033 * common.opt (Wlto-type-mismatch): New warning.
25034 * ipa-devirt.c (compound_type_base): New function.
25035 (odr_or_derived_type_p): New function.
25036 (odr_types_equivalent_p): New function.
25037 (add_type_duplicate): Simplify.
25038 (type_with_linkage_p): Add hack to prevent false positives on C types
25039 (type_in_anonymous_namespace_p): Likewise.
25040 * tree.c (need_assembler_name_p): Use type_with_linkage.
25041 * tree.h (type_in_anonymous_namespace_p): Remove.
25042 * doc/invoke.texi (-Wlto-type-mismatch): Document
25044 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25046 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25047 (verify_type): Verify STRING_FLAG.
25049 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25052 * tree-pretty-print.c (percent_K_format): Replace locus pointer
25053 with accessor function.
25054 * tree-diagnostic.c (diagnostic_report_current_function): Use
25055 diagnostic_location function.
25056 (maybe_unwind_expanded_macro_loc): Likewise.
25057 (virt_loc_aware_diagnostic_finalizer): Likewise.
25058 (default_tree_printer): Replace locus pointer with accessor function.
25059 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25060 (diagnostic_set_info_translated): Initialize second location.
25061 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25062 (diagnostic_show_locus): Handle two locations. Call
25063 diagnostic_print_caret_line.
25064 (diagnostic_print_caret_line): New.
25065 (default_diagnostic_starter): Use diagnostic_location function.
25066 (diagnostic_report_diagnostic): Use diagnostic_location function.
25067 (verbatim): Do not set text.locus.
25068 * diagnostic.h (struct diagnostic_info): Remove location field.
25069 (struct diagnostic_context): Make caret_chars an array of two.
25070 (diagnostic_location): New inline.
25071 (diagnostic_expand_location): Handle two locations.
25072 (diagnostic_same_line): New inline.
25073 (diagnostic_print_caret_line): Declare.
25074 (CARET_LINE_MARGIN): New constant.
25075 * pretty-print.c (pp_printf): Do not set text.locus.
25076 (pp_verbatim): Do not set text.locus.
25077 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25078 (struct text_info): Replace locus pointer with locations
25079 array. Add accessor functions.
25081 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
25082 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25085 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25086 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25087 large constants in register instead of splitting them.
25089 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
25092 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25093 replacements in memory addresses.
25094 (get_unaligned_address): Ditto.
25096 2015-05-16 James Bowman <james.bowman@ftdichip.com>
25098 * config/ft32/*: New files for FT32 port.
25099 * doc/install.texi: Add FT32 information.
25100 * doc/invoke.texi: Add FT32 information.
25101 * doc/md.texi: Add FT32 information.
25102 * doc/contrib.texi: Self added.
25104 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
25106 PR tree-optimization/64454
25107 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25108 (-1 - A -> ~A): Remove unnecessary condition.
25110 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
25112 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25113 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25114 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25116 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
25118 * ipa-chkp.h (chkp_wrap_function): New.
25119 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25120 (chkp_wrap_function_name): New.
25121 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25122 to get wrapper name.
25123 * lto-cgraph.c: Include ipa-chkp.h.
25124 (input_cgraph_1): Avoid alias chain for wrappers.
25126 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25128 PR middle-end/66134
25129 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25130 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25132 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25134 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25135 (AARCH64_FL_SLOWMUL): Delete.
25136 (AARCH64_FL_CRC): Redefine to 1<<3.
25137 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25139 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25141 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25144 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25146 * config/alpha/alpha.md (extendqidi2): Use general_operand
25147 instead of some_operand for operand[1] predicate.
25148 (extendhidi2): Ditto.
25149 (cbranchdi4): Use general_operand instead of some_operand
25150 for operand[1] and operands[2] predicates.
25151 (cstoredi4): Ditto.
25152 * config/alpha/predicates.md (some_operand): Remove unused predicate.
25153 (some_ni_operand): Ditto.
25155 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25157 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25158 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
25159 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25160 low part of the constant using alpha_emit_set_const_1.
25161 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25163 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
25165 * varasm.c (output_constant_pool_1): Pass down alignment from
25166 constant pool entry's descriptor to output_constant_pool_2.
25167 (output_object_block): Add comment prior to call to
25168 output_constant_pool_1.
25170 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
25172 PR rtl-optimization/65862
25173 * target.def (ira_change_pseudo_allocno_class): New hook.
25174 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25176 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25177 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25179 * ira-costs.c (find_costs_and_classes): Call the hook and change
25180 classes when it is necessary.
25181 * doc/tm.texi: Update.
25183 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
25185 * config/i386/i386.md (sibcall_memory): Check that register with
25186 callee address is not also used as one of the arguments, instead
25187 of checking that it is not live after the sibcall.
25188 (sibcall_pop_memory): Ditto.
25189 (sibcall_value_memory): Ditto.
25190 (sibcall_value_pop_memory): Ditto.
25192 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
25194 * generic-match-head.c (types_match): Handle non-types.
25195 * gimple-match-head.c (types_match): Likewise.
25196 * match.pd: Remove unnecessary TREE_TYPE for types_match.
25198 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
25200 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25201 (csneg3<mode>_insn): Enable expansion of pattern.
25203 2015-05-14 Nick Clifton <nickc@redhat.com>
25205 * config/rl78/rl78.c (rl78_select_section): Select the correct
25206 default section based upon the category of the decl.
25208 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25210 PR rtl-optimization/30967
25211 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25212 destination mode for the cost of scc patterns.
25214 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25216 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25217 using SWIM248 mode iterator.
25218 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25219 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
25220 for operand[2] constraint.
25221 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25223 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25225 PR middle-end/66133
25226 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25227 make sure it is never noreturn, even when the task body does not
25229 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25230 right before GIMPLE_OMP_RETURN.
25231 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25232 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
25233 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25235 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25237 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25238 * tree-ssa-math-opts.c: Include params.h
25239 (pow_synth_sqrt_info): New struct.
25240 (representable_as_half_series_p): New function.
25241 (get_fn_chain): Likewise.
25242 (print_nested_fn): Likewise.
25243 (dump_fractional_sqrt_sequence): Likewise.
25244 (dump_integer_part): Likewise.
25245 (expand_pow_as_sqrts): Likewise.
25246 (gimple_expand_builtin_pow): Use above to attempt to expand
25247 pow as series of square roots. Removed now unused variables.
25249 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25251 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25252 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25253 Remove *p0 and *p1 arguments. Rewrite function.
25254 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25255 (alpha_split_const_mov): Update calls to alpha_extract_integer and
25256 alpha_emit_set_long_const.
25257 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25258 (alpha_output_mi_thunk_osf): Ditto.
25259 * config/alpha/alpha.md (movti): Do not check operands[1]
25262 2015-05-13 Richard Biener <rguenther@suse.de>
25264 PR tree-optimization/66129
25265 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25267 (vect_schedule_slp_instance): Fix typo.
25269 2015-05-13 David Malcolm <dmalcolm@redhat.com>
25271 * common.opt (fdump-internal-locations): New option.
25272 * input.c: Include diagnostic-core.h.
25273 (get_end_location): New function.
25274 (write_digit): New function.
25275 (write_digit_row): New function.
25276 (dump_location_range): New function.
25277 (dump_labelled_location_range): New function.
25278 (dump_location_info): New function.
25279 * input.h (dump_location_info): New prototype.
25280 * toplev.c (compile_file): Handle flag_dump_locations.
25282 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
25284 * gimple-expr.h (is_gimple_constant): Reorder.
25285 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25287 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25289 * combine.c (simplify_set): When generating a CC set, if the
25290 source already is in the correct mode, do not wrap it in a
25291 compare. Simplify the rest of that code.
25293 2015-05-13 Richard Biener <rguenther@suse.de>
25295 PR tree-optimization/66123
25296 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25299 2015-05-13 Richard Biener <rguenther@suse.de>
25301 PR middle-end/66110
25302 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25304 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25306 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25308 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25309 * aclocal.m4: Regenerated with automake-1.11.6.
25311 2015-05-13 Tom de Vries <tom@codesourcery.com>
25313 PR tree-optimization/66010
25314 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25315 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25316 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
25317 and rval based on do_deref.
25319 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25322 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25323 link time constants into adress expressions and therefore set
25326 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25329 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25330 Use SWI248 iterator instead of SWI.
25331 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
25332 Use eq_attr "alternative" "0" instead of match_test in
25333 length_immediate attribute computation.
25334 (*mulvhi4, *mulvhi4_1): New define_insns.
25337 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25338 SIGNED to get precision of non-negative value.
25340 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25343 * function.c (diddle_return_value_1): Process bounds first.
25344 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25347 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25349 PR rtl-optimization/64616
25350 * loop-invariant.c (can_move_invariant_reg): New.
25351 (move_invariant_reg): Call above new function to decide whether
25352 instruction can just be moved, skipping creation of temporary
25355 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25357 PR target/pr66047.c
25358 * i386.c (ix86_function_sseregparm): Only return -1 if local function
25359 with implied regparm is called from -mno-sse function.
25360 (init_cumulative_args): Output error if ix86_function_sseregparm
25361 return -1 and SSE register would be needed.
25362 (function_arg_advance_32): Likewise.
25363 (function_arg_32): Likewise.
25364 * i386.h (ix86_args): Add decl field.
25366 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25369 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25370 inlines across optimization boundary.
25372 2015-05-12 Jason Merrill <jason@redhat.com>
25374 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25375 string literal and macro name.
25377 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
25379 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25380 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25381 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25383 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25385 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25386 (-Wmisleading-indentation): New option.
25387 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25389 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
25391 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25392 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25393 (alpha_extract_integer): Ditto.
25394 (alpha_legitimate_constant_p): Ditto.
25395 (alpha_split_tmode_pair): Ditto.
25396 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25397 (alpha_expand_mov): Ditto.
25398 (print_operand): Remove handling of 'H' modifier.
25399 <case 'm'>: Remove CONST_DOUBLE handling.
25400 (summarize_insn): Handle CONST_WIDE_INT.
25401 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25403 (movti): Handle CONST_WIDE_INT.
25404 * config/alpha/constraints.md ('H'): Remove constraint definition.
25405 ('G'): Do not match MODE_FLOAT class.
25406 * config/alpha/predicates.md (const0_operand): Also match
25408 (non_add_const_operand): Ditto.
25409 (non_zero_const_operand): Ditto.
25410 (some_operand): Ditto.
25411 (input_operand): Ditto. Handle CONST_WIDE_INT.
25412 (and_operand): Do not match const_double.
25413 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25415 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
25418 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25419 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25420 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25421 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25422 is_mm_seq_cst, is_mm_sync): New accessor functions.
25423 * builtins.c (expand_builtin_sync_operation,
25424 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25425 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25426 (get_memmodel, expand_builtin_atomic_compare_exchange,
25427 expand_builtin_atomic_load, expand_builtin_atomic_store,
25428 expand_builtin_atomic_clear): Use new accessor routines.
25429 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
25430 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
25431 (maybe_emit_sync_lock_test_and_set): Use new accessors and
25432 MEMMODEL_SYNC_ACQUIRE.
25433 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
25434 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
25435 expand_atomic_store): Use new accessors.
25436 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
25437 * tsan.c (instrument_builtin_call): Update check for memory model beyond
25438 final enum to use MEMMODEL_LAST.
25439 * c-family/c-common.c: Use new accessor for memmodel_base.
25440 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
25442 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
25443 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
25444 mem_thread_fence, *dmb): Likewise.
25445 * config/alpha/alpha.c (alpha_split_compare_and_swap,
25446 alpha_split_compare_and_swap_12): Likewise.
25447 * config/arm/arm.c (arm_expand_compare_and_swap,
25448 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
25449 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
25450 atomic_loaddi): Likewise.
25451 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
25453 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
25454 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
25456 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
25457 atomic_store<mode>, atomic_compare_and_swap<mode>,
25458 atomic_exchange<mode>): Use new accessors.
25459 * config/mips/mips.c (mips_process_sync_loop): Likewise.
25460 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
25461 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
25462 rs6000_post_atomic_barrier): Add new cases.
25463 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
25464 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
25465 (atomic_load<mode>): Add new cases and use new accessors.
25466 (store_quadpti): Add new cases.
25467 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
25469 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
25470 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
25473 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25475 * ipa-devirt.c (type_with_linkage_p): New function.
25476 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
25478 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
25479 (can_be_name_hashed_p): Simplify.
25480 (hash_odr_name): Check that type has linkage before checking if it is
25482 (types_same_for_odr): Likewise.
25483 (odr_name_hasher::equal): Likewise.
25484 (odr_subtypes_equivalent_p): Likewise.
25485 (warn_types_mismatch): Likewise.
25486 (get_odr_type): Likewise.
25487 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
25488 * ipa-utils.h (odr_type_p): Move offline.
25489 * tree.c (need_assembler_name_p): Fix handling of types
25491 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
25493 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25495 * timevar.c (timevar_enable): Delete in favor of...
25496 (g_timer): New global.
25497 (struct timevar_def): Move to timevar.h inside class timer.
25498 (struct timevar_stack_def): Likewise.
25499 (timevars): Delete global in favor of field "m_timevars" within
25500 class timer in timevar.h
25501 (stack): Likewise, in favor of field "m_stack".
25502 (unused_stack_instances): Likewise, in favor of field
25503 "m_unused_stack_instances".
25504 (start_time): Likewise, in favor of field "m_start_time".
25505 (get_time): Eliminate check for timevar_enable.
25506 (timer::timer): New function, built from part of timevar_init.
25507 (timevar_init): Rewrite idempotency test from using
25508 "timevar_enable" bool to using dynamic allocation of "g_timer".
25509 Move rest of implementation into timer's constructor.
25510 (timevar_push_1): Rename to...
25511 (timer::push): ...this, adding "m_" prefixes to variables that
25512 are now fields of timer.
25513 (timevar_pop_1): Likewise, rename to...
25514 (timer::pop): ...this, and add "m_" prefixes.
25515 (timevar_start): Replace test for "timevar_enable" with one for
25516 "g_timer", and move bulk of implementation to...
25517 (timer::start): ...here, adding "m_" prefixes.
25518 (timevar_stop): Likewise, from here...
25519 (timer::stop): ...to here.
25520 (timevar_cond_start): Likewise, from here...
25521 (timer::cond_start): ...to here.
25522 (timevar_cond_stop): Likewise, from here...
25523 (timer::cond_stop): ...to here.
25524 (validate_phases): Rename to...
25525 (timer::validate_phases): ...this, and add "m_" prefixes. Make
25526 locals "total" and "tv" const.
25527 (timevar_print): Rename to...
25528 (timer::print): ...this, and add "m_" prefixes. Make locals
25529 "total" and "tv" const. Eliminate test for timevar_enable.
25530 * timevar.h (timevar_enable): Eliminate.
25531 (g_timer): New declaration.
25532 (timevar_push_1): Eliminate.
25533 (timevar_pop_1): Eliminate.
25534 (timevar_print): Eliminate.
25535 (class timer): New class.
25536 (timevar_push): Rewrite to use g_timer.
25537 (timevar_pop): Likewise.
25538 * toplev.c (toplev::~toplev): Likewise.
25540 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
25542 * arm-protos.h (arm_sched_autopref): Delete.
25543 (tune_params): Re-organize, use enums for flag values.
25544 (FUSE_OPS): New macro.
25545 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
25546 (ARM_PREFETCH_BENEFICIAL): Likewise.
25547 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
25548 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
25549 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
25550 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
25551 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
25552 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
25553 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
25554 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
25556 (arm_option_override, thumb2_reorg, arm_print_tune_info)
25557 (aarch_macro_fusion_pair_p): Update uses of current_tune.
25558 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
25560 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
25562 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
25565 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
25566 Sandra Loosemore <sandra@codesourcery.com>
25568 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
25570 (REG_CLASS_NAMES): Add "IJMP_REGS".
25571 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
25572 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
25573 use new "c" register constraint.
25574 * config/nios2/constraint.md (c): New register constraint
25575 corresponding to IJMP_REGS.
25577 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25579 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
25580 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
25581 define_splits): Delete, revamp, transmogrify into ...
25582 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
25583 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
25584 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
25587 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25589 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
25590 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
25592 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25594 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
25595 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
25596 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
25597 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
25598 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
25599 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
25600 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
25601 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
25602 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
25603 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
25604 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
25605 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
25606 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
25607 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
25608 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
25609 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
25610 and 30 corresponding splitters): Delete.
25612 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25614 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
25617 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25619 * combine.c (recog_for_combine_1): New function, factored out
25620 from recog_for_combine.
25621 (change_zero_ext): New function.
25622 (recog_for_combine): If recog fails, try again with the pattern
25623 modified by change_zero_ext; if that still fails, restore the
25626 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25628 * combine.c (get_undo_marker): New function.
25629 (undo_to_marker): New function, largely factored out from ...
25630 (undo_all): ... this. Adjust.
25632 2015-05-12 Richard Biener <rguenther@suse.de>
25634 PR tree-optimization/66101
25635 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
25636 fixup if we turn a loop exit edge to a fallthru edge.
25638 2015-05-12 Richard Biener <rguenther@suse.de>
25640 PR tree-optimization/37021
25641 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
25642 (SLP_TREE_TWO_OPERATORS): New define.
25643 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
25644 SLP_TREE_TWO_OPERATORS.
25645 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
25647 (vect_build_slp_tree): Adjust.
25648 (vect_analyze_slp_cost_1): Likewise.
25649 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
25650 emitting two vector stmts and mixing the results.
25652 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
25654 * call.c (print_z_candidates): Remove dead code.
25656 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25658 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
25659 and zEC12_simple_fp.
25660 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
25663 2015-05-12 Tom de Vries <tom@codesourcery.com>
25665 PR tree-optimization/66010
25666 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
25668 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
25669 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
25670 va_lists are passed, and remove corresponding handling.
25671 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
25672 do_deref argument to ifn_va_arg.
25673 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
25676 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25679 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
25680 REG before taking its REGNO.
25682 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25684 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
25685 rsp->sign_bit_copies and rsp->nonzero_bits into ...
25686 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
25687 present to get more accurate information about the number of sign bit
25688 copies and non zero bits.
25690 2015-05-12 Richard Biener <rguenther@suse.de>
25692 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
25693 do not allow unrolling.
25695 2015-05-11 Richard Henderson <rth@redhat.com>
25697 * config/i386/i386-modes.def (CCP): New.
25698 * config/i386/i386.c (put_condition_code): Handle it.
25699 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
25701 2015-05-11 Richard Henderson <rth@redhat.com>
25703 * target.def (md_asm_clobbers): Replace with...
25704 (md_asm_adjust): this.
25705 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
25706 (TARGET_MD_ASM_ADJUST): New.
25707 * tm.texi: Rebuild.
25708 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
25709 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
25710 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
25712 * cfgexpand.c (check_operand_nalternatives): Accept vector of
25713 constraints instead of lists of outputs and inputs.
25714 (expand_asm_stmt): Save and restore input_location around the
25715 body of the function. Move asm data into vectors instead of
25716 building tree lists. Generate cleanup sequences as needed,
25717 rather than waiting til the end. Use new md_asm_adjust hook.
25719 * config/vxworks.c: Include vec.h before target.h.
25720 * gimple.c: Likewise.
25721 * incpath.c: Likewise.
25722 * mode-switching.c: Likewise.
25724 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
25725 (cris_md_asm_adjust): this.
25726 (TARGET_MD_ASM_CLOBBERS): Remove.
25727 (TARGET_MD_ASM_ADJUST): New.
25728 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
25729 (ix86_md_asm_adjust): this.
25730 (TARGET_MD_ASM_CLOBBERS): Remove.
25731 (TARGET_MD_ASM_ADJUST): New.
25732 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
25733 (mn10300_md_asm_adjust): this.
25734 (TARGET_MD_ASM_CLOBBERS): Remove.
25735 (TARGET_MD_ASM_ADJUST): New.
25736 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
25737 (rs6000_md_asm_adjust): this.
25738 (TARGET_MD_ASM_CLOBBERS): Remove.
25739 (TARGET_MD_ASM_ADJUST): New.
25740 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
25741 (visium_md_asm_adjust): this.
25742 (TARGET_MD_ASM_CLOBBERS): Remove.
25743 (TARGET_MD_ASM_ADJUST): New.
25745 2015-05-11 Richard Henderson <rth@redhat.com>
25747 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
25748 if noutputs is zero.
25749 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
25751 * cfgexpand.c (expand_asm_operands): Merge into...
25752 (expand_asm_stmt): ... here.
25754 * cfgexpand.c (expand_asm_operands): Don't call
25755 resolve_asm_operand_names.
25756 * stmt.c (resolve_asm_operand_names): Clarify block comment.
25758 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
25760 * dwarf2out.c (gen_member_die): Sanity check that we access
25761 TYPE_MAIN_VARIANT for TYPE_METHODS.
25762 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
25763 checking TYPE_METHODS.
25764 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
25766 (build_distinct_type_copy): Clear TYPE_METHODS.
25767 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
25768 (verify_type): Allow TYPE_METHODS to be error_mark_node.
25769 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
25771 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
25773 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
25774 (emit_pattern_before_setloc): Likewise.
25776 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
25778 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
25779 for define_peephole2s.
25780 (get_peephole2_pattern): New function.
25781 (main): Use it. Call validate_pattern.
25783 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25785 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
25786 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
25787 (Last callee saved reg is different for AVR_TINY architecture)
25789 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
25791 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
25792 when looking for memory references.
25794 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
25797 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
25798 via function pointers.
25800 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
25802 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
25803 indirect call by forcing address into a pseudo with -fno-plt.
25804 * common.opt (flag_plt): New option.
25805 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
25806 ([-fno-plt]): Document.
25808 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
25811 * config/rs6000/option-defaults.h: Add space between string literal
25814 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
25816 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
25817 accross ARM targets.
25819 2015-05-11 Christian Bruel <christian.bruel@st.com>
25821 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
25822 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
25824 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
25826 PR rtl-optimization/66076
25827 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
25828 Don't grow the heap array if it is already big enough from a
25829 previous iteration.
25831 2015-05-11 Christian Bruel <christian.bruel@st.com>
25833 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
25834 (is_called_in_ARM_mode): Remove.
25835 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
25836 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
25837 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
25838 arm_declare_function_name.
25840 2015-05-11 Christian Bruel <christian.bruel@st.com>
25842 * config/arm/arm.c (arm_option_override): Reoganized and split into :
25843 (arm_option_params_internal); New function.
25844 (arm_option_check_internal): New function.
25845 (arm_option_override_internal): New function.
25846 (thumb_code, thumb1_code): Remove.
25847 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
25848 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
25849 (thumb_code, thumb1_code): Remove.
25850 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
25852 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
25854 * config/alpha/alpha.c (alpha_emit_set_const_1)
25855 (alpha_emit_set_long_const, alpha_extract_integer)
25856 (alpha_legitimate_constant_p, alpha_split_const_mov)
25857 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
25858 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25859 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
25861 * config/alpha/predicates.md (mode_mask_operand): Do not match
25863 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25864 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
25865 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
25866 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25867 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
25869 2015-05-11 Jakub Jelinek <jakub@redhat.com>
25872 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
25873 default_binds_local_p_2.
25874 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
25875 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
25877 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25879 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
25881 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25883 Patch by Richard Biener
25884 * coverage.c (coverage_obj_init): Delay building of type variant
25885 until the type is finished.
25887 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25889 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
25890 mismatch between C and C++ type; compoare correctly ARG_TYPES
25891 for non-prototypes and output correctly parameter index for METHOD_TYPE.
25892 (odr_types_equivalent_p): Fix wording of warning about attributes;
25893 it is OK to match prototype and non-prototype.
25895 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25897 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
25898 TYPE_ARG_TYPES list.
25899 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
25900 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
25902 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25904 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
25905 * tree.h (is_lang_specific): Constify.
25907 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
25909 PR tree-optimization/64454
25910 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
25913 2015-05-08 Jason Merrill <jason@redhat.com>
25915 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
25916 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
25917 config/darwin.h, config/darwin9.h, config/elfos.h,
25918 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
25919 config/microblaze/microblaze.h, config/mips/mips.h,
25920 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
25921 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
25922 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
25923 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
25924 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
25925 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
25926 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
25927 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
25928 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
25929 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
25930 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
25931 between string literal and macro name.
25933 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25935 * jump.c: Change argument types to rtx_insn *.
25938 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25940 * lra-constraints.c: Change argument type to rtx_insn *.
25942 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25944 * df-problems.c: Change argument type to rtx_insn *.
25946 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25948 * combine.c: Change argument type to rtx_insn *.
25950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25953 * rtlanal.c: Change argument type to rtx_insn *.
25955 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25957 * sched-deps.c: Change argument types to rtx_insn *.
25958 * sched-int.h: Adjust.
25960 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25962 * dwarf2cfi.c: Change argument type to rtx_insn *.
25964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25966 * ira.c (decrease_live_ranges_number): Changetype of local
25967 variable to rtx_insn *.
25968 * recog.c: Change argument types to rtx_insn *.
25971 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25973 * reorg.c: Change argument types to rtx_insn *.
25975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25977 * ira-color.c: Change argument types to rtx_insn *.
25978 * lra-eliminations.c: Likewise.
25981 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25983 * gcse.c: Change argument types to rtx_insn *.
25985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25987 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
25989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25991 * emit-rtl.c (emit_debug_insn_before): Change argument type to
25995 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25997 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26000 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26002 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26007 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26010 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26012 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26015 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26017 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26021 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26023 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26027 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26029 * except.c (can_nonlocal_goto): Change type of argument to
26033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26035 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26038 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26040 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26041 * cfgrtl.c (can_delete_label_p): Adjust.
26044 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26046 * reorg.c (stop_search_p): Change argument to rtx_insn *.
26048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26050 * except.c (make_reg_eh_region_note): Change argument to
26052 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26053 * except.h: Adjust.
26055 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26057 * mode-switching.c (commit_mode_sets): Change type of local
26058 variable from rtx to rtx_insn *.
26060 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
26062 * doc/install.texi (--enable-languages): Add missing jit and lto info.
26063 Add ^ to grep command.
26064 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26065 arg to last gimple_simplify declaration. Add missing gimple_build
26066 declaration for built-in function case with four tree args.
26068 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26069 Szabolcs Nagy <szabolcs.nagy@arm.com>
26071 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26072 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26073 (GNU_USER_DYNAMIC_LINKERN32): Update.
26075 2015-05-08 Richard Biener <rguenther@suse.de>
26077 PR tree-optimization/66036
26078 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26079 Handle strided group loads.
26080 (vect_verify_datarefs_alignment): Likewise.
26081 (vect_enhance_data_refs_alignment): Likewise.
26082 (vect_analyze_group_access): Likewise.
26083 (vect_analyze_data_ref_access): Likewise.
26084 (vect_analyze_data_ref_accesses): Likewise.
26085 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26086 (vectorizable_load): Likewise.
26088 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
26090 * config/rs6000/rs6000.md: Require operand inequality in one
26093 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
26094 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26096 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26098 * config/rx/rx.md (movdi, movdf): Likewise.
26099 Likewise for define_peephole2s.
26101 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26103 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26104 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26105 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26106 vtst_u64): Rewrite using gcc vector extensions.
26108 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26110 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26111 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26113 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26115 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26117 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
26119 * config/glibc-stdint.h (OPTION_MUSL): Define.
26120 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26121 Change the definition based on OPTION_MUSL for 64 bit targets.
26122 * config/linux.h (OPTION_MUSL): Redefine.
26123 * config/alpha/linux.h (OPTION_MUSL): Redefine.
26124 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26125 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26127 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26128 Szabolcs Nagy <szabolcs.nagy@arm.com>
26130 * config.gcc (LIBC_MUSL): New tm_defines macro.
26131 * config/linux.h (OPTION_MUSL): Define.
26132 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26133 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26134 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26135 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26136 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26137 * config/linux.opt (mmusl): New option.
26138 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26139 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26140 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26141 * configure: Regenerate.
26143 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
26144 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26147 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26148 * config/i386/knetbsd-gnu64.h: New file.
26150 2015-05-08 Marek Polacek <polacek@redhat.com>
26153 * doc/invoke.texi: Document -Woverride-init-side-effects.
26155 2015-05-07 Marek Polacek <polacek@redhat.com>
26158 * doc/invoke.texi: Document -Wshift-negative-value.
26160 2015-05-06 Aditya Kumar <hiraditya@msn.com>
26162 * gcov-tool.c (do_merge): Refactore to remove int ret.
26163 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26164 !type == FUNC to type != FUNC.
26165 * reload.h (struct target_reload): Changee to type of
26166 x_spill_indirect_levels from bool to unsigned char.
26168 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
26170 * rtl.h (always_void_p): New function.
26171 * gengenrtl.c (always_void_p): Likewise.
26172 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26173 with code foo are always VOIDmode.
26174 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26175 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26176 compare-elim.c, config/aarch64/aarch64.c,
26177 config/aarch64/aarch64.md, config/alpha/alpha.c,
26178 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26179 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26180 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26181 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26182 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26183 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26184 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26185 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26186 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26187 config/ia64/vect.md, config/iq2000/iq2000.c,
26188 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26189 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26190 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26191 config/mep/mep.c, config/microblaze/microblaze.c,
26192 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26193 config/mn10300/mn10300.c, config/msp430/msp430.c,
26194 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26195 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26196 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26197 config/rs6000/altivec.md, config/rs6000/rs6000.c,
26198 config/rs6000/rs6000.md, config/rs6000/vector.md,
26199 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26200 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26201 config/sh/sh.md, config/sh/sh_treg_combine.cc,
26202 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26203 config/spu/spu.md, config/stormy16/stormy16.c,
26204 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26205 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26206 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26207 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26208 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26209 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26210 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26211 var-tracking.c: Update calls accordingly.
26213 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26216 PR middle-end/54303
26217 * varasm.c (function_mergeable_rodata_prefix): New function.
26218 (mergeable_string_section): Use it.
26219 (mergeable_constant_section): Use it.
26221 2015-05-07 Jeff Law <law@redhat.com>
26224 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26225 simplifier to narrow arithmetic.
26226 * generic-match-head.c: (types_match, single_use): New functions.
26227 * gimple-match-head.c: (types_match, single_use): New functions.
26229 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26231 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26234 2015-05-07 Richard Biener <rguenther@suse.de>
26236 PR tree-optimization/66002
26237 * passes.def: Schedule another pass_merge_phi after ifcombine, right
26240 2015-05-07 Marek Polacek <polacek@redhat.com>
26241 Martin Uecker <uecker@eecs.berkeley.edu>
26243 * doc/invoke.texi: Document -fsanitize=bounds-strict.
26244 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26245 into SANITIZE_NONDEFAULT.
26246 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26248 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
26251 * config/alpha/alpha.c (alpha_override_options_after_change): New.
26252 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26253 (alpha_override_options): Move align_loops, align_jumps and
26254 align_functions handling into alpha_override_options_after_change.
26256 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
26257 Chris Jones <chrisj@nvidia.com>
26258 Joshua Conner <jconner@nvidia.com>
26260 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26261 linking of crtfastmath.o.
26262 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26264 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26266 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26267 (cstore<mode>4_unsigned_imm): New expander.
26268 (cstore<mode>4): Remove empty constraint strings. Use the new
26271 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
26274 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26277 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
26279 * config/aarch64/geniterators.sh: Use standard BRE in sed.
26281 2015-05-06 Alan Modra <amodra@gmail.com>
26284 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26285 (UNSPEC_NOP): Define.
26286 (reload_vsx_from_gpr<mode>): Add missing DONE.
26287 (reload_gpr_from_vsx<mode>): Likewise.
26288 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26289 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26291 2015-05-06 Christian Bruel <christian.bruel@st.com>
26294 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26295 align_jumps, align_functions into aarch64_override_options_after_change.
26297 2015-05-06 Richard Biener <rguenther@suse.de>
26299 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26300 vect_transform_slp_perm_load to check if we support a permutation
26301 for basic-block vectorization.
26303 2015-05-06 Nick Clifton <nickc@redhat.com>
26305 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26306 used, even if it is not being used as a frame pointer.
26308 2015-05-05 Jason Merrill <jason@redhat.com>
26310 * dwarf2out.c (gen_member_die): Don't emit anything for an
26311 anonymous class constructor.
26313 2015-05-05 David Malcolm <dmalcolm@redhat.com>
26315 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26316 that it reflects the block structure.
26317 (afdo_propagate_edge): Likewise.
26318 (afdo_calculate_branch_prob): Likewise.
26319 (afdo_annotate_cfg): Likewise.
26320 * cfgcleanup.c (equal_different_set_p): Likewise.
26321 (try_crossjump_to_edge): Likewise.
26322 * cgraph.c (cgraph_node::verify_node): Likewise.
26323 * cgraphunit.c (expand_all_functions): Likewise.
26324 * config/i386/i386.c (ix86_expand_copysign): Likewise.
26325 (exact_dependency_1): Likewise.
26326 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26327 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26328 * gensupport.c (process_define_subst): Likewise.
26329 * lto-wrapper.c (merge_and_complain): Likewise.
26330 * tree-if-conv.c (if_convertible_bb_p): Likewise.
26331 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26332 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26333 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26334 * tree-vect-loop.c (vectorizable_reduction): Likewise.
26335 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26336 * tree-vect-stmts.c (vectorizable_shift): Likewise.
26337 * tree-vrp.c (vrp_finalize): Likewise.
26338 * tree.c (variably_modified_type_p): Likewise.
26340 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
26342 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26343 on darwin12 and later.
26344 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26345 file to pass -rdynamic on darwin12 and later.
26346 * config/darwin.opt (rdynamic): Add.
26348 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26350 * doc/extend.texi (C Extensions): Update menu for moved Variable
26351 Attributes and Type Attributes sections.
26353 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26356 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26357 if rep_8byte stringop strategy was specified for 32-bit target.
26359 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
26362 * config/i386/i386.md (vector convert to float spltiter): Check for
26363 xmm16+, when splitting scalar float conversion.
26364 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26366 2015-05-05 Nick Clifton <nickc@redhat.com>
26368 * config/msp430/msp430-opts.h (enum msp430_regions): New.
26369 * config/msp430/msp430.c (msp430_override_options): Complain if
26370 -mcode-region or -mdata-region is used on a non MSP430X.
26371 (msp430_section_attr): New function. Checks lower, upper and
26373 (msp430_attribute_table): Add lower, upper and either.
26374 (gen_prefix): New function. Generates a prefix for a section
26376 (msp430_select_section): New function - handles the choice of
26377 section for an object. Takes into account memory region
26378 attributes and options.
26379 (msp430_function_section): Use gen_prefix.
26380 (TARGET_SECTION_TYPE_FLAGS): Define.
26381 (msp430_section_type_flags): New function.
26382 (TARGET_ASM_UNIQUE_SECTION): Define.
26383 (msp430_unique_section): New function.
26384 (msp430_output_aligned_decl_common): New function.
26385 (msp430_do_not_relax_short_jumps): New function.
26386 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26388 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26389 * config/msp430/msp430-protos.h
26390 (msp430_do_not_relax_short_jumps): New prototype.
26391 (msp430_output_aligned_decl_common): New prototype.
26392 * config/msp430/msp430.md (length): New attribute.
26393 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26394 then use a long code sequence for short jumps.
26395 * config/msp430/msp430.opt (mcode-region): New.
26396 (mdata-region): New.
26397 * doc/invoke.texi: Document new options.
26398 * doc/extend.texi: Document new attributes.
26400 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26402 * config/aarch64-protos.h (struct cpu_branch_cost): New.
26403 (tune_params): Add field branch_costs.
26404 (aarch64_branch_cost): Declare.
26405 * config/aarch64.c (generic_branch_cost): New.
26406 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26407 (cortexa53_tunings): Likewise.
26408 (cortexa57_tunings): Likewise.
26409 (thunderx_tunings): Likewise.
26410 (xgene1_tunings): Likewise.
26411 (aarch64_branch_cost): Define.
26412 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26414 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26416 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26417 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26418 * config/i386/i386.md: Ditto.
26419 * config/i386/winnt.c: Ditto.
26421 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26423 * doc/extend.texi (__atomic Builtins): Move implementation details
26424 to the end of the description, rewrite opening paragraphs, state
26425 difference with __sync builtins, state C11/C++11 assumptions,
26426 weaken itemized descriptions, add explanation of memory model
26427 behaviour, expand description of compare-exchange, simplify text.
26429 2015-05-05 Renlin Li <renlin.li@arm.com>
26431 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
26433 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
26435 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
26436 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26437 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
26438 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26439 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
26440 * configure: Regenerate.
26441 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
26442 * doc/install.texi (aarch64*-*-*): Document new
26443 --enable-fix-cortex-a53-843419 option.
26444 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
26445 and -mno-fix-cortex-a53-843419 options.
26447 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26450 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
26452 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
26454 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
26455 fix overactive TYPE_MIN_VALUE check and add FIXME for type
26456 compatibility problems.
26458 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26460 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
26462 (cbranchsi4_reg): New.
26463 * config/microblaze/microblaze.c
26464 (microblaze_expand_conditional_branch_reg): New.
26465 * config/microblaze/microblaze-protos.h
26466 (microblaze_expand_conditional_branch_reg): New prototype.
26468 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26470 * config/microblaze/microblaze.md (peephole2): New.
26472 2015-05-04 Jeff Law <law@redhat.com>
26475 2015-05-04 Jeff Law <law@redhat.com>
26477 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26478 simplifier to narrow arithmetic.
26479 * generic-match-head.c: (types_match, single_use): New functions.
26480 * gimple-match-head.c: (types_match, single_use): New functions.
26482 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
26485 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
26486 (split_branches): Likewise.
26488 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
26490 * common.opt (fdelete-null-pointer-checks): Init to -1.
26491 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
26492 override flag_delete_null_pointer_checks default.
26493 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
26494 behavior re address zero. Better document target-specific behavior.
26495 (-fisolate-errneous-paths-dereference): Mention relationship to
26496 -fdelete-null-pointer-checks.
26498 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26500 PR tree-optimization/65984
26501 * ubsan.c: Include tree-cfg.h.
26502 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
26503 stmt_could_throw_p test, rename can_throw variable to ends_bb.
26505 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26507 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
26508 to CONST_DOUBLE_P predicate.
26509 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
26510 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
26511 allow only operands that satisfy standard_sse_constant_p predicate.
26512 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
26513 to CONST_DOUBLE_P predicate.
26515 2015-05-04 Jeff Law <law@redhat.com>
26517 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26518 simplifier to narrow arithmetic.
26519 * generic-match-head.c: (types_match, single_use): New functions.
26520 * gimple-match-head.c: (types_match, single_use): New functions.
26522 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
26524 * config/arm/arm.c: Restore bootstrap.
26526 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26528 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
26529 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
26530 as CONST_WIDE_INT, not CONST_DOUBLE.
26531 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
26532 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
26533 (ix86_find_base_term): Do not check for CONST_DOUBLE.
26534 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
26535 (ix86_build_signbit_mask): Rewrite using wide ints.
26536 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
26537 (ix86_rtx_costs): Handle CONST_WIDE_INT.
26538 (find_constant): Ditto.
26539 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
26540 using gen_int_mode.
26541 * config/i386/predicates.md (x86_64_immediate_operand)
26542 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26543 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
26544 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26545 (const0_operand): Also match const_wide_int.
26546 (constm1_operand): Ditto.
26547 (const1_operand): Ditto.
26549 2015-05-04 Richard Biener <rguenther@suse.de>
26551 PR tree-optimization/65965
26552 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
26553 store groups at gaps.
26555 2015-05-04 Richard Biener <rguenther@suse.de>
26557 PR tree-optimization/65935
26558 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
26559 then make sure to apply that swapping to the IL.
26561 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26563 * Makefile.in (PATCHLEVEL_c): New variable.
26564 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
26565 expand the same way as if DEVPHASE_c was non-empty.
26567 2015-05-04 Kai Tietz <ktietz@redhat.com>
26570 * lto-wrapper.c (run_gcc): Open filename
26573 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
26575 * doc/extend.texi (Variable Attributes, Type Attributes): Move
26576 sections up in file, to immediately after the Function Attributes
26579 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
26581 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
26583 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26585 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
26586 (insert_partition_copy_on_edge): Adjust.
26587 (insert_rtx_to_part_on_edge): Likewise.
26588 (insert_part_to_rtx_on_edge): Likewise.
26590 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26592 * function.c (set_return_jump_label): Change type of argument to
26594 * function.h (set_return_jump_label): Adjust.
26596 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26598 * reload.h (struct reg_equivs_t): Change type of init to
26600 * ira.c (fix_reg_equiv_init): Adjust.
26601 * reload1.c (eliminate_regs_1): Likewise.
26602 (init_eliminable_invariants): Likewise.
26604 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26606 * cselib.c (fp_setter_insn): Take a rtx_insn *.
26607 * cselib.h (fp_setter_insn): Adjust.
26609 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26611 * recog.c (struct validate_replace_src_data): Change type of
26612 insn field to rtx_insn *.
26613 (validate_replace_src_group): Change type of argument to rtx_insn *.
26614 * recog.h (validate_replace_src_group): Adjust.
26616 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26618 * haifa-sched.c: Change the type of some variables to rtx_insn *.
26619 * sched-deps.c: Likewise.
26620 * sched-int.h: Likewise.
26621 * sched-rgn.c: Likewise.
26622 * sel-sched.c: Likewise.
26624 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26627 * config/i386/i386.c: Change the type of some arguments to
26629 * config/arm/arm.c: Likewise.
26631 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26633 * lra-constraints.c: Change type of some arguments to rtx_insn *.
26635 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26637 * regcprop.c (kill_autoinc_value): Change type of argument to
26640 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26642 * genrecog.c (print_subroutine): Adjust.
26643 * recog.c (get_bool_attr_mask_uncached): Likewise.
26644 * recog.h (struct recog_data_d): Change the type of insn to
26647 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26649 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
26651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26653 * df-problems.c (df_set_note): Change type of argument to
26656 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26658 * builtins.c (expand_builtin_trap): Change type of local
26659 variable to rtx_insn *.
26660 (add_sched_insns_for_speculation): Likewise.
26661 (ix86_emit_save_regs): Likewise.
26662 (get_scratch_register_on_entry): Likewise.
26663 (ix86_emit_restore_reg_using_pop): Likewise.
26664 (ix86_emit_leave): Likewise.
26665 (ix86_emit_restore_regs_using_mov): Likewise.
26666 (ix86_expand_epilogue): Likewise.
26668 (rl78_alloc_physical_registers_umul): Likewise.
26669 * cselib.c (discard_useless_locs): Likewise.
26670 (cselib_invalidate_regno): Likewise.
26671 (cselib_invalidate_mem): Likewise.
26672 * function.c (expand_function_start): Likewise.
26673 (emit_use_return_register_into_block): Likewise.
26674 * gcse.c: Likewise.
26675 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
26676 * ifcvt.c (noce_get_alt_condition): Likewise.
26677 * loop-doloop.c (doloop_condition_get): Likewise.
26678 * lra-constraints.c (inherit_in_ebb): Likewise.
26679 * modulo-sched.c (sms_schedule_by_order): Likewise.
26680 * recog.c (next_insn_tests_no_inequality): Likewise.
26681 * reorg.c (emit_delay_sequence): Likewise.
26682 (update_reg_dead_notes): Likewise.
26683 (fix_reg_dead_note): Likewise.
26684 (fill_slots_from_thread): Likewise.
26685 (delete_computation): Likewise.
26687 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
26689 * doc/extend.texi (Variable Attributes): Add menu and proper
26690 @nodes to subsections. Move Microsoft Windows attributes to
26691 their own subsection.
26692 (Type Attributes): Reorganize introduction to remove duplicate
26693 list of attributes. Add menu and proper @nodes to subsections.
26694 Alphabetize the main table of common attributes.
26696 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
26698 * match.pd: New simplification patterns.
26699 (x + (x & 1)) -> ((x + 1) & ~1)
26700 (x & ~(x & y)) -> ((x & ~y))
26701 (x | ~(x | y)) -> ((x | ~y))
26703 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26705 * target.def (attribute_table): Mention that struct attribute_spec
26706 is defined in tree-core.h rather than tree.h
26707 * doc/tm.texi: Regenerate.
26709 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
26711 * genrecog.c (test): Rename to rtx_test. Update rest of file
26714 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
26716 PR translation/65959
26717 * params.h (DEFPARAM): Rename msgid to nocmsgid.
26719 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26721 * config/aarch64/aarch64-protos.h (tune_params):
26722 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
26723 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
26724 Return value depending on target.
26725 (generic_tunings): Initialize new target settings.
26726 (cortexa53_tunings): Likewise.
26727 (cortexa57_tunings): Likewise.
26728 (thunderx_tunings): Likewise.
26729 (xgene1_tunings): Likewise.
26731 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26733 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
26734 Make Cortex-A53 shift costs more accurate.
26736 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26738 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
26741 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26743 * config/aarch64/aarch64.c (aarch64_rtx_costs):
26744 Calculate cost of op0 and op1 in PLUS and MINUS cases.
26746 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26748 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26749 Add cost of op0 in the compare-with-fpzero case.
26751 2015-04-30 David Malcolm <dmalcolm@redhat.com>
26753 * builtins.c (fold_builtin_1): Remove spurious second
26755 * cgraph.h (symtab_node::get_availability): Likewise.
26756 * opts.c (common_handle_option): Remove spurious second semicolon.
26757 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26758 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
26760 2015-04-30 Caroline Tice <cmtice@google.com>
26762 PR gcov-profile/65929
26763 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
26764 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
26765 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
26766 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
26767 * doc/tm.texi: Regenerate.
26768 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
26769 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
26770 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
26771 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
26773 2015-04-30 Marek Polacek <polacek@redhat.com>
26775 * varasm.c (handle_cache_entry): Fix logic.
26777 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26779 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
26780 (*extrsi5_insn_uxtw_alt): Likewise.
26781 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
26782 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
26785 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26787 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
26790 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26792 * config/aarch64/aarch64.md
26793 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
26794 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
26795 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
26796 appropriately. Handle alternative EON form.
26798 2015-04-30 Renlin Li <renlin.li@arm.com>
26800 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
26801 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
26803 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
26806 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
26807 -fstrict-aliasing boundaries.
26809 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26811 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
26812 and [SU]MNEGL patterns.
26814 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26816 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
26817 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
26818 combined arithmetic-shift ops. Properly handle all shift and extend
26819 operations that can occur in combination with PLUS/MINUS.
26820 Rename maybe_fma to compound_p.
26821 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
26822 arithmetic and shift operations.
26824 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26826 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
26827 rather than arith_shift cost when costing ADD/MINUS of an
26830 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
26833 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
26836 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
26838 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
26839 are for the same position.
26841 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
26843 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
26845 (vectorize_loops): Use it.
26847 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26849 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
26850 for aggregate types.
26851 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
26852 type to be non_ODR.
26853 * tree.c (need_assembler_name_p): Compute mangled name for
26854 non-fundamental types and integer types.
26856 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
26858 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
26860 * expr.c (expand_expr_real_2): Likewise.
26862 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26864 * tree.c (build_common_builtin_nodes): Do not build
26865 __builtin_alloca_with_align as equivalent of library alloca.
26867 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26869 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
26870 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
26872 * tree.c: Include print-tree.h and ipa-utils.h
26873 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
26874 (free_lang_data_in_cgraph): Call verify_type.
26875 (verify_type_variant): New function.
26876 (verify_type): New function.
26877 * tree.h (verify_type): Declare.
26879 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
26881 * config/mips/mips-cpus.def: (mips4): Change default processor
26882 from PROCESSOR_R8000 to PROCESSOR_R10000.
26884 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
26886 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
26887 la/jalr instead of jal.
26889 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
26892 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
26893 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
26894 (setcc+movzbl peephole2): Check also clobbered reg.
26895 (setcc+andl peephole2): Ditto.
26897 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
26900 * config/nvptx/mkoffload.c (target_ilp32): New variable.
26901 (main): Set it depending on "-foffload-abi=[...]".
26902 (compile_native, main): Use it to pass "-m32" or "-m64" to the
26905 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
26908 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
26909 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
26910 Flip lane index back at assembly time for bigendian.
26912 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
26914 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
26915 * gimplify.c (gimplify_omp_workshare): Use it.
26917 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26919 * Makefile.in (build/genrecog.o): Depend on inchash.h.
26920 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
26922 * genrecog.c: Rewrite most of the code except for the third page.
26924 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26926 * inchash.h, inchash.c: Include bconfig.h for build objects.
26927 * Makefile.in (build/inchash.o): New rule.
26929 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
26932 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
26933 number in type attribute expression.
26935 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26937 * loop-iv.c (canon_condition): Generalize to all types of integer
26940 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
26942 * gimple-walk.c: Prune duplicate or unneeded includes.
26943 (walk_gimple_asm): Only call parse_input_constraint or
26944 parse_output_constraint if their findings are used.
26945 Honour parse_input_constraint and parse_output_constraint
26948 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
26950 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
26952 2015-04-29 Tom de Vries <tom@codesourcery.com>
26954 PR tree-optimization/65893
26955 * passes.def (pass_all_optimizations): Move pass_stdarg to after
26958 2015-04-29 Richard Biener <rguenther@suse.de>
26960 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26961 compute GROUP_SIZE for basic-block SLP.
26962 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
26963 take into account gaps.
26964 (vect_get_mask_element): Properly reject references to previous
26966 (vect_transform_slp_perm_load): Likewise.
26968 2015-04-29 Christian Bruel <christian.bruel@st.com>
26971 * config/i386/i386.c (ix86_default_align): New function.
26972 (ix86_override_options_after_change): Call ix86_default_align.
26973 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
26974 (ix86_override_options_after_change): New function.
26976 2015-04-28 Jeff Law <law@redhat.com>
26978 * tree-ssa-dom.c (record_equality); Fix comment typos.
26980 2015-04-28 Tom de Vries <tom@codesourcery.com>
26982 PR tree-optimization/65887
26983 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
26985 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
26987 * doc/extend.texi (Declaring Attributes of Functions): Split into
26988 subsections by target. Alphabetize the table of common attributes.
26989 Rewrite some of the introductory text to reflect the new structure.
26990 Update some cross-references to point to the new subsections.
26991 (Attribute Syntax): Put paragraph about "__" naming here. Remove
26992 duplicate copies in the discussion of function, label, and type
26995 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
26998 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27000 2015-04-28 Jason Merrill <jason@redhat.com>
27003 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27004 (finalize_type_size): Respect TYPE_USER_ALIGN.
27005 (layout_type) [ARRAY_TYPE]: Likewise.
27007 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
27009 * config/arm/arm.md (*arm_movt): Fix type attribute.
27010 (*cmpsi_shiftsi): Likewise.
27011 (*cmpsi_shiftsi_swp): Likewise.
27012 (*movsicc_insn): Likewise.
27013 (*cond_move): Likewise.
27014 (*if_plus_move): Likewise.
27015 (*if_move_plus): Likewise.
27016 (*if_arith_move): Likewise.
27017 (*if_move_arith): Likewise.
27018 (*if_shift_move): Likewise.
27019 (*if_move_shift): Likewise.
27020 (*arm_movtas_ze): Likewise.
27021 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27022 redundancy and type attribute.
27023 (*thumb2_movsi_insn): Fix type attribute.
27024 (*thumb2_addsi_short): Likewise.
27025 (thumb2_addsi3_compare0): Likewise.
27026 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27027 attributes accordingly.
27029 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
27032 * function.c (pad_to_arg_alignment): Add parentheses.
27034 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
27036 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27037 libgcc/config/frv/elf-lib.h.
27039 2015-04-28 Tom de Vries <tom@codesourcery.com>
27041 * tree-call-cdce.c: Fix example in header comment.
27043 2015-04-28 Richard Biener <rguenther@suse.de>
27045 PR tree-optimization/62283
27046 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27047 fails fatally and we are vectorizing a basic-block simply
27048 cause the child to be constructed piecewise.
27049 (vect_analyze_slp_cost_1): Adjust.
27050 (vect_detect_hybrid_slp_stmts): Likewise.
27051 (vect_bb_slp_scalar_cost): Likewise.
27052 (vect_get_constant_vectors): For piecewise constructed
27053 constants place them after the last def.
27054 (vect_get_slp_defs): Adjust.
27055 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27056 externals for basic-block vectorization.
27058 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27061 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27063 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27064 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27065 (AARCH64_TUNE_FMA_STEERING): Likewise.
27066 * config/aarch64/aarch64-cores.def: Set
27067 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27068 FMUL/FMADD instructions.
27069 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27070 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
27071 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27072 * config/aarch64/cortex-a57-fma-steering.h: New file.
27073 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27075 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
27077 * gensupport.c (std_preds): Add missing codes to address_operand entry.
27079 2015-04-28 Richard Biener <rguenther@suse.de>
27081 PR tree-optimization/65851
27082 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27083 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
27084 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
27085 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27086 (ccp_visit_phi_node): Adjust.
27087 (evaluate_stmt): For simplifications to SSA names return its
27088 lattice value if that isn't VARYING. Return immediately when
27089 simplified to a constant.
27090 (visit_assignment): Adjust.
27091 (ccp_visit_stmt): Likewise.
27093 2015-04-28 Tom de Vries <tom@codesourcery.com>
27095 PR tree-optimization/65818
27096 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27099 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27101 * calls.c (save_fixed_argument_area): Don't check
27102 ARGS_GROW_DOWNWARD with the preprocessor.
27103 (restore_fixed_argument_area): Likewise.
27104 (mem_overlaps_already_clobbered_arg_p): Likewise.
27105 (check_sibcall_argument_overlap): Likewise.
27106 (expand_call): Likewise.
27107 (emit_library_call_value_1): Likewise.
27108 (store_one_arg): Likewise.
27109 * function.c (assign_parms): Likewise.
27110 (locate_and_pad_parm): Likewise.
27111 (pad_to_arg_alignment): Likewise.
27112 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27114 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27116 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27117 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27118 * calls.c (save_fixed_argument_area): Don't chekc if
27119 ARGS_GROW_DOWNWARD is defined.
27120 (restore_fixed_argument_area): Likewise.
27121 (mem_overlaps_already_clobbered_arg_p): Likewise.
27122 (check_sibcall_argument_overlap): Likewise.
27123 (expand_call): Likewise.
27124 (emit_library_call_value_1): Likewise.
27125 (store_one_arg): Likewise.
27126 * function.c (assign_parms): Likewise.
27127 (locate_and_pad_parm): Likewise.
27128 (pad_to_arg_alignment): Likewise.
27129 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27131 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27133 * defaults.h (gen_epilogue): New function.
27134 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27136 * cfgrtl.c (cfg_layout_finalize): Likewise.
27137 * df-scan.c: Likewise.
27138 * function.c (thread_prologue_and_epilogue_insns): Likewise.
27139 (reposition_prologue_and_epilogue_notes): Likewise.
27140 * reorg.c (find_end_label): Likewise.
27141 * toplev.c: Likewise.
27143 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27145 * bb-reorder.c (HAVE_return): Don't check if its undefined.
27146 * defaults.h (gen_simple_return): New function.
27147 (gen_simple_return): Likewise.
27148 (HAVE_return): Add default definition to false.
27149 (HAVE_simple_return): Likewise.
27150 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27151 HAVE_return and HAVE_simple_return are defined.
27152 * function.c (gen_return_pattern): Likewise.
27153 (convert_jumps_to_returns): Likewise.
27154 (thread_prologue_and_epilogue_insns): Likewise.
27155 * reorg.c (find_end_label): Likewise.
27156 (dbr_schedule): Likewise.
27157 * shrink-wrap.c: Likewise.
27158 * shrink-wrap.h: Likewise.
27160 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27162 * defaults.h (EPILOGUE_USES): Add default definition of false.
27163 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27164 * resource.c (init_resource_info): Likewise.
27166 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27168 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27170 * dwarf2out.c (field_byte_offset): REmove check if
27171 PCC_BITFIELD_TYPE_MATTERS is defined.
27172 * stor-layout.c (layout_decl): Likewise.
27173 (update_alignment_for_field): Likewise.
27174 (place_field): Likewise.
27176 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27178 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27180 * regrename.c (check_new_reg_p): Remove check if
27181 HARD_REGNO_RENAME_OK is defined.
27182 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27184 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27186 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27187 * cse.c (fold_rtx): Likewise.
27188 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27189 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27190 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27191 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27192 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27193 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27194 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27195 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27196 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27197 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27199 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27200 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27201 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27202 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27203 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27204 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27205 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27206 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27207 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27208 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27209 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27210 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27211 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27212 * doc/tm.texi: Regenerate.
27213 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27214 either true or false.
27216 2015-04-27 Jeff Law <law@redhat.com>
27218 PR tree-optimization/65217
27219 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27220 of them has a single use, make sure it is the LHS of the implied
27223 2015-04-28 Alan Modra <amodra@gmail.com>
27226 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27227 (offsettable_ok_by_alignment): Use minimum of decl and toc
27228 pointer alignment. Replace dead code with assertion.
27229 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
27230 case if size exceeds toc pointer alignment.
27231 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27232 (rs6000_emit_move): Likewise.
27233 * configure.ac: Add linker toc pointer alignment check.
27234 * configure: Regenerate.
27235 * config.in: Regenerate.
27237 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
27239 * config.gcc: Add h8300-*-linux.
27240 * config/h8300/linux.h: New.
27241 * config/h8300/t-linux: New.
27242 * config/h8300/h8300.c (h8300_option_override): Normal mode
27243 is not supported for h8300-*-linux.
27244 (h8300_file_start): Target priority change.
27245 (get_shift_alg): Likewise.
27246 (h8300_shift_need_scratch_p): Likewise.
27247 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27248 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27250 2015-04-27 Caroline Tice <cmtice@google.com>
27252 * final.c (final_scan_insn): Output cold_function_name as function
27254 * varasm.c (cold_function_name): Make global.
27255 (assemble_start_function): Re-set cold_function_name.
27256 (assemble_end_function): Output cold partition size.
27257 * varasm.h (cold_function_name): Declare global.
27259 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
27261 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27262 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27264 (*movxi_internal_avx512f): Ditto.
27265 (define_split): Check for xmm16+, when splitting scalar float_extend.
27266 (*extendsfdf2_mixed): Use "v" constraint.
27267 (define_split): Check for xmm16+, when splitting scalar float_truncate.
27268 (*truncdfsf_fast_sse): Use "v" constraint.
27269 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27270 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27271 (define_peephole2): Check for xmm16+, when converting scalar
27273 (define_peephole2): Check for xmm16+, when converting scalar
27275 (*fop_<mode>_comm_mixed): Use "v" constraint.
27276 (*fop_<mode>_comm_sse): Ditto.
27277 (*fop_<mode>_1_mixed): Ditto.
27278 (*sqrt<mode>2_sse): Ditto.
27279 (*ieee_s<ieee_maxmin><mode>3): Ditto.
27281 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27283 * combine.c (simplify_if_then_else): Use std::swap instead
27284 of manually swapping.
27285 (known_cond): Likewise.
27286 (simplify_comparison): Likewise.
27288 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
27291 * config/rs6000/htm.md: Remove all define_expands.
27292 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27293 UNSPECV_HTM_TABORTWCI): Remove.
27294 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27295 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27296 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27297 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27298 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27299 tabortwci_internal): Remove define_insns.
27300 (tabort<wd>c, tabort<wd>ci): New define_insns.
27301 (tabort): Use gpc_reg_operand.
27302 (tcheck): Remove operand.
27303 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27304 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27306 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27307 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
27308 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27309 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27310 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27311 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27312 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27313 (tcheck): Remove builtin argument.
27314 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27316 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
27317 tabortdc and tabortdci builtins when not in 64-bit mode.
27318 Modify code to handle the loss of the HTM define_expands.
27319 Emit code to copy the CR register to TARGET.
27320 (htm_init_builtins): Modify code to handle the loss of the HTM
27322 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27323 (RS6000_BTC_64BIT): Likewise.
27324 (RS6000_BTC_CR): New macro.
27325 * doc/extend.texi: Update documentation for htm builtins.
27327 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27329 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27330 of manually swapping.
27331 (simplify_associative_operation): Likewise.
27332 (simplify_binary_operation): Likewise.
27333 (simplify_plus_minus): Likewise.
27334 (simplify_relational_operation): Likewise.
27335 (simplify_ternary_operation): Likewise.
27337 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27339 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27340 (xs_hi_nonmemory_operand): Remove error.
27341 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27342 general_operand rather than xs_hi_general_operand.
27344 2015-04-27 Richard Biener <rguenther@suse.de>
27346 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27347 (record_equivalences_from_stmt): Valueize rhs.
27348 (record_equality): Canonicalize x and y order via
27349 tree_swap_operands_p. Do not swap operands for same loop depth.
27351 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
27355 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27356 Add hint how to use own spec file.
27358 2015-04-27 Jakub Jelinek <jakub@redhat.com>
27360 PR tree-optimization/65875
27361 * tree-vrp.c (update_value_range): If in is_new case setting
27362 old_vr to VR_VARYING, also set new_vr to it. Remove
27363 old_vr->type == VR_VARYING test.
27364 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27365 SSA_PROP_INTERESTING if update_value_range returned true,
27366 but new range is VR_VARYING.
27368 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
27370 * combine.c (sign_extend_short_imm): New.
27371 (set_nonzero_bits_and_sign_copies): Use above new function for sign
27372 extension of src short immediate.
27373 (reg_nonzero_bits_for_combine): Likewise for tem.
27375 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27377 * stor-layout.c (self_referential_component_ref_p): New predicate.
27378 (copy_self_referential_tree_r): Use it.
27379 (self_referential_size): Punt for simple operations directly involving
27380 self-referential component references.
27381 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27383 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27385 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27387 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27389 * vec.h (vec): Make splice arguments const. Update definitions
27392 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
27394 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27397 2015-04-26 Tom de Vries <tom@codesourcery.com>
27399 PR tree-optimization/65826
27400 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27402 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
27404 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27405 (*madd3<mode>): Ditto.
27406 (*msub4<mode>): Ditto.
27407 (*msub3<mode>): Ditto.
27408 (*nmadd4<mode>): Ditto.
27409 (*nmadd3<mode>): Ditto.
27410 (*nmadd4<mode>_fastmath): Ditto.
27411 (*nmadd3<mode>_fastmath): Ditto.
27412 (*nmsub4<mode>): Ditto.
27413 (*nmsub3<mode>): Ditto.
27414 (*nmsub4<mode>_fastmath): Ditto.
27415 (*nmsub3<mode>_fastmath): Ditto.
27417 2015-04-24 Jason Merrill <jason@redhat.com>
27420 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27421 down when building TYPE_CANONICAL.
27422 (build_pointer_type_for_mode): Likewise.
27424 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
27426 * genrecog.c (validate_pattern): Check matching constraint refers
27427 to a lower numbered operand.
27429 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27432 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
27433 save to independent variables use the Save attribute. This will
27434 allow these options to be modified with the #pragma/attribute
27436 (-mallow-movmisalign): Likewise.
27437 (-mallow-df-permute): Likewise.
27438 (-msched-groups): Likewise.
27439 (-malways-hint): Likewise.
27440 (-malign-branch-targets): Likewise.
27441 (-mvectorize-builtins): Likewise.
27442 (-msave-toc-indirect): Likewise.
27444 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
27445 can be set via the #pragma/attribute target support.
27446 (rs6000_opt_vars): Likewise.
27447 (rs6000_inner_target_options): If VSX was set, also set
27448 -mno-avoid-indexed-addresses.
27450 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27452 * config/arm/iterators.md (shiftable_ops): Rename to...
27453 (SHIFTABLE_OPS): ... This. Update use in comments.
27454 (ior_xor): Rename to...
27455 (IOR_XOR): ... This.
27456 (vqh_ops): Rename to...
27457 (VQH_OPS): ... This.
27458 (vqhs_ops): Rename to...
27459 (VQHS_OPS): ... This.
27460 (rshifts): Rename to...
27461 (RSHIFTS): ... This.
27462 (returns): Rename to...
27463 (RETURNS): ... This.
27464 * config/arm/arm.md: Update uses of the above.
27465 * config/arm/neon.md: Likewise.
27467 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27469 * config.host (case ${host}): Add aarch64*-*-linux case.
27470 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
27471 fields to all the cores.
27472 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
27473 Add MCPU_MTUNE_NATIVE_SPECS.
27474 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
27475 field to all extensions.
27476 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
27477 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
27478 Adjust definition of AARCH64_OPT_EXTENSION.
27479 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
27480 (MCPU_MTUNE_NATIVE_SPECS): Define.
27481 * config/aarch64/driver-aarch64.c: New file.
27482 * config/aarch64/x-arch64: New file.
27483 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
27486 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27487 Wei Mi <wmi@google.com>
27489 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
27490 * config/i386/i386.c (extract_base_offset_in_addr): New function.
27491 (ix86_operands_ok_for_move_multiple): Ditto.
27492 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
27493 (movlpd/movhpd to movupd peephole2): Ditto.
27495 2015-04-24 Marek Polacek <polacek@redhat.com>
27498 * input.h (from_macro_expansion_at): Define.
27501 * doc/invoke.texi: Update description of -Wlogical-op.
27503 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27505 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
27506 ternary operator in fprintf and harmonize spacing.
27508 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27510 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
27511 Mark operand1 commutative.
27513 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27515 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
27516 input operands in memory.
27517 (*vec_concatv2si_sse4_1): Ditto.
27518 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
27519 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
27521 (vec_extract_hi_v32hi): Ditto.
27522 (vec_extract_hi_v64hi): Ditto.
27523 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
27525 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27526 Steven Bosscher <steven@gcc.gnu.org>
27528 PR rtl-optimization/34503
27529 * cprop.c (cprop_reg_p): New.
27530 (hash_scan_set): Use above function to check if register can be
27532 (find_avail_set): Return up to two sets, one whose source is a
27533 register and one whose source is a constant. Sets are returned in an
27534 array passed as parameter rather than as a return value.
27535 (cprop_insn): Use a do while loop rather than a goto. Try each of the
27536 sets returned by find_avail_set, starting with the one whose source is
27537 a constant. Use cprop_reg_p to check if register can be propagated.
27538 (do_local_cprop): Use cprop_reg_p to check if register can be
27540 (implicit_set_cond_p): Likewise.
27542 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27544 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
27545 (sem_function::equals): IGNORED_NODES parameter is now unused;
27546 update call of equals_private.
27547 (sem_function::equals_private): Do not call equals_wpa; skip
27548 gimple body matching if there is no body.
27549 (sem_function::init): Add logic to hash tthunk info.
27550 (sem_function::parse): Also parse thunks.
27551 * ipa-icf.h (equals_private): Update declaration.
27553 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27555 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
27556 asterisk from name so this can be generated directly.
27557 (*altivec_stvx_<mode>_internal): Likewise.
27558 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
27559 that this is never called during or after reload/lra.
27560 (rs6000_frame_related): Remove split_reg
27561 argument and logic that references it.
27562 (emit_frame_save): Remove last parameter from call to
27563 rs6000_frame_related.
27564 (rs6000_emit_prologue): Remove last parameter from eight calls to
27565 rs6000_frame_related. Force generation of stvx instruction for
27566 Altivec register saves. Remove split_reg handling, which is no
27568 (rs6000_emit_epilogue): Force generation of lvx instruction for
27569 Altivec register restores.
27571 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27573 * config/rs6000/rs6000.opt (mcrypto): Change option description to
27574 match category changes in ISA 2.07B.
27576 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27578 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
27580 (cmp_op, cmp_type): New code attributes.
27581 (NEON_VCMP, NEON_VACMP): New int iterators.
27582 (cmp_op_unsp): New int attribute.
27583 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
27584 (neon_vceq<mode>): Delete.
27585 (neon_vc<cmp_op><mode>_insn): New pattern.
27586 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
27587 (neon_vcgeu<mode>): Delete.
27588 (neon_vcle<mode>): Likewise.
27589 (neon_vclt<mode>: Likewise.
27590 (neon_vcage<mode>): Likewise.
27591 (neon_vcagt<mode>): Likewise.
27592 (neon_vca<cmp_op><mode>): New define_expand.
27593 (neon_vca<cmp_op><mode>_insn): New pattern.
27594 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
27596 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27598 * tree.h (attribute_value_equal): Declare.
27599 * tree.c (attribute_value_equal): Export.
27601 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27603 * ipa-icf.c (sem_item::compare_attributes): New function.
27604 (sem_item::compare_referenced_symbol_properties): Compare variable
27606 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
27607 (sem_function::param_used_p): New function.
27608 (sem_function::equals_wpa): Fix attribute comparsion; match
27609 parameter type codes; do not compare paremter flags when
27610 they are not used; compare edge flags; compare indirect calls.
27611 (sem_item::update_hash_by_addr_refs): Hash reference type.
27612 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
27613 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
27614 reference use type.
27615 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
27616 * ipa-icf.h (compare_attributes, param_used_p): Declare.
27618 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27620 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
27622 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
27623 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
27624 (sem_item::compare_referenced_symbol_properties): New.
27625 (sem_item::hash_referenced_symbol_properties): New.
27626 (sem_item::compare_cgraph_references): Rename to ...
27627 (sem_item::compare_symbol_references): ... this one; use
27628 compare_referenced_symbol_properties.
27629 (sem_function::equals_wpa): Do not compare
27630 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
27631 DECL_IS_OPERATOR_NEW; compare pointer sizes.
27632 (sem_item::update_hash_by_addr_refs): Call
27633 hash_referenced_symbol_properties.
27634 (sem_item::update_hash_by_local_refs): Cleanup.
27635 (sem_function::merge): Do not mix up symbol properties.
27636 (sem_variable::equals_wpa): Use compare_symbol_references.
27637 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
27638 (sem_item::hash_referenced_symbol_properties): New.
27639 (sem_item::compare_symbol_references): New.
27640 (sem_item::compare_cgraph_references): Remove.
27642 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
27645 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
27646 Emit size of local.
27648 2015-04-23 Nick Clifton <nickc@redhat.com>
27650 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
27651 ATTRIBUTE_UNUSED to x parameter.
27652 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
27654 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27656 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
27657 TARGET_CRYPTO to TARGET_P8_VECTOR>
27658 (crypto_vpermxor_<mode>): Likewise.
27659 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
27660 (BU_CRYPTO_3A): Likewise.
27661 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
27662 (BU_CRYPTO_OVERLOAD_3A): New #define.
27663 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
27664 (VPMSUMH): Likewise.
27665 (VPMSUMW): Likewise.
27666 (VPMSUMD): Likewise.
27667 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
27668 (VPERMXOR_V4SI): Likewise.
27669 (VPERMXOR_V8HI): Likewise.
27670 (VPERMXOR_V16QI): Likewise.
27671 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
27672 BU_CRYPTO_OVERLOAD_2A.
27673 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
27674 BU_CRYPTO_OVERLOAD_3A.
27675 * config/rs6000/rs6000.opt (mcrypto): Change description of
27678 2015-04-23 Richard Biener <rguenther@suse.de>
27680 * passes.def: Remove copy propagation passes run directly after CCP.
27681 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
27683 (ccp_visit_phi_node): Rework to handle first executable edge
27686 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
27688 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27689 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27690 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27691 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
27692 (thumb_legimitimize_reload_address): Remove.
27693 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
27695 (thumb_legimitimize_reload_address): Remove.
27697 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27699 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
27701 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27703 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
27705 (store_multiple): Likewise.
27707 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27709 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
27710 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
27711 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
27712 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
27713 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
27714 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
27715 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
27716 Specify issue_rate value.
27717 (arm_issue_rate): Look up issue rate from tuning structs. Remove
27718 large switch statement.
27719 (arm_marvell_pj4_tune): New struct.
27720 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
27723 2015-04-23 Richard Biener <rguenther@suse.de>
27725 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
27726 (vect_find_last_store_in_slp_instance): Rename to ...
27727 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
27728 (vect_analyze_slp_cost_1): Use vector_load for constant defs
27729 and vec_construct for external defs when estimating prologue cost.
27730 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
27731 Compute costs here only when vectorizing loops.
27732 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
27733 have been determined.
27734 (vect_schedule_slp_instance): Simplify vectorized code placement
27735 and prepare for in-BB external defs.
27736 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
27737 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
27738 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
27740 (vect_model_load_cost): Likewise.
27741 (vectorizable_store): Instead add it here.
27742 (vectorizable_load): Likewise.
27743 (vect_is_simple_use): Dump def type textually.
27745 2015-04-23 Richard Biener <rguenther@suse.de>
27747 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
27748 * cfgloop.c (verify_loop_structure): Verify the root loop node.
27749 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
27750 instead of get_eh_region_from_lp_number.
27751 * loop-init.c (fix_loop_structure): If we removed a loop, reset
27754 2015-04-23 Anton Blanchard <anton@samba.org>
27756 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
27757 need for -mprofile-kernel to save LR to stack.
27759 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27761 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
27763 (insn_is_swappable_p): Return 1 for a convert from double to
27764 single precision when all of its uses are splats of BE element
27767 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
27769 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
27771 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27774 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
27775 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
27776 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
27778 (rs6000_builtin_mask_for_load): Return 0 for targets with
27779 efficient unaligned VSX accesses so that the vectorizer will use
27780 direct unaligned loads.
27781 (rs6000_builtin_support_vector_misalignment): Always return true
27782 for targets with efficient unaligned VSX accesses.
27783 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
27784 stores on targets with efficient unaligned VSX accesses is almost
27785 always the same as the cost of an aligned load or store, so model
27787 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
27788 unaligned vectors if we have efficient unaligned VSX accesses.
27789 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
27790 undocumented option.
27792 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27795 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
27797 * config.gcc (LIBC_MUSL): New tm_defines macro.
27798 * config/linux.h (OPTION_MUSL): Define.
27799 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27800 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27801 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27803 * config/linux.opt (mmusl): New option.
27804 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27805 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27807 * configure: Regenerate.
27809 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
27811 * config.gcc (LIBC_MUSL): New tm_defines macro.
27812 * config/linux.h (OPTION_MUSL): Define.
27813 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27814 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27815 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27817 * config/linux.opt (mmusl): New option.
27818 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27819 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27821 * configure: Regenerate.
27823 2015-04-22 Yury Gribov <y.gribov@samsung.com>
27825 * doc/invoke.texi (-fsanitize-sections): Update description.
27826 * asan.c (set_sanitized_sections): Parse incoming arg.
27827 (section_sanitized_p): Support wildcards.
27829 2015-04-22 Tom de Vries <tom@codesourcery.com>
27831 PR tree-optimization/65823
27832 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
27833 equality between ap_copy and ap.
27835 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27838 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
27840 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27843 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
27845 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27848 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
27849 remove already contained t-files.
27851 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27853 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
27854 Remove unneeded forward declarations.
27855 (suitable_for_tail_call_opt_p): Commentary typo fix.
27857 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27859 * varasm.c (emit_bss): Remove redundant guard.
27861 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27863 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
27865 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27867 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
27869 2015-04-22 Hale Wang <hale.wang@arm.com>
27870 Terry Guo <terry.guo@arm.com>
27872 PR rtl-optimization/64818
27873 * combine.c (can_combine_p): Don't combine user-specified
27874 register if it is in an asm input.
27876 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
27879 * passes.def (early_optimizations): Add pass_dse.
27881 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27883 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
27884 * reorg.c (redundant_insn): Remove ifdef
27885 INSN_REFERENCES_ARE_DELAYED.
27886 * resource.c (mark_referenced_resources): Likewise.
27888 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27890 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
27891 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
27892 * resource.c (mark_set_resources): Likewise.
27894 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27896 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
27897 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27898 (flow_find_head_matching_sequence): Likewise.
27899 (try_head_merge_bb): Likewise.
27900 * combine.c (can_combine_p): Likewise.
27901 (try_combine): Likewise.
27902 (distribute_notes): Likewise.
27903 * df-problems.c (can_move_insns_across): Likewise.
27904 * final.c (final): Likewise.
27905 * gcse.c (insert_insn_end_basic_block): Likewise.
27906 * ira.c (find_moveable_pseudos): Likewise.
27907 * reorg.c (try_merge_delay_insns): Likewise.
27908 (fill_simple_delay_slots): Likewise.
27909 (fill_slots_from_thread): Likewise.
27910 * sched-deps.c (sched_analyze_2): Likewise.
27912 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27914 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
27915 PIC_OFFSET_TABLE_REGNUM.
27917 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27919 * alias.c (init_alias_target): Remove ifdef
27920 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
27921 * df-scan.c (df_insn_refs_collect): Likewise.
27922 (df_get_regular_block_artificial_uses): Likewise.
27923 (df_get_eh_block_artificial_uses): Likewise.
27924 (df_get_entry_block_def_set): Likewise.
27925 (df_get_exit_block_use_set): Likewise.
27926 * emit-rtl.c (gen_rtx_REG): Likewise.
27927 * ira.c (ira_setup_eliminable_regset): Likewise.
27928 * reginfo.c (init_reg_sets_1): Likewise.
27929 * regrename.c (rename_chains): Likewise.
27930 * reload1.c (reload): Likewise.
27931 (eliminate_regs_in_insn): Likewise.
27932 * resource.c (mark_referenced_resources): Likewise.
27933 (init_resource_info): Likewise.
27935 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27937 * defaults.h (MASK_RETURN_ADDR): New definition.
27938 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27941 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27943 * defaults.h (RETURN_ADDR_OFFSET): New definition.
27944 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27945 RETURN_ADDR_OFFSET.
27946 (expand_builtin_frob_return_addr): Likewise.
27948 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27950 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
27951 (try_redirect_by_replacing_jump): Likewise.
27952 (rtl_tidy_fallthru_edge): Likewise.
27953 * combine.c (insn_a_feeds_b): Likewise.
27954 (find_split_point): Likewise.
27955 (simplify_set): Likewise.
27956 * cprop.c (cprop_jump): Likewise.
27957 * cse.c (cse_extended_basic_block): Likewise.
27958 * df-problems.c (can_move_insns_across): Likewise.
27959 * function.c (emit_use_return_register_into_block): Likewise.
27960 * haifa-sched.c (sched_init): Likewise.
27961 * ira.c (find_moveable_pseudos): Likewise.
27962 * loop-invariant.c (find_invariant_insn): Likewise.
27963 * lra-constraints.c (curr_insn_transform): Likewise.
27964 * postreload.c (reload_combine_recognize_const_pattern):
27966 * reload.c (find_reloads): Likewise.
27967 * reorg.c (delete_scheduled_jump): Likewise.
27968 (steal_delay_list_from_target): Likewise.
27969 (steal_delay_list_from_fallthrough): Likewise.
27970 (redundant_insn): Likewise.
27971 (fill_simple_delay_slots): Likewise.
27972 (fill_slots_from_thread): Likewise.
27973 (delete_computation): Likewise.
27974 * sched-rgn.c (add_branch_dependences): Likewise.
27976 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27978 * genconfig.c (main): Always define HAVE_cc0.
27979 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
27981 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27982 (flow_find_head_matching_sequence): Likewise.
27983 (try_head_merge_bb): Likewise.
27984 * cfgrtl.c (rtl_merge_blocks): Likewise.
27985 (try_redirect_by_replacing_jump): Likewise.
27986 (rtl_tidy_fallthru_edge): Likewise.
27987 * combine.c (do_SUBST_MODE): Likewise.
27988 (insn_a_feeds_b): Likewise.
27989 (combine_instructions): Likewise.
27990 (can_combine_p): Likewise.
27991 (try_combine): Likewise.
27992 (find_split_point): Likewise.
27994 (simplify_set): Likewise.
27995 (distribute_notes): Likewise.
27996 * cprop.c (cprop_jump): Likewise.
27997 * cse.c (cse_extended_basic_block): Likewise.
27998 * df-problems.c (can_move_insns_across): Likewise.
27999 * final.c (final): Likewise.
28000 (final_scan_insn): Likewise.
28001 * function.c (emit_use_return_register_into_block): Likewise.
28002 * gcse.c (insert_insn_end_basic_block): Likewise.
28003 * haifa-sched.c (sched_init): Likewise.
28004 * ira.c (find_moveable_pseudos): Likewise.
28005 * loop-invariant.c (find_invariant_insn): Likewise.
28006 * lra-constraints.c (curr_insn_transform): Likewise.
28007 * optabs.c (prepare_cmp_insn): Likewise.
28008 * postreload.c (reload_combine_recognize_const_pattern):
28010 * reload.c (find_reloads): Likewise.
28011 (find_reloads_address_1): Likewise.
28012 * reorg.c (delete_scheduled_jump): Likewise.
28013 (steal_delay_list_from_target): Likewise.
28014 (steal_delay_list_from_fallthrough): Likewise.
28015 (try_merge_delay_insns): Likewise.
28016 (redundant_insn): Likewise.
28017 (fill_simple_delay_slots): Likewise.
28018 (fill_slots_from_thread): Likewise.
28019 (delete_computation): Likewise.
28020 (relax_delay_slots): Likewise.
28021 * sched-deps.c (sched_analyze_2): Likewise.
28022 * sched-rgn.c (add_branch_dependences): Likewise.
28024 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28026 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28027 that is trivially ded on non cc0 targets.
28028 (simplify_set): Likewise.
28029 (mark_used_regs_combine): Likewise.
28030 * cse.c (new_basic_block): Likewise.
28031 (fold_rtx): Likewise.
28032 (cse_insn): Likewise.
28033 (cse_extended_basic_block): Likewise.
28034 (set_live_p): Likewise.
28035 * rtlanal.c (canonicalize_condition): Likewise.
28036 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28038 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28040 * conditions.h: Define macros even if HAVE_cc0 is undefined.
28041 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28042 * final.c: Likewise.
28043 * jump.c: Likewise.
28044 * recog.c: Likewise.
28045 * recog.h: Declare functions even when HAVE_cc0 is undefined.
28046 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28048 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28050 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28051 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28052 * builtins.c (expand_builtin): Remove check if
28053 EH_RETURN_DATA_REGNO is defined.
28054 * df-scan.c (df_bb_refs_collect): Likewise.
28055 (df_get_exit_block_use_set): Likewise.
28056 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28057 * ira-lives.c (process_bb_node_lives): Likewise.
28058 * lra-lives.c (process_bb_lives): Likewise.
28060 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28062 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28063 FIRST_PSEUDO_REG): New.
28064 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28065 (ARG_POINTER_REGNUM): Define to ARGP_REG.
28066 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28067 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28068 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28069 (FIRST_INT_REG): New.
28070 (LAST_INT_REG): New.
28071 (FIRST_*_REG): Define using *_REG.
28072 (LAST_*_REG): Ditto.
28073 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28074 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28075 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28077 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28079 * expmed.c: (synth_mult): Only assume overlapping
28080 shift with previous steps in alg_sub_t_m2 case.
28082 2015-04-21 Richard Biener <rguenther@suse.de>
28084 PR tree-optimization/65650
28085 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28086 transitions involving copies.
28087 (set_lattice_value): Adjust for copy lattice state.
28088 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28089 if that doesn't dominate the merge point.
28090 (bit_value_unop): Adjust what we treat as varying mask.
28091 (bit_value_binop): Likewise.
28092 (bit_value_assume_aligned): Likewise.
28093 (evaluate_stmt): When we simplified to a SSA name record a copy
28094 instead of dropping to varying.
28095 (visit_assignment): Simplify.
28097 * gimple-match.h (gimple_simplify): Add another callback.
28098 * gimple-fold.c (fold_stmt_1): Adjust caller.
28099 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28100 for the 2nd callback.
28101 * gimple-match-head.c (gimple_simplify): Add a callback that is
28102 used to valueize the stmt operands and use it that way.
28104 2015-04-21 Richard Biener <rguenther@suse.de>
28106 PR tree-optimization/65788
28107 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28109 2015-04-21 Richard Biener <rguenther@suse.de>
28111 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28112 vec_construct cost by vec_stmt_cost.
28114 2015-04-21 Richard Biener <rguenther@suse.de>
28116 * cfghooks.h (create_basic_block): Replace with two overloads
28117 for RTL and GIMPLE.
28118 (split_block): Likewise.
28119 * cfghooks.c (split_block): Rename to ...
28120 (split_block_1): ... this.
28121 (split_block): Add two type-safe overloads for RTL and GIMPLE.
28122 (split_block_after_labels): Call split_block_1.
28123 (create_basic_block): Rename to ...
28124 (create_basic_block_1): ... this.
28125 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28126 (create_empty_bb): Call create_basic_block_1.
28127 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28128 split_block_after_labels.
28129 * omp-low.c (expand_parallel_call): Likewise.
28130 (expand_omp_target): Likewise.
28131 (simd_clone_adjust): Likewise.
28132 * tree-chkp.c (chkp_get_entry_block): Likewise.
28133 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28134 create_basic_block overload.
28135 (cgraph_node::expand_thunk): Likewise.
28136 * tree-cfg.c (make_blocks): Likewise.
28137 (handle_abnormal_edges): Likewise.
28138 * tree-inline.c (copy_bb): Likewise.
28140 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28142 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28144 (*xor_one_cmplsidi3_ze): Likewise.
28146 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
28148 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28149 use df_remove_problem rather than manually removing problems, leaving
28150 holes in df->problems_in_order[].
28152 2015-04-21 Tom de Vries <tom@codesourcery.com>
28154 PR tree-optimization/65802
28155 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28157 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28159 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28161 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28162 at '.'. Assert that there's enough space for everything.
28164 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28166 PR tree-optimization/64950
28168 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
28171 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28174 2015-04-20 Shiva Chen <shiva0217@gmail.com>
28176 PR rtl-optimization/64916
28177 * cfgcleanup.c (values_equal_p): New function.
28178 (can_replace_by): Use it.
28180 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
28183 * doc/invoke.texi ([-Wnarrowing]): Update.
28185 2015-04-20 Jeff Law <law@redhat.com>
28187 PR tree-optimization/65658
28188 * tree-ssa-threadupdate.c (redirection_block_p): Remove
28189 redundant test for GIMPLE_ASSIGN in last change.
28191 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
28193 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28194 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28195 (legitimize_tls_address): Ditto.
28196 (ix86_expand_move): Ditto.
28197 (ix86_expand_binary_operator): Remove reload_in_progress checks.
28198 (ix86_expand_unary_operator): Ditto.
28199 * config/i386/predicates.md (index_register_operand): Ditto.
28201 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
28203 * reorg.c (try_merge_delay_insns): Improve correctness checking
28204 for targets with multiple delay slots.
28206 2015-04-20 Jeff Law <law@redhat.com>
28208 PR tree-optimization/65658
28209 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28212 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28214 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28215 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28218 2015-04-20 Jakub Jelinek <jakub@redhat.com>
28221 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28223 2015-04-20 Richard Biener <rguenther@suse.de>
28225 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28226 * gimple-fold.c (gimple_build_valueize): New function.
28227 (gimple_build): Always use gimple_build_valueize as valueize hook.
28229 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28232 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28233 and overwrite variable parts if <= 1/2 the elements are variable.
28235 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
28237 PR rtl-optimization/65805
28238 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28239 Don't use difference of offset and previous offset if
28240 update_sp_offset is non-zero.
28241 (eliminate_regs_in_insn): Ditto.
28242 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28243 lra_eliminate_regs_1 call.
28244 * lra-constraints.c (get_equiv_with_elimination): Ditto.
28246 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
28248 * hash-table.h: Remove version of hash_table that stored value_type *.
28249 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28250 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28251 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28252 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28253 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28254 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28255 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28256 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28257 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28258 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28259 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28260 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28261 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28262 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28263 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28264 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28266 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28267 Jakub Jelinek <jakub@redhat.com>
28270 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28271 subsequent SH_NONE operand does not overwrite an existing *special
28273 (adjust_extract): Handle case where a vec_extract operation is
28274 wrapped in a PARALLEL.
28276 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28279 * config/i386/i386.c (ix86_binds_local_p): Define only if
28280 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28282 2015-04-17 Jeff Law <law@redhat.com>
28284 PR tree-optimization/47679
28285 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28286 * tree-ssa-scopedtables.c: New file.
28287 * tree-ssa-scopedtables.h: New file.
28288 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28289 (const_and_copies): Change name/type.
28290 (record_const_or_copy): Move into tree-ssa-scopedtables.c
28291 (record_const_or_copy_1): Similarly.
28292 (restore_vars_to_original_value): Similarly.
28293 (pass_dominator::execute): Create and destroy const_and_copies table.
28294 (thread_across_edge): Update passing of const_and_copies.
28295 (record_temporary_equivalence): Use method calls rather than
28296 manipulating const_and_copies directly.
28297 (record_equality, cprop_into_successor_phis): Similarly.
28298 (dom_opt_dom_walker::before_dom_children): Similarly.
28299 (dom_opt_dom_walker::after_dom_children): Similarly.
28300 (eliminate_redundant_computations): Similarly.
28301 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28302 (record_temporary_equivalence): Likewise.
28303 (invalidate_equivalences): Likewise.
28304 (record_temporary_equivalences_from_phis): Update due to type
28305 change of const_and_copies. Use method calls rather than
28306 manipulating the stack directly.
28307 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28308 (thread_through_normal_block, thread_across_edge): Likewise.
28309 (thread_across_edge): Likewise.
28310 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28311 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
28313 (identify_jump_threads): Update due to type change of equiv_stack.
28314 (finalize_jump_threads): Delete the equiv_stack when complete.
28316 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
28318 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28319 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28320 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28322 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
28325 * config.gcc: Exit with a comment when we do not have a major version
28326 number for the FreeBSD target.
28328 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28331 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28332 maybe_allows_mem bitfields.
28333 (maybe_allows_none_start, maybe_allows_none_end,
28334 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28335 maybe_allows_mem_end): New variables.
28336 (compute_maybe_allows): New function.
28337 (add_constraint): Use it to initialize maybe_allows_reg and
28338 maybe_allows_mem fields.
28339 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28340 is_address constraints such that those that allow neither mem nor
28341 reg come first, then those that only allow reg but not mem, then
28342 those that only allow mem but not reg, then the rest.
28343 (write_allows_reg_mem_function): New function.
28344 (write_tm_preds_h): Call it.
28345 * stmt.c (parse_output_constraint, parse_input_constraint): Use
28346 the generated insn_extra_constraint_allows_reg_mem function
28347 instead of always setting *allows_reg = true; *allows_mem = true;
28348 for unknown extra constraints.
28350 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28353 * output.h (default_binds_local_p_3): New.
28354 * varasm.c (default_binds_local_p_3): Make it public. Take an
28355 argument to indicate if common symbol may be local. If common
28356 symbol may be local, treat non-external variable as defined
28358 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28359 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28360 * config/i386/i386.c (ix86_binds_local_p): New.
28361 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28362 ix86_binds_local_p.
28364 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28367 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28368 trying mem_loc_descriptor on XEXP (rtl, 0).
28370 2015-04-17 Martin Liska <mliska@suse.cz>
28372 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28373 Release symbol_compare_collection.
28374 * ipa-reference.c: Add TODO that a vector should be released.
28376 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28379 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28380 to new AVR-LibC file layout (bug #44574).
28381 (*avrlibc_devicelib): Same.
28382 * config/avr/avr-mcus.def: Adjust comments.
28383 * config/avr/avr.opt (nodevicelib): Adjust help.
28385 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
28387 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28389 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
28392 * gimplify.c (gimplify_init_constructor): Always emit a
28393 side-effecting constructor.
28395 2015-04-17 Tom de Vries <tom@codesourcery.com>
28397 PR tree-optimization/64950
28398 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28399 in cfun->curr_properties.
28400 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28401 if we generate an IFN_VA_ARG.
28402 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28403 function if PROP_gimple_lva is not set in src function.
28405 2015-04-17 Tom de Vries <tom@codesourcery.com>
28406 Michael Matz <matz@suse.de>
28408 PR tree-optimization/64950
28409 * gimple-iterator.c (update_modified_stmts): Remove static.
28410 * gimple-iterator.h (update_modified_stmts): Declare.
28411 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28412 (gimplify_va_arg_internal): New function.
28413 (gimplify_va_arg_expr): Use IFN_VA_ARG.
28414 * gimplify.h (gimplify_va_arg_internal): Declare.
28415 * internal-fn.c (expand_VA_ARG): New unreachable function.
28416 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28417 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28418 (expand_ifn_va_arg): New function.
28419 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28420 (pass_stdarg::execute): Call expand_ifn_va_arg.
28421 (pass_data_lower_vaarg): New pass_data.
28422 (pass_lower_vaarg): New gimple_opt_pass.
28423 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28424 (make_pass_lower_vaarg): New function.
28425 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28426 properties_required field.
28427 * passes.def (all_passes): Add pass_lower_vaarg.
28428 * tree-pass.h (PROP_gimple_lva): Add define.
28429 (make_pass_lower_vaarg): Declare.
28431 2015-04-17 Tom de Vries <tom@codesourcery.com>
28433 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
28434 * calls.c (call_expr_flags): Same.
28436 2015-04-17 Tom de Vries <tom@codesourcery.com>
28438 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
28439 (pass_stdarg::execute): ... here.
28441 2015-04-17 Tom de Vries <tom@codesourcery.com>
28442 Michael Matz <matz@suse.de>
28444 * tree-cfg.c (make_blocks_1): Factor out of ...
28445 (make_blocks): ... here.
28446 (make_edges_bb): Factor out of ...
28447 (make_edges): ... here.
28448 (gimple_find_sub_bbs): New function.
28449 * tree-cfg.h (gimple_find_sub_bbs): Declare.
28451 2015-04-17 Tom de Vries <tom@codesourcery.com>
28453 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
28455 2015-04-17 Yury Gribov <y.gribov@samsung.com>
28457 * asan.c (set_sanitized_sections): New function.
28458 (section_sanitized_p): Ditto.
28459 (asan_protect_global): Optionally sanitize user-defined
28461 * asan.h (set_sanitized_sections): Declare new function.
28462 * common.opt (fsanitize-sections): New option.
28463 * doc/invoke.texi (-fsanitize-sections): Document new option.
28464 * opts-global.c (handle_common_deferred_options): Handle new
28467 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28470 * dwarf2out.c (loc_list_from_tree): Return NULL
28471 for DEBUG_EXPR_DECL.
28473 2015-04-17 Christian Bruel <christian.bruel@st.com>
28475 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
28478 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28480 * ira-color.c (setup_left_conflict_sizes_p): Do not process
28481 node itself when computing left conflict subnode size.
28483 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28485 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
28486 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
28487 *fop_<mode>_1_sse using enabled attribute. Use
28488 register_mixssei387nonimm_operand operand 1 predicate. Change
28489 alternative 3 constraints from "x" to "v".
28491 2015-04-16 Richard Biener <rguenther@suse.de>
28493 PR tree-optimization/65774
28494 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
28495 bit-value tracking on.
28497 2015-04-16 Richard Biener <rguenther@suse.de>
28499 PR tree-optimization/64277
28500 * tree-vrp.c (check_array_ref): Fix anti-range handling,
28501 simplify upper bound handling.
28502 (search_for_addr_array): Simplify.
28503 (check_array_bounds): Handle ADDR_EXPRs here.
28504 (check_all_array_refs): Simplify.
28506 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28508 * config/i386/i386.c (print_reg): Rewrite function.
28510 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28512 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
28513 Invert the condition.
28515 2015-04-16 Renlin Li <renlin.li@arm.com>
28517 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
28518 simplifications for UNSIGNED_FLOAT.
28520 2015-04-16 Nick Clifton <nickc@redhat.com>
28522 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
28524 (enum rl78_cpu_type): New.
28525 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
28526 (umulhi3_shift_virt): Remove m constraint from operand 1.
28527 (umulqihi3_virt): Likewise.
28528 * config/rl78/rl78.c (rl78_option_override): Add code to process
28529 -mcpu and -mmul options.
28530 (rl78_alloc_physical_registers): Add code to handle divhi and
28531 divsi valloc attributes.
28532 (set_origin): Likewise.
28533 * config/rl78/rl78.h (RL78_MUL_G14): Define.
28534 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
28535 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
28537 (ASM_SPEC): Pass -mcpu on to assembler.
28538 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
28539 (mulqi3_rl78): Likewise.
28540 (mulhi3_g13): Likewise.
28541 (mulhi3): Generate the G13 or G14 versions of the insn directly.
28542 (mulsi3): Likewise.
28543 (mulhi3_g14): Add clobbers of AX and BC.
28544 (mulsi3_g14): Likewise.
28545 (mulsi3_g13): Likewise.
28546 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
28547 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
28548 * config/rl78/rl78.opt (mmul): Initialise value to
28550 (mcpu): New option.
28551 (m13, m14, mrl78): New option aliases.
28552 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
28553 (MULTILIB_DIRNAMES): Add g13 and g14.
28554 * doc/invoke.texi: Document -mcpu and -mmul options.
28556 2015-04-16 Richard Biener <rguenther@suse.de>
28558 * tree-ssa-ccp.c (likely_value): See if we have operands that
28559 are marked as never simulate again and return CONSTANT in this
28561 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
28562 not have any operands that will be simulated again as
28563 not being simulated again.
28565 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
28567 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
28568 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
28569 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
28571 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
28573 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
28574 *float<SWI48:mode><MODEF:mode>2_sse.
28575 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
28577 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
28580 2015-04-15 Tom de Vries <tom@codesourcery.com>
28583 * function.c (push_dummy_function): New function.
28584 (init_dummy_function_start): Use push_dummy_function.
28585 (pop_dummy_function): New function. Factored out of ...
28586 (expand_dummy_function_end): ... here.
28587 * function.h (push_dummy_function, pop_dummy_function): Declare.
28588 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
28589 pop_dummy_function.
28590 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
28592 2015-04-15 Jeff Law <law@redhat.com>
28594 PR tree-optimization/47679
28595 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
28596 need for forward declaration in upcoming changes.
28597 (record_conditions, record_edge_info): Likewise.
28599 PR rtl-optimization/42522
28600 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
28601 SIGN_EXTRACT as a whole object rather than simplifying
28604 2015-04-15 Jakub Jelinek <jakub@redhat.com>
28607 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
28608 and GIMPLE_PREDICT use break instead of return true. For
28609 GIMPLE_EH_DISPATCH, compare dispatch region.
28611 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
28613 * doc/extend.texi (__sync Builtins): Simplify some text. Update
28614 details about the implementation. Make clear preference for
28615 __atomic builtins. Reduce possibility of future change.
28617 2015-04-15 Nick Clifton <nickc@redhat.com>
28619 * config/rx/rx.opt (mallow-string-insns): New option.
28620 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
28621 builtin if string instructions are denied.
28622 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
28623 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
28625 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
28626 * config/rx/rx.md (movstr): Enable pattern only if string
28627 instructions are allowed.
28628 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
28629 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
28630 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
28631 (MULTILIB_DIRNAMES): Add no-strings.
28632 * doc/invoke.texi: Document -mno-allow-string-insns.
28634 2015-04-15 Alan Modra <amodra@gmail.com>
28638 PR middle-end/36043
28639 * calls.c (load_register_parameters): Don't load past end of
28640 mem unless suitably aligned.
28642 2015-04-15 Nick Clifton <nickc@redhat.com>
28644 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
28645 decrement instruction as being frame related.
28646 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
28648 If zero extending a function address enclose the operation in
28650 (rl78_preferred_reload_class): New function.
28651 (TARGET_PREFERRED_RELOAD_CLASS): Define.
28652 * config/rl78/rl78.md: Remove useless constraints in expanders.
28653 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
28654 (mulhi3_rl78): Likewise.
28655 (mulhi3_g13): Likewise.
28656 (mulsi3_rl78): Likewise.
28657 (es_addr): Move to before the multiply patterns.
28659 2015-04-15 Alan Modra <amodra@gmail.com>
28661 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
28662 and sequence_stack. Add seq.
28663 (seq_stack): Delete.
28664 * function.c (prepare_function_start): Don't access x_last_insn.
28665 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
28666 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
28667 * emit_rtl.c (start_sequence, push_topmost_sequence,
28668 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
28669 sequence accessors.
28670 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
28671 remove_insn): Likewise. Simplify.
28672 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
28673 and pop_topmost_sequence.
28674 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
28676 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
28678 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
28681 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
28684 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
28686 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
28687 (LEGACY_INT_REGNO_P): Ditto.
28688 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
28689 (ANY_MASK_REG_P): Remove.
28690 (BND_REG_P): Rename from ANY_BND_REG_P.
28691 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
28692 legacy integer registers. Do not handle MMX_REG_P in a special way.
28693 Merge 64byte and 32byte SSE handling.
28695 2015-04-14 Nick Clifton <nickc@redhat.com>
28697 * expr.c (expand_assignment): Force an address offset computation
28698 into a register before changing its mode.
28699 (expand_expr_real_1): Likewise.
28701 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
28703 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
28704 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
28705 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
28706 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
28707 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
28708 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
28709 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
28710 and __aarch64_vget_lane_any.
28712 2015-04-14 Jakub Jelinek <jakub@redhat.com>
28714 PR rtl-optimization/65761
28715 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
28716 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
28718 2015-04-14 Richard Biener <rguenther@suse.de>
28720 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
28721 (graphite_can_represent_scev): Use POINTER_TYPE_P.
28723 2015-04-14 Richard Biener <rguenther@suse.de>
28725 PR tree-optimization/65758
28726 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
28728 (ccp_lattice_meet): Likewise.
28729 (bit_value_unop): Likewise.
28730 (bit_value_binop): Likewise.
28731 (bit_value_assume_aligned): Likewise.
28733 2015-04-14 Christian Bruel <christian.bruel@st.com>
28735 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
28738 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
28740 PR tree-optimization/63387
28741 * match.pd ((x unord x) | (y unord y) -> (x unord y),
28742 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
28744 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
28746 * config/i386/predicates.md (any_QIreg_operand): Rename from
28747 q_regs_operand. Do not process subregs.
28748 (QIreg_operand): Use QI_REGNO_P predicate.
28749 (ext_QIreg_operand): Ditto.
28750 (ext_register_operand): Ditto.
28751 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
28752 (AND splitters): Ditto.
28753 (AND with -65536 splitter): Add SWI48 mode for operand 0.
28754 (AND with -256 splitter): Use any_QIreg_operand predicate and
28755 SWI248 mode for operand 0.
28756 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
28757 mode for operand 0.
28758 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
28760 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
28762 * doc/plugins.texi: Rewrite first introductory paragraph.
28764 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28766 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
28767 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
28769 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28771 * ipa-profie.c (ipa_profile): Check number of parameters
28772 and possible polymorphic call targets before
28775 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
28777 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
28778 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
28780 2015-04-13 Richard Biener <rguenther@suse.de>
28782 PR tree-optimization/65204
28783 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
28784 takens for bit-CCP.
28786 2015-04-13 Richard Biener <rguenther@suse.de>
28789 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
28790 and cond_not_taken_branch_cost to 4 and 2.
28791 (bdver2_cost): Likewise.
28792 (bdver3_cost): Likewise.
28793 (bdver4_cost): Likewise.
28795 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28797 * hash-table.h (hash_table constructor): Add mem stats.
28798 (alloc_entries): Likewise.
28800 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28802 * ipa-cp.c (ipcp_driver): Relase prev_edge.
28803 * passes.c (execute_one_pass): Only add transform if pass has one.
28805 2015-04-12 Joseph Myers <joseph@codesourcery.com>
28807 * config/i386/i386.c (ix86_option_override_internal): Don't set
28808 -fprefetch-loop-arrays if optimizing for size.
28810 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28811 Gerald Pfeifer <gerald@pfeifer.com>
28813 * doc/contrib.texi (Contributors): Add Martin Jambor and
28816 2015-04-12 Jakub Jelinek <jakub@redhat.com>
28818 * BASE-VER: Set to 6.0.0.
28820 PR tree-optimization/65747
28821 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
28822 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
28824 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
28826 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
28827 sentence. Improve grammar.
28829 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
28831 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
28833 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
28836 * ipa-inline-transform.c (speculation_removed): Remove static var.
28837 (check_speculations): New function.
28838 (clone_inlined_nodes): Do not check spculations.
28839 (inline_call): Call check_speculations.
28840 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
28841 consider non-invariants.
28843 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
28844 Martin Liska <mliska@suse.cz>
28847 * ipa-icf.c (sem_item::compare_cgraph_references): function and
28848 variable can not match.
28849 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
28850 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
28852 2015-04-11 Jakub Jelinek <jakub@redhat.com>
28854 PR tree-optimization/65735
28855 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
28856 Remove visited_phis argument, add visited_bbs, avoid recursing into the
28857 same bb rather than just into the same phi node.
28858 (thread_through_normal_block): Adjust caller.
28860 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
28862 * doc/contrib.texi (Contributors): Add Ira Rosen.
28864 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
28866 * gcov.c (find_source): Fix miswording in error message.
28867 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
28868 (ix86_expand_sse_comi_round): Fix typo in error message.
28870 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
28872 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
28874 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
28876 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
28878 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
28881 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
28882 Print bad_spills_num and insn_pseudos_num.
28884 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28887 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
28888 when creating +1 values for SImode.
28890 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
28893 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
28896 2015-04-10 Jakub Jelinek <jakub@redhat.com>
28897 Iain Sandoe <iain@codesourcery.com>
28900 * configure: Regenerate.
28902 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
28905 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
28907 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
28909 * doc/contrib.texi (Contributors): Add John Marino.
28911 2015-04-09 Jakub Jelinek <jakub@redhat.com>
28913 PR tree-optimization/65709
28914 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
28915 TREE_TYPE (TREE_TYPE (t)).
28917 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
28920 * lra-int.h (lra_bad_spill_regno_start): New.
28921 * lra.c (lra_bad_spill_regno_start): New.
28922 (lra): Set up lra_bad_spill_regno_start. Set up
28923 lra_constraint_new_regno_start unconditionally.
28924 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
28927 2015-04-09 Marek Polacek <polacek@redhat.com>
28928 Jakub Jelinek <jakub@redhat.com>
28930 PR middle-end/65554
28931 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
28932 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
28935 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
28937 PR rtl-optimization/65693
28938 * combine.c (is_parallel_of_n_reg_sets): Move outside of
28941 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
28944 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
28945 device specs file if "device-specs%s" didn't resolve to a path.
28947 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
28950 * config/i386/i386.c (fixup_modeless_constant): New.
28951 (ix86_expand_args_builtin): Fixup modeless constant operand.
28952 (ix86_expand_round_builtin): Ditto.
28953 (ix86_expand_special_args_builtin): Ditto.
28954 (ix86_expand_builtin): Ditto.
28956 2015-04-09 Jakub Jelinek <jakub@redhat.com>
28959 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
28960 any pow2 integer in between 2 and 0x80000000U inclusive.
28962 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
28964 PR rtl-optimization/65693
28965 * combine.c (is_parallel_of_n_reg_sets): Change first argument
28966 from an rtx_insn * to an rtx.
28967 (try_combine): Adjust both callers. Use it once more.
28969 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28971 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
28972 (chkp_make_static_const_bounds): Search existing
28973 symbol by assembler name. Use make_decl_one_only.
28974 (chkp_get_zero_bounds_var): Remove node search which
28975 is now performed in chkp_make_static_const_bounds.
28976 (chkp_get_none_bounds_var): Likewise.
28978 2015-04-08 Michael Witten <mfwitten@gmail.com>
28980 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
28983 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28985 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
28987 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28989 * doc/extend.texi (__sync Builtins): Fix grammar.
28991 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28993 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
28995 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28997 * varasm.c (emit_local): Move definition of align.
28999 2015-04-08 Julian Brown <julian@codesourcery.com>
29001 * config/nvptx/mkoffload.c (process): Support variable mapping.
29003 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
29005 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29007 (alpha_write_one_linkage): Correct typo.
29009 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29011 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29013 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29015 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29017 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29019 * tree-chkp.h (chkp_insert_retbnd_call): New.
29020 * tree-chkp.c (chkp_insert_retbnd_call): New.
29021 * ipa-split.c (insert_bndret_call_after): Remove.
29022 (split_function): Use chkp_insert_retbnd_call.
29023 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29024 bounds for instrumented functions.
29026 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
29029 * calls.c (initialize_argument_information): When producing tail
29030 call also turn SSA_NAMES passed by references to original PARM_DECLs
29032 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
29035 * lra-remat.c (do_remat): Process input and non-input insn
29036 registers separately.
29038 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29041 * valtrack.c (debug_lowpart_subreg): New function.
29042 (dead_debug_insert_temp): Use it.
29044 PR middle-end/65680
29045 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29046 into signed HOST_WIDE_INT the same as negative bit_offset.
29048 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
29050 * ipa-comdats.c (ipa_comdats): Visit all thunks
29051 to set proper comdat group.
29053 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29056 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29057 on constants for NEON VSTRUCT modes.
29059 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29060 Iain Sandoe <iain@codesourcery.com>
29063 * configure: Regenerate.
29065 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29068 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29069 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29070 that LFD is used to load double constants instead of LFS. Add
29071 defaults for all costs structures. Add comments for missing
29072 initialization fields.
29073 (size32_cost): Likewise.
29074 (size64_cost): Likewise.
29075 (rs64a_cost): Likewise.
29076 (mpccore_cost): Likewise.
29077 (ppc403_cost): Likewise.
29078 (ppc405_cost): Likewise.
29079 (ppc440_cost): Likewise.
29080 (ppc476_cost): Likewise.
29081 (ppc601_cost): Likewise.
29082 (ppc603_cost): Likewise.
29083 (ppc604_cost): Likewise.
29084 (ppc604e_cost): Likewise.
29085 (ppc620_cost): Likewise.
29086 (ppc630_cost): Likewise.
29087 (ppccell_cost): Likewise.
29088 (ppc750_cost): Likewise.
29089 (ppc7450_cost): Likewise.
29090 (ppc8540_cost): Likewise.
29091 (ppce300c2c3_cost): Likewise.
29092 (ppce500mc_cost): Likewise.
29093 (ppce500mc64_cost): Likewise.
29094 (ppce5500_cost): Likewise.
29095 (ppce6500_cost): Likewise.
29096 (titan_cost): Likewise.
29097 (power4_cost): Likewise.
29098 (power6_cost): Likewise.
29099 (power7_cost): Likewise.
29100 (power8_cost): Likewise.
29101 (ppca2_cost): Likewise.
29102 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29104 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29105 instead of XXLOR to copy SFmode to clear out dirty bits created
29106 when SFmode denormals are generated.
29107 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29108 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29110 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29112 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29113 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29114 * config/aarch64/aarch64-tune.md: Regenerate.
29116 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29118 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29119 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29120 * config/arm/arm-cores.def (exynos-m1): New core.
29121 * config/arm/arm-tune.md: Regenerate.
29122 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29123 * config/arm/bpabi.h: Likewise.
29125 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29127 * ipa-cp (set_single_call_flag): Remove too
29128 restrictive assert.
29130 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
29132 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29133 GOMP_offload_unregister from the destructor.
29135 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29137 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29138 flags for instrumentation thunk.
29139 (chkp_produce_thunks): Likewise.
29141 2015-04-05 Martin Liska <mliska@suse.cz>
29144 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29145 has computed data structure.
29146 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29148 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
29150 * invoke.texi (inline-unit-growth): Increase growth to 20%
29151 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29153 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
29156 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
29158 (lra_rematerialization_iter): New.
29159 * lra.c (lra): Initialize lra_rematerialization_iter.
29160 Stop updating lra_constraint_new_regno_start after switching of
29161 inheritance and rematerialization.
29162 * lra-remat.c (lra_rematerialization_iter): New.
29163 (lra_remat): Add printing pass iteration. Do rematerialization
29164 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29166 2015-04-04 Richard Biener <rguenther@suse.de>
29168 PR tree-optimization/64909
29169 PR tree-optimization/65660
29170 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29171 to take a cost vector for scalar iteration cost.
29172 (vect_get_single_scalar_iteration_cost): Likewise.
29173 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29174 Compute the scalar iteration cost into a cost vector.
29175 (vect_get_known_peeling_cost): Use the scalar cost vector to
29176 account for the cost of the peeled iterations.
29177 (vect_estimate_min_profitable_iters): Likewise.
29178 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29181 2015-04-04 Alan Modra <amodra@gmail.com>
29185 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29186 0.0 constant unless TARGET_VSX.
29187 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29190 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29193 * ipa-inline-transform.c (inline_call): Skip sanity check to work
29196 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29199 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29200 speculative indirect edges to avoid ordering issue.
29202 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29205 * ipa-inline.c (edge_badness): Add combined size to the denominator.
29207 2015-04-03 Jakub Jelinek <jakub@redhat.com>
29209 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29210 TYPE_ARTIFICIAL on the .omp_data* types.
29212 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29214 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29215 instrumentation thunks.
29217 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29219 * config/i386/i386.c (ix86_expand_call): Avoid nested
29220 PARALLEL in returned call value.
29222 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29224 * lto-cgraph.c (input_cgraph_1): Always link instrumented
29225 assembler name with original one.
29227 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29229 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29231 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29233 Revert parts of r216820.
29234 * config/i386/i386.md (movqi_internal): Correct type calculation
29235 for alternatives 3 and 5.
29237 2015-04-02 Jakub Jelinek <jakub@redhat.com>
29239 PR preprocessor/61977
29240 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29241 predefine __vector/__bool/__pixel macros nor context sensitive
29242 macros for CLK_ASM.
29243 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29245 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
29247 * config/pa/pa.c (pa_output_move_double): Directly handle register
29248 indexed memory operand. Simplify handling of scaled register indexed
29251 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29254 * config/i386/linux-common.h (MPX_SPEC): New.
29255 (CHKP_SPEC): Add MPX_SPEC.
29256 * doc/invoke.texi (-fcheck-pointer-boudns): Document
29257 possible issues with '-z bndplt' support in linker.
29259 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29261 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29262 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29263 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29264 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29265 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29267 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
29269 * config/i386/sync.md (UNSPEC_MOVA): Remove.
29270 (atomic_load<mode>): Change operand 0 predicate to
29271 nonimmediate_operand and fix up the destination when needed.
29273 (atomic_loaddi_fpu): Use UNSPEC_LDA.
29274 (atomic_store<mode>): Change operand 1 predicate to
29275 nonimmendate_operand and move the source to register when needed.
29277 (atomic_store<mode>_1): Use UNSPEC_STA.
29278 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29279 Fix moves from memory operand. Use UNSPEC_STA.
29281 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29283 * expmed.c (strict_volatile_bitfield_p): Check that the access will
29284 not cross a MODESIZE boundary.
29285 (store_bit_field, extract_bit_field): Added assertions in the
29286 strict volatile bitfields code path.
29288 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
29291 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29292 Increase args array size by one to avoid buffer overflow.
29294 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29296 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29298 * ipa-inline.c (edge_badness): Add wrapper penalty.
29299 (sum_callers): Move up.
29300 (inline_small_functions): Set single_caller.
29301 * ipa-inline.h (inline_summary): Add single_caller.
29302 * ipa-split.c (split_function): Set split_part.
29303 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29304 * cgraph.h (cgraph_node): Add split_part.
29306 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
29309 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29310 Do not split operands 0 and operands 2 to halfmode.
29311 (atomic_compare_and_swap<mode>): Update for
29312 atomic_compare_and_swap<dwi>_doubleword changes.
29314 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29316 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29317 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29318 no caching is done.
29320 2015-03-31 Martin Liska <mliska@suse.cz>
29323 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29324 has already filled up function summary.
29325 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29327 2015-03-31 Richard Biener <rguenther@suse.de>
29329 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29332 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
29334 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29336 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29337 (s390_asm_output_function_label): Adapt to new signature of
29338 s390_function_num_hotpatch_hw
29339 Optimise the code generating assembler output.
29340 Add comments to assembler file.
29342 2015-03-31 Richard Biener <rguenther@suse.de>
29344 PR middle-end/65626
29345 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29346 of the noreturn call so it is last and cleanup_control_flow_bb
29347 can do the CFG part.
29349 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
29352 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29353 same_comdat_group for external symbols.
29354 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29355 infinite same_comdat_group traversal loop.
29357 2015-03-31 Jakub Jelinek <jakub@redhat.com>
29360 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29361 automatically to $headers.
29363 2015-03-30 Jakub Jelinek <jakub@redhat.com>
29366 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29367 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29369 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29371 * ipa-prop.c (param_type_may_change_p): Likewise.
29372 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29373 (remove_unused_scope_block_p): Add in_ctor_dtor_block
29374 argument. Before inlining, preserve
29375 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29376 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
29378 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29380 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29383 * ipa-inline.c (edge_badness): Base denominator on callee's
29386 2015-03-27 Martin Jambor <mjambor@suse.cz>
29389 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29390 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29391 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29392 node_calling_single_call.
29393 * ipa-cp.c (count_callers): New function.
29394 (set_single_call_flag): Likewise.
29395 (initialize_node_lattices): Count callers and set single_flag_call if
29397 (incorporate_penalties): New function.
29398 (good_cloning_opportunity_p): Use it, dump new flags.
29399 (propagate_constants_topo): Set node_within_scc flag if appropriate.
29400 * doc/invoke.texi (ipa-cp-recursion-penalty,
29401 ipa-cp-single-call-pentalty): Document.
29403 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29406 * symtab.c (symtab_node::get_partitioning_class): Register vars
29408 * varpool.c (symbol_table::output_variables) Do not assemble unefined
29409 decls for non-symbols.
29411 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
29414 * output.h (default_binds_local_p_2): New.
29415 * varasm.c (default_binds_local_p_2): Renamed to ...
29416 (default_binds_local_p_3): This. Don't return true on protected
29417 data symbol if protected data may be external.
29418 (default_binds_local_p): Use default_binds_local_p_3.
29419 (default_binds_local_p_1): Likewise.
29420 (default_binds_local_p_2): New.
29421 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29422 default_binds_local_p_2 if TARGET_MACHO is undefined.
29424 2015-03-27 Jakub Jelinek <jakub@redhat.com>
29427 * config/i386/i386.c (legitimize_pic_address): If base
29428 is SYMBOL_REF or LABEL_REF using %rip addressing, force
29429 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
29431 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29434 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
29437 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29440 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
29441 of optimized out indirect call.
29442 (redirect_to_unreachable): Always build symbol table node for
29443 BUILT_IN_UNREACHABLE
29445 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
29448 * ira-costs.c (record_reg_classes): Process all constraint string
29451 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
29453 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
29457 * config/c6x/constraints.md (S3): New constraint.
29458 * config/c6x/c6x.md (real_jump): Use it.
29460 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29462 PR middle-end/65595
29463 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
29464 do redirection if the call is not optimized out.
29466 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
29469 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
29470 (fchkp-check-incomplete-type): Add LTO.
29471 (fchkp-zero-input-bounds-for-main): Likewise.
29472 (fchkp-first-field-has-own-bounds): Likewise.
29473 (fchkp-narrow-bounds): Likewise.
29474 (fchkp-narrow-to-innermost-array): Likewise.
29475 (fchkp-use-static-bounds): Likewise.
29476 (fchkp-use-static-const-bounds): Likewise.
29477 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29479 2015-03-27 Marek Polacek <polacek@redhat.com>
29481 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
29483 2015-03-27 Marek Polacek <polacek@redhat.com>
29486 * ubsan.c (ubsan_create_edge): New function.
29487 (instrument_bool_enum_load): Call it.
29488 (instrument_nonnull_arg): Likewise.
29489 (instrument_nonnull_return): Likewise.
29490 (instrument_object_size): Likewise.
29492 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29494 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
29497 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29500 * lto-streamer.h (class lto_location_cache): New.
29501 (struct data_in): Add location_cache.
29502 (lto_input_location): Update prototype.
29503 (stream_input_location_now): New.
29504 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
29505 pointer to location.
29506 (stream_input_location): Update.
29507 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
29508 (warn_odr): Apply location cache before warning.
29509 (lto_input_location): Update prototype.
29510 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
29511 Use stream_input_location_now.
29512 * lto-streamer-in.c (lto_location_cache::current_cache): New static
29514 (lto_location_cache::cmp_loc): New function.
29515 (lto_location_cache::apply_location_cache): New function.
29516 (lto_location_cache::accept_location_cache): New function.
29517 (lto_location_cache::revert_location_cache): New function.
29518 (lto_location_cache::input_location): New function.
29519 (lto_input_location): Do location caching.
29520 (stream_input_location_now): New function.
29521 (input_eh_region, input_struct_function_base): Use
29522 stream_input_location_now.
29523 (lto_data_in_create): use new.
29524 (lto_data_in_delete): Use delete.
29525 * tree-streamer-in.c (unpack_ts_block_value_fields,
29526 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
29527 lto_input_ts_exp_tree_pointers): Update for cached location api.
29529 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29532 * passes.def: Add pass_nothrow.
29533 * ipa-pure-const.c: (pass_data_nothrow): New.
29534 (pass_nothrow): New.
29535 (pass_nothrow::execute): New.
29536 (make_pass_nothrow): New.
29537 * tree-pass.h (make_pass_nothrow): Declare.
29539 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29541 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
29542 edge to change by speculation resolution or redirection.
29543 (edge_set_predicate): Likewise.
29544 (inline_summary_t::duplicate): Likewise.
29545 (remap_edge_summaries): Likewise.
29547 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29549 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
29551 (can_inline_edge_p): Relax option matching for always inline functions.
29553 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
29556 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
29557 Check operand 4 and operand 0 for equality.
29558 (avx512f_vextract<shuffletype>32x4_1_maskm):
29559 Check operand 6 and operand 0 for equality.
29560 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
29562 (vec_extract_hi_<mode>_maskm): Ditto.
29564 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29566 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
29567 dead calls back to live.
29568 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
29570 (cgraph_node::verify_node): ... here; verify only callee edges,
29572 * cif-code.def (CILK_SPAWN): New code.
29574 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29576 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
29577 (edge_set_predicate): Use it to mark unreachable edges.
29578 (inline_summary_t::duplicate): Remove unnecesary code.
29579 (remap_edge_summaries): Likewise.
29580 (dump_inline_summary): Report contains_cilk_spawn.
29581 (compute_inline_parameters): Compute contains_cilk_spawn.
29582 (inline_read_section, inline_write_summary): Stream
29583 contains_cilk_spawn.
29584 * ipa-inline.c (can_inline_edge_p): Do not touch
29585 DECL_STRUCT_FUNCTION that may not be available;
29586 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
29587 remove check for callee_fun->can_throw_non_call_exceptions and
29588 replace it by optimization attribute check; check for flag_exceptions.
29589 * ipa-inline-transform.c (inline_call): Maintain
29590 DECL_FUNCTION_PERSONALITY
29591 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
29593 2015-03-26 Jakub Jelinek <jakub@redhat.com>
29595 PR tree-optimization/65551
29596 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
29597 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
29599 2015-03-26 Richard Biener <rguenther@suse.de>
29601 PR middle-end/65555
29602 * tree-cfg.c (verify_gimple_call): Do not require a call to
29603 have no LHS if it wasn't recognized as control altering yet.
29605 2015-03-26 Jakub Jelinek <jakub@redhat.com>
29607 PR tree-optimization/64715
29608 * passes.def: Add another instance of pass_object_sizes before ccp1.
29609 * tree-object-size.c (pass_object_sizes::execute): In
29610 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
29611 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
29612 __bos result and the computed constant. Remove redundant
29613 checks, obsoleted by gimple_call_builtin_p test.
29615 * var-tracking.c (variable_tracking_main_1): Don't track
29616 variables for targetm.no_register_allocation targets.
29618 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
29620 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
29621 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
29623 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
29626 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
29627 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
29628 0.0 is correctly setup.
29629 (extenddftf2_internal): Likewise.
29631 2015-03-25 Sebastian Pop <s.pop@samsung.com>
29633 PR tree-optimization/65177
29634 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
29636 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
29637 edges not adjacent on the path to the original code.
29639 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
29642 * doc/install.texi (Building a native compiler): Document new
29643 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
29644 configuration assumes that the host supports the linker plugin.
29646 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
29649 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
29650 chain for generated call.
29652 2015-03-25 Richard Biener <rguenther@suse.de>
29654 * passes.c (pass_manager::execute_early_local_passes): Guard
29655 execution of pass_chkp_instrumentation_passes with
29656 flag_check_pointer_bounds.
29657 (pass_chkp_instrumentation_passes::gate): Likewise.
29659 2015-03-25 Martin Liska <mliska@suse.cz>
29661 PR tree-optimization/65538
29662 * symbol-summary.h (function_summary::~function_summary):
29663 Relese memory for allocated summaries.
29664 (function_summary::release): New function.
29666 2015-03-25 Jakub Jelinek <jakub@redhat.com>
29669 * lto-streamer-out.c (DFS::worklist): New struct.
29670 (DFS::worklist_vec): New data member.
29671 (DFS::next_dfs_num): Remove.
29672 (DFS::DFS): Rewritten using worklist instead of recursion,
29673 using most of code from DFS::DFS_write_tree.
29674 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
29675 pass it to DFS_write_tree calls.
29676 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
29677 quick initial checks push it into worklist_vec and return.
29679 2015-03-25 Richard Biener <rguenther@suse.de>
29681 PR middle-end/65519
29682 * genmatch.c (expr::gen_transform): Re-write to avoid
29683 using gimple_build.
29685 2015-03-25 Bin Cheng <bin.cheng@arm.com>
29687 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
29689 2015-03-25 Bin Cheng <bin.cheng@arm.com>
29691 * config/arm/arm.opt (print_tune_info): New option.
29692 * config/arm/arm.c (arm_print_tune_info): New function.
29693 (arm_file_start): Call arm_print_tune_info.
29694 * config/arm/arm-protos.h (struct tune_params): Add comment.
29695 * doc/invoke.texi (@item -mprint-tune-info): New item.
29696 (-mtune): mention it in ARM Option Summary.
29698 2015-03-25 DJ Delorie <dj@redhat.com>
29700 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
29703 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
29704 Martin Liska <mliska@suse.cz>
29706 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
29707 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
29708 (sem_item::add_type): New function.
29709 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
29710 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
29711 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
29712 (sem_function::equals_wpa): Fix typo.
29713 * ipa-icf.h (sem_item::add_type): New function.
29714 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
29717 2015-03-24 Jakub Jelinek <jakub@redhat.com>
29719 PR tree-optimization/65533
29720 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
29721 with swapped operands, call vect_free_slp_tree on
29722 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
29725 2015-03-24 Richard Biener <rguenther@suse.de>
29727 PR middle-end/65517
29728 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
29729 for fixup if necessary.
29731 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
29733 * doc/extend.texi (Function Attributes): Add @cindex entries
29734 for all attributes and regularize their format. Delete text
29735 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
29736 information about "eightbit_data", "tiny_data", and "model"
29737 variable attributes to the Variable Attributes section. Fix
29738 some obvious typos and copy-editing issues.
29739 (Variable Attributes, Type Attributes): Likewise add/fix
29740 @cindex entries for all attributes.
29742 2015-03-23 Jakub Jelinek <jakub@redhat.com>
29745 * tree-chkp.c (chkp_build_returned_bound): Ignore
29746 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
29748 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
29751 * config/sh/predicates.md (simple_mem_operand,
29752 displacement_mem_operand): Add test for reg.
29753 (short_displacement_mem_operand): Test for displacement_mem_operand
29754 before invoking sh_disp_addr_displacement.
29755 * config/sh/constraints.md (Sdd, Sra): Simplify.
29756 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
29757 Remove redundant displacement_mem_operand tests.
29759 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
29762 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
29763 the same -mmcu=MCU more than once.
29765 2015-03-23 Jakub Jelinek <jakub@redhat.com>
29768 * ipa-devirt.c: Remove duplicate demangle.h include.
29771 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
29773 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
29774 REG_POINTER on *destptr after adjusting it for prologue size.
29777 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
29778 ultimate_alias_target ()->order ints instead of
29779 ultimate_alias_target () pointers.
29781 2015-03-23 Richard Biener <rguenther@suse.de>
29783 PR tree-optimization/65518
29784 * tree-vect-stmts.c (vectorizable_load): Reject single-element
29785 interleaving cases we generate absymal code for.
29787 2015-03-23 Richard Biener <rguenther@suse.de>
29789 PR tree-optimization/65494
29790 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
29792 (vect_analyze_slp_instance): But do that here, always and once.
29794 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29796 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
29797 adding T or multiplying by T+1 and subracting T.
29799 2015-03-22 Jeff Law <law@redhat.com>
29801 PR rtl-optimization/64317
29802 * Makefile.in (OBJS): Add gcse-common.c
29803 * gcse.c: Include gcse-common.h
29804 (struct modify_pair_s): Move structure definition to gcse-common.h
29805 (compute_transp): Move function to gcse-common.c.
29806 (canon_list_insert): Similarly.
29807 (record_last_mem_set_info): Break out some code and put it into
29808 gcse-common.c. Call into the new common code.
29809 (compute_local_properties): Pass additional arguments to compute_transp.
29810 * postreload-gcse.c: Include gcse-common.h and df.h
29811 (modify_mem_list_set, blocks_with_calls): New variables.
29812 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
29813 (get_bb_avail_insn): Pass in the expression index too.
29814 (alloc_mem): Allocate memory for the new bitmaps and lists.
29815 (free_mem): Free memory for the new bitmaps and lists.
29816 (insert_expr_in_table): Record a bitmap index for each entry we
29818 (record_last_mem_set_info): Call into common code in gcse-common.c.
29819 (get_bb_avail_insn): If no available insn was found in the requested
29820 BB. If BB has a single predecessor, see if the expression is
29821 transparent in BB and available in that single predecessor.
29822 (compute_expr_transp): New wrapper for compute_transp.
29823 (eliminate_partially_redundant_load): Pass expression's bitmap_index
29824 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
29825 (gcse_after_reload_main): If there are elements in the hash table,
29826 then compute transparency for all the elements in the hash table.
29827 * gcse-common.h: New file.
29828 * gcse-common.c: New file.
29830 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
29832 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
29834 (System Headers): Likewise.
29836 (Traditional macros): Likewise.
29837 (Invocation): Likewise.
29838 (Option Index): Likewise.
29839 * doc/cppopts.texi (-M): Likewise.
29840 (-finput-charset): Likewise.
29841 (--help): Likewise.
29842 * doc.invoke.texi (AVR Options): Likewise.
29843 (V850 Options): Likewise.
29845 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
29848 * ipa-devirt.c: Include demangle.h
29849 (odr_type_d): Add field rtti_broken.
29850 (odr_subtypes_equivalent_p): Do not require name to match.
29851 (compare_virtual_tables): Fix typo; if type already has ODR violation,
29852 bypass the tests; be ready for function referneces in vtables that are
29853 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
29854 (warn_odr): Give up for nameless types.
29855 (warn_types_mismatch): Report mismatch in mangled names;
29856 report mismatch in anonymous namespaces; look into component types to
29857 give useful error; report when mismatch is dragged in from other ODR
29859 (odr_types_equivalent_p): Match types for being polymorphic; avoid
29860 duplicated diagnostics.
29861 (add_type_duplicate): Reorder checks so more informative ones come
29862 first; fix typo; do not output "the extra base is defined here" when
29864 (BINFO_N_BASE_BINFOS): Relax sanity check.
29866 2015-03-22 Martin Liska <mliska@suse.cz>
29867 Jakub Jelinek <jakub@redhat.com>
29869 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
29870 masks that can potentially include a builtin.
29871 (ix86_add_new_builtins): Introduce fast filter for isa values
29872 that cannot trigger builtin inclusion.
29874 2015-03-22 Martin Liska <mliska@suse.cz>
29876 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
29877 (sem_item::update_hash_by_local_refs): Likewise.
29878 (sem_variable::get_hash): Empty line is fixed.
29879 (sem_item_optimizer::execute): Include adding of hash references.
29880 (sem_item_optimizer::update_hash_by_addr_refs): New function.
29881 (sem_item_optimizer::build_hash_based_classes): Use local hash.
29882 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
29883 (sem_item::update_hash_by_local_refs): Likewise.
29885 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29888 * ipa-comdats.c (enqueue_references): Walk through thunks.
29889 (ipa_comdats): Likewise.
29890 (set_comdat_group_1): New function.
29892 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29895 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
29898 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
29899 Gerald Pfeifer <gerald@pfeifer.com>
29901 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
29903 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
29904 Sandra Loosemore <sandra@codesourcery.com>
29906 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
29907 function parameter declaration.
29908 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
29909 Update arguments to nios2_adjust_call_address().
29910 (sibcall_internal): Rename from *sibcall.
29911 (sibcall_value_internal): Rename from *sibcall_value.
29912 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
29913 (nios2_large_got_address): Add target temp reg parameter.
29914 (nios2_got_address): Adjust call to nios2_large_got_address, add
29915 force_reg around it.
29916 (nios2_load_pic_address): Add target temp reg parameter, replace call
29917 to nios2_got_address with corresponding code.
29918 (nios2_legitimize_constant_address): Update call to
29919 nios2_load_pic_address.
29920 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
29921 to use temp reg for PIC loading purposes.
29922 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
29923 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29924 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
29926 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29928 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
29929 usage of "the @option{...}".
29930 (-Wopenmp-simd): Likewise.
29931 (-fsanitize-recover): Likewise.
29932 (-fsanitize-undefined-trap-on-error): Likewise.
29934 (tracer-dynamic-coverage-feedback): Likewise.
29935 (reorder-block-duplicate-feedback): Likewise.
29936 (loop-unroll-jam-size): Likewise.
29939 (-mabs=legacy): Likewise.
29940 (-mupper-regs-df): Likewise.
29941 (-mupper-regs-sf): Likewise.
29942 (-mpointers-to-nested-functions): Likewise.
29944 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29946 * doc/extend.texi (Cilk Plus Builtins): Add markup.
29948 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29950 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
29951 additional index entries and cross-references.
29952 (-fchkp-check-incomplete-type): Likewise.
29953 (-fchkp-first-field-has-own-bounds): Likewise.
29954 (-fchkp-narrow-to-innermost-array): Likewise.
29955 (-fchkp-use-fast-string-functions): Likewise.
29956 (-fchkp-use-nochk-string-functions): Likewise.
29957 (-fchkp-use-static-const-bounds): Likewise.
29958 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29959 (-fchkp-instrument-marked-only): Likewise.
29960 (-fchkp-use-wrappers): Likewise.
29961 (-static-libmpx): Likewise.
29962 (-static-libmpxwrappers): Likewise.
29963 * doc/extend.texi (bnd_legacy): Likewise.
29964 (bnd_instrument): Likewise.
29965 (bnd_variable_size): Likewise.
29966 (Pointer Bounds Checker builtins): Likewise.
29968 2015-03-21 Tom de Vries <tom@codesourcery.com>
29970 PR tree-optimization/65458
29971 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
29972 * cgraph.h (cgraph_node): Add parallelized_function field.
29973 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
29974 (input_overwrite_node): Read parallelized_function field.
29975 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
29976 parallelized_function on cgraph_node for child_fn.
29977 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
29978 Remove include of gt-tree-parloops.h.
29979 (parallelized_functions): Remove static variable.
29980 (parallelized_function_p): Rewrite using parallelized_function field of
29982 (create_loop_fn): Remove adding to parallelized_functions.
29983 * Makefile.in (GTFILES): Remove tree-parloops.c
29985 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
29987 PR rtl-optimization/64366
29988 * lra.c (lra_update_insn_regno_info): Consider regs in
29989 CALL_INSN_FUNCTION_USAGE memory.
29991 2015-03-20 Richard Biener <rguenther@suse.de>
29993 PR middle-end/64715
29994 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
29995 for type comparison and gcc_checking_assert.
29996 (chrec_fold_plus_poly_poly): Likewise.
29997 (chrec_fold_multiply_poly_poly): Likewise.
29998 (chrec_convert_1): Likewise.
29999 * gimplify.c (gimplify_expr): Remove premature folding of
30000 &X + CST to &MEM[&X, CST].
30002 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30004 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30006 (ipa_inline): Recompute inline_failed codes.
30007 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30008 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30011 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
30013 PR rtl-optimization/60851
30014 * recog.c (constrain_operands): Accept a pseudo register before reload
30015 for LRA enabled targets.
30017 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
30020 * config/rs6000/predicates.md (easy_fp_constant): Remove special
30021 -ffast-math handling that kept non-0 constants live in the RTL
30022 until reload. Remove logic testing the number of instructions it
30023 took to create a constant in a GPR that was never used, due to a
30024 test for soft-float earlier.
30025 (memory_fp_constant): Delete, no longer used.
30027 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30028 alternatives for loading non-0 constants into GPRs for hard
30029 floating point that is no longer needed due to changes in
30030 easy_fp_constant. Add support for loading 0.0 into GPRs.
30031 (mov<mode>_hardfloat32): Likewise.
30032 (mov<mode>_hardfloat64): Likewise.
30033 (mov<mode>_64bit_dm): Likewise.
30034 (movtd_64bit_nodm): Likewise.
30035 (pre-reload move FP constant define_split): Delete define_split,
30036 since it is no longer used.
30037 (extenddftf2_internal): Remove GHF constraints that are not valid
30040 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
30042 PR rtl-optimization/63491
30043 * lra-constraints.c (check_and_process_move): Use src instead of
30044 sreg. Remove some dead code.
30046 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
30049 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30050 (sem_variable::merge): Likewise.
30052 2015-03-19 Martin Liska <mliska@suse.cz>
30055 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30056 all fields of cgraph_thunk_info.
30058 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
30060 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30061 clone instrumented thunks.
30063 2015-03-19 Richard Biener <rguenther@suse.de>
30066 2015-03-10 Richard Biener <rguenther@suse.de>
30068 PR middle-end/63155
30069 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30070 * tree-ssa-coalesce.c: Include timevar.h.
30071 (attempt_coalesce): Handle graph being NULL.
30072 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30073 Split out abnormal coalescing to ...
30074 (perform_abnormal_coalescing): ... this function.
30075 (coalesce_ssa_name): Perform abnormal coalescing without computing
30077 (verify_ssa_coalescing_worker): New function.
30078 (verify_ssa_coalescing): Likewise.
30080 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30081 Jakub Jelinek <jakub@redhat.com>
30084 * tsan.c (instrument_gimple): Clear tail call flag on
30087 2015-03-19 Jakub Jelinek <jakub@redhat.com>
30090 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30091 call in the return bb.
30092 (find_split_points): Add RETURN_BB argument, don't call
30094 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
30095 if true append TSAN_FUNC_EXIT internal call after the call to
30096 the split off function.
30097 (execute_split_functions): Call find_return_bb here.
30098 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30099 Adjust find_split_points and split_function calls.
30101 2015-03-18 DJ Delorie <dj@redhat.com>
30103 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30104 (iorqi3_virt): Likewise.
30106 2015-03-18 Tom de Vries <tom@codesourcery.com>
30108 * tree-parloops.c (parallelize_loops): Make static.
30109 * tree-parloops.h (parallelize_loops): Remove extern declaration.
30111 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
30113 PR middle-end/64491
30115 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
30117 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30118 condition would be removed due to undefined behaviour.
30120 2015-03-18 Martin Liska <mliska@suse.cz>
30123 * cgraph.c (cgraph_node::get_create): Remove unnecessary
30124 xstrdup_for_dump wrapper.
30125 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30127 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30128 with xstrdup_for_dump.
30129 (sem_variable::equals): Likewise.
30130 (sem_item_optimizer::read_section): Use symtab_node::name instead of
30132 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30133 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30134 symtab_node::asm_name with xstrdup_for_dump.
30135 (congruence_class::dump): Use symtab_node::name instead of
30137 * ipa-icf.h (symtab_node::name): Remove.
30138 (symtab_node::asm_name): Likewise.
30140 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30142 PR tree-optimization/65450
30143 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30145 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30146 it instead of duplicate_ssa_name_ptr_info.
30149 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30151 2015-03-18 Richard Biener <rguenther@suse.de>
30153 * tree-data-ref.h (struct access_matrix): Remove.
30154 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30155 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30156 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30157 (am_vector_index_for_loop): Likewise.
30158 (struct data_reference): Remove access_matrix member.
30159 (DR_ACCESS_MATRIX): Remove.
30160 (lambda_vector_new): Add comment.
30161 (lambda_matrix_new): Use XOBNEWVEC.
30163 2015-03-18 Richard Biener <rguenther@suse.de>
30165 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30166 (pass_ch::execute): Cleanup the CFG only if we did sth.
30167 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30169 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30171 * expmed.c (synth_mult): Use std::swap instead of manually
30172 swapping algorithms.
30174 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30177 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30179 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
30182 * config/avr/avr.opt (-nodevicelib): New option.
30183 * doc/invoke.texi (AVR Options): Document it.
30184 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30185 libgcc.a, libc.a, libm.a.
30186 * config/avr/specs.h: Same.
30187 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30188 which don't (directly) depend on the device. Print more help.
30189 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30190 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30191 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30193 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30194 for specs file name.
30195 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30196 * config/avr/avr-mcus.def: Adjust initializers and comments.
30198 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
30200 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30201 DECL_ONE_ONLY to check if decl is one only.
30202 * ipa-split.c (consider_split): Limit splitt of one only functions.
30204 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30206 PR tree-optimization/65427
30207 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30209 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30211 2015-03-16 Marek Polacek <polacek@redhat.com>
30213 * cgraph.h (add_new_static_var): Remove declaration.
30214 * varpool.c (add_new_static_var): Remove function.
30216 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30218 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30219 instead of vec<tree> * with vec_alloc and release for args.
30222 PR middle-end/65431
30223 * omp-low.c (delete_omp_context): Only splay_tree_delete
30224 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30225 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
30227 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
30230 * cfgexpand.c (align_base): New function.
30231 (alloc_stack_frame_space): Call it.
30232 (expand_stack_vars): Align prev_frame to be sure
30233 data->asan_vec elements aligned properly.
30235 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
30237 PR middle-end/65409
30238 * expr.c (store_field): Do not do a direct block copy if the source is
30239 a PARALLEL with BLKmode.
30241 2015-03-16 Tom de Vries <tom@codesourcery.com>
30243 PR middle-end/65414
30245 2015-03-12 Tom de Vries <tom@codesourcery.com>
30247 PR rtl-optimization/64895
30248 * lra-lives.c (check_pseudos_live_through_calls): Use
30249 actual_call_used_reg_set instead of call_used_reg_set, if available.
30251 2015-03-16 Alan Modra <amodra@gmail.com>
30254 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30255 Modify Z->r bswapdi splitter to use dest in place of scratch.
30256 In r->Z and Z->r bswapdi splitter rename word_high, word_low
30257 to word1, word2 and rearrange logic to suit.
30258 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30259 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
30260 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30261 Add one '?' on r->r. Modify Z->r splitter to avoid need for
30264 2015-03-14 Jakub Jelinek <jakub@redhat.com>
30266 PR tree-optimization/65369
30267 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30268 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30269 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30271 PR tree-optimization/65418
30272 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30273 are casts in the first PLUS_EXPR operand, ensure tbias and
30274 *totallowp are in the inner type.
30276 PR rtl-optimization/65401
30277 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30278 argument. If true, adjust_address_nv of x with big-endian
30279 correction for the mode widening to GET_MODE (y).
30280 (make_field_assignment): Don't do MEM mode widening here.
30281 Use MEM_P instead of GET_CODE == MEM.
30283 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
30285 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30286 the external decls.
30288 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30291 * config/arm/arm.c (arm_gen_constant, AND case): Use
30292 ARM_SIGN_EXTEND when constructing AND mask.
30294 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30296 * graph.c (print_graph_cfg): Make function names visible and append
30297 parenthesis to it. Also make groups of basic blocks belonging to the
30298 same function visible.
30300 2015-03-12 Richard Biener <rguenther@suse.de>
30302 PR middle-end/44563
30303 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30304 to avoid quadratic behavior with inline expansion splitting blocks.
30305 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30306 with the successor if the predecessor will be merged with it.
30307 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30308 entry block with its successor.
30310 2015-03-13 Richard Biener <rguenther@suse.de>
30312 PR middle-end/44563
30313 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30314 (cleanup_tree_cfg_1): Do not call it.
30315 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30316 (fixup_noreturn_call): Mark the stmt as control altering.
30317 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30319 (pass_data_fixup_cfg): Produce a dump file.
30320 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30321 (need_noreturn_fixup): New global.
30322 (pass_dominator::execute): Fixup queued noreturn calls.
30323 (optimize_stmt): Queue calls that became noreturn for fixup.
30324 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30325 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30326 (el_to_fixup): New global.
30327 (eliminate_dom_walker::before_dom_childre): Queue calls that
30328 became noreturn for fixup.
30329 (eliminate): Fixup queued noreturn calls.
30330 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30331 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30332 (substitute_and_fold_dom_walker::before_dom_children): Queue
30333 alls that became noreturn for fixup.
30334 (substitute_and_fold): Fixup queued noreturn calls.
30336 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
30338 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30339 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30340 are building; for methods check ODR type of class they belong to if
30341 they may lead to a polymorphic call.
30342 (sem_function::compare_polymorphic_p): Be bit smarter about testing
30343 when function may lead to a polymorphic call.
30344 (sem_function::compare_type_list): Remove.
30345 (sem_variable::equals): Update use of compatible_types_p.
30346 (sem_variable::parse_tree_refs): Remove.
30347 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30349 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30351 (func_checker::compatible_polymorphic_types_p): Break out from ...
30352 (unc_checker::compatible_types_p): ... here.
30353 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30355 (unc_checker::compatible_types_p): Update.
30356 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30359 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30361 PR rtl-optimization/65235
30362 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30363 When first element of vec_concat is const_int, calculate its size
30364 using second element.
30366 2015-03-12 Richard Biener <rguenther@suse.de>
30368 PR middle-end/65270
30369 * fold-const.c (operand_equal_p): Fix ordering of resetting
30370 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30372 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30374 * config/s390/s390.c (s390_reorg): Move code to output nops after label
30376 (s390_asm_output_function_label): Likewise.
30377 * config/s390/s390.c (s390_asm_output_function_label):
30378 Fix function label alignment with -mhtopatch.
30379 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30380 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30381 ("nop_2_byte"): New define_insn.
30382 ("nop_4_byte"): Likewise.
30383 ("nop_6_byte"): Likewise.
30384 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30385 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30387 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30390 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30393 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30396 * toplev.c (process_options): Restrict Pointer Bounds Checker
30397 usage with Address Sanitizer.
30399 2015-03-12 Richard Biener <rguenther@suse.de>
30401 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30403 * omp-low.c (expand_omp_taskreg): Split block before removing
30405 (expand_omp_target): Likewise.
30406 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30407 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30408 stmt to split_block.
30410 2015-03-12 Tom de Vries <tom@codesourcery.com>
30412 PR rtl-optimization/64895
30413 * lra-lives.c (check_pseudos_live_through_calls): Use
30414 actual_call_used_reg_set instead of call_used_reg_set, if available.
30416 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30418 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30419 (cgraph_node::remove): Likewise.
30420 (cgraph_node::get_untransformed_body): Likewise.
30421 * varpool.c (varpool_node::remove): Likewise.
30422 (varpool_node::get_constructor): Add sanity check.
30424 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
30426 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30428 (-fabi-compat-version): Likewise.
30429 (-ffriend-injection): Likewise.
30430 (-Wdeclaration-after-statement): Likewise.
30431 (-fomit-frame-pointer): Likewise.
30432 (-ftree-coalesce-inlined-vars): Likewise.
30433 (-fvisibility=): Likewise.
30434 * doc/extend.texi (Typeof): Likewise.
30435 (Zero Length): Likewise.
30436 (Escaped Newlines): Likewise.
30437 (Compound Literals): Likewise.
30438 (Function Attributes): Likewise.
30439 (Label Attributes): Likewise.
30440 (Type Attributes): Likewise.
30441 (Function Names): Likewise.
30442 (Other Builtins): Likewise.
30443 (Function Specific Option Pragmas): Likewise.
30444 (C++ Interface): Likewise.
30446 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
30448 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
30450 2015-03-11 Marek Polacek <polacek@redhat.com>
30452 PR tree-optimization/65388
30453 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
30455 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30458 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
30459 * configure: Regenerate.
30460 * config.in: Regenerate.
30461 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
30462 [-mn-flash]: Document it.
30463 [__AVR_ARCH__]: Document avrtiny.
30465 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
30466 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
30467 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
30469 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30471 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
30473 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
30476 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
30477 allow reloads of PLUS in floating point/VSX registers.
30479 2015-03-11 Junmo Park <junmoz.park@samsung.com>
30481 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
30482 crypto_sha256_fast.
30483 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
30485 2015-03-11 Richard Biener <rguenther@suse.de>
30487 PR tree-optimization/65310
30488 * tree-sra.c (build_ref_for_offset): Also preserve larger
30491 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
30493 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
30495 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30498 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
30500 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
30502 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30504 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
30505 (sem_function::equals_wpa): ... here.
30507 2015-03-10 Marek Polacek <polacek@redhat.com>
30508 Jakub Jelinek <jakub@redhat.com>
30511 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
30512 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
30515 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30518 * config/rs6000/t-linux: For powerpc64* target set
30519 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
30521 2015-03-10 Richard Biener <rguenther@suse.de>
30523 PR middle-end/44563
30524 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
30525 for redirect_all_calls.
30527 2015-03-10 Marek Polacek <polacek@redhat.com>
30529 * gdbinit.in (pcfun): Define and document.
30531 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
30533 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
30534 of libgomp-plugin.h.
30535 (find_target_compiler): Support a case when the path to gcc is
30536 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30537 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
30538 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
30540 (main): Use GCC_INSTALL_NAME as target_driver_name.
30541 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
30543 (mkoffload.o): Remove obsolete include path and defines.
30544 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
30546 2015-03-10 Richard Biener <rguenther@suse.de>
30548 PR middle-end/63155
30549 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30550 * tree-ssa-coalesce.c: Include timevar.h.
30551 (attempt_coalesce): Handle graph being NULL.
30552 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30553 Split out abnormal coalescing to ...
30554 (perform_abnormal_coalescing): ... this function.
30555 (coalesce_ssa_name): Perform abnormal coalescing without computing
30557 (verify_ssa_coalescing_worker): New function.
30558 (verify_ssa_coalescing): Likewise.
30560 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30563 * config.gcc (extra_options) [avr]: Remove.
30564 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
30565 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
30566 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
30568 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
30569 (-mmcu=): Add Var and MissingArgError properties.
30571 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
30572 * config/avr/t-multilib: Regenerate.
30573 * config/avr/specs.h: New file.
30574 * config/avr/driver-avr.c: New file.
30575 * config/avr/genopt.sh: Remove file.
30576 * config/avr/avr-tables.opt: Remove file.
30577 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
30578 * config/avr/avr-c.c: Same.
30579 * avr-arch.h: Same.
30580 (avr_current_device): Remove proto.
30581 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
30582 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
30583 (EXTRA_SPEC_FUNCTIONS): Define.
30584 (avr_devicespecs_file): New specs function proto.
30585 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
30586 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
30587 (avr_current_device): Remove definition and usage.
30588 (avr_set_core_architecture): New static function.
30589 (avr_option_override): Use it.
30590 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
30591 (mcu_name): New static array.
30592 (comparator, avr_archs_str, avr_mcus_str): New static functions.
30593 (avr_inform_devices, avr_inform_core_architectures): New functions.
30594 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
30595 (avrlibc.h) [WITH_AVRLIBC]: Include.
30596 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
30597 (print_mcu): Rewrite from scratch.
30598 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
30599 Forward to avr-specific specs defined in device-specs file.
30600 * config/avr/t-avr (driver-avr.o): New rule.
30601 (avr-devices.o): Depend on avr-arch.h.
30602 (avr-mcus): No more depend on avr-tables.opt.
30603 (avr-tables.opt): Remove rule.
30604 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
30606 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30608 * c-family/c.opt (fchkp-use-wrappers): New.
30609 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
30610 (chkp_wrap_function): New.
30611 (chkp_build_instrumented_fndecl): Support wrapped
30613 * doc/invoke.texi (-fcheck-pointer-bounds): New.
30614 (-fchkp-check-incomplete-type): New.
30615 (-fchkp-first-field-has-own-bounds): New.
30616 (-fchkp-narrow-bounds): New.
30617 (-fchkp-narrow-to-innermost-array): New.
30618 (-fchkp-optimize): New.
30619 (-fchkp-use-fast-string-functions): New.
30620 (-fchkp-use-nochk-string-functions): New.
30621 (-fchkp-use-static-bounds): New.
30622 (-fchkp-use-static-const-bounds): New.
30623 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
30624 (-fchkp-check-read): New.
30625 (-fchkp-check-write): New.
30626 (-fchkp-store-bounds): New.
30627 (-fchkp-instrument-calls): New.
30628 (-fchkp-instrument-marked-only): New.
30629 (-fchkp-use-wrappers): New.
30630 (-static-libmpx): New.
30631 (-static-libmpxwrappers): New.
30633 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30635 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
30636 (CHKP_SPEC): Add wrappers library.
30637 * c-family/c.opt (static-libmpxwrappers): New.
30639 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30641 * config/i386/linux-common.h (LIBMPX_LIBS): New.
30642 (LIBMPX_SPEC): New.
30644 * gcc.c (CHKP_SPEC): New.
30645 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
30646 * c-family/c.opt (static-libmpx): New.
30648 2015-03-10 Richard Biener <rguenther@suse.de>
30650 PR middle-end/44563
30651 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
30653 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
30654 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
30655 (cgraph_add_edge_to_call_site_hash): Likewise.
30656 (cgraph_node::get_edge): Likewise.
30657 (cgraph_edge::set_call_stmt): Likewise.
30658 (cgraph_edge::remove_caller): Likewise.
30660 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
30662 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
30663 (callee_saved_gpr_regs_size): ... this.
30664 (callee_saved_regs_first_regno): Rename to ...
30665 (callee_saved_first_gpr_regno): ... this.
30666 (callee_saved_regs_last_regno) Rename to ...
30667 (callee_saved_last_gpr_regno): ... this.
30668 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
30670 (nds32_initial_elimination_offset): Likewise.
30671 (nds32_expand_prologue): Likewise.
30672 (nds32_expand_epilogue): Likewise.
30673 (nds32_expand_prologue_v3push): Likewise.
30674 (nds32_expand_epilogue_v3pop): Likewise.
30675 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
30676 Adjust renamed variables.
30677 (nds32_output_stack_pop): Likewise.
30679 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
30681 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
30684 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30686 PR rtl-optimization/65321
30687 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
30689 * var-tracking.c (use_narrower_mode): Likewise.
30691 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30693 PR tree-optimization/65355
30694 * varasm.c (notice_global_symbol): Do not produce RTL.
30695 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
30697 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
30698 check for section anchors.
30700 2015-03-10 Alan Modra <amodra@gmail.com>
30703 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
30704 to be single-arch by default. Set cpu_is_64bit for powerpc64
30705 given --with-cpu=native.
30706 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
30707 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
30709 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
30710 rs6000_isa_flags rather than TARGET_64BIT.
30712 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
30713 Kaz Kojima <kkojima@gcc.gnu.org>
30715 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
30717 2015-03-09 Jakub Jelinek <jakub@redhat.com>
30720 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
30721 on a TREE_BINFO, instead use BINFO_TYPE.
30723 2015-03-09 Richard Biener <rguenther@suse.de>
30725 PR middle-end/65270
30726 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
30727 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
30728 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
30729 of that. When comparing dereferences compare alignment.
30730 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
30732 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
30734 * ipa-inline-analysis.c (check_callers): Check
30735 node->can_remove_if_no_direct_calls_and_refs_p.
30736 (growth_likely_positive): Reorganize to call
30737 can_remove_if_no_direct_calls_p later.
30738 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
30739 will_be_removed_from_program_if_no_direct_calls_p): Add
30740 will_inline parameter.
30741 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
30742 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30743 Handle inliner case correctly.
30745 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
30747 PR tree-optimization/63743
30748 * cfgexpand.c (reorder_operands): Also reorder if only second operand
30749 had its definition forwarded by TER.
30751 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
30754 * ipa-utils.h (types_odr_comparable): Add strict argument.
30755 * ipa-devirt.c: Fix whitespace;
30756 (odr_hasher): Remove.
30757 (odr_name_hasher, odr_vtable_hasher): New hashers.
30758 (can_be_name_hashed_p): New predicate.
30759 (hash_type_name): remove.
30760 (hash_odr_name): New.
30761 (odr_name_hasher::hash): new.
30762 (can_be_vtable_hashed_p): New.
30763 (hash_odr_vtable): New.
30764 (odr_vtable_hasher::hash): New.
30765 (types_same_for_odr): Add strict parameter.
30766 (types_odr_comparable): Likewise.
30767 (odr_name_hasher::equal): New.
30768 (odr_vtable_hasher::equal): New.
30769 (odr_name_hasher::remove): New.
30770 (odr_hash_type): Change to hash_table<odr_name_hasher>.
30771 (odr_vtable_hash_type): New.
30772 (odr_vtable_hash): New.
30773 (odr_subtypes_equivalent_p): Do strict comparsion.
30774 (add_type_duplicate): Merge type names; cleanup; avoid type
30776 (register_odr_type): Initialize vtable hash.
30777 (build_type_inheritance_graph): Likewise
30778 (get_odr_type): Reorg to use two hashes.
30779 (dump_possible_polymorphic_call_targets): Move sanity check after debug
30781 (ipa_devirt): Dump type_inheritance_graph.
30782 (types_same_for_odr): Add strict mode.
30784 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30787 * cgraph.h (symtab_node): Add definition_alignment,
30788 can_increase_alignment_p and increase_alignment.
30789 * symtab.c (symtab_node::can_increase_alignment_p,
30790 increase_alignment_1, symtab_node::increase_alignment,
30791 symtab_node::definition_alignment): New.
30792 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
30793 can_increase_alignment_p.
30794 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
30795 * tree-vect-stmts.c (ensure_base_align): Likewise.
30796 * varasm.c (function_section_1): Use definition_alignment.
30797 (assemble_start_function): Likewise.
30798 (emit_local): likewise.
30799 (build_constant_desc): Likewsie.
30800 (output_constant_def_contents): Likewise.
30801 (place_block_symbol): Likewise.
30802 (output_object_block): Likewise.
30804 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30807 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
30808 when outputting debug.
30810 2015-03-07 Marek Polacek <polacek@redhat.com>
30811 Martin Uecker <uecker@eecs.berkeley.edu>
30814 * doc/invoke.texi: Update description of -fsanitize=bounds.
30816 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
30818 * tree-ssa-phiopt.c (neg_replacement): Remove.
30819 (tree_ssa_phiopt_worker): Remove negate optimization.
30821 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30824 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
30826 2015-03-06 Richard Biener <rguenther@suse.de>
30828 PR middle-end/64928
30829 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
30830 and liveout_obstack members.
30831 (calculate_live_on_exit): Remove.
30832 (calculate_live_ranges): Change declaration.
30833 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
30834 (new_tree_live_info): Adjust.
30835 (calculate_live_ranges): Delete livein when not wanted.
30836 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
30837 Deal with partly deleted live info.
30838 (loe_visit_block): Remove temporary bitmap by using
30839 bitmap_ior_and_compl_into.
30840 (live_worklist): Adjust accordingly.
30841 (calculate_live_on_exit): Make static.
30842 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
30843 we do not need livein.
30845 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
30847 * real.c (real_from_string): Fix typo in assertion.
30849 2015-03-06 Alex Velenko <alex.velenko@arm.com>
30851 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
30854 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30856 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
30858 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
30861 * lra-assigns.c (find_hard_regno_for): Rename to
30862 find_hard_regno_for_1. Add a new parameter.
30863 (find_hard_regno_for): New function using find_hard_regno_for_1.
30865 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30867 PR rtl-optimization/65067
30868 * expmed.c (store_bit_field, extract_bit_field): Reworked the
30869 strict volatile bitfield handling.
30871 2015-03-05 Martin Liska <mliska@suse.cz>
30874 * ipa-icf.c (sem_variable::equals): Compare variables types.
30876 2015-03-05 Richard Henderson <rth@redhat.com>
30879 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
30880 correctly check weak symbol binding.
30882 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
30884 PR middle-end/65315
30885 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
30888 2015-03-05 Martin Liska <mliska@suse.cz>
30890 * ipa-inline.c (inline_small_functions): Set default value to
30891 prevent warning during bootstrap.
30892 * tree.h: Add pragma guard that ignores false positives during
30895 2015-03-05 Richard Biener <rguenther@suse.de>
30897 PR tree-optimization/65310
30898 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30899 Properly preserve alignment of the base of the access.
30901 2015-03-05 Richard Biener <rguenther@suse.de>
30904 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
30905 Compare dependence info.
30907 2015-03-05 Richard Biener <rguenther@suse.de>
30909 PR middle-end/65233
30910 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
30912 (walk_ssa_copies): Revert last chage. Instead do not walk
30913 SSA names registered for SSA update.
30915 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30918 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
30919 vtable references for their containing type.
30920 (sem_function::equals_wpa): Compare TYPE_RESTRICT
30921 and type attributes.
30923 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
30925 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
30926 before negating it.
30927 * stor-layout.c (finalize_record_size): Revert latest change.
30929 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
30931 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
30933 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30935 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
30936 for correct comdat handling.
30937 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30939 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
30940 (used_from_object_file_p_worker): Remove.
30941 (cgraph_node::only_called_directly_or_alised): Add
30942 used_from_object_file_p.
30943 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
30944 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
30945 can_remove_if_no_direct_calls_and_refs_p.
30947 2015-03-04 Nick Clifton <nickc@redhat.com>
30949 * config/rl78/rl78.h (enum reg_class): Remove real registers from
30950 General register class.
30951 * config/rl78/rl78-real.md: Replace general register constraints
30952 with real+virtual register constraints.
30954 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30956 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
30957 from checking for -mhtm option.
30959 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30961 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
30962 (struct ipa_sra_check_caller_data): Add has_thunk field.
30963 (ipa_sra_check_caller): Check for thunk.
30964 (ipa_sra_preliminary_function_checks): Give up on function with
30966 (ipa_early_sra): Use call_for_symbol_and_aliases.
30968 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
30971 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
30972 called for __stack_chk_guard symbol.
30974 2015-03-03 DJ Delorie <dj@redhat.com>
30976 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
30978 (*addhi3_real): Likewise.
30979 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
30980 pattern to match incrementing memory.
30981 * config/rl78/predicates.md (rl78_1_2_operand): New.
30982 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
30983 it's the same and only mem.
30984 (rl78_alloc_physical_registers_op2): If there's effectively only
30985 one MEM, transcode it into HL.
30986 (rl78_far_p): Reject addresses that aren't legitimate.
30988 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30990 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
30993 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
30995 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30997 Implement call0 ABI for xtensa
30998 * config/xtensa/constraints.md ("a" constraint): Include stack
30999 pointer in case of call0 ABI.
31000 ("q" constraint): Make empty in case of call0 ABI.
31001 ("D" constraint): Include stack pointer in case of call0 ABI.
31002 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31003 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31005 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31007 (xtensa_regno_to_class): Make it a local variable in the
31008 function xtensa_regno_to_class.
31009 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31010 macro, function prototype and implementation.
31011 (reg_nonleaf_alloc_order): Make it a local variable in the
31012 function order_regs_for_local_alloc.
31013 (xtensa_conditional_register_usage): New function.
31014 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31015 (xtensa_valid_move): Allow direct moves to stack pointer
31016 register in call0 ABI.
31017 (xtensa_setup_frame_addresses): Only spill register windows in
31019 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31020 call0 ABI respectively.
31021 (xtensa_function_arg_1): Only mark a7 register for copying in
31023 (xtensa_call_save_reg): New function.
31024 (compute_frame_size): Add space for callee saved register
31025 storage to the frame size in call0 ABI.
31026 (xtensa_expand_prologue): Generate code to set up stack frame
31027 and save callee-saved registers in call0 ABI.
31028 (xtensa_expand_epilogue): New function.
31029 (xtensa_set_return_address): New function.
31030 (xtensa_return_addr): Calculate return address in call0 ABI.
31031 (xtensa_builtin_saveregs): Only mark a7 register for copying and
31032 emit copying code in windowed ABI.
31033 (order_regs_for_local_alloc): Add preferred register allocation
31034 order for non-leaf function in call0 ABI.
31035 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31036 (xtensa_asm_trampoline_template): Add trampoline generation for
31038 (xtensa_trampoline_init): Add trampoline initialization for
31040 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31042 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31043 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31044 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31045 ABI call-used registers.
31046 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31047 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31049 (REG_CLASS_CONTENTS): Include all registers into the preferred
31050 reload registers set, adjust the set in the
31051 xtensa_conditional_register_usage.
31052 (xtensa_regno_to_class): Drop variable declaration.
31053 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31055 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31057 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31058 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31059 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31060 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31061 location in call0 ABI.
31062 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31063 stack adjustment size when handling exception.
31064 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31065 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31067 ("return" pattern): Generate ret.n/ret in call0 ABI.
31068 ("epilogue" pattern): Expand epilogue.
31069 ("nonlocal_goto" pattern): Use default in call0 ABI.
31070 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31071 emit eh_set_a0_* depending on ABI.
31072 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31073 ("eh_set_a0_call0", "blockage"): New patterns.
31075 2015-03-03 Martin Liska <mliska@suse.cz>
31078 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31080 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31083 * config/rs6000/rs6000-tables.opt: Regenerate table.
31085 2015-03-03 Renlin Li <renlin.li@arm.com>
31087 * doc/md.texi (@item ^): Change ? into ^.
31089 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
31091 * doc/tm.texi: Regenerated.
31093 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31095 * builtins.c (expand_builtin_return_addr): Add
31096 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31097 surrounding #ifdef.
31098 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31100 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31102 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31104 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31107 2015-03-03 Martin Jambor <mjambor@suse.cz>
31108 Eric Botcazou <ebotcazou@adacore.com>
31110 * tree-sra.c (ipa_sra_check_caller_data): New type.
31111 (has_caller_p): Removed.
31112 (ipa_sra_check_caller): New function.
31113 (ipa_sra_preliminary_function_checks): Use it.
31115 2015-03-03 Martin Liska <mliska@suse.cz>
31117 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31118 instead of if branch.
31120 2015-03-03 Martin Liska <mliska@suse.cz>
31123 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31125 2015-03-23 Jeff Law <law@redhat.com>
31127 PR tree-optimization/65241
31128 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31129 hash table if INSERT is true.
31131 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31134 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31136 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31139 * config/avr/avr.c (context.h, tree-pass.h): Include them.
31140 (avr_pass_data_recompute_notes): New static variable.
31141 (avr_pass_recompute_notes): New class.
31142 (avr_register_passes): New static function.
31143 (avr_option_override): Call it.
31145 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31147 Fix various problems with specs file generation.
31150 * config.gcc (extra_gcc_objs) [avr]: Remove.
31151 * config/avr/driver-avr.c: Remove file.
31152 * config/avr/t-avr (driver-avr.o): Remove rule.
31153 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31154 INCLUDES to build. Depend on TM_H.
31155 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
31156 build warnings. Fix non-matching types and non-existing %-codes.
31158 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31159 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31160 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31161 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31162 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31163 (LIBGCC_SPEC): Remove definitions.
31165 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31167 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31168 to create a register in testing mode.
31170 2015-03-03 Martin Liska <mliska@suse.cz>
31171 Jan Hubicka <hubicka@ucw.cz>
31174 * cgraph.c (cgraph_node::has_thunk_p): New function.
31175 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31176 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31177 (sem_function::merge): Assert is changed.
31179 2015-03-03 Martin Liska <mliska@suse.cz>
31180 Martin Jambor <mjambor@suse.cz>
31183 * ipa-icf.c (sem_item_optimizer::execute): Change function
31184 return value to boolean.
31185 (sem_item_optimizer::merge_classes): Likewise.
31186 (ipa_icf_driver): Return TODO_remove_functions in case there's
31187 a merge operation processed.
31188 * ipa-icf.h: Change function return value to boolean.
31190 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31193 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31194 processor type for 64-bit little endian PowerPC.
31196 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31197 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
31198 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
31199 printing built-in mask so it does not pass NULL pointers.
31201 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31204 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
31207 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31208 !ISA_HAS_FP_CONDMOVE.
31210 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
31212 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31215 2015-03-02 Ulrich Drepper <drepper@gmail.com>
31217 * doc/invoke.texi (Options for Code Generation Conventions):
31218 Fix URL of DSO paper.
31220 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31223 * ipa-inline.c (check_callers): Looks for recursion.
31224 (inline_to_all_callers): Give up on uninlinable or recursive edges.
31225 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31226 summary of inline clones.
31227 (do_estimate_growth_1): Fix recursion check.
31229 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31232 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31235 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31236 Aldy Hernandez <aldyh@redhat.com>
31239 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31240 when checking TYPE_BINFO.
31242 2015-03-02 Richard Biener <rguenther@suse.de>
31245 * ipa-icf-gimple.c: Include builtins.h.
31246 (func_checker::compare_memory_operand): Compare base alignment.
31248 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31251 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31252 passed by reference.
31254 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31257 * tree-chkp.c (chkp_check_lower): Don't check against
31258 zero bounds for already instrumented functions.
31259 (chkp_check_upper): Likewise.
31260 (chkp_fini): Clean pass local data to avoid wrong reusage.
31262 2015-02-28 Martin Liska <mliska@suse.cz>
31263 Jan Hubicka <hubicka@ucw.cz>
31265 * ipa-icf.c (sem_variable::equals): Improve debug output;
31266 get variable constructor.
31267 (sem_variable::parse): Do not filter out too early; give up on
31268 volatile and register vars.
31269 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31271 * ipa-icf.h (sem_variable::init): Do not set ctor.
31272 (sem_variable::ctor): Remove.
31274 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
31276 PR middle-end/65233
31277 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31279 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31281 * ipa-icf.c: Include stor-layout.h
31282 (sem_function::compare_cgraph_references): Rename to ...
31283 (sem_item::compare_cgraph_references): ... this one.
31284 (sem_variable::equals_wpa): New function
31285 (sem_variable::equals): Do not check stuff already verified by
31287 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31288 * ipa-icf.h (sem_item): Add compare_cgraph_references.
31289 (sem_function): Remove compare_cgraph_references.
31290 (sem_variable): Turns equals_wpa into non-inline.
31292 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31294 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31295 (sem_item::add_expr): New function.
31296 (sem_function::hash_stmt): Handle operands of most statements.
31297 (sem_variable::get_hash): Hash the actual constructor.
31298 * ipa-icf.h (sem_item): Add add_expr.
31299 (sem_function): Update prototype of hash_stmt
31301 2015-02-28 Martin Liska <mliska@suse.cz>
31302 Jan Hubicka <hubicka@ucw.cz>
31305 * ipa-icf-gimple.c (func_checker::compare_function_decl):
31307 (func_checker::compare_variable_decl): Skip symtab vars.
31308 (func_checker::compare_cst_or_decl): Update.
31309 * ipa-icf.c (sem_function::parse): Do not consider aliases.
31310 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31311 use correct symtab predicates.
31312 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31313 (sem_variable::parse): Update comment.
31314 (sem_item_optimizer::build_graph): Consider ultimate aliases
31317 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31319 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31322 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31324 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31325 (sem_variable::merge) Likewise.
31327 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31329 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31330 target; also match flag_ipa_devirt.
31332 2015-03-01 Martin Liska <mliska@suse.cz>
31333 Jan Hubicka <hubicka@ucw.cz>
31335 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31336 Validate variable alignment.
31337 * ipa-icf.c (sem_function::equals_private): Be more precise
31338 about non-common function attributes.
31339 (sem_variable::equals): Likewise.
31341 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31344 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31345 across COMDAT group boundary.
31347 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31350 * ipa-icf.c (clear_decl_rtl): New function.
31351 (sem_function::merge): Clear RTL before forming alias.
31352 (sem_variable::merge): Clear RTL before forming alias.
31354 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31357 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31359 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
31361 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31364 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31366 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31367 a typo in the description.
31369 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31372 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31373 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31374 * lra-constraints.c: Include "params.h".
31375 (EBB_PROBABILITY_CUTOFF): Use
31376 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31377 (lra_inheritance): Use '<' instead of '<=' for
31378 EBB_PROBABILITY_CUTOFF.
31379 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31382 2015-02-27 Martin Liska <mliska@suse.cz>
31384 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31385 vector length condition.
31387 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
31389 * doc/extend.texi (x86 transactional memory intrinsics):
31390 Reorganize discussion of _xbegin. Clarify that the return
31391 value is a bit mask. Expand example and move to end of section.
31393 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31394 Aldy Hernandez <aldyh@redhat.com>
31396 PR rtl-optimization/65220
31397 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31399 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31402 * lra-remat.c (update_scratch_ops): New.
31403 (do_remat): Call it.
31404 * lra.c (lra_register_new_scratch_op): New. Take code from ...
31405 (remove_scratches): ... here.
31406 * lra-int.h (lra_register_new_scratch_op): New prototype.
31408 2015-02-27 Marek Polacek <polacek@redhat.com>
31411 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31412 -Wformat-signedness anymore.
31414 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31416 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31418 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31420 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31422 * config/s390/s390.c (enum s390_builtin):
31423 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31424 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31425 (s390_init_builtins): Generate new builtin functions.
31426 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31427 (s390_sfpc, s390_efpc): New pattern definitions.
31429 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31431 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
31432 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
31433 (s390_builtin_decls): New array.
31434 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
31435 (s390_builtin_decl): New function.
31436 (TARGET_BUILTIN_DECL): Define macro.
31438 2015-02-27 Richard Biener <rguenther@suse.de>
31440 PR middle-end/63175
31441 * builtins.c (get_object_alignment_2): Make sure to re-apply
31442 the ANDed mask after recursing to its operand gets us a new
31443 misalignment bit position.
31445 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
31446 Martin Liska <mliska@suse.cz>
31449 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
31450 Use address_matters_p.
31451 (redirect_all_callers, set_addressable): New functions.
31452 (sem_function::merge): Reorganize and fix merging issues.
31453 (sem_variable::merge): Likewise.
31454 (sem_variable::compare_sections): Remove.
31455 * common.opt (fmerge-all-constants, fmerge-constants): Remove
31457 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
31459 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
31461 (address_matters_1): New function.
31462 (symtab_node::address_matters_p): New function.
31463 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
31464 check for merged flag.
31465 * cgraph.h (address_matters_p): Declare.
31466 (symtab_node::address_taken_from_non_vtable_p): Remove.
31467 (symtab_node::address_can_be_compared_p): New method.
31468 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
31469 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
31471 (comdat_can_be_unshared_p_1) Use address_matters_p.
31472 (update_vtable_references): Fix formating.
31473 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
31474 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
31475 * cgraphclones.c: Preserve merged and icf_merged flags.
31477 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
31479 * doc/extend.texi (Function Attributes): Fix spelling and typos.
31480 (Label Attributes): Likewise.
31481 (Cilk Plus Builtins): Likewise.
31482 (ARC SIMD Built-in Functions): Likewise.
31483 (ARM C Language Extensions (ACLE)): Likewise.
31484 (PowerPC Built-in Functions): Likewise.
31485 (PowerPC Hardware Transactional Memory Built-in Functions):
31488 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31490 PR tree-optimization/65216
31491 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
31492 new stmt and new SSA_NAME for lhs whenever the arguments have
31493 changed and weren't just swapped. Fix comment typo.
31495 PR tree-optimization/65215
31496 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
31497 for PDP endian targets.
31498 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
31499 Fix up formatting issues.
31500 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
31501 size is smaller than the original, adjust MEM_REF offset by the
31502 difference of sizes. Use is_gimple_mem_ref_addr instead of
31503 is_gimple_min_invariant test to avoid adding address temporaries.
31505 2015-02-26 Martin Liska <mliska@suse.cz>
31506 Jan Hubicka <hubicka@ucw.cz>
31509 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
31510 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
31511 (sem_item_optimizer::process_cong_reduction): Include division by
31512 sensitive references.
31513 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
31514 * ipa-ref.c (ipa_ref::address_matters_p): New function.
31515 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
31517 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
31520 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
31522 * config/avr/avr.c: Same.
31523 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
31524 Refuse any constant address not in 0..0xbf.
31525 * config/avr/avr.md (*mov<mode>, *movsf): Remove
31526 tiny_valid_direct_memory_access_range from insn conditions.
31527 (mov<mode>): Don't special-case expansion of avrtiny addresses.
31529 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
31532 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
31533 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
31534 * config/sh/predicates.md (const_logical_operand): New predicate.
31535 * config/sh/sh.md: Add new peephole2 patterns.
31537 2015-02-26 Marek Polacek <polacek@redhat.com>
31540 * ipa-inline.c (early_inliner): Recompute inline parameters.
31542 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31545 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
31546 instructions with TImode operands are included in the analysis.
31548 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31550 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
31551 of an EDGE_FSM_THREAD.
31553 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
31555 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
31557 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
31560 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
31562 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31564 PR tree-optimization/65048
31565 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
31566 (thread_through_all_blocks): Call valid_jump_thread_path.
31567 Remove invalid FSM jump-thread paths.
31569 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31571 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
31572 (ipa_write_optimization_summaries): Likewise.
31573 * tree-streamer.h: Include data-streamer.h.
31574 (streamer_mode_table): Declare extern variable.
31575 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
31576 * lto-streamer-out.c (lto_output_init_mode_table,
31577 lto_write_mode_table): New functions.
31578 (produce_asm_for_decls): Call lto_write_mode_table when streaming
31580 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
31581 (lto_create_simple_input_block): Add mode_table argument to the
31582 lto_input_block constructors.
31583 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
31585 * data-streamer-in.c (string_for_index): Likewise.
31586 * ipa-inline-analysis.c (inline_read_section): Likewise.
31587 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
31588 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
31589 * lto-streamer-in.c (lto_read_body_or_constructor,
31590 lto_input_toplevel_asms): Likewise.
31591 (lto_input_mode_table): New function.
31592 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
31593 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
31594 Use bp_pack_machine_mode.
31595 * real.h (struct real_format): Add name field.
31596 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
31597 (class lto_input_block): Add mode_table member.
31598 (lto_input_block::lto_input_block): Add mode_table_ argument,
31599 initialize mode_table.
31600 (struct lto_file_decl_data): Add mode_table field.
31601 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
31602 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
31603 unpack_ts_decl_common_value_fields,
31604 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
31605 * tree-streamer.c (streamer_mode_table): New variable.
31606 * real.c (ieee_single_format, mips_single_format,
31607 motorola_single_format, spu_single_format, ieee_double_format,
31608 mips_double_format, motorola_double_format,
31609 ieee_extended_motorola_format, ieee_extended_intel_96_format,
31610 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
31611 ibm_extended_format, mips_extended_format, ieee_quad_format,
31612 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
31613 decimal_single_format, decimal_double_format, decimal_quad_format,
31614 ieee_half_format, arm_half_format, real_internal_format): Add name
31616 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
31618 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
31621 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
31622 reordering for selective scheduling.
31624 2015-02-26 Terry Guo <terry.guo@arm.com>
31626 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
31627 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
31628 (arm_arch_no_volatile_ce): Declare new global variable.
31629 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
31630 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
31631 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
31632 (TARGET_NO_VOLATILE_CE): New macro.
31633 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
31634 volatile memory access in IT block
31636 2015-02-25 Kai Tietz <ktietz@redhat.com>
31638 PR tree-optimization/61917
31639 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
31640 that reduc_def_stmt is null.
31642 2015-02-25 Martin Liska <mliska@suse.cz>
31644 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
31645 hard register variables.
31647 2015-02-25 Kai Tietz <ktietz@redhat.com>
31650 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
31651 (symtab::noninterposable_alias): Likewise.
31653 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
31656 * config/i386/i386.c (ix86_function_arg_regno_p): Support
31658 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
31660 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
31663 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
31664 as split condition; force split via '#' in output pattern.
31666 2015-02-25 Richard Biener <rguenther@suse.de>
31667 Kai Tietz <ktietz@redhat.com>
31669 PR tree-optimization/61917
31670 * tree-vect-loop.c (vectorizable_reduction): Allow
31671 vect_internal_def without reduction to exit graceful.
31673 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
31676 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
31677 only with NONDEBUG_INSN_P.
31679 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
31681 Use variadic macros with avr-log.c.
31683 * config/avr/avr-protos.h (avr_vdump): New prototype.
31684 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
31685 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
31686 * config/avr/avr-log.c: Adjust comments.
31687 (avr_vdump): New function.
31688 (avr_vadump): Pass caller as 2nd argument instead of format string.
31689 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
31690 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
31692 2015-02-25 Jakub Jelinek <jakub@redhat.com>
31695 * target.def (target_option_stream_in): New target hook.
31696 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
31697 targetm.target_option.post_stream_in if non-NULL.
31698 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
31699 * doc/tm.texi: Updated.
31700 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
31702 (TARGET_OPTION_POST_STREAM_IN): Redefine.
31704 2015-02-24 Jeff Law <law@redhat.com>
31707 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
31708 of operand 0 and operand 2.
31709 (zero_cost_loop_end, loop_end): Similarly.
31711 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
31713 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
31716 2015-02-24 DJ Delorie <dj@redhat.com>
31718 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
31719 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
31720 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
31721 instead of hardcoding SImode.
31723 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
31725 * omp-low.c (create_omp_child_function): Tag entrypoint
31726 functions with a special attribute.
31728 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31731 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
31733 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
31735 PR rtl-optimization/65123
31736 * lra-remat.c (operand_to_remat): Check hard regs in insn
31739 2015-02-24 Nick Clifton <nickc@redhat.com>
31741 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
31744 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
31747 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
31748 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
31749 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
31750 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
31751 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
31752 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
31753 (BUILT_IN_GOACC_PARALLEL): Specify as
31754 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
31755 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
31756 * builtin-types.def
31757 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31758 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31759 Remove function types.
31760 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
31761 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31762 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31763 New function types.
31765 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
31767 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
31769 2015-02-24 Jakub Jelinek <jakub@redhat.com>
31771 PR tree-optimization/65170
31772 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
31773 if val[1] < 0, clear also val[2] and return 3.
31775 2015-02-24 Alan Modra <amodra@gmail.com>
31778 * config/rs6000/rs6000.c (get_memref_parts): Only return true
31779 when *base is a reg. Handle nested plus addresses. Simplify
31782 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
31784 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
31785 use natural alignment when optimizing for size.
31787 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
31790 * config/sh/sh.md (movsicc_true+3): Remove peephole.
31791 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
31792 * config/sh/sh.c (replace_n_hard_rtx): Remove.
31794 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
31797 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
31798 too big for a wide_int. Implement missing wrapping operation.
31800 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
31803 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
31804 instead of const_int 4294901760.
31806 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
31808 * config/avr/t-avr: Fix typo in comment.
31810 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
31812 * doc/rtl.texi (fma): Clarify documentation.
31814 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
31817 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
31818 over input_location.
31820 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31822 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
31823 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
31824 restrict alignments to absolute_biggest_alignment.
31825 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
31827 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
31828 * doc/tm.texi: Regenerate.
31829 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
31831 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
31834 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
31836 2015-02-20 Richard Biener <rguenther@suse.de>
31838 PR tree-optimization/65136
31839 * tree-ssa-propagate.c: Include cfgloop.h.
31840 (replace_phi_args_in): Avoid replacing loop latch edge PHI
31841 arguments with constants.
31843 2015-02-20 Jakub Jelinek <jakub@redhat.com>
31844 Martin Liska <mliska@suse.cz>
31847 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
31848 don't try to create_thunk if stdarg_p. If
31849 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
31850 redirect_callers if possible.
31851 (sem_item_optimizer::execute): Call unregister_hooks here...
31852 (ipa_icf_driver): ... instead of here.
31854 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31856 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
31857 Mark operand 0 as earlyclobber in 2nd alternative.
31858 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
31859 Write negated shift amount into QI lowpart operand 0 and use it
31861 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
31863 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31865 * cgraph.h (clone_function_name_1): Declare.
31866 * cgraphclones.c (clone_function_name_1): New function.
31867 (clone_function_name): Use it.
31868 * lto-partition.c: Include "stringpool.h".
31869 (must_not_rename, maybe_rewrite_identifier)
31870 (validize_symbol_for_target): New static functions.
31871 (privatize_symbol_name): Use must_not_rename.
31872 (promote_symbol): Call validize_symbol_for_target.
31873 (lto_promote_cross_file_statics): Likewise.
31874 (lto_promote_statics_nonwpa): Likewise.
31876 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
31879 * config/avr/avr.md (pushhi_insn): New insn.
31880 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
31882 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31883 Jakub Jelinek <jakub@redhat.com>
31885 * tree-streamer.c (preload_common_nodes): Don't preload
31886 TI_VA_LIST* for offloading.
31887 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
31890 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
31892 * config/pa/pa.c (pa_emit_move_sequence): Always force
31893 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
31896 * config/pa/pa.c (pa_reloc_rw_mask): New function.
31897 (TARGET_ASM_RELOC_RW_MASK): Define.
31898 (pa_cannot_force_const_mem): Revert previous change.
31900 2015-02-19 Martin Jambor <mjmabor@suse.cz>
31901 Jan Hubicka <hubicka@ucw.cz>
31904 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
31905 across jump functions.
31907 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
31909 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
31911 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
31913 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
31915 2015-02-19 Richard Henderson <rth@redhat.com>
31917 PR middle-end/65074
31918 * varasm.c (default_binds_local_p_2): Don't test node->definition;
31919 test DECL_EXTERNAL independent of symtab_node.
31921 2015-02-19 Jakub Jelinek <jakub@redhat.com>
31924 * varpool.c (varpool_node::get_constructor): Return early
31925 if this->lto_file_data is NULL.
31927 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31929 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
31930 (rank_for_schedule_debug): Update.
31931 (ready_sort): Make static. Move sorting logic to ...
31932 (ready_sort_debug, ready_sort_real): New static functions.
31933 (schedule_block): Sort both debug insns and real insns in preparation
31934 for ready list trimming. Improve debug output.
31935 * sched-int.h (ready_sort): Remove global declaration.
31937 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
31939 * ipa-icf.c (sem_function::equals_private): Adjust.
31940 (sem_function::bb_dict_test): Take a vec<int> * instead of
31942 * ipa-icf.h (bb_dict_test): Likewise.
31944 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31946 PR gcov-profile/64634
31947 * tree-eh.c (frob_into_branch_around): Fix up typos
31948 in function comment.
31949 (lower_catch): Put eh_seq resulting from EH lowering of
31950 the cleanup sequence after the cleanup rather than before it.
31952 2015-02-18 Tom de Vries <tom@codesourcery.com>
31954 * common.opt (fstdarg-opt): New option.
31955 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
31956 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
31957 (@item -fstdarg-opt): New item.
31959 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
31962 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
31963 for common symbols.
31965 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31967 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
31969 (ALL_HOST_OBJS): Add mkoffload.o.
31970 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
31972 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
31974 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
31975 (compare_virtual_tables): Be smarter about skipping typeinfos;
31976 do sane output on virtual table table mismatch.
31977 (warn_odr): Be ready for forward declarations of enums;
31978 output sane info on base mismatch and virtual table mismatch.
31979 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
31980 when only one type is polymorphic.
31981 (get_odr_type): Fix hashtable corruption.
31982 (dump_odr_type): Dump mangled names.
31984 2015-02-18 Richard Biener <rguenther@suse.de>
31986 PR tree-optimization/65063
31987 * tree-predcom.c (determine_unroll_factor): Return 1 if we
31988 have replaced looparound PHIs.
31990 2015-02-18 Martin Liska <mliska@suse.cz>
31992 * lto-streamer.c (lto_streamer_init): Encapsulate
31993 streamer_check_handled_ts_structures with checking macro.
31995 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31998 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
31999 section if !implicit_section.
32000 (cgraph_node::create_version_clone_with_body): Likewise.
32001 * trans-mem.c (ipa_tm_create_version): Likewise.
32003 2015-02-18 Richard Biener <rguenther@suse.de>
32005 PR tree-optimization/62217
32006 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32009 2015-02-18 Marek Polacek <polacek@redhat.com>
32012 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32013 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32014 is in range [-16K, -1]. Don't issue run-time error if
32015 (ptr > ptr + offset).
32017 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
32019 * doc/install.texi (nvptx-*-none): New section.
32020 * doc/invoke.texi (Nvidia PTX Options): Likewise.
32021 * config/nvptx/nvptx.opt: Update.
32023 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32024 (access_check): New functions, copied from
32025 config/i386/intelmic-mkoffload.c.
32026 (main): For non-installed testing, look in all COMPILER_PATHs for
32029 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32031 2015-02-18 Andrew Pinski <apinski@cavium.com>
32032 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32034 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32035 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32037 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32039 * ipa-visibility.c (function_and_variable_visibility): Only
32040 check locality if node is not already local.
32041 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32042 call_for_symbol_and_aliases instead of
32043 call_for_symbol_thunks_and_aliases.
32044 (ipa_inline): Likewise.
32045 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32046 first walk aliases.
32047 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32048 call_for_symbol_and_aliases.
32049 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32050 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32051 (ipa_propagate_frequency): Update.
32052 (ipa_profile): Add opt_for_fn gueards.
32054 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32056 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32057 * doc/invoke.texi (SH options): Document it.
32058 * config/sh/sh.c (sh_insn_length_adjustment): Check
32059 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32061 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
32063 * common.opt (fipa-cp-alignment): New.
32064 * ipa-cp.c (ipcp_store_alignment_results): Check
32065 flag_ipa_cp_alignment.
32066 * opts.c (default_options_table): Enable -fipa-cp-alignment for
32068 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32069 * doc/invoke.texi: Document -fipa-cp-alignment.
32071 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32074 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32075 to nil. Adjust comments.
32077 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32079 * ipa-visibility.c (function_and_variable_visibility): Only
32080 check locality if node is not already local.
32081 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32082 call_for_symbol_and_aliases instead of
32083 call_for_symbol_thunks_and_aliases.
32084 (ipa_inline): Likewise.
32085 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32086 first walk aliases.
32087 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32088 call_for_symbol_and_aliases.
32089 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32090 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32091 (ipa_propagate_frequency): Update.
32092 (ipa_profile): Add opt_for_fn guards.
32094 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
32096 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32097 skipping of "strange" tokens.
32099 2015-02-17 Jeff Law <law@redhat.com>
32101 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
32104 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
32106 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32107 as forcing a HARD_DEP between instructions, thereby
32108 disallowing rewriting to break dependencies.
32110 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32112 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32113 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32114 variables in boundary that have no inlitalizer encoded and are
32116 * varasm.c (default_binds_local_p_2): External definitions do not
32117 count as definitions here.
32119 2015-02-16 Jeff Law <law@redhat.com>
32121 PR tree-optimization/64823
32122 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32124 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32125 threading through blocks with PHIs, but no statements.
32126 (thread_through_normal_block): Distinguish between blocks where
32127 we did not process all the statements and blocks with no statements.
32129 2015-02-16 Jakub Jelinek <jakub@redhat.com>
32130 James Greenhalgh <james.greenhalgh@arm.com>
32133 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32134 section if not linkonce. Fix up formatting.
32135 (cgraph_node::create_version_clone_with_body): Copy section.
32136 * trans-mem.c (ipa_tm_create_version): Likewise.
32138 2015-02-16 Richard Biener <rguenther@suse.de>
32140 PR tree-optimization/65077
32141 * tree-ssa-structalias.c (get_constraint_for_1): Handle
32142 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32143 (find_func_aliases): Allow float values to carry pointers again.
32145 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
32147 * doc/install.texi (Specific): Reorder targets list to put
32148 aarch64 in alphabetical order. Add a link to aarch64*-*-*
32151 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32152 David Edelsohn <dje.gcc@gmail.com>
32155 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32156 mapping class to external variable or function reference.
32157 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32160 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
32163 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32164 ASM_WEAKEN_DECL if defined.
32166 2015-02-16 Richard Biener <rguenther@suse.de>
32169 * varasm.c (default_file_start): For LTO produced units
32170 emit <artificial> as file directive.
32172 2015-02-16 Richard Biener <rguenther@suse.de>
32174 PR tree-optimization/63593
32175 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32176 stmts and releasing SSA names until...
32177 (execute_pred_commoning): ... after processing all chains.
32179 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32182 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32183 external functions.
32185 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
32187 * doc/bugreport.texi: Adjust section titles throughout the file
32188 to use "Title Case".
32189 * doc/extend.texi: Likewise.
32190 * doc/gcov.texi: Likewise.
32191 * doc/implement-c.texi: Likewise.
32192 * doc/implement-cxx.texi: Likewise.
32193 * doc/invoke.texi: Likewise.
32194 * doc/objc.texi: Likewise.
32195 * doc/standards.texi: Likewise.
32196 * doc/trouble.texi: Likewise.
32198 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
32200 * cgraph.h (symtab_node::has_aliases_p): Simplify.
32201 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32202 * tree.c (lookup_binfo_at_offset): Make static.
32203 (get_binfo_at_offset): Do not shadow offset; add explanatory
32206 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
32208 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32209 for all floading point loads and stores except those using a register
32211 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32214 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32216 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32217 (do_estimate_growth_1): Record if any uninlinable edge was seen.
32218 (estimate_growth): Handle uninlinable edges correctly.
32219 (check_callers): New.
32220 (growth_likely_positive): Handle aliases correctly.
32222 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32224 * ipa-chkp.c: Use iterate_direct_aliases.
32225 * symtab.c (resolution_used_from_other_file_p): Move inline.
32226 (symtab_node::create_reference): Fix formating.
32227 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32228 (symtab_node::iterate_reference): Move inline.
32229 (symtab_node::iterate_referring): Move inline.
32230 (symtab_node::iterate_direct_aliases): Move inline.
32231 (symtab_node::used_from_object_file_p_worker): Inline into ...
32232 (symtab_node::used_from_object_file_p): ... this one; move inline.
32233 (symtab_node::call_for_symbol_and_aliases): Move inline;
32234 use iterate_direct_aliases.
32235 (symtab_node::call_for_symbol_and_aliases_1): New method.
32236 (cgraph_node::call_for_symbol_and_aliases): Move inline;
32237 use iterate_direct_aliases.
32238 (cgraph_node::call_for_symbol_and_aliases_1): New method.
32239 (varpool_node::call_for_node_and_aliases): Rename to ...
32240 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32241 use iterate_direct_aliases.
32242 (varpool_node::call_for_symbol_and_aliases_1): New method.
32243 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32244 (ipa_discover_readonly_nonaddressable_var): Update.
32245 * ipa-devirt.c: Fix formating.
32246 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32248 (cgraph_node::call_for_symbol_and_aliases): Move inline.
32249 (cgraph_node::call_for_symbol_and_aliases_1): New function..
32250 * cgraph.h (used_from_object_file_p_worker): Remove.
32251 (resolution_used_from_other_file_p): Move inline.
32252 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32253 (symtab_node::iterate_reference): Move inline.
32254 (symtab_node::iterate_referring): Move inline.
32255 (symtab_node::iterate_direct_aliases): Move inline.
32256 (symtab_node::used_from_object_file_p_worker): Inline into ...
32257 (symtab_node::used_from_object_file_p): Move inline.
32258 * tree-emutls.c (ipa_lower_emutls): Update.
32259 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32260 (varpool_node::call_for_node_and_aliases): Remove.
32262 2015-02-14 Jakub Jelinek <jakub@redhat.com>
32264 PR tree-optimization/62209
32265 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32266 op == range->exp, insert seq and gimplified code after labels
32267 instead of after the phi.
32269 2015-02-13 Jeff Law <law@redhat.com>
32272 Revert my change for tree-optimization/64823.
32274 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32276 PR tree-optimization/65053
32277 * tree-ssa-phiopt.c (value_replacement): When moving assign before
32278 cond, either reset VR on lhs or set it to phi result VR.
32280 2015-02-13 Jeff Law <law@redhat.com>
32282 PR tree-optimization/64823
32283 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32284 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32285 threading through blocks with PHIs, but no statements.
32286 (thread_through_normal_block): Distinguish between blocks where
32287 we did not process all the statements and blocks with no statements.
32289 PR rtl-optimization/47477
32290 * match.pd (convert (plus/minus (convert @0) (convert @1): New
32291 simplifier to narrow arithmetic.
32293 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
32296 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32297 polymorphic call info when type is not known to be preserved.
32299 2015-02-13 Maritn Jambor <mjambor@suse.cz>
32302 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32303 (inline_call): Use it.
32305 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
32307 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32308 GOMP_DEVICE_NVIDIA_PTX.
32310 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32313 * stmt.c (emit_case_nodes): Use void_type_node instead of
32314 NULL_TREE as LABEL_DECL type.
32316 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
32318 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32320 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32321 symbolic references to data to be forced to constant memory on the
32324 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
32326 PR tree-optimization/65002
32327 * tree-cfg.c (pass_data_fixup_cfg): Don't update
32329 * tree-sra.c (some_callers_have_no_vuse_p): New.
32330 (ipa_early_sra): Reject functions whose callers
32331 assume function is read only.
32333 2015-02-13 Richard Biener <rguenther@suse.de>
32336 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32337 for LTO produced CUs.
32339 2015-02-13 Bin Cheng <bin.cheng@arm.com>
32341 PR tree-optimization/64705
32342 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32343 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32344 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32345 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32346 expand_simple_operations.
32348 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
32349 Richard Henderson <rth@redhat.com>
32352 * cgraphunit.c (cgraph_node::finalize_function): Set definition
32353 before notice_global_symbol.
32354 (varpool_node::finalize_decl): Likewise.
32355 * varasm.c (default_binds_local_p_2): Rename from
32356 default_binds_local_p_1, add weak_dominate argument. Use direct
32357 returns instead of assigning to local variable. Unify varpool and
32358 cgraph paths via symtab_node. Reject undef weak variables before
32359 testing visibility. Reorder tests for simplicity.
32360 (default_binds_local_p): Use default_binds_local_p_2.
32361 (default_binds_local_p_1): Likewise.
32362 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32364 (default_elf_asm_output_external): Emit visibility when specified.
32366 2015-02-13 Alan Modra <amodra@gmail.com>
32368 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32369 code setting up r11 for out-of-line fp restore.
32371 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
32373 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32374 (muser-mode): Likewise.
32376 2015-02-13 Alan Modra <amodra@gmail.com>
32378 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32379 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32381 2015-02-12 David Howells <dhowells@redhat.com>
32383 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32385 * tree-ssa-uninit.c (dump_predicates): Likewise.
32386 * opts.c (print_filtered_help): Likewise.
32388 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32390 * dwarf2out.c (output_die): Use "%s", name instead of name to
32391 avoid -Wformat-security warning.
32393 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32394 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32395 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32396 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32398 2015-02-12 Jason Merrill <jason@redhat.com>
32400 * common.opt (-flifetime-dse): New.
32402 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32405 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32407 PR tree-optimization/65014
32408 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32409 use original second operand of arg0 or arg1 instead of
32410 that adjusted by STRIP_NOPS.
32412 2015-02-11 Jeff Law <law@redhat.com>
32415 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32416 that needs to be queued, just queue it for a single cycle.
32418 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
32420 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32421 bodies of thunks; comment on why.
32422 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32423 symbols are extern.
32425 2015-02-11 Richard Henderson <rth@redhat.com>
32428 * tree-eh.c (mark_reachable_handlers): Mark source and destination
32429 regions of __builtin_eh_copy_values.
32431 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32433 PR middle-end/65003
32434 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
32435 ultimate alias is MEM with SYMBOL_REF satisfying
32436 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
32437 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
32439 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
32441 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
32442 "diagnostic-core.h".
32443 (main): Initialize progname, and call diagnostic_initialize.
32445 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
32446 instead of __OPENMP_TARGET__.
32448 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
32449 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
32450 hard-coding PTX_ID.
32452 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
32454 * doc/sourcebuild.texi (pie_enabled): Document.
32456 2015-02-11 Martin Liska <mliska@suse.cz>
32459 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
32460 a return value for call to a function that is noreturn.
32462 2015-02-11 Richard Biener <rguenther@suse.de>
32465 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
32468 2015-02-11 Andrew Pinski <apinski@cavium.com>
32471 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
32472 Change the first argument type to size_type_node and add another
32474 (aarch64_simd_expand_builtin): Handle the new argument to
32475 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
32476 print an out when the first two arguments are not
32477 nonzero integer constants.
32478 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
32479 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
32481 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32484 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
32485 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
32486 (ix86_set_current_function): Rewritten.
32487 (ix86_add_new_builtins): Temporarily clear current_target_pragma
32488 when creating builtin fndecls.
32490 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32493 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
32495 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
32496 have no comdat group.
32497 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
32498 (lto_output_varpool_node): Always output alias info.
32499 (output_refs): Output refs of boundary aliases, too.
32500 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
32501 (output_symtab): Output call eges in thunks in boundary.
32502 (get_alias_symbol): Remove.
32503 (input_node, input_varpool_node): Do not special case weakrefs.
32504 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
32505 alias and thunks targets in the boundary; do not take removed symbols
32506 from their comdat groups.
32507 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
32508 (cgraph_node::global_info): Remove.
32509 (cgraph_node::rtl_info): Look through aliases and thunks.
32510 * cgrpah.h (global_info): Remove.
32511 (non_local_p): Remove.
32513 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32514 Sandra Loosemore <sandra@codesourcery.com>
32516 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
32517 to inline asm. List dialects in proper order.
32519 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32520 Sandra Loosemore <sandra@codesourcery.com>
32522 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
32524 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32526 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
32527 modified) reference to Solaris.
32529 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
32531 * doc/extend.texi (Extended Asm): Fix typos.
32533 2015-02-10 Jakub Jelinek <jakub@redhat.com>
32536 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
32538 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
32541 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
32542 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
32543 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
32544 * config/sh/constraints.md (Ara, Add): New constraints.
32545 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
32547 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
32548 atomic_mem_operand_0. Don't use force_reg on the memory address.
32549 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
32550 Sra constraint. Convert to insn_and_split. Add workaround for
32552 (atomic_compare_and_swap<mode>_hard): Copy to
32553 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
32554 Use atomic_mem_operand_0 predicate.
32555 (atomic_compare_and_swap<mode>_soft_gusa,
32556 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
32557 AraAdd constraints.
32558 (atomic_compare_and_swap<mode>_soft_tcb,
32559 atomic_compare_and_swap<mode>_soft_imask,
32560 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
32561 atomic_mem_operand_0 predicate and SraSdd constraints.
32562 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
32564 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
32565 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
32566 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
32567 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
32568 force_reg on the memory address.
32569 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
32570 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
32571 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
32572 atomic_mem_operand_1 predicate and Sra constraint.
32573 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
32574 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32575 Use atomic_mem_operand_1 predicate.
32576 (atomic_<fetchop_name><mode>_hard): Copy to
32577 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32578 Use atomic_mem_operand_1 predicate.
32579 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
32580 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
32581 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
32582 insn_and_split. Use atomic_mem_operand_1 predicate.
32583 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
32584 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
32585 Use atomic_mem_operand_1 predicate.
32586 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
32587 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
32588 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
32589 in generated insn with original mem operand before emitting the insn.
32590 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
32591 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
32592 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
32593 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
32594 Use atomic_mem_operand_1 predicate and AraAdd constraints.
32595 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
32596 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
32597 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
32598 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
32599 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
32600 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
32601 atomic_not_fetch<mode>_soft_tcb,
32602 atomic_<fetchop_name>_fetch<mode>_soft_imask,
32603 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
32604 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
32605 Use atomic_mem_operand_1 predicate and SraSdd constraints.
32607 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
32609 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
32610 and 3 earlyclobber operands.
32612 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32614 * common.opt (fstack-reuse): Mark as optimization.
32616 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32619 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
32621 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
32623 PR tree-optimization/64326
32624 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
32626 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
32628 PR gcov-profile/61889
32629 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
32631 2015-02-10 Richard Biener <rguenther@suse.de>
32633 PR tree-optimization/64995
32634 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
32635 value we use is final.
32636 (visit_reference_op_store): Always valueize op.
32637 (visit_use): Properly valueize vuses.
32639 2015-02-10 Richard Biener <rguenther@suse.de>
32641 PR tree-optimization/64909
32642 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
32643 pass a scalar-stmt count estimate to the cost model.
32644 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
32646 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
32648 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
32649 enabled by default together with var-tracking.
32651 2015-02-10 Nick Clifton <nickc@redhat.com>
32653 * config/rl78/rl78.c: Remove DIV attribute code accidentally
32654 included in previous rl78 commit.
32656 2015-02-10 Richard Biener <rguenther@suse.de>
32658 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
32659 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
32660 return the bitpack.
32662 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
32664 PR gcov-profile/61889
32665 * config.in: regenerate.
32666 * configure.in: Likewise.
32667 * configure.ac: Check for ftw.h.
32668 * gcov-tool.c: Check for ftw.h before using nftw.
32670 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
32673 * ipa-visibility.c (update_visibility_by_resolution_info): Only
32674 assert when not in lto mode.
32676 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32678 * ira-color.c (setup_left_conflict_sizes_p): Simplify
32679 initialization/assignment of conflict_size.
32681 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
32684 * ipa-cp.c (gather_caller_stats): Skip thunks.
32685 (propagate_constants_topo): Skip aliases.
32687 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
32690 * config/sh/sh.c (sh_option_override): Don't change
32691 -freorder-blocks-and-partition to -freorder-blocks even when
32692 unwinding is enabled.
32693 (sh_can_follow_jump): Return false if the followee jump is
32694 a crossing jump when -freorder-blocks-and-partition is specified.
32695 * config/sh/sh.md (*jump_compact_crossing): New insn.
32697 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
32698 Kaz Kojima <kkojima@gcc.gnu.org>
32701 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
32702 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
32703 (sh_can_redirect_branch): Rename to ...
32704 (sh_can_follow_jump): ... this. Constify argument types.
32705 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
32706 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
32707 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
32708 * doc/tm.texi: Regenerate.
32710 2015-02-09 Jakub Jelinek <jakub@redhat.com>
32713 * builtins.c (expand_builtin): Call targetm.expand_builtin
32714 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
32716 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32719 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
32721 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32724 * ipa-icf.c (set_local): New function.
32725 (sem_function::merge): Use it.
32727 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32729 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
32730 (add_type_duplicate): Fix comparison of BINFOs.
32732 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32734 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
32735 on getting VOID pointer.
32737 2015-02-09 Jakub Jelinek <jakub@redhat.com>
32740 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
32743 2015-02-09 Richard Biener <rguenther@suse.de>
32745 * genmatch.c (replace_id): Copy expr_type.
32747 2015-02-09 Richard Biener <rguenther@suse.de>
32749 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
32750 (streamer_write_tree_bitfields): Declare.
32751 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
32752 properly unpack padding.
32753 (unpack_value_fields): Inline ...
32754 (streamer_read_tree_bitfields): ... here.
32755 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
32756 and properly add padding bits.
32757 (streamer_pack_tree_bitfields): Fold into ...
32758 (streamer_write_tree_bitfields): ... this new function,
32759 exposing the bitpack object.
32760 * lto-streamer-out.c (lto_write_tree_1): Call
32761 streamer_write_tree_bitfields.
32763 2015-02-09 Richard Biener <rguenther@suse.de>
32765 PR tree-optimization/54000
32766 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
32767 (struct ivopts_data): Add loop_loc member.
32768 (tree_ssa_iv_optimize_loop): Dump loop location.
32769 (create_new_ivs): Likewise, also dump number of IVs generated.
32771 2015-02-09 Martin Liska <mliska@suse.cz>
32773 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
32774 just if not yet registered.
32775 (ipa_icf_generate_summary): Register callgraph hooks.
32777 2015-02-08 Andrew Pinski <apinski@cavium.com>
32779 * config/aarch64/aarch64.c (gty_dummy): Delete.
32781 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32784 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
32785 (cgraph_node::local_p): Remove thunk related FIXME.
32787 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32790 * i386.c (ix86_function_regparm): Look through aliases to see if callee
32791 is local and optimized.
32792 (ix86_function_sseregparm): Likewise; also use target's SSE math
32793 settings; error out instead of silently generating wrong code
32795 (init_cumulative_args): Look through aliases.
32797 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32800 * ipa-split.c (execute_split_functions): Split if function has aliases.
32802 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32805 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
32806 aliases before trying to expand it.
32807 (cgraph_node::expand_thunk): Fix formating.
32809 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
32811 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
32812 (Using Assembly Language with C): Expand introduction.
32813 (Basic Asm): Copy-edit. Add more information about uses of
32815 (Extended Asm): Copy-edit. Document new escape syntax and
32817 (Global Reg Vars): Copy-edit.
32818 (Local Reg Vars): Likewise.
32820 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
32824 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
32825 (DBX_CONTIN_CHAR): Define.
32827 2015-02-06 Sebastian Pop <s.pop@samsung.com>
32828 Brian Rzycki <b.rzycki@samsung.com>
32830 PR tree-optimization/64878
32831 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
32832 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
32833 Stop recursion at loop phi nodes after having visited a loop phi node.
32835 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32837 * toplev.c (process_options): Change flag_ipa_ra before creating
32838 optimization_{default,current}_node.
32841 * cgraphunit.c (cgraph_node::expand_thunk): If
32842 restype is not is_gimple_reg_type nor the thunk_fndecl
32843 returns aggregate_value_p, set restmp to a temporary variable
32844 instead of resdecl.
32846 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
32848 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
32850 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32853 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
32854 add a general secondary reload handler for SDmode, unless we have
32855 both read/write support for SDmode.
32857 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32859 PR middle-end/64937
32860 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
32861 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
32862 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
32863 1 before, push it to abstract_vec.
32864 (dwarf2out_abstract_function): Adjust caller. Don't call
32865 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
32866 DECL_ABSTRACT_P flags for all abstract_vec elts.
32868 2015-02-06 Renlin Li <renlin.li@arm.com>
32870 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
32872 * tree-ssa.c (execute_update_addresses_taken): Likewise.
32874 2015-02-06 Jeff Law <law@redhat.com>
32877 * config/h8300/h8300.c (push): New argument "in_prologue".
32878 Pass "in_prologue" along to "F".
32879 (h8300_push_pop): Corresponding changes.
32880 (h8300_expand_prologue): Likewise.
32881 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
32883 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32885 PR rtl-optimization/64957
32887 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
32888 IOR rather than for AND.
32890 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
32893 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
32894 of shift-add and (add + shift) operations. Rename local variable.
32896 2015-02-05 Jeff Law <law@redhat.com>
32899 * config/h8300/constraints.md (U): Correctly dectect
32900 "eightbit_data" memory addresses.
32901 * config/h8300/h8300.c (eightbit_constant_address_p): Also
32902 handle (const (plus (symbol_ref (x)))) where x is declared
32903 as an 8-bit data memory address.
32904 * config/h8300/h8300.md (call, call_value): Correctly detect
32905 "funcvec" functions.
32908 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
32909 24 to 28 bits for the H8/300.
32911 2015-02-06 Alan Modra <amodra@gmail.com>
32914 * config/rs6000/rs6000.c (chain_already_loaded): New function.
32915 (rs6000_call_aix): Use it.
32917 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
32919 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
32922 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
32924 * config/h8300/constraints.md ("U" constraint): Use strict
32925 variant of REG_OK_FOR_BASE_P after reload has started.
32927 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
32929 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
32930 define to zero if !TARGET_NEON.
32931 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
32933 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32934 Trevor Saunders <tsaunders@mozilla.com>
32937 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
32939 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32942 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
32943 when removing varpool nodes.
32945 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32948 * varpool.c (varpool_node::remove): Fix order of variables.
32950 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32953 * ipa-inline.c (inline_small_functions): Fix ordering issue between
32954 speculation resolution and key updates.
32956 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32958 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
32959 about not letting any speculative edges unupdated.
32961 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32964 * gcov-io.c (gcov_var): Export.
32966 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32968 PR middle-end/64922
32969 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
32970 edges that become speculative.
32972 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32974 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
32975 or DW_LANG_Fortran08.
32976 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
32978 (gen_compile_unit_die): Handle "GNU Fortran2003" and
32979 "GNU Fortran2008" language strings.
32980 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
32981 * langhooks.h (lang_GNU_Fortran): New prototype.
32982 * langhooks.c (lang_GNU_Fortran): New function.
32983 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
32986 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32988 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
32989 (RTX_OK_FOR_OLO10_P): Likewise.
32991 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32993 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
32995 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32997 PR middle-end/64922
32998 * gimple.c: Include gimple-ssa.h.
32999 (maybe_remove_unused_call_args): New function.
33000 * gimple.h (maybe_remove_unused_call_args): Declare.
33001 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33002 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33003 * gimple-fold.c (gimple_fold_call): Likewise.
33005 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
33007 PR rtl-optimization/64905
33008 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33009 pointer alignment if it isn't needed.
33011 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33013 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33014 cortex-a72.cortex-a53.
33015 * config/aarch64/aarch64-tune.md: Regenerate.
33016 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33018 2015-02-04 Nick Clifton <nickc@redhat.com>
33020 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33023 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33025 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33026 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33027 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33029 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33030 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33031 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33032 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33033 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33034 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33035 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33036 * tree-core.h (enum built_in_function): In between
33037 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33038 for builtins that use DEF_BUILTIN_CHKP macro.
33040 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
33043 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33044 operands for tcc_comparison exprs. Fix typos.
33047 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33048 of two XORs that have an intervening AND or IOR.
33051 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33052 simplification of XOR of AND to not allocate new rtx before
33053 committing to a simplification.
33055 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33057 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33058 manual swaps in all peepholes.
33060 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33062 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33063 of manual swapping implementation.
33064 (aarch64_expand_vec_perm_const_1): Likewise.
33066 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
33068 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33069 (generic_addrcost_table): Remove NAMED_PARAM.
33070 (cortexa57_addrcost_table): Likewise.
33071 (xgene1_addrcost_table): Likewise.
33072 (generic_regmove_table): Likewise.
33073 (cortexa53_regmove_table): Likewise.
33074 (xgene1_regmove_table): Likewise.
33075 (generic_vector_table): Likewise.
33076 (cortexa57_vector_table): Likewise.
33077 (xgene1_vector_table): Likewise.
33078 (generic_tunings): Likewise.
33079 (cortexa53_tunings): Likewise.
33080 (cortexa57_tunings): Likewise.
33081 (xgene1_tunings): Likewise.
33083 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33085 * config/arm/arm-cores.def: Add cortex-a72 and
33086 cortex-a72.cortex-a53.
33087 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33088 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33089 * config/arm/arm-tune.md: Regenerate.
33090 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33091 "cortex-a72.cortex-a53".
33092 * doc/invoke.texi (ARM Options/-mtune): Likewise.
33094 2015-02-04 Nick Clifton <nickc@redhat.com>
33097 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33099 (nonimmediate_di_operand): Likewise.
33101 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33102 prefixes of known F5 using MSP430 MCUs.
33104 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33106 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33107 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33108 instead of __builtin_sqrt.
33110 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
33112 * varasm.c (do_assemble_alias): Follow transparent alias
33114 (default_assemble_visibility): Follow transparent alias
33115 chain for decl name.
33117 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
33119 PR middle-end/62103
33120 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33121 to compute size of referenced value in the constant case.
33123 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33125 PR rtl-optimization/64756
33126 * cse.c (invalidate_dest): New function.
33127 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
33128 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33129 invalidate and do not record it.
33131 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33134 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33135 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33136 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33137 atomic_nand<mode>_soft_tcb): New insns.
33138 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33139 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33140 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33141 Split into atomic_not_fetchsi_hard if operands[0] is unused.
33142 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33143 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33144 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
33145 atomic_not<mode>_hard if operands[0] is unused.
33146 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33147 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33148 if operands[0] is unused.
33149 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
33150 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33151 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33152 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33154 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
33155 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33156 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33157 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33158 if operands[0] is unused.
33159 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
33160 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33161 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
33162 atomic_nand_fetchsi_hard if operands[0] is unused.
33163 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
33164 atomic_nand<mode>_hard if operands[0] is unused.
33165 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
33166 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33167 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
33168 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33169 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
33170 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33171 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33172 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33173 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
33174 atomic_not<mode>_hard if operands[0] is unused.
33175 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33176 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33178 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33179 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33180 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
33181 atomic_nand<mode>_hard if operands[0] is unused.
33182 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33183 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33185 2015-02-03 David Malcolm <dmalcolm@redhat.com>
33188 * Makefile.in (GCC_OBJS): Add gcc-main.o.
33189 * gcc-main.c: New file, containing "main" taken from gcc.c.
33190 * gcc.c (do_self_spec): Free decoded_options.
33191 (class driver): Move declaration to gcc.h.
33192 (main): Move declaration and implementation to new file
33194 (driver_get_configure_time_options): New function.
33195 * gcc.h (class driver): Move this declaration here, from
33197 (driver_get_configure_time_options): New declaration.
33199 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
33201 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33202 cross-module inlining.
33203 * cgraph.h (cgraph_node): Add flag merged.
33204 * ipa-icf.c (sem_function::merge): Maintain it.
33206 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
33208 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33209 instead of OBJECT_P.
33211 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
33214 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33215 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33216 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33217 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33219 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33222 * combine.c (reg_n_sets_max): New variable.
33223 (can_change_dest_mode, reg_nonzero_bits_for_combine,
33224 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33225 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33226 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33227 (rest_of_handle_combine): Initialize reg_n_sets_max.
33229 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
33231 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33232 if some always_inline was inlined, apply changes before inlining
33235 2015-02-02 David Malcolm <dmalcolm@redhat.com>
33238 * config/arm/arm.c (arm_option_override): Set
33239 arm_selected_arch/cpu/tune to NULL on entry.
33241 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
33242 Andrew Pinski <pinskia@gcc.gnu.org>
33243 Jakub Jelinek <jakub@gcc.gnu.org>
33246 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33247 integer typing for small model. Use IN_RANGE.
33249 2015-02-02 Richard Biener <rguenther@suse.de>
33251 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33252 * tree-vrp.c (vrp_valueize_1): Likewise.
33254 2015-02-02 Alan Modra <amodra@gmail.com>
33256 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33257 than mem for toc_restore.
33258 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33259 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33260 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33262 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
33265 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33266 explicit default options.
33268 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
33271 * ipa-utils.c (ipa_merge_profiles): Add release argument.
33272 * ipa-icf.c (sem_function::merge): Do not release body when merging.
33273 * ipa-utils.h (ipa_merge_profiles): Update prototype.
33275 2015-02-01 Jakub Jelinek <jakub@redhat.com>
33278 * cfgexpand.c (deep_ter_debug_map): New variable.
33279 (avoid_deep_ter_for_debug): New function.
33280 (expand_debug_expr): If TERed SSA_NAME is in
33281 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33282 instead of trying to expand SSA_NAME's def stmt.
33283 (expand_debug_locations): When expanding debug bind
33284 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33285 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33287 (pass_expand::execute): Call avoid_deep_ter_for_debug on
33288 all debug bind stmts. Delete deep_ter_debug_map after
33289 expand_debug_location if non-NULL and clear it.
33291 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
33294 * config/sh/sync.md (atomic_fetch_notsi_hard,
33295 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33296 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33297 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33298 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33299 atomic_not_fetch<mode>_soft_imask): New insns.
33301 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33303 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33304 (rank_for_schedule_debug): Split from ...
33305 (rank_for_schedule): ... this.
33306 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33307 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33309 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33311 * doc/md.texi (Machine Constraints): Alphabetize table by target.
33312 * doc/extend.texi (x86 Variable Attributes): Move section to
33313 correct alphabetization after renaming.
33314 (x86 Type Attributes): Likewise.
33315 (Target Builtins): Re-alphabetize menu.
33316 (x86 Built-in Functions): Move section to correct alphabetization
33318 (x86 transactional memory intrinsics): Likewise.
33319 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33320 and x86 Windows Options in table and menu.
33321 (x86 Options): Move section to correct alphabetization after
33323 (x86 Windows Options): Likewise.
33325 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33327 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33328 preferred names of the architecture and its 32- and 64-bit
33330 * doc/invoke.texi: Likewise.
33331 * doc/md.texi: Likewise.
33333 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33336 * config/i386/predicates.md (address_no_seg_operand): Reject
33337 non-CONST_INT_P operands in invalid mode.
33339 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33341 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33342 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
33343 * config/i386/predicates.md (address_no_seg_operand): Call
33344 address_operand with VOIDmode.
33345 (vsib_address_operand): Ditto.
33346 (address_mpx_no_base_operand): Ditto.
33347 (address_mpx_no_index_operand): Ditto.
33349 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33352 * lra-constraints.c (original_subreg_reg_mode): New.
33353 (simplify_operand_subreg): Try to simplify subreg of const. Use
33354 original_subreg_reg_mode for it.
33355 (swap_operands): Update original_subreg_reg_mode.
33356 (curr_insn_transform): Set up original_subreg_reg_mode.
33358 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33361 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33363 (process_alt_operands): Use it.
33364 (curr_insn_transform): Check the optional reload pseudo class is
33367 2015-01-30 Joseph Myers <joseph@codesourcery.com>
33369 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33370 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33372 * toplev.h (init_asm_output): Update comment on use of
33373 UNKNOWN_LOCATION with fatal_error.
33374 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33375 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33376 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33377 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33378 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33379 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33380 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33381 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33382 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33383 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33384 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33385 fatal_error changed to pass input_location as first argument.
33387 2015-01-30 Martin Liska <mliska@suse.cz>
33389 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33390 in #pragma GCC diagnostic guards.
33392 2015-01-30 Richard Biener <rguenther@suse.de>
33394 PR tree-optimization/64829
33395 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33396 not add a widening conversion pattern but hand off extra
33397 widenings to callers.
33398 (vect_recog_widen_mult_pattern): Handle extra widening produced
33399 by vect_handle_widen_op_by_const.
33400 (vect_recog_widen_shift_pattern): Likewise.
33401 (vect_pattern_recog_1): Remove excess vertical space in dumping.
33402 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33403 (vect_init_vector_1): Likewise.
33404 (vect_get_vec_def_for_operand): Likewise.
33405 (vect_finish_stmt_generation): Likewise.
33406 (vectorizable_load): Likewise.
33407 (vect_analyze_stmt): Likewise.
33408 (vect_is_simple_use): Likewise.
33410 2015-01-29 Jeff Law <law@redhat.com>
33412 * combine.c (try_combine): Fix typo in comment.
33414 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
33417 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33418 (rs6000_stack_info): Add assert.
33419 (rs6000_output_savres_externs): New function, split off from...
33420 (rs6000_output_function_prologue): ... here. Do not call it for
33423 2015-01-29 Jeff Law <law@redhat.com>
33426 * combine.c (try_combine): If I0 is a memory load and I3 a store
33427 to a related address, increase the "goodness" of doing a 4-insn
33428 combination with I0-I3.
33429 (make_field_assignment): Handle SUBREGs in the ior+and case.
33431 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
33433 PR tree-optimization/64746
33434 * tree-if-conv.c (mask_exists): New function.
33435 (predicate_mem_writes): Save created mask with given size for further
33437 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
33438 (ifcvt_repair_bool_pattern): Collect all statements that are root
33439 of bool pattern and use iterative algorithm to remove multiple uses
33440 of predicates, display number of required iterations.
33442 2015-01-29 Richard Biener <rguenther@suse.de>
33444 PR tree-optimization/64853
33445 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
33446 stmt will get simulated again.
33447 * tree-ssa-ccp.c (valueize_op_1): Likewise.
33449 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33451 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
33452 return_in_pc. Remove redundant assignments.
33453 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
33454 (arm_expand_epilogue): Don't compare boolean with true in if condition.
33456 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
33458 * config/i386/i386.c (ix86_mode_after): Make static.
33460 2015-01-29 Richard Biener <rguenther@suse.de>
33462 PR tree-optimization/64844
33463 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
33464 dump cost model analysis.
33465 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33466 Do not register adjusted load/store costs here.
33468 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33469 Uros Bizjak <ubizjak@gmail.com>
33471 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
33472 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
33473 using x86_use_pseudo_pic_reg.
33474 * config/i386/i386.c (ix86_conditional_register_usage): Remove
33475 support for fixed PIC register.
33476 (ix86_use_pseudo_pic_reg): Not static any more.
33478 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33480 PR middle-end/64805
33481 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
33482 to avoid error in cgraph node verification.
33484 2015-01-29 Marek Polacek <polacek@redhat.com>
33486 * doc/standards.texi: Reflect that the default for C is gnu11.
33488 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
33491 * reorg.c (switch_text_sections_between_p): New function.
33492 (relax_delay_slots): Call it when testing if the jump insn
33493 is removable. Use targetm.can_follow_jump when testing if
33494 the conditional branch can follow an unconditional jump.
33496 2015-01-27 Caroline Tice <cmtice@google.com>
33498 Committing VTV Cywin/Ming patch for Patrick Wollgast
33499 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
33500 if -fvtable-verify=preinit/std is used.
33501 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
33502 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
33503 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
33504 if -fvtable-verify=preinit/std is used.
33505 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33506 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
33507 if -fvtable-verify=preinit/std is used.
33508 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
33509 * config/i386/mingw32.h (LIB_SPEC): Likewise.
33510 * varasm.c (assemble_variable): Add code to properly set the comdat
33511 section and name for the .vtable_map_vars section in case the
33512 target is PE or COFF.
33514 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33517 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
33518 make sane BB profile.
33519 (cgraph_node::expand_thunk): Make sane BB profile.
33520 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
33521 * cgraph.h (init_lowered_empty_function): Update prototype.
33522 * config/i386/i386.c (make_resolver_func): Update call.
33523 * predict.c (gate): Disable branch prediction pass if
33524 profile is already there.
33526 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33528 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
33529 * opth-gen.awk: Likewise.
33530 * common.opt: Mark flag_fp_contract_mode as Optimization.
33532 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
33534 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
33535 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
33537 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
33540 * config/sh/predicates.md (atomic_arith_operand,
33541 atomic_logical_operand): Remove.
33542 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
33543 (atomic_arith_operand_0): New predicate.
33544 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
33545 Use atomic_arith_operand_0 for input values.
33546 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
33547 atomic_compare_and_swap<mode>_soft_gusa,
33548 atomic_compare_and_swap<mode>_soft_tcb,
33549 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
33550 arith_reg_operand instead of register_operand.
33551 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
33552 atomic_arith_operand_0 for newval input.
33553 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
33554 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
33555 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
33556 arith_reg_operand instead of register_operand.
33557 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
33558 fetchop_predicate_1, fetchop_constraint_1_llcs,
33559 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
33560 fetchop_constraint_1_imask): New code iterator attributes.
33561 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
33562 register_operand. Use fetchop_predicate_1.
33563 (atomic_fetch_<fetchop_name>si_hard,
33564 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
33565 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
33566 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
33567 and arith_reg_operand instead of register_operand. Use
33568 fetchop_predicate_1, fetchop_constraint_1_gusa.
33569 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
33570 and arith_reg_operand instead of register_operand. Use
33571 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
33573 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
33574 and arith_reg_operand instead of register_operand. Use
33575 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
33577 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
33578 register_operand. Use atomic_logical_operand_1.
33579 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
33580 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
33581 arith_reg_operand instead of register_operand.
33582 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
33583 Use arith_reg_dest and arith_reg_operand instead of register_operand.
33584 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
33585 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
33586 register_operand. Use fetchop_predicate_1.
33587 (atomic_<fetchop_name>_fetchsi_hard,
33588 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
33589 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33590 fetchop_constraint_1_llcs.
33591 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
33592 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33593 fetchop_constraint_1_gusa.
33594 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
33595 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33596 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
33597 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
33598 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33599 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
33600 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
33601 register_operand. Use atomic_logical_operand_1.
33602 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
33603 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
33604 arith_reg_operand instead of register_operand.
33605 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
33606 arith_reg_operand instead of register_operand. Use logical_operand
33607 and K08. Adjust asm sequence to allow R0 usage.
33608 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
33609 arith_reg_operand instead of register_operand. Use logical_operand
33612 2015-01-28 Jakub Jelinek <jakub@redhat.com>
33615 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
33616 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
33617 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
33618 only get_full_len HOST_WIDE_INTs from get_val () array rather than
33619 all bits in *val_wide.
33621 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
33623 * varpool.c (tls_model_names): Fix names.
33624 (varpool_node::dump): Dump tls- prefix for tls models.
33626 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
33627 Bernd Schmidt <bernds@codesourcery.com>
33628 Nathan Sidwell <nathan@codesourcery.com>
33630 * config/nvptx/mkoffload.c: New file.
33631 * config/nvptx/t-nvptx: Add build rules for it.
33632 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
33633 (extra_programs): Add mkoffload.
33634 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
33636 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
33638 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
33640 PR middle-end/64809
33641 * cfgexpand.c (reorder_operands): Skip debug gimples.
33643 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
33645 PR tree-optimization/64277
33646 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
33647 range info when possible to refine estimation.
33649 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
33651 PR tree-optimization/64718
33652 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
33653 be a 16bit unsigned integer when n->range is 16.
33654 (bswap_replace): Convert src to that type if necessary for all bswap
33655 sizes. Fix rotation right notation in nearby comment. Use bswap_type
33656 set in pass_optimize_bswap::execute ().
33658 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
33660 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
33661 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
33662 integer and floating point variants.
33663 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
33665 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
33667 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
33668 for all vector modes.
33670 2015-01-28 Jakub Jelinek <jakub@redhat.com>
33673 * doc/sourcebuild.texi (comdat_group): Document.
33675 2015-01-28 Terry Guo <terry.guo@arm.com>
33677 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
33679 2015-01-27 David Malcolm <dmalcolm@redhat.com>
33681 * toplev.c (print_version): Add param "show_global_state", and
33682 only print GGC and plugin information if it is true.
33683 (init_asm_output): Pass in "true" for the new param when calling
33685 (process_options): Likewise.
33686 (toplev::main): Likewise.
33687 * toplev.h (print_version): Add new param to decl.
33689 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
33693 * tree.c (lookup_binfo_at_offset): New function.
33694 (get_binfo_at_offset): Use it.
33696 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
33699 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
33700 on vtable being vtable.
33702 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
33704 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
33705 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
33706 -mhotpatch= option.
33707 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
33708 -mno-hotpatch options. Change syntax of -mhotpatch= option.
33709 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
33711 (s390_hotpatch_trampoline_halfwords_max): Renamed.
33712 (s390_hotpatch_hw_max): New name.
33713 (s390_hotpatch_trampoline_halfwords): Renamed.
33714 (s390_hotpatch_hw_before_label): New name.
33715 (get_hotpatch_attribute): Removed.
33716 (s390_hotpatch_hw_after_label): New name.
33717 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
33719 (s390_attribute_table): Ditto.
33720 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
33721 (s390_function_num_hotpatch_hw): New name.
33722 Remove special handling of inline functions and hotpatching.
33723 Return number of nops before and after the function label.
33724 (s390_can_inline_p): Removed.
33725 (s390_asm_output_function_label): Emit a configurable number of nops
33726 after the function label.
33727 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
33728 (TARGET_CAN_INLINE_P) Removed.
33729 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
33731 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33732 Jiong Wang <jiong.wang@arm.com>
33734 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
33736 (cb<optab><mode>1): Likewise.
33737 * config/aarch64/iterators.md (bcond): New define_code_attr.
33739 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33741 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
33744 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33746 * config/s390/s390.c (s390_register_move_cost): Increase costs for
33749 2015-01-27 Richard Biener <rguenther@suse.de>
33751 * tree-vrp.c (update_value_range): Intersect the range with
33752 old recorded SSA name range information.
33754 2015-01-27 Nick Clifton <nickc@redhat.com>
33756 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
33757 BC, DE and HL registers directly, not via AX.
33758 When decrementing the stack pointer by a large amount, transfer SP
33759 into AX and perform the subtraction there.
33760 (rl78_expand_epilogue): Perform the inverse of the above
33763 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33765 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
33767 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33768 Yury Gribov <y.gribov@samsung.com>
33771 * ubsan.c (ubsan_source_location): Refactor code.
33772 (ubsan_type_descriptor): Update type size. Refactor code.
33774 2015-01-27 Richard Biener <rguenther@suse.de>
33776 PR tree-optimization/56273
33777 PR tree-optimization/59124
33778 PR tree-optimization/64277
33779 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
33780 from the first VRP pass.
33782 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33785 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
33786 handle the first argument in the same loop as all the other arguments.
33788 PR rtl-optimization/61058
33789 * jump.c (cleanup_barriers): Update basic block boundaries
33790 if BLOCK_FOR_INSN is non-NULL on PREV.
33792 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
33794 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
33795 bounds narrowing, already instrumented calls and calls to
33796 not instrumentable functions.
33798 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33800 PR tree-optimization/64807
33801 * wide-int.cc (wi::divmod_internal): Clear
33802 b_dividend[dividend_blocks_needed].
33804 2015-01-26 DJ Delorie <dj@redhat.com>
33806 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
33807 volatile memory references.
33809 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
33812 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
33814 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
33815 shifts if it already fits into K08.
33817 2015-01-26 Jakub Jelinek <jakub@redhat.com>
33820 * ipa-inline.c (inline_small_functions): Print "unknown" even
33821 if edge->call_stmt is non-NULL, but has builtins or unknown
33824 PR middle-end/64421
33825 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
33826 with asterisk, skip the first character.
33828 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
33831 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
33834 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
33837 * config/i386/i386.md (*movdi_internal): Also check operand 0
33838 to determine TYPE_LEA operand.
33839 (*movsi_internal): Ditto.
33841 2015-01-26 Jakub Jelinek <jakub@redhat.com>
33843 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
33844 OPTION_MASK_QUAD_MEMORY_ATOMIC.
33846 2015-01-26 Renlin Li <renlin.li@arm.com>
33848 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
33850 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
33853 2015-01-26 Richard Biener <rguenther@suse.de>
33855 PR middle-end/64764
33856 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
33857 combining two BIT_AND_EXPR predicates.
33859 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
33862 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
33864 2015-01-26 Terry Guo <terry.guo@arm.com>
33866 * config/arm/arm.c (arm_file_start): Update the assignment of
33867 Tag_ABI_HardFP_use.
33869 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
33871 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
33873 config/arm/arm.md: Include the new Cortex-A57 model.
33874 (generic_sched): Don't use generic_sched when tuning for
33877 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
33878 Uros Bizjak <ubizjak@gmail.com>
33880 * config/i386/i386.c (get_builtin_code_for_version): Add
33881 support for BMI and BMI2 multiversion functions.
33883 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33885 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
33886 (extract_bit_field): Likewise.
33887 (extract_low_bits): Likewise.
33888 (expand_mult): Likewise.
33889 (expand_mult_highpart_adjust): Likewise.
33891 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
33893 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
33894 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
33895 * config/i386/i386.c (processor_model): Add
33896 M_INTEL_COREI7_BROADWELL.
33897 (arch_names_table): Add "broadwell".
33899 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
33908 * config/sh/sh-protos.h
33909 (sh_extending_set_of_reg::can_use_as_unextended_reg,
33910 sh_extending_set_of_reg::use_as_unextended_reg,
33911 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
33912 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
33913 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
33914 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
33915 (sh_treg_insns): New class.
33916 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
33917 (scope_counter): New class.
33918 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
33919 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
33920 sh_extending_set_of_reg::can_use_as_unextended_reg,
33921 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
33922 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
33923 sh_split_treg_set_expr): New functions.
33924 (addsubcosts): Handle treg_set_expr.
33925 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
33926 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
33927 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
33928 (sh_insn_operands_modified_between_p): Make non-static.
33929 * config/sh/predicates.md (zero_extend_movu_operand): Allow
33930 simple_mem_operand in addition to displacement_mem_operand.
33931 (zero_extend_operand): Don't allow zero_extend_movu_operand.
33932 (treg_set_expr, treg_set_expr_not_const01,
33933 arith_reg_or_treg_set_expr): New predicates.
33934 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
33935 arith_or_int_operand instead of logical_operand. Convert to
33936 insn_and_split. Try to optimize constant operand in splitter.
33937 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
33938 (*tstqi_t_zero): Delete.
33939 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
33940 (tstsi_t_and_not): Delete.
33941 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
33942 Convert to insn_and_split.
33943 (unnamed split, tstsi_t_zero_extract_xor,
33944 tstsi_t_zero_extract_subreg_xor_little,
33945 tstsi_t_zero_extract_subreg_xor_big): Delete.
33946 (*tstsi_t_shift_mask): New insn_and_split.
33947 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
33948 to recombine with surrounding insns when splitting.
33949 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
33950 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
33951 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
33952 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
33953 (*cbranch_div0s: Delete.
33954 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33955 Try to recombine with surrounding insns when splitting. Add operand
33957 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
33958 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
33959 *addc_r_r_msb, *addc_2r_msb): Delete.
33960 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
33962 (*addc_negreg_t): New insn_and_split.
33963 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33964 Try to recombine with surrounding insns when splitting.
33965 Add operand order variants.
33966 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
33967 insn_and_split patterns.
33968 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
33969 surrounding insns when splitting.
33970 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
33971 (*rotcl): Likewise. Add zero_extract variant.
33972 (*ashrsi2_31): New insn_and_split.
33973 (*negc): Convert to insn_and_split. Use treg_set_expr.
33974 (*zero_extend<mode>si2_disp_mem): Update comment.
33975 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
33977 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
33978 with surrounding insns when splitting.
33979 (any_treg_expr_to_reg): New insn_and_split.
33980 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
33981 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
33982 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
33983 *zero_extract_2): New single bit zero extract patterns.
33984 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
33985 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
33986 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
33987 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
33989 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
33990 register_operand for set source.
33992 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
33994 * i386.opt (prefetch_sse): New targetsave.
33995 * i386.c (ix86_function_specific_save): Save prefetch_sse.
33996 (ix86_function_specific_restore): Restore prefetch_sse and initialize
33997 ix86_cost/ix86_tune_cost.
33999 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34001 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34002 Support the JIT by using 0 as the language type.
34004 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
34007 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
34008 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34009 (mark_regno_live, process_bb_lives): Pass new parameter value to
34010 make_hard_regno_born.
34012 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34014 PR rtl-optimization/63637
34015 PR rtl-optimization/60663
34016 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34017 if elt->cost is MAX_COST for ASM_OPERANDS.
34018 (find_sets_in_insn): Fix up comment typo.
34019 (cse_insn): Don't set src_volatile for all non-volatile
34020 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34021 or with "memory" clobber. Set elt->cost to MAX_COST
34022 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
34023 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34025 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34027 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34030 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34032 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34033 libgcc/config/i386/elf-lib.h.
34035 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34038 * gcc.c (print_configuration): Don't print a blank line at the end
34040 (run_attempt): ... but here unstead.
34042 PR middle-end/64734
34043 * omp-low.c (scan_sharing_clauses): Don't ignore
34044 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34045 on target data/update constructs.
34047 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
34050 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34051 (DEBUG_RELOAD): Removed define.
34052 (m32c_limit_reload_class): Enable traces with if DEBUG0.
34053 (m32c_function_arg): Added a type cast.
34054 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34055 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34056 * config/m32c/bitops.md (andqi3_16): Likewise.
34057 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34058 (push_a01_l): Likewise.
34060 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34063 * main.c (main): Construct toplev instances with init_signals=true.
34064 * toplev.c (general_init): Add param "init_signals", and use it to
34065 conditionalize the calls to signal and host_hooks.extra_signals.
34066 (toplev::toplev): Add param "init_signals".
34067 (toplev::main): When invoking general_init, pass m_init_signals
34068 to control whether signal-handlers are installed.
34069 * toplev.h (toplev::toplev): Add param "init_signals".
34070 (toplev::m_init_signals): New field.
34072 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34075 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34076 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34077 latter may be affected by the former (e.g. on i686).
34079 2015-01-23 Martin Liska <mliska@suse.cz>
34081 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34082 false positive during profiledbootstrap.
34084 2015-01-23 Tom de Vries <tom@codesourcery.com>
34087 * lto-opts.c (lto_write_options): Output non-explicit conservative
34089 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34090 (append_compiler_options): Pass -fopenacc through.
34092 2015-01-23 Tom de Vries <tom@codesourcery.com>
34095 * lto-opts.c (lto_write_options): Output non-explicit conservative
34097 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34098 (append_compiler_options): Pass -fopenmp through.
34100 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34103 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34106 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34107 * diagnostic.def (DK_ICE_NOBT): New kind.
34108 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34109 like DK_ICE, but never print backtrace.
34110 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34111 (internal_error_no_backtrace): New function.
34112 * gcc.c (execute): Use internal_error_no_backtrace instead of
34115 2015-01-22 Jeff Law <law@redhat.com>
34118 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34119 improve code density for small immediate to memory case.
34120 (insv): Better handle bitfield assignments when the field is
34121 being set to all ones.
34122 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34125 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34126 Jakub Jelinek <jakub@redhat.com>
34128 PR middle-end/64729
34129 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34130 for !TARGET_LIBC_PROVIDES_SSP version and
34131 -fstack-protector-{all,strong,explicit} otherwise.
34132 * config/freebsd.h (LINK_SSP_SPEC): Handle
34133 -fstack-protector-{strong,explicit}.
34135 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
34136 H.J. Lu <hongjiu.lu@intel.com>
34139 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34142 2015-01-22 Wei Mi <wmi@google.com>
34144 PR rtl-optimization/64557
34145 * dse.c (record_store): Call get_addr for mem_addr.
34146 (check_mem_read_rtx): Likewise.
34148 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
34150 * fold-const.c (const_binop): Add early return for non-tcc_binary.
34152 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
34154 * toplev.c (init_local_tick): Process the failure when read
34155 fails for random_seed.
34157 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34158 'pretty_name' to avoid memory overflow.
34160 2015-01-22 Richard Biener <rguenther@suse.de>
34162 PR middle-end/64728
34163 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34164 abnormal coalescing on undefined SSA names.
34166 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
34170 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34172 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34174 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
34176 PR middle-end/63325
34177 * fold-const.c (fold_checksum_tree): Don't include value of
34178 expr->decl_with_vis.symtab_node in the checksum.
34180 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34182 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34184 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
34187 * gcc.c (insert_comments): New function.
34188 (try_generate_repro): Call it.
34189 (append_text): Removed.
34191 2015-01-22 Richard Biener <rguenther@suse.de>
34193 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34194 with IL incompatible options. Properly honor user optimize
34197 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
34199 PR rtl-optimization/64682
34200 * combine.c (distribute_notes): When moving a death note for
34201 a register that is set in the new I2, make sure to put it
34202 before that new I2.
34204 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
34206 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34207 not TARGET_DEFAULT.
34209 2015-01-21 Jakub Jelinek <jakub@redhat.com>
34212 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34213 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34214 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34217 * doc/invoke.texi (-fsanitize=vptr): Document.
34219 PR rtl-optimization/62078
34220 * dse.c: Include cfgcleanup.h.
34221 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34222 anything call purge_all_dead_edges and cleanup_cfg at the end
34225 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
34227 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34230 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34232 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34235 2015-01-21 David Sherwood <david.sherwood@arm.com>
34236 Tejas Belagod <Tejas.Belagod@arm.com>
34238 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34239 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34240 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34243 2015-01-21 David Sherwood <david.sherwood@arm.com>
34244 Tejas Belagod <Tejas.Belagod@arm.com>
34246 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34247 (aarch64_reverse_mask): New decls.
34248 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34249 (insn_count): New mode_attr.
34250 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34251 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34252 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34253 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34254 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34255 (aarch64_simd_st4): New patterns.
34256 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34257 (aarch64_reverse_mask): New functions.
34259 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34261 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34263 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34264 addressing modes for BE.
34265 (aarch64_print_operand): Add 'R' specifier.
34266 (aarch64_simd_disambiguate_copy): Delete.
34267 (aarch64_simd_emit_reg_reg_move): New function.
34268 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34269 in define_splits for structural moves.
34270 (mov<mode>): Use less restrictive predicates.
34271 (*aarch64_mov<mode>): Simplify and only allow for LE.
34272 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34274 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34276 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34278 2015-01-21 Richard Henderson <rth@redhat.com>
34281 * ccmp.c (used_in_cond_stmt_p): Remove.
34282 (expand_ccmp_expr): Don't use it.
34284 2015-01-21 Nick Clifton <nickc@redhat.com>
34286 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34289 2015-01-21 Richard Biener <rguenther@suse.de>
34291 PR middle-end/64313
34292 * tree-core.h (builtin_info, builtin_info_type): Turn from
34293 an object with two arrays into an array of an object with
34294 decl and two flags, implicit_p and declared_p.
34295 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34296 set_builtin_decl, set_builtin_decl_implicit_p,
34297 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34298 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34299 * builtins.c (builtin_info): Adjust.
34300 * gimplify.c (gimplify_addr_expr): References to builtins
34301 that have been declared by the user makes them eligible for
34302 use by the compiler. Call set_builtin_decl_implicit_p on them.
34304 2015-01-20 Jeff Law <law@redhat.com>
34307 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34308 allow pc-relative addresses in operand predicates or constraints.
34310 2015-01-21 Bin Cheng <bin.cheng@arm.com>
34312 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34313 neon on aarch32 processors for stringops.
34315 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34318 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34320 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34323 * ipa-inline.c: Include lto-streamer.h
34324 (report_inline_failed_reason): Output source file differences and
34325 flags on optimization/target node mismatch.
34326 (can_inline_edge_p): Consider caller to be the outer inline function;
34327 be less restrictive about matching opimize and optimize_size attributes.
34328 (inline_account_function_p): Break out from ...
34329 (inline_small_functions): ... here.
34330 * ipa-inline-transform.c (clone_inlined_nodes): Use
34331 inline_account_function_p.
34332 (inline_call): Use optimize attribution; use inline_account_function_p.
34333 (inline_transform): Use opt_for_fn.
34334 * ipa-inline.h (inline_account_function_p): Declare.
34336 2015-01-20 Jakub Jelinek <jakub@redhat.com>
34339 * dwarf2out.c (decl_piece_node): Don't put bitsize into
34340 mode if bitsize <= 0.
34341 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34342 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34343 sizes and positions.
34345 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
34347 * config/nios2/nios2.c (nios2_asm_file_end): Implement
34348 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34350 (TARGET_ASM_FILE_END): Define.
34352 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34354 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34355 (struct tune_params): Use the enum.
34356 * arm.c (arm_*_tune): Update.
34357 (arm_option_override): Update.
34359 2015-01-20 Richard Biener <rguenther@suse.de>
34362 * ipa-reference.c (add_static_var): Inline ...
34363 (analyze_function): ... here after splitting out from ...
34364 (is_proper_for_analysis): ... this.
34366 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
34369 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34370 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34371 replace the conditional with it's true branch.
34372 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34373 (arm_lra_p): Remove.
34375 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
34377 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34379 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34381 * config/tilegx/mul-tables.c: Move symtab.h include after
34382 coretypes.h include.
34383 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34384 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34385 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34386 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34387 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34389 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
34393 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34395 PR rtl-optimization/64081
34396 * loop-iv.c (def_pred_latch_p): New function.
34397 (latch_dominating_def): Allow specific cases with non-single
34399 (iv_get_reaching_def): Likewise.
34400 (check_complex_exit_p): New function.
34401 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34402 with exits not executing on any iteration.
34404 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34407 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34408 to set branch cost.
34410 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34413 * i386.c (gate): Check flag_expensive_optimizations and
34415 (ix86_option_override_internal): Drop optimize_size condition
34416 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34417 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34418 MASK_PREFER_AVX128.
34419 (ix86_avx256_split_vector_move_misalign,
34420 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34421 * sse.md (all uses of TARGET_PREFER_AVX128): Add
34422 optimize_insn_for_speed_p check.
34424 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
34426 * config/mips/mips.h (FP_ASM_SPEC): New define.
34427 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34430 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
34433 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
34434 nullptr for insn when reaching the first insn.
34435 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
34436 (sh_insn_operands_modified_between_p): Add nullptr check.
34437 (sh_find_extending_set_of_reg): Fix log message. Don't accept
34438 sign extending mem load if the insn contains any UNSPEC or
34441 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34443 * params.def (inline-unit-growth): Drop to 15%.
34444 * invoke.texi (inline-unit-growth): Document change.
34446 2015-01-19 Martin Liska <mliska@suse.cz>
34449 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
34450 function for second argument of OBJ_TYPE_REF.
34452 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34455 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
34456 whether function is an alias.
34458 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34460 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
34463 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
34465 PR rtl-optimization/64671
34466 * lra-remat.c (operand_to_remat): Don't consider jump and call
34469 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
34472 * config/rs6000/default64.h: Include rs6000-cpus.def.
34473 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
34474 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
34475 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
34477 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
34479 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
34480 pseudo-op to specify assembler dialect.
34482 2015-01-19 Martin Liska <mliska@suse.cz>
34485 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
34486 Handle safe potentially removed nodes during filtering.
34488 2015-01-19 Martin Liska <mliska@suse.cz>
34490 * doc/extend.texi (no_icf): Add new attribute description.
34491 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
34492 where the pass attempts to merge a function with no_icf attribute.
34494 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34497 * doc/md.texi (ARM Options): Document register constraints.
34499 2015-01-19 Jiong Wang <jiong.wang@arm.com>
34500 Andrew Pinski <apinski@cavium.com>
34503 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
34504 (ashl<mode>3): Don't expand if operands[2] is not constant.
34506 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34509 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
34510 Match xor-and-xor RTL pattern.
34512 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34514 PR rtl-optimization/64081
34515 * loop-iv.c (def_pred_latch_p): New function.
34516 (latch_dominating_def): Allow specific cases with non-single
34518 (iv_get_reaching_def): Likewise.
34519 (check_complex_exit_p): New function.
34520 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34521 with exits not executing on any iteration.
34523 2015-01-19 Jakub Jelinek <jakub@redhat.com>
34525 * common.opt (fgraphite): Fix a typo.
34527 2015-01-19 Felix Yang <felix.yang@huawei.com>
34529 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
34531 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34532 uminp, smax_nanp, smin_nanp): New builtins.
34533 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
34534 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
34535 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
34536 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
34537 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
34538 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
34539 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
34540 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
34541 vpminnms_f32): Rewrite using builtin functions.
34543 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
34546 * omp-low.c (offload_symbol_decl): Remove variable.
34547 (get_offload_symbol_decl): Remove function.
34548 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
34549 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
34550 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
34551 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
34552 BUILT_IN_GOACC_UPDATE don't pass it at all.
34554 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34556 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
34559 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34561 * ipa-chkp.c (chkp_produce_thunks): Add early param
34562 to split thunks production into two passes. Keep
34563 'always_inline' function bodies after the first pass.
34564 (pass_data_ipa_chkp_early_produce_thunks): New.
34565 (pass_ipa_chkp_early_produce_thunks): New.
34566 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
34567 chkp_produce_thunks signature.
34568 (make_pass_ipa_chkp_early_produce_thunks): New.
34569 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
34570 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
34571 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
34573 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34575 * cgraph.c (cgraph_node::dump): Dump profile flags.
34577 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
34580 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
34581 reg appear first in the parallel.
34583 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34585 * ipa-reference.c (set_reference_optimization_summary,
34586 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
34588 (ignore_module_statics): New static var.
34589 (propagate_bits): If ipa-reference is disabled, do not look into local
34591 (analyze_function): Disable analysis when ipa_reference is disabled.
34592 (generate_summary): Do not dump when reference is disabled;
34593 collect vars accessed from functions with ipa-reference disabled.
34594 (get_read_write_all_from_node): When ipa-reference is disabled, use the
34596 (gate): Enable for LTO.
34597 (ignore_edge_p): New function.
34598 (propagate): Skip functions w/o ipa-reference analysis.
34599 * optc-save-gen.awk: Handle optimize_debug correctly.
34600 * opth-gen.awk: Likewise.
34601 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
34602 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
34603 fira-share-save-slots, fira-share-spill-slots,
34604 fmodulo-sched-allow-regmoves, fpartial-inlining,
34605 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
34606 ftracer, ftree-parallelize-loops, fassociative-math,
34607 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
34609 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
34610 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
34612 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
34615 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34618 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
34620 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
34622 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
34624 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
34625 Remove duplicate option listings.
34627 2015-01-18 Felix Yang <felix.yang@huawei.com>
34629 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
34630 (autofdo_source_profile::get_callsite_total_count,
34631 function_instance::get_function_instance_by_decl,
34632 string_table::get_index, string_table::get_index_by_decl,
34633 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
34634 Fix comment typos. Reformatting and minor code rearrangement.
34636 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34638 * config/rs6000/rs6000.md (probe_stack): Delete.
34639 (probe_stack_address): New.
34641 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34643 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
34644 to test for 32-bit ABIs, not !TARGET_POWERPC64.
34646 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34648 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
34649 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
34650 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
34652 (rs6000_libcall_value): Use the new function.
34654 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
34656 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
34658 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
34660 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
34661 implement a more precise life analysis for it during backward scan.
34663 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
34665 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
34667 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
34669 PR rtl-optimization/52773
34670 * calls.c (emit_library_call_value): When pushing arguments use
34671 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
34672 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
34673 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
34675 2015-01-17 Jeff Law <law@redhat.com>
34677 PR rtl-optimization/32790
34678 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
34679 not ZERO_EXTEND in SET_DESTs.
34681 2015-01-17 Alan Modra <amodra@gmail.com>
34683 * cprop.c (do_local_cprop): Revert last change.
34685 2015-01-16 DJ Delorie <dj@redhat.com>
34686 Nick Clifton <nickc@redhat.com>
34688 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
34689 (addhi3_real): Likewise. Fix [HL+0] syntax.
34690 (subqi3_real): Likewise.
34691 (subhi3_real): Likewise.
34692 (cbranchqi4_real): Likewise. Allow saddr,#imm.
34693 (cbranchhi4_real): Likewise.
34694 (cbranchhi4_real_inverted): Likewise.
34695 (cbranchsi4_real_lt): Likewise.
34696 (cbranchsi4_real_ge): Likewise.
34697 (cbranchsi4_real_ge): Likewise.
34698 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
34699 (sub<mode>3_virt): Likewise.
34700 (cbranchqi4_virt): Likewise.
34701 (cbranchhi4_virt): Likewise.
34702 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
34703 always use '[reg+imm]' even when imm is zero.
34704 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
34705 (rl78_general_operand): New.
34706 (rl78_nonimmediate_operand): New.
34707 (rl78_nonfar_operand): Use them.
34708 (rl78_nonfar_nonimm_operand): Likewise.
34709 (rl78_stack_based_mem): Fix.
34710 * config/rl78/constraints.md (Ibqi): New.
34715 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
34716 (iorqi3): Likewise.
34717 (xorqi3): Likewise.
34718 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
34720 * config/rl78/constrains (Qs8): New constraint.
34721 * config/rl78/rl78.c (rl78_flags_already_set): New function.
34722 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
34723 * config/rl78/rl78-real.md (update_Z): New attribute.
34724 Update patterns to set it.
34725 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
34726 shorter compare and branch sequence can be used.
34727 (cbranchhi4_real): Likewise.
34728 (cbranchhi4_real_inverted): Likewise.
34730 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
34731 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
34733 * config/rl78/rl78.c (rl78_get_name_encoding): New.
34734 (rl78_option_override): Allow -mes0 only if C.
34735 (characterize_address): Support subregs of symbol_refs.
34736 (rl78_addr_space_address_mode): Move. Add __near.
34737 (rl78_far_p): Likewise.
34738 (rl78_addr_space_pointer_mode): Likewise.
34739 (rl78_as_legitimate_address): Likewise.
34740 (rl78_addr_space_subset_p): Likewise.
34741 (rl78_addr_space_convert): Likewise.
34742 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
34743 symbols with -mes0.
34744 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
34746 (rl78_alloc_physical_registers_op1): Change logic to prefer
34747 symbol[BC] addressing.
34748 (frodata_section): New.
34749 (rl78_asm_init_sections): Initialize it.
34750 (rl78_select_section): Put __far readonly symbols in .frodata.
34751 (rl78_make_type_far): New.
34752 (rl78_insert_attributes): Force all readonly symbols to be
34754 (rl78_asm_out_integer): New.
34755 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
34756 * config/rl78/rl78.opt (-mes0): New.
34758 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
34759 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
34760 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
34761 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
34762 (rl78_saddr_p): New.
34763 (rl78_output_aligned_common): New.
34764 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
34765 (rl78_handle_saddr_attribute): New.
34766 (rl78_handle_naked_attribute): New.
34767 (rl78_attribute_table): Add saddr.
34768 (rl78_print_operand_1): Don't print '!' on saddr operands.
34769 (rl78_print_operand_1): Strip encodings.
34771 (rl78_strip_name_encoding): New.
34772 (rl78_attrlist_to_encoding): New.
34773 (rl78_encode_section_info): New.
34774 (rl78_asm_init_sections): New.
34775 (rl78_select_section): New.
34776 (rl78_output_labelref): New.
34777 (rl78_output_aligned_common): New.
34778 (rl78_asm_out_integer): New.
34779 (rl78_asm_ctor_dtor): New.
34780 (rl78_asm_constructor): New.
34781 (rl78_asm_destructor): New.
34783 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
34784 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
34785 (transcode_memory_rtx): Update.
34786 (rl78_expand_epilogue): Use A_REG instead of 0.
34788 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34790 * config/arm/arm-protos.h (struct tune_params): New field
34791 sched_autopref_queue_depth.
34792 * config/arm/arm.c (sched-int.h): Include header.
34793 (arm_first_cycle_multipass_dfa_lookahead_guard,)
34794 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
34795 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
34796 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
34797 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
34798 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
34799 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
34800 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
34801 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
34802 * config/arm/t-arm (arm.o): Update.
34803 * haifa-sched.c (update_insn_after_change): Update.
34804 (rank_for_schedule): Use auto-prefetcher model, if requested.
34805 (autopref_multipass_init): New static function.
34806 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
34807 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
34808 variable for debug dumps.
34809 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
34810 (autopref_multipass_dfa_lookahead_guard): New global function that
34811 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
34812 (init_h_i_d): Update.
34813 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
34814 * sched-int.h (enum autopref_multipass_data_status): New const enum.
34815 (autopref_multipass_data_): Structure for auto-prefetcher data.
34816 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
34817 (struct _haifa_insn_data:autopref_multipass_data): New field.
34818 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
34819 (autopref_multipass_dfa_lookahead_guard): Declare.
34821 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34823 * rtlanal.c (get_base_term): Handle SCRATCH.
34825 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34827 * config/aarch64/aarch64.c
34828 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
34829 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34831 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
34832 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34834 2015-01-17 Alan Modra <amodra@gmail.com>
34836 * cprop.c (do_local_cprop): Disallow replacement of fixed
34839 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34842 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
34845 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
34847 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
34848 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
34850 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34852 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
34853 * config/arm/thumb1.md: ... Here.
34855 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34857 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
34858 TImode for TARGET_32BIT.
34860 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34862 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
34863 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
34865 (rs6000_abi_word_mode): New function.
34867 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34869 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
34870 instead of UNITS_PER_WORD to describe the size of stack slots.
34872 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34874 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
34875 as rs6000_promote_function_mode. Move comment to there.
34876 (rs6000_promote_function_mode): New function.
34878 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34880 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
34881 -mpowerpc64 is active.
34883 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34885 PR middle-end/64353
34886 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
34889 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
34891 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
34892 introduced in revision 219724.
34894 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34895 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34898 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
34899 destination is not a GP reg.
34900 (*movdi_aarch64): Likewise.
34902 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
34905 * config/rs6000/default64.h: Revert ISA change.
34907 2015-01-16 Richard Biener <rguenther@suse.de>
34909 PR middle-end/64614
34910 * tree-ssa-uninit.c: Include tree-cfg.h.
34911 (MAX_SWITCH_CASES): New define.
34912 (convert_control_dep_chain_into_preds): Handle switch statements.
34913 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
34914 (normalize_one_pred_1): Do not split bit-manipulations.
34917 2015-01-16 Richard Biener <rguenther@suse.de>
34919 PR tree-optimization/64568
34920 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
34921 complex load rewriting for TARGET_MEM_REFs.
34923 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
34925 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
34927 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
34930 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
34932 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
34933 (aarch64_lra_p): Remove.
34935 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34938 * ipa-chkp.h (chkp_instrumentable_p): New.
34939 * ipa-chkp.c: Include tree-inline.h.
34940 (chkp_instrumentable_p): New.
34941 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
34942 Fix processing of not instrumentable functions.
34943 (chkp_versioning): Use chkp_instrumentable_p. Warn about
34944 not instrumentable functions.
34945 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
34946 chkp_instrumentable_p.
34947 * tree-inline.h (copy_forbidden): New.
34948 * tree-inline.c (copy_forbidden): Not static anymore.
34950 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34952 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
34955 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34957 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
34958 type OP_OUT to OP_INOUT.
34960 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34962 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
34963 (high x) y) to y if x and y have the same base.
34965 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
34967 * config/arm/cortex-a57.md: New.
34968 * config/aarch64/aarch64.md: Include it.
34969 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
34970 * config/aarch64/aarch64-tune.md: Regenerate.
34972 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
34975 * ccmp.c (expand_ccmp_next): New function.
34976 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
34977 and compare insn sequence.
34978 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
34979 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
34980 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
34981 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
34982 (*ccmp_ior): Changed to ccmp_ior<mode>.
34983 (cmp<mode>): New pattern.
34984 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
34986 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
34988 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
34990 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
34991 _mm256_bsrli_epi128): New.
34992 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
34994 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34996 * expmed.c (store_bit_field_using_insv): Improve warning message.
34997 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
34999 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35001 PR rtl-optimization/64011
35002 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35003 there is partial overflow.
35005 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35007 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35009 (nds32_expand_epilogue_v3pop): Likewise.
35010 * config/nds32/nds32.md (sibcall): Define this for sibling call
35012 (sibcall_register): Likewise.
35013 (sibcall_immediate): Likewise.
35014 (sibcall_value): Likewise.
35015 (sibcall_value_register): Likewise.
35016 (sibcall_value_immediate): Likewise.
35017 (sibcall_epilogue): Likewise.
35018 (epilogue): Pass false to indicate this is not a sibcall epilogue.
35019 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35020 (nds32_expand_epilogue_v3pop): Likewise.
35022 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35024 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35025 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35026 (return_internal): New.
35027 (return): Define this named pattern.
35028 (simple_return): Define this named pattern.
35029 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35030 pattern instead of unspec_volatile_func_return.
35031 (nds32_expand_epilogue_v3pop): Likewise.
35032 (nds32_can_use_return_insn): New function.
35034 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35036 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35037 * config/nds32/nds32.md (pop25return): New.
35038 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35039 pop25return pattern.
35041 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35043 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35044 -mforbid-fp-as-gp, and -mex9 options.
35046 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35048 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35049 remove -mgp-direct option.
35051 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35053 * doc/invoke.texi (--param early-inlining-insns): Update default value.
35054 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35056 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35058 * ipa-inline.c (inline_small_functions): Work around hints
35061 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
35064 * doc/invoke.texi (Option Summary): Document new Nios II
35066 (Nios II Options): Likewise.
35067 * config/nios2/nios2.opt: Add -mgpopt= option support.
35068 Modify existing -mgpopt and -mno-gpopt options to be aliases.
35069 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35070 * config/nios2/nios2.c (nios2_option_override): Adjust
35071 -mgpopt defaulting.
35072 (nios2_in_small_data_p): Return true for explicit small data
35073 sections even with -G0.
35074 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35077 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35080 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35082 (inline_call): Fix removal of aliases.
35084 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35086 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35087 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35088 * opts.c (common_handle_option): Add -fsanitize=vptr.
35089 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35090 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35091 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35092 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35093 (ubsan_expand_vptr_ifn): New prototype.
35094 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35095 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35096 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35097 expand_LOOP_VECTORIZED): Make argument nameless, remove
35099 (expand_UBSAN_VPTR): New function.
35100 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35102 (UBSAN_VPTR): New internal function.
35103 * sanopt.c (tree_map_traits): Renamed to ...
35104 (sanopt_tree_map_traits): ... this.
35105 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35106 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35107 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
35108 (maybe_optimize_ubsan_vptr_ifn): New function.
35109 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35110 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
35112 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35113 internal calls like pure functions for aliasing, even when they
35114 have other side-effects that prevent making them ECF_PURE.
35115 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35116 (ubsan_expand_vptr_ifn): New function.
35118 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
35120 PR rtl-optimization/64110
35121 * stmt.c (parse_output_constraint): Process '^' and '$'.
35122 (parse_input_constraint): Ditto.
35123 * lra-constraints.c (process_alt_operands): Process the new
35125 * ira-costs.c (record_reg_classes): Process the new constraint
35127 * genoutput.c (indep_constraints): Add '^' and '$'.
35128 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35129 * doc/md.texi: Add description of the new constraints.
35131 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
35132 Bernd Schmidt <bernds@codesourcery.com>
35133 Cesar Philippidis <cesar@codesourcery.com>
35134 James Norris <jnorris@codesourcery.com>
35135 Tom de Vries <tom@codesourcery.com>
35136 Ilmir Usmanov <i.usmanov@samsung.com>
35137 Dmitry Bocharnikov <dmitry.b@samsung.com>
35138 Evgeny Gavrin <e.gavrin@samsung.com>
35139 Jakub Jelinek <jakub@redhat.com>
35141 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35142 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35143 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35144 New function types.
35145 * builtins.c: Include "gomp-constants.h".
35146 (expand_builtin_acc_on_device): New function.
35147 (expand_builtin, is_inexpensive_builtin): Handle
35148 BUILT_IN_ACC_ON_DEVICE.
35149 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35151 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35153 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35154 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35155 i386/intelmic-offload.h.
35156 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35157 to libgomp and its dependencies.
35158 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35159 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35160 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35161 * config/ia64/hpux.h (LIB_SPEC): Likewise.
35162 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35163 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35164 * doc/generic.texi: Update for OpenACC changes.
35165 * doc/gimple.texi: Likewise.
35166 * doc/invoke.texi: Likewise.
35167 * doc/sourcebuild.texi: Likewise.
35168 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35169 GF_OMP_FOR_KIND_OACC_LOOP.
35170 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35171 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35172 GF_OMP_TARGET_KIND_OACC_UPDATE,
35173 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35175 * gimple.c: Update comments for OpenACC changes.
35176 * gimple.def: Likewise.
35177 * gimple.h: Likewise.
35178 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35179 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35180 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35181 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35182 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35184 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35185 * gimplify.c: Include "gomp-constants.h".
35186 Update comments for OpenACC changes.
35187 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35188 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35189 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35190 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35191 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35192 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35193 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35194 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35195 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35197 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35198 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35199 OMP_CLAUSE_SET_MAP_KIND.
35200 (gimplify_oacc_cache): New function.
35201 (gimplify_omp_for): Handle OACC_LOOP.
35202 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35204 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35205 OACC_EXIT_DATA, OACC_UPDATE.
35206 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35207 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35208 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35209 (gimplify_body): Consider flag_openacc next to flag_openmp.
35210 * lto-streamer-out.c: Include "gomp-constants.h".
35211 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35212 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35213 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35214 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35215 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35216 (BUILT_IN_ACC_ON_DEVICE): New builtins.
35217 * omp-low.c: Include "gomp-constants.h".
35218 Update comments for OpenACC changes.
35219 (struct omp_context): Add reduction_map, gwv_below, gwv_this
35221 (extract_omp_for_data, use_pointer_for_field, install_var_field)
35222 (new_omp_context, delete_omp_context, scan_sharing_clauses)
35223 (create_omp_child_function, scan_omp_for, scan_omp_target)
35224 (check_omp_nesting_restrictions, lower_reduction_clauses)
35225 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35226 Update for OpenACC changes.
35227 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35228 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35229 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35230 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35231 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35232 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
35234 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35235 Handle GF_OMP_FOR_KIND_OACC_LOOP.
35236 (expand_omp_target, lower_omp_target): Handle
35237 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35238 GF_OMP_TARGET_KIND_OACC_UPDATE,
35239 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35240 GF_OMP_TARGET_KIND_OACC_DATA.
35241 (pass_expand_omp::execute, execute_lower_omp)
35242 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35244 (offload_symbol_decl): New variable.
35245 (oacc_get_reduction_array_id, oacc_max_threads)
35246 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35247 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35248 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35249 (oacc_gimple_assign, oacc_initialize_reduction_data)
35250 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35252 (is_targetreg_ctx): Remove function.
35253 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35254 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35255 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35256 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35257 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35258 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35259 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35260 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35261 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35262 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35263 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35264 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35265 * tree-core.h: Update comments for OpenACC changes.
35266 (enum omp_clause_map_kind): Remove.
35267 (struct tree_omp_clause): Change type of map_kind member from enum
35268 omp_clause_map_kind to unsigned char.
35269 * tree-inline.c: Update comments for OpenACC changes.
35270 * tree-nested.c: Likewise. Include "gomp-constants.h".
35271 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35272 (convert_tramp_reference_stmt, convert_gimple_call): Update for
35273 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35274 OMP_CLAUSE_SET_MAP_KIND.
35275 * tree-pretty-print.c: Include "gomp-constants.h".
35276 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35277 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35278 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35279 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35280 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35281 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
35282 instead of OMP_CLAUSE_MAP_*.
35283 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35284 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35285 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35286 * tree-streamer-in.c: Include "gomp-constants.h".
35287 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35288 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
35289 * tree-streamer-out.c: Include "gomp-constants.h".
35290 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35292 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35293 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35294 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35295 * tree.c (omp_clause_num_ops): Update accordingly.
35296 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35298 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35299 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35300 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35301 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35302 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35303 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35304 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35305 (OMP_CLAUSE_SET_MAP_KIND): New macro.
35306 * varpool.c (varpool_node::get_create): Consider flag_openacc next
35308 * config/i386/intelmic-offload.h: New file.
35309 * config/nvptx/offload.h: Likewise.
35311 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35313 * explow.h: Remove duplicate contents.
35314 * dojump.h: Likewise.
35316 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
35318 * arm.c (arm_xgene_tune): Add default initializer for instruction
35321 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35325 * ipa.c (symbol_table::remove_unreachable_nodes):
35326 Do not put abstract origins into boundary.
35328 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
35330 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35331 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35333 2015-01-15 Steve Ellcey <sellcey@mips.com>
35335 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35336 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35337 builtins.def, and chkp-builtins.def.
35339 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
35341 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35344 2015-01-15 Richard Biener <rguenther@suse.de>
35346 PR tree-optimization/61743
35347 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35348 information on PHIs for some simple cases.
35350 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35352 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35354 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35355 * config/arm/arm-cores.def (xgene1): New entry.
35356 * config/arm/arm-tables.opt: Regenerate.
35357 * config/arm/arm-tune.md: Regenerate.
35358 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35360 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35362 * tree-if-conv.c: Include hash-map.h.
35363 (aggressive_if_conv): New variable.
35364 (fold_build_cond_expr): Add simplification of non-zero condition.
35365 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35366 destination block is not always executed.
35367 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35368 than two predecessors if AGGRESSIVE_IF_CONV is true.
35369 (if_convertible_stmt_p): Fix commentary.
35370 (all_preds_critical_p): New function.
35371 (has_pred_critical_p): New function.
35372 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35373 BB can have more than two predecessors and all incoming edges can be
35375 (predicate_bbs): Skip predication for loop exit block, use build2_loc
35376 to compute predicate for true edge.
35377 (find_phi_replacement_condition): Delete this function.
35378 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35379 Allow interchange PHI arguments if EXTENDED is false.
35380 Change check that block containing reduction statement candidate
35381 is predecessor of phi-block since phi may have more than two arguments.
35382 (phi_args_hash_traits): New helper structure.
35383 (struct phi_args_hash_traits): New type.
35384 (phi_args_hash_traits::hash): New function.
35385 (phi_args_hash_traits::equal_keys): New function.
35386 (gen_phi_arg_condition): New function.
35387 (predicate_scalar_phi): Add handling of phi nodes with more than two
35388 arguments, delete COND and TRUE_BB arguments, insert body of
35389 find_phi_replacement_condition to predicate ordinary phi nodes.
35390 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35391 delete call of find_phi_replacement_condition and invoke
35392 predicate_scalar_phi with two arguments.
35393 (insert_gimplified_predicates): Add assert that non-predicated block
35394 don't have statements to insert.
35395 (ifcvt_split_critical_edges): New function.
35396 (ifcvt_split_def_stmt): Likewise.
35397 (ifcvt_walk_pattern_tree): Likewise.
35398 (stmt_is_root_of_bool_pattern): Likewise.
35399 (ifcvt_repair_bool_pattern): Likewise.
35400 (ifcvt_local_dce): Likewise.
35401 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35402 is copy of inner or outer loop force_vectorize field, invoke
35403 ifcvt_split_critical_edges, ifcvt_local_dce and
35404 ifcvt_repair_bool_pattern for aggressive if-conversion.
35406 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
35408 * config/aarch64/aarch64.md: Include xgene1.md.
35409 * config/aarch64/xgene1.md: New file.
35411 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35413 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35414 xgene1 (APM XGene-1) core definition.
35415 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35416 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35417 * doc/invoke.texi: Document -mcpu=xgene1.
35419 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35421 * dojump.h: New header file.
35422 * explow.h: Likewise.
35423 * expr.h: Remove includes.
35424 Move expmed.c prototypes to expmed.h.
35425 Move dojump.c prototypes to dojump.h.
35426 Move alias.c prototypes to alias.h.
35427 Move explow.c prototypes to explow.h.
35428 Move calls.c prototypes to calls.h.
35429 Move emit-rtl.c prototypes to emit-rtl.h.
35430 Move varasm.c prototypes to varasm.h.
35431 Move stmt.c prototypes to stmt.h.
35432 (saved_pending_stack_adjust): Move to dojump.h.
35433 (adjust_address): Move to explow.h.
35434 (adjust_address_nv): Move to emit-rtl.h.
35435 (adjust_bitfield_address): Likewise.
35436 (adjust_bitfield_address_size): Likewise.
35437 (adjust_bitfield_address_nv): Likewise.
35438 (adjust_automodify_address_nv): Likewise.
35439 * explow.c (expr_size): Move to expr.c.
35440 (int_expr_size): Likewise.
35441 (tree_expr_size): Likewise.
35442 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35443 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35444 * genemit.c (main): Generate includes statistics.h, real.h,
35445 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
35447 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
35448 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
35449 explow.h, emit-rtl.h, stmt.h.
35450 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
35451 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
35452 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
35453 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
35454 emit-rtl.h, varasm.h, stmt.h.
35455 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
35456 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
35457 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
35458 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
35459 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35460 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
35461 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
35462 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
35463 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
35464 tm.h tree.h varasm.h vec.h wide-int.h.
35465 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35466 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35467 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
35468 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
35469 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
35470 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
35471 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
35472 * loop-iv.c: Likewise.
35473 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
35474 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
35475 statistics.h stmt.h tree.h varasm.h wide-int.h.
35476 * lra-constraints.c: Likewise.
35477 * lra-eliminations.c: Likewise.
35478 * lra-lives.c: Likewise.
35479 * lra-remat.c: Likewise.
35480 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35481 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
35482 statistics.h stmt.h tree.h varasm.h wide-int.h.
35483 * hw-doloop.c: Likewise.
35484 * ira-color.c: Likewise.
35485 * ira-emit.c: Likewise.
35486 * loop-doloop.c: Likewise.
35487 * loop-invariant.c: Likewise.
35488 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35489 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
35490 statistics.h stmt.h tree.h varasm.h wide-int.h.
35491 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
35492 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
35493 statistics.h stmt.h tree.h varasm.h wide-int.h.
35494 * combine-stack-adj.c: Likewise.
35497 * ifcvt.c: Likewise.
35498 * ira-costs.c: Likewise.
35499 * jump.c: Likewise.
35500 * lra-coalesce.c: Likewise.
35501 * lra-spills.c: Likewise.
35502 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35503 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
35504 stmt.h varasm.h wide-int.h.
35505 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35506 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35508 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
35509 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
35510 statistics.h stmt.h varasm.h wide-int.h.
35511 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
35512 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
35513 varasm.h wide-int.h.
35514 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
35515 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35516 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
35517 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
35518 statistics.h stmt.h.
35519 * config/tilepro/tilepro.c: Likewise.
35520 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
35521 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
35522 * config/pdp11/pdp11.c: Likewise.
35523 * config/xtensa/xtensa.c: Likewise.
35524 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
35525 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35527 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35528 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35529 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
35530 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35531 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35532 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
35533 * rtl-chkp.c: Likewise.
35534 * tree-chkp-opt.c: Likewise.
35535 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
35536 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35537 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
35538 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35539 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35540 statistics.h stmt.h.
35541 * tree-vect-data-refs.c: Likewise.
35542 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
35543 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35544 rtl.h statistics.h stmt.h varasm.h.
35545 * internal-fn.c: Likewise.
35546 * ipa-icf-gimple.c: Likewise.
35547 * lto-section-out.c: Likewise.
35548 * tree-data-ref.c: Likewise.
35549 * tree-nested.c: Likewise.
35550 * tree-outof-ssa.c: Likewise.
35551 * tree-predcom.c: Likewise.
35552 * tree-pretty-print.c: Likewise.
35553 * tree-scalar-evolution.c: Likewise.
35554 * tree-ssa-strlen.c: Likewise.
35555 * tree-vect-loop.c: Likewise.
35556 * tree-vect-patterns.c: Likewise.
35557 * tree-vect-slp.c: Likewise.
35558 * tree-vect-stmts.c: Likewise.
35559 * tsan.c: Likewise.
35560 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35561 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
35563 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
35564 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35565 statistics.h stmt.h varasm.h.
35566 * loop-unroll.c: Likewise.
35567 * ubsan.c: Likewise.
35568 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
35569 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
35571 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35572 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
35573 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
35574 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35575 statistics.h stmt.h.
35576 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
35577 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35578 statistics.h stmt.h varasm.h.
35579 * gimple-match-head.c: Likewise.
35580 * lto-cgraph.c: Likewise.
35581 * lto-section-in.c: Likewise.
35582 * lto-streamer-in.c: Likewise.
35583 * lto-streamer-out.c: Likewise.
35584 * tree-affine.c: Likewise.
35585 * tree-cfg.c: Likewise.
35586 * tree-cfgcleanup.c: Likewise.
35587 * tree-if-conv.c: Likewise.
35588 * tree-into-ssa.c: Likewise.
35589 * tree-ssa-alias.c: Likewise.
35590 * tree-ssa-copyrename.c: Likewise.
35591 * tree-ssa-dse.c: Likewise.
35592 * tree-ssa-forwprop.c: Likewise.
35593 * tree-ssa-live.c: Likewise.
35594 * tree-ssa-math-opts.c: Likewise.
35595 * tree-ssa-pre.c: Likewise.
35596 * tree-ssa-sccvn.c: Likewise.
35597 * tree-tailcall.c: Likewise.
35598 * tree-vect-generic.c: Likewise.
35599 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35600 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
35601 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35602 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
35603 * varasm.c: Likewise.
35604 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35605 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
35607 * init-regs.c: Likewise.
35609 * omp-low.c: Likewise.
35610 * stack-ptr-mod.c: Likewise.
35611 * tree-ssa-reassoc.c: Likewise.
35612 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35613 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
35615 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35616 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
35617 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35618 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
35619 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35620 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
35621 * tree-ssa-phiopt.c: Likewise.
35622 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35623 fixed-value.h hashtab.h real.h statistics.h stmt.h.
35624 * config/fr30/fr30.c: Likewise.
35625 * config/frv/frv.c: Likewise.
35626 * expr.c: Likewise.
35627 * final.c: Likewise.
35628 * optabs.c: Likewise.
35629 * passes.c: Likewise.
35630 * simplify-rtx.c: Likewise.
35631 * stmt.c: Likewise.
35632 * toplev.c: Likewise.
35633 * var-tracking.c: Likewise.
35634 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35635 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35636 * lower-subreg.c: Likewise.
35637 * postreload-gcse.c: Likewise.
35639 * reginfo.c: Likewise.
35640 * store-motion.c: Likewise.
35641 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35642 fixed-value.h hashtab.h real.h stmt.h varasm.h.
35643 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35644 fixed-value.h hashtab.h statistics.h stmt.h.
35645 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35646 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35647 * except.c: Likewise.
35648 * explow.c: Likewise.
35649 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35650 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
35652 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35653 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
35654 * tree-ssa-structalias.c: Likewise.
35655 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35656 fixed-value.h insn-config.h real.h statistics.h.
35657 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35658 fixed-value.h insn-config.h real.h statistics.h stmt.h.
35659 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35660 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35661 * cfgbuild.c: Likewise.
35662 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35663 fixed-value.h real.h rtl.h statistics.h stmt.h.
35664 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35665 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35666 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35667 fixed-value.h real.h statistics.h stmt.h.
35668 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35669 fixed-value.h real.h statistics.h stmt.h varasm.h.
35670 * cprop.c: Likewise.
35671 * modulo-sched.c: Likewise.
35672 * postreload.c: Likewise.
35673 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35674 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
35675 statistics.h stmt.h varasm.h.
35676 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
35677 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35678 rtl.h statistics.h stmt.h varasm.h.
35679 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
35680 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
35682 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35683 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
35685 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
35686 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
35688 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
35689 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35690 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35691 function.h real.h statistics.h stmt.h varasm.h.
35692 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35693 insn-config.h real.h statistics.h stmt.h.
35694 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35695 statistics.h stmt.h.
35696 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
35697 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
35698 statistics.h stmt.h varasm.h.
35699 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
35700 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
35701 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35702 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
35703 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
35704 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35705 statistics.h stmt.h varasm.h.
35706 * ipa-polymorphic-call.c: Likewise.
35707 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
35708 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35709 statistics.h stmt.h.
35710 * config/c6x/c6x.c: Likewise.
35711 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
35712 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35713 statistics.h stmt.h varasm.h.
35714 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
35715 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
35717 * ipa-split.c: Likewise.
35718 * tree-eh.c: Likewise.
35719 * tree-ssa-dce.c: Likewise.
35720 * tree-ssa-loop-niter.c: Likewise.
35721 * tree-vrp.c: Likewise.
35722 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
35723 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
35725 * config/nds32/nds32-fp-as-gp.c: Likewise.
35726 * config/nds32/nds32-intrinsic.c: Likewise.
35727 * config/nds32/nds32-isr.c: Likewise.
35728 * config/nds32/nds32-md-auxiliary.c: Likewise.
35729 * config/nds32/nds32-memory-manipulation.c: Likewise.
35730 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
35731 * config/nds32/nds32-predicates.c: Likewise.
35732 * config/nds32/nds32.c: Likewise.
35733 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
35734 fixed-value.h hashtab.h real.h statistics.h.
35735 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
35736 fixed-value.h hashtab.h real.h statistics.h stmt.h.
35737 * config/arm/arm.c: Likewise.
35738 * config/avr/avr.c: Likewise.
35739 * config/bfin/bfin.c: Likewise.
35740 * config/h8300/h8300.c: Likewise.
35741 * config/i386/i386.c: Likewise.
35742 * config/ia64/ia64.c: Likewise.
35743 * config/iq2000/iq2000.c: Likewise.
35744 * config/m32c/m32c.c: Likewise.
35745 * config/m32r/m32r.c: Likewise.
35746 * config/m68k/m68k.c: Likewise.
35747 * config/mcore/mcore.c: Likewise.
35748 * config/mep/mep.c: Likewise.
35749 * config/mips/mips.c: Likewise.
35750 * config/mn10300/mn10300.c: Likewise.
35751 * config/moxie/moxie.c: Likewise.
35752 * config/pa/pa.c: Likewise.
35753 * config/rl78/rl78.c: Likewise.
35754 * config/rx/rx.c: Likewise.
35755 * config/s390/s390.c: Likewise.
35756 * config/sh/sh.c: Likewise.
35757 * config/sparc/sparc.c: Likewise.
35758 * config/spu/spu.c: Likewise.
35759 * config/stormy16/stormy16.c: Likewise.
35760 * config/v850/v850.c: Likewise.
35761 * config/vax/vax.c: Likewise.
35762 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
35763 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35764 * config/msp430/msp430.c: Likewise.
35765 * predict.c: Likewise.
35766 * value-prof.c: Likewise.
35767 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
35768 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
35769 * config/microblaze/microblaze.c: Likewise.
35770 * config/nios2/nios2.c: Likewise.
35771 * config/rs6000/rs6000.c: Likewise.
35772 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35773 insn-config.h real.h rtl.h statistics.h stmt.h.
35774 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35775 insn-config.h real.h statistics.h stmt.h.
35776 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
35777 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35778 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
35779 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35780 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
35781 fixed-value.h real.h statistics.h stmt.h.
35782 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
35783 fixed-value.h statistics.h stmt.h.
35784 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
35787 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35789 * gengtype.c (create_user_defined_type): Workaround
35790 -Wmaybe-uninitialized false positives.
35791 * cse.c (fold_rtx): Likewise.
35792 * loop-invariant.c (gain_for_invariant): Likewise.
35794 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
35796 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
35797 set the memory attributes in all cases but clear MEM_EXPR if need be.
35799 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35801 PR tree-optimization/64434
35802 * cfgexpand.c (reorder_operands): New function.
35803 (expand_gimple_basic_block): Insert call of reorder_operands if
35806 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
35808 * config/mips/micromips.md (*swp): Remove explicit parallel.
35809 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
35810 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
35811 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
35812 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
35813 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
35814 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
35815 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
35816 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
35817 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
35818 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
35819 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
35820 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
35821 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
35822 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
35823 (mips_wrdsp): Likewise.
35824 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
35826 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
35827 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
35828 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
35829 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
35830 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
35831 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
35832 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
35833 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
35834 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
35836 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35838 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
35839 (mips_print_operand): Support 'y' to print exact log2 in decimal
35841 * config/mips/mips.h (ISA_HAS_LSA): New define.
35842 (ISA_HAS_DLSA): Likewise.
35843 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
35844 * config/mips/predicates.md (const_immlsa_operand): New predicate.
35846 2015-01-15 Martin Liska <mliska@suse.cz>
35849 * optc-save-gen.awk: Add support for array types.
35851 2015-01-15 Richard Biener <rguenther@suse.de>
35853 PR middle-end/64365
35854 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
35855 for MEM_REF access functions with the same base can never partially
35858 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
35860 * common.opt: New option -fstack-protector-explicit.
35861 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
35862 (stack_protect_decl_phase): Handle stack_protect attribute for
35863 explicit stack protection requests.
35864 (expand_used_vars): Similarly.
35865 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
35866 * doc/extend.texi: Add documentation for "stack_protect" attribute.
35867 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
35869 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
35872 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
35874 (sh_extending_set_of_reg): New struct.
35875 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
35876 sh_remove_reg_dead_or_unused_notes): New Declarations.
35877 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
35878 sh_find_extending_set_of_reg, sh_split_tst_subregs,
35879 sh_extending_set_of_reg::use_as_extended_reg): New functions.
35880 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
35881 convert to insn_and_split and use new function sh_split_tst_subregs.
35883 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
35885 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
35887 (Optimization Options): Move -fuse-ld documentation to...
35888 (Link Options): ...here.
35890 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35892 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
35894 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
35895 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
35896 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
35897 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
35898 instead of ZR for the memory operand of LL/SC.
35899 (compare_and_swap_12, sync_add<mode>): Likewise.
35900 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
35901 (sync_new_<optab>_12, sync_nand_12): Likewise.
35902 (sync_old_nand_12, sync_new_nand_12): Likewise.
35903 (sync_sub<mode>, sync_old_add<mode>): Likewise.
35904 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
35905 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
35906 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
35907 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
35908 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
35909 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
35910 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
35911 * doc/md.texi (ZC): Update description.
35913 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
35915 * builtins.c (expand_builtin_atomic_exchange): Remove error when
35916 memory model is CONSUME.
35917 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
35918 expand_builtin_atomic_store): Change invalid memory model errors to
35920 (expand_builtin_atomic_clear): Change invalid model errors to warnings
35921 and issue warning for CONSUME.
35923 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
35925 * lto-cgraph: Update function comments for
35926 lto_symtab_encoder_encode_*.
35928 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
35930 * Makefile.in (site.exp): Do not set ENABLE_LTO.
35932 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
35934 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
35935 * lto-cgraph.c (select_what_to_stream): Remove argument, use
35936 lto_stream_offload_p instead.
35937 * lto-streamer.h (select_what_to_stream): Remove argument.
35938 * passes.c (ipa_write_summaries): Likewise.
35939 * tree-pass.h (ipa_write_summaries): Likewise.
35941 2015-01-14 Richard Biener <rguenther@suse.de>
35943 PR tree-optimization/59354
35944 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
35945 groups larger than the slp group size as having gaps.
35947 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
35949 PR middle-end/59448
35950 * builtins.c (get_memmodel): Promote consume to acquire always.
35952 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35955 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
35958 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35961 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
35963 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
35964 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
35965 AVX512VBMI, as it implies AVX512BW.
35967 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35970 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
35971 (vec_unpacks_hi_v16sf): Ditto.
35973 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35975 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
35978 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35980 * doc/invoke.texi (mapcs): Mention deprecation.
35981 (mapcs-frame): Likewise.
35983 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
35986 * config/arm/arm.c (callee_saved_reg_p): Define.
35987 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
35988 register is callee saved instead of !call_used_regs[reg].
35989 (thumb1_compute_save_reg_mask): Likewise.
35991 2015-01-14 Hale Wang <hale.wang@arm.com>
35993 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
35996 2015-01-14 Richard Biener <rguenther@suse.de>
35999 * tree-inline.c (insert_debug_decl_map): Check destination
36000 function MAY_HAVE_DEBUG_STMTS.
36001 (insert_init_debug_bind): Likewise.
36002 (insert_init_stmt): Remove redundant check.
36003 (remap_gimple_stmt): Drop debug stmts if the destination
36004 function has var-tracking assignments disabled.
36006 2015-01-14 Martin Liska <mliska@suse.cz>
36008 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36009 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36011 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36014 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36015 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36017 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36019 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36020 level from an ARCH; do not inject the default.
36021 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36022 MIPS_ISA_LEVEL_SPEC.
36023 (MIPS_ISA_NAN2008_SPEC): Update comment.
36024 (BASE_DRIVER_SELF_SPECS): Likewise.
36025 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36026 MIPS_DEFAULT_ISA_LEVEL_SPEC.
36027 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36028 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36029 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36031 2015-01-14 Richard Biener <rguenther@suse.de>
36033 PR tree-optimization/64493
36034 PR tree-optimization/64495
36035 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36036 assign the proper vectorized PHI to the inner loop exit PHIs.
36038 2015-01-14 Joey Ye <joey.ye@arm.com>
36040 * config/arm/arm.c (arm_compute_save_reg_mask):
36041 Do not save lr in case of tail call.
36042 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36044 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
36046 * tree-vrp.c (check_array_ref): Emit more warnings
36047 for warn_array_bounds >= 2.
36048 * common.opt: New option -Warray-bounds=.
36049 * doc/invoke.texi: Document -Warray-bounds=.
36051 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
36053 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36054 (mforbid-fp-as-gp): Remove.
36056 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36057 (nds32_symbol_load_store_p): Remove.
36058 (nds32_fp_as_gp_check_available): Clean up implementation.
36059 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36061 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36062 fp-as-gp and ex9 cases.
36064 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36066 * tree-profile.c (init_ic_make_global_vars): Drop workaround
36067 for bintuils bug 14342.
36068 (init_ic_make_global_vars): Likewise.
36069 (gimple_init_edge_profiler): Likewise.
36070 (gimple_gen_ic_func_profiler): Likewise.
36072 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36074 * ipa-inline.c (inline_small_functions): Swap the operands in
36077 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36080 * ipa-inline-analysis.c (node_growth_cache): Remove.
36081 (initialize_growth_caches): Do not initialize it.
36082 (free_growth_caches): Do not free it.
36083 (do_estimate_growth): Rename to ...
36084 (estimate_growth): ... this one; drop growth cache code.
36085 (growth_likely_positive): Always go the heuristics way.
36086 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36087 (reset_edge_caches): Do not reset node growth.
36088 (heap_edge_removal_hook): Do not maintain cache.
36089 (inline_small_functions): Likewise; strenghten sanity check.
36090 (ipa_inline): Do not maintain caches.
36091 * ipa-inline.h (node_growth_cache): Remove.
36092 (do_estimate_growth): Remove to ...
36093 (estimate_growth): this one; remove inline version.
36094 (reset_node_growth_cache): Remove.
36096 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36099 * ipa-inline.c (inline_small_functions): Update callee keys after
36100 resolving speculation
36101 (inline_small_functions): Always check monotonicity of the queue.
36103 2015-01-13 Marek Polacek <polacek@redhat.com>
36105 PR middle-end/64391
36106 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36108 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36110 PR rtl-optimization/64286
36111 * ree.c (combine_reaching_defs): Move part of comment earlier,
36112 remove !SCALAR_INT_MODE_P check.
36113 (add_removable_extension): Don't add vector mode
36114 extensions if all uses of the source register aren't the same
36117 2015-01-13 Renlin Li <renlin.li@arm.com>
36119 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36120 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36122 2015-01-13 Martin Liska <mliska@suse.cz>
36124 * ipa-icf.c (sem_function::equals_private): Call new functions
36125 cl_target_option_print_diff and cl_optimization_print_diff.
36126 * optc-save-gen.awk (cl_target_option_print_diff): New function.
36127 (cl_optimization_print_diff): Likewise.
36128 * opth-gen.awk: Likewise.
36130 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
36132 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36133 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36134 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36135 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36136 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36137 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36139 2015-01-13 Andrew Pinski <apinski@cavium.com>
36141 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36142 instead of src mode.
36144 2015-01-13 Richard Biener <rguenther@suse.de>
36147 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36150 2015-01-13 Andrew Pinski <apinski@cavium.com>
36152 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36154 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36156 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36158 PR middle-end/63974
36159 * cfgexpand.c (expand_computed_goto): Don't call
36160 convert_memory_address here.
36162 2015-01-13 Richard Biener <rguenther@suse.de>
36164 PR tree-optimization/64406
36165 * tree-loop-distibution.c (pass_loop_distribution::execute):
36166 Reset the SCEV hashtable if we distributed anything.
36168 2015-01-13 Richard Biener <rguenther@suse.de>
36170 PR tree-optimization/64404
36171 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36172 SLP types for CSEd loads.
36174 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36176 PR tree-optimization/64436
36177 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36178 merge of two symbolic numbers for a bitwise OR to ...
36179 (perform_symbolic_merge): This. Also fix computation of the range and
36180 end of the symbolic number corresponding to the result of a bitwise OR.
36182 2015-01-13 Richard Biener <rguenther@suse.de>
36184 PR tree-optimization/64568
36185 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36186 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36188 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36190 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36191 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36193 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36195 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36196 target-specific symbol_ref flag.
36197 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36198 resides in rodata section.
36199 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36200 (nds32_encode_section_info): New function.
36202 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36204 * config/nds32/nds32.md (call): Use pseudo instruction bal which
36205 clobbers TA_REGNUM if large code model is specified.
36206 (call_register): Likewise.
36207 (call_immediate): Likewise.
36208 (call_value): Likewise.
36209 (call_value_register): Likewise.
36210 (call_value_immediate): Likewise.
36212 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36214 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36215 (TARGET_CMODEL_MEDIUM): New macro.
36216 (TARGET_CMODEL_LARGE): New macro.
36217 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36218 code model setting in assembly code.
36220 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36222 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36223 Remove MASK_GP_DIRECT flag.
36224 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36225 one of the multilib default options.
36226 * config/nds32/nds32.opt (mgp-direct): Remove.
36227 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36228 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
36230 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36232 * config/nds32/nds32.opt (mcmodel): Add new option.
36233 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36234 to describe code model.
36236 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
36239 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36241 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
36243 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36244 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36245 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36246 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36247 __builtin_sh_set_fpscr.
36249 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36251 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36252 after a funtion name just to indicate it is a function.
36253 ([-fsanitize-undefined-trap-on-error]): Likewise.
36254 ([-fdbg-cnt=]): Likewise.
36255 ([-mmemcpy]): Likewise.
36256 ([-mflush-func]): Likewise.
36257 ([-msynci]): Likewise.
36259 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36261 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36264 2015-01-12 Jakub Jelinek <jakub@redhat.com>
36266 PR tree-optimization/64563
36267 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36268 instead of != VR_VARYING.
36271 * config/i386/i386.c (ix86_expand_prologue): Add
36272 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36274 PR tree-optimization/64454
36275 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36276 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36277 for signed or [0, op1 - 1] for unsigned modulo.
36278 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36279 even if op1 does not satisfy integer_pow2p.
36282 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36284 2015-01-12 Jeff Law <law@redhat.com>
36287 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36288 (trunchiqi2, truncsihi2): Similarly.
36290 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36291 rather than calling F.
36293 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
36295 * tsan.c (instrument_expr): Use force_gimple_operand.
36296 Use may_be_nonaddressable_p instead of is_gimple_addressable.
36298 2015-01-12 Richard Biener <rguenther@suse.de>
36300 PR tree-optimization/64530
36301 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36304 2015-01-12 Richard Biener <rguenther@suse.de>
36306 PR middle-end/64357
36307 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36310 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36312 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36313 Cortex-A17 tuning parameters.
36314 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36316 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36318 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36319 * config/arm/arm.c (arm_macro_fusion_p): New function.
36320 (arm_macro_fusion_pair_p): Likewise.
36321 (TARGET_SCHED_MACRO_FUSION_P): Define.
36322 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36323 (ARM_FUSE_NOTHING): Likewise.
36324 (ARM_FUSE_MOVW_MOVT): Likewise.
36325 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36326 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36327 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36328 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36329 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36330 arm_cortex_a5_tune): Specify fuseable_ops value.
36332 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
36335 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36336 test for PIE with copy reloc.
36337 * configure: Regenerated.
36339 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36341 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36343 (arm_tls_descseq_addr): Likewise.
36344 (arm_gen_movmemqi): Likewise.
36345 (arm_expand_epilogue_apcs_frame): Likewise.
36346 (arm_expand_epilogue): Likewise.
36347 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
36350 2015-01-12 Martin Liska <mliska@suse.cz>
36353 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36354 volatility for correct operands.
36356 2015-01-12 Martin Liska <mliska@suse.cz>
36358 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36359 indication that a function is not leaf.
36360 (sem_function::compare_polymorphic_p): Likewise.
36362 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36364 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36365 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36366 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36367 fold-const.h, tree-check.h.
36369 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36373 * ipa-inline.c (compute_uninlined_call_time,
36374 compute_inlined_call_time): Use counts for extra precision when
36376 (big_speedup_p): Fix formating.
36377 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36378 (relative_time_benefit): Remove.
36379 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36380 merge guessed and read profile paths.
36381 (inline_small_functions): Count only !optimize_size functions into
36382 initial size; be more lax about sanity check when profile is used;
36383 be sure to update inlined function profile when profile is read.
36385 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36388 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36389 cost when edge becomes direct.
36390 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36391 is resolved or when introducing new speculation.
36393 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
36397 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36398 '||' to fix typo issue.
36400 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36401 accept and return NULL.
36403 2015-01-12 Martin Liska <mliska@suse.cz>
36405 * cgraph.c (cgraph_edge::remove_callee): Move function to header
36406 file for being inlined.
36407 (cgraph_set_edge_callee): Delete.
36408 (cgraph_edge::redirect_callee): Move function to header file
36410 (cgraph_edge::make_direct): Use new function.
36411 (cgraph_edge::dump_edge_flags): New function created from
36412 static dump_edge_flags function.
36413 (cgraph_node::dump): Use new function.
36414 (cgraph_edge::verify_count_and_frequency): New function created
36415 from verify_edge_count_and_frequency.
36416 (cgraph_edge::verify_corresponds_to_fndecl): New function created
36417 from verify_edge_corresponds_to_fndecl.
36418 (verify_edge_corresponds_to_fndecl): Delete.
36419 (cgraph_node::verify_node): Use new function.
36420 * cgraph.h (cgraph_edge::set_callee): New function.
36421 (cgraph_edge::dump_edge_flags): Likewise.
36422 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36424 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
36426 * ipa-utils.c (estimate_function_body_sizes): Do not
36427 free node params when called late with early=true.
36429 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
36431 * doc/md.texi (Instruction Patterns): Rewrite text for
36433 (Example): Likewise.
36435 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
36437 * doc/invoke.texi (Option Summary): Break long lines.
36438 [(-fdiagnostics-color)]: Put long literal in @smallexample
36440 [(-fsanitize-recover)]: Likewise.
36441 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
36442 [(-ffast-math)]: Likewise.
36443 [(--param max-inline-insns-recursive)]: Likewise.
36444 [(--param max-inline-recursive-depth)]: Likewise.
36445 [(-mno-text-section-literals)]: Likewise.
36447 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
36449 * doc/install.texi: Update for libgomp being renamed from "GNU
36450 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
36452 * doc/sourcebuild.texi: Likewise.
36454 2015-01-10 Anthony Green <green@moxielogic.com>
36456 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
36457 mul.x availability for moxiebox configuration.
36459 2015-01-09 Anthony Green <green@moxielogic.com>
36461 * config/moxie/moxie.md: Tabify assembly output.
36463 2015-01-09 Anthony Green <green@moxielogic.com>
36465 * config/moxie/moxie.md (CC_REG): Correct register definition.
36467 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
36469 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
36470 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
36473 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36475 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
36477 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
36478 Jakub Jelinek <jakub@redhat.com>
36480 PR middle-end/64412
36481 * lto-streamer.h (lto_stream_offload_p): New declaration.
36482 * lto-streamer.c (lto_stream_offload_p): New variable.
36483 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
36484 at the same time as section_name_prefix.
36485 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
36486 if lto_stream_offload_p.
36487 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
36488 stream TREE_TARGET_OPTION if lto_stream_offload_p.
36489 (write_ts_function_decl_tree_pointers): Don't
36490 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
36491 * tree-streamer-in.c (unpack_value_fields): Don't stream
36492 TREE_TARGET_OPTION in if ACCEL_COMPILER.
36493 (lto_input_ts_function_decl_tree_pointers): Don't stream
36494 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
36495 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
36496 instead of section_name_prefix string comparisons.
36498 2015-01-09 Jakub Jelinek <jakub@redhat.com>
36500 PR rtl-optimization/64536
36501 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
36504 2015-01-09 Michael Collison <michael.collison@linaro.org>
36506 PR tree-optimization/64322
36507 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
36508 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
36510 2015-01-09 Tom de Vries <tom@codesourcery.com>
36512 PR rtl-optimization/64539
36513 * regcprop.c (kill_clobbered_values): Factor out of ...
36514 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
36515 instead of note_stores with kill_clobbered_value.
36517 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36519 * ginclude/unwind-arm-common.h: Revert previous commit.
36521 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36523 * config.gcc (arm*-*-freebsd*): New configuration.
36524 * config/arm/freebsd.h: New file.
36525 * config.host: Add extra components for arm*-*-freebsd*.
36526 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
36527 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
36529 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36531 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
36533 * config/rs6000/t-rtems: Add e6500 multilibs.
36535 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36537 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
36540 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36542 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
36543 MULTILIB_EXCEPTIONS.
36545 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36547 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
36548 MULTILIB_EXCEPTIONS.
36550 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36552 * config/arm/t-rtems-eabi: Rename to...
36553 * config/arm/t-rtems: ...this.
36554 * config/arm/rtems-eabi.h: Rename to...
36555 * config/arm/rtems.h: ...this.
36556 * config.gcc (arm*-*-rtems*): Reflect changes above.
36558 2015-01-09 Richard Biener <rguenther@suse.de>
36560 PR tree-optimization/64410
36561 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
36563 (execute_update_addresses_taken): Deal with that.
36564 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
36565 loads/stores for complex variables.
36567 2015-01-09 Martin Liska <mliska@suse.cz>
36569 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
36571 (func_checker::compare_memory_operand): New function.
36572 (func_checker::compare_operand): Split case to newly
36574 (func_checker::compare_cst_or_decl): New function.
36575 (func_checker::compare_gimple_call): Identify
36577 (func_checker::compare_gimple_assign): Likewise.
36578 * ipa-icf-gimple.h: New function.
36580 2015-01-09 Martin Liska <mliska@suse.cz>
36583 * sreal.c (sreal::dump): Change unsigned format to signed for
36585 (sreal::to_double): Replace exp2 with scalbln.
36587 2015-01-09 Martin Liska <mliska@suse.cz>
36589 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
36590 * ipa-icf.c (sem_function::equals_private): Add support for target and
36591 (sem_item_optimizer::merge_classes): Remove redundant function
36592 optimization flags comparison.
36593 * tree.h (target_opts_for_fn): New function.
36595 2015-01-09 Tom de Vries <tom@codesourcery.com>
36597 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
36599 2015-01-09 Kito Cheng <kito@0xlab.org>
36601 PR rtl-optimization/64348
36602 * lra-constraints.c (split_reg): Fix caller-save store/restore
36603 instruction generation.
36605 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
36607 PR gcov-profile/61790
36608 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
36609 long long. Fallback to int64_t if host doesn't have long long and
36610 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
36612 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36614 PR tree-optimization/63989
36615 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
36616 from 1000 to 10000.
36617 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
36618 (get_stridx): If we don't have a record for certain SSA_NAME,
36619 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
36620 constant offset, call get_stridx_plus_constant.
36621 (get_stridx_plus_constant): New function.
36622 (zero_length_string): Don't use get_stridx here.
36625 PR middle-end/64388
36626 * dse.c (struct insn_info): Mention frame_read set also
36627 before reload for tail calls on some targets.
36628 (scan_insn): Revert 2014-12-22 change. Set frame_read
36629 also before reload for tail calls if
36630 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
36631 instead of add_non_frame_wild_read for non-const/memset
36632 tail calls after reload.
36634 2015-01-08 Jason Merrill <jason@redhat.com>
36636 * ubsan.c (do_ubsan_in_current_function): New.
36637 (pass_ubsan::gate): Use it.
36638 * ubsan.h: Declare it.
36639 * convert.c (convert_to_integer): Use it.
36641 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36644 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
36645 compare_code when it is unconditionally overwritten afterwards.
36646 Use ix86_reverse_condition instead of reverse_condition. Don't
36647 change code if *reverse_condition* returned UNKNOWN and don't
36648 swap ct/cf and negate diff in that case.
36650 2015-01-08 Mike Stump <mikestump@comcast.net>
36652 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
36653 (pass_tsan_O0::gate): Likewise.
36654 * extend.texi (Function Attributes): Add no_sanitize_thread
36657 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
36659 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
36660 for registering builtins.
36661 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
36662 add -fopenmp to the argv_obstack used when invoking
36663 compile_for_target.
36665 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
36666 add "-m32" or "-m64" to argv_obstack.
36667 (generate_host_descr_file): Likewise, when invoking host_compiler.
36668 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
36671 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
36673 * config/sh/sh-mem.cc: Use constant as second operand when emitting
36676 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
36679 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
36680 constant load if constant operand fits into I08.
36682 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36685 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
36686 and TREE_THIS_VOLATILE for MEM_REFs.
36687 (build5_stat): Fix up initialization of TREE_READONLY and
36688 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
36690 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
36693 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
36694 of r for the second alternative of the destination operand.
36696 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
36699 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
36701 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
36703 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
36705 ([-fivar-visibility], [-fvisibility]): Likewise.
36707 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
36709 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
36710 the file where @code, @command, etc is more appropriate.
36712 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
36714 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
36715 of -mrecip= documentation.
36717 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36720 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
36721 correct reload handler if -m32 -mpowerpc64 is used.
36723 2015-01-06 Tom de Vries <tom@codesourcery.com>
36725 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
36727 2015-01-08 Christian Bruel <christian.bruel@st.com>
36730 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
36732 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
36734 PR tree-optimization/63259
36735 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
36736 if optab exists for 16bit byteswap.
36738 2015-01-06 Jakub Jelinek <jakub@redhat.com>
36740 * opts.c (common_handle_option): Add support for
36741 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
36742 * doc/invoke.texi: Document -fno-sanitize=all,
36743 -f{,no-}sanitize-recover=all. Document that
36744 -fsanitize=float-cast-overflow is not enabled
36745 by -fsanitize=undefined. Fix up documentation
36746 of -f{,no-}sanitize-recover.
36748 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
36750 * config.gcc: Add Visium support.
36751 * configure.ac: Likewise.
36752 * configure: Regenerate.
36753 * doc/extend.texi (interrupt attribute): Add Visium.
36754 * doc/invoke.texi: Document Visium options.
36755 * doc/install.texi: Document Visium target.
36756 * doc/md.texi: Document Visium constraints.
36757 * common/config/visium: New directory.
36758 * config/visium: Likewise.
36760 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
36762 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
36763 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
36765 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
36767 * combine.c (combine_validate_cost): Do not count the cost of a
36768 split I2 twice. Do not display it twice in the dump, either.
36770 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
36772 Revert parts of r219199.
36773 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
36775 ([-Wtraditional]): Restore markup on <limits.h>.
36777 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
36780 * doc/invoke.texi: Document -Wsuggest-override.
36782 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
36784 PR rtl-optimization/64287
36785 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
36786 (process_options): Disable flag_ipa_ra if profiling.
36788 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
36790 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
36792 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
36794 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
36795 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
36796 put under #if TARGET_LOOPS guard.
36798 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
36800 * config/i386/i386.c (output_387_binary_op): Use std::swap.
36802 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
36804 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
36805 * rtl.h (refers_to_regno_p): Add overload.
36807 * bt-load.c: Likewise.
36808 * combine.c: Likewise.
36809 * df-scan.c: Likewise.
36810 * sched-deps.c: Likewise.
36811 * config/s390/s390.c: Likewise.
36812 * config/m32r/m32r.c: Likewise.
36813 * config/rs6000/spe.md: Likewise.
36814 * config/rs6000/rs6000.c: Likewise.
36815 * config/pa/pa.c: Likewise.
36816 * config/stormy16/stormy16.c: Likewise.
36817 * config/cris/cris.c: Likewise.
36818 * config/arc/arc.md: Likewise.
36819 * config/arc/arc.c: Likewise.
36820 * config/sh/sh.md: Likewise.
36821 * config/sh/sh.c: Likewise.
36822 * config/frv/frv.c: Likewise.
36824 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36827 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
36828 call as cleanup of the whole body.
36829 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
36830 * tsan.c (replace_func_exit): New function.
36831 (instrument_func_exit): Moved earlier.
36832 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
36833 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
36835 (tsan_pass): Don't call instrument_func_exit.
36836 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
36837 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
36841 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
36842 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
36843 it to libubsan handler instead of EXPR. Fold comparisons earlier,
36844 if the result is integer_zerop, return NULL_TREE.
36845 * convert.c (convert_to_integer): Pass expr as ARG.
36847 PR tree-optimization/64465
36848 * tree-inline.c (redirect_all_calls): During inlining
36849 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
36850 changed the stmt to a non-throwing call.
36852 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
36854 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
36855 etc markup throughout the file.
36857 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36859 Enable experimental TSAN support for Ada.
36860 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
36862 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36864 PR tree-optimization/64494
36865 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
36866 clear SSA_NAME_ANTI_RANGE_P flag.
36868 2015-01-05 Marek Polacek <polacek@redhat.com>
36870 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
36872 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36874 Update copyright years.
36876 * gcc.c (process_command): Update copyright notice dates.
36877 * gcov-dump.c: Ditto.
36879 * doc/cpp.texi: Bump @copying's copyright year.
36880 * doc/cppinternals.texi: Ditto.
36881 * doc/gcc.texi: Ditto.
36882 * doc/gccint.texi: Ditto.
36883 * doc/gcov.texi: Ditto.
36884 * doc/install.texi: Ditto.
36885 * doc/invoke.texi: Ditto.
36887 * auto-profile.c, auto-profile.h: Fix up Copyright line.
36889 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
36891 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
36893 ([-fvtable-verify], [-fvtv-debug]): Likewise.
36894 ([-Wabi]): Likewise.
36895 ([-fmessage-length]): Likewise.
36896 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
36897 ([-Wno-discarded-qualifiers]): Likewise.
36898 ([-Wnodiscarded-array-qualifiers]): Likewise.
36899 ([-Wno-virtual-move-assign]): Likewise.
36900 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
36901 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
36902 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
36903 ([-fsanitize-undefined-trap-on-error]): Likewise.
36904 ([-floop-interchange]): Likewise.
36905 ([-ftree-coalesce-inlined-vars]): Likewise.
36906 ([-fvect-cost-model]): Likewise.
36907 ([-flto]): Likewise.
36908 ([--param]): Likewise.
36909 (Spec Files): Likewise.
36910 ([-mstrict-align]): Likewise.
36911 ([-mfix-cortex-a53-835769]): Likewise.
36912 ([-march], [-mtune]): Likewise.
36913 ([-mpic-register]): Likewise.
36914 ([-munaligned-access]): Likewise.
36915 ([-msp8]): Likewise.
36916 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
36917 (AVR Built-in Macros): Likewise.
36918 ([-mpreferred-stack-boundary]): Likewise.
36919 ([-mtune-crtl]): Likewise.
36920 ([-mashf]): Likewise.
36921 ([-mmcu=]): Likewise.
36922 ([-minrt]): Likewise.
36923 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
36924 ([-mupper-regs]): Likewise.
36925 ([-matomic-model]): Likewise.
36926 ([-mdiv]): Likewise.
36927 ([-mzdcbranch]): Likewise.
36928 ([-mdisable-callt]): Likewise.
36929 ([-msoft-float]): Likewise.
36930 ([-m8byte-align]): Likewise.
36931 ([-fstack-reuse]): Likewise.
36933 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36935 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
36936 Fix markup, light copy-editing.
36937 ([-fauto-profile]): Rewrite to fix formatting and content
36940 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36942 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
36943 Copy-edit description.
36944 ([-fisolate-erroneous-paths-attribute]): Likewise.
36945 * common.opt (fisolate-erroneous-paths-dereference):
36946 Copy-edit description.
36947 (fisolate-erroneous-paths-attribute): Likewise.
36949 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36951 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
36954 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36956 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
36957 ([-fvtv-debug]): Likewise.
36958 ([-Wc++-compat]): Likewise.
36959 ([-Wc++11-compat]): Likewise.
36960 ([-Wc++14-compat]): Likewise.
36961 ([-Wno-sized-deallocation]): Likewise.
36962 ([-femit-class-debug-always]): Likewise.
36963 ([-femit-struct-debug-detailed]): Likewise.
36964 ([-fno-keep-inline-dllexport]): Likewise.
36965 ([-fira-algorithm]): Likewise.
36966 ([-fira-region]): Likewise.
36967 ([-flra-remat]): Likewise.
36968 ([-fipa-ra]): Likewise.
36969 ([-fhoist-adjacent-loads]): Likewise.
36970 ([-fisolate-erroneous-paths-dereference]): Likewise.
36971 ([-fisolate-erroneous-paths-attribute]): Likewise.
36972 ([-ftree-switch-conversion]): Likewise.
36973 ([-ftree-tail-merge]): Likewise.
36974 ([-ftree-loop-if-convert]): Likewise.
36975 ([-ftree-loop-if-convert-stores]): Likewise.
36976 ([-ftree-loop-distribution]): Likewise.
36977 ([-ftree-loop-distribute-patterns]): Likewise.
36978 ([-flto-compression-level]): Likewise.
36979 ([-flto-report]): Likewise.
36980 ([-flto-report-wpa]): Likewise.
36981 ([-fuse-linker-plugin]): Likewise.
36982 ([-mfix-cortex-a53-835769]): Likewise.
36983 ([-mno-fix-cortex-a53-835769]): Likewise.
36984 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
36985 explicit listing; add a note to the discussion indicating they
36986 exist. Reorder table to group similar options. Add missing
36987 @opindex entries. Add @need commands throughout the table to
36988 allow it to be split across multiple pages.
36989 ([-m8bit-idiv]): Fix @opindex.
36990 ([-mavx256-split-unaligned-load]): Likewise.
36991 ([-mavx256-split-unaligned-store]): Likewise.
36992 ([-mstack-protector-guard]): Likewise.
36993 ([-mcpu=]): Likewise.
36994 ([-mcpu]): Likewise.
36995 ([-mpointer-size=]): Likewise.
36997 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
36999 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37000 instead of `m' constraint. Likewise for unnamed movb comparison
37001 patterns using reg_before_reload_operand predicate.
37002 * config/pa/predicates.md (reg_before_reload_operand): Tighten
37003 predicate to reject register index and LO_SUM DLT memory forms
37006 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37008 * doc/invoke.texi (Option Summary): Fix spelling of
37009 -fdevirtualize-at-ltrans.
37010 ([-fdevirtualize]): Fix markup.
37011 ([-fdevirtualize-speculatively]): Fix typo.
37012 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
37013 implementor-speaky.
37014 * common.opt (fdevirtualize-at-ltrans): Likewise.
37015 * ipa-devirt.c: Fix typos in comments throughout the file.
37016 (ipa_devirt): Fix typos in format strings for dump output.
37018 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37020 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37021 discussion of defaults, light copy-editing.
37023 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37025 * tsan.c (instrument_expr): corrected previous checkin.
37027 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37029 Instrument bit field and unaligned accesses for TSAN.
37030 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37031 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37032 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37033 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37034 unaligned memory regions.
37036 2015-01-01 Anthony Green <green@moxielogic.com>
37038 * config/moxie/predicates.md (moxie_general_movsrc_operand):
37039 Restrict move source register offsets to 16 bits.
37041 Copyright (C) 2015 Free Software Foundation, Inc.
37043 Copying and distribution of this file, with or without modification,
37044 are permitted in any medium without royalty provided the copyright
37045 notice and this notice are preserved.